query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.source
@ApiModelProperty(value = "族谱来源") public String getSource() { return source; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }", "public StrColumn getSource() {\n return delegate.getColumn(\"source\", DelegatingStrColumn::new);\n }", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}", "public String getLifeUsageSource () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_LifeUsageSource);\n\t}", "int getGeneId();", "public String getGeneName() {\n return geneName;\n }", "java.lang.String getAssociatedSource();", "java.lang.String getSourceColumnName();", "public String getSource() {\n return this.source;\n }", "public String sourceField() {\n return this.sourceField;\n }", "public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "public Entity.ID getSourceID() {\n return sourceID;\n }", "public int getSource(){\r\n\t\treturn this.source;\r\n\t}", "public String getSource() {\n return source;\n }", "public Optional<String> getSource() {\n\t\treturn Optional.ofNullable(_source);\n\t}", "public String getSource() {\r\n return source;\r\n }", "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "public OMCollection getSource() {\r\n return IServer.associationHasSource().dr(this).range();\r\n }", "public String getSourceId() {\n return sourceId;\n }", "public int getSource() {\n\t\treturn source;\n\t}", "public String get_source() {\n\t\treturn source;\n\t}", "public String getSourceAttribute() {\n return sourceAttribute;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public long getSourceId() {\n return sourceId_;\n }", "public String getSource() {\n\n return source;\n }", "public long getSourceId() {\n return sourceId_;\n }", "public Vertex getSource() {\n return source;\n }", "public String getSource();", "public Long getSourceNumber() {\n return this.sourceNumber;\n }", "public String getSource() {\r\n return Source;\r\n }", "@ApiModelProperty(value = \"The source of the data.\")\n public String getSource() {\n return source;\n }", "protected String getFromSource() {\n return sourceTable;\n }", "public String getSource() {\n return mSource;\n }", "String getSourceExpression();", "public NativeEntity getSourceEntity() \n\t{\n\treturn fSource;\n\t}", "public String getGeneName(int row);", "public String getSourceAttributeId() {\n\t\treturn sourceAttribute;\n\t}", "@VTID(27)\n java.lang.String getSourceName();", "@Override\r\n\tpublic String getSource() {\n\t\treturn null;\r\n\t}", "public String getSource ();", "public java.lang.Integer getSource_code_id() {\n return source_code_id;\n }", "public java.lang.Object getSourceID() {\n return sourceID;\n }", "java.lang.String getSource();", "java.lang.String getSource();", "public HarvestSource getSource() {\n\t\treturn source;\n\t}", "public ScGridColumn<AcActionAutoCorrectedLog> newSourceTypeColumn()\n {\n return newSourceTypeColumn(\"Source Type\");\n }", "public String getSouce() {\n\t\treturn source;\n\t}", "public Object getSource() {\n\t\treturn source;\n\t}", "public Object getSource() {\n\t\treturn source;\n\t}", "public org.LexGrid.commonTypes.Source[] getSource() {\n return source;\n }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "public int findGeneStart()\n {\n return findGeneStart(0);\n }", "String getSource();", "public String getSourceIdentifier() {\n return sourceIdentifier;\n }", "@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();", "public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n associatedSource_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String get_gene_id() {\n return m_gene_id;\n }", "public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }", "String getSourceID();", "public abstract String getSource();", "Optional<String> getSource();", "SourceLevel getSourceLevel() {\n return sourceLevel;\n }", "public Object getSource() {return source;}", "public java.lang.String getSource() {\r\n return localSource;\r\n }", "public String getSourceString() {\n return null;\n }", "protected Source getSource() {\r\n return source;\r\n }", "public String getGeneList() {\n return geneList;\n }", "@JsonProperty(\"source\")\n public Source getSource() {\n return source;\n }", "@ApiModelProperty(value = \"族谱ID\")\n public Long getGenealogyId() {\n return genealogyId;\n }", "public Node getSource() {\n return this.source;\n }", "public String getSourceTable();", "@Override\n public Vertex getSource() {\n return sourceVertex;\n }", "@java.lang.Override\n public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n associatedSource_ = s;\n return s;\n }\n }", "public Object getSource() {\n return source;\n }", "@ApiModelProperty(required = true, value = \"The program that generated the test results\")\n public String getSource() {\n return source;\n }", "public final String getPerunSourceAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"perunSourceAttribute\");\n\t}", "@Override\n\tpublic EList<SourceRef> getSource() {\n\t\treturn adaptee.getSource();\n\t}", "public Class<?> getSource() {\r\n \t\treturn source;\r\n \t}", "public edu.umich.icpsr.ddi.FileTxtType.Source.Enum getSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SOURCE$30);\n }\n if (target == null)\n {\n return null;\n }\n return (edu.umich.icpsr.ddi.FileTxtType.Source.Enum)target.getEnumValue();\n }\n }", "@Override\n public String getSource()\n {\n return null;\n }", "public SourceIF source() {\n\t\treturn this.source;\n\t}", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic VType getSource() {\n\t\t// TODO: Add your code here\n\t\treturn super.from;\n\t}", "public long getSource()\r\n { return src; }", "public URI getSource() {\n return source;\n }", "public String getNoiseSource() {\n return _avTable.get(ATTR_NOISE_SOURCE);\n }", "Variable getSourceVariable();", "public List<String> getSource() {\n return this.source;\n }", "@ApiModelProperty(value = \"族谱名\")\n public String getGenealogyName() {\n return genealogyName;\n }", "@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n }\n }", "public String getSource() {\n\t\treturn this.uri.toString();\n\t}", "@Override\r\n public String getSource()\r\n {\n return null;\r\n }", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n }\n }" ]
[ "0.6197753", "0.5997031", "0.5837818", "0.5821048", "0.57829326", "0.5691762", "0.5675073", "0.5623711", "0.562077", "0.55942893", "0.557893", "0.5563839", "0.55582553", "0.55474734", "0.55442584", "0.5532512", "0.5532458", "0.5519418", "0.5514822", "0.55033773", "0.5488206", "0.5484958", "0.5469298", "0.5458581", "0.54466945", "0.5440736", "0.5439582", "0.5439582", "0.5439582", "0.54018515", "0.53853005", "0.53829813", "0.5379974", "0.5378458", "0.53659356", "0.5356698", "0.5353259", "0.5346096", "0.53159404", "0.5308895", "0.5298385", "0.5297146", "0.5294736", "0.5278434", "0.52703196", "0.52636474", "0.5257265", "0.52529275", "0.52497894", "0.52497894", "0.52347964", "0.5230557", "0.5228272", "0.5227883", "0.5227883", "0.52223337", "0.5218022", "0.52080226", "0.5204706", "0.517552", "0.5171259", "0.51682", "0.51659966", "0.516545", "0.51622987", "0.5158375", "0.5141807", "0.51341176", "0.51271534", "0.51271373", "0.51244104", "0.5123701", "0.51191586", "0.511803", "0.51150656", "0.5107902", "0.51032025", "0.5099143", "0.50963813", "0.5095448", "0.50949776", "0.5084362", "0.50760484", "0.50753415", "0.5075224", "0.5073237", "0.5065609", "0.50643396", "0.50643396", "0.5054899", "0.50528175", "0.50464994", "0.5044022", "0.5039924", "0.50363123", "0.50346285", "0.5025704", "0.50216293", "0.5000429", "0.4991868" ]
0.52558464
47
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.source
public void setSource(String source) { this.source = source == null ? null : source.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "public void setGeneSetName(String name) {\r\n\t\tgeneSetName=name;\r\n\r\n\t}", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setGenealogyName(String genealogyName) {\n this.genealogyName = genealogyName == null ? null : genealogyName.trim();\n }", "public void setLifeUsageSource (String LifeUsageSource)\n\t{\n\n\t\tset_Value (COLUMNNAME_LifeUsageSource, LifeUsageSource);\n\t}", "public void setGenealogyId(Long genealogyId) {\n this.genealogyId = genealogyId;\n }", "public void setNoiseSource(String noiseSource) {\n if (NOISE_SOURCES != null) {\n for (int i = 0; i < NOISE_SOURCES.length; i++) {\n if (NOISE_SOURCES[i].equals(noiseSource)) {\n _avTable.set(ATTR_NOISE_SOURCE, NOISE_SOURCES[i]);\n }\n }\n }\n }", "public void setGeneName(String geneName) {\n this.geneName = geneName;\n }", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "public void setSourceDB(String sourceDB) {\n this.sourceDB = sourceDB;\n }", "public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }", "public void setSource(SourceSchema s) throws MediatorException{\n\t\tif(s==null){\n\t\t\t//name is not a source, it's probably a rule head from the query\n\t\t\treturn;\n\t\t}\n\t\tsource=s;\n\t\tif(source.getAttrs().size()!=terms.size()){\n\t\t\tthrow(new MediatorException(\"Number of attributes in predicate \" + this + \" has to be equal with attrs in \" + source.getAttrs()));\n\t\t}\n\n\t}", "public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }", "public void setSource(String source) {\n _source = source;\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "public void setSource(String source);", "public void setSource(Mat source) {\n this.source = source;\n }", "int getGeneId();", "public void setSource (String source);", "public void setSourceTable(String sourceTable);", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public final void setSource(final Integer newSource) {\n this.source = newSource;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(noNamespace.SourceType source)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(SOURCE$0);\r\n }\r\n target.set(source);\r\n }\r\n }", "public String getGeneName() {\n return geneName;\n }", "public void xsetSource(edu.umich.icpsr.ddi.FileTxtType.Source source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().add_attribute_user(SOURCE$30);\n }\n target.set(source);\n }\n }", "public void setSource (AbstractRelationalDataView v) { \n\t\t\n\t\tdv = v; \n\t\t\n\t\t// obtain number of records in training set\n\t\tmembers = dv.GetCount();\n\t}", "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }", "public void setGene(int x, double value)\n {\n this.vectOfCoef.set(x, value);\n }", "public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "private void init(AnalyticSource source) throws AnalysisException {\n columnValuesMap = new HashMap<String,ColumnValueAnalysisResult>();\n\n HadoopAnalyticSource hadoopSource = (HadoopAnalyticSource) source;\n //hadoopSource.getHadoopFileStructureModel().\n String errString;\n //Setting purefilename\n String pureFileName =hadoopSource.getFileName();\n if(null==pureFileName||\"\".equals(pureFileName.trim())){\n errString=\"File name[\"+pureFileName+\"] is either empty or null\";\n throw new IllegalArgumentException(errString);\n }\n setPureFileName(pureFileName);\n //Setting pig server\n setPigServer(acquirePigServerInfo(hadoopSource));\n //Setting the column names\n ValueAnalysisConfig config = (ValueAnalysisConfig) source\n .getAnalyticConfig();\n String cNames = config.getColumnNames();\n if(null==cNames||\"\".equals(cNames.trim())){\n errString=\"Column names[\"+cNames+\"] are either empty or null\";\n throw new IllegalArgumentException(errString);\n }\n setColumnNames(new TreeSet<String>(Arrays.asList(cNames.split(\",\"))));\n fetchColumnValuePairs(hadoopSource.getHadoopFileStructureModel());\n //Setting locale\n Locale loc=hadoopSource.getAnalyticConfig().getLocale();\n if(null==loc){\n itsLogger.error(\"Could not acquire Locale yet will try to continue\");\n }\n setLocale(hadoopSource.getAnalyticConfig().getLocale());\n //Setting pigData source variable name\n String pigDataSourceName = hadoopSource.getInputTempName();\n if(null==pigDataSourceName||\"\".equals(pigDataSourceName.trim())){\n errString=\"PigDataSource name[\"+pigDataSourceName+\"] is either empty or null\";\n throw new IllegalArgumentException(errString);\n }\n setLoadedVariableName(pigDataSourceName);\n initNumberAndTextColumns();\n }", "@ApiModelProperty(value = \"族谱ID\")\n public Long getGenealogyId() {\n return genealogyId;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setIntrospectionSource(java.lang.String value) {\n validate(fields()[16], value);\n this.introspectionSource = value;\n fieldSetFlags()[16] = true;\n return this;\n }", "public void addSourceChanger(Component component, Class sourceClass)\n {\n component.addAttribute(GlobalAttributes.Value, sourceClass.getCanonicalName().replace(\".\", \"/\"));\n component.setID(sourceClass.getSimpleName() + \"_source\");\n getSourceChanges().put(component, sourceClass);\n }", "public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}", "public void setGeneList(String geneList) {\n this.geneList = geneList;\n }", "public Builder setAssociatedSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n associatedSource_ = value;\n onChanged();\n return this;\n }", "public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }", "public void sinclude(Context source){\n for (String str : sexport.keySet()){\n if (sexport.get(str) && source.get(str) != null){\n set(str, source.get(str));\n }\n } \n }", "public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}", "public ScGridColumn<AcActionAutoCorrectedLog> newSourceTypeColumn()\n {\n return newSourceTypeColumn(\"Source Type\");\n }", "public void setMesh_source(short mesh_source) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 12, mesh_source);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 12, mesh_source);\n\t\t}\n\t}", "void update(String selectedGene);", "public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }", "private void setupSource() {\n source = new GeoJsonSource( geojsonSourceId, featureCollection );\n map.addSource( source );\n }", "public void setSourcePath(String sourcePath) {\n this.sourcePath = sourcePath;\n }", "public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}", "@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }", "static public void setDataSource(DataSource source) {\n ds = source;\n }", "public void setGHF(java.lang.String param) {\r\n localGHFTracker = param != null;\r\n\r\n this.localGHF = param;\r\n }", "@ApiModelProperty(value = \"族谱名\")\n public String getGenealogyName() {\n return genealogyName;\n }", "@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);", "public void setSignificanceToSource( Flow.Significance val ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"significanceToSource\", val ) );\n }", "public void setInputSource(InputSource inputSource) {\n\t\tthis.inputSource = inputSource;\n\t}", "public void setSourceIdentifier(String sourceIdentifier) {\n this.sourceIdentifier = sourceIdentifier;\n }", "public void setDatasource(DataSource source) {\n datasource = source;\n }", "public void setEgX(int x) {\n\t\tthis.egX = x;\n\t}", "public void setJGSL(String jgsl) {\n //To change body of implemented methods use File | Settings | File Templates.\n }", "protected void onChange_InitPopulation() {\n onChange_InitPopulation_xjal( InitPopulation );\n }", "public void setDisplaysource(java.lang.String displaysource)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DISPLAYSOURCE$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DISPLAYSOURCE$10);\r\n }\r\n target.setStringValue(displaysource);\r\n }\r\n }", "public String getGeneList() {\n return geneList;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }", "public void setGeneIds(java.util.List<java.lang.String> value) {\n this.geneIds = value;\n }", "Genome(String genome){\n\t\tthis.genome = genome;\n\t}", "public void set_osm_tag_rawvalues(Housenumber sourceentry) {\n\t\tthis.osm_tag = sourceentry.osm_tag;\n\t\tthis.osm_tag_prio = sourceentry.osm_tag_prio;\n\t}", "public String get_gene_id() {\n return m_gene_id;\n }", "protected void setExperienceSources(Set<ExperienceType> experienceSources) {\r\n\t\tthis.experienceSources = experienceSources;\r\n\t}", "public void setDriverClass(String driverClass) throws PropertyVetoException {\n\t\tthis.dataSource.setDriverClass(driverClass);\n\t}", "public void setGenus(String genus) {\n this.genus = genus;\n }", "@Override\n\tpublic int load(File source) {\n\t\tif (source == null) {\n\t\t\treturn -1;\n\t\t}\n\t\t// Load data\n\t\tclear();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(source));\n\t\t\tString line;\n\t\t\tMap<Side, AnnotationTerm> connection = new HashMap<Side, AnnotationTerm>();\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tif (line.startsWith(COMMENT_MARKER)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tMatcher m = ANNOTATION_REG_EXP.matcher(line);\n\t\t\t\tif (m.find()) {\n\t\t\t\t\t// String hpoName = m.group(NAME_IDX);\n\t\t\t\t\tfinal String hpoId = this.taxonomy.getRealId(m\n\t\t\t\t\t\t\t.group(ID_IDX));\n\t\t\t\t\tString geneList = m.group(LIST_IDX);\n\t\t\t\t\tif (geneList != null) {\n\t\t\t\t\t\tfinal Matcher mi = GENE_REG_EXP.matcher(geneList);\n\t\t\t\t\t\twhile (mi.find()) {\n\t\t\t\t\t\t\tconnection.clear();\n\t\t\t\t\t\t\tconnection.put(GENE, new AnnotationTerm(mi\n\t\t\t\t\t\t\t\t\t.group(ID_IDX), mi.group(NAME_IDX)));\n\t\t\t\t\t\t\tconnection.put(TAXONOMY, new AnnotationTerm(hpoId));\n\t\t\t\t\t\t\tthis.addConnection(connection);\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\tin.close();\n\t\t\tpropagateTaxonomyAnnotations();\n\t\t} catch (NullPointerException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tSystem.err.println(\"File does not exist\");\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tSystem.err.println(\"Could not locate source file: \"\n\t\t\t\t\t+ source.getAbsolutePath());\n\t\t} catch (IOException ex) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn size();\n\t}", "public int randomGene();", "public final native void setPerunSourceAttribute(String attribute) /*-{\n\t\tthis.perunSourceAttribute = attribute;\n\t}-*/;", "public void setHeuristic(int heuristic) {\n\t\tthis.heuristic = heuristic;\n\t}", "public void setLegalEntitySource(final LegalEntitySource legalEntitySource) {\n put(ORGANIZATION_SOURCE_NAME, legalEntitySource);\n }", "public void createHSMapping(\n\t\t\tSpatialEntitySet sourceSESet) {\n\t\tthis.shMapping.forEach((se,hrHash)->{\n\t\t\tif (!hrHash.isEmpty()\n\t\t\t\t\t&&sourceSESet.seHash.containsKey(\n\t\t\t\t\t\t\tse.getLeft())) {\n\t\t\t\tfor (int hrIndex: hrHash) {\n\t\t\t\t\tif (!this.hsMapping.containsKey(hrIndex)) {\n\t\t\t\t\t\tthis.hsMapping.put(hrIndex, \n\t\t\t\t\t\t\t\tnew SpatialEntitySet());\n\t\t\t\t\t}\n\t\t\t\t\tthis.hsMapping.get(hrIndex).addSE(\n\t\t\t\t\t\t\tse.getLeft(), se.getRight());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//process target se next\n\t\tthis.shMapping.forEach((se,hrHash)->{\n\t\t\tif (!hrHash.isEmpty()\n\t\t\t\t\t&&!sourceSESet.seHash.containsKey(\n\t\t\t\t\t\t\tse.getLeft())) {\n\t\t\t\tfor (int hrIndex: hrHash) {\n\t\t\t\t\tif (this.hsMapping.containsKey(hrIndex)) {\n\t\t\t\t\t\tthis.hsMapping.get(hrIndex).addSE(\n\t\t\t\t\t\t\t\tse.getLeft(), se.getRight());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void setEntropy(String entropy) {\n // String oldEntropy = entropy;\n _entropy = entropy;\n\n }", "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "java.lang.String getSourceColumnName();", "public int mutateGene(int gene);", "java.lang.String getAssociatedSource();", "@Override\n\tpublic void setGLSeqNum(BigInteger arg0) {\n\n\t}", "public Gene(double value){\n\t\tthis(value, -1, 1, 1);\n\t}", "@Override\n public void upsertRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n LineageEntity firstEnd = lineageRelationship.getSourceEntity();\n LineageEntity secondEnd = lineageRelationship.getTargetEntity();\n\n upsertToGraph(firstEnd, secondEnd, lineageRelationship.getTypeDefName(), lineageRelationship.getGuid());\n\n BiConsumer<GraphTraversalSource, LineageRelationship> addOrUpdatePropertiesEdge = this::addOrUpdatePropertiesEdge;\n commit(graphFactory, g, addOrUpdatePropertiesEdge, g, lineageRelationship,\n UNABLE_TO_ADD_PROPERTIES_ON_EDGE_FROM_RELATIONSHIP_WITH_TYPE +\n lineageRelationship.getTypeDefName() + AND_GUID + lineageRelationship.getGuid());\n }", "public void editMappingSource(Object setupDialog, Object tblLocationSource){\n\t\tObject selectedItem = getSelectedItem(tblLocationSource);\n\t\tObject attachedObject = getAttachedObject(selectedItem, MappingSetup.class);\n\t\tif(attachedObject instanceof MappingSetup){\n\t\t\tMappingSetup setup = (MappingSetup)attachedObject;\n\t\t\tui.setAttachedObject(setupDialog, setup);\n\t\t\t\n\t\t\tui.setText(fields.txtSourceName, setup.getName());\n\t\t\tui.setText(fields.txtSourceURL, setup.getSourceURL());\n\t\t\tui.setSelected(fields.chkSourceDefault, setup.isDefaultSetup());\n\t\t\t\n\t\t\tui.setEnabled(fields.btnSave, true);\n\t\t\tui.setEnabled(fields.btnDelete, true);\n\t\t\tui.setEnabled(fields.btnCancel, true);\n\t\t}\n\t}", "public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }", "protected void onChange_BirthProbability() {\n onChange_BirthProbability_xjal( BirthProbability );\n }", "public void setInspirationalQuoteSource(String inspirationalQuoteSource) {\n\t\tthis.inspirationalQuoteSource = inspirationalQuoteSource;\n\t}", "public static void stringToGene( String gene ){}", "public void setGx(final double gx) {\n mGx = gx;\n }", "public Gel_BioInf_Models.VirtualPanel.Builder setGeneIds(java.util.List<java.lang.String> value) {\n validate(fields()[4], value);\n this.geneIds = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public Entity.ID getSourceID() {\n return sourceID;\n }" ]
[ "0.560299", "0.55723107", "0.52382034", "0.5177441", "0.5154985", "0.51488185", "0.5094869", "0.5091877", "0.50782824", "0.50653684", "0.50454617", "0.5044639", "0.49906763", "0.4981824", "0.49439123", "0.49375737", "0.4934771", "0.49091902", "0.49067235", "0.48912206", "0.4888874", "0.48729455", "0.48645818", "0.4843605", "0.4820804", "0.4820804", "0.4789029", "0.47788304", "0.4777786", "0.47724667", "0.4713599", "0.47070312", "0.4706914", "0.47057056", "0.4701541", "0.46948636", "0.46909565", "0.46903524", "0.46822497", "0.46814442", "0.46725345", "0.46704635", "0.4663466", "0.46590045", "0.46455505", "0.46413475", "0.46294686", "0.4623291", "0.4604954", "0.46028018", "0.45963", "0.45862746", "0.45784158", "0.45754832", "0.4557903", "0.45559675", "0.45330554", "0.45287928", "0.4523121", "0.4521135", "0.45184633", "0.45131338", "0.45104414", "0.4477796", "0.44768742", "0.44758236", "0.44668987", "0.44422218", "0.4436664", "0.44345096", "0.44286433", "0.4426598", "0.4421171", "0.4414645", "0.44040808", "0.4400468", "0.4399968", "0.4399265", "0.43905073", "0.4389932", "0.4385246", "0.4380241", "0.43762112", "0.43704486", "0.43652964", "0.43534246", "0.4351521", "0.43505397", "0.43415603", "0.43386665", "0.43368596", "0.43332133", "0.43259728", "0.4320645", "0.43202063", "0.43190035", "0.43151128", "0.43091512", "0.4300417" ]
0.44941023
64
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.description
@ApiModelProperty(value = "描述") public String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Column(name = \"DESCRIPTION\", length = 200 )\n public String getDescription() {\n return description;\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "@Column(name = \"description\", nullable = false)\n public String getDescription() {\n\treturn this.description;\n }", "public String getDescription() {\n return metadata_.description;\n }", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "@ApiModelProperty(value = \"族谱名\")\n public String getGenealogyName() {\n return genealogyName;\n }", "@Updatable\n public String getDescription() {\n return description;\n }", "@Override\n\t@Column(name = \"leadTypeDescription\", length = 128, nullable = true)\n\tpublic String getDescription()\n\t{\n\t\treturn super.getDescription();\n\t}", "public String getDescription() {\n \treturn metricMetadata.getDescription();\n }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public StrColumn getRevisionDescription() {\n return delegate.getColumn(\"revision_description\", DelegatingStrColumn::new);\n }", "public String getDescription() {\n EditText descriptionField = (EditText) rootView.findViewById(R.id.hazard_description);\n return descriptionField.getText().toString();\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "@ApiModelProperty(value = \"族谱ID\")\n public Long getGenealogyId() {\n return genealogyId;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n return _description;\r\n }", "public java.lang.String getDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public java.lang.String getDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription() {\n\t\treturn this.description;\n\t}", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getHumanReadableDescription();", "public String longDescription() {\n return this.longDescription;\n }", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescription() {\n return this.Description;\n }", "@JsonIgnore\n @Override\n public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String description() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return description; \n }", "@Override\n public String getDescription() {\n return this.description;\n }", "public String get_description() {\n return description;\n }", "public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }", "public java.lang.Object getDescription() {\n return description;\n }", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public String getDescription() {\n\n return this.description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public String description();", "public String getDescription(){\n return description;\n }", "public String getDescription(){\n return description;\n }", "public String getDescription() {\r\n\t\treturn description;\r\n\t}" ]
[ "0.6400121", "0.6176508", "0.6125349", "0.6120397", "0.601646", "0.5979335", "0.59627426", "0.59600204", "0.5952731", "0.58915055", "0.58915055", "0.58915055", "0.58915055", "0.582264", "0.5820676", "0.58060515", "0.5794866", "0.578338", "0.57678366", "0.57664514", "0.5757166", "0.5752931", "0.5750059", "0.57361215", "0.5731648", "0.5731648", "0.5731648", "0.57306623", "0.57306623", "0.57306623", "0.57306623", "0.57306623", "0.5702119", "0.5699894", "0.5696945", "0.5696945", "0.56912386", "0.5685965", "0.56839746", "0.56826186", "0.5681091", "0.5680241", "0.56714976", "0.567141", "0.5668328", "0.5665318", "0.5665318", "0.5664086", "0.5662633", "0.5660853", "0.5655637", "0.56543255", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653739", "0.5653178", "0.5652278", "0.5651192", "0.5646353", "0.56462973", "0.5643482", "0.5643482", "0.5643482", "0.5643482", "0.5643482", "0.5643482", "0.5643482", "0.5643482", "0.5643482", "0.56408525", "0.5640397", "0.56362903", "0.56362903", "0.56362903", "0.56362903", "0.56362903", "0.56362903", "0.56362903", "0.56362903", "0.56362903", "0.5632926", "0.56302094", "0.56299555", "0.5622569", "0.5622569", "0.5621789" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.description
public void setDescription(String description) { this.description = description == null ? null : description.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String description) {\n metadata_.description = description;\n deferredSyncMetadata();\n }", "@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}", "public void setDescription(String newdescription) {\n description=newdescription;\n }", "public void setDescription(String description) {\n this.description = description;\n UnitOfWork.getCurrent().registerDirty(this);\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n if (!isSame(description, super.getDescription()) || this.description != null) {\r\n this.description = description;\r\n super.setDescription(description);\r\n }\r\n }", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_lineaGastoCategoria.setDescription(description);\n\t}", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setValueDescription(String description) {\n this.valueDescription = description;\n }", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\n this.description = description;\n }", "public void setDescription(java.lang.String description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.setStringValue(description);\r\n }\r\n }", "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.setStringValue(description);\n }\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "protected void setDescription(final String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String _description) {\n this._description = _description;\n }" ]
[ "0.6164832", "0.61182463", "0.6094185", "0.6075441", "0.6060184", "0.60358244", "0.6030531", "0.60060716", "0.6005918", "0.5995683", "0.5992335", "0.5976341", "0.59738076", "0.5969648", "0.5963852", "0.5963852", "0.5963852", "0.5963852", "0.5963852", "0.59613264", "0.59613264", "0.5960708", "0.5954363", "0.5954363", "0.5954363", "0.5954363", "0.5954363", "0.5954363", "0.5954363", "0.59471524", "0.5941731", "0.5941731", "0.5941731", "0.5941731", "0.5941731", "0.5931602", "0.5931264", "0.59267795", "0.59245336", "0.59245336", "0.59245336", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591665", "0.591485", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59089947", "0.59065413", "0.59043705", "0.59015095", "0.5881843", "0.58701843", "0.58688545", "0.5862405" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.row_add_time
@ApiModelProperty(value = "创建时间") public Date getRowAddTime() { return rowAddTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"添加时间\")\n\tpublic Date getRowAddTime() {\n\t\treturn rowAddTime;\n\t}", "public Integer getAddTime() {\n return addTime;\n }", "public void setRowAddTime(Date rowAddTime) {\n this.rowAddTime = rowAddTime;\n }", "public Date getAddTime() {\n return addTime;\n }", "public Date getAddtime() {\r\n return addtime;\r\n }", "public Date getAddtime() {\n return addtime;\n }", "public void setRowAddTime(Date rowAddTime) {\n\t\tthis.rowAddTime = rowAddTime;\n\t}", "@Override\n\tpublic Date getAddTime() {\n\t\treturn null;\n\t}", "public LocalDateTime getAddTime() {\n return addTime;\n }", "public LocalDateTime getAddTime() {\n return addTime;\n }", "public LocalDateTime getAddTime() {\n return addTime;\n }", "public void setAddTime(Integer addTime) {\n this.addTime = addTime;\n }", "public String getInserttime() {\n\t\treturn inserttime;\n\t}", "public java.util.Date getAddedTime() {\n return addedTime;\n }", "public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }", "long getTimeBoltDBoltH();", "@ApiModelProperty(value = \"修改时间\")\n public Date getRowUpdateTime() {\n return rowUpdateTime;\n }", "public int getGrowthTime(){\n return this.growthTime;\n }", "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "@Override\n\tpublic Seconds addTime() {\n\t\treturn new HTLSeconds();\n\n\t}", "public Date getInsertTime() {\r\n return insertTime;\r\n }", "public Date getInsertTime() {\n return insertTime;\n }", "long getTimeBoltHBoltE();", "public int getExtraTimeGiven()\r\n {\r\n return extraTimeGiven;\r\n }", "public String getAdded() {\n return getCellContent(ADDED);\n }", "public Date getTimestamp() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_timestamp;\n\t}", "public Criteria andAddTimeEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"add_time = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "float getTimeRecord();", "@AutoEscape\n\tpublic String getEntityAddDate();", "public Criteria andAddTimeEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"add_time = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private long baseTime() {\n return Bytes.getUnsignedInt(row, tsdb.metrics.width());\n }", "public Criteria andAddTimeEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"add_time = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void setAddtime(Date addtime) {\r\n this.addtime = addtime;\r\n }", "public long getTime(){\n return this.time;\n }", "public java.sql.Time getARRIVAL_AT_LOC_TIME()\n {\n \n return __ARRIVAL_AT_LOC_TIME;\n }", "BigInteger getResponse_time();", "public void setAddtime(Date addtime) {\n this.addtime = addtime;\n }", "public int getTime() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getTime();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"time\"));\n }\n }", "public int getAdditionalRunTime() {\n return additionalRunTime;\n }", "public Long getTime() {\n return time;\n }", "public long getTime() {\n\t\tDate _date = new Date();\n\t\tlong _time = _date.getTime();\n\t\t_time = _time + getDeltaDate();\n\t\treturn _time;\n\t}", "public BigInteger getTime() {\n\t\treturn time;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public int addRow() {\n\t\t// Create a new row with nothing in it\n\t\tList row = new ArrayList();\n\t\treturn(addRow(row));\n\t}", "double getRelativeTime() {\n return relativeTime;\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "@Override\r\n\tpublic Log add(Log log) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog l = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(Add, PreparedStatement.RETURN_GENERATED_KEYS);\r\n\t\t\tps.setTimestamp(1, log.getTime());\r\n\t\t\tps.setInt(2, log.getEmpId());\r\n\t\t\tps.setString(3, log.getEmpName());\r\n\t\t\tps.setString(4, log.getTopName());\r\n\t\t\tps.setString(5, log.getTopUsername());\r\n\t\t\tps.setString(6, log.getBottomName());\r\n\t\t\tps.setString(7, log.getBottomUsername());\r\n\t\t\tps.setString(8, log.getOperation());\r\n\t\t\tps.setString(9, log.getType());\r\n\t\t\tint cnt = ps.executeUpdate();\r\n\t\t\tif (cnt > 0) {\r\n\t\t\t\tResultSet rs = ps.getGeneratedKeys();\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\tl = get(rs.getInt(1));\r\n\t\t\t\t}\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 l;\r\n\t}", "@Override\r\n\tpublic long getTime() {\n\t\treturn this.time;\r\n\t}", "@MavlinkFieldInfo(\n position = 1,\n unitSize = 8,\n description = \"Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.\"\n )\n public final BigInteger timeUsec() {\n return this.timeUsec;\n }", "@Array({9}) \n\t@Field(24) \n\tpublic Pointer<Byte > InsertTime() {\n\t\treturn this.io.getPointerField(this, 24);\n\t}", "public double getTime() {return _time;}", "public double getTime() {\n return this.time;\n }", "public long getTime() {\r\n \treturn time;\r\n }", "public String getInsTime() {\n return insTime;\n }", "public int getTime() { return _time; }", "public Date getLogtime()\r\n {\r\n return logtime;\r\n }", "public double getTime() { return time; }", "public float getTimeRecord() {\n return timeRecord_;\n }", "public long getElapsedTime() {\n long additionalRealTime = 0;\n\n if(mStartTime > 0) {\n additionalRealTime = System.currentTimeMillis() - mStartTime;\n }\n return mElapsedTime + additionalRealTime;\n }", "@Override\n public long getTime() {\n return time;\n }", "public int getLTime() {\n return lTime;\n }", "public Date getDateOfAdded() {\n\t\treturn dateOfAdded;\n\t}", "public long getTime() {\n return _time;\n }", "@java.lang.Override\n public long getTime() {\n return time_;\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public String getDateAdded() {\n return dateAdded;\n }", "@ApiModelProperty(value = \"The timestamp that the `last_price` represents.\")\n public OffsetDateTime getTime() {\n return time;\n }", "public java.lang.Integer getTime() {\n return time;\n }", "public static String addTime(String time, int increase)\r\n/* 96: */ {\r\n/* 97:129 */ SimpleDateFormat format = new SimpleDateFormat(\"HH:mm\");\r\n/* 98:130 */ String retTime = \"\";\r\n/* 99: */ try\r\n/* 100: */ {\r\n/* 101:133 */ Date date = format.parse(time);\r\n/* 102:134 */ long Time = date.getTime() / 1000L + increase * 60;\r\n/* 103:135 */ date.setTime(Time * 1000L);\r\n/* 104:136 */ retTime = format.format(date);\r\n/* 105: */ }\r\n/* 106: */ catch (Exception localException) {}\r\n/* 107:141 */ return retTime;\r\n/* 108: */ }", "public float getTimeRecord() {\n return timeRecord_;\n }", "public GenerationTiming getGenerationTiming() {\n return GenerationTiming.INSERT;\n }", "public int getTime() {\r\n return time;\r\n }", "public java.sql.Timestamp getLogdate()\n {\n return logdate; \n }", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "@javax.annotation.Nullable\n public Long getTime() {\n return time;\n }", "public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}", "public long getTime() {\n return time;\n }", "public DateTime ingestionTime() {\n return this.ingestionTime;\n }", "public Timestamp getInsertionTime() {\n\t\treturn m_InsertionTime;\n\t}", "public java.sql.Time getTime(String attr) {\n return (java.sql.Time) super.get(attr);\n }", "@Override\n\tpublic String getTime() {\n\t\treturn time;\n\t}", "public long getTime() {\r\n\t\treturn time;\r\n\t}", "public java.lang.Integer getTime() {\n return time;\n }", "public int getArrivalTime()\n {\n return arrivalTime;\n }", "public String getUpdTime() {\n return updTime;\n }", "public String getTime() {\n return this.time;\n }", "public long getArrivalTime()\n {\n return arrivalTime;\n }", "public long getTime() {\n return time_;\n }", "public long getTime() {\n return time_;\n }", "public long getTime() {\n return time_;\n }", "public Taxi getLastInserted() {\n\t\t\n\t\tprepareStatement();\n\t\t\n\t\tquery = \"SELECT * FROM TAXI ORDER BY update DESC LIMIT 1\";\n\t\t\n\t\tlogger.debug(\"Taxi ->getLastInserted()\");\n\t\tlogger.debug(query);\n\t\t\n\t\texecuteStatement();\t\n\t\t\n\t\tassignResult();\n\t\t\n\t\treturn taxi;\n\t}", "public long getTimeBoltDBoltH() {\n return timeBoltDBoltH_;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public Date getTimeUpdate() {\n return timeUpdate;\n }", "public int getTime() {\n\t\treturn time;\n\t}" ]
[ "0.7462721", "0.68625957", "0.658502", "0.64910614", "0.64844674", "0.64751226", "0.6424929", "0.6076546", "0.5967661", "0.5967661", "0.5967661", "0.5664962", "0.5655199", "0.5653515", "0.5514585", "0.5458505", "0.5418853", "0.5415254", "0.53790295", "0.5370225", "0.5350415", "0.5337687", "0.5325607", "0.5270348", "0.52697253", "0.5263785", "0.5254986", "0.52515215", "0.52500075", "0.52488494", "0.5245904", "0.52257943", "0.52078503", "0.5204324", "0.5199521", "0.5192762", "0.51860464", "0.51797223", "0.5170247", "0.5161859", "0.5160547", "0.51559186", "0.51544034", "0.51544034", "0.5138538", "0.51259923", "0.5101952", "0.51011837", "0.51005447", "0.5098831", "0.5093711", "0.50868547", "0.50861895", "0.5086175", "0.50791216", "0.5067822", "0.50464445", "0.50293535", "0.50179017", "0.50127447", "0.5012558", "0.49978304", "0.4993066", "0.4985351", "0.49797523", "0.49745736", "0.49745736", "0.49745736", "0.49732202", "0.4971793", "0.49691597", "0.49633372", "0.49629906", "0.49627906", "0.49488473", "0.49469736", "0.49469033", "0.4944653", "0.49443138", "0.494378", "0.49322227", "0.49308383", "0.49298623", "0.4922237", "0.49221632", "0.49192026", "0.49150172", "0.49127644", "0.49104652", "0.49100417", "0.49078864", "0.49078864", "0.49078864", "0.4900907", "0.48894295", "0.48829436", "0.48829436", "0.48829436", "0.48811305", "0.4880435" ]
0.71470696
1
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.row_add_time
public void setRowAddTime(Date rowAddTime) { this.rowAddTime = rowAddTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowAddTime(Date rowAddTime) {\n\t\tthis.rowAddTime = rowAddTime;\n\t}", "@ApiModelProperty(value = \"添加时间\")\n\tpublic Date getRowAddTime() {\n\t\treturn rowAddTime;\n\t}", "public void setAddTime(Integer addTime) {\n this.addTime = addTime;\n }", "@ApiModelProperty(value = \"创建时间\")\n public Date getRowAddTime() {\n return rowAddTime;\n }", "public void setAddtime(Date addtime) {\r\n this.addtime = addtime;\r\n }", "public void setAddtime(Date addtime) {\n this.addtime = addtime;\n }", "@Override\n\tpublic void setAddTime(Date addTime) {\n\t\t\n\t}", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public Date getAddtime() {\r\n return addtime;\r\n }", "public Integer getAddTime() {\n return addTime;\n }", "public Date getAddtime() {\n return addtime;\n }", "public Date getAddTime() {\n return addTime;\n }", "public void addValueTime(IValueTime vt){\n \tthis.generator.addValueTime(vt);\n }", "public void setAddedTime(java.util.Date newAddedTime) {\n this.addedTime = newAddedTime;\n }", "@Override\n\tpublic Date getAddTime() {\n\t\treturn null;\n\t}", "public Criteria andAddTimeEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"add_time = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void setRowUpdateTime(Date rowUpdateTime) {\n this.rowUpdateTime = rowUpdateTime;\n }", "public Criteria andAddTimeEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"add_time = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }", "public Criteria andAddTimeEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"add_time = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "public void addStoredTime(long timeInMilliseconds){\n mStoredTime += timeInMilliseconds;\n }", "public void addTime(long time)\r\n {\r\n listOfTimes.add(time);\r\n }", "public void addTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), TIME, value);\r\n\t}", "public LocalDateTime getAddTime() {\n return addTime;\n }", "public LocalDateTime getAddTime() {\n return addTime;\n }", "public LocalDateTime getAddTime() {\n return addTime;\n }", "protected void addNewRow(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n this.isNotNullValue[i] = true;\n aggregators[i].agg(row[i]);\n }\n }\n prvKey = (byte[]) row[this.keyIndex];\n calculateMaxMinUnique();\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "public void setEntityAddDate(String entityAddDate);", "public void addTimesheetRow(TimesheetRow tsRow) {\n\t\tservice.addTimesheetRow(tsRow);\n\t\ttimesheetRowList.add(tsRow);\n\t}", "public void setRowUpdateTime(Date rowUpdateTime) {\n\t\tthis.rowUpdateTime = rowUpdateTime;\n\t}", "@Override\n\tpublic Seconds addTime() {\n\t\treturn new HTLSeconds();\n\n\t}", "void setReportTime(long time);", "public void setInserttime(String inserttime) {\n\t\tthis.inserttime = inserttime;\n\t}", "public abstract TimeObject add(long time, int val);", "public void setLineTime( float newLineTime )\n\t{\n\t\tlineTime = newLineTime;\n\t}", "@ApiModelProperty(value = \"修改时间\")\n public Date getRowUpdateTime() {\n return rowUpdateTime;\n }", "public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}", "int addRow(RowData row_data) throws IOException;", "private void defineColumn_ExifTime() {\r\n\r\n\t\tfinal ColumnDefinition colDef = TableColumnFactory.PHOTO_FILE_TIME.createColumn(_columnManager, _pc);\r\n\t\tcolDef.setLabelProvider(new CellLabelProvider() {\r\n\t\t\t@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\r\n\r\n\t\t\t\tfinal Photo photo = (Photo) cell.getElement();\r\n\r\n\t\t\t\tcell.setText(_timeFormatter.print(photo.imageExifTime));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "public static String addTime(String time, int increase)\r\n/* 96: */ {\r\n/* 97:129 */ SimpleDateFormat format = new SimpleDateFormat(\"HH:mm\");\r\n/* 98:130 */ String retTime = \"\";\r\n/* 99: */ try\r\n/* 100: */ {\r\n/* 101:133 */ Date date = format.parse(time);\r\n/* 102:134 */ long Time = date.getTime() / 1000L + increase * 60;\r\n/* 103:135 */ date.setTime(Time * 1000L);\r\n/* 104:136 */ retTime = format.format(date);\r\n/* 105: */ }\r\n/* 106: */ catch (Exception localException) {}\r\n/* 107:141 */ return retTime;\r\n/* 108: */ }", "protected void setTimestamp(long time) \n {\n\t\tlTimestamp = time;\n\t}", "public void setInsertTime(Date insertTime) {\r\n this.insertTime = insertTime;\r\n }", "public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }", "public void setTime(long time)\n {\n this.time = time;\n\n }", "public static void AddFlight(Flight flight){\n\n //java.sql.Date sqlDate = new java.sql.Date(flight.getDatetime());\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateString(\"FlightNumber\", flight.getFlightNumber());\n resultSet.updateString(\"DepartureAirport\", flight.getDepartureAirport());\n resultSet.updateString(\"DestinationAirport\", flight.getDestinationAirport());\n resultSet.updateDouble(\"Price\", flight.getPrice());\n\n //Ask Andrew\n// java.sql.Date sqlDate = new java.sql.Date();\n// resultSet.updateDate(\"datetime\", flight.getDatetime());\n resultSet.updateString(\"Plane\", flight.getPlane());\n resultSet.updateInt(\"SeatsTaken\", flight.getSeatsTaken());\n \n resultSet.insertRow();\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n \n }", "public void setInsertTime(Date insertTime) {\n this.insertTime = insertTime;\n }", "public String getInserttime() {\n\t\treturn inserttime;\n\t}", "public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }", "void addDate(long t) {\n\tif (act != null) {\n\t long date = act.getDate() + t;\n\t act.setLocation(act.getMap(), act.getX(), act.getY(), date);\n\t}\n }", "public void setAddUser(Long addUser) {\n this.addUser = addUser;\n }", "public void setTime(long time) {\r\n this.time = time;\r\n }", "public void setTime(long time) {\n this.time = time;\n }", "public void setTime(Long time) {\n this.time = time;\n }", "private void addEntity(double[][] userItemData, Entity e, int row) {\n userIDIndexMapping.put(row, (String) e.getProperty(\"userID\"));\n for (String item : e.getProperties().keySet()) {\n if (DatabaseUtils.AGG_ENTITY_ID_PROPERTIES.contains(item)) {\n continue;\n }\n userItemData[row][itemIndexMapping.indexOf(item)] = (double) e.getProperty(item);\n }\n }", "public void setDia_especifico(java.sql.Timestamp newDia_especifico);", "public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}", "public Date getInsertTime() {\r\n return insertTime;\r\n }", "@Override\r\n\tpublic Log add(Log log) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog l = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(Add, PreparedStatement.RETURN_GENERATED_KEYS);\r\n\t\t\tps.setTimestamp(1, log.getTime());\r\n\t\t\tps.setInt(2, log.getEmpId());\r\n\t\t\tps.setString(3, log.getEmpName());\r\n\t\t\tps.setString(4, log.getTopName());\r\n\t\t\tps.setString(5, log.getTopUsername());\r\n\t\t\tps.setString(6, log.getBottomName());\r\n\t\t\tps.setString(7, log.getBottomUsername());\r\n\t\t\tps.setString(8, log.getOperation());\r\n\t\t\tps.setString(9, log.getType());\r\n\t\t\tint cnt = ps.executeUpdate();\r\n\t\t\tif (cnt > 0) {\r\n\t\t\t\tResultSet rs = ps.getGeneratedKeys();\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\tl = get(rs.getInt(1));\r\n\t\t\t\t}\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 l;\r\n\t}", "public void addExtraTime (int t) {\n\t\textraTime += t;\n\t\textTime.setText(String.valueOf(extraTime));\n\t}", "public void write(int rowNum, int columnNum, long algorithmTime){\n row = sheet.getRow(rowNum);\n cell = row.createCell(columnNum);\n cell.setCellValue(algorithmTime);\n }", "public void setTime(long time,int ento){ \r\n\t}", "protected void addRowAttributes(TableRowBuilder row) {\n }", "public java.util.Date getAddedTime() {\n return addedTime;\n }", "public void addTimeTable(TimeTable timetable) {\n\t\t\n\t}", "@DSSafe(DSCat.UTIL_FUNCTION)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.275 -0500\", hash_original_method = \"58DD96CFC8DDA00016DEC24CC6519017\", hash_generated_method = \"1F810C618BA62488684578EB05C3C6A1\")\n \n@Override\n public void setTime(long theTime) {\n /*\n * Store the Date based on the supplied time after removing any time\n * elements finer than the day based on zero GMT\n */\n super.setTime(normalizeTime(theTime));\n }", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "public Criteria andAddTimeLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"add_time <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\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 }", "public void add(String[] row) {\r\n\t\tthis.df.add(row);\r\n\t}", "public Criteria andAddTimeLessThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"add_time <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Date getInsertTime() {\n return insertTime;\n }", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "void setFetchedDate(long time);", "@Override\n\tpublic int insert(RcuSettime record) {\n\t\treturn rcuSettimeMapper.insert(record);\n\t}", "public int addRow(List row) {\n\t\tdata.add(row);\n\t\tfireTableRowsInserted(data.size()-1, data.size()-1);\n\t\treturn(data.size() -1);\n\t}", "public int addRow() {\n\t\t// Create a new row with nothing in it\n\t\tList row = new ArrayList();\n\t\treturn(addRow(row));\n\t}", "public void addRow(String rowName);", "public void addLockFieldsToUpdateRow(AbstractRecord databaseRow, AbstractSession session) {\r\n if (isStoredInCache()) {\r\n databaseRow.put(getWriteLockField(), null);\r\n }\r\n }", "public void setARRIVAL_AT_LOC_TIME(java.sql.Time value)\n {\n if ((__ARRIVAL_AT_LOC_TIME == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_TIME)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_TIME = value;\n }", "public void setTime(long time) {\r\n this.time.setTime(time);\r\n }", "@AutoEscape\n\tpublic String getEntityAddDate();", "public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }", "public void addExecutionAttempt(long time) {\n\t\t// add execution time \n\t\tthis.executionAttempts.add(time);\n\t}", "@Override\n protected final Void updateKeyAfterInsert(VaccineInjectTimes entity, long rowId) {\n return null;\n }", "@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}", "public Builder addRow(io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }", "public Criteria andAddTimeLessThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"add_time <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public boolean addTime(double time) {\n this.time += time;\n if(time > 0)\n return true;\n else \n return false;\n }", "protected void addRowAttributes(TableRowBuilder row, T rowValue) {\n addRowAttributes(row);\n }", "public void setTime(long elapseTime) {\r\n\t\tsecond = (elapseTime / 1000) % 60;\r\n\t\tminute = (elapseTime / 1000) / 60 % 60;\r\n\t\thour = ((elapseTime / 1000) / 3600) % 24;\t\r\n\t}", "public void dbAddRow(EdaContext xContext)\n\tthrows IcofException{\n\n\t\t// Get the next id for this new row.\n\t\tsetNextIdStatement(xContext);\n\t\tlong id = getNextBigIntId(xContext);\n\t\tcloseStatement(xContext);\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetAddRowStatement(xContext);\n\t\ttry {\n\t\t\tgetStatement().setLong(1, id);\n\t\t\tgetStatement().setLong(2, getFromChangeReq().getId());\n\t\t\tgetStatement().setLong(3, getToChangeReq().getId());\n\t\t\tgetStatement().setString(4, getRelationshipb());\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! insertRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to insert new row.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t\t// Load the data for the new row.\n\t\tsetId(id);\n\t\tdbLookupById(xContext); \n\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastTableRowEdit();", "public Criteria andAddTimeGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"add_time >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void setTime(double time) {_time = time;}", "public void setRow(int newRow) {\n this.row = newRow;\n }" ]
[ "0.73589516", "0.6742724", "0.6505264", "0.64095265", "0.6347822", "0.6310253", "0.61668956", "0.5789038", "0.5789038", "0.5789038", "0.56858456", "0.56658053", "0.5620409", "0.5584148", "0.5466335", "0.5436862", "0.53374845", "0.5243341", "0.5208393", "0.51923925", "0.5162395", "0.5150134", "0.5142115", "0.51151896", "0.5113277", "0.5101765", "0.5085954", "0.5085954", "0.5085954", "0.50843865", "0.50759387", "0.5071392", "0.50653917", "0.5065352", "0.50583196", "0.5055608", "0.5035199", "0.50080544", "0.49890518", "0.49608955", "0.49355194", "0.49166098", "0.49097967", "0.49033985", "0.49030322", "0.48748672", "0.48607942", "0.48489568", "0.48472017", "0.4846086", "0.48074597", "0.47995466", "0.47965434", "0.47733566", "0.47691128", "0.47644842", "0.47561687", "0.47387144", "0.47367048", "0.47362137", "0.4726217", "0.47126472", "0.47107887", "0.4703699", "0.4702757", "0.4695205", "0.46892473", "0.4683571", "0.4676763", "0.46747887", "0.46712083", "0.46708536", "0.46701458", "0.46678457", "0.4661949", "0.46591073", "0.46542585", "0.46507457", "0.46500534", "0.46414194", "0.46399066", "0.4636525", "0.4628842", "0.46274814", "0.4625008", "0.46246937", "0.46231553", "0.4616078", "0.46093923", "0.4609089", "0.46054614", "0.4601989", "0.4594796", "0.45918447", "0.45881516", "0.45823005", "0.45773554", "0.4568573", "0.45659998", "0.45638555" ]
0.7506577
0
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.row_update_time
@ApiModelProperty(value = "修改时间") public Date getRowUpdateTime() { return rowUpdateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "int getUpdateTriggerTime();", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public int getUpdateTriggerTime() {\n return updateTriggerTime_;\n }", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public Date getTimeUpdate() {\n return timeUpdate;\n }", "public java.lang.Long getTsUpdate() {\n return ts_update;\n }", "public int getUpdateTriggerTime() {\n return instance.getUpdateTriggerTime();\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public java.lang.Long getTsUpdate() {\n return ts_update;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "long getTsUpdate();", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public long getTsUpdate() {\n return tsUpdate_;\n }", "public long getTsUpdate() {\n return tsUpdate_;\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Integer getUpdateTime() {\n return updateTime;\n }", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdateTime() {\n return updateTime;\n }", "public com.flexnet.opsembedded.webservices.DateTimeQueryType getUpdateTime() {\n return updateTime;\n }", "public Long getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime()\n {\n return data.updateTime;\n }", "public long getUpdate();", "public Long getUpdateTime() {\n return updateTime;\n }", "public Long getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTimestamp() {\n return updateTimestamp;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "public Date getUpdateTimeDb() {\r\n\t\treturn updateTimeDb;\r\n\t}", "public Date getUpdateTimestamp() {\r\n return updateTimestamp;\r\n }", "public String getUpdateTime() {\r\n return updateTime;\r\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateDatetime();", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "public Date getUpdateTime() {\n\t\treturn this.updateTime;\n\t}", "public String getUpdTime() {\n return updTime;\n }", "public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }", "public String getUpdateTime() {\n\t\t\treturn updateTime;\n\t\t}", "public Date getUpdateTime() {\n return this.updateTime;\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getTimestamp() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_timestamp;\n\t}", "long getTimeBoltDBoltH();", "long getLastUpdatedTime();", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }" ]
[ "0.6913593", "0.66721684", "0.66476136", "0.66370255", "0.6580838", "0.6580838", "0.6522369", "0.6489417", "0.6482856", "0.64297146", "0.64297146", "0.6413298", "0.6409858", "0.6382894", "0.6382894", "0.6378927", "0.63729215", "0.6316624", "0.62894773", "0.624526", "0.624526", "0.62281764", "0.62281764", "0.62281764", "0.6215777", "0.62121934", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61850077", "0.61821944", "0.6179593", "0.6170894", "0.6126974", "0.61227566", "0.61142135", "0.61142135", "0.6093206", "0.6090367", "0.60771424", "0.60754085", "0.6063645", "0.60321695", "0.6023856", "0.60085046", "0.600506", "0.600506", "0.600506", "0.600506", "0.6002709", "0.5990084", "0.59676623", "0.59671366", "0.59631485", "0.59584415", "0.59579146", "0.59271353", "0.5925704", "0.59195274", "0.59195274", "0.59195274", "0.5907604", "0.59066296", "0.59066296", "0.59066296", "0.59066296", "0.59029144", "0.5902743", "0.59002316", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877", "0.58831877" ]
0.6772085
1
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.row_update_time
public void setRowUpdateTime(Date rowUpdateTime) { this.rowUpdateTime = rowUpdateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowUpdateTime(Date rowUpdateTime) {\n\t\tthis.rowUpdateTime = rowUpdateTime;\n\t}", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }", "public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }", "public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }", "public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }", "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "public void setUpdateTime (java.sql.Timestamp updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "@ApiModelProperty(value = \"修改时间\")\n public Date getRowUpdateTime() {\n return rowUpdateTime;\n }", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateDatetime(Long updateDatetime) {\n this.updateDatetime = updateDatetime;\n }", "public void setUpdateTime(Integer updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Long updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Long updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(DateTime updateTime) {\n this.updated = updateTime;\n }", "@Override\n\tpublic void setUpdateTime(Date updateTime) {\n\t\t\n\t}", "public void setUpdateTime(Long updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Timestamp updateTime) {\n this.updateTime = updateTime;\n }", "public void setTimeOfLastValuesChanged(long millis);", "void setLastUpdatedTime();", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTimeDb(Date updateTimeDb) {\r\n\t\tthis.updateTimeDb = updateTimeDb;\r\n\t}", "int getUpdateTriggerTime();", "public void setUpdateTime(Date updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public int getUpdateTriggerTime() {\n return updateTriggerTime_;\n }", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateDatetime(Date updateDatetime);", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public void setUpdateTime(String updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(String updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateDatetime(Date updateDatetime) {\r\n\t\tthis.updateDatetime = updateDatetime;\r\n\t}", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public void setRowAddTime(Date rowAddTime) {\n this.rowAddTime = rowAddTime;\n }", "public void setUpdateTime(com.flexnet.opsembedded.webservices.DateTimeQueryType updateTime) {\n this.updateTime = updateTime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "public void setUpdateTime(java.util.Date updateTime) {\n this.updateTime = updateTime;\n }", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public void setUpdateTime(String updateTime) {\n\t\t\tthis.updateTime = updateTime;\n\t\t}" ]
[ "0.6580087", "0.6292855", "0.6292855", "0.62270135", "0.6191134", "0.6191134", "0.6164612", "0.61568743", "0.61498713", "0.60364336", "0.6006499", "0.6006499", "0.5922883", "0.5802973", "0.5767473", "0.5767473", "0.57491696", "0.5748633", "0.5725332", "0.57163894", "0.56891406", "0.5677605", "0.5671024", "0.5671024", "0.5671024", "0.5639991", "0.5639991", "0.5639991", "0.5639991", "0.5634713", "0.56254554", "0.55798024", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55613136", "0.55501646", "0.5549636", "0.55284965", "0.5524596", "0.5524596", "0.5524596", "0.550786", "0.54336154", "0.54303247", "0.54303247", "0.5429534", "0.54285884", "0.5423637", "0.5414668", "0.5408066", "0.5405854", "0.5405854", "0.5398409", "0.5398409", "0.5386268", "0.5376693", "0.5351431", "0.5351431", "0.53449816" ]
0.66772
0
Function will create index folders from parsed files
public CreateIndex(File selectedFolder) { File selectedFilePeople = new File(selectedFolder + Settings.nameOfPeopleFile); File selectedFileEvents = new File(selectedFolder + Settings.nameOfEventsFile); try { peopleAndEventsCreate(selectedFolder, selectedFilePeople, Settings.nameOfLuceneIndexPeople); peopleAndEventsCreate(selectedFolder, selectedFileEvents, Settings.nameOfLuceneIndexEvents); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createIndex(String dataDirPath){\n\t\tFile[] files = new File(dataDirPath).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif(!file.isDirectory()\n\t\t\t\t\t&& !file.isHidden()\n\t\t\t\t\t&& file.exists()\n\t\t\t\t\t){\n\t\t\t\t//add to Map\n\t\t\t\t// m.put(file.getAbsolutePath(), new RankModel(file,0,getOutLinks(file.getAbsolutePath())));\n\t\t\t\tallFiles.add(file.getAbsolutePath());\n\t\t\t}else{\n\t\t\t\tcreateIndex(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\t// return writer.numDocs();\n\t}", "@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }", "public void createIndex(String dirPath) throws IOException {\n\n\t\tFile[] files = new File(dirPath).listFiles();\n\n\t\tfor (File f : files) {\n\t\t\tindexDocument(f);\n\t\t}\n\n\t\tclose();\n\t\tprintStatistics();\n\t}", "public void indexFileOrDirectory(String fileName) {\r\n\r\n addFiles(new File(fileName));\r\n\r\n int originalNumDocs = writer.numRamDocs();\r\n for (File f : queue) {\r\n try {\r\n Document doc = new Document();\r\n\r\n // Creation of a simpledateformatter in order to print the last-modified-date of our files.\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\r\n String date = sdf.format(f.lastModified());\r\n\r\n if (f.getName().endsWith(\".html\")) {\r\n\r\n // Creation of a jsoup document to help us with our html parsing.\r\n org.jsoup.nodes.Document htmlFile = Jsoup.parse(f, null);\r\n String body = htmlFile.body().text();\r\n String title = htmlFile.title();\r\n String summary = getSummary(htmlFile);\r\n\r\n\r\n doc.add(new TextField(\"contents\", body + \" \" + title + \" \" + date, Field.Store.YES));\r\n doc.add(new TextField(\"title\", title, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n doc.add(new StringField(\"summary\", summary, Field.Store.YES));\r\n\r\n }\r\n else {\r\n String content = FileUtils.readFileToString(f, StandardCharsets.UTF_8);\r\n\r\n doc.add(new TextField(\"contents\", content + \" \" + date, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n }\r\n doc.add(new StringField(\"filename\", f.getName(), Field.Store.YES));\r\n\r\n writer.addDocument(doc);\r\n System.out.println(\"Added: \" + f);\r\n } catch (Exception e) {\r\n System.out.println(\"Could not add: \" + f);\r\n }\r\n }\r\n\r\n int newNumDocs = writer.numDocs();\r\n System.out.println(\"\");\r\n System.out.println(\"************************\");\r\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\r\n System.out.println(\"************************\");\r\n\r\n queue.clear();\r\n }", "public int createIndex(String dataDirPath, FileFilter filter) throws IOException {\n\t\tFile[] files = new File(dataDirPath).listFiles();\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\tif (!files[i].isDirectory() && !files[i].isHidden() && files[i].exists() && files[i].canRead()\r\n\t\t\t\t\t&& filter.accept(files[i])) {\r\n\t\t\t\tindexFile(files[i], (i % 2));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn writer.numDocs();\r\n\t}", "private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }", "void createIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (!indexDir.exists())\n indexDir.mkdir();\n else {\n removeIndexDir(indexDirPath);\n indexDir.mkdir(); \n }\n }", "public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}", "public void controlIndex(String path)\n { \t \n \t JSONParser parser = new JSONParser();\n \t \n \t try\n \t {\n \t\t JSONArray array = (JSONArray)parser.parse(new FileReader(path));\n \t\t \n \t\t JSONObject jsonObject = new JSONObject();\n \t\t JSONObject metaObj;\n \t\t \n \t\t for(Object obj : array)\n \t\t {\n \t\t\t jsonObject = (JSONObject) obj;\n \t\t\t String p = jsonObject.get(\"p\").toString().replaceAll(\"\\\\\\\\\", \"/\");\n \t\t\t metaObj = (JSONObject) jsonObject.get(\"metadata\");\n \t\t\t \n \t\t\t String title = \"\";\n \t\t\t String description = \"\"; \n \t\t\t if(metaObj.get(\"title\")!=null)\n \t\t\t {\n \t\t\t\t title = metaObj.get(\"title\").toString();\n \t\t\t }\n \t\t\t if(metaObj.get(\"description\")!=null)\n \t\t\t {\n \t\t\t\t description = metaObj.get(\"description\").toString();\n \t\t\t }\n \t\t\t \n \t\t\t String id = p.substring(p.lastIndexOf(\"/\")+1,p.lastIndexOf(\".\"));\n \t\t\t \n \t\t\t performIndex(p,id,title,description);\n \t\t\t performMetaIndex(jsonObject.get(\"metadata\"),id);\n \t\t }\n \t\t fileWriter();\n \t\t }\n \t catch(Exception e)\n \t { \t\n \t\t e.printStackTrace();\n \t }\n }", "private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\"\\t\");\n\t\t\t\tparts[1]=parts[1].replace(\"{\", \"\").replace(\"}\", \"\");\n\t\t\t\tString counts[]=parts[1].split(\",\");\n\t\t\t\tHashMap<String,Integer> fileList=new HashMap<String,Integer>();\n\t\t\t\tfor (String count : counts) {\n\t\t\t\t\tString file[]=count.split(\"=\");\n\t\t\t\t\tfileList.put(file[0].trim().replace(\".txt\", \"\"), Integer.parseInt(file[1].trim()));\n\t\t\t\t}\n\t\t\t\tIndex index=new Index();\n\t\t\t\tindex.setWord(parts[0]);\n\t\t\t\tindex.setFileList(fileList);\n\t\t\t\tinvertedIndex.add(index);\n\t\t\t}\n\t\t\tin.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertIndex(invertedIndex);\n\t}", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}", "public void createIndex() throws IOException {\n\t\tLOGGER.info(\"creating photo index...\");\n\t\tCreateIndexRequest request = new CreateIndexRequest(\"files\");\n\t\tInputStream in = getClass().getClassLoader().getResourceAsStream(\"photo.json\");\n\t\tString mapping = new String(in.readAllBytes());\n\t\tin.close();\n\t\trequest.mapping(\"photo\", mapping, XContentType.JSON);\n\t\tCreateIndexResponse response = client.indices().create(request);\n\t\tLOGGER.info(\"photo index created: \" + response.toString());\n\t}", "private static void peopleAndEventsCreate(File selectedFolder, File selectedFile, String nameOfLuceneIndex) throws Exception {\n\t\tStandardAnalyzer analyzer = new StandardAnalyzer();\n\n\t /* Where to store index */\n\t\tFile directoryOfIndex = new File(selectedFolder + nameOfLuceneIndex);\n\t\tdeleteDirectory(directoryOfIndex);\t\t\t\t\t\t\t\t\t\t\t\t\t\t// before creating new index, the old one is deleted\n\t Directory index = FSDirectory.open(directoryOfIndex);\n\n\t IndexWriterConfig config = new IndexWriterConfig(Version.LATEST, analyzer);\n\t IndexWriter w = new IndexWriter(index, config);\n\t \n\t\tBufferedReader in;\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(selectedFile), \"UTF-8\"));\n\n\t\t\twhile (in.ready()) {\n\t\t\t\tString oneLine = in.readLine();\n\t\t\t\t\n\t\t\t\tString[] splittedString = oneLine.split(\";\");\n\t\t\t\t\n\t\t\t\tif(splittedString.length == 2) {\n\t\t\t\t\taddDoc(w, splittedString[0], splittedString[1], \"\");\n\t\t\t\t}\n\t\t\t\telse if(splittedString.length == 3) {\n\t\t\t\t\taddDoc(w, splittedString[0], splittedString[1], splittedString[2]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t w.close();\n\t}", "@Test\n public void testProcessAll() throws TikaException, SAXException, IOException, Exception {\n PaperIndexer indexer = new PaperIndexer(BaseDirInfo.getPath(\"test.properties\"));\n indexer.processAll();\n\n Properties prop = indexer.getProperties();\n String paraIndexPath = prop.getProperty(\"para.index\");\n prop.setProperty(\"para.index\", paraIndexPath + \"/1\");\n\n final String[] indexes = { \"index\", \"para.index\", \"para.index.all\" };\n\n // Test global index and para index\n for (String indexPath : indexes) {\n File indexDir = new File(BaseDirInfo.getPath(indexer.getProperties().getProperty(indexPath)));\n try (Directory dir = FSDirectory.open(indexDir.toPath());\n IndexReader reader = DirectoryReader.open(dir)) {\n assertNotNull(reader); // reader must not be null\n\n int nDocs = reader.numDocs();\n assertNotEquals(nDocs, 0); // Number of docs must not be zero\n }\n }\n\n // Since we put one document in the test folder, we should have one folder in the para index\n prop.setProperty(\"para.index\", paraIndexPath);\n File[] dirs = new File(prop.getProperty(\"para.index\")).listFiles();\n assertEquals(dirs.length, 1);\n\n // clean folders\n indexer.removeIndexDirs();\n }", "private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}", "static File getIndexFile(File indexName) throws FileNotFoundException {\n\t\tfor (int i = 0; i < 2; i++)\n\t\t\ttry {\n\t\t\t\tFile raf = new File(indexName, \"rw\");\n\t\t\t\tif (!raf.isFile()) {\n\t\t\t\t\traf.getParentFile().mkdirs();\n\t\t\t\t} else return raf;\n\t\t\t} catch (Exception e) { System.err.println(\"\"); }\n\t\treturn null;\n\t}", "public static void main(String[] args) throws IOException {\n\t\tif (args.length != 2) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"You need to give database directory path and output directory path as arguments.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tdirectory = args[0];\n\t\toutputFilePath = args[1];\n\t\t// Get list of all files.\n\t\tFile[] listOfFiles = Util.getAllFiles(directory);\n\t\t// Get all the stop words in the sorted order.\n\t\tTreeMap<String, String> stopWords = Util\n\t\t\t\t.getStopWordsFromFile(stopWordFile);\n\t\tint numberOfFiles = listOfFiles.length;\n\t\t// 2D array to store the required information about each doc.\n\t\tInteger[][] docInfo = new Integer[numberOfFiles + 1][2];\n\t\tdouble timeForIndexVersion1 = 0.0d, timeForIndexVersion2 = 0.0d;\n\t\tlong startTime, endTime;\n\t\tif (numberOfFiles != 0) {\n\n\t\t\t// Starting creating Index version 1.\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t// Get the doc id.\n\t\t\t\tint docId = Integer.parseInt(file.getName().substring(9));\n\t\t\t\t// For version 1:\n\t\t\t\t// do lemmatization\n\t\t\t\tMap<String, Integer> lemmasFromFile = lemmatizer\n\t\t\t\t\t\t.lemmatize(file);\n\t\t\t\t// remove stop words,\n\t\t\t\tMap<String, Integer> lemmasWoStopWords = Util.removeStopWords(\n\t\t\t\t\t\tlemmasFromFile, stopWords);\n\t\t\t\t// create index.\n\t\t\t\tindexVersion1.creatIndex(docId, lemmasWoStopWords);\n\t\t\t}\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\t// calculate total time taken\n\t\t\ttimeForIndexVersion1 = (endTime - startTime) / 1000.0d;\n\n\t\t\t// indexVersion1.printIndex();\n\t\t\t// write uncompressed index of version 1 to a binary file.\n\t\t\tindexVersion1.writeIndexUncompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version1.uncompress\");\n\t\t\t// compress index\n\t\t\tindexVersion1.compressIndex();\n\t\t\t// write compressed index of version 1 to a binary file.\n\t\t\tindexVersion1.writeIndexCompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version1.compress\");\n\n\t\t\t// Starting creating Index version 2.\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tfor (File file : listOfFiles) {\n\t\t\t\tint docId = Integer.parseInt(file.getName().substring(9));\n\t\t\t\t// For version 2:\n\t\t\t\t// generate tokens from the file\n\t\t\t\tMap<String, Integer> tokensFromFile = Util\n\t\t\t\t\t\t.getTokensFromFile(file);\n\t\t\t\t// do stemming\n\t\t\t\tMap<String, Integer> stemmedTokens = Util\n\t\t\t\t\t\t.getStemmedTokens(tokensFromFile);\n\t\t\t\t// remove stop words\n\t\t\t\tMap<String, Integer> stemmedTokensWoStopWords = Util\n\t\t\t\t\t\t.removeStopWords(stemmedTokens, stopWords);\n\t\t\t\t// update the information about current document.\n\t\t\t\tUtil.updateDocInfo(docInfo, docId, stemmedTokens,\n\t\t\t\t\t\tstemmedTokensWoStopWords);\n\t\t\t\t// System.out.println(\"DocId: \" + docId + \" Max Freq: \"\n\t\t\t\t// + docInfo[docId][0].toString() + \" Doc length: \"\n\t\t\t\t// + docInfo[docId][1].toString());\n\t\t\t\t// create index\n\t\t\t\tindexVersion2.creatIndex(docId, stemmedTokensWoStopWords);\n\n\t\t\t}\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\t// calculate total time taken\n\t\t\ttimeForIndexVersion2 = (endTime - startTime) / 1000.0d;\n\t\t\t// write documents information to a binary file\n\t\t\twriteDocInfo(docInfo, outputFilePath, \"docs.info\");\n\t\t\t// write uncompressed index of version 2 to a binary file.\n\n\t\t\t// indexVersion2.printIndex();\n\t\t\tindexVersion2.writeIndexUncompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version2.uncompress\");\n\t\t\t// compress index\n\t\t\tindexVersion2.compressIndex();\n\t\t\t// write compressed index of version 2 to a binary file.\n\t\t\tindexVersion2.writeIndexCompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version2.compress\");\n\n\t\t\t// display the required information.\n\t\t\tdisplayOutput(timeForIndexVersion1, timeForIndexVersion2);\n\t\t} else {\n\t\t\tSystem.err.println(\"Empty folder\");\n\t\t}\n\t}", "public void populateBinaryTrees(){\n\t\tIndex[] codeIndexes = readIndexes(new File(ApplicationConstants.CODE_INDEX_FILE));\n\t\tIndex[] nameIndexes = readIndexes(new File(ApplicationConstants.NAME_INDEX_FILE));\n\n\t\tcreateIndexBinaryTree(codeIndexes, MainScreen.codeIndexTree);\n\t\tcreateIndexBinaryTree(nameIndexes, MainScreen.nameIndexTree);\n\n\t}", "private void updateIndexMap(String file) {\n\t\ttry (Scanner s = new Scanner(new File(file))) {\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tString word = TextParserUtil.cleanWord(s.next());\n\t\t\t\tString partition = word.substring(0, 1);\n\t\t\t\tif (indexedDir.get(partition) == null) {\n\t\t\t\t\tinsertPartitionEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) == null) {\n\t\t\t\t\tinsertWordEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) != null) {\n\t\t\t\t\tupdateFileList(file, word, partition);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void start(){\n\t\tboolean readFromFile = readFromIndex();\r\n\t\tif (!readFromFile){\t\r\n\t\t\tfor (int i = 0;i<1000;++i){\r\n\t\t\t\tString file = \"../crawler/pages/page\"+i+\".html\";\r\n\t\t\t\taddFile(file);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static PlaceIndex buildIndex(File repo) throws RepositoryException, SailException {\n PlaceIndex index = new PlaceIndex();\n\n // start repository\n NativeStore store = new NativeStore(repo);\n Repository repository = new SailRepository(store);\n repository.initialize();\n RepositoryConnection connection = repository.getConnection();\n\n // create the root place\n ValueFactory factory = repository.getValueFactory();\n Value root = factory.createURI(Place.ROOT.toURL().toString());\n\n try {\n\n // prepare SPARQL queries\n TupleQuery queryChildren = connection.prepareTupleQuery(QueryLanguage.SPARQL, QUERY_CHILDREN);\n TupleQuery queryNamesOff = connection.prepareTupleQuery(QueryLanguage.SPARQL, QUERY_NAMES_OFF);\n TupleQuery queryNamesAlt = connection.prepareTupleQuery(QueryLanguage.SPARQL, QUERY_NAMES_ALT);\n\n // add children recursively, starting from the root\n queryChildren.setBinding(\"parent\", root);\n addChildren(index, Place.ROOT, queryChildren, queryNamesOff, queryNamesAlt);\n\n } catch (RepositoryException e) {\n LOGGER.error(\"exception while building index\", e);\n } finally {\n connection.close();\n repository.shutDown();\n store.shutDown();\n return index;\n }\n }", "IIndexFragmentFileSet createFileSet();", "public void createIndex(String dataDirPath, String txType) throws IOException {\n\t\ttry {\n\t\t\tString inLoc = \"/mnt/3TB/in.csv\";\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inLoc), \"UTF-8\"));\n\n\t\t\tString line;\n\t\t\tboolean first = true;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] items = line.split(\",\");\n\t\t\t\tif (items.length > 3) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tDocument doc = makeTx(items[0], items[1], Long.parseLong(items[2]), txType);\n\t\t\t\twriter.addDocument(doc);\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void createIndexDocument(String path, Configuration c, LODEParser l, Properties lang){\n //the boolean valuas come from the configuration.\n String textToWrite = Constants.getIndexDocument(\"resources\",c, l, lang);\n saveDocument(path+File.separator+\"index-\"+c.getCurrentLanguage()+\".html\", textToWrite,c);\n }", "public void indexFileOrDirectory(String fileName, String packageType) throws IOException {\n //===================================================\n //gets the list of files in a folder (if user has submitted\n //the name of a folder) or gets a single file name (is user\n //has submitted only the file name)\n //===================================================\n this.setThreadCount(this.queue.size());\n int originalNumDocs = writer.numDocs();\n startTime = System.currentTimeMillis();\n for (File f : queue) {\n LogReader lr = new LogReader(f.getAbsolutePath());\n \n Thread t = new Thread(new Runnable(){//Using thread \n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tcurrentThreadCount = currentThreadCount + 1;\n\t\t\t\t\tSystem.out.println(\"Number of thread: \" + currentThreadCount);\n\t\t\t\t\ttry {\n\t\t for (int cnt = 0; ; cnt++) {\n\t\t \tif(lr == null){\n\t\t \t\tSystem.out.println(\"hello\");\n\t\t \t}\n\t\t ArrayList<Package> list = lr.PackagesWrapper(2000);\n\t\t if (list == null || list.size() <= 0)\n\t\t {\n\t\t break;\n\t\t }\n\n\t\t int size = list.size();\n\t\t ArrayList<Document> docs = new ArrayList<Document>();\n\t\t for (int i = 0; i < size; i++)\n\t\t {\n\t\t Package p = list.get(i);\n\t\t Document doc = new Document();\n\t\t deWrapString(packageType, p, doc);\n\t\t \n\t\t docs.add(doc);\n\t\t }\n\n\t\t writer.addDocuments(docs);\n\n\t\t if (cnt != 0 && cnt % 10 == 0) {\n\t\t flush();\n\t\t currentTime = System.currentTimeMillis();\n\t\t \n\t\t System.out.println(\"Current document: \" + writer.numDocs() + \n\t\t \t\t\", current indexing rate: \" + (writer.numDocs()/ (currentTime - startTime)) * 1000);\n\t\t }\n\t\t }\n\t\t System.out.println(\"Added: \" + f);\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t System.out.println(\"Could not add: \" + f);\n\t\t } finally {\n\t\t \tthreadCount--;\n\t\t }\n\t\t\t\t}\n \t\n });\n t.start(); \n /*\n try {\n for (int cnt = 0; ; cnt++) {\n ArrayList<Package> list = lr.PackagesWrapper(2000);\n if (list == null || list.size() <= 0)\n {\n break;\n }\n\n int size = list.size();\n ArrayList<Document> docs = new ArrayList<Document>();\n for (int i = 0; i < size; i++)\n {\n Package p = list.get(i);\n Document doc = new Document();\n this.deWrapString(packageType, p, doc);\n \n docs.add(doc);\n }\n\n writer.addDocuments(docs);\n\n if (cnt % 10 == 0) {\n flush();\n System.out.println(\"bulk count: \" + cnt);\n }\n }\n System.out.println(\"Added: \" + f);\n } catch (Exception e) {\n System.out.println(\"Could not add: \" + f);\n } finally {\n\n }*/\n }\n \n /*\n int newNumDocs = writer.numDocs();\n System.out.println(\"\");\n System.out.println(\"************************\");\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\n System.out.println(\"************************\");\n queue.clear();\n */\n }", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "private void configuration() throws IOException {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(new File(\n luceneIndexDir)));\n\n analyzer = new SimpleAnalyzer(Version.LUCENE_47);\n searcher = new IndexSearcher(reader);\n\n // Creates the directory for Storing the search results.\n File file = new File(SEARCH_RESULT_DIR);\n file.mkdir();\n\n }", "private void init(int bytesPerId, int bytesPerType, int bytesPerPath) throws IOException {\n this.indexVersion = INDEX_VERSION;\n this.bytesPerId = bytesPerId;\n this.bytesPerType = bytesPerType;\n this.bytesPerPath = bytesPerPath;\n this.bytesPerSlot = bytesPerId + bytesPerType + bytesPerPath;\n this.entries = 0;\n \n logger.info(\"Creating uri index with {} bytes per entry\", bytesPerSlot);\n \n // Write header\n idx.seek(IDX_START_OF_HEADER);\n idx.writeInt(indexVersion);\n idx.writeInt(bytesPerId);\n idx.writeInt(bytesPerType);\n idx.writeInt(bytesPerPath);\n idx.writeLong(slots);\n idx.writeLong(entries);\n \n // If this file used to contain entries, we just null out the rest\n try {\n byte[] bytes = new byte[bytesPerSlot - 2];\n while (idx.getFilePointer() < idx.length()) {\n idx.writeChar('\\n');\n idx.write(bytes);\n }\n } catch (EOFException e) {\n // That's ok, we wanted to write until the very end\n }\n \n logger.debug(\"Uri index created\");\n }", "@SuppressWarnings(\"unchecked\")\n void initExisting() throws IOException {\n LOG.info(\"Initializing Existing Jobs...\");\n List<FileStatus> timestampedDirList = findTimestampedDirectories();\n Collections.sort(timestampedDirList);\n for (FileStatus fs : timestampedDirList) {\n // TODO Could verify the correct format for these directories.\n addDirectoryToSerialNumberIndex(fs.getPath());\n addDirectoryToJobListCache(fs.getPath());\n }\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}", "private void createReviewIndex() {\n\t\t// Revise the review dictionary to the correct structure & change productIDs to product index\n\t\tLinkedList<List<Integer>> dictValues = new LinkedList<>();\n\t\tfor (int review : reviewIds.keySet()) {\n\t\t\tArrayList<String> vals = reviewIds.get(review);\n\t\t\tArrayList<Integer> new_vals = new ArrayList<>(List.of(0, 0, 0, 0, 0));\n\t\t\tnew_vals.set(ReviewIndex.PRODUCTID_INDEX, productIds.headMap(vals.get(0)).size());\n\t\t\tString[] helpf = vals.get(2).split(\"/\");\n\t\t\tnew_vals.set(ReviewIndex.HELPFNUM_INDEX, Integer.parseInt(helpf[0]));\n\t\t\tnew_vals.set(ReviewIndex.HELPFDNOM_INDEX, Integer.parseInt(helpf[1]));\n\t\t\tnew_vals.set(ReviewIndex.REVIEWLENGTH_INDEX, Integer.parseInt(vals.get(3)));\n\t\t\tnew_vals.set(ReviewIndex.SCORE_INDEX, (int) Float.parseFloat(vals.get(1)));\n\t\t\tdictValues.add(new_vals);\n\t\t}\n\t\tReviewIndex rIndex = new ReviewIndex();\n\t\trIndex.insertData(dictValues);\n\n\t\tsaveToDir(REVIEW_INDEX_FILE, rIndex);\n\t}", "public void create(String indexerName,\n String workingDir,\n String namingPrefix,\n int recordPerFile,\n int recordByteSize)\n throws DataOrderingException;", "private static void indexFromJarFile(InputStream in) throws IOException {\n\n\t\tZipInputStream zis = new ZipInputStream(in);\n\t\tZipEntry e;\n\n\t\twhile((e = zis.getNextEntry()) != null) {\n\n\t\t\tString name = e.getName();\n\t\t\tzis.closeEntry();\n\n\t\t\tif(name.contains(relationRepositoryPath) && name.endsWith(classExtension)) {\n\n\t\t\t\taddToIndex(name.replace(jarFileRelationRepositoryPath, \"\"));\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t}", "private static void createIndexEntry(Document document, int menuId, String filename, String path) throws Exception {\r\n Indexer index = (Indexer) Context.getInstance().getBean(Indexer.class);\r\n index.deleteFile(String.valueOf(menuId), document.getLanguage());\r\n index.addDirectory(new File(path + filename), document);\r\n }", "ds.hdfs.generated.FileMetadata getFiles(int index);", "private boolean make_indices_file() {\r\n\t\t_headerObject._filenames = ( String[])_headerObject._fileObjectMap.keySet().toArray( new String[ 0]);\r\n\r\n\t\tif ( !open()) {\r\n\t\t\tclose();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t_headerObject._indices_file = new File( _headerObject._directory.getAbsolutePath() + \"/\" + HeaderObject._indices_filename);\r\n\t\t\tDataOutputStream dataOutputStream = new DataOutputStream( new FileOutputStream( _headerObject._indices_file));\r\n\t\t\tfor ( int i = 0; i < _steps.length; ++i) {\r\n\t\t\t\tif ( !write( _steps[ i], dataOutputStream)) {\r\n\t\t\t\t\tdataOutputStream.flush();\r\n\t\t\t\t\tdataOutputStream.close();\r\n\t\t\t\t\tclose();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tdataOutputStream.flush();\r\n\t\t\tdataOutputStream.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tclose();\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tclose();\r\n\r\n\t\treturn true;\r\n\t}", "private static void createSeededFiles(String type, int seedNum, int trainNum, int testNum, File sourceDirectory,\n File destinationDirectory) {\n\n File trainDirectory = new File(destinationDirectory.getAbsolutePath() + \"/train\");\n if(trainNum > 0 && !trainDirectory.exists()) {\n trainDirectory.mkdir();\n }\n File testDirectory = new File(destinationDirectory.getAbsolutePath() + \"/test\");\n if(testNum > 0 && !testDirectory.exists()) {\n testDirectory.mkdir();\n }\n\n //for each language, we want to create a directory for that language, then parse trees/sentences through each of the novels listed there\n File[] languages = sourceDirectory.listFiles();\n File[] trainDirectoryLanguages = new File[languages.length];\n File[] testDirectoryLanguages = new File[languages.length];\n for (int i = 0; i < languages.length; i++) {\n if (languages[i].getName().startsWith(\".\")) {\n continue;\n }\n trainDirectoryLanguages[i] = new File(trainDirectory.getAbsolutePath() + \"/\" + languages[i].getName());\n testDirectoryLanguages[i] = new File(testDirectory.getAbsolutePath() + \"/\" + languages[i].getName());\n if (trainNum > 0)\n makeNewDirectoryIfNotExists(trainDirectoryLanguages[i]);\n if (testNum > 0)\n makeNewDirectoryIfNotExists(testDirectoryLanguages[i]);\n\n File[] novels = languages[i].listFiles();\n for (int j = 0; j < novels.length; j++) {\n if (novels[j].getName().startsWith(\".\")) {\n continue;\n }\n try {\n BufferedReader read = new BufferedReader(new FileReader(novels[j]));\n //name w/o .txt\n String fileShortName = novels[j].getName().substring(0, novels[j].getName().length()-4);\n String line;\n //max number of stuff we want to read is based on our inputs\n int maxFiles = testNum + trainNum;\n long maxLines = (long) maxFiles * (long) seedNum;\n int lineCount = 0;\n int fileCount = 1;\n //File currentFile = createNewNumberedFile(trainDirectoryLanguages[i].getAbsolutePath() + \"/\" + fileShortName, fileCount);\n String pathToUse = (fileCount <= trainNum) ? trainDirectoryLanguages[i].getAbsolutePath() :\n testDirectoryLanguages[i].getAbsolutePath();\n File currentFile = createNewNumberedFile(pathToUse + \"/\" + fileShortName, fileCount);\n PrintWriter pw = new PrintWriter(currentFile);\n\n //this is the part that varies based on calling for text or trees.\n switch (type) {\n case \"text\":\n while ((line = read.readLine()) != null && lineCount < maxLines ) {\n pw.println(line);\n lineCount++;\n //when our lineCount mod seedNum is 0, we want to create another PrintWriter\n if (lineCount % seedNum == 0) {\n fileCount++;\n //put in train or test, depending on our current file count.\n if (fileCount <= maxFiles) {\n pathToUse = (fileCount <= trainNum) ? trainDirectoryLanguages[i].getAbsolutePath() :\n testDirectoryLanguages[i].getAbsolutePath();\n currentFile = createNewNumberedFile(pathToUse + \"/\" + fileShortName, fileCount);\n pw.flush();\n pw.close();\n pw = new PrintWriter(currentFile);\n }\n }\n }\n break;\n case \"tree\":\n //need to build a Treebank... lifting code from HW 3 to aid in this.\n Options op = new Options();\n op.doDep = false;\n op.doPCFG = true;\n op.setOptions(\"-goodPCFG\", \"-evals\", \"tsv\");\n Treebank treeBank = op.tlpParams.diskTreebank();\n treeBank.loadPath(novels[j]);\n Iterator<Tree> it = treeBank.iterator();\n while((it.hasNext()) && lineCount < maxLines) {\n lineCount++;\n Tree t = it.next();\n t.pennPrint(pw);\n if (lineCount % seedNum == 0) {\n fileCount++;\n //put in train or test, depending on our current file count.\n if (fileCount <= maxFiles) {\n pathToUse = (fileCount <= trainNum) ? trainDirectoryLanguages[i].getAbsolutePath() :\n testDirectoryLanguages[i].getAbsolutePath();\n currentFile = createNewNumberedFile(pathToUse + \"/\" + fileShortName, fileCount);\n pw.flush();\n pw.close();\n pw = new PrintWriter(currentFile);\n }\n }\n }\n break;\n }\n pw.flush();\n pw.close();\n //if numlines is not equal to maxlines then we'll remove the last file.\n if (lineCount != maxLines) {\n currentFile = createNewNumberedFile(pathToUse + \"/\" + fileShortName, fileCount);\n currentFile.delete();\n }\n } catch (IOException e) {\n System.err.println(\"Exception caught while reading \" + novels[j] + \":\");\n e.printStackTrace();\n }\n }\n\n\n }\n\n\n }", "private void createFileTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index FILE_ID_INDEX_FILE on FILE(FILE_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_FILE on FILE(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_FILE on FILE(END_REVISION_ID)\");\n \t}", "private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }", "private void createFiles(CodeGeneratorConfiguration config,\n \t\t\tString pathPrefix, ProgressFunction progressFunction,\n \t\t\tlong schemaElements, long currentCount, long interval)\n \t\t\tthrows GraphIOException {\n \t\tGraphCodeGenerator graphCodeGenerator = new GraphCodeGenerator(\n \t\t\t\tgraphClass, packagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, name,\n \t\t\t\tconfig);\n \t\tgraphCodeGenerator.createFiles(pathPrefix);\n \n \t\tfor (VertexClass vertexClass : graphClass.getVertexClasses()) {\n \t\t\tVertexCodeGenerator codeGen = new VertexCodeGenerator(vertexClass,\n \t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\tcodeGen.createFiles(pathPrefix);\n \t\t\tif (progressFunction != null) {\n \t\t\t\tschemaElements++;\n \t\t\t\tcurrentCount++;\n \t\t\t\tif (currentCount == interval) {\n \t\t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\t\tcurrentCount = 0;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tfor (EdgeClass edgeClass : graphClass.getEdgeClasses()) {\n \t\t\tCodeGenerator codeGen = new EdgeCodeGenerator(edgeClass,\n \t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\tcodeGen.createFiles(pathPrefix);\n \n \t\t\tif (!edgeClass.isAbstract()) {\n \t\t\t\tcodeGen = new ReversedEdgeCodeGenerator(edgeClass,\n \t\t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\t\tcodeGen.createFiles(pathPrefix);\n \t\t\t}\n \t\t\tif (progressFunction != null) {\n \t\t\t\tschemaElements++;\n \t\t\t\tcurrentCount++;\n \t\t\t\tif (currentCount == interval) {\n \t\t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\t\tcurrentCount = 0;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// build records and enums\n \t\tfor (Domain domain : getRecordDomains()) {\n \t\t\t// also generate an abstract class for Records\n \t\t\tCodeGenerator rcode = new RecordCodeGenerator(\n \t\t\t\t\t(RecordDomain) domain, packagePrefix,\n \t\t\t\t\tGRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\trcode.createFiles(pathPrefix);\n \t\t\tif (progressFunction != null) {\n \t\t\t\tschemaElements++;\n \t\t\t\tcurrentCount++;\n \t\t\t\tif (currentCount == interval) {\n \t\t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\t\tcurrentCount = 0;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tfor (Domain domain : getEnumDomains()) {\n \t\t\tCodeGenerator ecode = new EnumCodeGenerator((EnumDomain) domain,\n \t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE);\n \t\t\tecode.createFiles(pathPrefix);\n \t\t}\n \t\tif (progressFunction != null) {\n \t\t\tschemaElements++;\n \t\t\tcurrentCount++;\n \t\t\tif (currentCount == interval) {\n \t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\tcurrentCount = 0;\n \t\t\t}\n \t\t}\n \t}", "public void indexFileOrDirectory(String fileName) throws IOException {\n\t// gets the list of files in a folder (if user has submitted\n\t// the name of a folder) or gets a single file name (is user\n\t// has submitted only the file name)\n\t// ===================================================\n\taddFiles(new File(fileName));\n\n\tint originalNumDocs = writer.numDocs();\n\tfor (File f : queue) {\n\t FileReader fr = null;\n\t try {\n\t\tDocument doc = new Document();\n\n\t\t// ===================================================\n\t\t// add contents of file\n\t\t// ===================================================\n\t\tfr = new FileReader(f);\n\t\tdoc.add(new TextField(\"contents\", fr));\n\t\tdoc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\n\t\tdoc.add(new StringField(\"filename\", f.getName(),\n\t\t\tField.Store.YES));\n\n\t\twriter.addDocument(doc);\n\t\t//System.out.println(\"Added: \" + f);\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Could not add: \" + f);\n\t } finally {\n\t\tfr.close();\n\t }\n\t}\n\n\tint newNumDocs = writer.numDocs();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"************************\");\n\tSystem.out\n\t\t.println((newNumDocs - originalNumDocs) + \" documents added.\");\n\tSystem.out.println(\"************************\");\n\n\tqueue.clear();\n }", "@Override\n protected void createRootDir() {\n }", "private void createMigLayout() {\r\n setLayout(new MigLayout(\"\", \"[][]6[]\", \"[]6[]\"));\r\n\r\n add(indexTitle, \"wrap\");\r\n add(dirUrl, \"span 3\");\r\n add(openDir, \"wrap\");\r\n add(indexProgress, \"wrap, span 4, growx\");\r\n add(addExistingCheck, \"span 3, split 2, right\");\r\n add(new JLabel(\"Add Existing Index\"));\r\n add(startIndexing, \"wrap 3sp\");\r\n add(new JLabel(\r\n \"<html>\"\r\n + \"\t<b style ='color:#3888a9'>Important Notes:</b>\"\r\n + \"\t\t<ol>\"\r\n + \"\t\t\t<li>JPEG images in directory and <i>sub-directories</i> will be indexed.</li>\"\r\n + \"\t\t\t<li>You can <i>update the existing index</i> in the database by checking the checkbox.</li>\"\r\n + \"</ol>\" + \"</html>\"), \"span 4\");\r\n }", "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "public void makeIndex(String docsFile, String noiseWordsFile)\n throws FileNotFoundException {\n // load noise words to hash table\n Scanner sc = new Scanner(new File(noiseWordsFile));\n while (sc.hasNext()) {\n String word = sc.next();\n noiseWords.put(word, word);\n }\n\n // index all keywords\n sc = new Scanner(new File(docsFile));\n while (sc.hasNext()) {\n String docFile = sc.next();\n HashMap<String, Occurrence> kws = loadKeyWords(docFile);\n mergeKeyWords(kws);\n }\n\n }", "public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\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\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\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 }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}", "private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}", "private void processFolders(List<File> folderList, java.io.File parentFolder) {\n // process each folder to see if it needs to be updated;\n for (File f : folderList) {\n String folderName = f.getTitle();\n java.io.File localFolder = new java.io.File(parentFolder, folderName);\n Log.e(\"folder\",localFolder.getAbsolutePath());\n if (!localFolder.exists())\n localFolder.mkdirs();\n getFolderContents(f, localFolder);\n }\n }", "public void createFileIndexTablesInBatch(List<String> files) {\n List<String> tableNames = new ArrayList<String>();\n tableNames = RasterUtils.fileNamesToTableNames(files);\n this.sqlOptor.createFileIndexTablesInBatch(tableNames);\n }", "private IndexHandler (boolean test) throws IOException {\n analyzer = new StandardAnalyzer();\n indexDir = test ? new RAMDirectory() : new DistributedDirectory(new MongoDirectory(mongoClient, \"search-engine\", \"index\"));\n //storePath = storedPath;\n config = new IndexWriterConfig(analyzer);\n\n // write separate IndexWriter to RAM for each IndexHandler\n // writer will have to be manually closed with each instance call\n // see IndexWriter documentation for .close()\n // explaining continuous closing of IndexWriter is an expensive operation\n try {\n writer = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }", "private void createFileHierarchie() throws IOException {\r\n\t\tlog.debug(\"START: SBIWebServer.createFileHierarchie\");\r\n\t\t// Create logs directory if not exist\r\n\t\tPath logPath = Paths.get(DEFAULT_LOG_LOCATION);\r\n\t\tif (!Files.exists(logPath)) {\r\n\t\t\tFiles.createDirectory(Paths.get(DEFAULT_LOG_LOCATION));\r\n\t\t\tlog.debug(\"Directory \"+DEFAULT_LOG_LOCATION+\" created\");\r\n\t\t}else {\r\n\t\t\tlog.debug(\"Directory \"+DEFAULT_LOG_LOCATION+\" already exists\");\r\n\t\t}\r\n\t\t\r\n\t\t// Create default server.xml\r\n\t\tPath serverConfigPath = Paths.get(CONFIG_SERVER_LOCATION);\r\n\t\tif (!Files.exists(serverConfigPath)) {\r\n\t\t\tXmlServerConfig xml = ConfigurationFactory.createDefaultXmlServerConfig();\r\n\t\t\ttry {\r\n\t\t\t\tXmlHelper.storeXml(xml, new File(CONFIG_SERVER_LOCATION));\r\n\t\t\t\tlog.debug(\"File \"+CONFIG_SERVER_LOCATION+\" created\");\r\n\t\t\t} catch (JAXBException e) {\r\n\t\t\t\tlog.error(\"Cannot store \"+CONFIG_SERVER_LOCATION,e);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tlog.debug(\"File \"+CONFIG_SERVER_LOCATION+\" already exists\");\r\n\t\t}\r\n\t\tlog.debug(\"END: SBIWebServer.createFileHierarchie\");\r\n\t}", "public void testBasic() throws IOException {\n Set<String> fileExtensions = new HashSet<String>();\n fileExtensions.add(IndexFileNames.FIELDS_EXTENSION);\n fileExtensions.add(IndexFileNames.FIELDS_INDEX_EXTENSION);\n \n Directory primaryDir = new MockDirectoryWrapper(new RAMDirectory());\n Directory secondaryDir = new MockDirectoryWrapper(new RAMDirectory());\n \n FileSwitchDirectory fsd = new FileSwitchDirectory(fileExtensions, primaryDir, secondaryDir, true);\n IndexWriter writer = new IndexWriter(fsd, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()));\n ((LogMergePolicy) writer.getConfig().getMergePolicy()).setUseCompoundFile(false);\n ((LogMergePolicy) writer.getConfig().getMergePolicy()).setUseCompoundDocStore(false);\n TestIndexWriterReader.createIndexNoClose(true, \"ram\", writer);\n IndexReader reader = IndexReader.open(writer);\n assertEquals(100, reader.maxDoc());\n writer.commit();\n // we should see only fdx,fdt files here\n String[] files = primaryDir.listAll();\n assertTrue(files.length > 0);\n for (int x=0; x < files.length; x++) {\n String ext = FileSwitchDirectory.getExtension(files[x]);\n assertTrue(fileExtensions.contains(ext));\n }\n files = secondaryDir.listAll();\n assertTrue(files.length > 0);\n // we should not see fdx,fdt files here\n for (int x=0; x < files.length; x++) {\n String ext = FileSwitchDirectory.getExtension(files[x]);\n assertFalse(fileExtensions.contains(ext));\n }\n reader.close();\n writer.close();\n\n files = fsd.listAll();\n for(int i=0;i<files.length;i++) {\n assertNotNull(files[i]);\n }\n fsd.close();\n }", "public Result buildIndex() {\n Set<String> itemTags = new HashSet<>();\n\n Collections.sort(items, Item.PUBLISHED_DATE_SORTER);\n\n List<ItemGroup> itemGroups = new ArrayList<ItemGroup>();\n List<Item> handledItems = new ArrayList<Item>();\n\n for (Item item : items) {\n if (handledItems.contains(item)) {\n //User client has already this items in is local cache\n continue;\n }\n itemTags.add(item.getTags());\n\n List<Item> itemsNotHandled = ListUtils.subtract(items, handledItems);\n\n ItemGroup itemGroup = new ItemGroup();\n itemGroup.addItem(item);\n\n for (Item itemNotHandled : itemsNotHandled) {\n if (itemGroup.getItems().size() == MAX_ITEM_IN_GROUP) {\n break;\n }\n\n if (StringUtils.trimToEmpty(item.getItemGroupId()).equals(itemNotHandled.getItemGroupId())\n || item.isSimilarTo(itemNotHandled)) {\n itemGroup.addItem(itemNotHandled);\n } //FIXME //contains same itemTagTree + similar description\n }\n\n\n itemGroup.sortItemsByPublishedDate();\n\n handledItems.addAll(itemGroup.getItems());\n itemGroups.add(itemGroup);\n }\n\n Collections.sort(itemGroups, ItemGroup.PUBLISHED_DATE_SORTER);\n\n return new Result(itemGroups, new ArrayList<>(itemTags));\n }", "public IndexWriter(String indexDir) {\n\t\t//TODO : YOU MUST IMPLEMENT THIS\n\tif (indexDir!=null)\n\t{System.setProperty(\"INDEX.DIR\",(this.indexDir=indexDir));\n\tisvaliddir=true;\n\tiutil=new IndexUtil(indexDir);\n\t}\n\t\n\t}", "public static void start() throws IOException {\n\n\t\t/* if relation aliases are already cached, ignore */\n\t\tif(relationAliasIndex.size() > 0) {\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal String filePath = singleton.getClass().getResource(localFileRepositoryPath)\n\t\t\t\t.getFile();\n\n\t\t// if file path contains jar, it means we are executing from a jar file\n\t\tif(filePath.contains(\".jar\")) {\n\n\t\t\tindexFromJarFile(\n\t\t\t\t\tnew BufferedInputStream(\n\t\t\t\t\t\t\tnew FileInputStream(filePath.substring\n\t\t\t\t\t(filePath.indexOf(\":\") + 1, filePath.indexOf(\"!\")))));\n\t\t} else {\n\n\t\t\tnew java.io.File(filePath).listFiles(new java.io.FileFilter() {\n\n\t\t\t\tpublic boolean accept(java.io.File file) {\n\n\t\t\t\t\tif(file.isFile() && file.getName().endsWith(classExtension)) {\n\n\t\t\t\t\t\taddToIndex(file.getName());\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "private void createIndexLink()\r\n \t{\r\n \t\tif (pageTitle.contains(\"Ruby on Rails\")) {\r\n \t\t\tSimpleLogger.verbose(\" TOC file: not creating index link (no stichwort.htm*\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tSimpleLogger.verbose(\" TOC file: creating index link...\");\r\n \t\tElement indexLink = (Element) xPathQuery(XPath.TOC_HEADING_2.query).get(0).copy();\r\n \t\tString fileExtension = \".htm\";\r\n \t\tif (((Element) indexLink.getChild(0)).getAttribute(\"href\").getValue().contains(\".html\"))\r\n \t\t\tfileExtension = \".html\";\r\n \t\t((Element) indexLink.getChild(0)).getAttribute(\"href\").setValue(\"stichwort\" + fileExtension);\r\n \t\t((Text) indexLink.getChild(0).getChild(0)).setValue(\"Index\");\r\n \t\tbodyTag.appendChild(indexLink);\r\n \r\n \t}", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "public static File createIndex(File indexDescriptor, File destination,\n List<Pair<String, List<Pair<String, String>>>> corpus) throws Exception {\n\n Configuration indexConf = Configuration.load(\"integration/distribution/index_configuration.xml\");\n indexConf.set(IndexControllerImpl.CONF_INDEX_ROOT_LOCATION, destination.getAbsolutePath());\n indexConf.getSubConfiguration(IndexDescriptor.CONF_DESCRIPTOR).\n set(IndexDescriptor.CONF_ABSOLUTE_LOCATION, indexDescriptor.getAbsolutePath());\n\n IndexControllerImpl indexer = new IndexControllerImpl(indexConf);\n PayloadFeederHelper feeder = new PayloadFeederHelper(createPayloads(indexDescriptor, corpus));\n\n indexer.setSource(feeder);\n //noinspection StatementWithEmptyBody\n while (indexer.pump()) { }\n indexer.close(true);\n return indexer.getIndexLocation();\n }", "@Override\n\tpublic void build(Index index) {\n\t\tthis.indexdir = index.getPath();\n\t\tLuceneIndex luceneIndex = (LuceneIndex) index;\n\t\tthis.indexSearcher = new IndexSearcher(luceneIndex.getReader());\n\n\t}", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tif (args.length <= 0)\r\n\t\t{\r\n System.out.println(\"Expected corpus as input\");\r\n System.exit(1);\r\n }\r\n\r\n\t\t// Analyzer that is used to process TextField\r\n\t\tAnalyzer analyzer = new StandardAnalyzer();\r\n\r\n\t\t// ArrayList of documents in the corpus\r\n\t\tArrayList<Document> documents = new ArrayList<Document>();\r\n\r\n\t\t// Open the directory that contains the search index\r\n\t\tDirectory directory = FSDirectory.open(Paths.get(INDEX_DIRECTORY));\r\n\r\n\t\t// Set up an index writer to add process and save documents to the index\r\n\t\tIndexWriterConfig config = new IndexWriterConfig(analyzer);\r\n\t\tconfig.setOpenMode(IndexWriterConfig.OpenMode.CREATE);\r\n\t\tIndexWriter iwriter = new IndexWriter(directory, config);\r\n\r\n\r\n\t\tfor (String arg : args)\r\n\t\t{\r\n\r\n\t\t\t// Load the contents of the file\r\n\t\t\t//System.out.printf(\"Indexing \\\"%s\\\"\\n\", arg);\r\n\t\t\tString content = new String(Files.readAllBytes(Paths.get(arg)));\r\n\r\n\t\t\tString[] big = content.split(\".I\");\r\n\t\t\tfor (String a : big) {\r\n\t\t\t\tDocument doc = new Document();\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tString[] small = a.split(\".A\");\r\n\t\t\t\tfor (String b : small) {\r\n\t\t\t\t\tif (count == 0) {\r\n\t\t\t\t\t\tdoc.add(new StringField(\"filename\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdoc.add(new TextField(\"content\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tdocuments.add(doc);\r\n\t\t\t}\r\n\t\t\tfor (Document doc : documents) {\r\n\t\t\t\tSystem.out.println(doc.get(\"filename\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write all the documents in the linked list to the search index\r\n\t\tiwriter.addDocuments(documents);\r\n\r\n\t\t// Commit everything and close\r\n\t\tiwriter.close();\r\n\t\tdirectory.close();\r\n\t}", "public synchronized void setNewReader(File indexDir) throws IOException{\r\n \tsynchronized (mReaders) {\r\n \t\ttry{\r\n \tList<ReaderContainer> lReader;\r\n \tif (!mReaders.containsKey(indexDir)){\r\n \t\tlReader = new ArrayList<ReaderContainer>();\r\n \t\tlReader.add(new ReaderContainer(IndexReader.open(FSDirectory.open(indexDir))));\r\n \t\tmReaders.put(indexDir, lReader);\r\n \t} else {\r\n \t\tlReader = mReaders.get(indexDir);\r\n \t\t\r\n \t\tif (lReader.size() > 0){\r\n \t\t\tlog.debug(\"setNewReader-STEP1 :: lReader.size() = \" + lReader.size());\r\n// \t\t\tfor (int i = lReader.size() - 1; i >= 0 ; i--) {\r\n// \t\t\t\tReaderContainer readerContainer = lReader.get(i);\r\n \t\t\tReaderContainer readerContainer = lReader.get(lReader.size() - 1);\r\n \t\t\t\r\n \tif (readerContainer.isClosable()){\r\n \t\treaderContainer.close();\r\n \t\tlReader.remove(readerContainer);\r\n \t}\r\n// \t\t\t}\r\n \t}\r\n \t\tlReader.add(new ReaderContainer(IndexReader.open(FSDirectory.open(indexDir))));\r\n \t\tlog.debug(\"setNewReader :: lReader.size() = \" + lReader.size());\r\n \t}\r\n \t\r\n \t\t} catch(Exception ex){\r\n \t\tlog.fatal(\"setNewReader :: mReaders.containsKey(indexDir)\" +mReaders.containsKey(indexDir)+\" indexDir \"+indexDir.getCanonicalPath()+\" ERR:\"+ex);\r\n \t}\r\n\t\t}\r\n }", "public void create()\n\t\tthrows Exception\n\t{\n\t\tString strOutputPath = m_context.getFamily().getOutputPathHTML();\n\t\tif (!strOutputPath.endsWith(\"\\\\\"))\n\t\t{\n\t\t\tstrOutputPath += \"\\\\\";\n\t\t}\n\t\t// Make sure the \"perinfo\" subdirectory exists under\n\t\t// the base output file system path\n\t\tFile fSubdirectory = new File(strOutputPath + PERSON_INFO_FILE_SYSTEM_SUBDIRECTORY);\n\t\tif (!fSubdirectory.exists())\n\t\t{\n\t\t\tif (!fSubdirectory.mkdirs())\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Error creating sub-directory tree for person info files!\");\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t// Create necessary Indexes\n\t\tIndexPersonToParentMarriage idxPerToParentMar = new IndexPersonToParentMarriage(m_context.getFamily(), m_context.getPersonList());\n\t\tIndexPersonToMarriages idxPerToMar = new IndexPersonToMarriages(m_context.getFamily(), m_context.getMarriageList());\n\t\tIndexMarriageToSpouses idxMarToSpouses = new IndexMarriageToSpouses(m_context.getFamily(), m_context.getMarriageList());\n\t\tIndexPersonToPhotos idxPerToPhoto = new IndexPersonToPhotos(m_context.getFamily(), m_context.getPersonList(), m_context.getPhotoList());\n\t\tIndexMarriageToPhotos idxMarToPhoto = new IndexMarriageToPhotos(m_context.getFamily(), m_context.getMarriageList(), m_context.getPhotoList());\n\t\tIndexPersonsToReferences idxPerToReference = new IndexPersonsToReferences(m_context.getFamily(), m_context.getPersonList(), m_context.getReferenceList());\n\t\tIndexMarriagesToReferences idxMarToReference = new IndexMarriagesToReferences(m_context.getFamily(), m_context.getPersonList(), m_context.getMarriageList(), m_context.getReferenceList());\n\t\t\n\t\tIterator<Person> iter = m_context.getPersonList().getPersons();\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tPerson thisPerson = iter.next();\n\t\t\tcreatePersonInfo(idxPerToParentMar,\n \t\t\t\t\t idxPerToMar, idxMarToSpouses, idxPerToPhoto, idxMarToPhoto,\n \t\t\t\t\t idxPerToReference, idxMarToReference, strOutputPath, thisPerson);\n\t\t}\n\t\tm_context.output(\"Completed Generating All Person Info Files\\n\");\t\n\t}", "private void reLoadIndexesFromFileToIndexMap(File file) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n for (String line = reader.readLine(); line != null; line = reader\n .readLine()) {\n String[] termIndex = line.split(\" \");\n String key = termIndex[0];\n LinkedList<TermPositions> value = new LinkedList<>();\n String postingList = termIndex[1];\n // split the posting lists 1:1,2,4;2:4\n String[] subPostings = postingList.split(\";\");\n for (String posting : subPostings) {\n String[] docPosting = posting.split(\":\");\n int docId = Integer.parseInt(docPosting[0]);\n String[] positions = docPosting[1].split(\",\");\n LinkedList<Integer> positionsList = new LinkedList<>();\n for (String position : positions) {\n positionsList.add(Integer.parseInt(position));\n }\n TermPositions termPositions = new TermPositions(docId, positionsList);\n value.add(termPositions);\n }\n indexMap.put(key, value);\n\n }\n\n }", "public IndexDatabase(String index_path) {\n int k;\n long p;\n try {\n pre_file = new RandomAccessFile(index_path + \"/sorted.kmc_pre\", \"r\");\n pre_file.seek(pre_file.length() - 8);\n header_pos = read_int(pre_file);\n pre_file.seek(pre_file.length() - 8 - header_pos);\n // read the index properties \n K = read_int(pre_file);\n mode = read_int(pre_file);\n ctr_size = read_int(pre_file);\n pre_len = read_int(pre_file);\n min_count = read_int(pre_file);\n max_count = read_int(pre_file);\n kmers_num = read_long(pre_file);\n suf_len = K - pre_len;\n key = new kmer(K, pre_len, suf_len);\n System.out.println(\"Indexing \" + kmers_num + \" kmers... \");\n // load the prefix file into the memory \n pre_file.seek(4);\n int q, len = 1 << (2 * pre_len);\n prefix_ptr = new long[len];\n MappedByteBuffer pre_buff;\n for (q = 0, p = 0; p < 8; ++p) {\n pre_buff = pre_file.getChannel().map(FileChannel.MapMode.READ_ONLY, 4 + p * len, len);\n for (k = 0; k < len / 8; ++k, ++q) {\n prefix_ptr[q] = read_long(pre_buff);\n }\n pre_buff = null;\n }\n pre_file.close();\n // mapping suffix file into the memory\n suf_rec_size = ctr_size + suf_len / 4;\n MAX_BYTE_COUNT = MAX_BYTE_COUNT / suf_rec_size * suf_rec_size;\n suf_parts_num = (int) ((kmers_num * suf_rec_size) % MAX_BYTE_COUNT == 0 ? (kmers_num * suf_rec_size) / MAX_BYTE_COUNT : (kmers_num * suf_rec_size) / MAX_BYTE_COUNT + 1);\n suf_parts_size = new long[suf_parts_num];\n suf_file = new RandomAccessFile(index_path + \"/sorted.kmc_suf\", \"r\");\n suf_buff = new MappedByteBuffer[suf_parts_num];\n for (k = 0; k < suf_parts_num; ++k) {\n suf_parts_size[k] = (int) (k == suf_parts_num - 1 ? (kmers_num * suf_rec_size) % MAX_BYTE_COUNT : MAX_BYTE_COUNT);\n suf_buff[k] = suf_file.getChannel().map(FileChannel.MapMode.READ_ONLY, 4 + k * suf_parts_size[0], suf_parts_size[k]);\n }\n // mapping pointers file into the memory\n MAX_BYTE_COUNT = MAX_BYTE_COUNT / POINTER_LENGTH * POINTER_LENGTH;\n ptr_parts_num = (int) ((kmers_num * POINTER_LENGTH) % MAX_BYTE_COUNT == 0 ? (kmers_num * POINTER_LENGTH) / MAX_BYTE_COUNT : (kmers_num * POINTER_LENGTH) / MAX_BYTE_COUNT + 1);\n ptr_parts_size = new long[ptr_parts_num];\n ptr_file = new RandomAccessFile(index_path + \"/pointers.db\", \"rw\");\n ptr_buff = new MappedByteBuffer[ptr_parts_num];\n for (k = 0; k < ptr_parts_num; ++k) {\n ptr_parts_size[k] = (int) (k == ptr_parts_num - 1 ? (kmers_num * POINTER_LENGTH) % MAX_BYTE_COUNT : MAX_BYTE_COUNT);\n ptr_buff[k] = ptr_file.getChannel().map(FileChannel.MapMode.READ_WRITE, k * ptr_parts_size[0], ptr_parts_size[k]);\n }\n } catch (IOException e) {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "private void processDir(final String filename) throws FileNotFoundException, IOException, RepositoryException,\n RDFHandlerException\n {\n final File dataDir = new File(filename);\n System.out.println(\"Using data directory: \" + dataDir);\n\n // get the data files\n final File[] dataFiles = dataDir.listFiles(new FilenameFilter()\n {\n @Override\n public boolean accept(final File dir, final String name)\n {\n return name.contains(\"heartrate\") && (name.endsWith(\"csv\") || name.endsWith(\"CSV\"));\n }\n });\n // want to make sure we only create each person and sensor once\n Arrays.sort(dataFiles);\n\n // FIXME testing with just 1 file to start\n final File[] testFiles = dataFiles;\n // testFiles[0] = dataFiles[0];\n\n int count = 0;\n\n for (final File file : testFiles)\n {\n final String oldPid = currentPid;\n\n System.out.println(\"processing \" + file);\n\n try\n {\n parseFilename(file);\n\n // did we change people?\n if (oldPid != currentPid)\n {\n createNewPersonHeartRate();\n }\n\n repoConn.begin();\n count += processFileHeartRate(file);\n repoConn.commit();\n\n System.out.println(String.format(\" %,d records\", Integer.valueOf(count)));\n }\n catch (final NumberFormatException e)\n {\n System.err.println(\"Cannot read the date from the file format\");\n }\n }\n }", "public static void main(String[] args) throws IOException {\n boolean passed = false;\r\n if (args.length > 0) {\r\n File f = new File(args[0]);\r\n System.out.println(\"Indexing images in \" + args[0]);\r\n if (f.exists() && f.isDirectory()) passed = true;\r\n }\r\n if (!passed) {\r\n System.out.println(\"No directory given as first argument.\");\r\n System.out.println(\"Run \\\"ParallelIndexing <directory>\\\" to index files of a directory.\");\r\n System.exit(1);\r\n }\r\n\r\n // use ParallelIndexer to index all photos from args[0] into \"index\" ... use 6 threads (actually 7 with the I/O thread).\r\n ParallelIndexer indexer = new ParallelIndexer(6, \"index\", args[0]);\r\n // use this to add you preferred builders. For now we go for CEDD, FCTH and AutoColorCorrelogram\r\n indexer.addExtractor(CEDD.class);\r\n indexer.addExtractor(FCTH.class);\r\n indexer.addExtractor(AutoColorCorrelogram.class);\r\n indexer.run();\r\n System.out.println(\"Finished indexing.\");\r\n }", "protected TreeIndex(@Nullable File indexParentDir,\n\t @NotNull File rootFile) {\n\t\tUtil.checkNotNull(rootFile);\n\t\tthis.indexParentDir = indexParentDir;\n\t\t\n\t\t// Create config\n\t\tthis.config = new IndexingConfig() {\n\t\t\t@Override\n\t\t\tprotected void onStoreRelativePathsChanged() {\n\t\t\t\tFile oldFile = rootFolder.getPath().getCanonicalFile();\n\t\t\t\tPath newPath = config.getStorablePath(oldFile);\n\t\t\t\trootFolder.setPath(newPath);\n\t\t\t}\n\t\t\tprotected void onWatchFoldersChanged() {\n\t\t\t\tLuceneIndex.evtWatchFoldersChanged.fire(TreeIndex.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// Create root folder\n\t\trootFile = Util.getCanonicalFile(rootFile);\n\t\tPath newPath = config.getStorablePath(rootFile);\n\t\trootFolder = createRootFolder(newPath);\n\t\tUtil.checkNotNull(rootFolder);\n\t\t\n\t\t// Create index directory or RAM directory\n\t\tcreated = Util.getTimestamp();\n\t\tif (indexParentDir == null) {\n\t\t\tfileIndexDirPath = null;\n\t\t\tramIndexDir = new RAMDirectory();\n\t\t}\n\t\telse {\n\t\t\tString indexDirName = getIndexDirName(rootFile) + \"_\" + created;\n\t\t\tFile indexDir = new File(indexParentDir, indexDirName);\n\t\t\tif (AppUtil.isPortable())\n\t\t\t\tfileIndexDirPath = new Path(UtilModel.getRelativePathIfPossible(indexDir));\n\t\t\telse\n\t\t\t\tfileIndexDirPath = new Path(indexDir);\n\t\t}\n\t}", "public KrillIndex () throws IOException {\n this((Directory) new RAMDirectory());\n }", "public static void main(String[] args) throws Exception {\n String usage =\n \"Usage:\\tjava org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat n] [-queries file] [-query string] [-raw] [-paging hitsPerPage]\\n\\nSee http://lucene.apache.org/core/4_1_0/demo/ for details.\";\n if (args.length > 0 && (\"-h\".equals(args[0]) || \"-help\".equals(args[0]))) {\n System.out.println(usage);\n System.exit(0);\n }\n\n String index = \"index\";\n String field = \"contents\";\n String queries = null;\n int repeat = 0;\n boolean raw = false;\n String queryString = null;\n int hitsPerPage = 10;\n String[] fileTypes = null;\n Date fileDate = null;\n Set<String> mFilesSet = new HashSet<>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fileDateString = null;\n\n for (int i = 0; i < args.length; i++) {\n if (\"-index\".equals(args[i])) {\n index = args[i + 1];\n i++;\n } else if (\"-field\".equals(args[i])) {\n field = args[i + 1];\n i++;\n } else if (\"-queries\".equals(args[i])) {\n queries = args[i + 1];\n i++;\n } else if (\"-query\".equals(args[i])) {\n queryString = args[i + 1];\n i++;\n } else if (\"-repeat\".equals(args[i])) {\n repeat = Integer.parseInt(args[i + 1]);\n i++;\n } else if (\"-raw\".equals(args[i])) {\n raw = true;\n } else if (\"-paging\".equals(args[i])) {\n hitsPerPage = Integer.parseInt(args[i + 1]);\n if (hitsPerPage <= 0) {\n System.err.println(\"There must be at least 1 hit per page.\");\n System.exit(1);\n }\n i++;\n } else if(\"-filter\".equals(args[i])){\n filtering = true;\n }\n }\n\n if(filtering) {\n //read the filters file\n try (\n InputStream fis = new FileInputStream(\"filters.txt\");\n InputStreamReader isr = new InputStreamReader(fis, Charset.defaultCharset());\n BufferedReader br = new BufferedReader(isr);\n ) {\n //read first line which contains the types of the files to be searched\n Stream<String> lines;\n lines = br.lines();\n\n\n for (Iterator<String> i = lines.iterator(); i.hasNext(); ) {\n String line;\n line = i.next();\n if (line.startsWith(\"#\")) { //ignore comments in filters file\n } else if (line.startsWith(\"files: \")) {\n line = line.replaceFirst(\"files: \", \"\");\n fileTypes = line.split(\",\");\n mFilesSet.add(\"pdf\");\n mFilesSet.add(\"txt\");\n mFilesSet.add(\"epub\");\n for (int j = 0; j < fileTypes.length; j++) {\n mFilesSet.remove(fileTypes[j]); //remove from the hashset those file types parsed from the user file\n }\n } else if (line.startsWith(\"date:\")) {\n line = line.replaceFirst(\"date: \", \"\");\n fileDate = dateFormat.parse(line);\n fileDateString = line;\n //System.out.println(fileDateString);\n //System.out.println(\"Date: \" + fileDate.toString());\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(index)));\n IndexSearcher searcher = new IndexSearcher(reader);\n Analyzer analyzer = new MyAnalyzer();\n\n BufferedReader in = null;\n\n if (queries != null) {\n in = Files.newBufferedReader(Paths.get(queries), StandardCharsets.UTF_8);\n } else {\n in = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));\n }\n\n QueryParser parser = new QueryParser(field, analyzer);\n BooleanQuery.Builder booleanQueryBuilder = new BooleanQuery.Builder();\n BooleanQuery booleanQuery = booleanQueryBuilder.build();\n while (true) {\n if (queries == null && queryString == null) {// prompt the user\n System.out.println(\"Enter query: \");\n }\n\n String line = queryString != null ? queryString : in.readLine();\n\n if (line == null || line.length() == -1) {\n break;\n }\n\n line = line.trim();\n if (line.length() == 0) {\n break;\n }\n\n Query query;\n\n if(filtering) {\n for (Iterator<String> iterator = mFilesSet.iterator(); iterator.hasNext(); ) {\n String mString = iterator.next();\n Query mQuery = new TermQuery(new Term(\"filetype\", mString));\n booleanQueryBuilder.add(mQuery, BooleanClause.Occur.MUST_NOT);\n }\n query = parser.parse(line);\n\n Date currentDate = new Date();\n BytesRef lowerTerm = new BytesRef(fileDateString);\n BytesRef upperTerm = new BytesRef(dateFormat.format(currentDate));\n //System.out.println(dateFormat.format(currentDate));\n TermRangeQuery dateQuery = TermRangeQuery.newStringRange(\"modified\",fileDateString,dateFormat.format(currentDate),false,false);\n //Query dateQuery = IntPoint.newRangeQuery(\"modified\", ((int) fileDate.getTime()),(int)currentDate.getTime());\n booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n booleanQueryBuilder.add(query, BooleanClause.Occur.MUST);\n //booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n\n booleanQuery = booleanQueryBuilder.build();\n //System.out.println(\"Query: \" + booleanQuery.toString());\n //System.out.println(\"Searching for: \" + query.toString(field));\n }\n else {\n query = parser.parse(line);\n }\n if (repeat > 0) { // repeat & time as benchmark\n Date start = new Date();\n for (int i = 0; i < repeat; i++) {\n searcher.search(query, 100);\n }\n Date end = new Date();\n System.out.println(\"Time: \" + (end.getTime() - start.getTime()) + \"ms\");\n }\n\n if(filtering){\n doPagingSearch(in, searcher, booleanQuery, hitsPerPage, raw, queries == null && queryString == null);\n }\n else {\n doPagingSearch(in, searcher, query, hitsPerPage, raw, queries == null && queryString == null);\n }\n if (queryString != null) {\n break;\n }\n }\n reader.close();\n\n }", "private void addNetworkIndexes() {\r\n try {\r\n addIndex(NodeTypes.SITE.getId(), NeoUtils.getLocationIndexProperty(basename));\r\n } catch (IOException e) {\r\n throw (RuntimeException)new RuntimeException().initCause(e);\r\n }\r\n \r\n }", "public void start() throws Exception {\n\n createIndex();\n }", "public void finishedDirectIndexBuild()\n\t{\n\t\tif(logger.isInfoEnabled()){\n\t\t\tlogger.info(\"flushing utf block lexicon to disk after the direct index completed\");\n\t\t}\n\t\t//only write a temporary lexicon if there are any items in it\n\t\tif (TempLex.getNumberOfNodes() > 0)\n\t\t\twriteTemporaryLexicon();\n\n\t\t//merges the temporary lexicons\n\t\tif (tempLexFiles.size() > 0)\n\t\t{\n\t\t\ttry{\n\t\t\t\tmerge(tempLexFiles);\n\t\n\t\t\t\t//creates the offsets file\n\t\t\t\tfinal String lexiconFilename = \n\t\t\t\t\tindexPath + ApplicationSetup.FILE_SEPARATOR + \n\t\t\t\t\tindexPrefix + ApplicationSetup.LEXICONSUFFIX;\n\t\t\t\tLexiconInputStream lis = getLexInputStream(lexiconFilename);\n\t\t\t\tcreateLexiconIndex(\n\t\t\t\t\tlis,\n\t\t\t\t\tlis.numberOfEntries(),\n\t\t\t\t\t/* after inverted index is built, the lexicon will be transformed into a\n\t\t\t\t\t * normal lexicon, without block frequency */\n\t\t\t\t\tUTFLexicon.lexiconEntryLength\n\t\t\t\t\t); \n\t\t\t\tTermCount = lis.numberOfEntries();\n\t\t\t\tif (index != null)\n\t\t\t\t{\n\t\t\t\t\tindex.addIndexStructure(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexicon\");\n\t\t\t\t\tindex.addIndexStructureInputStream(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexiconInputStream\");\n\t\t\t\t\tindex.setIndexProperty(\"num.Terms\", \"\"+lis.numberOfEntries());\n\t\t\t\t\tindex.setIndexProperty(\"num.Pointers\", \"\"+lis.getNumberOfPointersRead());\n\t\t\t\t}\n\t\t\t} catch(IOException ioe){\n\t\t\t\tlogger.error(\"Indexing failed to write a lexicon index file to disk\", ioe);\n\t\t\t}\t\n\t\t}\n\t\telse\n\t\t\tlogger.warn(\"No temporary lexicons to merge, skipping\");\n\t\t\n\t}", "public static void writeIndexPaths(Entry<String, TreeSet<Integer>> textfiles, BufferedWriter writer, int level)\n\t\t\tthrows IOException {\n\t\tif (!textfiles.getValue().isEmpty()) {\n\t\t\tTreeSet<Integer> locations = textfiles.getValue();\n\t\t\twriter.newLine();\n\t\t\twriter.write(indent(level));\n\t\t\twriter.write(quote(textfiles.getKey()));\n\t\t\twriter.write(\": [\");\n\t\t\twriteIndexPositions(locations, writer, level + 1);\n\t\t}\n\t\twriter.newLine();\n\t\twriter.write(indent(level - 1) + \"]\");\n\t}", "public void makeIndex(String docsFile, String noiseWordsFile) \n\tthrows FileNotFoundException {\n\t\t// load noise words to hash table\n\t\tScanner sc = new Scanner(new File(noiseWordsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString word = sc.next();\n\t\t\tnoiseWords.add(word);\n\t\t}\n\t\t\n\t\t// index all keywords\n\t\tsc = new Scanner(new File(docsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString docFile = sc.next();\n\t\t\tHashMap<String,Occurrence> kws = loadKeywordsFromDocument(docFile);\n\t\t\tmergeKeywords(kws);\n\t\t}\n\t\tsc.close();\n\t}", "public void createIndex(Configuration configuration){\n }", "private void iterateOverDefinitionDirectories() {\n\tfor (short repoIndex = Constants.gshMaxRepoDepth; repoIndex > Constants.gshZero; repoIndex--) {\n\t if (repoIndex == Constants.gshMaxRepoDepth) {\n\t\tif (mbJrestRepositoryRead == false) {\n\t\t mfDefinitionFile = new File(msPathToJrestRepo);\n\n\t\t mLogger.debug(String.format(Exceptions.gsJrestCurrentScanningFolder,\n\t\t\t msPathToJrestRepo));\n\n\t\t /*\n\t\t * loadDefinitions to be executed here only in the case of mbJrestRepositoryRead\n\t\t * being false and (repoIndex == Constants.gshMaxRepoDepth).\n\t\t */\n\t\t loadDefinitions(repoIndex);\n\t\t}// if (mbJrestRepositoryRead == false)\n\t } else {\n\t\tmLogger.debug(String.format(Exceptions.gsJrestCurrentScanningFolder,\n\t\t\tmsPathToDefinitionFiles));\n\n\t\tmfDefinitionFile = new File(msPathToDefinitionFiles);\n\n\t\tloadDefinitions(repoIndex);\n\t }// if (mbJrestRepositoryRead == false)\n\t}// for (short repoIndex = Constants.gshMaxRepoDepth; ... )\n }", "@Scheduled(fixedRate = 5000)\n public void refreshAllIndex() {\n\n HashMap<String, String> dictlist = new HashMap<>();\n\n //get the file list\n try {\n dictlist = FileUtil.subFolderList(fieryConfig.getIndexpath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //load all index if not contain on folder\n for (Map.Entry<String, String> e : dictlist.entrySet()) {\n String foldername = e.getKey();\n String folderpath = e.getValue();\n if (!readerList.containsKey(foldername)) {\n log.info(\"start load index foldername:\" + foldername + \" abspath:\" + folderpath);\n //open index\n boolean ret = this.openIndex(foldername, folderpath);\n\n //warning this may cause bug\n //loaded fail? clean it\n if (!ret) {\n FileUtil.deleteDir(folderpath);\n }\n }\n }\n\n\n /////////////////////\n // recycle expire index\n /////////////////////\n for (Map.Entry<String, DirectoryReader> e : readerList.entrySet()) {\n String dbname = e.getKey();\n\n try {\n Long dbtime = Long.parseLong(dbname);\n\n if (dbtime < DateTimeHepler.getBeforDay(fieryConfig.getKeepdataday())) {\n //closed all\n if (analyzerList.containsKey(dbname)) {\n analyzerList.get(dbname).close();\n analyzerList.remove(dbname);\n }\n if (directorList.containsKey(dbname)) {\n directorList.get(dbname).close();\n directorList.remove(dbname);\n }\n if (readerList.containsKey(dbname)) {\n readerList.get(dbname).close();\n readerList.remove(dbname);\n }\n\n //remove the folder\n FileUtil.deleteDir(fieryConfig.getIndexpath() + \"/\" + dbname);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n\n /////////////////////\n // refresh already loaded index\n /////////////////////\n for (Map.Entry<String, DirectoryReader> e : readerList.entrySet()) {\n\n String dbname = e.getKey();\n DirectoryReader diskReader = e.getValue();\n\n try {\n Date start = new Date();\n\n DirectoryReader tmp = DirectoryReader.openIfChanged(diskReader);\n if (tmp != null) {\n diskReader.close();\n diskReader = tmp;\n readerList.put(dbname, diskReader);\n Date end = new Date();\n log.info(\"Reload Index:\" + dbname + \" cost:\" + (end.getTime() - start.getTime()) + \" totalcount:\" + diskReader.numDocs());\n }\n\n } catch (Exception exx) {\n exx.printStackTrace();\n log.error(exx.getMessage());\n }\n }\n /////////////////////\n //refresh the all in one searcher\n /////////////////////\n\n this.reloadSearch();\n\n }", "public static FSDirectory createFSIndex(File indexDir) throws IOException {\n\t\tFSDirectory fsDirectory = FSDirectory.getDirectory( indexDir );\n\t\tif ( ! IndexReader.indexExists( fsDirectory ) ) {\n\t\t\tlog.debug( \"Initialize index: '{}'\", indexDir.getAbsolutePath() );\n\t\t\tIndexWriter.MaxFieldLength fieldLength = new IndexWriter.MaxFieldLength( IndexWriter.DEFAULT_MAX_FIELD_LENGTH );\n\t\t\tIndexWriter iw = new IndexWriter( fsDirectory, new StandardAnalyzer(), true, fieldLength );\n\t\t\tiw.close();\n\t\t}\n\t\treturn fsDirectory;\n\t}", "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "public void setUp() throws Exception {\n Project project = new Project();\n\n IndexTask task = new IndexTask();\n FileSet fs = new FileSet();\n fs.setDir(new File(docsDir));\n task.addFileset(fs);\n task.setOverwrite(true);\n task.setDocumentHandler(docHandler);\n task.setIndex(new File(indexDir));\n task.setProject(project);\n task.execute();\n\n searcher = new IndexSearcher(indexDir);\n analyzer = new StopAnalyzer();\n }", "public static void main(String[] args) throws Exception {\n final long startTime = System.currentTimeMillis();\n\n // Parse and assign the input variables:\n String location = args[0];\n int numCharacters = Integer.parseInt(args[1]);\n\n // Load the input file paths into a list:\n File path = new File( new File(location).getAbsolutePath() );\n File[] inputFiles = path.listFiles((File filename) -> filename.getName().endsWith(\".txt\"));\n // Create an array of uninstantiated IndexThread objects (one for each file):\n GlobalIndexThread[] indices = new GlobalIndexThread[inputFiles.length];\n\n // Instantiate each of the IndexThread objects with the file name and character count:\n for (int i = 0; i < inputFiles.length; i++) {\n indices[i] = new GlobalIndexThread(inputFiles[i], numCharacters);\n indices[i].start();\n }\n\n // Test and join the threads:\n for (GlobalIndexThread index : indices) {\n if (index.isAlive()) {\n index.join();\n }\n }\n\n // Build a structure ready to store the processed index prior to printing/writing:\n TreeMap<String, ArrayList<StringBuilder>> finalIndex = new TreeMap<>();\n\n // Write all of the words/keys to the final object, and instantiate a new array of strings:\n for (Map.Entry<File, TreeMap<String, TreeSet<Integer>>> file : fileIndices.entrySet()) {\n for (Map.Entry<String, TreeSet<Integer>> entry : file.getValue().entrySet()) {\n if (!finalIndex.containsKey(entry.getKey().toLowerCase())) {\n finalIndex.put(entry.getKey().toLowerCase(), new ArrayList<>());\n }\n }\n }\n\n // Process each object in fileIndices. If it contains a given key, add the value to the array.\n // Otherwise add an empty string.\n for (Map.Entry<File, TreeMap<String, TreeSet<Integer>>> file : fileIndices.entrySet()) {\n for (Map.Entry<String, ArrayList<StringBuilder>> entry : finalIndex.entrySet()) {\n if (file.getValue().containsKey(entry.getKey())) {\n StringBuilder val = new StringBuilder();\n val.append(joinInts(file.getValue().get(entry.getKey()), \":\"));\n entry.getValue().add(val);\n }\n else {\n StringBuilder filler = new StringBuilder();\n entry.getValue().add(filler);\n }\n }\n }\n\n // Process and print the global index:\n\n // 1. Collect and store the header row:\n StringBuilder header = new StringBuilder();\n header.append(\"Word\");\n for (Map.Entry<File, TreeMap<String, TreeSet<Integer>>> entry : fileIndices.entrySet()) {\n header.append(\", \").append(entry.getKey().getName());\n }\n header.append(\"\\n\");\n\n // 2. Create each row of content:\n StringBuilder content = new StringBuilder();\n for (Map.Entry<String, ArrayList<StringBuilder>> entry : finalIndex.entrySet()) {\n content.append(entry.getKey());\n for (StringBuilder sb : entry.getValue()) {\n content.append(\", \").append(sb);\n }\n content.append(\"\\n\");\n }\n\n // 3. Write the index to a text file:\n try {\n // Build the output filepath:\n File parent = new File(path.getParent());\n String fileName = parent.getAbsolutePath() + \"/output.txt\";\n\n // Open a buffered file writer at the output location:\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n // Write the index to the file:\n writer.write(header.toString());\n writer.write(content.toString());\n // Close the writer:\n writer.flush();\n writer.close();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n // Print the runtime of the program to the console window (in milliseconds):\n System.out.println(System.currentTimeMillis() - startTime);\n }", "public String getIndexDir() { return this.indexDir; }", "public void makeIndex(String docsFile, String noiseWordsFile) \n\tthrows FileNotFoundException {\n\t\t// load noise words to hash table\n\t\tScanner sc = new Scanner(new File(noiseWordsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString word = sc.next();\n\t\t\tnoiseWords.add(word);}\n\t\t// index all keywords\n\t\tsc = new Scanner(new File(docsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString docFile = sc.next();\n\t\t\tHashMap<String,Occurrence> kws = loadKeywordsFromDocument(docFile);\n\t\t\tmergeKeywords(kws);}\n\t\tsc.close();\n\t}", "public static void addFile(Path inputFile, InvertedIndex index) throws IOException {\n\t\tStemmer stemmer = new SnowballStemmer(DEFAULT);\n\t\tint count = 0;\n\n\t\ttry(BufferedReader reader = Files.newBufferedReader(inputFile, StandardCharsets.UTF_8);){\n\t\t\tString line = reader.readLine();\n\t\t\tString result = inputFile.toString();\n\t\t\twhile(line != null){\n\t\t\t\tString[] parsed = TextParser.parse(line); //putting parsed words into new string array\n\t\t\t\tfor(String words : parsed) { //getting the words in the parsed line\n\t\t\t\t\tcount++;\n\t\t\t\t\tindex.add(stemmer.stem(words).toString(), result, count); //adds stemmed word into tree set\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t}\n\t}", "private void prepareStudentDirectories() {\n //---------- get all directories in the top level directory ----------\n ArrayList<File> listOfFiles = getFilesInDirectory(TopAssignmentsDirectory, true);\n\n /* for directories that don't conform to Moodle names, we will label\n them \"anonymous 1\", \"anonymous 2\", etc... */\n int anonymousCounter = 1;\n\n //---------- go through the list and identify subdirectories ----------\n for (File file : listOfFiles) {\n if (file.isDirectory()) { //check that it is a directory\n\n Assignment newAssignment = new Assignment();\n\n //attempt to extract the student's name\n String studentName = extractStudentNameFromMoodleDirectoryName(file.getName());\n newAssignment.assignmentDirectory = file.toString();\n\n\n if (studentName == null) {\n console(\"skipping directory \" + file.getName());\n } else if (studentName.equals(\"\")) {\n newAssignment.studentName = \"Anonymous \" + anonymousCounter;\n anonymousCounter++;\n //add this assignment to the assignments ArrayList\n assignments.add(newAssignment);\n } else {\n //student name successfully extracted: add to the assignmentDirectories dictionary\n newAssignment.studentName = studentName;\n //add this assignment to the assignments ArrayList\n assignments.add(newAssignment);\n }\n\n }\n }\n }", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "private void generateFileList() {\r\n \r\n for (FileSet fileSet : cmtFileSetList) {\r\n DirectoryScanner dirScanner = fileSet.getDirectoryScanner();\r\n dirScanner.scan();\r\n String[] filelist = dirScanner.getIncludedFiles();\r\n String lineSeparator = System.getProperty(\"line.separator\");\r\n String fileSeparator = System.getProperty(\"file.separator\");\r\n \r\n BufferedWriter outputFile = null;\r\n try {\r\n outputFile = new BufferedWriter(new FileWriter(input));\r\n for (String file : filelist) {\r\n outputFile.write(dirScanner.getBasedir().toString() + fileSeparator + file\r\n + lineSeparator);\r\n }\r\n } catch (IOException e) {\r\n throw new BuildException(\"Not able to generate file list for 'cmt'. \", e);\r\n } finally {\r\n try {\r\n if (outputFile != null) {\r\n outputFile.close();\r\n }\r\n } catch (IOException ex) {\r\n // ignore exception\r\n ex = null;\r\n }\r\n }\r\n }\r\n }", "private void scanIntermediateDirectory(final Path absPath) throws IOException {\n List<FileStatus> fileStatusList = scanDirectoryForHistoryFiles(absPath,\n intermediateDoneDirFc);\n for (FileStatus fs : fileStatusList) {\n JobIndexInfo jobIndexInfo = FileNameIndexUtils.getIndexInfo(fs.getPath()\n .getName());\n String confFileName = JobHistoryUtils\n .getIntermediateConfFileName(jobIndexInfo.getJobId());\n String summaryFileName = JobHistoryUtils\n .getIntermediateSummaryFileName(jobIndexInfo.getJobId());\n MetaInfo metaInfo = new MetaInfo(fs.getPath(), new Path(fs.getPath()\n .getParent(), confFileName), new Path(fs.getPath().getParent(),\n summaryFileName), jobIndexInfo);\n if (!intermediateListCache.containsKey(jobIndexInfo.getJobId())) {\n intermediateListCache.put(jobIndexInfo.getJobId(), metaInfo);\n }\n }\n }", "IIndexFragmentFile[] getFiles(IIndexFileLocation location) throws CoreException;", "public void addDocument(Document d) throws IndexerException {\n\t\t\n\t//if (!isvaliddir) {System.out.println(\"INVALID PATH/execution !\");return;}\n\t\n\t\n\t//Tokenizing\n\t//one thgread\n\tDocID did=new DocID(d.getField(FieldNames.FILEID),\n\t\t\td.getField(FieldNames.CATEGORY),\n\t\t\td.getField(FieldNames.AUTHOR));\n\t\n\tTokenStream stream=tokenize(FieldNames.CATEGORY,d);\n\tAnalyzer analyz=analyze(FieldNames.CATEGORY, stream);\n\tCategoryIndex.getInst().doIndexing(did.getdID(), stream);\n\t/*\t}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);\n\t}\n\ttry{*/TokenStream stream1=tokenize(FieldNames.AUTHOR,d);\n\tAnalyzer analyz1=analyze(FieldNames.AUTHOR, stream1);\n\tAuthorIndex.getInst().doIndexing(did.getdID(), stream1);\n\t/*}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\ttry{*/TokenStream stream2=tokenize(FieldNames.PLACE,d);\n\tAnalyzer analyz2=analyze(FieldNames.PLACE, stream2);\n\tPlaceIndex.getInst().doIndexing(did.getdID(), stream2);\n/*}catch(Exception e)\n\t{\n\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t);}\n\ttry{*/tkizer = new Tokenizer();\n\tTokenStream stream3=tokenize(FieldNames.CONTENT,d);\n\tfactory = AnalyzerFactory.getInstance();\n\tAnalyzer analyz3=analyze(FieldNames.CONTENT, stream3);\n\tnew Indxr(IndexType.TERM).doIndexing(did, stream3);\n\t/*}\tcatch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\t*/\n\tdocs.add(did==null?\" \":did.toString());\n\t \n\t\na_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.AUTHOR);\nc_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.CATEGORY);\np_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.PLACE);\nt_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.TERM);\n\t\t}", "public static synchronized void indexDocuments(Queue<CodeIndexDocument> codeIndexDocumentQueue) throws IOException {\n // Index all documents and commit at the end for performance gains\n Directory dir = FSDirectory.open(Paths.get(Properties.getProperties().getProperty(Values.INDEXLOCATION, Values.DEFAULTINDEXLOCATION)));\n Directory facetsdir = FSDirectory.open(Paths.get(Properties.getProperties().getProperty(Values.FACETSLOCATION, Values.DEFAULTFACETSLOCATION)));\n\n Analyzer analyzer = new CodeAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n FacetsConfig facetsConfig = new FacetsConfig();\n SearchcodeLib scl = new SearchcodeLib();\n\n iwc.setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n TaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(facetsdir);\n\n\n try {\n CodeIndexDocument codeIndexDocument = codeIndexDocumentQueue.poll();\n int count = 0;\n\n while (codeIndexDocument != null) {\n Singleton.getLogger().info(\"Indexing file \" + codeIndexDocument.getRepoLocationRepoNameLocationFilename());\n Singleton.decrementCodeIndexLinesCount(codeIndexDocument.getCodeLines());\n\n Document doc = new Document();\n // Path is the primary key for documents\n // needs to include repo location, project name and then filepath including file\n Field pathField = new StringField(\"path\", codeIndexDocument.getRepoLocationRepoNameLocationFilename(), Field.Store.YES);\n doc.add(pathField);\n\n // Add in facets\n facetsConfig = new FacetsConfig();\n facetsConfig.setIndexFieldName(Values.LANGUAGENAME, Values.LANGUAGENAME);\n facetsConfig.setIndexFieldName(Values.REPONAME, Values.REPONAME);\n facetsConfig.setIndexFieldName(Values.CODEOWNER, Values.CODEOWNER);\n\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getLanguageName()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.LANGUAGENAME, codeIndexDocument.getLanguageName()));\n }\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getRepoName()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.REPONAME, codeIndexDocument.getRepoName()));\n }\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getCodeOwner()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.CODEOWNER, codeIndexDocument.getCodeOwner()));\n }\n\n String indexContents = Values.EMPTYSTRING;\n\n Singleton.getLogger().info(\"Splitting keywords\");\n indexContents += scl.splitKeywords(codeIndexDocument.getContents());\n Singleton.getLogger().info(\"Cleaning pipeline\");\n indexContents += scl.codeCleanPipeline(codeIndexDocument.getContents());\n Singleton.getLogger().info(\"Adding to spelling corrector\");\n scl.addToSpellingCorrector(codeIndexDocument.getContents()); // Store in spelling corrector\n\n indexContents = indexContents.toLowerCase();\n\n doc.add(new TextField(Values.REPONAME, codeIndexDocument.getRepoName(), Field.Store.YES));\n doc.add(new TextField(Values.FILENAME, codeIndexDocument.getFileName(), Field.Store.YES));\n doc.add(new TextField(Values.FILELOCATION, codeIndexDocument.getFileLocation(), Field.Store.YES));\n doc.add(new TextField(Values.FILELOCATIONFILENAME, codeIndexDocument.getFileLocationFilename(), Field.Store.YES));\n doc.add(new TextField(Values.MD5HASH, codeIndexDocument.getMd5hash(), Field.Store.YES));\n doc.add(new TextField(Values.LANGUAGENAME, codeIndexDocument.getLanguageName(), Field.Store.YES));\n doc.add(new IntField(Values.CODELINES, codeIndexDocument.getCodeLines(), Field.Store.YES));\n doc.add(new TextField(Values.CONTENTS, indexContents, Field.Store.NO));\n doc.add(new TextField(Values.REPOLOCATION, codeIndexDocument.getRepoRemoteLocation(), Field.Store.YES));\n doc.add(new TextField(Values.CODEOWNER, codeIndexDocument.getCodeOwner(), Field.Store.YES));\n\n // Extra metadata in this case when it was last indexed\n doc.add(new LongField(Values.MODIFIED, new Date().getTime(), Field.Store.YES));\n\n writer.updateDocument(new Term(Values.PATH, codeIndexDocument.getRepoLocationRepoNameLocationFilename()), facetsConfig.build(taxoWriter, doc));\n\n count++;\n if (count >= 1000) { // Only index 1000 documents at most each time\n codeIndexDocument = null;\n }\n else {\n codeIndexDocument = codeIndexDocumentQueue.poll();\n }\n\n }\n }\n finally {\n Singleton.getLogger().info(\"Closing writers\");\n writer.close();\n taxoWriter.close();\n }\n }", "private void createDirectories(BinaryReader reader, List<ISO9660Directory> directoryList,\n\t\t\tlong blockSize, TaskMonitor monitor) throws DuplicateNameException, Exception {\n\n\t\tfor (ISO9660Directory dir : directoryList) {\n\n\t\t\t//If the directory is a new level of directories\n\t\t\t//recurse down into the next level\n\t\t\tif (dir.isDirectoryFlagSet() && dir.getName() != null) {\n\t\t\t\tList<ISO9660Directory> dirs;\n\t\t\t\tdirs = createDirectoryList(reader, dir, blockSize, monitor);\n\t\t\t\tcreateDirectories(reader, dirs, blockSize, monitor);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public static List<Path> createSimpleDirectory( final Configuration conf, final Path root, final int count, List<Path> existingEntries ) throws IOException\r\n\t{\r\n\t\t/** If count is invalid just return, no work to do here. */\r\n\t\tif (count<=0) {\r\n\t\t\tLOG.error( \"Count is <= 0 \" + count + \" for root \" + root);\r\n\t\t\treturn existingEntries;\r\n\t\t}\r\n\t\t/** If the incoming list is null create one that will cound at least count elements. */\r\n\t\tif (existingEntries==null) {\r\n\t\t\texistingEntries = new ArrayList<Path>(count);\r\n\t\t}\r\n\t\tFileSystem fs = root.getFileSystem(conf);\r\n\t\tif (fs.exists(root)&&!fs.getFileStatus(root).isDir()) {\r\n\t\t\tLOG.error(\"Root \" + root + \" exists and is not a directory\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (!fs.exists(root)&&!fs.mkdirs(root)) {\r\n\t\t\tLOG.error(\"Root \" + root + \" does not exist and can not be made\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t/** Setup a formatter for building the file names. */\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tFormatter fmt = new Formatter(sb);\r\n\r\n\t\t/** How wide is count, so we can set up the file name format nice and evenly.\r\n\t\t * We first format the max numeric value into a string.\r\n\t\t * Then determine the string width.\r\n\t\t * This is now the field with to format for our output counters.\r\n\t\t * Then we build a format string that has the width embedded in it, with a leading 0 for zero padding.\r\n\t\t */\r\n\t \r\n\t\tfmt.format(\"%d\", count-1);\r\n\t\tfmt.flush();\r\n\t\t/** The width of the largest numeric suffix. */\r\n\t\tint countWidth = sb.toString().length();\r\n\t\tsb.setLength(0);\r\n\t\tfmt.format(\"tmpFile-%%0%dd\", countWidth);\r\n\t\t/** The format string to use, with fixed width numeric suffixes. */\r\n\t\tString fmtString = sb.toString();\r\n\t\t/** Create the temporary files in root, with a name of the form tmpFile-0XXXX */\r\n\t\tfor( int i = 0; i < count; i++) {\r\n\t\t\t/** Set up the file name in sb. */\r\n\t\t\tsb.setLength(0);\r\n\t\t\tfmt.format( fmtString, i);\r\n\t\t\tfmt.flush();\r\n\t\t\tString fileName = sb.toString();\r\n\t\t\t\r\n\t\t\t/** Create the file and create some data for it. */\r\n\t\t\tPath fileToCreate = new Path( root, fileName);\r\n\t\t\tsb.setLength(0);\r\n\t\t\tfmt.format( \"%s\\t%d%n\", fileToCreate.toString(), count);\r\n\t\t\tfmt.flush();\r\n\t\t\t\r\n\t\t\tcreateSimpleFile( conf, fileToCreate, sb.toString());\t/** Create a simple file with a single entry, the path and the count */\r\n\t\t\texistingEntries.add(fileToCreate);\r\n\t\t}\r\n\t\treturn existingEntries;\r\n\t}", "private void processFolder(File folder) {\n \t\tFile[] subFolders = folder.listFiles(new FileFilter() {\n \t\t\t@Override\n \t\t\tpublic boolean accept(File pathname) {\n \t\t\t\treturn pathname.isDirectory();\n \t\t\t}\n \t\t});\n \t\tfor (File subFolder : subFolders){\n \t\t\tprocessFolder(subFolder); \n \t\t}\n \t\tPattern nameRegex = Pattern.compile(\"([\\\\d-]+)\\\\.(pdf|epub)\", Pattern.CANON_EQ | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);\n \t\tFile[] files = folder.listFiles();\n \t\tfor (File file : files) {\n \t\t\tlogger.info(\"Processing file \" + file.getName());\n \t\t\tprocessLog.addNote(\"Processing file \" + file.getName());\n \t\t\tif (file.isDirectory()) {\n \t\t\t\t//TODO: Determine how to deal with nested folders?\n \t\t\t\t//processFolder(file);\n \t\t\t} else {\n \t\t\t\t// File check to see if it is of a known type\n \t\t\t\tMatcher nameMatcher = nameRegex.matcher(file.getName());\n \t\t\t\tif (nameMatcher.matches()) {\n \t\t\t\t\tImportResult importResult = new ImportResult();\n \t\t\t\t\tString isbn = nameMatcher.group(1);\n \t\t\t\t\tString fileType = nameMatcher.group(2).toLowerCase();\n \t\t\t\t\timportResult.setBaseFilename(isbn);\n \t\t\t\t\tisbn = isbn.replaceAll(\"-\", \"\");\n \t\t\t\t\timportResult.setISBN(isbn);\n \t\t\t\t\timportResult.setCoverImported(\"\");\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Get the record for the isbn\n \t\t\t\t\t\tgetRelatedRecords.setString(1, \"%\" + isbn + \"%\");\n \t\t\t\t\t\tResultSet existingRecords = getRelatedRecords.executeQuery();\n \t\t\t\t\t\tif (!existingRecords.next()){\n \t\t\t\t\t\t\t//No record found \n \t\t\t\t\t\t\tlogger.info(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\tprocessLog.addNote(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t}else{\n \t\t\t\t\t\t\tlogger.info(\"Found at least one record for \" + isbn);\n \t\t\t\t\t\t\tif (existingRecords.last()){\n \t\t\t\t\t\t\t\tif (existingRecords.getRow() >= 2){\n \t\t\t\t\t\t\t\t\tlogger.info(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t//We have an existing record\n \t\t\t\t\t\t\t\t\texistingRecords.first();\n \t\t\t\t\t\t\t\t\tString recordId = existingRecords.getString(\"id\");\n \t\t\t\t\t\t\t\t\tString accessType = existingRecords.getString(\"accessType\");\n \t\t\t\t\t\t\t\t\tString source = existingRecords.getString(\"source\");\n \t\t\t\t\t\t\t\t\tlogger.info(\" Attaching file to \" + recordId + \" accessType = \" + accessType + \" source=\" + source);\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t// Copy the file to the library if it does not exist already\n \t\t\t\t\t\t\t\t\tFile resultsFile = new File(libraryDirectory + source + \"_\" + file.getName());\n \t\t\t\t\t\t\t\t\tif (resultsFile.exists()) {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Skipping file because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"File has already been copied to library\");\n \t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Importing file \" + file.getName());\n \t\t\t\t\t\t\t\t\t\t//Check to see if the file has already been added to the library.\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(1, file.getName());\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(2, recordId);\n \t\t\t\t\t\t\t\t\t\tResultSet existingItems = doesItemExist.executeQuery();\n \t\t\t\t\t\t\t\t\t\tif (existingItems.next()){\n \t\t\t\t\t\t\t\t\t\t\t//The item already exists\n \t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"The file has already been aded as an eContent Item\");\n \t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" copying the file to library source=\" + file + \" dest=\" + resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t//Copy the pdf file to the library\n \t\t\t\t\t\t\t\t\t\t\t\tUtil.copyFile(file, resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t//Add file to acs server\n \t\t\t\t\t\t\t\t\t\t\t\tboolean addedToAcs = true;\n \t\t\t\t\t\t\t\t\t\t\t\tif (accessType.equals(\"acs\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Adding file to the ACS server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\taddedToAcs = addFileToAcsServer(fileType, resultsFile, importResult);\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (addedToAcs){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//filename, acsId, recordId, item_type, addedBy, date_added, date_updated\n \t\t\t\t\t\t\t\t\t\t\t\t\tlong curTimeSec = new Date().getTime() / 1000;\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(1, resultsFile.getName());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(2, importResult.getAcsId());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(3, recordId);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(4, fileType);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(5, -1);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(6, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(7, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\tint rowsInserted = addEContentItem.executeUpdate();\n \t\t\t\t\t\t\t\t\t\t\t\t\tif (rowsInserted == 1){\n \t\t\t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"success\", \"\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" file could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (importResult.getSatus(fileType).equals(\"failed\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//If we weren't able to add the file correctly, remove it so it will be processed next time. \n \t\t\t\t\t\t\t\t\t\t\t\t\tresultsFile.delete();\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.error(\"Error copying file to record\", e);\n \t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Error copying file \" + e.toString());\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error finding related records\", e);\n \t\t\t\t\t\timportResult.setStatus(\"pdf\", \"failed\", \"SQL error processing file \" + e.toString());\n \t\t\t\t\t}\n \t\t\t\t\timportResults.add(importResult);\n \t\t\t\t\t//Update that another file has been processed.\n \t\t\t\t\tprocessLog.incUpdated();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(1, processLog.getNumUpdates());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(2, processLog.getNumErrors());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(3, logEntryId);\n \t\t\t\t\t\tupdateRecordsProcessed.executeUpdate();\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error updating number of records processed.\", e);\n \t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tprocessLog.addNote(\" Skipping because the name is not an ISBN\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t}", "public void parseDirectory(File directory) throws IOException {\n this.parsedFiles.clear();\n File[] contents = directory.listFiles();\n for (File file : contents) {\n if (file.isFile() && file.canRead() && file.canWrite()) {\n String fileName = file.getPath();\n if (fileName.endsWith(\".html\")) {\n Document parsed;\n parsed = Jsoup.parse(file, \"UTF-8\");\n if (this.isWhiteBearArticle(parsed)) {\n HTMLFile newParsedFile = new HTMLFile(parsed, false);\n String name = file.getName();\n this.parsedFiles.put(name, newParsedFile);\n } else if (this.isMenuPage(parsed)) {\n //HTMLFile newParsedFile = new HTMLFile(parsed, false);\n //String name = file.getName();\n //this.parsedFiles.put(name, newParsedFile);\n }\n }\n }\n }\n }", "@Override\n\tpublic synchronized void initialize() {\n\t\tFile[] files = mRootDirectory.listFiles();\n\t\tif (files == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (File file : files) {\n\t\t\tFileInputStream fis = null;\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(file);\n\t\t\t\tCacheHeader entry = CacheHeader.readHeader(fis);\n\t\t\t\tentry.size = file.length();\n\t\t\t\tputEntry(entry.key, entry);\n\t\t\t} catch (IOException e) {\n\t\t\t\tif (file != null) {\n\t\t\t\t\tfile.delete();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (fis != null) {\n\t\t\t\t\t\tfis.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void generateDocumentDirectories( Path jobDirectory,\n FileSystem fs )\n throws IOException {\n FileSystemHandler fsHandler = new FileSystemHandler( fs );\n\n // Create doc directory\n if( fsHandler.isDir( jobDirectory ) ) {\n fsHandler.delete( jobDirectory );\n }\n fs.mkdirs( jobDirectory );\n\n for( int i = 0; i < 10; i++ ) {\n createDocumentDirectory(\n new Path( jobDirectory, \"doc\" + Integer.toString(i) ), fs );\n }\n }", "private static RDFIndex createDefaultIndex() {\n defaultIndex = new RDFIndex(com.hp.hpl.jena.graph.Factory.createGraphMem());\n try {\n File indexFile = new File(INDEX_FILE);\n if(indexFile.exists()) {\n defaultIndex.read(new FileReader(indexFile),Constants.RESOURCE_URL);\n }\n } catch(Throwable t) {\n t.printStackTrace();\n }\n return defaultIndex;\n }" ]
[ "0.71745634", "0.68898505", "0.6836785", "0.6357817", "0.6230799", "0.6058634", "0.6048467", "0.6018934", "0.5983646", "0.5978925", "0.5953576", "0.59445786", "0.5897393", "0.58669704", "0.58454657", "0.5844878", "0.58402437", "0.5795248", "0.5789412", "0.5768013", "0.57380265", "0.573039", "0.5690788", "0.56854737", "0.5672129", "0.56544805", "0.5640554", "0.55881196", "0.5571553", "0.55525285", "0.55476284", "0.5544814", "0.5512332", "0.5471092", "0.54703516", "0.54690534", "0.5464956", "0.54433167", "0.5441308", "0.5424827", "0.54004186", "0.53938144", "0.5389393", "0.5379412", "0.53782606", "0.53573275", "0.53418916", "0.5337191", "0.53145355", "0.5306455", "0.53045774", "0.5300236", "0.5293696", "0.52906024", "0.5285774", "0.5277574", "0.52673584", "0.5262051", "0.5258403", "0.5254838", "0.52542734", "0.52532834", "0.5248423", "0.52482927", "0.5228946", "0.52258414", "0.5224988", "0.52190775", "0.52177477", "0.5215065", "0.52049005", "0.517056", "0.517044", "0.5165187", "0.5164132", "0.5146425", "0.5141358", "0.51375383", "0.5135974", "0.5135025", "0.51312524", "0.5129261", "0.5120528", "0.51200134", "0.51180893", "0.5116833", "0.51034284", "0.510221", "0.5099471", "0.50991565", "0.5094425", "0.5070348", "0.5070134", "0.50557584", "0.50531083", "0.5049533", "0.50395566", "0.50353026", "0.5035209", "0.50268805" ]
0.63347083
4
Will create index to selected folder. Data will be from selectedFile and name of Index (new folder) will be nameOfLuceneIndex
private static void peopleAndEventsCreate(File selectedFolder, File selectedFile, String nameOfLuceneIndex) throws Exception { StandardAnalyzer analyzer = new StandardAnalyzer(); /* Where to store index */ File directoryOfIndex = new File(selectedFolder + nameOfLuceneIndex); deleteDirectory(directoryOfIndex); // before creating new index, the old one is deleted Directory index = FSDirectory.open(directoryOfIndex); IndexWriterConfig config = new IndexWriterConfig(Version.LATEST, analyzer); IndexWriter w = new IndexWriter(index, config); BufferedReader in; try { in = new BufferedReader(new InputStreamReader(new FileInputStream(selectedFile), "UTF-8")); while (in.ready()) { String oneLine = in.readLine(); String[] splittedString = oneLine.split(";"); if(splittedString.length == 2) { addDoc(w, splittedString[0], splittedString[1], ""); } else if(splittedString.length == 3) { addDoc(w, splittedString[0], splittedString[1], splittedString[2]); } } in.close(); } catch (Exception e) { e.printStackTrace(); } w.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CreateIndex(File selectedFolder) {\n\n\t\tFile selectedFilePeople = new File(selectedFolder + Settings.nameOfPeopleFile);\n\t\tFile selectedFileEvents = new File(selectedFolder + Settings.nameOfEventsFile);\n\t\t\n\t\ttry {\n\t\t\tpeopleAndEventsCreate(selectedFolder, selectedFilePeople, Settings.nameOfLuceneIndexPeople);\n\t\t\tpeopleAndEventsCreate(selectedFolder, selectedFileEvents, Settings.nameOfLuceneIndexEvents);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}", "public void createIndex(String dataDirPath){\n\t\tFile[] files = new File(dataDirPath).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif(!file.isDirectory()\n\t\t\t\t\t&& !file.isHidden()\n\t\t\t\t\t&& file.exists()\n\t\t\t\t\t){\n\t\t\t\t//add to Map\n\t\t\t\t// m.put(file.getAbsolutePath(), new RankModel(file,0,getOutLinks(file.getAbsolutePath())));\n\t\t\t\tallFiles.add(file.getAbsolutePath());\n\t\t\t}else{\n\t\t\t\tcreateIndex(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\t// return writer.numDocs();\n\t}", "private static void createIndexEntry(Document document, int menuId, String filename, String path) throws Exception {\r\n Indexer index = (Indexer) Context.getInstance().getBean(Indexer.class);\r\n index.deleteFile(String.valueOf(menuId), document.getLanguage());\r\n index.addDirectory(new File(path + filename), document);\r\n }", "public int createIndex(String dataDirPath, FileFilter filter) throws IOException {\n\t\tFile[] files = new File(dataDirPath).listFiles();\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\tif (!files[i].isDirectory() && !files[i].isHidden() && files[i].exists() && files[i].canRead()\r\n\t\t\t\t\t&& filter.accept(files[i])) {\r\n\t\t\t\tindexFile(files[i], (i % 2));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn writer.numDocs();\r\n\t}", "public void createIndex(String dirPath) throws IOException {\n\n\t\tFile[] files = new File(dirPath).listFiles();\n\n\t\tfor (File f : files) {\n\t\t\tindexDocument(f);\n\t\t}\n\n\t\tclose();\n\t\tprintStatistics();\n\t}", "public void openIndex(String indexPath) throws IOException {\n\n }", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "LuceneMemoryIndex createLuceneMemoryIndex();", "private static void createIndexDocument(String path, Configuration c, LODEParser l, Properties lang){\n //the boolean valuas come from the configuration.\n String textToWrite = Constants.getIndexDocument(\"resources\",c, l, lang);\n saveDocument(path+File.separator+\"index-\"+c.getCurrentLanguage()+\".html\", textToWrite,c);\n }", "public void createIndex(String dataDirPath, String txType) throws IOException {\n\t\ttry {\n\t\t\tString inLoc = \"/mnt/3TB/in.csv\";\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inLoc), \"UTF-8\"));\n\n\t\t\tString line;\n\t\t\tboolean first = true;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] items = line.split(\",\");\n\t\t\t\tif (items.length > 3) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tDocument doc = makeTx(items[0], items[1], Long.parseLong(items[2]), txType);\n\t\t\t\twriter.addDocument(doc);\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "IIndexFragmentFileSet createFileSet();", "void createIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (!indexDir.exists())\n indexDir.mkdir();\n else {\n removeIndexDir(indexDirPath);\n indexDir.mkdir(); \n }\n }", "public void createIndex() throws IOException {\n\t\tLOGGER.info(\"creating photo index...\");\n\t\tCreateIndexRequest request = new CreateIndexRequest(\"files\");\n\t\tInputStream in = getClass().getClassLoader().getResourceAsStream(\"photo.json\");\n\t\tString mapping = new String(in.readAllBytes());\n\t\tin.close();\n\t\trequest.mapping(\"photo\", mapping, XContentType.JSON);\n\t\tCreateIndexResponse response = client.indices().create(request);\n\t\tLOGGER.info(\"photo index created: \" + response.toString());\n\t}", "@Override\n\tpublic void build(Index index) {\n\t\tthis.indexdir = index.getPath();\n\t\tLuceneIndex luceneIndex = (LuceneIndex) index;\n\t\tthis.indexSearcher = new IndexSearcher(luceneIndex.getReader());\n\n\t}", "private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\"\\t\");\n\t\t\t\tparts[1]=parts[1].replace(\"{\", \"\").replace(\"}\", \"\");\n\t\t\t\tString counts[]=parts[1].split(\",\");\n\t\t\t\tHashMap<String,Integer> fileList=new HashMap<String,Integer>();\n\t\t\t\tfor (String count : counts) {\n\t\t\t\t\tString file[]=count.split(\"=\");\n\t\t\t\t\tfileList.put(file[0].trim().replace(\".txt\", \"\"), Integer.parseInt(file[1].trim()));\n\t\t\t\t}\n\t\t\t\tIndex index=new Index();\n\t\t\t\tindex.setWord(parts[0]);\n\t\t\t\tindex.setFileList(fileList);\n\t\t\t\tinvertedIndex.add(index);\n\t\t\t}\n\t\t\tin.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertIndex(invertedIndex);\n\t}", "public void indexFileOrDirectory(String fileName) {\r\n\r\n addFiles(new File(fileName));\r\n\r\n int originalNumDocs = writer.numRamDocs();\r\n for (File f : queue) {\r\n try {\r\n Document doc = new Document();\r\n\r\n // Creation of a simpledateformatter in order to print the last-modified-date of our files.\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\r\n String date = sdf.format(f.lastModified());\r\n\r\n if (f.getName().endsWith(\".html\")) {\r\n\r\n // Creation of a jsoup document to help us with our html parsing.\r\n org.jsoup.nodes.Document htmlFile = Jsoup.parse(f, null);\r\n String body = htmlFile.body().text();\r\n String title = htmlFile.title();\r\n String summary = getSummary(htmlFile);\r\n\r\n\r\n doc.add(new TextField(\"contents\", body + \" \" + title + \" \" + date, Field.Store.YES));\r\n doc.add(new TextField(\"title\", title, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n doc.add(new StringField(\"summary\", summary, Field.Store.YES));\r\n\r\n }\r\n else {\r\n String content = FileUtils.readFileToString(f, StandardCharsets.UTF_8);\r\n\r\n doc.add(new TextField(\"contents\", content + \" \" + date, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n }\r\n doc.add(new StringField(\"filename\", f.getName(), Field.Store.YES));\r\n\r\n writer.addDocument(doc);\r\n System.out.println(\"Added: \" + f);\r\n } catch (Exception e) {\r\n System.out.println(\"Could not add: \" + f);\r\n }\r\n }\r\n\r\n int newNumDocs = writer.numDocs();\r\n System.out.println(\"\");\r\n System.out.println(\"************************\");\r\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\r\n System.out.println(\"************************\");\r\n\r\n queue.clear();\r\n }", "public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}", "@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }", "public void indexFileOrDirectory(String fileName) throws IOException {\n\t// gets the list of files in a folder (if user has submitted\n\t// the name of a folder) or gets a single file name (is user\n\t// has submitted only the file name)\n\t// ===================================================\n\taddFiles(new File(fileName));\n\n\tint originalNumDocs = writer.numDocs();\n\tfor (File f : queue) {\n\t FileReader fr = null;\n\t try {\n\t\tDocument doc = new Document();\n\n\t\t// ===================================================\n\t\t// add contents of file\n\t\t// ===================================================\n\t\tfr = new FileReader(f);\n\t\tdoc.add(new TextField(\"contents\", fr));\n\t\tdoc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\n\t\tdoc.add(new StringField(\"filename\", f.getName(),\n\t\t\tField.Store.YES));\n\n\t\twriter.addDocument(doc);\n\t\t//System.out.println(\"Added: \" + f);\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Could not add: \" + f);\n\t } finally {\n\t\tfr.close();\n\t }\n\t}\n\n\tint newNumDocs = writer.numDocs();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"************************\");\n\tSystem.out\n\t\t.println((newNumDocs - originalNumDocs) + \" documents added.\");\n\tSystem.out.println(\"************************\");\n\n\tqueue.clear();\n }", "public static void main(String[] args) throws IOException {\n\t\tif (args.length != 2) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"You need to give database directory path and output directory path as arguments.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tdirectory = args[0];\n\t\toutputFilePath = args[1];\n\t\t// Get list of all files.\n\t\tFile[] listOfFiles = Util.getAllFiles(directory);\n\t\t// Get all the stop words in the sorted order.\n\t\tTreeMap<String, String> stopWords = Util\n\t\t\t\t.getStopWordsFromFile(stopWordFile);\n\t\tint numberOfFiles = listOfFiles.length;\n\t\t// 2D array to store the required information about each doc.\n\t\tInteger[][] docInfo = new Integer[numberOfFiles + 1][2];\n\t\tdouble timeForIndexVersion1 = 0.0d, timeForIndexVersion2 = 0.0d;\n\t\tlong startTime, endTime;\n\t\tif (numberOfFiles != 0) {\n\n\t\t\t// Starting creating Index version 1.\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t// Get the doc id.\n\t\t\t\tint docId = Integer.parseInt(file.getName().substring(9));\n\t\t\t\t// For version 1:\n\t\t\t\t// do lemmatization\n\t\t\t\tMap<String, Integer> lemmasFromFile = lemmatizer\n\t\t\t\t\t\t.lemmatize(file);\n\t\t\t\t// remove stop words,\n\t\t\t\tMap<String, Integer> lemmasWoStopWords = Util.removeStopWords(\n\t\t\t\t\t\tlemmasFromFile, stopWords);\n\t\t\t\t// create index.\n\t\t\t\tindexVersion1.creatIndex(docId, lemmasWoStopWords);\n\t\t\t}\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\t// calculate total time taken\n\t\t\ttimeForIndexVersion1 = (endTime - startTime) / 1000.0d;\n\n\t\t\t// indexVersion1.printIndex();\n\t\t\t// write uncompressed index of version 1 to a binary file.\n\t\t\tindexVersion1.writeIndexUncompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version1.uncompress\");\n\t\t\t// compress index\n\t\t\tindexVersion1.compressIndex();\n\t\t\t// write compressed index of version 1 to a binary file.\n\t\t\tindexVersion1.writeIndexCompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version1.compress\");\n\n\t\t\t// Starting creating Index version 2.\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tfor (File file : listOfFiles) {\n\t\t\t\tint docId = Integer.parseInt(file.getName().substring(9));\n\t\t\t\t// For version 2:\n\t\t\t\t// generate tokens from the file\n\t\t\t\tMap<String, Integer> tokensFromFile = Util\n\t\t\t\t\t\t.getTokensFromFile(file);\n\t\t\t\t// do stemming\n\t\t\t\tMap<String, Integer> stemmedTokens = Util\n\t\t\t\t\t\t.getStemmedTokens(tokensFromFile);\n\t\t\t\t// remove stop words\n\t\t\t\tMap<String, Integer> stemmedTokensWoStopWords = Util\n\t\t\t\t\t\t.removeStopWords(stemmedTokens, stopWords);\n\t\t\t\t// update the information about current document.\n\t\t\t\tUtil.updateDocInfo(docInfo, docId, stemmedTokens,\n\t\t\t\t\t\tstemmedTokensWoStopWords);\n\t\t\t\t// System.out.println(\"DocId: \" + docId + \" Max Freq: \"\n\t\t\t\t// + docInfo[docId][0].toString() + \" Doc length: \"\n\t\t\t\t// + docInfo[docId][1].toString());\n\t\t\t\t// create index\n\t\t\t\tindexVersion2.creatIndex(docId, stemmedTokensWoStopWords);\n\n\t\t\t}\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\t// calculate total time taken\n\t\t\ttimeForIndexVersion2 = (endTime - startTime) / 1000.0d;\n\t\t\t// write documents information to a binary file\n\t\t\twriteDocInfo(docInfo, outputFilePath, \"docs.info\");\n\t\t\t// write uncompressed index of version 2 to a binary file.\n\n\t\t\t// indexVersion2.printIndex();\n\t\t\tindexVersion2.writeIndexUncompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version2.uncompress\");\n\t\t\t// compress index\n\t\t\tindexVersion2.compressIndex();\n\t\t\t// write compressed index of version 2 to a binary file.\n\t\t\tindexVersion2.writeIndexCompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version2.compress\");\n\n\t\t\t// display the required information.\n\t\t\tdisplayOutput(timeForIndexVersion1, timeForIndexVersion2);\n\t\t} else {\n\t\t\tSystem.err.println(\"Empty folder\");\n\t\t}\n\t}", "public void addDocument(Document d) throws IndexerException {\n\t\t\n\t//if (!isvaliddir) {System.out.println(\"INVALID PATH/execution !\");return;}\n\t\n\t\n\t//Tokenizing\n\t//one thgread\n\tDocID did=new DocID(d.getField(FieldNames.FILEID),\n\t\t\td.getField(FieldNames.CATEGORY),\n\t\t\td.getField(FieldNames.AUTHOR));\n\t\n\tTokenStream stream=tokenize(FieldNames.CATEGORY,d);\n\tAnalyzer analyz=analyze(FieldNames.CATEGORY, stream);\n\tCategoryIndex.getInst().doIndexing(did.getdID(), stream);\n\t/*\t}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);\n\t}\n\ttry{*/TokenStream stream1=tokenize(FieldNames.AUTHOR,d);\n\tAnalyzer analyz1=analyze(FieldNames.AUTHOR, stream1);\n\tAuthorIndex.getInst().doIndexing(did.getdID(), stream1);\n\t/*}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\ttry{*/TokenStream stream2=tokenize(FieldNames.PLACE,d);\n\tAnalyzer analyz2=analyze(FieldNames.PLACE, stream2);\n\tPlaceIndex.getInst().doIndexing(did.getdID(), stream2);\n/*}catch(Exception e)\n\t{\n\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t);}\n\ttry{*/tkizer = new Tokenizer();\n\tTokenStream stream3=tokenize(FieldNames.CONTENT,d);\n\tfactory = AnalyzerFactory.getInstance();\n\tAnalyzer analyz3=analyze(FieldNames.CONTENT, stream3);\n\tnew Indxr(IndexType.TERM).doIndexing(did, stream3);\n\t/*}\tcatch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\t*/\n\tdocs.add(did==null?\" \":did.toString());\n\t \n\t\na_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.AUTHOR);\nc_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.CATEGORY);\np_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.PLACE);\nt_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.TERM);\n\t\t}", "protected TreeIndex(@Nullable File indexParentDir,\n\t @NotNull File rootFile) {\n\t\tUtil.checkNotNull(rootFile);\n\t\tthis.indexParentDir = indexParentDir;\n\t\t\n\t\t// Create config\n\t\tthis.config = new IndexingConfig() {\n\t\t\t@Override\n\t\t\tprotected void onStoreRelativePathsChanged() {\n\t\t\t\tFile oldFile = rootFolder.getPath().getCanonicalFile();\n\t\t\t\tPath newPath = config.getStorablePath(oldFile);\n\t\t\t\trootFolder.setPath(newPath);\n\t\t\t}\n\t\t\tprotected void onWatchFoldersChanged() {\n\t\t\t\tLuceneIndex.evtWatchFoldersChanged.fire(TreeIndex.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// Create root folder\n\t\trootFile = Util.getCanonicalFile(rootFile);\n\t\tPath newPath = config.getStorablePath(rootFile);\n\t\trootFolder = createRootFolder(newPath);\n\t\tUtil.checkNotNull(rootFolder);\n\t\t\n\t\t// Create index directory or RAM directory\n\t\tcreated = Util.getTimestamp();\n\t\tif (indexParentDir == null) {\n\t\t\tfileIndexDirPath = null;\n\t\t\tramIndexDir = new RAMDirectory();\n\t\t}\n\t\telse {\n\t\t\tString indexDirName = getIndexDirName(rootFile) + \"_\" + created;\n\t\t\tFile indexDir = new File(indexParentDir, indexDirName);\n\t\t\tif (AppUtil.isPortable())\n\t\t\t\tfileIndexDirPath = new Path(UtilModel.getRelativePathIfPossible(indexDir));\n\t\t\telse\n\t\t\t\tfileIndexDirPath = new Path(indexDir);\n\t\t}\n\t}", "public boolean setIndex(String name){\n\n //array to hold all database names from file\n ArrayList<String> dbNames = new ArrayList<String>();\n\n //create index if it doesn't exist\n File file = new File(\"databases/index.txt\");\n Scanner sc;\n FileWriter fw; \n\n try {\n sc = new Scanner(file); \n //read current database names to array\n String currName; \n if (sc.hasNextLine()){\n while(sc.hasNextLine()){\n currName = sc.nextLine();\n dbNames.add(currName);\n } \n }\n sc.close();\n\n //if database name already in index, exit\n if ( dbNames.contains(name) ){return true;}\n\n } catch(FileNotFoundException ex){}\n \n //add new database name to list of dbs\n dbNames.add(name);\n\n //create / overwrite index file\n try {\n fw = new FileWriter(\"databases/index.txt\");\n } catch (IOException ex2){\n System.out.println(\"ERROR: index not found and could not be created\");\n return false;\n }\n\n //write array of database names to file\n for (String dbName : dbNames){\n try {\n fw.write(dbName);\n fw.write(\"\\n\");\n } catch (IOException ex3) {\n System.out.println(\"ERROR: could not write to index\");\n }\n }\n\n try {\n fw.close();\n } catch (IOException ex4){\n System.out.println(\"ERROR: filewriter could not be closed\");\n return false;\n }\n\n return true;\n }", "public void addFolder(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, true), root, index);\n\t\tsetCellRenderer(new TreeRenderer());\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\t}", "public void controlIndex(String path)\n { \t \n \t JSONParser parser = new JSONParser();\n \t \n \t try\n \t {\n \t\t JSONArray array = (JSONArray)parser.parse(new FileReader(path));\n \t\t \n \t\t JSONObject jsonObject = new JSONObject();\n \t\t JSONObject metaObj;\n \t\t \n \t\t for(Object obj : array)\n \t\t {\n \t\t\t jsonObject = (JSONObject) obj;\n \t\t\t String p = jsonObject.get(\"p\").toString().replaceAll(\"\\\\\\\\\", \"/\");\n \t\t\t metaObj = (JSONObject) jsonObject.get(\"metadata\");\n \t\t\t \n \t\t\t String title = \"\";\n \t\t\t String description = \"\"; \n \t\t\t if(metaObj.get(\"title\")!=null)\n \t\t\t {\n \t\t\t\t title = metaObj.get(\"title\").toString();\n \t\t\t }\n \t\t\t if(metaObj.get(\"description\")!=null)\n \t\t\t {\n \t\t\t\t description = metaObj.get(\"description\").toString();\n \t\t\t }\n \t\t\t \n \t\t\t String id = p.substring(p.lastIndexOf(\"/\")+1,p.lastIndexOf(\".\"));\n \t\t\t \n \t\t\t performIndex(p,id,title,description);\n \t\t\t performMetaIndex(jsonObject.get(\"metadata\"),id);\n \t\t }\n \t\t fileWriter();\n \t\t }\n \t catch(Exception e)\n \t { \t\n \t\t e.printStackTrace();\n \t }\n }", "public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }", "public void addDoc (DocFile newFile) {\n\n // Check if the file extension is valid\n if (!isValid(newFile) ) {\n return;\n }\n\n // Create the new document, add in DocID fields and UploaderID fields\n org.apache.lucene.document.Document newDocument = new Document();\n\n Field docIDField = new StringField(Constants.INDEX_KEY_ID, newFile.getId(), Store.YES);\n Field docPathField = new StringField(Constants.INDEX_KEY_PATH, newFile.getPath(), Store.YES);\n Field userIDField = new StringField(Constants.INDEX_KEY_OWNER, newFile.getOwner(), Store.YES);\n Field filenameField = new TextField(Constants.INDEX_KEY_FILENAME, newFile.getFilename(), Store.YES);\n Field isPublicField = new TextField(Constants.INDEX_KEY_STATUS, newFile.isPublic().toString(), Store.YES);\n Field titleField = new TextField(Constants.INDEX_KEY_TITLE, newFile.getTitle(), Store.YES);\n Field typeField = new TextField(Constants.INDEX_KEY_TYPE, newFile.getFileType(), Store.YES);\n Field permissionField = new TextField(Constants.INDEX_KEY_PERMISSION, Integer.toString(newFile.getPermission()), Store.YES);\n Field courseField = new TextField(Constants.INDEX_KEY_COURSE, newFile.getCourseCode(), Store.YES);\n \n \n newDocument.add(docIDField);\n newDocument.add(docPathField);\n newDocument.add(userIDField);\n newDocument.add(filenameField);\n newDocument.add(isPublicField);\n newDocument.add(titleField);\n newDocument.add(typeField);\n newDocument.add(permissionField);\n newDocument.add(courseField);\n \n //Call Content Generator to add in the ContentField\n ContentGenerator.generateContent(newDocument, newFile);\n\n // Add the Document to the Index\n try {\n writer.addDocument(newDocument);\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void createIndexLink()\r\n \t{\r\n \t\tif (pageTitle.contains(\"Ruby on Rails\")) {\r\n \t\t\tSimpleLogger.verbose(\" TOC file: not creating index link (no stichwort.htm*\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tSimpleLogger.verbose(\" TOC file: creating index link...\");\r\n \t\tElement indexLink = (Element) xPathQuery(XPath.TOC_HEADING_2.query).get(0).copy();\r\n \t\tString fileExtension = \".htm\";\r\n \t\tif (((Element) indexLink.getChild(0)).getAttribute(\"href\").getValue().contains(\".html\"))\r\n \t\t\tfileExtension = \".html\";\r\n \t\t((Element) indexLink.getChild(0)).getAttribute(\"href\").setValue(\"stichwort\" + fileExtension);\r\n \t\t((Text) indexLink.getChild(0).getChild(0)).setValue(\"Index\");\r\n \t\tbodyTag.appendChild(indexLink);\r\n \r\n \t}", "void index(IDocument document, IIndexerOutput output) throws java.io.IOException;", "public static void addFile(Path inputFile, InvertedIndex index) throws IOException {\n\t\tStemmer stemmer = new SnowballStemmer(DEFAULT);\n\t\tint count = 0;\n\n\t\ttry(BufferedReader reader = Files.newBufferedReader(inputFile, StandardCharsets.UTF_8);){\n\t\t\tString line = reader.readLine();\n\t\t\tString result = inputFile.toString();\n\t\t\twhile(line != null){\n\t\t\t\tString[] parsed = TextParser.parse(line); //putting parsed words into new string array\n\t\t\t\tfor(String words : parsed) { //getting the words in the parsed line\n\t\t\t\t\tcount++;\n\t\t\t\t\tindex.add(stemmer.stem(words).toString(), result, count); //adds stemmed word into tree set\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t}\n\t}", "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "public void create(String indexerName,\n String workingDir,\n String namingPrefix,\n int recordPerFile,\n int recordByteSize)\n throws DataOrderingException;", "public void newFolderButtonClicked() {\n TreePath[] paths = _fileSystemTree.getSelectionPaths();\r\n List selection = getSelectedFolders(paths);\r\n if (selection.size() > 1 || selection.size() == 0)\r\n return; // should never happen\r\n \r\n File parent = (File) selection.get(0);\r\n \r\n final ResourceBundle resourceBundle = FolderChooserResource.getResourceBundle(Locale.getDefault());\r\n String folderName = JOptionPane.showInputDialog(_folderChooser, resourceBundle.getString(\"FolderChooser.new.folderName\"),\r\n resourceBundle.getString(\"FolderChooser.new.title\"), JOptionPane.OK_CANCEL_OPTION | JOptionPane.QUESTION_MESSAGE);\r\n \r\n if (folderName != null) {\r\n File newFolder = new File(parent, folderName);\r\n boolean success = newFolder.mkdir();\r\n \r\n TreePath parentPath = paths[0];\r\n boolean isExpanded = _fileSystemTree.isExpanded(parentPath);\r\n if (!isExpanded) { // expand it first\r\n _fileSystemTree.expandPath(parentPath);\r\n }\r\n \r\n LazyMutableTreeNode parentTreeNode = (LazyMutableTreeNode) parentPath.getLastPathComponent();\r\n BasicFileSystemTreeNode child = BasicFileSystemTreeNode.createFileSystemTreeNode(newFolder, _folderChooser);\r\n // child.setParent(parentTreeNode);\r\n if (success) {\r\n parentTreeNode.clear();\r\n int insertIndex = _fileSystemTree.getModel().getIndexOfChild(parentTreeNode, child);\r\n if (insertIndex != -1) {\r\n // ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).insertNodeInto(child, parentTreeNode, insertIndex);\r\n ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).nodeStructureChanged(parentTreeNode);\r\n // ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).addPath(parentPath, insertIndex, child);\r\n }\r\n }\r\n TreePath newPath = parentPath.pathByAddingChild(child);\r\n _fileSystemTree.setSelectionPath(newPath);\r\n _fileSystemTree.scrollPathToVisible(newPath);\r\n }\r\n }", "public static Index create(String name, Path path) {\n try {\n Files.createDirectory(path.resolve(INDEX));\n return new Index(name, path);\n\n } catch (IOException e) {\n throw new IOFailureException(e);\n }\n }", "private void configuration() throws IOException {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(new File(\n luceneIndexDir)));\n\n analyzer = new SimpleAnalyzer(Version.LUCENE_47);\n searcher = new IndexSearcher(reader);\n\n // Creates the directory for Storing the search results.\n File file = new File(SEARCH_RESULT_DIR);\n file.mkdir();\n\n }", "private IndexHandler (boolean test) throws IOException {\n analyzer = new StandardAnalyzer();\n indexDir = test ? new RAMDirectory() : new DistributedDirectory(new MongoDirectory(mongoClient, \"search-engine\", \"index\"));\n //storePath = storedPath;\n config = new IndexWriterConfig(analyzer);\n\n // write separate IndexWriter to RAM for each IndexHandler\n // writer will have to be manually closed with each instance call\n // see IndexWriter documentation for .close()\n // explaining continuous closing of IndexWriter is an expensive operation\n try {\n writer = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static RDFIndex createDefaultIndex() {\n defaultIndex = new RDFIndex(com.hp.hpl.jena.graph.Factory.createGraphMem());\n try {\n File indexFile = new File(INDEX_FILE);\n if(indexFile.exists()) {\n defaultIndex.read(new FileReader(indexFile),Constants.RESOURCE_URL);\n }\n } catch(Throwable t) {\n t.printStackTrace();\n }\n return defaultIndex;\n }", "public void start() throws Exception {\n\n createIndex();\n }", "public static File createIndex(File indexDescriptor, File destination,\n List<Pair<String, List<Pair<String, String>>>> corpus) throws Exception {\n\n Configuration indexConf = Configuration.load(\"integration/distribution/index_configuration.xml\");\n indexConf.set(IndexControllerImpl.CONF_INDEX_ROOT_LOCATION, destination.getAbsolutePath());\n indexConf.getSubConfiguration(IndexDescriptor.CONF_DESCRIPTOR).\n set(IndexDescriptor.CONF_ABSOLUTE_LOCATION, indexDescriptor.getAbsolutePath());\n\n IndexControllerImpl indexer = new IndexControllerImpl(indexConf);\n PayloadFeederHelper feeder = new PayloadFeederHelper(createPayloads(indexDescriptor, corpus));\n\n indexer.setSource(feeder);\n //noinspection StatementWithEmptyBody\n while (indexer.pump()) { }\n indexer.close(true);\n return indexer.getIndexLocation();\n }", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tif (args.length <= 0)\r\n\t\t{\r\n System.out.println(\"Expected corpus as input\");\r\n System.exit(1);\r\n }\r\n\r\n\t\t// Analyzer that is used to process TextField\r\n\t\tAnalyzer analyzer = new StandardAnalyzer();\r\n\r\n\t\t// ArrayList of documents in the corpus\r\n\t\tArrayList<Document> documents = new ArrayList<Document>();\r\n\r\n\t\t// Open the directory that contains the search index\r\n\t\tDirectory directory = FSDirectory.open(Paths.get(INDEX_DIRECTORY));\r\n\r\n\t\t// Set up an index writer to add process and save documents to the index\r\n\t\tIndexWriterConfig config = new IndexWriterConfig(analyzer);\r\n\t\tconfig.setOpenMode(IndexWriterConfig.OpenMode.CREATE);\r\n\t\tIndexWriter iwriter = new IndexWriter(directory, config);\r\n\r\n\r\n\t\tfor (String arg : args)\r\n\t\t{\r\n\r\n\t\t\t// Load the contents of the file\r\n\t\t\t//System.out.printf(\"Indexing \\\"%s\\\"\\n\", arg);\r\n\t\t\tString content = new String(Files.readAllBytes(Paths.get(arg)));\r\n\r\n\t\t\tString[] big = content.split(\".I\");\r\n\t\t\tfor (String a : big) {\r\n\t\t\t\tDocument doc = new Document();\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tString[] small = a.split(\".A\");\r\n\t\t\t\tfor (String b : small) {\r\n\t\t\t\t\tif (count == 0) {\r\n\t\t\t\t\t\tdoc.add(new StringField(\"filename\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdoc.add(new TextField(\"content\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tdocuments.add(doc);\r\n\t\t\t}\r\n\t\t\tfor (Document doc : documents) {\r\n\t\t\t\tSystem.out.println(doc.get(\"filename\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write all the documents in the linked list to the search index\r\n\t\tiwriter.addDocuments(documents);\r\n\r\n\t\t// Commit everything and close\r\n\t\tiwriter.close();\r\n\t\tdirectory.close();\r\n\t}", "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}", "String createIndex() {\n\t\tboolean res = indexExists();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode;\n\t\tif (!res) {\n\t\t\tresCode = doHttpOperation(esIndexUrl, HTTP_PUT, null);\n\t\t}\n\t\treturn lastResponse;\n\t}", "public IndexWriter(String indexDir) {\n\t\t//TODO : YOU MUST IMPLEMENT THIS\n\tif (indexDir!=null)\n\t{System.setProperty(\"INDEX.DIR\",(this.indexDir=indexDir));\n\tisvaliddir=true;\n\tiutil=new IndexUtil(indexDir);\n\t}\n\t\n\t}", "public SearchDocuments(String indexPath) throws IOException{\r\n this.setIndexPath(indexPath); \r\n \r\n //TO DO : add config.properties file\r\n //read configuration file and update static variables adequately\r\n// readConf();\r\n\r\n // Supported index Fields and their pubmed counterpart (\"Title\",\"ArticleTitle\") \r\n supportedIndexFields.put(\"Title\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"TI\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"Abstract\", \"AbstractText\");\r\n supportedIndexFields.put(\"AB\", \"AbstractText\");\r\n supportedIndexFields.put(\"PMID\", \"PMID\");\r\n supportedIndexFields.put(\"UID\", \"PMID\");\r\n //TO DO : add all supported index fields\r\n //TO DO : special words (i.e. nothascommenton etc) \r\n \r\n // Lucene objects\r\n \r\n /* Sorting */\r\n // Fields used for reverse chronological sorting of results\r\n // This Fields are indexed with no tokenization (for each element a StringField AND a SortedDocValuesField are added)\r\n // Using SortField.Type.STRING is valid (as an exception) beacause years are 4-digit numbers resulting in identical String-sorting and number-sorting.\r\n SortField sortFieldYear = new SortField(\"PubDate-Year\", SortField.Type.STRING, true);\r\n \r\n //TO DO : make custom comparators for the rest fields where lexilogical comparison is not valid\r\n // OR, store Pud Date as Date and use date comparison\r\n // Idealy one \"complex-field\" should be used for sorting, taking into account Year, Month, Day, Season and MedlineDate together)\r\n// SortField sortFieldMonth = new SortField(\"PubDate-Month\",SortField.Type.STRING,true);\r\n// SortField sortFieldDay = new SortField(\"PubDate-Day\",SortField.Type.STRING,true);\r\n// SortField sortFieldSeason = new SortField(\"PubDate-Season\",SortField.Type.STRING,true);\r\n// SortField sortFieldMedlineDate = new SortField(\"PubDate-MedlineDate\",SortField.Type.STRING,true);\r\n// this.setSort(new Sort(sortFieldYear, sortFieldMonth, sortFieldDay, sortFieldSeason, sortFieldMedlineDate));\r\n this.setSort(new Sort(sortFieldYear));\r\n \r\n /* Reading the index */\r\n// this.setReader(DirectoryReader.open(FSDirectory.open(Paths.get(getIndexPath()))));\r\n this.setReader(DirectoryReader.open(MMapDirectory.open(Paths.get(getIndexPath()))));\r\n this.setSearcher(new IndexSearcher(getReader()));\r\n this.setAnalyzer(new StandardAnalyzer());\r\n \r\n /* Caching */\r\n // these cache and policy instances can be shared across several queries and readers\r\n // it is fine to eg. store them into static variables\r\n // TO DO: Use stored (old) expert-queries (from mongoDB) and MESH terms to \"prepare\" cache.\r\n queryCache = new LRUQueryCache(maxNumberOfCachedQueries, maxRamBytesUsed);\r\n// defaultCachingPolicy = new UsageTrackingQueryCachingPolicy();\r\n defaultCachingPolicy = new QueryCachingPolicy.CacheOnLargeSegments(minIndexSize, minSizeRatio);\r\n this.getSearcher().setQueryCache(queryCache);\r\n this.getSearcher().setQueryCachingPolicy(defaultCachingPolicy);\r\n \r\n /* All fields as default for search */\r\n Iterator <String> allFieldsIterator = org.apache.lucene.index.MultiFields.getFields(reader).iterator();\r\n ArrayList <String> a = new ArrayList();\r\n String current = \"\";\r\n while(allFieldsIterator.hasNext()){\r\n current = allFieldsIterator.next();\r\n if(!current.startsWith(\"PubDate-\")){\r\n a.add(current);\r\n }\r\n }\r\n \r\n String[] allFields = new String[a.size()];\r\n allFields = a.toArray(allFields); //All index fields to be used as default search fields\r\n this.setParser( new MultiFieldQueryParser( allFields, getAnalyzer())); \r\n }", "public static FSDirectory createFSIndex(File indexDir) throws IOException {\n\t\tFSDirectory fsDirectory = FSDirectory.getDirectory( indexDir );\n\t\tif ( ! IndexReader.indexExists( fsDirectory ) ) {\n\t\t\tlog.debug( \"Initialize index: '{}'\", indexDir.getAbsolutePath() );\n\t\t\tIndexWriter.MaxFieldLength fieldLength = new IndexWriter.MaxFieldLength( IndexWriter.DEFAULT_MAX_FIELD_LENGTH );\n\t\t\tIndexWriter iw = new IndexWriter( fsDirectory, new StandardAnalyzer(), true, fieldLength );\n\t\t\tiw.close();\n\t\t}\n\t\treturn fsDirectory;\n\t}", "public void createIndex(Configuration configuration){\n }", "static File getIndexFile(File indexName) throws FileNotFoundException {\n\t\tfor (int i = 0; i < 2; i++)\n\t\t\ttry {\n\t\t\t\tFile raf = new File(indexName, \"rw\");\n\t\t\t\tif (!raf.isFile()) {\n\t\t\t\t\traf.getParentFile().mkdirs();\n\t\t\t\t} else return raf;\n\t\t\t} catch (Exception e) { System.err.println(\"\"); }\n\t\treturn null;\n\t}", "private void createReviewIndex() {\n\t\t// Revise the review dictionary to the correct structure & change productIDs to product index\n\t\tLinkedList<List<Integer>> dictValues = new LinkedList<>();\n\t\tfor (int review : reviewIds.keySet()) {\n\t\t\tArrayList<String> vals = reviewIds.get(review);\n\t\t\tArrayList<Integer> new_vals = new ArrayList<>(List.of(0, 0, 0, 0, 0));\n\t\t\tnew_vals.set(ReviewIndex.PRODUCTID_INDEX, productIds.headMap(vals.get(0)).size());\n\t\t\tString[] helpf = vals.get(2).split(\"/\");\n\t\t\tnew_vals.set(ReviewIndex.HELPFNUM_INDEX, Integer.parseInt(helpf[0]));\n\t\t\tnew_vals.set(ReviewIndex.HELPFDNOM_INDEX, Integer.parseInt(helpf[1]));\n\t\t\tnew_vals.set(ReviewIndex.REVIEWLENGTH_INDEX, Integer.parseInt(vals.get(3)));\n\t\t\tnew_vals.set(ReviewIndex.SCORE_INDEX, (int) Float.parseFloat(vals.get(1)));\n\t\t\tdictValues.add(new_vals);\n\t\t}\n\t\tReviewIndex rIndex = new ReviewIndex();\n\t\trIndex.insertData(dictValues);\n\n\t\tsaveToDir(REVIEW_INDEX_FILE, rIndex);\n\t}", "private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }", "public void testBasic() throws IOException {\n Set<String> fileExtensions = new HashSet<String>();\n fileExtensions.add(IndexFileNames.FIELDS_EXTENSION);\n fileExtensions.add(IndexFileNames.FIELDS_INDEX_EXTENSION);\n \n Directory primaryDir = new MockDirectoryWrapper(new RAMDirectory());\n Directory secondaryDir = new MockDirectoryWrapper(new RAMDirectory());\n \n FileSwitchDirectory fsd = new FileSwitchDirectory(fileExtensions, primaryDir, secondaryDir, true);\n IndexWriter writer = new IndexWriter(fsd, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()));\n ((LogMergePolicy) writer.getConfig().getMergePolicy()).setUseCompoundFile(false);\n ((LogMergePolicy) writer.getConfig().getMergePolicy()).setUseCompoundDocStore(false);\n TestIndexWriterReader.createIndexNoClose(true, \"ram\", writer);\n IndexReader reader = IndexReader.open(writer);\n assertEquals(100, reader.maxDoc());\n writer.commit();\n // we should see only fdx,fdt files here\n String[] files = primaryDir.listAll();\n assertTrue(files.length > 0);\n for (int x=0; x < files.length; x++) {\n String ext = FileSwitchDirectory.getExtension(files[x]);\n assertTrue(fileExtensions.contains(ext));\n }\n files = secondaryDir.listAll();\n assertTrue(files.length > 0);\n // we should not see fdx,fdt files here\n for (int x=0; x < files.length; x++) {\n String ext = FileSwitchDirectory.getExtension(files[x]);\n assertFalse(fileExtensions.contains(ext));\n }\n reader.close();\n writer.close();\n\n files = fsd.listAll();\n for(int i=0;i<files.length;i++) {\n assertNotNull(files[i]);\n }\n fsd.close();\n }", "public static void add(Transcription t) throws IOException, SQLException\r\n {\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterize this location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n Document doc=new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n writer.commit();\r\n \twriter.close();\r\n\r\n }", "@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }", "public void set_graph() throws ParseException, IOException {\n \tg = new WeightedUndirectedGraph(words.length);\n //g = new WeightedUndirectedGraph(most_important_terms.size());\n \n Directory dir = new SimpleFSDirectory(new File(\".\\\\data\\\\lucene_index_r_r\"));\n Analyzer analyzer = new StandardAnalyzer(LUCENE_41);\n \n // creat a map that stores, for each word (in the cluster), a set of all the documents that contain that word\n HashMap<String,HashSet<Integer>> word_to_docs_map = new HashMap<String,HashSet<Integer>>();\n int n_strings = words.length; \n \n // for each word...\n for (int idx = 0; idx < n_strings; idx++) {\n // query the index with that given word and retrieve all the documents that contains that word\n String query = words[idx]; \n QueryParser parser = new QueryParser(Version.LUCENE_41, \"text\", analyzer); \n Query q = parser.parse(query); \n\n IndexReader reader = DirectoryReader.open(dir);\n IndexSearcher searcher = new IndexSearcher(reader);\n TopDocs docs = searcher.search(q, reader.numDocs());\n ScoreDoc[] hits = docs.scoreDocs;\n \n // update map from word to docs it appears in \n //HashSet<Integer> tmp = null;\n // tmp is the set of all the document ids in which the current word is contained\n HashSet<Integer> tmp = new HashSet<>();\n //word_to_docs_map.put(query, tmp);\n \n // for each document, retrieved from the query\n for(Integer i=0;i<hits.length;i++) {\n Integer docId = hits[i].doc;\n // tmp = word_to_docs_map.get(query); \n // if the document is a document written by an user of interest \n if(indices.contains(docId)) {\n tmp.add(docId);\n }\n //word_to_docs_map.put(query, tmp); \n }\n word_to_docs_map.put(query, tmp);\n\t }\n\t \n\t // add edges: iterate over possible term pairs ...\n\t for(int idx_1 = 0; idx_1 < n_strings - 1; idx_1++) {\n\t \n\t for(int idx_2 = idx_1 + 1 ; idx_2 < n_strings ; idx_2 ++ ) {\n\t \n\t // extract document sets associated with the considered terms \n\t HashSet<Integer> set_a = word_to_docs_map.get(words[idx_1]); \n\t HashSet<Integer> set_b = word_to_docs_map.get(words[idx_2]); \n\t \n\t // compute set intersection \n\t int n = intersectionSize(set_a, set_b);\n\t \n\t // if the terms appear in at least one common document\n\t if(n>0) {\n\t // add edge \n\t g.testAndAdd(idx_1, idx_2 , n); \n\t }\n\t } \n\t }\n\t}", "void addIndexForRepository(long repositoryId);", "public SimpleIndexFactory(Directory directory,Analyzer analyzer) {\n\t\tsetDirectory(directory);\n\t\tsetAnalyzer(analyzer);\n\t}", "public URIIndex(File indexRootDir, boolean readOnly) throws IOException {\n this(indexRootDir, readOnly, DEFAULT_BYTES_PER_ID, DEFAULT_BYTES_PER_TYPE, DEFAULT_BYTES_PER_PATH);\n }", "private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }", "protected static Boolean newCorpus() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n if (subqueries[0].equals(\"index\") && subqueries.length > 1) {\n JOptionPane.showOptionDialog(GUI.indexingCorpusMessage, \"Indexing corpus please wait\", \"Indexing Corpus\", javax.swing.JOptionPane.DEFAULT_OPTION, javax.swing.JOptionPane.INFORMATION_MESSAGE, null, null, null);\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"Indexing\");\n startIndexing(Paths.get(subqueries[1]), 0);\n GUI.SearchBarTextField.setText(\"Enter a new search or 'q' to exit\");\n\n return true;\n }\n return false;\n }", "public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}", "boolean createIndex(String indexName);", "public void createIndex(final String name) {\n createIndex(new BasicDBObject(name, 1));\n }", "public Index(TokenBasedAnalyzer myAnalyzer,boolean lowercase, Set<String> stopWords) {\n\n\t\t//Index Creation\n\n\t\tthis.lowercase = lowercase;\n\t\t\n\t\tthis.stopWords = stopWords;\n\t\t\n\t\tthis.myAnalyzer = myAnalyzer;\n\t\t\n\t\tidx = new RAMDirectory();\n\n\t\tIndexWriterConfig indexWriterConfiguration = new IndexWriterConfig(Version.LUCENE_34, myAnalyzer);\n\n\t\tindexWriter = null;\n\n\t\ttry {\n\n\t\t\tindexWriter = new IndexWriter(idx,indexWriterConfiguration);\n\n\t\t} catch (CorruptIndexException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (LockObtainFailedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public synchronized static void addIndex(File fileName, TreeMap<String, TreeSet<Integer>> index) {\n if (!fileIndices.containsKey(fileName)) {\n fileIndices.put(fileName, index);\n } else {\n System.out.println(\"There exist files with the same name in the input location.\");\n }\n }", "protected static void startIndexing(Path p, int option) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {\n\n path = p.toString();\n //corpus = DirectoryCorpus.loadTextDirectory(p.toAbsolutePath(), \".txt\");// To run .txt files\n corpus = DirectoryCorpus.loadJsonTextDirectory(p.toAbsolutePath(), \".json\");\n\n if (option == 0) { //build index\n buildMode = true;\n queryMode = false;\n long startTime = System.nanoTime();\n Index index = posindexCorpus(corpus);\n diskWriter.WriteIndex(index, path);\n Disk_posIndex = new DiskPositionalIndex(path);\n long endTime = System.nanoTime();\n\n long elapsedTime = (endTime - startTime);\n double seconds = (double) elapsedTime / 1000000000.0;\n GUI.ResultsLabel.setText(\"Total Indexing Time: \" + new DecimalFormat(\"##.##\").format(seconds) + \" seconds\");\n\n } else { //query index\n buildMode = false;\n queryMode = true;\n Disk_posIndex = new DiskPositionalIndex(path);\n corpus.getDocuments();\n N = corpus.getCorpusSize();\n }\n\n }", "private void createProductIndex() {\n\t\tLinkedList<String> ids = new LinkedList<>(productIds.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(productIds.values());\n\t\tint k = 8;\n\t\tKFront kf = new KFront();\n\t\tkf.createKFront(k, ids);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tkf.getTable().get(i).addAll(vals.get(i));\n\t\t}\n\n\t\tProductIndex pIndex = new ProductIndex(k);\n\t\tpIndex.insertData(kf.getTable(), kf.getConcatString());\n\t\tsaveToDir(PRODUCT_INDEX_FILE, pIndex);\n\t}", "public void makeIndex(String docsFile, String noiseWordsFile)\n throws FileNotFoundException {\n // load noise words to hash table\n Scanner sc = new Scanner(new File(noiseWordsFile));\n while (sc.hasNext()) {\n String word = sc.next();\n noiseWords.put(word, word);\n }\n\n // index all keywords\n sc = new Scanner(new File(docsFile));\n while (sc.hasNext()) {\n String docFile = sc.next();\n HashMap<String, Occurrence> kws = loadKeyWords(docFile);\n mergeKeyWords(kws);\n }\n\n }", "private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}", "public void index(final Document doc) {\t\n\t\ttry {\n\t\t\t_reopenToken = _trackingIndexWriter.addDocument(doc);\n\t\t\tlog.debug(\"document indexed in lucene\");\n\t\t} catch(IOException ioEx) {\n\t\t\tlog.error(\"Error while in Lucene index operation: {}\",ioEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t \t\t ioEx);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\t_indexWriter.commit();\n\t\t\t} catch (IOException ioEx) {\n\t\t\t\tlog.error(\"Error while commiting changes to Lucene index: {}\",ioEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t ioEx);\n\t\t\t}\n\t\t}\n\t}", "public void addIndex() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n null,\n childrenNames());\n }", "public void makeIndex(String docsFile, String noiseWordsFile) \n\tthrows FileNotFoundException {\n\t\t// load noise words to hash table\n\t\tScanner sc = new Scanner(new File(noiseWordsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString word = sc.next();\n\t\t\tnoiseWords.add(word);\n\t\t}\n\t\t\n\t\t// index all keywords\n\t\tsc = new Scanner(new File(docsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString docFile = sc.next();\n\t\t\tHashMap<String,Occurrence> kws = loadKeywordsFromDocument(docFile);\n\t\t\tmergeKeywords(kws);\n\t\t}\n\t\tsc.close();\n\t}", "private void actionAddFolder ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tJFileChooser folderChooser = new JFileChooser();\r\n\t\t\tfolderChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\r\n\t\t\tint isFolderSelected = folderChooser.showOpenDialog(folderChooser);\r\n\r\n\t\t\tif (isFolderSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString folderPath = folderChooser.getSelectedFile().getPath();\r\n\r\n\t\t\t\tFile folderFileDescriptor = new File(folderPath);\r\n\t\t\t\tFile[] listFolderFiles = folderFileDescriptor.listFiles();\r\n\r\n\t\t\t\tString[] fileList = new String[listFolderFiles.length];\r\n\r\n\t\t\t\tfor (int i = 0; i < listFolderFiles.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfileList[i] = listFolderFiles[i].getPath();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tDataController.scenarioOpenFolder(fileList);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public void indexFileOrDirectory(String fileName, String packageType) throws IOException {\n //===================================================\n //gets the list of files in a folder (if user has submitted\n //the name of a folder) or gets a single file name (is user\n //has submitted only the file name)\n //===================================================\n this.setThreadCount(this.queue.size());\n int originalNumDocs = writer.numDocs();\n startTime = System.currentTimeMillis();\n for (File f : queue) {\n LogReader lr = new LogReader(f.getAbsolutePath());\n \n Thread t = new Thread(new Runnable(){//Using thread \n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tcurrentThreadCount = currentThreadCount + 1;\n\t\t\t\t\tSystem.out.println(\"Number of thread: \" + currentThreadCount);\n\t\t\t\t\ttry {\n\t\t for (int cnt = 0; ; cnt++) {\n\t\t \tif(lr == null){\n\t\t \t\tSystem.out.println(\"hello\");\n\t\t \t}\n\t\t ArrayList<Package> list = lr.PackagesWrapper(2000);\n\t\t if (list == null || list.size() <= 0)\n\t\t {\n\t\t break;\n\t\t }\n\n\t\t int size = list.size();\n\t\t ArrayList<Document> docs = new ArrayList<Document>();\n\t\t for (int i = 0; i < size; i++)\n\t\t {\n\t\t Package p = list.get(i);\n\t\t Document doc = new Document();\n\t\t deWrapString(packageType, p, doc);\n\t\t \n\t\t docs.add(doc);\n\t\t }\n\n\t\t writer.addDocuments(docs);\n\n\t\t if (cnt != 0 && cnt % 10 == 0) {\n\t\t flush();\n\t\t currentTime = System.currentTimeMillis();\n\t\t \n\t\t System.out.println(\"Current document: \" + writer.numDocs() + \n\t\t \t\t\", current indexing rate: \" + (writer.numDocs()/ (currentTime - startTime)) * 1000);\n\t\t }\n\t\t }\n\t\t System.out.println(\"Added: \" + f);\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t System.out.println(\"Could not add: \" + f);\n\t\t } finally {\n\t\t \tthreadCount--;\n\t\t }\n\t\t\t\t}\n \t\n });\n t.start(); \n /*\n try {\n for (int cnt = 0; ; cnt++) {\n ArrayList<Package> list = lr.PackagesWrapper(2000);\n if (list == null || list.size() <= 0)\n {\n break;\n }\n\n int size = list.size();\n ArrayList<Document> docs = new ArrayList<Document>();\n for (int i = 0; i < size; i++)\n {\n Package p = list.get(i);\n Document doc = new Document();\n this.deWrapString(packageType, p, doc);\n \n docs.add(doc);\n }\n\n writer.addDocuments(docs);\n\n if (cnt % 10 == 0) {\n flush();\n System.out.println(\"bulk count: \" + cnt);\n }\n }\n System.out.println(\"Added: \" + f);\n } catch (Exception e) {\n System.out.println(\"Could not add: \" + f);\n } finally {\n\n }*/\n }\n \n /*\n int newNumDocs = writer.numDocs();\n System.out.println(\"\");\n System.out.println(\"************************\");\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\n System.out.println(\"************************\");\n queue.clear();\n */\n }", "indexSet createindexSet();", "public void run() {\n\t\t\t\t\tboolean b = false;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tb = IreportRmiClient.rmiInterfactRemote.generateIndex();\r\n\t\t\t\t\t\tif (!b) {\r\n\t\t\t\t\t\t\t// 0个索引文件\r\n\t\t\t\t\t\t\tAddedOperator.log(\"索引到0个文件..可能你的路径配置错误,请查看服务端输出信息\",\r\n\t\t\t\t\t\t\t\t\tIreportConstant.WARN_);\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAddedOperator.log(\"新建索引成功\", IreportConstant.RIGHT_);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tAddedOperator.log(\"新建索引错误:\" + e.getMessage(),\r\n\t\t\t\t\t\t\t\tIreportConstant.ERROR_);\r\n\t\t\t\t\t\tDialogFactory.showErrorMessageDialog(jb,\r\n\t\t\t\t\t\t\t\te.getMessage(), \"新建索引错误\");\r\n\t\t\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}", "public createIndex_result(createIndex_result other) {\n }", "public com.guidewire.datamodel.IndexDocument.Index addNewIndex()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.IndexDocument.Index target = null;\r\n target = (com.guidewire.datamodel.IndexDocument.Index)get_store().add_element_user(INDEX$12);\r\n return target;\r\n }\r\n }", "public void createIndex(Index index) {\n Span span = this.tracer.buildSpan(\"Client.CreateIndex\").start();\n try {\n String path = String.format(\"/index/%s\", index.getName());\n String body = index.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating index\");\n } finally {\n span.finish();\n }\n }", "public static void main(String[] args) throws Exception {\n String usage =\n \"Usage:\\tjava org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat n] [-queries file] [-query string] [-raw] [-paging hitsPerPage]\\n\\nSee http://lucene.apache.org/core/4_1_0/demo/ for details.\";\n if (args.length > 0 && (\"-h\".equals(args[0]) || \"-help\".equals(args[0]))) {\n System.out.println(usage);\n System.exit(0);\n }\n\n String index = \"index\";\n String field = \"contents\";\n String queries = null;\n int repeat = 0;\n boolean raw = false;\n String queryString = null;\n int hitsPerPage = 10;\n String[] fileTypes = null;\n Date fileDate = null;\n Set<String> mFilesSet = new HashSet<>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fileDateString = null;\n\n for (int i = 0; i < args.length; i++) {\n if (\"-index\".equals(args[i])) {\n index = args[i + 1];\n i++;\n } else if (\"-field\".equals(args[i])) {\n field = args[i + 1];\n i++;\n } else if (\"-queries\".equals(args[i])) {\n queries = args[i + 1];\n i++;\n } else if (\"-query\".equals(args[i])) {\n queryString = args[i + 1];\n i++;\n } else if (\"-repeat\".equals(args[i])) {\n repeat = Integer.parseInt(args[i + 1]);\n i++;\n } else if (\"-raw\".equals(args[i])) {\n raw = true;\n } else if (\"-paging\".equals(args[i])) {\n hitsPerPage = Integer.parseInt(args[i + 1]);\n if (hitsPerPage <= 0) {\n System.err.println(\"There must be at least 1 hit per page.\");\n System.exit(1);\n }\n i++;\n } else if(\"-filter\".equals(args[i])){\n filtering = true;\n }\n }\n\n if(filtering) {\n //read the filters file\n try (\n InputStream fis = new FileInputStream(\"filters.txt\");\n InputStreamReader isr = new InputStreamReader(fis, Charset.defaultCharset());\n BufferedReader br = new BufferedReader(isr);\n ) {\n //read first line which contains the types of the files to be searched\n Stream<String> lines;\n lines = br.lines();\n\n\n for (Iterator<String> i = lines.iterator(); i.hasNext(); ) {\n String line;\n line = i.next();\n if (line.startsWith(\"#\")) { //ignore comments in filters file\n } else if (line.startsWith(\"files: \")) {\n line = line.replaceFirst(\"files: \", \"\");\n fileTypes = line.split(\",\");\n mFilesSet.add(\"pdf\");\n mFilesSet.add(\"txt\");\n mFilesSet.add(\"epub\");\n for (int j = 0; j < fileTypes.length; j++) {\n mFilesSet.remove(fileTypes[j]); //remove from the hashset those file types parsed from the user file\n }\n } else if (line.startsWith(\"date:\")) {\n line = line.replaceFirst(\"date: \", \"\");\n fileDate = dateFormat.parse(line);\n fileDateString = line;\n //System.out.println(fileDateString);\n //System.out.println(\"Date: \" + fileDate.toString());\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(index)));\n IndexSearcher searcher = new IndexSearcher(reader);\n Analyzer analyzer = new MyAnalyzer();\n\n BufferedReader in = null;\n\n if (queries != null) {\n in = Files.newBufferedReader(Paths.get(queries), StandardCharsets.UTF_8);\n } else {\n in = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));\n }\n\n QueryParser parser = new QueryParser(field, analyzer);\n BooleanQuery.Builder booleanQueryBuilder = new BooleanQuery.Builder();\n BooleanQuery booleanQuery = booleanQueryBuilder.build();\n while (true) {\n if (queries == null && queryString == null) {// prompt the user\n System.out.println(\"Enter query: \");\n }\n\n String line = queryString != null ? queryString : in.readLine();\n\n if (line == null || line.length() == -1) {\n break;\n }\n\n line = line.trim();\n if (line.length() == 0) {\n break;\n }\n\n Query query;\n\n if(filtering) {\n for (Iterator<String> iterator = mFilesSet.iterator(); iterator.hasNext(); ) {\n String mString = iterator.next();\n Query mQuery = new TermQuery(new Term(\"filetype\", mString));\n booleanQueryBuilder.add(mQuery, BooleanClause.Occur.MUST_NOT);\n }\n query = parser.parse(line);\n\n Date currentDate = new Date();\n BytesRef lowerTerm = new BytesRef(fileDateString);\n BytesRef upperTerm = new BytesRef(dateFormat.format(currentDate));\n //System.out.println(dateFormat.format(currentDate));\n TermRangeQuery dateQuery = TermRangeQuery.newStringRange(\"modified\",fileDateString,dateFormat.format(currentDate),false,false);\n //Query dateQuery = IntPoint.newRangeQuery(\"modified\", ((int) fileDate.getTime()),(int)currentDate.getTime());\n booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n booleanQueryBuilder.add(query, BooleanClause.Occur.MUST);\n //booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n\n booleanQuery = booleanQueryBuilder.build();\n //System.out.println(\"Query: \" + booleanQuery.toString());\n //System.out.println(\"Searching for: \" + query.toString(field));\n }\n else {\n query = parser.parse(line);\n }\n if (repeat > 0) { // repeat & time as benchmark\n Date start = new Date();\n for (int i = 0; i < repeat; i++) {\n searcher.search(query, 100);\n }\n Date end = new Date();\n System.out.println(\"Time: \" + (end.getTime() - start.getTime()) + \"ms\");\n }\n\n if(filtering){\n doPagingSearch(in, searcher, booleanQuery, hitsPerPage, raw, queries == null && queryString == null);\n }\n else {\n doPagingSearch(in, searcher, query, hitsPerPage, raw, queries == null && queryString == null);\n }\n if (queryString != null) {\n break;\n }\n }\n reader.close();\n\n }", "public void makeIndex(String docsFile, String noiseWordsFile) \n\tthrows FileNotFoundException {\n\t\t// load noise words to hash table\n\t\tScanner sc = new Scanner(new File(noiseWordsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString word = sc.next();\n\t\t\tnoiseWords.add(word);}\n\t\t// index all keywords\n\t\tsc = new Scanner(new File(docsFile));\n\t\twhile (sc.hasNext()) {\n\t\t\tString docFile = sc.next();\n\t\t\tHashMap<String,Occurrence> kws = loadKeywordsFromDocument(docFile);\n\t\t\tmergeKeywords(kws);}\n\t\tsc.close();\n\t}", "public void populateBinaryTrees(){\n\t\tIndex[] codeIndexes = readIndexes(new File(ApplicationConstants.CODE_INDEX_FILE));\n\t\tIndex[] nameIndexes = readIndexes(new File(ApplicationConstants.NAME_INDEX_FILE));\n\n\t\tcreateIndexBinaryTree(codeIndexes, MainScreen.codeIndexTree);\n\t\tcreateIndexBinaryTree(nameIndexes, MainScreen.nameIndexTree);\n\n\t}", "public void setUp() throws Exception {\n Project project = new Project();\n\n IndexTask task = new IndexTask();\n FileSet fs = new FileSet();\n fs.setDir(new File(docsDir));\n task.addFileset(fs);\n task.setOverwrite(true);\n task.setDocumentHandler(docHandler);\n task.setIndex(new File(indexDir));\n task.setProject(project);\n task.execute();\n\n searcher = new IndexSearcher(indexDir);\n analyzer = new StopAnalyzer();\n }", "private void createFolder(String name, String path, Long id) {\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n editResourceService.createDir(id, name, new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.say(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long result) {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, id), newDir, result, true);\n folderPath_idMap.put(path, result);\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n });\n }", "public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}", "private void init(int bytesPerId, int bytesPerType, int bytesPerPath) throws IOException {\n this.indexVersion = INDEX_VERSION;\n this.bytesPerId = bytesPerId;\n this.bytesPerType = bytesPerType;\n this.bytesPerPath = bytesPerPath;\n this.bytesPerSlot = bytesPerId + bytesPerType + bytesPerPath;\n this.entries = 0;\n \n logger.info(\"Creating uri index with {} bytes per entry\", bytesPerSlot);\n \n // Write header\n idx.seek(IDX_START_OF_HEADER);\n idx.writeInt(indexVersion);\n idx.writeInt(bytesPerId);\n idx.writeInt(bytesPerType);\n idx.writeInt(bytesPerPath);\n idx.writeLong(slots);\n idx.writeLong(entries);\n \n // If this file used to contain entries, we just null out the rest\n try {\n byte[] bytes = new byte[bytesPerSlot - 2];\n while (idx.getFilePointer() < idx.length()) {\n idx.writeChar('\\n');\n idx.write(bytes);\n }\n } catch (EOFException e) {\n // That's ok, we wanted to write until the very end\n }\n \n logger.debug(\"Uri index created\");\n }", "private void tryToCreateNew() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //enter a name for this scenario\n String name = (String) JOptionPane.showInputDialog(\n this,\n \"Name of the scenario\",\n \"Next\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n null);\n\n if (name == null) return;\n\n\n //select a directory name\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select scenario file destination\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n int result = chooser.showDialog(this, \"Select\");\n if (result == JFileChooser.APPROVE_OPTION) {\n try {\n File dir = chooser.getSelectedFile();\n\n String path = dir.getAbsolutePath();\n String filename = path + File.separator + (name.replaceAll(\" \", \"_\")) + \".xml\";\n\n current = new Document(filename, name, path, Database.getInstance().getNumberOfFloors());\n current.save();\n\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the document could not be saved!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n e.printStackTrace();\n }\n }\n }", "private void uploadLocalDocument(){\t\t\n\t\tif(getFileChooser(JFileChooser.FILES_ONLY).showOpenDialog(this)==JFileChooser.APPROVE_OPTION){\n\t\t\tNode node = null;\n\t\t\ttry {\n\t\t\t\tnode = alfrescoDocumentClient.addFileFromParent(getTreeSelectedAlfrescoKey(), getFileChooser().getSelectedFile());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\t\n\t\t\t//Node node = alfrescoManager.addFileFromParent(getTreeSelectedAlfrescoKey(), getFileChooser().getSelectedFile());\t\t\n\t\t\tif(node!=null){\n\t\t\t\tgetDynamicTreePanel().getChildFiles(getTreeSelectedDefaultMutableNode());\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"El documento se ha subido correctamente.\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Error al subir el documento.\");\n\t\t}\n\t\t//el boton solo esta activo si un directorio esta seleccionado en el arbol directorios\n\t\t//se abre un filechooser y se elije un documento\n\t\t//solo se sube a alfresco, no se asocia automaticamente\n\t\t//se enviara la instancia de File() con el fichero seleccionado\n\t\t//se crea el fichero en alfresco, se recupera el nodo y se añade a la tabla actual (se hace de nuevo la peticion a getChildFiles())\n\t}", "public static void update(Transcription t) throws IOException, SQLException\r\n {\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterize this location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n Term j=new Term(\"id\",\"\"+t.getLineID());\r\n writer.deleteDocuments(j);\r\n Document doc=new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n writer.commit();\r\n \twriter.close();\r\n\r\n }", "public KrillIndex () throws IOException {\n this((Directory) new RAMDirectory());\n }", "public void newFile(int temp) {\n if(!doesExist(temp)){\n System.out.println(\"The Directory does not exist \");\n return;\n }\n\n directory nodeptr = root;\n for(int count = 0; count < temp; count++) {\n nodeptr = nodeptr.forward;\n }\n int space = nodeptr.f.createFile(nodeptr.count);\n nodeptr.count++;\n nodeptr.availableSpace = 512 - space;\n\n }", "private static MenuItem createAddNewFolderMenuItem(SongManager model, Item selectedItem) {\n MenuItem createNewFolder = new MenuItem(CREATE_NEW_FOLDER);\n\n createNewFolder.setOnAction((event) -> {\n if (selectedItem != null) {\n File folderSelected = selectedItem.getFile();\n Path newPath = PromptUI.createNewFolder(folderSelected);\n\n if (newPath != null) {\n try {\n model.addNewFolder(newPath.toFile());\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Create new folder\", null, \"Unable to create new folder \" + newPath);\n }\n }\n }\n });\n\n return createNewFolder;\n }", "public void createIndex() {\n String indexName = INDEX_BASE + \"-\" +\n LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\"));\n\n Settings settings = Settings.builder()\n .put(\"number_of_shards\", 1)\n .put(\"number_of_replicas\", 0)\n .build();\n CreateIndexRequest request = new CreateIndexRequest(indexName, settings);\n\n String mapping = \"{\\n\" +\n \" \\\"article\\\": {\\n\" +\n \" \\\"properties\\\": {\\n\" +\n \" \\\"title\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"author\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"issue\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"link\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"description\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"postDate\\\": {\\n\" +\n \" \\\"type\\\": \\\"date\\\",\\n\" +\n \" \\\"format\\\": \\\"yyyy-MM-dd\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\";\n\n request.mapping(\"article\", mapping, XContentType.JSON);\n request.alias(new Alias(INDEX_BASE));\n\n try {\n CreateIndexResponse createIndexResponse = this.client.admin().indices().create(request).get();\n if (!createIndexResponse.isAcknowledged()) {\n throw new ElasticExecutionException(\"Create java_magazine index was not acknowledged\");\n }\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error while creating an index\", e);\n throw new ElasticExecutionException(\"Error when trying to create an index\");\n }\n }", "@Test\n public void testProcessAll() throws TikaException, SAXException, IOException, Exception {\n PaperIndexer indexer = new PaperIndexer(BaseDirInfo.getPath(\"test.properties\"));\n indexer.processAll();\n\n Properties prop = indexer.getProperties();\n String paraIndexPath = prop.getProperty(\"para.index\");\n prop.setProperty(\"para.index\", paraIndexPath + \"/1\");\n\n final String[] indexes = { \"index\", \"para.index\", \"para.index.all\" };\n\n // Test global index and para index\n for (String indexPath : indexes) {\n File indexDir = new File(BaseDirInfo.getPath(indexer.getProperties().getProperty(indexPath)));\n try (Directory dir = FSDirectory.open(indexDir.toPath());\n IndexReader reader = DirectoryReader.open(dir)) {\n assertNotNull(reader); // reader must not be null\n\n int nDocs = reader.numDocs();\n assertNotEquals(nDocs, 0); // Number of docs must not be zero\n }\n }\n\n // Since we put one document in the test folder, we should have one folder in the para index\n prop.setProperty(\"para.index\", paraIndexPath);\n File[] dirs = new File(prop.getProperty(\"para.index\")).listFiles();\n assertEquals(dirs.length, 1);\n\n // clean folders\n indexer.removeIndexDirs();\n }", "private void createFileTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index FILE_ID_INDEX_FILE on FILE(FILE_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_FILE on FILE(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_FILE on FILE(END_REVISION_ID)\");\n \t}", "public URIIndex(File indexRootDir, boolean readOnly, int pathLengthInBytes)\n throws IOException {\n this(indexRootDir, readOnly, DEFAULT_BYTES_PER_ID, DEFAULT_BYTES_PER_TYPE, pathLengthInBytes);\n }", "private String createDataSourceDirectory(String dataSourceID,File[] selectedFiles){\n \n //Create directory to store files associated to dataSource\n File dir = new File(sessionDirectory.getPath()+\"/\"+dataSourceID);\n dir.mkdir();\n \n //Add created directory to map \"dataSourcesDirectories\"\n dataSourcesDirectories.put(dataSourceID,dir);\n \n String value = \"\";\n \n //For each file\n try {\n \n File newFile = null;\n \n for(File file : selectedFiles) {\n \n newFile = new File(dir.getPath()+\"/\" + file.getName());\n \n //Create new file\n newFile.createNewFile();\n \n //Read original file into recently created file\n BufferedReader br = new BufferedReader(new FileReader(file));\n PrintWriter pw = new PrintWriter(new FileWriter(newFile));\n String line;\n while((line = br.readLine()) != null)\n pw.write(line+\"\\n\");\n pw.flush();\n pw.close();\n br.close();\n }\n \n //Construct a string representing all created files\n if(selectedFiles.length == 1)\n value = dir.getPath()+\"/\"+selectedFiles[0].getName();\n else{\n for(int i=0;i<selectedFiles.length-1;i++)\n value = value + dir.getPath() + \"/\" + selectedFiles[i].getName() + \";\";\n value = value + dir.getPath() + \"/\" + selectedFiles[selectedFiles.length-1].getName();\n }\n \n return value;\n \n }catch (IOException ex) { }\n \n return value;\n \n }", "private void updateIndexMap(String file) {\n\t\ttry (Scanner s = new Scanner(new File(file))) {\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tString word = TextParserUtil.cleanWord(s.next());\n\t\t\t\tString partition = word.substring(0, 1);\n\t\t\t\tif (indexedDir.get(partition) == null) {\n\t\t\t\t\tinsertPartitionEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) == null) {\n\t\t\t\t\tinsertWordEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) != null) {\n\t\t\t\t\tupdateFileList(file, word, partition);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public static void main(String[] args) throws IOException {\n boolean passed = false;\r\n if (args.length > 0) {\r\n File f = new File(args[0]);\r\n System.out.println(\"Indexing images in \" + args[0]);\r\n if (f.exists() && f.isDirectory()) passed = true;\r\n }\r\n if (!passed) {\r\n System.out.println(\"No directory given as first argument.\");\r\n System.out.println(\"Run \\\"ParallelIndexing <directory>\\\" to index files of a directory.\");\r\n System.exit(1);\r\n }\r\n\r\n // use ParallelIndexer to index all photos from args[0] into \"index\" ... use 6 threads (actually 7 with the I/O thread).\r\n ParallelIndexer indexer = new ParallelIndexer(6, \"index\", args[0]);\r\n // use this to add you preferred builders. For now we go for CEDD, FCTH and AutoColorCorrelogram\r\n indexer.addExtractor(CEDD.class);\r\n indexer.addExtractor(FCTH.class);\r\n indexer.addExtractor(AutoColorCorrelogram.class);\r\n indexer.run();\r\n System.out.println(\"Finished indexing.\");\r\n }" ]
[ "0.78359765", "0.6728681", "0.6452862", "0.62704676", "0.62294245", "0.61172783", "0.5874578", "0.58612394", "0.5812239", "0.5692981", "0.568663", "0.56395334", "0.5630062", "0.56291986", "0.5619839", "0.5579793", "0.5524402", "0.5511485", "0.54995215", "0.54382646", "0.54342467", "0.53792226", "0.5372359", "0.53684855", "0.53038865", "0.52767336", "0.5270221", "0.5265988", "0.52635384", "0.52243876", "0.52180266", "0.52057886", "0.52008766", "0.51861966", "0.51638436", "0.5157667", "0.5157467", "0.51565325", "0.51480746", "0.51473546", "0.5144775", "0.5108024", "0.50936204", "0.508671", "0.5078874", "0.5069289", "0.5067514", "0.5064191", "0.5039704", "0.5039396", "0.50359225", "0.50330746", "0.5030467", "0.5010255", "0.50073117", "0.49922845", "0.49815106", "0.49787578", "0.4971128", "0.49570718", "0.49535975", "0.49483472", "0.49405614", "0.49330047", "0.49248254", "0.4915086", "0.49134022", "0.4895411", "0.48933157", "0.48867714", "0.48632896", "0.48514175", "0.48481926", "0.48441815", "0.4837903", "0.4835025", "0.4831974", "0.48261932", "0.48225293", "0.48199502", "0.48194534", "0.48157728", "0.47950932", "0.47892138", "0.47810957", "0.47787032", "0.47762743", "0.47679543", "0.47605333", "0.47501987", "0.47373337", "0.4734062", "0.47333193", "0.47233889", "0.4719434", "0.47139162", "0.47134012", "0.47113514", "0.47103354", "0.47073898" ]
0.76960844
1
Adds index data name, birthDate and deathDate to IndexWriter
private static void addDoc(IndexWriter w, String name, String birthDate, String deathDate) { Document doc = new Document(); doc.add(new TextField("name", name, Field.Store.YES)); doc.add(new StringField("birthStartDate", birthDate, Field.Store.YES)); // use a string field for isbn because we don't want it tokenized doc.add(new StringField("deathEndDate", deathDate, Field.Store.YES)); try { w.addDocument(doc); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addIndex() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n null,\n childrenNames());\n }", "public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}", "@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }", "private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }", "public void WriteIndex() throws Exception {\n CorpusReader corpus = new CorpusReader();\n // initiate the output object\n IndexWriter output = new IndexWriter();\n\n // Map to hold doc_id and doc content;\n Map<String, String> doc;\n\n // index the corpus, load the doc one by one\n while ((doc = corpus.NextDoc()) != null){\n // get the doc_id and content of the current doc.\n String doc_id = doc.get(\"DOC_ID\");\n String content = doc.get(\"CONTENT\");\n\n // index the doc\n output.IndexADoc(doc_id, content);\n }\n output.close_index_writer();\n }", "public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}", "public DateIndex(final String name, final String currency, final DateIndexType dateIndexType) {\n\t\tsuper(name, currency);\n\t\tthis.dateIndexType = dateIndexType;\n\t}", "public DateIndex(final String name, final DateIndexType dateIndexType) {\n\t\tsuper(name);\n\t\tthis.dateIndexType = dateIndexType;\n\t}", "public void onIndexUpdate();", "int writerIndex();", "private IndexMetadata createUpdatedIndexMetadata(IndexMetadata indexMetadata) {\n return IndexMetadata.builder(indexMetadata)\n .putMapping(\n createUpdatedIndexMetadata(\n indexMetadata.mapping(),\n indexMetadata.getIndex().getName()\n ))\n .build();\n }", "static void generateIndex(Table table, Key key, PrintWriter outData)\r\n {\r\n String comma = \"( \";\r\n String keyname = key.name.toUpperCase();\r\n if (keyname.indexOf(table.name.toUpperCase()) == -1)\r\n keyname = table.name.toUpperCase()+\"_\"+keyname;\r\n outData.println(\"DROP INDEX \"+keyname+\";\");\r\n outData.println(\"\");\r\n outData.println(\"CREATE INDEX \"+keyname+\" ON \"+table.database.userid+ \"\" +table.name);\r\n for (int i=0; i<key.fields.size(); i++, comma = \", \")\r\n {\r\n String name = (String) key.fields.elementAt(i);\r\n outData.println(comma+name);\r\n }\r\n outData.print(\")\");\r\n for (int i=0; i < key.options.size(); i++)\r\n {\r\n outData.println();\r\n String option = (String) key.options.elementAt(i);\r\n outData.print(option);\r\n }\r\n outData.println(\";\");\r\n outData.println();\r\n }", "public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }", "public InnodbIndexStats() {\n this(DSL.name(\"innodb_index_stats\"), null);\n }", "public void beforeIndexCreated(Index index) {\n\n }", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "public void addIndex(){\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tstart=Calendar.getInstance().getTimeInMillis();\n\t\tdbCol.ensureIndex(new BasicDBObject(\"RandomGeo\", \"2d\"));\n\t\tstop = Calendar.getInstance().getTimeInMillis() - start;\n\t\tSystem.out.println(\"Mongo Index Timer \"+Long.toString(stop));\n\t}", "IndexNameReference createIndexNameReference();", "private IndexWriter getIndexWriter() throws IOException {\n\n\t\tAnalyzer a = getAnaLyzer();\n\n\t\tif (idxWriter == null) {\n\n\t\t\tindexPath = this.analyzer + \" index-directory\";\n\t\t\tDirectory indexDir = FSDirectory.open(Paths.get(indexPath));\n\t\t\tIndexWriterConfig config = new IndexWriterConfig(a);\n\n\t\t\tconfig.setOpenMode(OpenMode.CREATE);\n\n\t\t\tidxWriter = new IndexWriter(indexDir, config);\n\t\t}\n\n\t\treturn idxWriter;\n\t}", "void addIndexForRepository(long repositoryId);", "public IndexWriter(String indexDir) {\n\t\t//TODO : YOU MUST IMPLEMENT THIS\n\tif (indexDir!=null)\n\t{System.setProperty(\"INDEX.DIR\",(this.indexDir=indexDir));\n\tisvaliddir=true;\n\tiutil=new IndexUtil(indexDir);\n\t}\n\t\n\t}", "public abstract void updateIndex();", "public void createIndex(String dataDirPath, String txType) throws IOException {\n\t\ttry {\n\t\t\tString inLoc = \"/mnt/3TB/in.csv\";\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inLoc), \"UTF-8\"));\n\n\t\t\tString line;\n\t\t\tboolean first = true;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] items = line.split(\",\");\n\t\t\t\tif (items.length > 3) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tDocument doc = makeTx(items[0], items[1], Long.parseLong(items[2]), txType);\n\t\t\t\twriter.addDocument(doc);\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void createIndex(Configuration configuration){\n }", "public void closeIndexWriter() throws IOException {\n if(indexWriter != null) {\n try {\n indexWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n public void add(final int index, final Date value) {\n final long date = value.getTime();\n if (date2 == Long.MIN_VALUE) {\n switch (index) {\n case 0: {\n date2 = date1;\n date1 = date;\n modCount++;\n return;\n }\n case 1: {\n if (date1 == Long.MIN_VALUE) {\n break; // Exception will be thrown below.\n }\n date2 = date;\n modCount++;\n return;\n }\n }\n }\n throw new IndexOutOfBoundsException(Errors.format(Errors.Keys.IndexOutOfBounds_1, index));\n }", "public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}", "public void addIndex(String collectionName, DBObject index){\n DBCollection collection =this.getDBCollection(collectionName);\n collection.createIndex(index);\n }", "public InnodbIndexStats(Name alias) {\n this(alias, INNODB_INDEX_STATS);\n }", "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "public void addIndex(Index index) throws AppException {\n\t\taddIndex(index, false);\n\t}", "InstAssignIndex createInstAssignIndex();", "private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "public void testIndexCostForDate() {\n final Date dateIndexing = new Date();\n this.classHandler.applyIndexesForDate(dateIndexing);\n }", "boolean createIndex(String indexName);", "public void setIndexName(String indexName){\r\n\t\tthis.indexName=indexName;\r\n\t}", "public createIndex_args(createIndex_args other) {\n }", "@Override\n\tpublic void addDateHeader(String name, long date) {\n\t}", "public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}", "public static void main(String[] args) throws Exception {\n\t\t\tString indexPath = \"F:/IRS/search/pr/sig_index_naive\";\n\t\t\tString docsPath = \"F:/IRS/search/vldb_icse_id.txt\";\n\t\t\tDirectory dir = FSDirectory.open(Paths.get(indexPath));\n\t\t\tAnalyzer analyzer = new StandardAnalyzer();\n\t\t\tIndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n\t\t\tIndexWriter writer = new IndexWriter(dir, iwc);\n\t\t\t\n\t\t\tFileReader f1 = new FileReader(docsPath);\n\t\t\tBufferedReader br = new BufferedReader(f1);\n\t\t\t\n\t\t\tdouble d;\n\t\t\t//String d=null;\n\t\t\tString lineTxt = null;\n\t\t\t\n\t\t\twhile ((lineTxt = br.readLine()) != null)\n\t\t {\n\t\t\t\t\t String[] splits = lineTxt.split(\"\\t\");\n\t\t\tDocument doc = new Document();\n\n\t\t\tdoc.add(new StringField(\"docid\", splits[0] , Field.Store.YES));\n\n\t\t\tdoc.add(new TextField(\"title\", splits[1], Field.Store.YES));\n\t\t\tdoc.add(new StringField(\"title\", splits[1], Field.Store.YES));\t\n\t\t\tdoc.add(new SortedField);\n\n\t\t\tdoc.add(new TextField(\"titlexn\", splits[2], Field.Store.YES));\n\t\t\tdoc.add(new StringField(\"titlexn\", splits[2], Field.Store.YES));\n\t\t\tdoc.add(new StringField(\"year\", splits[3], Field.Store.YES));\n\t\t\tdoc.add(new StringField(\"date\", splits[4], Field.Store.YES));\n\t\t\tdoc.add(new TextField(\"conf\", splits[7], Field.Store.YES));\n\t\t\tdoc.add(new StringField(\"conf\", splits[7], Field.Store.YES));\n\t\t\t\n\t\t\twriter.addDocument(doc);\n\t\t\t\n\t\t}\n\n\t\t\twriter.close();\n\t\t}", "public String getIndexingName()\n {\n return mcVersion.name() +'-'+ name;\n }", "StorableIndexInfo getIndexInfo();", "@Override\n public synchronized void buildIndex(){\n for(SlotData data : slotDataList){\n data.prepareReport();\n }\n }", "private synchronized void criarIndice() throws Exception {\r\n\t\tIndexWriter indexWriter = getWriterPadrao(true);\r\n\t\ttry {\r\n\t\t\tindexWriter.getAnalyzer().close();\r\n\t\t\tindexWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void afterIndexCreated(IndexService indexService) {\n\n }", "boolean isNewIndex();", "public IndexWriter getIndexWriter(String indexDir) throws IOException {\n //Directory indexDir = new RAMDirectory(); //use to put directory in RAM\n Directory dir = FSDirectory.open(new File(indexDir).toPath());\n IndexWriterConfig luceneConfig = new IndexWriterConfig(new StandardAnalyzer());\n\n return(new IndexWriter(dir, luceneConfig));\n }", "private static void addDateTypeToIndexField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> keywordTypeProperty = new HashMap<>();\n keywordTypeProperty.put(\"type\", \"date\");\n addFieldMapping(fieldName, keywordTypeProperty, indexFieldProperties);\n }", "IndexCreated createIndex(String name, Index index) throws ElasticException;", "public String getIndexName() {\n return indexName;\n }", "public boolean setIndex(String name){\n\n //array to hold all database names from file\n ArrayList<String> dbNames = new ArrayList<String>();\n\n //create index if it doesn't exist\n File file = new File(\"databases/index.txt\");\n Scanner sc;\n FileWriter fw; \n\n try {\n sc = new Scanner(file); \n //read current database names to array\n String currName; \n if (sc.hasNextLine()){\n while(sc.hasNextLine()){\n currName = sc.nextLine();\n dbNames.add(currName);\n } \n }\n sc.close();\n\n //if database name already in index, exit\n if ( dbNames.contains(name) ){return true;}\n\n } catch(FileNotFoundException ex){}\n \n //add new database name to list of dbs\n dbNames.add(name);\n\n //create / overwrite index file\n try {\n fw = new FileWriter(\"databases/index.txt\");\n } catch (IOException ex2){\n System.out.println(\"ERROR: index not found and could not be created\");\n return false;\n }\n\n //write array of database names to file\n for (String dbName : dbNames){\n try {\n fw.write(dbName);\n fw.write(\"\\n\");\n } catch (IOException ex3) {\n System.out.println(\"ERROR: could not write to index\");\n }\n }\n\n try {\n fw.close();\n } catch (IOException ex4){\n System.out.println(\"ERROR: filewriter could not be closed\");\n return false;\n }\n\n return true;\n }", "public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}", "public H_index() {\n\t\tsuper();\n\t}", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().addBuilder(\n index, io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().addBuilder(\n index, io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().addBuilder(\n index, io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().addBuilder(\n index, io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().addBuilder(\n index, io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "public com.guidewire.datamodel.IndexDocument.Index addNewIndex()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.IndexDocument.Index target = null;\r\n target = (com.guidewire.datamodel.IndexDocument.Index)get_store().add_element_user(INDEX$12);\r\n return target;\r\n }\r\n }", "public void createIndex(Index index) {\n Span span = this.tracer.buildSpan(\"Client.CreateIndex\").start();\n try {\n String path = String.format(\"/index/%s\", index.getName());\n String body = index.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating index\");\n } finally {\n span.finish();\n }\n }", "public InnodbIndexStatsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}", "public String getName() {\n return _index.getName();\n }", "String createIndex() {\n\t\tboolean res = indexExists();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode;\n\t\tif (!res) {\n\t\t\tresCode = doHttpOperation(esIndexUrl, HTTP_PUT, null);\n\t\t}\n\t\treturn lastResponse;\n\t}", "private void addIndex(Partition partition, String... attrs) throws Exception {\n for (String attribute : attrs) {\n factory.addIndex(partition, attribute, 100);\n }\n }", "public void commit () throws IOException {\n log.info(\"Internal committing index ... \");\n this.writer().commit();\n commitCounter = 0;\n this.closeReader();\n }", "private void close() throws CorruptIndexException, IOException {\n\n\t\tidxWriter.forceMerge(1);\n\t\tidxWriter.commit();\n\t\tidxWriter.close();\n\t}", "public void createIndex(final String name) {\n createIndex(new BasicDBObject(name, 1));\n }", "public InnodbIndexStats(String alias) {\n this(DSL.name(alias), INNODB_INDEX_STATS);\n }", "@Override\n\tpublic void build(Index index) {\n\t\tthis.indexdir = index.getPath();\n\t\tLuceneIndex luceneIndex = (LuceneIndex) index;\n\t\tthis.indexSearcher = new IndexSearcher(luceneIndex.getReader());\n\n\t}", "void index(IDocument document, IIndexerOutput output) throws java.io.IOException;", "public interface IndexMetadata extends Freezable<IndexMetadata> {\n\t\n\tAnnotatedFields annotatedFields();\n\t\n\tdefault AnnotatedField mainAnnotatedField() {\n\t return annotatedFields().main();\n\t}\n\t\n default AnnotatedField annotatedField(String name) {\n return annotatedFields().get(name);\n }\n \n\tMetadataFields metadataFields();\n\t\n\tdefault MetadataField metadataField(String name) {\n\t return metadataFields().get(name);\n\t}\n\n\t/**\n\t * Get the display name for the index.\n\t *\n\t * If no display name was specified, returns the name of the index directory.\n\t *\n\t * @return the display name\n\t */\n\tString displayName();\n\n\t/**\n\t * Get a description of the index, if specified\n\t * @return the description\n\t */\n\tString description();\n\n\t/**\n\t * Is the content freely viewable by all users, or is it restricted?\n\t * @return true if the full content may be retrieved by anyone\n\t */\n\tboolean contentViewable();\n\n /**\n * What's the text direction of this corpus?\n * @return text direction\n */\n\tTextDirection textDirection();\n\n\t/**\n\t * What format(s) is/are the documents in?\n\t *\n\t * This is in the form of a format identifier as understood\n\t * by the DocumentFormats class (either an abbreviation or a\n\t * (qualified) class name).\n\t *\n\t * @return the document format(s)\n\t */\n\tString documentFormat();\n\n\t/**\n\t * What version of the index format is this?\n\t * @return the index format version\n\t */\n\tString indexFormat();\n\n\t/**\n\t * When was this index created?\n\t * @return date/time\n\t */\n\tString timeCreated();\n\n\t/**\n\t * When was this index last modified?\n\t * @return date/time\n\t */\n\tString timeModified();\n\n\t/**\n\t * When was the BlackLab.jar used for indexing built?\n\t * @return date/time\n\t */\n\tString indexBlackLabBuildTime();\n\n\t/**\n\t * When was the BlackLab.jar used for indexing built?\n\t * @return date/time stamp\n\t */\n\tString indexBlackLabVersion();\n\n\t/**\n\t * How many tokens are in the index?\n\t * @return number of tokens\n\t */\n\tlong tokenCount();\n\n\t/**\n\t * Is this a new, empty index?\n\t *\n\t * An empty index is one that doesn't have a main contents field yet,\n\t * or has a main contents field but no indexed tokens yet.\n\t *\n\t * @return true if it is, false if not.\n\t */\n\tboolean isNewIndex();\n\n default boolean subannotationsStoredWithParent() {\n return false;\n }\n\t\n}", "public void createIndex() {\n String indexName = INDEX_BASE + \"-\" +\n LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\"));\n\n Settings settings = Settings.builder()\n .put(\"number_of_shards\", 1)\n .put(\"number_of_replicas\", 0)\n .build();\n CreateIndexRequest request = new CreateIndexRequest(indexName, settings);\n\n String mapping = \"{\\n\" +\n \" \\\"article\\\": {\\n\" +\n \" \\\"properties\\\": {\\n\" +\n \" \\\"title\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"author\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"issue\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"link\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"description\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"postDate\\\": {\\n\" +\n \" \\\"type\\\": \\\"date\\\",\\n\" +\n \" \\\"format\\\": \\\"yyyy-MM-dd\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\";\n\n request.mapping(\"article\", mapping, XContentType.JSON);\n request.alias(new Alias(INDEX_BASE));\n\n try {\n CreateIndexResponse createIndexResponse = this.client.admin().indices().create(request).get();\n if (!createIndexResponse.isAcknowledged()) {\n throw new ElasticExecutionException(\"Create java_magazine index was not acknowledged\");\n }\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error while creating an index\", e);\n throw new ElasticExecutionException(\"Error when trying to create an index\");\n }\n }", "private void createIndex(final String index, int numShards, int numReplicas) throws IOException {\n LOGGER.warn(\"CREATE ES INDEX {} with {} shards and {} replicas\", index, numShards, numReplicas);\n final Settings indexSettings = Settings.builder().put(\"number_of_shards\", numShards)\n .put(\"number_of_replicas\", numReplicas).build();\n CreateIndexRequest indexRequest = new CreateIndexRequest(index, indexSettings);\n getClient().admin().indices().create(indexRequest).actionGet();\n\n final String mapping = IOUtils.toString(\n this.getClass().getResourceAsStream(\"/elasticsearch/mapping/map_person_5x_snake.json\"));\n getClient().admin().indices().preparePutMapping(index)\n .setType(getConfig().getElasticsearchDocType()).setSource(mapping, XContentType.JSON).get();\n }", "@Test\n public void fieldIndexFormatting() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side,\n // and the number of the page that contains the XE field on the right.\n // If the XE fields have the same value in their \"Text\" property,\n // the INDEX field will group them into one entry.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n index.setLanguageId(\"1033\");\n\n // Setting this property's value to \"A\" will group all the entries by their first letter,\n // and place that letter in uppercase above each group.\n index.setHeading(\"A\");\n\n // Set the table created by the INDEX field to span over 2 columns.\n index.setNumberOfColumns(\"2\");\n\n // Set any entries with starting letters outside the \"a-c\" character range to be omitted.\n index.setLetterRange(\"a-c\");\n\n Assert.assertEquals(\" INDEX \\\\z 1033 \\\\h A \\\\c 2 \\\\p a-c\", index.getFieldCode());\n\n // These next two XE fields will show up under the \"A\" heading,\n // with their respective text stylings also applied to their page numbers.\n builder.insertBreak(BreakType.PAGE_BREAK);\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Apple\");\n indexEntry.isItalic(true);\n\n Assert.assertEquals(\" XE Apple \\\\i\", indexEntry.getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Apricot\");\n indexEntry.isBold(true);\n\n Assert.assertEquals(\" XE Apricot \\\\b\", indexEntry.getFieldCode());\n\n // Both the next two XE fields will be under a \"B\" and \"C\" heading in the INDEX fields table of contents.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Banana\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Cherry\");\n\n // INDEX fields sort all entries alphabetically, so this entry will show up under \"A\" with the other two.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Avocado\");\n\n // This entry will not appear because it starts with the letter \"D\",\n // which is outside the \"a-c\" character range that the INDEX field's LetterRange property defines.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Durian\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Formatting.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Formatting.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n Assert.assertEquals(\"1033\", index.getLanguageId());\n Assert.assertEquals(\"A\", index.getHeading());\n Assert.assertEquals(\"2\", index.getNumberOfColumns());\n Assert.assertEquals(\"a-c\", index.getLetterRange());\n Assert.assertEquals(\" INDEX \\\\z 1033 \\\\h A \\\\c 2 \\\\p a-c\", index.getFieldCode());\n Assert.assertEquals(\"\\fA\\r\" +\n \"Apple, 2\\r\" +\n \"Apricot, 3\\r\" +\n \"Avocado, 6\\r\" +\n \"B\\r\" +\n \"Banana, 4\\r\" +\n \"C\\r\" +\n \"Cherry, 5\\r\\f\", index.getResult());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Apple \\\\i\", \"\", indexEntry);\n Assert.assertEquals(\"Apple\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertTrue(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Apricot \\\\b\", \"\", indexEntry);\n Assert.assertEquals(\"Apricot\", indexEntry.getText());\n Assert.assertTrue(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Banana\", \"\", indexEntry);\n Assert.assertEquals(\"Banana\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(4);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Cherry\", \"\", indexEntry);\n Assert.assertEquals(\"Cherry\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(5);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Avocado\", \"\", indexEntry);\n Assert.assertEquals(\"Avocado\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(6);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Durian\", \"\", indexEntry);\n Assert.assertEquals(\"Durian\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n }", "public createIndex_result(createIndex_result other) {\n }", "@Test\n\tpublic void testIndexData() throws Exception {\n//\t\tJSONObject stamp = new JSONObject();\n//\t\tstamp.put(\"audit_time\", \"2018-09-18 11:41:03\");\n//\t\tstamp.put(\"update_time\", \"2018-09-18 14:09:28\");\n//\t\tMap<String, String> body = new HashMap<>();\n//\t\tbody.put(\"stamp\", stamp.toJSONString());\n//\t\tresult = vliaoIndexService.getAnchors(JsonHelper.toJson(body));\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n//\t\tActionResult result = vliaoIndexService.getAnchors(null);\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n//\t\t\n//\t\tMap<String, String> body = new HashMap<>();\n//\t\tbody.put(\"stamp\", \"2018-09-18 11:41:03\");\n//\t\tresult = vliaoIndexService.getAnchors(JsonHelper.toJson(body));\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n//\t\tActionResult result = vliaoIndexService.getAnchors(null);\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n//\t\tJSONObject stamp = new JSONObject();\n//\t\tstamp.put(\"index\", \"21\");\n//\t\tstamp.put(\"query_time\", \"1537264200840\");\n//\t\tMap<String, String> body = new HashMap<>();\n//\t\tbody.put(\"stamp\", stamp.toJSONString());\n//\t\tActionResult result = vliaoIndexService.getAnchors(JsonHelper.toJson(body));\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n\t\tActionResult result = vliaoIndexService.getAnchors(null);\n\t\tSystem.err.println(JsonHelper.toJson(result));\n\t}", "public String updateDSIndex(String dsID, String dschemaID, String attriName);", "public IndexWriter getIndexWriter(boolean create) throws IOException {\n // Followed online tutorial\n if(indexWriter == null) {\n try {\n // Make sure and store to /var/lib/lucene/ per the spec\n Directory indexDir = FSDirectory.open(new File(\"/var/lib/lucene/index1\"));\n IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_4_10_2, new StandardAnalyzer());\n indexWriter = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return indexWriter;\n }", "private void readIndex() throws IOException {\n\t\t\tif (this.keys != null)\n\t\t\t\treturn;\n\t\t\tkeys = new HashMap<K, Long>(1024);\n\t\t\ttry {\n\t\t\t\twhile (index.hasNext()) {\n\t\t\t\t\tPair<K, Long> pair;// = new Pair<K, Long>(index.getSchema());\n\t\t\t\t\tpair = index.next();\n\t\t\t\t\tkeys.put(pair.key(), pair.value());\n\t\t\t\t\tif (firstKey == null)\n\t\t\t\t\t\tfirstKey = pair.key();\n\t\t\t\t\tfinalKey = pair.key();\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\n\t\t\t}finally {\n\t\t\t\tindexClosed = true;\n\t\t\t\tindex.close();\n\t\t\t}\n\t\t}", "public static void add(Transcription t) throws IOException, SQLException\r\n {\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterize this location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n Document doc=new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n writer.commit();\r\n \twriter.close();\r\n\r\n }", "String indexFormat();", "public SearchDocuments(String indexPath) throws IOException{\r\n this.setIndexPath(indexPath); \r\n \r\n //TO DO : add config.properties file\r\n //read configuration file and update static variables adequately\r\n// readConf();\r\n\r\n // Supported index Fields and their pubmed counterpart (\"Title\",\"ArticleTitle\") \r\n supportedIndexFields.put(\"Title\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"TI\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"Abstract\", \"AbstractText\");\r\n supportedIndexFields.put(\"AB\", \"AbstractText\");\r\n supportedIndexFields.put(\"PMID\", \"PMID\");\r\n supportedIndexFields.put(\"UID\", \"PMID\");\r\n //TO DO : add all supported index fields\r\n //TO DO : special words (i.e. nothascommenton etc) \r\n \r\n // Lucene objects\r\n \r\n /* Sorting */\r\n // Fields used for reverse chronological sorting of results\r\n // This Fields are indexed with no tokenization (for each element a StringField AND a SortedDocValuesField are added)\r\n // Using SortField.Type.STRING is valid (as an exception) beacause years are 4-digit numbers resulting in identical String-sorting and number-sorting.\r\n SortField sortFieldYear = new SortField(\"PubDate-Year\", SortField.Type.STRING, true);\r\n \r\n //TO DO : make custom comparators for the rest fields where lexilogical comparison is not valid\r\n // OR, store Pud Date as Date and use date comparison\r\n // Idealy one \"complex-field\" should be used for sorting, taking into account Year, Month, Day, Season and MedlineDate together)\r\n// SortField sortFieldMonth = new SortField(\"PubDate-Month\",SortField.Type.STRING,true);\r\n// SortField sortFieldDay = new SortField(\"PubDate-Day\",SortField.Type.STRING,true);\r\n// SortField sortFieldSeason = new SortField(\"PubDate-Season\",SortField.Type.STRING,true);\r\n// SortField sortFieldMedlineDate = new SortField(\"PubDate-MedlineDate\",SortField.Type.STRING,true);\r\n// this.setSort(new Sort(sortFieldYear, sortFieldMonth, sortFieldDay, sortFieldSeason, sortFieldMedlineDate));\r\n this.setSort(new Sort(sortFieldYear));\r\n \r\n /* Reading the index */\r\n// this.setReader(DirectoryReader.open(FSDirectory.open(Paths.get(getIndexPath()))));\r\n this.setReader(DirectoryReader.open(MMapDirectory.open(Paths.get(getIndexPath()))));\r\n this.setSearcher(new IndexSearcher(getReader()));\r\n this.setAnalyzer(new StandardAnalyzer());\r\n \r\n /* Caching */\r\n // these cache and policy instances can be shared across several queries and readers\r\n // it is fine to eg. store them into static variables\r\n // TO DO: Use stored (old) expert-queries (from mongoDB) and MESH terms to \"prepare\" cache.\r\n queryCache = new LRUQueryCache(maxNumberOfCachedQueries, maxRamBytesUsed);\r\n// defaultCachingPolicy = new UsageTrackingQueryCachingPolicy();\r\n defaultCachingPolicy = new QueryCachingPolicy.CacheOnLargeSegments(minIndexSize, minSizeRatio);\r\n this.getSearcher().setQueryCache(queryCache);\r\n this.getSearcher().setQueryCachingPolicy(defaultCachingPolicy);\r\n \r\n /* All fields as default for search */\r\n Iterator <String> allFieldsIterator = org.apache.lucene.index.MultiFields.getFields(reader).iterator();\r\n ArrayList <String> a = new ArrayList();\r\n String current = \"\";\r\n while(allFieldsIterator.hasNext()){\r\n current = allFieldsIterator.next();\r\n if(!current.startsWith(\"PubDate-\")){\r\n a.add(current);\r\n }\r\n }\r\n \r\n String[] allFields = new String[a.size()];\r\n allFields = a.toArray(allFields); //All index fields to be used as default search fields\r\n this.setParser( new MultiFieldQueryParser( allFields, getAnalyzer())); \r\n }", "public DatasetIndex(Dataset data){\n\t\tthis();\n\t\tfor(Iterator<Example> i=data.iterator();i.hasNext();){\n\t\t\taddExample(i.next());\n\t\t}\n\t}", "@Deprecated\r\n\tpublic synchronized void otimizarIndice() throws Exception {\r\n\t\tIndexWriter indexWriter = getWriterPadrao(false);\r\n\t\tindexWriter.forceMerge(50);\r\n\t\tindexWriter.close();\r\n\t}", "protected void writeRecordHeaderToIndex(RecordHeader header) throws IOException {\n file.seek(indexPositionToRecordHeaderFp(header.indexPosition));\n header.write(file);\n }", "public static void main(String[] args) throws IOException {\n\t\tif (args.length != 2) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"You need to give database directory path and output directory path as arguments.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tdirectory = args[0];\n\t\toutputFilePath = args[1];\n\t\t// Get list of all files.\n\t\tFile[] listOfFiles = Util.getAllFiles(directory);\n\t\t// Get all the stop words in the sorted order.\n\t\tTreeMap<String, String> stopWords = Util\n\t\t\t\t.getStopWordsFromFile(stopWordFile);\n\t\tint numberOfFiles = listOfFiles.length;\n\t\t// 2D array to store the required information about each doc.\n\t\tInteger[][] docInfo = new Integer[numberOfFiles + 1][2];\n\t\tdouble timeForIndexVersion1 = 0.0d, timeForIndexVersion2 = 0.0d;\n\t\tlong startTime, endTime;\n\t\tif (numberOfFiles != 0) {\n\n\t\t\t// Starting creating Index version 1.\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t// Get the doc id.\n\t\t\t\tint docId = Integer.parseInt(file.getName().substring(9));\n\t\t\t\t// For version 1:\n\t\t\t\t// do lemmatization\n\t\t\t\tMap<String, Integer> lemmasFromFile = lemmatizer\n\t\t\t\t\t\t.lemmatize(file);\n\t\t\t\t// remove stop words,\n\t\t\t\tMap<String, Integer> lemmasWoStopWords = Util.removeStopWords(\n\t\t\t\t\t\tlemmasFromFile, stopWords);\n\t\t\t\t// create index.\n\t\t\t\tindexVersion1.creatIndex(docId, lemmasWoStopWords);\n\t\t\t}\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\t// calculate total time taken\n\t\t\ttimeForIndexVersion1 = (endTime - startTime) / 1000.0d;\n\n\t\t\t// indexVersion1.printIndex();\n\t\t\t// write uncompressed index of version 1 to a binary file.\n\t\t\tindexVersion1.writeIndexUncompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version1.uncompress\");\n\t\t\t// compress index\n\t\t\tindexVersion1.compressIndex();\n\t\t\t// write compressed index of version 1 to a binary file.\n\t\t\tindexVersion1.writeIndexCompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version1.compress\");\n\n\t\t\t// Starting creating Index version 2.\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tfor (File file : listOfFiles) {\n\t\t\t\tint docId = Integer.parseInt(file.getName().substring(9));\n\t\t\t\t// For version 2:\n\t\t\t\t// generate tokens from the file\n\t\t\t\tMap<String, Integer> tokensFromFile = Util\n\t\t\t\t\t\t.getTokensFromFile(file);\n\t\t\t\t// do stemming\n\t\t\t\tMap<String, Integer> stemmedTokens = Util\n\t\t\t\t\t\t.getStemmedTokens(tokensFromFile);\n\t\t\t\t// remove stop words\n\t\t\t\tMap<String, Integer> stemmedTokensWoStopWords = Util\n\t\t\t\t\t\t.removeStopWords(stemmedTokens, stopWords);\n\t\t\t\t// update the information about current document.\n\t\t\t\tUtil.updateDocInfo(docInfo, docId, stemmedTokens,\n\t\t\t\t\t\tstemmedTokensWoStopWords);\n\t\t\t\t// System.out.println(\"DocId: \" + docId + \" Max Freq: \"\n\t\t\t\t// + docInfo[docId][0].toString() + \" Doc length: \"\n\t\t\t\t// + docInfo[docId][1].toString());\n\t\t\t\t// create index\n\t\t\t\tindexVersion2.creatIndex(docId, stemmedTokensWoStopWords);\n\n\t\t\t}\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\t// calculate total time taken\n\t\t\ttimeForIndexVersion2 = (endTime - startTime) / 1000.0d;\n\t\t\t// write documents information to a binary file\n\t\t\twriteDocInfo(docInfo, outputFilePath, \"docs.info\");\n\t\t\t// write uncompressed index of version 2 to a binary file.\n\n\t\t\t// indexVersion2.printIndex();\n\t\t\tindexVersion2.writeIndexUncompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version2.uncompress\");\n\t\t\t// compress index\n\t\t\tindexVersion2.compressIndex();\n\t\t\t// write compressed index of version 2 to a binary file.\n\t\t\tindexVersion2.writeIndexCompressed(outputFilePath,\n\t\t\t\t\t\"Index_Version2.compress\");\n\n\t\t\t// display the required information.\n\t\t\tdisplayOutput(timeForIndexVersion1, timeForIndexVersion2);\n\t\t} else {\n\t\t\tSystem.err.println(\"Empty folder\");\n\t\t}\n\t}", "protected void addEntryToIndex(String key, RecordHeader newRecord, int currentNumRecords) throws IOException {\n DbByteArrayOutputStream temp = new DbByteArrayOutputStream(MAX_KEY_LENGTH);\n (new DataOutputStream(temp)).writeUTF(key);\n if (temp.size() > MAX_KEY_LENGTH) {\n throw new IOException(\"Key is larger than permitted size of \" + MAX_KEY_LENGTH + \" bytes\");\n }\n file.seek(indexPositionToKeyFp(currentNumRecords));\n temp.writeTo(file);\n file.seek(indexPositionToRecordHeaderFp(currentNumRecords));\n newRecord.write(file);\n newRecord.setIndexPosition(currentNumRecords);\n writeNumRecordsHeader(currentNumRecords+1);\n\n getMemIndex().put(key, newRecord);\n }", "public ServiceIndexesPerDateRecord() {\n super(ServiceIndexesPerDate.SERVICE_INDEXES_PER_DATE);\n }", "public void createIndex(final DBObject keys) {\n createIndex(keys, new BasicDBObject());\n }", "public boolean qualifyIndexName() {\n \t\treturn true;\n \t}", "public void openIndex(String indexPath) throws IOException {\n\n }", "private void createIndex(Message<JsonObject> msg, int timeout, JsonObject headers, String dbName) {\n // check required params / attributes\n \n // REQUIRED: The name of the collection for which to create the index\n String collection = helper.getMandatoryString(msg.body(), MSG_PROPERTY_COLLECTION, msg);\n if (collection == null) return;\n\n // REQUIRED: A JSON representation of the index (see ArangoDB docs for details)\n JsonObject document = helper.getMandatoryObject(msg.body(), MSG_PROPERTY_DOCUMENT, msg);\n if (document == null) return;\n\n if (!ensureAttribute(document, DOC_ATTRIBUTE_TYPE, msg)) return;\n if (!document.getString(DOC_ATTRIBUTE_TYPE).equals(TYPE_CAP)) {\n if (!ensureAttribute(document, DOC_ATTRIBUTE_FIELDS, msg)) return;\n }\n\n // prepare PATH\n StringBuilder apiPath = new StringBuilder();\n if (dbName != null) apiPath.append(\"/_db/\").append(dbName);\n apiPath.append(API_PATH);\n apiPath.append(\"/?\").append(MSG_PROPERTY_COLLECTION).append(\"=\").append(collection);\n\n httpPost(persistor, apiPath.toString(), headers, document, timeout, msg);\n }", "public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}", "protected synchronized void init(LiveIndexWriterConfig indexWriterConfig) {\n this.indexWriterConfig = indexWriterConfig;\n infoStream = indexWriterConfig.getInfoStream();\n }", "void commit() throws IndexTransactionException;", "LuceneMemoryIndex createLuceneMemoryIndex();" ]
[ "0.61298937", "0.59758145", "0.5957394", "0.58798164", "0.58374035", "0.58003205", "0.57591957", "0.5742078", "0.5737121", "0.5681831", "0.560849", "0.560139", "0.55855393", "0.5540242", "0.55362725", "0.54931945", "0.54621124", "0.5461731", "0.5459894", "0.5457712", "0.5439912", "0.54393435", "0.54317313", "0.54195625", "0.5412757", "0.5358833", "0.5358443", "0.53580093", "0.5327733", "0.53246236", "0.5318487", "0.53181434", "0.53060436", "0.52992195", "0.52973413", "0.529597", "0.5283836", "0.5265551", "0.52493435", "0.5246966", "0.52455", "0.524518", "0.52384657", "0.5229736", "0.5222163", "0.5218938", "0.52185297", "0.52126575", "0.5212188", "0.5204937", "0.5204543", "0.52020586", "0.52008367", "0.51945233", "0.5190958", "0.5187168", "0.5144012", "0.5144012", "0.5144012", "0.5144012", "0.5144012", "0.5133472", "0.51303595", "0.51247054", "0.51140577", "0.5111362", "0.5109405", "0.5107795", "0.5106165", "0.5105625", "0.51040125", "0.50923663", "0.5091534", "0.50883204", "0.5080181", "0.5077737", "0.50760823", "0.5073609", "0.50734496", "0.506722", "0.50589997", "0.50523734", "0.5042733", "0.50170445", "0.5016336", "0.5013638", "0.501243", "0.5008073", "0.5007496", "0.5005744", "0.5005129", "0.5003225", "0.50030184", "0.4981453", "0.49813777", "0.4978924", "0.49782917", "0.49700966", "0.49585646", "0.49520475" ]
0.7173744
0
Directory will be deleted (function is recursive)
private static boolean deleteDirectory(File directory) { if(directory.exists()){ File[] files = directory.listFiles(); if(null!=files){ for(int i=0; i<files.length; i++) { if(files[i].isDirectory()) { deleteDirectory(files[i]); } else { files[i].delete(); } } } } return(directory.delete()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteDirectory(String path, boolean recursive) throws IOException;", "void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n }\n\n }", "void deleteCoverDirectory() {\n\n try {\n\n Log.i(\"Deleting Covr Directory\", cover_directory.toString());\n FileUtils.deleteDirectory(cover_directory);\n } catch (IOException e) {\n\n }\n\n }", "void deleteStoryDirectory() {\n\n try {\n\n Log.i(\"Deleting StoryDirectory\", story_directory.toString());\n FileUtils.deleteDirectory(story_directory);\n } catch (IOException e) {\n\n }\n\n }", "@Override\n\tpublic boolean delete() {\n\t\tboolean result = false;\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.isDirectory()) {\n\t\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t\tif (file.isDirectory()) ((File) file).delete();\n\t\t\t\t\t\t\telse if (file.isFile()) super.delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsuper.delete();\n\t\t\t\t} else if (this.isFile()) super.delete();\n\t\t\t}\n\t\t\t\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}", "private void deleteDirectory(Path path) throws IOException {\n if (Files.isDirectory(path, LinkOption.NOFOLLOW_LINKS)) {\n try (DirectoryStream<Path> entries = Files.newDirectoryStream(path)) {\n for (Path entry : entries) {\n deleteDirectory(entry);\n }\n }\n }\n Files.delete(path);\n }", "@Override\n public void removeDirectory(File directory, boolean recursive) throws FileNotFoundException, IOException {\n }", "@Override\r\n\tpublic void remDir(String path) {\n\t\t\r\n\t}", "public void deleteDir() throws Exception\n{\n if(_repo!=null) _repo.close(); _repo = null;\n _gdir.delete();\n _gdir.setProp(GitDir.class.getName(), null);\n}", "private static void deleteFileOrDir(File file)\n {\n if (file.isDirectory())\n {\n File[] childs = file.listFiles();\n for (int i = 0;i < childs.length;i++)\n {\n deleteFileOrDir(childs[i]);\n }\n }\n file.delete();\n }", "private static void deleteDir(File file) {\n\t\tFile[] contents = file.listFiles();\n\t\tif (contents != null) {\n\t\t\tfor (File f : contents) {\n\t\t\t\tdeleteDir(f);\n\t\t\t}\n\t\t}\n\t\tfile.delete();\n\t}", "void deleteDirectories() {\n\n if (story_directory != null && !newStoryReady) {\n deleteStoryDirectory();\n }\n\n if (tag_directory != null && !newStoryReady) {\n deleteTagDirectory();\n }\n\n if (cover_directory != null && !newStoryReady) {\n deleteCoverDirectory();\n }\n }", "public static void delete(File file) {\n\n\t\tif (file.isDirectory()) {\n\n\t\t\t// directory is empty, then delete it\n\t\t\tif (file.list().length == 0) {\n\n\t\t\t\tfile.delete();\n\t\t\t\t// System.out.println(\"Directory is deleted : \" +\n\t\t\t\t// file.getAbsolutePath());\n\n\t\t\t} else {\n\n\t\t\t\t// list all the directory contents\n\t\t\t\tString files[] = file.list();\n\n\t\t\t\tfor (String temp : files) {\n\t\t\t\t\t// construct the file structure\n\t\t\t\t\tFile fileDelete = new File(file, temp);\n\n\t\t\t\t\t// recursive delete\n\t\t\t\t\tdelete(fileDelete);\n\t\t\t\t}\n\n\t\t\t\t// check the directory again, if empty then delete it\n\t\t\t\tif (file.list().length == 0) {\n\t\t\t\t\tfile.delete();\n\t\t\t\t\t// System.out.println(\"Directory is deleted : \" +\n\t\t\t\t\t// file.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// if file, then delete it\n\t\t\tfile.delete();\n\t\t\t// System.out.println(\"File is deleted : \" +\n\t\t\t// file.getAbsolutePath());\n\t\t}\n\t}", "public static void deleteFolder(File folder) {\r\nFile[] files = folder.listFiles();\r\nif(files!=null) { //some JVMs return null for empty dirs\r\nfor(File f: files) {\r\nif(f.isDirectory()) {\r\ndeleteFolder(f);\r\n} else {\r\nf.delete();\r\n}\r\n}\r\n}\r\nfolder.delete();\r\n}", "public static void main(String[] args){\nFile filez = new File(\"d:/prac/sub1\");\r\ndeleteFolder(filez);\r\n}", "private static void deletePublicationDir(File pubDir) {\n System.out.println(\" Deleting contents of directory: \" + pubDir);\n for (File pubFile : pubDir.listFiles()) {\n if (pubFile.isFile()) {\n System.out.println(\" Deleting file: \" + pubFile);\n pubFile.delete();\n }\n }\n System.out.println(\" Now deleting directory: \" + pubDir);\n pubDir.delete();\n }", "private static void deleteDirectory(File directory) {\r\n File[] files = directory.listFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n deleteDirectory(files[i]);\r\n } else {\r\n files[i].delete();\r\n }\r\n }\r\n // Now that the directory is empty. Delete it.\r\n directory.delete();\r\n }", "public boolean delete(String path, boolean recurse) throws SystemException;", "private void recDelete(File file) {\n if (!file.exists()) {\n return;\n }\n if (file.isDirectory()) {\n File[] list = file.listFiles();\n if (list != null) {\n for (File f : list) {\n recDelete(f);\n }\n }\n }\n file.delete();\n }", "private void deleteRecursive(File fileOrDirectory) {\n if (fileOrDirectory.isDirectory()) {\n for (File child : fileOrDirectory.listFiles()) {\n deleteRecursive(child);\n }\n }\n fileOrDirectory.delete();\n }", "public static void delete(File d) {\n\t\tif (d.isDirectory()) {\n\t\t\tfor (File f: d.listFiles()) delete(f);\n\t\t\td.delete();\n\t\t} else d.delete();\n\t}", "public boolean delete()\n\t{\n\t\treturn deleteRecursive( file ) ;\n\t}", "public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean folderCleaner(String folderPath, Boolean ifDeleteSubdirs, Boolean ifDeleteFiles, Boolean ifDeleteRoot, Boolean ifPrompt) throws IOException { \n folderPath = folderPath.replace(\"\\\\\", \"/\");\n if(folderPath.endsWith(\"/\")) { folderPath = folderPath.substring(0, folderPath.length() - 1); }\n File dir = new File(folderPath);\n String how = \"\", action = null;\n Boolean success = false;\n Boolean current = false;\n if (dir.exists() && dir.isDirectory()) { \n try{ \n success = true;\n String[] children = dir.list();\n if(children.length > 0) {\n action = \"CLEANED\";\n for (int i = 0; i < children.length; i++) {\n File child = new File(dir, children[i]);\n if(child.isDirectory()){ if(ifDeleteSubdirs) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteSubdirs) {System.out.print(\"DIRECTORY \");} }\n else { if(ifDeleteFiles) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteFiles) {System.out.print(\" FILE \");} }\n \n current = !child.exists();\n success = success && current;\n if(current) { how = \" DELETED: \\\"\"; } else { how = \"NOT DELETED: \\\"\"; }\n if(ifPrompt && current) System.out.print(how + child.getAbsolutePath() + \"\\n\");\n }\n }\n // THE DIRECTORY IS EMPTY - DELETE IT IF REQUIRED\n if (ifDeleteRoot) { FileUtils.forceDelete(dir); success = success && !dir.exists(); action = \"DELETED\"; }\n if(ifPrompt && (!action.equals(null))) {\n if (success) { \n System.out.println(\"\\n\" + \"FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n } else {\n System.out.println(\"\\n\" + \"NOT FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n }\n }\n } catch (Exception e) {} \n }\n return success;\n }", "private static boolean deleteDirectory(final File path) {\r\n if (path.exists()) {\r\n final File[] files = path.listFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n deleteDirectory(files[i]);\r\n }\r\n else {\r\n files[i].delete();\r\n }\r\n }\r\n }\r\n return (path.delete());\r\n }", "public static void delTree(File file) {\r\n File[] files = file.listFiles();\r\n if (files != null) { \r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n delTree(files[i]);\r\n }\r\n }\r\n }\r\n files = file.listFiles();\r\n if (files != null) {\r\n for (int i = 0; i < files.length; i++) {\r\n files[i].delete();\r\n }\r\n }\r\n }", "@Override\n public FileVisitResult postVisitDirectory(Path dir,\n IOException exc)\n throws IOException {\n Files.delete(dir);\n System.out.printf(\"Directory is deleted : %s%n\", dir);\n return FileVisitResult.CONTINUE;\n }", "private void deleteCacheFiles() {\n\n\t\t// get the directory file\n\t\tFile cache = new File(Constants.CACHE_DIR_PATH);\n\n\t\t// check if we got the correct instance of that directory file.\n\t\tif (!cache.exists() || !cache.isDirectory())\n\t\t\treturn;\n\n\t\t// gets the list of files in the directory\n\t\tFile[] files = cache.listFiles();\n\t\t// deleting\n\n\t\tdeleteFiles(cache);\n\t\tfiles = null;\n\t\tcache = null;\n\n\t}", "public static void deleteDir(File dir) {\n\t if (dir.isDirectory()) {\n\t String[] children = dir.list();\n\t for (int i=0; i<children.length; i++) {\n\t File file = new File(dir, children[i]);\n\t log.info(\"Deleting file:\" + file.toString());\n\t file.delete();\n\t }\n\t }\n\t }", "private void przygotujFolderWynikowy() {\r\n\t\tFile folder = new File(\"./wynik\");\r\n\t\tif (!(folder.mkdir())) {\r\n\t\t\tFile[] tablica = folder.listFiles();\r\n\t\t\tif(tablica != null)\r\n\t\t\tfor (File f : tablica) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tf.delete();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "protected void deleteTmpDirectory(File file) {\n\t\tif (file.exists() && file.canWrite()) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tFile[] files = file.listFiles();\n\t\t\t\tfor (File child : files) {\n\t\t\t\t\tif (child.isDirectory()) {\n\t\t\t\t\t\tdeleteTmpDirectory(child);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfile.delete();\n\t\t}\n\t}", "public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\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\t}\n\t\t}\n\t}", "private void delete(File file) {\n if (file.isDirectory()) {\n cleanDirectory(file);\n }\n file.delete();\n }", "public static void deleteDirectory(String inputDirectory) {\n File directory = new File(inputDirectory);\n //check if it is a directory\n if (directory.isDirectory()) {\n //check if the directory has children\n if (directory.listFiles().length == 0) {\n directory.delete();\n System.out.println(\"Directory is deleted: \"\n + directory.getAbsolutePath());\n } else {\n //ask user whether he wants to delete the directory\n System.out.println(\"The chosen directory contains few files.\");\n viewDirectory(inputDirectory);\n System.out.println(\"Do you really want to delete the whole directory: \\n 1.Yes\\n 2.No\");\n Scanner userInput = new Scanner(System.in);\n String userRes = userInput.nextLine();\n if (userRes.equalsIgnoreCase(\"yes\") || userRes.equalsIgnoreCase(\"1\")) {\n //delete files inside the directory one by one\n deleteFilesInsideDirectory(directory);\n //delete parent directory\n directory.delete();\n if (!directory.exists()) {\n System.out.println(\"Directory has been deleted.\");\n } else {\n System.out.println(\"Deletion failed\");\n }\n } else if (userRes.equalsIgnoreCase(\"no\") || userRes.equalsIgnoreCase(\"2\")) {\n System.out.println(\"Delete directory request cancelled by user.\");\n } else {\n deleteDirectory(inputDirectory);\n }\n }\n } else {\n System.out.println(\"Invalid path or directory.\");\n }\n }", "@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException e) throws IOException{\n if (e == null) {\n Files.deleteIfExists(dir);\n }\n return FileVisitResult.CONTINUE;\n }", "protected void deleteDirectory(String oneDir) {\n \n File[] listOfFiles;\n File cleanDir;\n\t\n cleanDir = new File(oneDir);\n if (!cleanDir.exists()) {// Nothing to do. Return; \n\t return;\n\t}\n listOfFiles = cleanDir.listFiles();\n if(listOfFiles != null) { \n for(int countFiles = 0; countFiles < listOfFiles.length; countFiles++) { \n if (listOfFiles[countFiles].isFile()) {\n listOfFiles[countFiles].delete();\n } else { // It is a directory\n String nextCleanDir = cleanDir + separator + listOfFiles[countFiles].getName();\n\t\t File newCleanDir = new File(nextCleanDir);\n deleteDirectory(newCleanDir.getAbsolutePath());\n } \n }// End for loop\n } // End if statement \n cleanDir.delete();\n }", "public void cleanDirs() {\n\t\tfor (File f : files) {\n\t\t\tFileUtils.deleteDir(f.toString());\n\t\t}\n\t}", "public static void deleteFileOrDirectory(KVFile file) {\n if (file.isDirectory()) {\n String[] children = file.list();\n for (String aChildren : children) {\n if (new KVFile(file, aChildren).isDirectory() && !aChildren.equals(\"PreinstalledMaps\") && !aChildren.equals(\"Maps\")) {\n deleteFileOrDirectory(new KVFile(file, aChildren));\n } else {\n new KVFile(file, aChildren).delete();\n }\n }\n }\n }", "private void deleteDir(File fileDir)\n {\n try\n {\n FileHelper.deleteDir(fileDir);\n }\n catch (Exception e)\n {\n // ignore\n }\n }", "private void deleteWorkingRoot(WorkUnit workUnit, boolean copy) {\n\n // Construct folder name (will be copy or not)\n String folderToDelete = format(\"%s%s\", workUnit.root, (copy ? \"_copy\" : \"\"));\n\n // 7. Clean work directory\n MigrationHistory history = historyMgr.startStep(workUnit.migration,\n StepEnum.CLEANING, format(\"Remove %s\", folderToDelete));\n\n // Sanity check\n if (!StringUtils.isBlank(folderToDelete) && folderToDelete.contains(\"20\") && folderToDelete.contains(\"_\")) {\n\n try {\n\n if (isWindows) {\n // FileUtils.deleteDirectory(new File(folderToDelete));\n // JBU : Fails occassionally on windows with file lock issue\n // FileUtils.deleteDirectory(new File(folderToDelete));\n // JBU : Fails on windows not able to delete a large number of files?..\n String gitCommand = format(\"rd /s /q %s\", folderToDelete);\n execCommand(workUnit.commandManager, Shell.formatDirectory(applicationProperties.work.directory), gitCommand);\n\n } else {\n // Seems to work ok on linux. Keeping Java command for the moment\n FileSystemUtils.deleteRecursively(new File(folderToDelete));\n }\n\n historyMgr.endStep(history, StatusEnum.DONE, null);\n } catch (Exception exc) {\n LOG.error(\"Failed deleteDirectory: \", exc);\n historyMgr.endStep(history, StatusEnum.FAILED, exc.getMessage());\n }\n\n } else {\n LOG.error(\"Failed deleteDirectory: Badly formed delete path\");\n historyMgr.endStep(history, StatusEnum.FAILED, \"Badly formed delete path\");\n }\n }", "public String do_rmdir(String pathOnServer) throws RemoteException {\r\n\t\tString directoryPath = pathOnServer;\r\n\t\tString message;\r\n\t\t\r\n\t\t\tFile dir = new File(directoryPath);\r\n\t\t\tif (!dir.isDirectory()) {\r\n\t\t\t\tmessage = \"Invalid directory\";\t}\t\r\n\t\t\telse {\r\n\t\t\t\t\r\n\t\t\tif(dir.list().length>0) {\r\n\r\n\t\t\tFile[] filesList = dir.listFiles();\r\n\t\t\t//Deleting Directory Content\r\n\t\t\tfor(File file : filesList){\r\n\t\t\t\tSystem.out.println(\"Deleting \"+file.getName());\r\n\t\t\t\tfile.delete();\r\n\t\t\t}}\r\n\t\t\tif (dir.delete()) message =\"Successfully deleted the Directory: \" + directoryPath ;\r\n\t\t\telse message =\"Error deleting the directory: \" + directoryPath ;\r\n\t\t\t}//else end \r\n\t\treturn message;\r\n\t}", "public static void deleteDirectory(String path) throws KubernetesPluginException {\n Path pathToBeDeleted = Paths.get(path);\n if (!Files.exists(pathToBeDeleted)) {\n return;\n }\n try {\n Files.walk(pathToBeDeleted)\n .sorted(Comparator.reverseOrder())\n .map(Path::toFile)\n .forEach(File::delete);\n } catch (IOException e) {\n throw new KubernetesPluginException(\"Unable to delete directory: \" + path, e);\n }\n\n }", "private void cleanDirectory(File dir) {\n File[] files= dir.listFiles();\n if (files!=null && files.length>0) {\n for (File file: files) {\n delete(file);\n }\n }\n }", "private void removePolicyContextDirectory(){\n\tString directoryName = getContextDirectoryName();\n\tFile f = new File(directoryName);\n\tif(f.exists()){\n\n // WORKAROUND: due to existence of timestamp file in given directory\n // for SE/EE synchronization\n File[] files = f.listFiles();\n if (files != null && files.length > 0) {\n for (int i = 0; i < files.length; i++) {\n files[i].delete();\n }\n }\n //WORKAROUND: End \n\n\t if (!f.delete()) {\n String defMsg = \"Failure removing policy context directory: \"+directoryName;\n String msg=localStrings.getLocalString(\"pc.file_delete_error\", defMsg);\n\t\tlogger.log(Level.SEVERE,msg);\n\t\tthrow new RuntimeException(defMsg);\n\t } else if(logger.isLoggable(Level.FINE)){\n\t\tlogger.fine(\"JACC Policy Provider: Policy context directory removed: \"+directoryName);\n\t }\n\n File appDir = f.getParentFile();\n // WORKAROUND: due to existence of timestamp file in given directory\n // for SE/EE synchronization\n File[] fs = appDir.listFiles();\n if (fs != null && fs.length > 0) {\n boolean hasDir = false;\n for (int i = 0; i < fs.length; i++) {\n if (fs[i].isDirectory()) {\n hasDir = true;\n break;\n }\n }\n if (!hasDir) {\n for (int i = 0; i < fs.length; i++) {\n fs[i].delete();\n }\n }\n }\n //WORKAROUND: End \n\n File[] moduleDirs = appDir.listFiles();\n if (moduleDirs == null || moduleDirs.length == 0) {\n if (!appDir.delete()) {\n String defMsg = \"Failure removing policy context directory: \" + appDir;\n String msg = localStrings.getLocalString(\"pc.file_delete_error\", defMsg);\n\t\t logger.log(Level.SEVERE,msg);\n\t\t throw new RuntimeException(defMsg);\n }\n }\n\t}\n }", "private void emptyDirectory(File dir){\n\n for (File file : Objects.requireNonNull(dir.listFiles())){\n if (file.isDirectory())\n {\n emptyDirectory(file);\n }\n file.delete();\n }\n }", "private static boolean deleteDir(File dir) {\n\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i=0; i<children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n\n // The directory is now empty so now it can be smoked\n return dir.delete();\n }", "private void clearClipsDirectory(){\n /* Citation : http://helpdesk.objects.com.au/java/how-to-delete-all-files-in-a-directory#:~:text=Use%20the%20listFiles()%20method,used%20to%20delete%20each%20file. */\n File directory = new File(Main.CREATED_CLIPS_DIRECTORY_PATH);\n File[] files = directory.listFiles();\n if(files != null){\n for(File file : files){\n if(!file.delete()) System.out.println(\"Failed to remove file \" + file.getName() + \" from \" + Main.CREATED_CLIPS_DIRECTORY_PATH);\n }\n }\n }", "private boolean deleteDir(File dir) {\r\n if (dir.isDirectory()) {\r\n \r\n //Borra todos los ficheros del directorio\r\n String[] children = dir.list();\r\n for (int i=0; i<children.length; i++) {\r\n boolean success = deleteDir(new File(dir, children[i]));\r\n if (!success) {\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n //Ahora que el directorio está vacío, se puede borrar\r\n return dir.delete();\r\n }", "public static void deleteFolder(String path){\n List<CMSFile> files = CMSFile.find(\"name like '\" + path + \"%'\").fetch();\n for (CMSFile file: files){\n if (file.data != null && file.data.exists()) {\n file.data.getFile().delete();\n }\n file.delete();\n }\n }", "@Override\r\n public void deleteFolder(long id) {\n this.folderRepository.deleteById(id);; \r\n }", "public void delete() throws AlreadyDeletedException{\r\n\tif (this.isDeleted() == false) {\r\n\t\tDirectory ref = this.getDir();\r\n \tref.remove(this);\r\n \tthis.setDelete(true);\t\r\n \tthis.setModificationTime();\r\n\t}\r\n\telse {\r\n\t\tthrow new AlreadyDeletedException(this);\t\r\n\t\t\r\n\t}\r\n}", "public static void deleteRecursively(File file) throws IOException {\n\t\tboolean successful = true;\n\t\tif (file.isDirectory()) {\n\t\t\tfor (File sub : file.listFiles()) {\n\t\t\t\tdeleteRecursively(sub);\n\t\t\t}\n\t\t\tsuccessful = file.delete();\n\t\t} else if (file.isFile()) {\n\t\t\tsuccessful = file.delete();\n\t\t}\n\t\tif (!successful) {\n\t\t\tthrow new IOException(\"Could not delete:\" + file.getName());\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}", "public static void deleteFile(File file){\r\n if(file.isFile()){\r\n file.delete();\r\n return;\r\n }\r\n if(file.isDirectory()){\r\n File[] childFile = file.listFiles();\r\n if(childFile == null || childFile.length == 0){\r\n file.delete();\r\n return;\r\n }\r\n for(File f : childFile){\r\n deleteFile(f);\r\n }\r\n file.delete();\r\n }\r\n }", "@TestFor(issues = \"TW-42737\")\n public void test_directory_remove() throws Exception {\n CommitPatchBuilder patchBuilder = myCommitSupport.getCommitPatchBuilder(myRoot);\n patchBuilder.createFile(\"dir/file\", new ByteArrayInputStream(\"content\".getBytes()));\n patchBuilder.createFile(\"dir2/file\", new ByteArrayInputStream(\"content\".getBytes()));\n patchBuilder.commit(new CommitSettingsImpl(\"user\", \"Create dir with file\"));\n patchBuilder.dispose();\n\n RepositoryStateData state1 = myGit.getCurrentState(myRoot);\n\n patchBuilder = myCommitSupport.getCommitPatchBuilder(myRoot);\n patchBuilder.deleteDirectory(\"dir\");\n patchBuilder.commit(new CommitSettingsImpl(\"user\", \"Delete dir\"));\n patchBuilder.dispose();\n\n RepositoryStateData state2 = myGit.getCurrentState(myRoot);\n\n List<ModificationData> changes = myGit.getCollectChangesPolicy().collectChanges(myRoot, state1, state2, CheckoutRules.DEFAULT);\n then(changes).hasSize(1);\n then(changes.get(0).getChanges()).extracting(\"fileName\", \"type\").containsOnly(Tuple.tuple(\"dir/file\", VcsChange.Type.REMOVED));\n }", "@AfterClass(groups ={\"All\"})\n\tpublic void deleteFolder() {\n\t\ttry {\n\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tfor(String id:uploadId){\n\t\t\t\t\tMap<String,String> fileInfo = new HashMap<String,String> ();\n\t\t\t\t\tfileInfo.put(\"fileId\", id);\n\t\t\t\t\tdciFunctions.deleteFile(universalApi, suiteData, fileInfo);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tdciFunctions.deleteFolder(universalApi, suiteData, folderInfo);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogger.info(\"Issue with Delete Folder Operation \" + ex.getLocalizedMessage());\n\t\t}\n\t}", "public boolean clean() {\n\t\tboolean result = false;\n\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t((File) file).delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}", "private void deleteFile() {\n\t\tFile dir = getFilesDir();\n\t\tFile file = new File(dir, FILENAME);\n\t\tfile.delete();\n\t}", "public static void recursiveDelete(Path path) throws IOException {\n if (Files.isDirectory(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Files.delete(file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n Files.delete(file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (exc == null) {\n Files.delete(dir);\n return FileVisitResult.CONTINUE;\n } else {\n throw exc;\n }\n }\n });\n }\n }", "private static void doDeleteEmptyDir(String dir) {\n\n boolean success = (new File(dir)).delete();\n\n if (success) {\n System.out.println(\"Successfully deleted empty directory: \" + dir);\n } else {\n System.out.println(\"Failed to delete empty directory: \" + dir);\n }\n\n }", "public void delete() throws IOException {\n\t\tclose();\n\t\tdeleteContents(directory);\n\t}", "public static boolean recursiveDelete(File d) {\n // If d is not a directory, just delete it.\n if (!d.isDirectory())\n if (d.delete() == false) {\n return false;\n } else {\n return true;\n }\n else {\n // Construct a file list.\n File[] ar = d.listFiles();\n \n // Iterate through the file list.\n for (int i = 0; i < ar.length; i++) {\n // Recurse into directories. Deep directories will need a lot of stack space for this.\n if (ar[i].isDirectory()) {\n if (!recursiveDelete(ar[i])) {\n return false; // Failed!\n }\n }\n else {\n // Delete a file.\n if (!ar[i].delete()) {\n return false; // Failed!\n }\n }\n }\n \n //Delete the empty directory\n if (!d.delete()) {\n return false;\n } else {\n return true;\n } \n }\n }", "public static void deleteDirectoryRecursively(Path pathToBeDeleted) throws IOException {\n\n Files.walk(pathToBeDeleted).sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete);\n }", "public void removeFolder(File path){\n if (path.isDirectory()){\n String subdirectories[] = path.list();\n for(String subdirectory: subdirectories){\n File file = new File(path.getPath()+\"\\\\\"+subdirectory);\n LOG.info(\"file.getAbsolutePath(): \"+file.getPath());\n if (file.isFile()){\n boolean isDeleted = file.delete();\n if (isDeleted){\n LOG.success(\"file was delete, path: \"+file.getPath());\n }else{\n LOG.error(\"file does not delete, path: \"+file.getPath());\n }\n }else{\n removeFolder(file);\n boolean folderIsDelete = file.delete();\n if (folderIsDelete){\n LOG.success(\"folder was delete, path: \"+file);\n }else{\n LOG.error(\"folder does not delete, path: \"+file);\n }\n }\n }\n }else {\n LOG.info(\"file.getAbsolutePath(): \"+path.getPath());\n }\n }", "@Test\r\n public void testDeleteDirectory() {\r\n System.out.println(\"deleteDirectory\");\r\n File directory = null;\r\n boolean expResult = false;\r\n boolean result = connection.deleteDirectory(directory);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public static void delete(String source) {\n Path directory = Paths.get(source);\n try {\n Files.walkFileTree(directory, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs)\n throws IOException {\n Files.delete(file);\n return CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(final Path file, final IOException e) {\n return handleException(e);\n }\n\n private FileVisitResult handleException(final IOException e) {\n e.printStackTrace(); // replace with more robust error handling\n return TERMINATE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(final Path dir, final IOException e)\n throws IOException {\n if (e != null) {\n return handleException(e);\n }\n Files.delete(dir);\n return CONTINUE;\n }\n });\n } catch (IOException ex) {\n Logger.getLogger(FolderManager.class.getName()).log(Level.SEVERE, null, ex);\n delete(source);\n }\n }", "public boolean remove() {\n\t\t\n\t\tMainTerminal terminal = MainTerminal.get();\n\t\tif(this.exists())\n\t\t{\n\t\t\tif(this.isDirectory())\n\t\t\t\tterminal.execute(\"rmdir \" + this.path);\n\t\t\telse\n\t\t\t\tterminal.execute(\"rm --force \" + path);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "void folderDeleted(String remoteFolder);", "private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] backupDirs = tmpdir.listFiles(file -> file.getName().contains(BACKUP_TEMP_DIR_PREFIX));\n if (backupDirs != null) {\n for (File file : backupDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }", "private void clean(Path path) throws IOException {\n if (Files.exists(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<>() {\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n\n public FileVisitResult postVisitDirectory(Path path, IOException exception) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n });\n }\n }", "public static void delete(File file) throws IOException {\n String method = \"delete() - \";\n if ((file != null) && (file.exists())) {\n if (file.isDirectory()) {\n if (file.list().length == 0) {\n file.delete();\n }\n else {\n String files[] = file.list();\n for (String current : files) {\n File fileToDelete = new File(file, current);\n delete(fileToDelete);\n if (file.list().length == 0) {\n file.delete();\n }\n }\n }\n }\n else {\n file.delete();\n }\n }\n else {\n throw new IOException(method \n + \"The input file is null or does not exist.\");\n }\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void deleteFilesFromDirectory(ArrayList<File> files)\n {\n for(File file:files) {\n Log.i(\"file\",\"indide\"+file.getPath());\n if (file.exists()) {\n Log.i(\"file\",\"exist\"+file.getPath());\n if (file.delete()) {\n Log.i(\"file\",\"delted successfully\"+file.getPath());\n } else {\n Log.i(\"file\",\"unable to delte file\"+file.getPath());\n }\n }\n }\n }", "public static boolean deleteFileRoot(String path) {\n try {\n if (!readReadWriteFile())\n RootTools.remount(path, \"rw\");\n\n if (new File(path).isDirectory()) {\n execute(\"rm -f -r \" + getCommandLineString(path));\n } else {\n execute(\"rm -r \" + getCommandLineString(path));\n }\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "public static void cleanDirectory(final ContextualLogger logger, Path start) throws IOException {\n if (!start.toFile().exists()) {\n boolean didMake = start.toFile().mkdir();\n Assert.assertTrue(didMake);\n }\n // We need the directory to be a directory (as we don't want to follow symlinks anywhere in this delete operation).\n Assert.assertTrue(start.toFile().isDirectory());\n // We don't want to delete the starting directory, but we do want to delete everything in it.\n Files.walkFileTree(start, new FileVisitor<Path>() {\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n // Do nothing.\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n // This clearly can't be the start.\n Assert.assertFalse(start.equals(file));\n // Delete the file.\n Files.delete(file);\n logger.output(\"Deleted file \" + file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n logger.error(\"visitFileFailed: \\\"\" + file + \"\\\"\");\n throw exc;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (null == exc) {\n // Make sure that this isn't the starting directory.\n if (!start.equals(dir)) {\n Files.delete(dir);\n logger.output(\"Deleted directory \" + dir);\n }\n } else {\n throw exc;\n }\n return FileVisitResult.CONTINUE;\n }\n }\n );\n }", "private synchronized static void deleteParents(File file) {\n if (file == null) {\n return;\n }\n\n File tmp = file;\n\n for (int i = 0; i < directoryLevels; i++) {\n File directory = tmp.getParentFile();\n File[] files = directory.listFiles();\n\n // Only delete empty directories\n if (files.length != 0) {\n break;\n }\n\n directory.delete();\n tmp = directory;\n }\n }", "public static void deleteRecursive(File fileOrDirectory, long olderThen) {\n if (fileOrDirectory.isDirectory()) {\n for (File child : fileOrDirectory.listFiles()) {\n deleteRecursive(child, olderThen);\n }\n } else {\n long lastModified = fileOrDirectory.lastModified();\n long fileAge = System.currentTimeMillis() - lastModified;\n if (fileAge >= olderThen) {\n fileOrDirectory.delete();\n }\n }\n }", "private void deleteFile(java.io.File file) {\n if (file.isDirectory()) {\n for (java.io.File f : file.listFiles()) \n deleteFile(f);\n }\n \n if (!file.delete())\n try {\n throw new FileNotFoundException(\"Failed to delete file: \" + file.getName());\n } catch (FileNotFoundException e) {\n System.err.println(\"Delete of file \" + file.getAbsolutePath() + \" failed\");\n e.printStackTrace();\n }\n }", "private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }", "private static void deleteDatabaseHelper(final Path path) {\n if (path != null) {\n\n try {\n if (!Files.isDirectory(path)) {\n Files.delete(path);\n } else {\n \n // see http://www.oracle.com/technetwork/articles/java/ma14-java-se-8-streams-2177646.html\n // for an explanation of streams and foreach\n Files.newDirectoryStream(path).forEach(filePath -> deleteDatabaseHelper(filePath));\n Files.delete(path);\n }\n\n } catch (IOException ex) {\n Logger.getLogger(ConnectionManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static void cleanDirectory(File dir) {\n if (dir.isDirectory()) {\n for (File f : dir.listFiles()) {\n cleanDirectory( f );\n }\n }\n dir.delete();\n }", "private void cleanFolder(File[] files) {\n \t\t\n \t\tif (files != null) {\n \t\t\t// Iterate the files\n \t\t\tfor (int i = 0; i < files.length; i++) {\n \t\t\t\tFile f = files[i];\n \t\t\t\t// If the file is a directory, remove its contents recursively\n \t\t\t\tif (f.isDirectory()) {\n \t\t\t\t\tcleanFolder(f.listFiles());\n \t\t\t\t}\n \t\t\t\t// Remove the file if it is a class file\n \t\t\t\tif (f.getName().endsWith(\".class\"))\n \t\t\t\t\tf.delete();\n \t\t\t}\n \t\t}\n \t}", "@Test\n public void testDeleteDirectory() {\n System.out.println(\"deleteDirectory with existing folder as input\");\n File testFolder = new File(folder.toString()+fSeparator+\"Texts\");\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.deleteDirectory(testFolder);\n assertEquals(\"Some message\",expResult, result);\n }", "private static void deleteTempFolder(String folderName) throws IOException {\n Path tempFolderPath = Paths.get(folderName);\n\n if (Files.exists(tempFolderPath) && Files.isDirectory(tempFolderPath)) {\n Files.walk(tempFolderPath)\n .sorted(Comparator.reverseOrder())\n .map(Path::toFile)\n .forEach(File::delete);\n }\n }", "public static void cleanFolder(File outputFolder)\n {\n File[] files = outputFolder.listFiles();\n for (File file : files)\n {\n if (file.isDirectory())\n {\n cleanFolder(file);\n }\n else\n {\n if (file.delete())\n {\n Main.out(\"Deleted: \" + file);\n }\n else\n {\n Main.warn(\"Failed to delete file: \" + file);\n }\n }\n }\n }", "private void removeServiceDirectory(String serviceID){\n \n //If map \"servicesDirectories\" contains the serviceID\n if(servicesDirectories.containsKey(serviceID)){\n \n //Get directory associated to serviceID\n File dir = servicesDirectories.get(serviceID);\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n //Remove directory from map \"servicesDirectories\"\n servicesDirectories.remove(serviceID);\n \n }\n \n }", "private void cleanTempFolder() {\n File tmpFolder = new File(getTmpPath());\n if (tmpFolder.isDirectory()) {\n String[] children = tmpFolder.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(TMP_IMAGE_PREFIX)) {\n new File(tmpFolder, children[i]).delete();\n }\n }\n }\n }", "public static void deleteCache(Context context){\n File baseDir = getResourcesFolder(context);\n //basDir could be null if storage has not yet been selected (extreme cases where memory is too low)\n if(baseDir != null) {\n File[] content = baseDir.listFiles();\n if(content != null)\n for (File file : content)\n deleteRecursively(file);\n }\n }", "@Test\n public void testDeleteFolder() {\n System.out.println(\"deleteFolder\");\n String folder = \"\";\n FileSystemStorage instance = null;\n instance.deleteFolderAndAllContents(folder);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public final boolean recursiveDelete(File file) {\r\n if (isFileSystem(file)) {\r\n if (file.isDirectory()) {\r\n // delete all children first\r\n File[] children = FileSystemView.getFileSystemView().getFiles(file, false);\r\n for (File f : children) {\r\n if (!recursiveDelete(f)) {\r\n return false;\r\n }\r\n }\r\n // delete this file.\r\n return file.delete();\r\n }\r\n else {\r\n return file.delete();\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "public boolean recursiveDelete(File file) {\n File[] files;\n if (file.isDirectory()) {\n files = file.listFiles();\n if (files != null) {\n for (int x = 0; x < files.length; x++) {\n recursiveDelete(files[x]);\n }\n }\n } else {\n operMatcher.put(new FileInfo(file, context), null);\n }\n file.delete();\n return false;\n }", "private static void deleteEmptyParentDirs(Path pkgDirPath, Path repoPath) throws IOException {\n Path pathsInBetween = repoPath.relativize(pkgDirPath);\n for (int i = pathsInBetween.getNameCount(); i > 0; i--) {\n Path toRemove = repoPath.resolve(pathsInBetween.subpath(0, i));\n if (!Files.list(toRemove).findAny().isPresent()) {\n Files.delete(toRemove);\n }\n }\n }", "private void deleteConfigFile(File configFile) {\r\n String confDirectoryName = configFile.getParent();\r\n configFile.delete();\r\n File parentDirectory = new File(confDirectoryName);\r\n if (parentDirectory.exists()) {\r\n parentDirectory.delete();\r\n }\r\n }", "public static void deleteDirectory( File directory ) throws IOException\n {\n if ( !directory.exists() )\n {\n return;\n }\n\n if ( !isSymlink( directory ) )\n {\n cleanDirectory( directory );\n }\n\n if ( !directory.delete() )\n {\n throw new IOException( I18n.err( I18n.ERR_17004_UNABLE_DELETE_DIR, directory ) );\n }\n }", "public static boolean deleteDirectory(File dir) {\n \n\t\tif (dir == null) { \n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tFile candir;\n try {\n candir = dir.getCanonicalFile();\n } catch (IOException e) {\n return false;\n }\n \n // a symbolic link has a different canonical path than its actual path,\n // unless it's a link to itself\n if (!candir.equals(dir.getAbsoluteFile())) {\n // this file is a symbolic link, and there's no reason for us to\n // follow it, because then we might be deleting something outside of\n // the directory we were told to delete\n return false;\n }\n \n // now we go through all of the files and subdirectories in the\n // directory and delete them one by one\n File [] files = candir.listFiles();\n \n if (files != null) {\n for (int i = 0; i < files.length; i++) {\n File file = files[i];\n \n // in case this directory is actually a symbolic link, or it's\n // empty, we want to try to delete the link before we try\n // anything\n boolean deleted = file.delete();\n \n if (!deleted) {\n // deleting the file failed, so maybe it's a non-empty\n // directory\n if (file.isDirectory()) {\n \tdeleteDirectory(file);\n }\n \n // otherwise, there's nothing else we can do\n }\n }\n }\n \n // now that we tried to clear the directory out, we can try to delete it\n // again\n return dir.delete(); \n }", "public static synchronized void deleteDirectory(File directory) {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.deleteDirectory: [\" + directory.getPath() + \"]\");\n File[] firstDirectoryFiles = directory.listFiles();\n if (firstDirectoryFiles != null) {\n for (File file : firstDirectoryFiles) {\n file.delete();\n }\n }\n directory.delete();\n }", "public static void deleteDirectory(File dir) {\n\t\tif (dir.isDirectory()) {\n\t\t\t//directory is empty, then delete it\n\t\t\tif (dir.list().length == 0) {\n\t\t\t\tdir.delete();\n\t\t\t} else {\n\t\t\t\t//list all the directory contents\n\t\t\t\tString[] subFiles = dir.list();\n\t\t\t\tfor (int i = 0; i < subFiles.length; i++) {\n\t\t\t\t\t//construct the file structure\n\t\t\t\t\tFile fileDelete = new File(dir, subFiles[i]);\n\t\t\t\t\t//recursive delete\n\t\t\t\t\tdeleteDirectory(fileDelete);\n\t\t\t\t}\n\t\t\t\t//check the directory again, if empty then delete it\n\t\t\t\tif (dir.list().length == 0) {\n\t\t\t\t\tdir.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tdir.delete();\n\t\t}\n\t}", "public void deleteTmpDirectory() {\n\t\tdeleteTmpDirectory(tmpDir);\n\t}", "public void clearServiceDirectory(String serviceID){\n \n //If map \"servicesDirectories\" contains the serviceID\n if(servicesDirectories.containsKey(serviceID)){\n \n //Get directory associated to serviceID\n File dir = servicesDirectories.get(serviceID);\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete(); \n }\n \n }", "public static final void delete(final File file)\n\t{\n\t\tif (file.isDirectory())\n\t\t{\n\t\t\tfor (final String temp : file.list())\n\t\t\t{\n\t\t\t\tdelete(new File(file, temp));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfile.delete();\n\t\t}\n\t}" ]
[ "0.767948", "0.75184494", "0.7458778", "0.7323502", "0.73232114", "0.72170746", "0.71292454", "0.7094492", "0.7049103", "0.70349884", "0.7031021", "0.70046926", "0.6986416", "0.6963181", "0.69602275", "0.69545597", "0.6943569", "0.6916882", "0.6912825", "0.68856823", "0.68646985", "0.68628955", "0.68457776", "0.6843173", "0.6838483", "0.6834578", "0.67723465", "0.67701524", "0.67614067", "0.67571884", "0.6707402", "0.66942596", "0.6684379", "0.66740644", "0.66631895", "0.6658455", "0.66519314", "0.66505104", "0.6643764", "0.66319954", "0.66313374", "0.6631335", "0.66170096", "0.65841544", "0.65840703", "0.6578119", "0.6559946", "0.6540822", "0.651876", "0.65135515", "0.6508377", "0.64741963", "0.64679396", "0.64570165", "0.6455752", "0.645045", "0.64454025", "0.644225", "0.6437819", "0.64351285", "0.64339256", "0.64333135", "0.6426519", "0.6424523", "0.64169896", "0.6410132", "0.6409258", "0.6407911", "0.6406333", "0.6391783", "0.63828826", "0.6377182", "0.63750577", "0.6366793", "0.6359576", "0.63552725", "0.6342025", "0.63264006", "0.632486", "0.62964153", "0.62912726", "0.6287866", "0.62837017", "0.62803274", "0.6250397", "0.62502825", "0.62409556", "0.6237094", "0.6236342", "0.6229081", "0.6199548", "0.6189842", "0.6183752", "0.6181427", "0.61700255", "0.616967", "0.6167491", "0.616156", "0.6151007", "0.6149233" ]
0.6815208
26
default. do not use public for reflection
public CMLVector3() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Default()\n {}", "private MApi() {}", "private ReflectionUtil()\n {\n }", "@Override\n protected void prot() {\n }", "Reproducible newInstance();", "public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException, NoSuchFieldException {\n Class clazz = Test.class;\n Class clazz3 = Class.forName(\"Reflection.Test\");\n\n Test test = (Test) clazz.newInstance();\n\n // вызвать метод по имени у заданного объекта\n Method method = clazz.getMethod(\"foo\");\n System.out.println(method.toString());\n method.invoke(test);\n\n // установить поле по имени у заданного объекта\n Field field = clazz.getDeclaredField(\"num\");\n field.setAccessible(true);\n field.set(test, 100);\n System.out.println(test);\n\n // выводим название пакета\n Package pack = clazz.getPackage();\n System.out.println(\"package \" + pack.getName() + \";\");\n\n // начинаем декларацию класса с модификаторов\n int modifiers = clazz.getModifiers();\n System.out.print(getModifiers(modifiers));\n // выводим название класса\n System.out.print(\"class \" + clazz.getSimpleName() + \" \");\n\n // выводим название родительского класса\n System.out.print(\"extends \" + clazz.getSuperclass().getSimpleName() + \" \");\n\n // выводим интерфейсы, которые реализует класс\n Class[] interfaces = clazz.getInterfaces();\n for (int i = 0, size = interfaces.length; i < size; i++) {\n System.out.print(i == 0 ? \"implements \" : \", \");\n System.out.print(interfaces[i].getSimpleName());\n }\n System.out.println(\" {\");\n\n // выводим поля класса\n Field[] fields = clazz.getDeclaredFields();\n for (Field f : fields) {\n System.out.println(\"\\t\" + getModifiers(f.getModifiers()) +\n getType(f.getType()) + \" \" + f.getName() + \";\");\n }\n\n // выводим методы класса\n Method[] methods = clazz.getDeclaredMethods();\n for (Method m : methods) {\n // получаем аннотации\n Annotation[] annotations = m.getAnnotations();\n System.out.print(\"\\t\");\n for (Annotation a : annotations) {\n System.out.print(\"@\" + a.annotationType().getSimpleName() + \" \");\n }\n System.out.println();\n\n System.out.print(\"\\t\" + getModifiers(m.getModifiers()) +\n getType(m.getReturnType()) + \" \" + m.getName() + \"(\");\n System.out.print(getParameters(m.getParameterTypes()));\n System.out.println(\") { }\");\n }\n\n System.out.println(\"}\");\n }", "private Get() {}", "private Get() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public abstract Object mo1771a();", "private Infer() {\n\n }", "private static void Demo5() {\n\t\tClass<?> class1 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.Person\");\r\n\t\t\ttry {\r\n\t\t\t\tObject obj = class1.newInstance();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tField f = class1.getDeclaredField(\"name\");\r\n\t\t\t\t\tf.setAccessible(true);\r\n\t\t\t\t\tf.set(obj, \"HONGHENG\");\r\n\t\t\t\t\tSystem.out.println(f.get(obj));\r\n\t\t\t\t} catch (NoSuchFieldException 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} catch (SecurityException 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} catch (InstantiationException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n ClassDefault claseDefault = new ClassDefault(\"hola\");\n claseDefault.setAttrPrivate(\"Modigficado atrr privado\");\n System.out.println(\"Privado \"+ claseDefault.getAttrPrivate());\n //claseDefault.attrPrivate = \"Cambio desde la prueba\";\n //Systease1 = \" + clase1.attrPublico);\n //clase1.metodoPublico();m.out.println(\"claseDefault.attrDefault = \" + claseDefault.attrDefault);\n //claseDefault.metodoDefault();\n //System.out.println(\"clase1 = \" + clase1.attrPublico);\n //clase1.metodoPublico();\n }", "public abstract Member mo23408O();", "Object getClass_();", "Object getClass_();", "public abstract Object mo26777y();", "protected Doodler() {\n\t}", "private static void reflection() throws Exception {\n Class cl = Class.forName(\"com.videobet.sandbox.Person\");\r\n Person p = (Person)cl.getConstructor(new Class[] {String.class, String.class})\r\n .newInstance(\"Smith\", \"John\");\r\n System.out.print(cl.getMethod(\"getFullName\").invoke(p));\r\n }", "private Public() {\n super(\"public\", null);\n }", "default void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "private FieldInfo() {\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "Objet getObjetAlloue();", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "private NativeSupport() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private PluginsInternal() {}", "@Override\n void init() {\n }", "public OOP_207(){\n\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "private TypicalPersons() {}", "private TypicalPersons() {}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "private Inspect() {\n }", "private LOCFacade() {\r\n\r\n\t}", "private Utils() {\n\t}", "private Utils() {\n\t}", "defaultConstructor(){}", "@Override\n public void init() {}", "public Methods() {\n // what is this doing? -PMC\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private LocalParameters() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "private ReflectionRequest(Builder builder) {\n super(builder);\n }", "@Override\n protected void init() {\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}", "protected abstract S createDefault();", "private CommonMethods() {\n }", "@Override\n public void init() {\n\n }", "private static void Demo1() {\n\t\tPerson person = new Person();\r\n\t\tSystem.out.println(\"类名:\" + person.getClass().getName());\r\n\t\tSystem.out.println(\"包名:\" + person.getClass().getPackage().getName());\r\n\r\n\t}", "private PortletRequestUtils() {\r\n\t\tthrow new UnsupportedOperationException();\r\n\t}", "public interface Reflection {\n\t/**\n\t * Creates the template which specifies which constructor to \n\t * call upon. The specifies the classes of the arguments which\n\t * need to be given to the constructor.\n\t */\n\t@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();\n\t\n\t/**\n\t * Create the object array which serves as the parameters \n\t * to construct another object of this type.\n\t */\n\tpublic Object[] getConstructorArgs ();\n}", "public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\r\n Class<?> c = Class.forName(\"Reflect.Student\");\r\n// System.out.println(c);\r\n //返回一个 Constructor对象,该对象反映 Constructor对象表示的类的指定的公共构造器\r\n Constructor<?>[] constructors = c.getConstructors();\r\n //返回一个 Constructor对象,该对象反映 Constructor对象表示的类的所有构造器\r\n Constructor<?>[] declaredConstructors = c.getDeclaredConstructors();\r\n for (Constructor con : declaredConstructors)\r\n System.out.println(con);\r\n\r\n System.out.println(\"-----------------\");\r\n\r\n Constructor<?> dc = c.getDeclaredConstructor(String.class, int.class, String.class);\r\n //dc.setAccessible(true); //暴力反射\r\n System.out.println(dc.newInstance(\"tcp\", 22, \"shangluo\"));\r\n\r\n Constructor<?> constructor = c.getConstructor();\r\n\r\n Object obj = constructor.newInstance();\r\n System.out.println(obj);\r\n\r\n Method function = c.getDeclaredMethod(\"method2\", String.class);\r\n function.setAccessible(true);\r\n function.invoke(obj,\"tangcaiping\");\r\n }", "private BeanUtils() {\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}", "private Platform() {\n\t\t\n\t}", "private LoadMethodMapper ()\n {}", "public void checkPublic() {\n }", "private FundInfo() {\n initFields();\n }", "private Util() { }", "@Override\n\tpublic void buildDefaultMethods(JDefinedClass cls) {\n\n\t}", "public void myPublicMethod() {\n\t\t\n\t}", "private Dex2JarProxy() {\r\n\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "private DTOFactory() {\r\n \t}", "private InternalStorage() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", "public interface AccessibleClassParser\n{\n /**\n * Parses a Java-loaded class object to an AccessibleClass\n * \n * @param clazz\n * the class to parse\n * @return the parsed AccessibleClass\n */\n AccessibleClass parseAccessibleClass(Class<?> clazz);\n\n /**\n * Check whever the provided class name is said to be primitive\n * (Primitive_Single) or not (Object_Single)\n * \n * @param className\n * the class name\n * @return true if the type is primitive, false otherwise\n * @deprecated @see {@link PrimitiveTypeUtil}\n */\n @Deprecated\n boolean isPrimitiveType(String className);\n\n /**\n * Give the setter method name according to the field name\n * \n * @param name\n * the filed name\n * @return the setter name\n */\n String attributeToSetter(String name);\n\n /**\n * Give the getter method name according to the field name\n * \n * @param name\n * the field name\n * @return the getter name\n */\n String attributeToGetter(String name);\n\n /**\n * Give the getter method name according to the field name for boolean\n * values (is*())\n * \n * @param name\n * the boolean field name\n * @return the getter name\n */\n String booleanAttributeToGetter(String arg0);\n}", "protected void _init(){}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public abstract Object mo1185b();", "@Override\n public void init() {\n }", "private test5() {\r\n\t\r\n\t}", "public static void objectDemo() {\n\t}", "@Override\n public void perish() {\n \n }", "private ReflectionResponse(Builder builder) {\n super(builder);\n }", "public ObjectsPublicTest(String name) {\n\t\tsuper(name);\n\t}", "private NaturePackage() {}", "private UsineJoueur() {}", "public void init() {\r\n\t\t// to override\r\n\t}", "protected void init() {\n // to override and use this method\n }", "private Object setupDefaultPrototype() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private CollectionUtils() {\n\n\t}", "abstract public String named();" ]
[ "0.65368706", "0.64572865", "0.6321706", "0.627894", "0.6219524", "0.6208774", "0.61821985", "0.6154574", "0.6154574", "0.61459786", "0.602045", "0.60063195", "0.59831417", "0.5978406", "0.597405", "0.5933479", "0.5933479", "0.59250695", "0.59206545", "0.59075636", "0.5874137", "0.5854418", "0.58460414", "0.58343965", "0.5829362", "0.58229905", "0.58220834", "0.5788162", "0.57711035", "0.5765147", "0.57649654", "0.57583916", "0.57579136", "0.57513076", "0.57470256", "0.5742309", "0.5742309", "0.57291573", "0.5724881", "0.57114667", "0.5701395", "0.5692693", "0.5692693", "0.56920654", "0.568917", "0.56872743", "0.56777155", "0.56684303", "0.5663509", "0.56604445", "0.56560653", "0.56559247", "0.5655651", "0.5655651", "0.5655651", "0.5655651", "0.56338173", "0.5630121", "0.56282693", "0.56209576", "0.5620521", "0.56137604", "0.5610508", "0.5610135", "0.55949533", "0.5590309", "0.5586589", "0.5586589", "0.5586589", "0.5584195", "0.558344", "0.5578723", "0.5578044", "0.5577385", "0.5577047", "0.55768657", "0.5574894", "0.55747014", "0.5568851", "0.5562588", "0.55613387", "0.5554779", "0.55538875", "0.55529124", "0.55511343", "0.5550346", "0.55451876", "0.554394", "0.5532927", "0.55301815", "0.5524809", "0.5521228", "0.5520883", "0.5512213", "0.5507459", "0.55055517", "0.55000544", "0.54990894", "0.54990894", "0.5498177", "0.549742" ]
0.0
-1
create new instance in context of parent, overridable by subclasses.
public CMLElement makeElementInContext(Element parent) { return new CMLVector3(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void makeContext();", "protected abstract void construct();", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "@Override\n public Animal newChild() {\n return new Fox(0);\n }", "public Parent() {\n super();\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public abstract void create();", "@Override\n\tpublic void create() {\n\t\t\n\t}", "Inheritance createInheritance();", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "@Override\n\tpublic void create() {\n\n\t}", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "@Override\n\tpublic void create () {\n\n\t}", "protected AbstractSplinePathBuilder(ScriptingContext parent) {\n\tsuper(parent);\n\tthis.parent = parent;\n }", "@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}", "Context createContext();", "Context createContext();", "@Override\r\n\tpublic void create() {\n\r\n\t}", "protected ChildType() {/* intentionally empty block */}", "public ModuleContext(BasicStaticContext parent)\n {\n defaultFTOptions = new MatchOptions(); // move to basic context?\n if(parent != null)\n copy(parent);\n // for dyn evaluation:\n if(parent instanceof ModuleContext)\n importedModules.add(parent);\n }", "Reproducible newInstance();", "Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }", "Instance createInstance();", "protected abstract ENTITY createEntity();", "@Override\n public PASerializable newActor(Mailbox mailbox, Ancestor parent)\n throws Exception {\n PASerializable a = instantiateActor();\n ((IncDesImpl) a.getDurable()).initialize(mailbox, parent, this);\n return a;\n }", "protected abstract DBObject getNewObject();", "public void create(){}", "public abstract boolean create(T newInstance);", "public void doExecute() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tCompositeEntity parentModel = (CompositeEntity) parent;\n\t\t\t\t\tString componentName = null;\n\t\t\t\t\tif (model == null) {\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel,\n\t\t\t\t\t\t\t\t\t\t clazz,\n\t\t\t\t\t\t\t\t\t\t name.equalsIgnoreCase(\"INPUT\") ? DEFAULT_INPUT_PORT : DEFAULT_OUTPUT_PORT,\n\t\t\t\t\t\t\t\t\t\t name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tClass constructorClazz = CompositeEntity.class;\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"TypedIOPort\")) {\n\t\t\t\t\t\t\tconstructorClazz = ComponentEntity.class;\n\t\t\t\t\t\t} else if (clazz.getSimpleName().equals(\n\t\t\t\t\t\t\t\t\"TextAttribute\")) {\n\t\t\t\t\t\t\tconstructorClazz = NamedObj.class;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"Vertex\")) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tConstructor constructor = clazz.getConstructor(\n\t\t\t\t\t\t\t\t\tconstructorClazz, String.class);\n\n\t\t\t\t\t\t\tchild = (NamedObj) constructor.newInstance(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tif (child instanceof TypedIOPort) {\n\t\t\t\t\t\t\t\tboolean isInput = name\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"INPUT\");\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setInput(isInput);\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setOutput(!isInput);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (model instanceof TypedIOPort) {\n\t\t\t\t\t\t\tname = ((TypedIOPort) model).isInput() ? DEFAULT_INPUT_PORT\n\t\t\t\t\t\t\t\t\t: DEFAULT_OUTPUT_PORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel, model.getClass(), name, name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tif (model instanceof Vertex) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchild = (NamedObj) model\n\t\t\t\t\t\t\t\t\t.clone(((CompositeEntity) parentModel)\n\t\t\t\t\t\t\t\t\t\t\t.workspace());\n\t\t\t\t\t\t\tchild.setName(componentName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tComponentUtility.setContainer(child, parentModel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcreateDefaultValues(child);\n\t\t\t\t\t\n\t\t\t\t\tif (location != null) {\n\t\t\t\t\t\tModelUtils.setLocation(child, location);\n\t\t\t\t\t}\n\t\t\t\t\tsetChild(child);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tgetLogger().error(\"Unable to create component\", e);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "public abstract void create(T t);", "@Override\n\tpublic EntityAgeable createChild(EntityAgeable mate) {\n\t\treturn getReproductionHelper().createChild(mate);\n\t}", "For createFor();", "protected abstract Content newContent();", "public abstract T create(T obj);", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "public TestContext subContext() {\n\t\treturn new TestContext(this);\n\t}", "public CMObject newInstance();", "private IExtendsContext createExtendsContext() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IExtendsContext.ELEMENT_TYPE, null, null);\n\t}", "protected TreeProcessor(TreeProcessor parent, ComponentManager manager) {\n this.parent = parent;\n\n // Copy all that can be copied from the parent\n this.enableLogging(parent.getLogger());\n this.context = parent.context;\n this.roleManager = parent.roleManager;\n this.builderSelector = parent.builderSelector;\n this.checkReload = parent.checkReload;\n this.lastModifiedDelay = parent.lastModifiedDelay;\n\n // We have our own CM\n this.manager = manager;\n }", "public void create() {\n\t\t\n\t}", "public GXWebObjectBase(HttpContext httpContext)\n\t{\n\t\tsuper(httpContext);\n\t\tcastHttpContext();\n\t}", "@Override\n\tprotected Entity createNewEntity(final Object baseObject) {\n\t\tProductAssociation productAssociation = getBean(ContextIdNames.PRODUCT_ASSOCIATION);\n\t\tproductAssociation.setGuid(new RandomGuidImpl().toString());\n\t\tproductAssociation.setCatalog(this.getImportJob().getCatalog());\n\t\treturn productAssociation;\n\t}", "public abstract Individual makeChild(Individual otherIndividual);", "@Override\n\tpublic void create(Owner owner) {\n\n\t}", "public T newInstance();", "@JRubyMethod(name = \"new\")\n public static IRubyObject newObject(ThreadContext ctx, IRubyObject self) {\n return self.rbClone().callMethod(ctx, \"reset\");\n }", "public Node<E> createNode(E e, Position<E> parent){\n Node<E> p = (Node<E>) parent;\n return new Node<>(e, p);\n }", "GridDataModel create(int parentRow, GridDataModel parentModel);", "protected abstract EntityBase createEntity() throws Exception;", "protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;", "Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}", "private ScriptableObject makeChildScope(String name, Scriptable scope) {\r\n // This code is based on sample code from Rhino's website:\r\n // http://www.mozilla.org/rhino/scopes.html\r\n \r\n // I changed it to use a ScriptableObject instead of Context.newObject()\r\n ScriptableObject child = new NamedScriptableObject(name);\r\n \r\n // Set the prototype to the scope (so we have access to all its methods \r\n // and members). \r\n child.setPrototype(scope);\r\n \r\n // We want \"threadScope\" to be a new top-level scope, so set its parent \r\n // scope to null. This means that any variables created by assignments\r\n // will be properties of \"threadScope\".\r\n child.setParentScope(null);\r\n \r\n return child;\r\n }", "@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}", "@Override\n public CoreSpanBuilder asChildOf(final AgentSpan.Context spanContext) {\n parent = spanContext;\n return this;\n }", "protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }", "protected abstract SESSION newSessionObject() throws EX;", "public Background(TrainingManager parent, ICommand processor) {\n this.processor = processor;\n this.parent = parent;\n }", "public PSL(Group parent, ModelClassFactory factory) {\r\n super(parent, factory);\r\n init(factory);\r\n }", "public abstract ServiceLocator create(String name,\n ServiceLocator parent);", "TopLevel createTopLevel();", "public Camp newEntity() { return new Camp(); }", "protected AbstractContext() {\n this(new FastHashtable<>());\n }", "PK create(T newInstance);", "public InteractionClass( ObjectModel model, String name, InteractionClass parent )\n\t{\n\t\tthis.model = model;\n\t\tthis.name = name;\n\t\tthis.qualifiedName = null;\n\t\tthis.handle = null;\n\t\tthis.parent = parent;\n\t\tthis.children = new HashSet<>();\n\t\tthis.parameters = new HashMap<>();\n\t\t\n\t\t// add ourselves to the parent (unless we're the root, in which case we have no parent)\n\t\tif( parent != null )\n\t\t\tparent.addChild( this );\n\t}", "protected abstract S createDefault();", "protected abstract T newObject(Handle<T> paramHandle);", "public abstract String createNewObject(OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p,\r\n String strMimeParameter_p) throws Exception;", "protected Txn createTxn(Txn parent, IsolationLevel level,\r\n int timeout, TimeUnit unit)\r\n throws Exception\r\n {\r\n return createTxn(parent, level);\r\n }", "public TreeNode (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"new TreeNode parent=\" + parent);\r\n }\r\n\r\n if (parent != null) {\r\n parent.addChild(this);\r\n }\r\n }", "protected abstract M createNewElement();", "public abstract Objective createObjective(Scoreboard parent,\n String identifier,\n String title);", "public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}", "public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Exception;", "public T getNewInstance() {\n T value = null;\n Class<T> tClass = (Class<T>) ((ParameterizedType) this.getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n try {\n value = tClass.newInstance();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n return value;\n }", "@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}", "protected final Context getParent()\n {\n return m_parent;\n }", "Traditional createTraditional();", "P createP();", "abstract public Content createContent();", "public PContext() {\r\n\t\tthis(new PDirective(), null, null);\r\n\t}", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }", "public void create(T e);", "SAProcessInstanceBuilder createNewInstance(SProcessInstance processInstance);", "public AbstractBuilder(Context context)\n\t{\n\t\tthis.context = context;\n\t}", "@Override\r\n public void instantiate() {\r\n }", "public abstract Instance duplicate();", "protected abstract Object makeNew(final String prefix, final int seqno);", "private BsTestNaturalParent createNaturalParent() {\n java.util.Random r = new java.util.Random();\n TestNaturalParentDelegate delegate =\n Memcached_testDelegateFactory.getTestNaturalParentDelegate();\n Long key1 = r.nextLong();\n Long key2 = r.nextLong();\n BsTestNaturalParent parent = delegate.createTestNaturalParent(key1, key2);\n return parent;\n }", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "public void initForAddNew() {\r\n\r\n\t}", "public Object buildNewInstance() throws DescriptorException {\n if (this.isUsingDefaultConstructor()) {\n return this.buildNewInstanceUsingDefaultConstructor();\n } else {\n return this.buildNewInstanceUsingFactory();\n }\n }", "public SuperProduct() {\n\t\tsuper();\n\t}", "private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }", "public abstract Context context();" ]
[ "0.64948773", "0.6476694", "0.64073724", "0.6398482", "0.62298226", "0.6229513", "0.61102045", "0.6067016", "0.60320705", "0.60104525", "0.59827834", "0.59761363", "0.59754735", "0.5940589", "0.5940589", "0.5910906", "0.59035534", "0.587829", "0.58678246", "0.58678246", "0.58644027", "0.58459115", "0.5819873", "0.5805067", "0.5785004", "0.5780388", "0.5767084", "0.5759647", "0.57404935", "0.57206273", "0.570815", "0.57062835", "0.56992054", "0.5698616", "0.56627864", "0.5660101", "0.56454813", "0.5636976", "0.56198853", "0.5592805", "0.55669075", "0.5559932", "0.55569285", "0.55568683", "0.5541442", "0.5537327", "0.5533782", "0.5520048", "0.55195713", "0.54934704", "0.5486259", "0.5484671", "0.5476466", "0.54739445", "0.547343", "0.5464602", "0.5463467", "0.5450553", "0.5449276", "0.54346025", "0.5419869", "0.54078054", "0.5394008", "0.5391221", "0.5389633", "0.5380594", "0.536793", "0.53603107", "0.5351638", "0.5328279", "0.5324688", "0.5324103", "0.53201485", "0.5318061", "0.53027815", "0.52930206", "0.5287348", "0.52785367", "0.5277957", "0.5271431", "0.52593935", "0.5257378", "0.5253013", "0.5251211", "0.52478534", "0.52478534", "0.52478534", "0.52478534", "0.52467895", "0.52415067", "0.5239551", "0.5229034", "0.52237153", "0.521625", "0.52104026", "0.52058893", "0.5205401", "0.5202686", "0.52024156", "0.51957387", "0.5190891" ]
0.0
-1
check vector is OK. must have 3 double components
public void finishMakingElement(Element parent) throws RuntimeException { double[] array = this.getXMLContent(); if (array == null) { throw new RuntimeException("vector must not be empty"); } else if (array.length != 3) { throw new RuntimeException("vector must have 3 double components"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object isValidColumnVector(List<List<Double>> vector) {\n\t\tInteger nrows = vector.size();\n\n\t\tList<Integer> rowLengths = vector.stream().map(List::size).toList();\n\t\tInteger ncols = rowLengths.stream().mapToInt(Integer::intValue).sum() / rowLengths.size();\n\n\t\treturn (nrows == 3) && (ncols == 1);\n\t}", "public static boolean isValidVector(double x, double y){\r\n\t\treturn (isValidComponent(x) && isValidComponent(y));\r\n\t}", "public boolean checkData()\n {\n boolean ok = true;\n int l = -1;\n for(Enumeration<Vector<Double>> iter = data.elements(); iter.hasMoreElements() && ok ;)\n {\n Vector<Double> v = iter.nextElement();\n if(l == -1)\n l = v.size();\n else\n ok = (l == v.size()); \n }\n return ok; \n }", "@Test\n public void testGetValues(){\n assertTrue(vector.x == 1 && vector.z == 1);\n }", "@Test\n public void testCheckTriType() {\n System.out.println(\"checkTriType\");\n double[] a = {1 , 5 , 4 , 100};\n double[] b = {1 , 5 , 3 , 5 };\n double[] c = {1 , 8 , 2 , 6 };\n SVV01 instance = new SVV01();\n String[] expResult = {\"Equilateral Triangle\",\"Isosceles Triangle\",\"Scalene\",\"Invalid\"};\n \n for ( int i = 0 ; i < 4 ; i++ ){\n String result = instance.checkTriType(a[i], b[i], c[i]);\n assertEquals(expResult[i], result);\n }\n }", "static double[] unitVector(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n double magnitude = vectorMagnitude(vector);\n\n return (new double[] {vector[0] / magnitude, vector[1] / magnitude, vector[2] / magnitude});\n }", "boolean hasVector3Value();", "public static void isValid(double dbl) throws IllegalArgumentException {\n\t//nothing to do here\n }", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "public static boolean check3(Class<?> theClass) {\n\t\t/*\n\t\t * Create an array of 10000 times Math.Pi and 1 times 10000 * Math.Pi.\n\t\t * Then check if the sum is 20000 times Math.Pi.\n\t\t */\n\t\tdouble[] testArgument = new double[10001];\n\t\tfor(int i=0; i<testArgument.length; i++) {\n\t\t\ttestArgument[i] = Math.PI;\n\t\t}\n\t\ttestArgument[5000] = 10000*Math.PI;\n\t\tdouble testSum = 20000*Math.PI;\n\n\t\tDoubleVector vector = ObjectConstructor.<DoubleVector>create(theClass, DoubleVector.class, testArgument);\n\n\t\tdouble error = testSum - vector.sum();\n\t\tif(Math.abs(error) > accuracy) {\n\t\t\tSystem.out.println(\"\\tAccuracy test failes. Accuracy is too low. The error is \" + error);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"\\tAccuracy test passed.\");\n\t\t}\n\n\t\treturn true;\n\t}", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "public static boolean isVector(int[] v) { return v != null && v.length == 2; }", "@Test\n public void length() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.length(a, 2);\n assertTrue(Math.abs(result*result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.length(a2);\n assertTrue(Math.abs(result2*result2-expect) < 1E-6f);\n }", "private void validate(Adouble val) {\r\n Assertions.assertEquals(val.aonType(), Atype.DOUBLE);\r\n Assertions.assertEquals(val, val);\r\n Assertions.assertEquals(val, Adouble.valueOf(val.toDouble()));\r\n Assertions.assertEquals(val.hashCode(), Adouble.valueOf(val.toDouble()).hashCode());\r\n Assertions.assertTrue(val.isNumber());\r\n }", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "static boolean checkSplits (double[] splits) { throw new RuntimeException(); }", "@Test\r\n public void testParityVector() {\r\n System.out.println(\"parityVector\");\r\n int[] vector = {1,2,3};\r\n VectorHelper instance = new VectorHelper();\r\n String[] expResult = {\"impair\",\"pair\",\"impair\"};\r\n String[] result = instance.parityVector(vector);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Test\n\tpublic void turnVectorVector3DDouble() {\n\t\tVector3f vector = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\tVector3f axis = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\taxis.normalize();\n\t\tdouble angle = this.random.nextDouble();\n\t\t\n\t\tMatrix3f turn = new Matrix3f(\n\t\t\t\taxis.getX()*axis.getX()+(1-axis.getX()*axis.getX())*Math.cos(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))-axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))+axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))+axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getY()+(1-axis.getY()*axis.getY())*Math.cos(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))-axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))-axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))+axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getZ()*axis.getZ()+(1-axis.getZ()*axis.getZ())*Math.cos(angle));\n\t\t\n\t\tVector3f vectorTurned = vector.mul(turn);\n\t\tvector.turnVector(axis, angle);\n\t\t\n\t\tassertEpsilonEquals(vector.length(),vectorTurned.length());\n\t\tassertEpsilonEquals(vector.signedAngle(new Vector3f(1,0,0)),vectorTurned.signedAngle(new Vector3f(1,0,0)));\n\t\tassertTrue(vector.equals(vectorTurned));\n\t}", "boolean hasVector2Value();", "boolean hasDouble();", "@Test//test equal\n public void testEqual() {\n MyVector vD1 = new MyVector(ORIGINALDOUBLEARRAY);\n MyVector vD2 = new MyVector(ORIGINALDOUBLEARRAY);\n double[] doubleArray = new double[]{3.0, 2.3, 1.0, 0.0, -1.1};\n MyVector diffVD3 = new MyVector(doubleArray);\n assertEquals(true, vD1.equal(vD2));\n assertEquals(false, vD1.equal(diffVD3));\n MyVector vI1 = new MyVector(ORIGINALINTARRAY);\n MyVector vI2 = new MyVector(ORIGINALINTARRAY);\n int[] intArray = new int[]{1, 2, 3, 4};\n MyVector vI3 = new MyVector(intArray);\n assertEquals(true, vI1.equal(vI2));\n assertEquals(false, vI1.equal(vI3));\n }", "public boolean isVector() {\n return mat.getNumRows() == 1 || mat.getNumCols() == 1;\n }", "@Test\n public void testProblemFoundInTheWild() {\n\n Primitive64Store matrix = Primitive64Store.FACTORY.rows(new double[][] { { 1, 0, 0 }, { 0.01, 0, -1 }, { 0.01, 1, 0 } });\n\n CaseEigenvalue.doVerifyGeneral(matrix);\n }", "static double vectorMagnitude(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n return (Math.sqrt(Math.pow(vector[0], 2.0) + Math.pow(vector[1], 2.0) + Math.pow(vector[2], 2.0)));\n }", "@Test\r\n public void testMinMaxVector() {\r\n System.out.println(\"minMaxVector\");\r\n int[] vector = {1,8,3,4};\r\n VectorHelper instance = new VectorHelper();\r\n int[]expResult= {1,8};\r\n int []result=instance.minMaxVector(vector);\r\n assertArrayEquals(expResult,result);\r\n \r\n }", "private Boolean isValidMatrix(List<List<Double>> matrix) {\n\t\tInteger nrows = matrix.size();\n\n\t\tList<Integer> rowLengths = matrix.stream().map(List::size).toList();\n\t\tfloat ncols = (float) rowLengths.stream().mapToInt(Integer::intValue).sum() / rowLengths.size();\n\n\t\treturn (ncols == nrows) && (nrows == 3);\n\t}", "public boolean isEqualTo(CMLVector3 v, double eps) {\r\n boolean ok = true;\r\n for (int i = 0; i < 3; i++) {\r\n if (Math.abs(this.getXYZ3()[i] - v.getXYZ3()[i]) > eps) {\r\n ok = false;\r\n break;\r\n }\r\n }\r\n return ok;\r\n }", "@Test\r\n public void testAddVector() throws Exception {\r\n System.out.println(\"AddVector\");\r\n int[] T = {1,2,3};\r\n int []T2 = {4,5,6};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {5,7,9};\r\n int[] result = instance.AddVector(T, T2);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "private static boolean isUnsafeVelocity(Vector vel) {\n/* 448 */ double x = vel.getX();\n/* 449 */ double y = vel.getY();\n/* 450 */ double z = vel.getZ();\n/* */ \n/* 452 */ if (x > 4.0D || x < -4.0D || y > 4.0D || y < -4.0D || z > 4.0D || z < -4.0D) {\n/* 453 */ return true;\n/* */ }\n/* */ \n/* 456 */ return false;\n/* */ }", "@Test\n public void testCheckPlaceValideVerticale() throws BateauxMembreInvalide, BateauxStartPointInvalide {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(15, 15, j, p);\n\n Place[] pl = j.checkPlace(\"A6\", g, 5, false);\n Place[] att = new Place[]{new Place(\"A6\"), new Place(\"A7\"), new Place(\"A8\"), new Place(\"A9\"), new Place(\"A10\")};\n\n assertArrayEquals(\"Les places ne sont pas bonne\", att, pl);\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Vector<DBColumn> vector0 = new Vector<DBColumn>();\n // Undeclared exception!\n try { \n SQLUtil.renderColumnNames((List<DBColumn>) vector0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // Array index out of range: 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test\n public void testIsValidDouble() {\n System.out.println(\"isValidDouble\");\n String double_number = \"Mary\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidDouble(double_number);\n assertEquals(expResult, result);\n }", "public boolean istrianglevalid() {\n //if all of the sides are valid, then return true, else return false\n if (sideA > 0 && sideB > 0 && sideC > 0) {\n return true;\n } else {\n return false;\n }\n }", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "public boolean almostEquals(Vect3 v) {\n\t\treturn Util.almost_equals(x,v.x) && Util.almost_equals(y,v.y) && \n\t\t\t\tUtil.almost_equals(z,v.z);\n\t}", "public void testContainsdoubledouble() {\r\n\t\tCircleArc2D arc = new CircleArc2D(new Point2D(0, 0), 10, 0, PI/2);\r\n\t\tassertTrue(!arc.contains(0, 0));\r\n\t\tassertTrue(arc.contains(10, 0));\r\n\t\tassertTrue(arc.contains(0, 10));\r\n\t}", "private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }", "@Test\n void normalize() {\n\n Vector v = new Vector(1, 2, 3);\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n if (vCopy != vCopyNormalize)\n fail(\"ERROR: normalize() function creates a new vector\");\n if (!isZero(vCopyNormalize.length() - 1))\n fail(\"ERROR: normalize() result is not a unit vector\");\n Vector u = v.normalized();\n if (u == v)\n fail(\"ERROR: normalized() function does not create a new vector\");\n }", "@java.lang.Override\n public boolean hasVector2Value() {\n return typeCase_ == 6;\n }", "private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }", "public boolean checkTestVector() throws Exception {\n\n this.doCalculate();\n\n byte[] expectedOutput=null;\n switch ( this.type ) {\n case ENCRYPT:\n expectedOutput = this.cipherText; \n break;\n case DECRYPT:\n expectedOutput = this.payLoad;\n break;\n default:\n throw new Exception(\"not allowed\");\n }\n\n return Arrays.equals(this.calculatedOutput, expectedOutput);\n }", "private VectorArit VectorToDouble(VectorArit v) {\r\n LinkedList<Object> l = new LinkedList<>();\r\n for (int i = 0; i < v.getTamanio(); i++) {\r\n Object o = v.Acceder(i);\r\n if (o instanceof Double) {\r\n l.add(o);\r\n } else {\r\n l.add((o instanceof Integer) ? ((Integer) o).doubleValue() : (((Boolean) o) ? 1.0 : 0.0));\r\n }\r\n }\r\n return new VectorArit(TipoPrimitivo.NUMERIC, l);\r\n }", "@Test\n public void lengthSq() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.lengthSq(a, 2);\n assertTrue(Math.abs(result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.lengthSq(a2);\n assertTrue(Math.abs(result2-expect) < 1E-6f);\n }", "public boolean isValid(){\n\t\treturn points.size() >= 2;\n\t}", "public boolean equals(Vector3D v, Vector3D w) {\n double epsilon = 1e-9;\n return (Math.abs(v.xCoord - w.xCoord) < epsilon\n && Math.abs(v.yCoord - w.yCoord) < epsilon\n && Math.abs(v.zCoord - w.zCoord) < epsilon);\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isInvalid() {\n\t\treturn Double.isNaN(x) || Double.isNaN(y) || Double.isNaN(z);\n\t}", "void checkTriangleType() {\n\n int x = triangle.x;\n int y = triangle.y;\n int z = triangle.z;\n\n if (x <= 0 || y <= 0 || z <= 0) triangle.triangleType = TriangleType.INVALID; // INVALID\n else if (x >= y + z || z >= x + y || y >= x + z) triangle.triangleType = TriangleType.INVALID; // INVALID\n else if (x == y && y == z) triangle.triangleType = TriangleType.EQUILATERAL; // EQUILATERAL Case\n else if (x == y || y == z || x == z) triangle.triangleType = TriangleType.ISOSCELES; // ISOSCELES Case\n else triangle.triangleType = TriangleType.SCALENE; // SCALENE Case\n }", "@LargeTest\n public void testLevelsVec3Relaxed() {\n TestAction ta = new TestAction(TestName.LEVELS_VEC3_RELAXED);\n runTest(ta, TestName.LEVELS_VEC3_RELAXED.name());\n }", "@java.lang.Override\n public boolean hasVector2Value() {\n return typeCase_ == 6;\n }", "@Test\r\n\tpublic void testGetCMLVector3() {\r\n\t\tCMLVector3 v = lattice1.getCMLVector3(0);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\",\r\n\t\t\t\tnew double[] { 10.0, 6.0, 4.0 }, v, EPS);\r\n\t\tv = lattice1.getCMLVector3(1);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\",\r\n\t\t\t\tnew double[] { 7.0, 11.0, 5.0 }, v, EPS);\r\n\t\tv = lattice1.getCMLVector3(2);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\", new double[] { 6.8, -4.0,\r\n\t\t\t\t-9.0 }, v, EPS);\r\n\t}", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSTerm jSTerm1 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSTerm0.matches((JSPredicateForm) jSTerm1, jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n Vector<DBColumn> vector0 = new Vector<DBColumn>();\n // Undeclared exception!\n try { \n SQLUtil.renderColumnNames((List<DBColumn>) vector0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // Array index out of range: 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "boolean checkValidity(int side1, int side2, int side3);", "@Test\n public void decompositionShape() {\n checkDecomposition(5, 5 ,false);\n checkDecomposition(10, 5,false);\n checkDecomposition(5, 10,false);\n checkDecomposition(5, 5 ,true);\n checkDecomposition(10, 5,true);\n checkDecomposition(5, 10,true);\n }", "boolean canFormTriangle(double a, double b, double c) {\n return (a + b > c) && (a + c > b) && (b + c > a);\n }", "void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n Vector<DBColumn> vector0 = new Vector<DBColumn>();\n // Undeclared exception!\n try { \n SQLUtil.renderColumnNames((List<DBColumn>) vector0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // Array index out of range: 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "private Point2D.Double calcUnitVec(Point2D.Double vec)\n\t{\n\t\tdouble mag = Math.sqrt((vec.getX() * vec.getX()) + (vec.getY() * vec.getY()));\n\n\t\treturn new Point2D.Double((vec.getX() / mag), (vec.getY() / mag));\n\n\t}", "@Test\r\n\tpublic void testCMLLatticeCMLLatticeVectorCMLLatticeVectorCMLLatticeVector() {\r\n\t\tCMLLattice lattice = new CMLLattice(new CMLLatticeVector(new double[] {\r\n\t\t\t\t1., 2., 3. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 4., 5., 6. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 7., 8., 9. }));\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 1., 2., 3. },\r\n\t\t\t\tlattice.getCMLVector3(0), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 4., 5., 6. },\r\n\t\t\t\tlattice.getCMLVector3(1), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 7., 8., 9. },\r\n\t\t\t\tlattice.getCMLVector3(2), EPS);\r\n\t}", "boolean testDependence(DependenceVector dv);", "public Vector(double... elems) {\n\t\tthis(false, elems);\n\t}", "@Test\r\n public void test() {\r\n Random random = new Random(System.currentTimeMillis());\r\n Adouble val = Adouble.valueOf(10);\r\n validate(val);\r\n validateEqual(val, Adouble.valueOf(val.toDouble()));\r\n Adouble val2 = Adouble.valueOf(random.nextDouble());\r\n validate(val2);\r\n validateEqual(val2, Adouble.valueOf(val2.toDouble()));\r\n validateUnequal(val, val2);\r\n Alist list = new Alist().add(val);\r\n byte[] bytes = Aon.aonBytes(list);\r\n list = Aon.readAon(bytes).toList();\r\n validate(list.get(0));\r\n validateEqual(list.get(0), val);\r\n validateUnequal(list.get(0), val2);\r\n }", "@Test\n\tpublic void TEAM3_CONTROLLER_UT09() {\n\t\t// PRECONDITIONS\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>();\n\t\ta1.add(100);\n\t\ta1.add(200);\n\t\t\n\t\tArrayList<Integer> a2 = new ArrayList<Integer>();\n\t\ta2.add(150);\n\t\ta2.add(250);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<Collection<?>> doubleElementCollection = new Vector<Collection<?>>();\n\t\tdoubleElementCollection.add(a1);\n\t\tdoubleElementCollection.add(a2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tboolean sizeIsOne = smc.sizeIsOne(doubleElementCollection);\n\t\tassertFalse(sizeIsOne);\n\t}", "@Test\n\tvoid testCheckCoordinates3() {\n\t\tassertTrue(DataChecker.checkCoordinate(0));\n\t}", "private boolean checkConvexity()\r\n \t{\r\n\t\tswap(0, findLowest());\r\n\t\tArrays.sort(v, new Comparator() {\r\n\t\t\tpublic int compare(Object a, Object b)\r\n\t\t\t{\r\n\t\t\t\tint as = area_sign(v[0], (Pointd)a, (Pointd)b);\r\n\t\t\t\tif ( as > 0)\t\t/* left turn */\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if (as < 0)\t/* right turn */\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\telse \t\t\t\t\t/* collinear */\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble x = Math.abs(((Pointd)a).getx() - v[0].getx()) - Math.abs(((Pointd)b).getx() - v[0].getx());\r\n\t\t\t\t\tdouble y = Math.abs(((Pointd)a).gety() - v[0].gety()) - Math.abs(((Pointd)b).gety() - v[0].gety());\r\n\t\t\t\t\tif ( (x < 0) || (y < 0) )\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\telse if ( (x > 0) || (y > 0) )\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\telse\t\t// points are coincident\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n \t\tfor (int i=0; i < nv; i++)\r\n \t\t{\r\n \t\t\ti2 = next(i, nv);\r\n \t\t\ti3 = next(i2, nv);\r\n \t\t\tif ( !lefton(\tv[i], v[i2], v[i3]) )\r\n \t\t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n\t}", "public static boolean validateVariance(String city) {\n try {\n List<Double> web = getWebTempValues(city);\n List<Double> api = getAPITempValues();\n List<Double> variance = IntStream.range(0, web.size()).mapToObj(i -> web.get(i) - api.get(i)).collect(Collectors.toList());\n boolean flag = false;\n for (Double d : variance) {\n if (d > 0 && d < 1) flag = true;\n else throw new TemperatureDifferenceException(\"Temperature difference not within specified range\");\n }\n return flag;\n } catch (TemperatureDifferenceException e) {\n e.printStackTrace();\n return false;\n }\n }", "public static boolean closeToAnyOf(ArrayList<Vector> vectors, Vector v, double epsilon) {\r\n \r\n for(Vector w : vectors){ \r\n if( Vector.distanceSquared(v,w) < epsilon ){ return true; }\r\n }\r\n return false;\r\n }", "public Vector3 (double[] values) {\n set(values);\n }", "public static boolean check_scalene_triangle(int [] side) {\n\t\treturn !check_isosceles_tri(side) && !check_equ_tri(side) && isTri(side);\n\t}", "@Test\n public void epsilonEquals() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.epsilonEquals(a, 2, b, 3, 0.01f));\n assertTrue(! Vec4f.epsilonEquals(a, 0, b, 0, 0.01f));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.01f, 2.02f, 3.03f, 4.04f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.epsilonEquals(a4,b4, 0.05f));\n assertTrue(!Vec4f.epsilonEquals(a4,b4, 0.02f));\n assertTrue(!Vec4f.epsilonEquals(a4,c4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,d4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,e4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,f4, 0.1f));\n \n }", "public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }", "@Test\n public void testIsReversible_IDoubleArray_IDoubleArray()\n {\n IDoubleArray T = null;\n IDoubleArray pi = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isReversible(T, pi);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public boolean double23(int[] nums) {\n int numsLen = nums.length;\n if(numsLen == 2) {\n int n0 = nums[0];\n int n1 = nums[1];\n if((n0==2&&n1==2)||(n0==3&&n1==3)) {\n return true;\n }\n } else if(numsLen==1) {\n return false;\n }\n return false;\n }", "static boolean checkSplitsArray (double[][] splitsArray) { throw new RuntimeException(); }", "@Test(testName = \"VerificationCheckTriangleReturnedMessage\", dataProvider = \"verifyCheckTrianglePositiveTests\")\n public void verifyCheckTriangleReturnedMessage(ArrayList<Double> sides) {\n String excpected = \"\";\n Triangle triangle = new Triangle(sides.get(0), sides.get(1), sides.get(2));\n triangle.checkTriangle();\n assertEquals(triangle.getMessage(), excpected, \"method 'checkTriangle' returned wrong string message, sides: \" + sides);\n }", "@Test\n public void testIsReversible_IDoubleArray()\n {\n IDoubleArray T = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isReversible(T);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void perpVector3D() {\n\t\tVector3f v1 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\tVector3f v2 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\t\n\t\tdouble dotProduct = v1.dot(v2);\n\t\tdouble perpProduct = Math.abs(v1.perp(v2));\n\t\tdouble angle = v1.angle(v2);\n\t\t\n\t\tassertEpsilonEquals(Math.tan(angle),perpProduct/dotProduct);\n\t\t\n\t}", "public static Vector<Double> norm(Vector<Double> a) {\n\t\tdouble x = TransEInitializer.vec_len(a);\n\t\tif (x > 1){\n\t\t\t\n\t\t\tfor (int ii = 0; ii < a.size(); ii++)\n\t\t\t\ta.set(ii, a.get(ii) / x);\n\t\t\n\n\t\t}\n\n//\t\tif(x > 1)\n//\t\t\treturn true;\n//\t\treturn false;\n\t\treturn a;\n\t}", "public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }", "@Test\n public void test23() throws Throwable {\n double double0 = UnivariateRealSolverUtils.midpoint((-1052.8959089), (-1052.8959089));\n assertEquals((-1052.8959089), double0, 0.01D);\n }", "public boolean isDouble();", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "private final void verifyInnerValues(ComputationalBlock block, double[] expectedValues) {\n\t\tFieldIterator iterator = block.getInnerIterator();\n\t\tfor (int i=0; i<totalSize; i++) {\n\t\t\tassertEquals(expectedValues[i], iterator.currentValue(), 4*Math.ulp(expectedValues[i]));\n\t\t\titerator.next();\n\t\t}\n\t}", "@Test\n public void add() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a4, b4);\n //System.out.println(\"a=\"+Vec4f.toString(a, 2));\n assertTrue(Vec4f.epsilonEquals(a4,expect4, 1E-6f));\n }", "@LargeTest\n public void testLevelsVec4Relaxed() {\n TestAction ta = new TestAction(TestName.LEVELS_VEC4_RELAXED);\n runTest(ta, TestName.LEVELS_VEC4_RELAXED.name());\n }", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "public void testDoubleValue() {\n AtomicLong ai = new AtomicLong();\n assertEquals(0.0d, ai.doubleValue());\n for (long x : VALUES) {\n ai.set(x);\n assertEquals((double)x, ai.doubleValue());\n }\n }", "@Test\n\tprivate void checkPossibilityTest() {\n\t\tint[] input = new int[] {1,1,1};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {0,0,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {4,2,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {2,3,4,2,3};\n Assertions.assertThat(checkPossibility(input)).isFalse();\n\t}", "public static Vector listToVector(List<Double> list) {\n if (list.size() == 3) {\n return new Vector(list.get(0), list.get(1), list.get(2));\n }\n return new Vector(0, 0, 0);\n }", "@Test\n void getNormal() {\n Plane pl = new Plane(new Point3D(-1,2,1), new Point3D(0,-3,2), new Point3D(1,1,-4)\n );\n\n assertEquals(new Vector(26,7,9).normalize(),\n pl.getNormal(),\n \"Bad normal to trinagle\");\n\n }", "@Test\n public void test06() throws Throwable {\n double double0 = UnivariateRealSolverUtils.midpoint(0.0, 244.30128428311448);\n assertEquals(122.15064214155724, double0, 0.01D);\n }", "private boolean isVecInsideXZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "public void validateRpd16s3()\n {\n // This guideline cannot be automatically tested.\n }" ]
[ "0.73698986", "0.65002704", "0.64836854", "0.6288372", "0.62549114", "0.60916436", "0.6027132", "0.6017956", "0.59666765", "0.5961535", "0.5959933", "0.5929496", "0.59201646", "0.5908814", "0.5844376", "0.5827997", "0.57938397", "0.5786779", "0.5783172", "0.5748479", "0.5744914", "0.5727298", "0.5636592", "0.56240606", "0.5611348", "0.5609269", "0.56016266", "0.55997646", "0.55677193", "0.5561201", "0.55547863", "0.55155194", "0.55125016", "0.5503823", "0.5499175", "0.5476421", "0.54688066", "0.5467129", "0.5460559", "0.544734", "0.5446188", "0.54430515", "0.5443008", "0.5441932", "0.54396594", "0.543635", "0.5430493", "0.5429071", "0.5422134", "0.5410907", "0.5398613", "0.53977597", "0.53887343", "0.5378494", "0.5374093", "0.5370812", "0.5350981", "0.5345354", "0.5344694", "0.5329129", "0.53285605", "0.5327011", "0.53163534", "0.53124416", "0.5308677", "0.53072006", "0.52974844", "0.52944165", "0.5291815", "0.52779007", "0.52751607", "0.5273946", "0.5270494", "0.5258259", "0.52572834", "0.5251057", "0.52431846", "0.5239318", "0.5236933", "0.52231336", "0.5218122", "0.5209158", "0.5205598", "0.52008873", "0.51973784", "0.51968986", "0.51733196", "0.51695275", "0.51489294", "0.51451766", "0.51333535", "0.51328087", "0.51240957", "0.51084065", "0.51050484", "0.5093982", "0.5093924", "0.5090284", "0.5085085", "0.50844383", "0.5081148" ]
0.0
-1
=========================== additional constructors ======================== create from primitive components. this can be used with jumbo.euclid.Vector3.getArray()
public CMLVector3(double[] array) { this.setXYZ3(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\n\tVector3()\n\t{\n\t\tdata = new double[3];\n\t\tdata[0] = 0;\n\t\tdata[1] = 0;\n\t\tdata[2] = 0;\n\t}", "public Vector(float[] axis){ this.axis = axis;}", "public CMLVector3(CMLPoint3 p) {\r\n Vector3 v = new Vector3(p.getEuclidPoint3());\r\n this.setXYZ3(v.getArray());\r\n }", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public FloatVector3D(){}", "public Vec3(float[] init){\n\t\tif(init.length >= 3){\n\t\t\tx = init[0];\n\t\t\ty = init[1];\n\t\t\tz = init[2];\n\t\t\ttrunc();\n\t\t}\n\t}", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public\n\tVector3( Point3 point )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( point );\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public Vector3 (double[] values) {\n set(values);\n }", "public CMLVector3() {\r\n }", "public Cube() {\n\t\t// a float is 4 bytes, therefore we multiply the number if\n\t\t// vertices with 4.\n\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tvbb.order(ByteOrder.nativeOrder());\n\t\tvertexBuffer = vbb.asFloatBuffer();\n\t\tvertexBuffer.put(vertices);\n\t\tvertexBuffer.position(0);\n\t\t\n\t\t// Setup texture-coords-array buffer, in float. An float has 4 bytes (NEW)\n\t ByteBuffer tbb = ByteBuffer.allocateDirect(texCoords.length * 4);\n\t tbb.order(ByteOrder.nativeOrder());\n\t texBuffer = tbb.asFloatBuffer();\n\t texBuffer.put(texCoords);\n\t texBuffer.position(0);\n\t\t\n\t\t// short is 2 bytes, therefore we multiply the number if\n\t\t// vertices with 2.\n//\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);\n//\t\tibb.order(ByteOrder.nativeOrder());\n//\t\tindexBuffer = ibb.asShortBuffer();\n//\t\tindexBuffer.put(indices);\n//\t\tindexBuffer.position(0);\n\t}", "public Vector(double x, double y, double z) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { 1 }\n });\n }", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public SFVec3f(float t[]) {\n\t\tset(t);\n\t}", "public Vector3(NBTTagCompound nbt)\n {\n this(nbt.getDouble(\"x\"), nbt.getDouble(\"y\"), nbt.getDouble(\"z\"));\n }", "public Vector3 () {\n }", "public Vector3<T> build() {\n return new Vector3<>(x, y, z);\n }", "public\n\tVector3( Vector3 other )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( other );\n\t}", "public Matrix3f(float v[]) {\n\t\n \tthis.set(v);\n }", "public GObject(Point3D[] v, Face[] f)\n {\n\t this.vertex = v;\n\t this.face = f;\n }", "public Vector(double x, double y, double z, double w) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { w }\n });\n }", "public abstract Vector2[] getVertices();", "public ThreeVector(double v1,double v2,double v3) {\r\n\t\tthis.x=v1;\r\n\t\tthis.y=v2;\r\n\t\tthis.z=v3;\r\n\t}", "public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }", "public MAPPrimitive(MAPPrimitiveType type, int verticeCount) {\n this.type = type;\n this.vertices = new int[verticeCount];\n }", "private Vector3D(int x, int y, int z) {\n this(x, y, z, null);\n }", "public three_d_object(int ob_x, int ob_y, int ob_z, int new_ob_size, int new_ob_rotation_X,\n\t\t\t\t\tint new_ob_rotation_Y) {\n\t\t\t\tx = ob_x;\n\t\t\t\ty = ob_y;\n\t\t\t\tz = ob_z;\n\t\t\t\tob_size = new_ob_size;\n\t\t\t\trotation_X = new_ob_rotation_X;\n\t\t\t\trotation_Y = new_ob_rotation_Y;\n\n\t\t\t}", "public FloatVector3D(float[] f)\n {\n fx = f[0];\n fy = f[1];\n fz = f[2];\n setMagnitude();\n }", "public TriangleElt3D(Point3D[] points, ScalarOperator sop)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(points, sop);\n\t\tthis.eltZero = null;\n\t\tthis.eltOne = null;\n\t\tthis.eltTwo = null;\n\t}", "public Plane3(Plane3 p) {\n this.a = p.a; this.b = p.b; this.c = p.c; this.v = p.v; this.d = p.d;\n }", "public Vector3 (float x, float y, float z) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.z = z;\r\n\t}", "public Triangle(\n IPoint firstPoint,\n IPoint secondPoint,\n IPoint thirdPoint,\n IPrimitive parent)\n {\n super(parent);\n this.addVertex(firstPoint);\n this.addVertex(secondPoint);\n this.addVertex(thirdPoint);\n\n }", "public Vector3D() {\n zero();\n }", "@Override\n public void init(float[] data) {\n this.data = data;\n\n //\n shapeArr = new Rectangle2D.Float[data.length];\n colorArr = new Color[data.length];\n pointArr = new Point2D.Float[data.length];\n }", "public Vec3(float initializer){\n\t\tthis(initializer, initializer, initializer);\n\t}", "public ColladaFloatVector() {\n super();\n }", "private ClassReference(Primitive primitive, String className, int arrayDimension) {\n\t\tthis.primitive = primitive;\n\t\tthis.className = className;\n\t\tthis.arrayDimension = arrayDimension;\n\t}", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "public Vector3(double x, double y,double z){\n \n double pytago;\n \n this.x = x;\n this.y = y;\n this.z = z;\n \n pytago = (x*x) + (y*y) + (z*z);\n \n magnitude = Math.sqrt(pytago);\n }", "public Vector(int v1, int v2, int v3) {\n\t\tx = v1;\n\t\ty = v2;\n\t\tz = v3;\n\t}", "public Element(final int type, final int count, final int size, final int materialId, final int[][] inputs, final int handle, final float[][] values) {\n\t\t\t\t//android.util.Log.d(TAG+\".Geometry.Element\",\"NEW\");\n\t\t\t\tthis.type = type;\n\t\t\t\tthis.count = count;\n\t\t\t\tthis.size = size;\n\t\t\t\tthis.materialId = materialId;\n\t\t\t\tthis.inputs = inputs;\n\t\t\t\tthis.values = values;\n\t\t\t\tthis.handle = handle;\n\t\t\t\tfor(int[]input : inputs) this.stride += input[SIZE];\n\t\t\t\tthis.stride *= GlBuffer.SIZEOF_JAVA_FLOAT;\n\t\t\t}", "public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }", "public Vector(double x, double y, double z) {\n this(new Point3D(x, y, z));\n }", "PrimitiveType(String name) {\n\tthis.primitiveElem = new PrimitiveElem(name);\n\t\n }", "public Mesh(final float[] vertices) {\n vertexCount = vertices.length / COORDS_PER_VERTEX;\n vertexBuffer = Core.arrayAsBuffer(vertices);\n }", "public MeshLike() {\n this.vertices = new ArrayList<Vector3>();\n this.normals = new ArrayList<Vector3>();\n this.texCoords = new ArrayList<Vector2>();\n this.faces = new ArrayList<Face>();\n this.foundNormals = false;\n this.foundTexture = false;\n this.vOffset = 0;\n this.tOffset = 0;\n this.nOffset = 0;\n }", "public Vector3(double x, double y, double z) {\n this.x = x; this.y = y; this.z = z;\n }", "public Mesh(ArrayList<Vertex> inputVertices, ArrayList<Triangle> inputFaces) {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = inputVertices;\r\n tris = inputFaces;\r\n }", "public Triangle (double x1,double y1,double x2, double y2,double x3,double y3)\r\n {\r\n v1 = new Point(x1,y1);\r\n v2 = new Point(x2,y2);\r\n v3 = new Point(x3,y3);\r\n }", "public Vector(Coordinate x, Coordinate y, Coordinate z) {\n this(new Point3D(x, y, z));\n }", "public MutableArray(ARRAY paramARRAY, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 155 */ this.length = -1;\n/* 156 */ this.elements = null;\n/* 157 */ this.datums = null;\n/* 158 */ this.pickled = paramARRAY;\n/* 159 */ this.pickledCorrect = true;\n/* 160 */ this.sqlType = paramInt;\n/* 161 */ this.old_factory = paramCustomDatumFactory;\n/* 162 */ this.isNChar = false;\n/* */ }", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}", "public MutableArray(int paramInt, float[] paramArrayOfFloat, ORADataFactory paramORADataFactory)\n/* */ {\n/* 133 */ this.sqlType = paramInt;\n/* 134 */ this.factory = paramORADataFactory;\n/* 135 */ this.isNChar = false;\n/* */ \n/* 137 */ setArray(paramArrayOfFloat);\n/* */ }", "public Mesh() {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = new ArrayList<Vertex>();\r\n tris = new ArrayList<Triangle>();\r\n }", "public Vector3D(double x, double y, double z) {\r\n super(x, y, z);\r\n\t}", "public TriangleObject (double[][][] t) {\n\tfor (double[][] i: t) {\n Triangle in = new Triangle(i);\n\t\ttriangles.add(in); //You need to instantiate a new triangle to satsify this ^^\n\t}\n }", "@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }", "public Vector3 getEuclidVector3() {\r\n // does CMLVector contain array elements?\r\n return new Vector3(this.getXMLContent());\r\n }", "OfPrimitiveArray(Object value, int operand) {\n this.value = value;\n this.operand = operand;\n }", "godot.wire.Wire.Vector3OrBuilder getVector3ValueOrBuilder();", "public Vector3(double x, double y, double z)\n\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "private Primitive(String shape) {\n\t\t\tthis.shape = shape;\n\t\t}", "public static Vect3 mkXYZ(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public Vector3 (double x, double y, double z) {\n set(x, y, z);\n }", "protected OfNonPrimitiveArray(Object value, Class<?> componentType) {\n this.value = value;\n this.componentType = componentType;\n }", "public Polygon(float... xyArray)\n {\n points = floatArrayToPointList(xyArray);\n recenter();\n }", "public Triangle(float c0X, float c0Y, float c1X, float c1Y, float c2X, float c2Y, float r, float g, float b) {\n triangleCoords[0] = c0X;\n triangleCoords[1] = c0Y;\n triangleCoords[2] = 0;\n triangleCoords[3] = c1X;\n triangleCoords[4] = c1Y;\n triangleCoords[5] = 0;\n triangleCoords[6] = c2X;\n triangleCoords[7] = c2Y;\n triangleCoords[8] = 0;\n color[0] = r;\n color[1] = g;\n color[2] = b;\n centerX = (c0X+c1X) / 2.0f;\n centerY = (float)(c0Y - ((c1X-c0X)/(Math.sqrt(3)*2.0f)));\n\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n\n // The drawn object (This triangle) needs to claim shaders for vertex and fragment, so it can be drawn\n int vertexShader = MyGLRenderer.loadShader(GLES20.GL_VERTEX_SHADER,\n vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode);\n\n // create empty OpenGL ES Program ( = one openGL procedure responsible for drawing this shape)\n mProgram = GLES20.glCreateProgram();\n\n // add the vertex shader to program\n GLES20.glAttachShader(mProgram, vertexShader);\n\n // add the fragment shader to program\n GLES20.glAttachShader(mProgram, fragmentShader);\n\n // creates OpenGL ES program executables\n GLES20.glLinkProgram(mProgram);\n }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public TriangleElt3D(Point3D point1, Point3D point2, Point3D point3,\n\t\t\tScalarOperator sop) {\n\t\tthis(new Point3D[] { point1, point2, point3 }, sop);\n\t}", "public ColladaFloatVector(Collada collada) {\n super(collada);\n }", "public VectorFloat(int numElements) {\n this(numElements, new float[numElements]);\n }", "godot.wire.Wire.Vector3 getVector3Value();", "public Vector3 () {\r\n\t\tx = 0;\r\n\t\ty = 0;\r\n\t\tz = 0;\r\n\t}", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "public MutableArray(float[] paramArrayOfFloat, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 213 */ this.sqlType = paramInt;\n/* 214 */ this.old_factory = paramCustomDatumFactory;\n/* 215 */ this.isNChar = false;\n/* */ \n/* 217 */ setArray(paramArrayOfFloat);\n/* */ }", "public Mesh(Primitive shape) {\n\t\tswitch (shape) {\n\t\t\tcase CUBE:\n\t\t\t\tgenerateCube();\n\t\t\t\tbreak;\n\t\t\tcase CUBOID:\n\t\t\t\tgenerateCube();\n\t\t\t\tscale(2, 1, 1); // Stretch the cube along the x-axis to give a cuboid\n\t\t\t\tbreak;\n\t\t\tcase TRIANGULAR_PRISM:\n\t\t\t\tgeneratePrism();\n\t\t\t\tbreak;\n\t\t\tcase SPHERE:\n\t\t\t\tgenerateSphere();\n\t\t\t\tbreak;\n\t\t\tcase CONVEX_LENS:\n\t\t\t\tgenerateSphere();\n\t\t\t\tscale(0.6, 2, 2); // Increase the size (to allow a better demonstration of how the lens works) and then squash the sphere along the x-axis\n\t\t\t\tbreak;\n\t\t\tcase CONCAVE_LENS:\n\t\t\t\tgenerateSphere();\n\t\t\t\tscale(0.6, 2, 2); // Increase the size and squash along the x-axis\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\t\t\tif (verts[i].getElement(0) < -0.0001) { // Don't move points in the middle of the x-axis\n\t\t\t\t\t\tverts[i].setElement(0, verts[i].getElement(0) + 0.8); // Move points on the left to the right. This part still bulges out to the left, but when it is on the right it is concave\n\t\t\t\t\t} else if (verts[i].getElement(0) > 0.0001) {\n\t\t\t\t\t\tverts[i].setElement(0, verts[i].getElement(0) - 0.8); // Move points on the right to the left.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// The faces are 'inside out', so the ordering of the vertices must be reversed in order to make the normals point the correct way\n\t\t\t\tfor (int i = 0; i < faces.length; i++) {\n\t\t\t\t\t// Swap the first and last vertices (0 and 2)\n\t\t\t\t\tint temp = faces[i][0];\n\t\t\t\t\tfaces[i][0] = faces[i][2];\n\t\t\t\t\tfaces[i][2] = temp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase HALF_CYLINDER:\n\t\t\t\tgenerateHalfCylinder();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Mesh constructor cannot take a null primitive\");\n\t\t}\n\t\tnormals = new Vector[faces.length];\n\t\tds = new double[faces.length];\n\t\tfor (int i = 0; i < faces.length; i++) {\n\t\t\tnormals[i] = normal(faces[i]); // Calculate the normal for the face\n\t\t\tds[i] = verts[faces[i][0]].dotProduct(normals[i]); // Calculate the value of d for the face\n\t\t}\n\t\tcalcBoxVerts(); // Calculate and store the vertices of the AOBB\n\t}", "Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }", "public Vector3(double x, double y, double z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "protected abstract Object[] getComponents();", "private DataPrimitive(\n VariableName variableName,\n DataPurpose dataPurpose,\n DataValidator dataValidator,\n PrimitiveType primitiveType,\n Set<Annotation> annotations,\n DataObject dataObject) {\n super(\n DataPrimaryType.PRIMITIVE,\n variableName,\n dataPurpose,\n dataValidator,\n DataSourceType.DEFAULT);\n this.primitiveType = primitiveType;\n this.annotations = annotations;\n this.dataObject = dataObject;\n }", "public Point3(Point3 p) {\n this.x = p.x; this.y = p.y; this.z = p.z;\n }", "public Triangle() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n\n }", "protected AbstractMatrix3D() {}", "public Vector3D(float x, float y, float z)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.z = z;\r\n\t}", "public AbstractCube7Idx3D() {\n super(7, 8, 5 * 12, 5 * 5 * 6, 1);\n init();\n }", "public Vec3(float x, float y, float z){\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\ttrunc();\n\t}", "public BoundingBox3d() {\n reset();\n }", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public Triangle (int x, int y, int z){ \r\n \r\n \r\n }", "public NativePrimitiveArrayStateManagerImpl()\n {\n }", "public ImgMathVec(int x, int y) {\r\n\t\tv = new int[3];\r\n\t\tv[0] = x;\r\n\t\tv[1] = y;\r\n\t\tv[2] = 1;\r\n\t}", "public Vector330Class(){\n this.x = 0;\n this.y = 0;\n }", "public UniformVector() {\n super(3);\n this.min = new VectorN(3);\n this.max = new VectorN(1.0, 1.0, 1.0);\n this.idum = -1;\n this.rn = new RandomNumber(this.idum);\n fillVector();\n }", "private DataPrimitive(\n PrimitiveType primitiveType,\n VariableName variableName,\n Set<Annotation> annotations,\n DataPurpose dataPurpose,\n DataObject dataObject) {\n this(variableName, dataPurpose, DataValidator.empty(), primitiveType, annotations, dataObject);\n }", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "@Test\r\n\tpublic void testCMLLatticeCMLLatticeVectorArray() {\r\n\t\tCMLLattice lattice = new CMLLattice(new CMLLatticeVector[] {\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 1., 2., 3. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 4., 5., 6. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 7., 8., 9. }) });\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 1., 2., 3. },\r\n\t\t\t\tlattice.getCMLVector3(0), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 4., 5., 6. },\r\n\t\t\t\tlattice.getCMLVector3(1), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 7., 8., 9. },\r\n\t\t\t\tlattice.getCMLVector3(2), EPS);\r\n\t}" ]
[ "0.6069258", "0.5910019", "0.58891517", "0.58758354", "0.5861211", "0.5840451", "0.58260995", "0.5805349", "0.5795347", "0.5792357", "0.5746348", "0.56740016", "0.56358117", "0.56026983", "0.5593945", "0.5581845", "0.5555415", "0.55306345", "0.5507638", "0.55033255", "0.54966307", "0.54852194", "0.5441975", "0.54174876", "0.54001784", "0.53723073", "0.53674597", "0.5363134", "0.5321008", "0.5319764", "0.5261835", "0.5256067", "0.525438", "0.52536124", "0.52480686", "0.52457863", "0.524398", "0.52386093", "0.52353793", "0.52177745", "0.52128035", "0.5210671", "0.5194644", "0.51911277", "0.5185294", "0.5180717", "0.51804125", "0.51775473", "0.5158596", "0.51554275", "0.5149028", "0.5134384", "0.5118538", "0.5091249", "0.5084432", "0.50784415", "0.5063602", "0.50525755", "0.5051617", "0.50509703", "0.50504255", "0.5047715", "0.5045724", "0.50441486", "0.5040027", "0.5034406", "0.503131", "0.50215244", "0.5018703", "0.5013576", "0.5009893", "0.5007032", "0.5005787", "0.50036037", "0.49992144", "0.49949855", "0.499205", "0.49919888", "0.4989221", "0.49771345", "0.497207", "0.49704683", "0.49653193", "0.4964729", "0.49516368", "0.49509898", "0.49497822", "0.49462217", "0.49449652", "0.49409732", "0.4938428", "0.4937803", "0.49324235", "0.49296954", "0.49287623", "0.4927351", "0.49250722", "0.49221697", "0.49194667", "0.49144447" ]
0.6105072
0
create from origin to CMLPoint3. vector is from origin to point owning document is taken from CMLPoint3
public CMLVector3(CMLPoint3 p) { Vector3 v = new Vector3(p.getEuclidPoint3()); this.setXYZ3(v.getArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DVector3C getPosition();", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public CMLVector3() {\r\n }", "@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "void vectorFromWorld(double px, double py, double pz, DVector3 result);", "void vectorToWorld(double px, double py, double pz, DVector3 result);", "public abstract APoint3<DataType> newOffset(DataType x, DataType y, DataType z);", "public Vector3fc origin(Vector3f origin) {\n origin.x = cx;\n origin.y = cy;\n origin.z = cz;\n return origin;\n }", "public Point3D add (Vector v){\n Point3D p=new Point3D(x.coord+v._head.x.coord, y.coord+v._head.y.coord, z.coord+v._head.z.coord);\n return p;\n }", "public\n\tVector3( Point3 point )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( point );\n\t}", "public Point3(Point3 p) {\n this.x = p.x; this.y = p.y; this.z = p.z;\n }", "public Vector3d getOrigin() { return mOrigin; }", "void copyPosition (DVector3 pos);", "public Vec3D(Point3D point) {\n\t\tx = point.x;\n\t\ty = point.y;\n\t\tz = point.z;\n\t}", "@Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "void setPosition (DVector3C xyz);", "public Vector(Point3D p) {\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head = new Point3D(p);\n }", "public FloatVector3D(){}", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "godot.wire.Wire.Vector3 getOrigin();", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "void getPosRelPoint(double px, double py, double pz, DVector3 result);", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public Vector3 () {\r\n\t\tx = 0;\r\n\t\ty = 0;\r\n\t\tz = 0;\r\n\t}", "private Vector3d convertToModelAnswer()\r\n {\r\n GeographicPosition pos = (GeographicPosition)EasyMock.getCurrentArguments()[0];\r\n\r\n return pos.asVector3d();\r\n }", "@Override\r\n\tpublic WB_Normal3d addAndCopy(final WB_Point3d p) {\r\n\t\treturn new WB_Normal3d(x + p.x, y + p.y, z + p.z);\r\n\t}", "public Vector3D() {\n zero();\n }", "public Vector3D(Vector3D p1, Vector3D p2)\r\n\t{\r\n\t\tthis.x = p2.x - p1.x;\r\n\t\tthis.y = p2.y - p1.y;\r\n\t\tthis.z = p2.z - p1.z;\r\n\t}", "public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }", "protected abstract Vector3f place (Vector3f position);", "public ViewerPosition3D()\n {\n }", "public Vector subtract(Point3D p){\n// return new Vector(\n// p.x.coord- x.coord,\n// p.y.coord- y.coord,\n// p.z.coord- z.coord);\n return new Vector(\n x.coord- p.x.coord,\n y.coord- p.y.coord,\n z.coord- p.z.coord);\n }", "public static Vect3 makeXYZ(double x, String ux, double y, String uy, double z, String uz) {\n\t\treturn new Vect3(Units.from(ux,x),Units.from(uy,y),Units.from(uz,z));\n\t}", "godot.wire.Wire.Vector3OrBuilder getOriginOrBuilder();", "Position createPosition();", "public Point3D(Point3D point) {\n\t this.x = point.x;\n\t this.y = point.y;\n\t this.z = point.z;\n }", "public static Vect3 mkXYZ(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "void copyOffsetPosition (DVector3 pos);", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "void position(double x, double y, double z);", "public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}", "public Vector3<T> build() {\n return new Vector3<>(x, y, z);\n }", "public abstract Vector4fc set(float x, float y, float z, float w);", "public SbVec3f\ngetObjectPoint() {\n\treturn getObjectPoint(null);\n}", "public PointImpl( double x, double y, double z, CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl( x, y, z );\n empty = false;\n centroid = this;\n }", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);", "public Vector3 () {\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public Vector(Coordinate x, Coordinate y, Coordinate z) {\n this(new Point3D(x, y, z));\n }", "public abstract Vec2 startPosition();", "public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public Vector3 getEuclidVector3() {\r\n // does CMLVector contain array elements?\r\n return new Vector3(this.getXMLContent());\r\n }", "public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}", "public three_d_object(int ob_x, int ob_y, int ob_z, int new_ob_size, int new_ob_rotation_X,\n\t\t\t\t\tint new_ob_rotation_Y) {\n\t\t\t\tx = ob_x;\n\t\t\t\ty = ob_y;\n\t\t\t\tz = ob_z;\n\t\t\t\tob_size = new_ob_size;\n\t\t\t\trotation_X = new_ob_rotation_X;\n\t\t\t\trotation_Y = new_ob_rotation_Y;\n\n\t\t\t}", "public Point3 add(Vector3 v) {\n Point3 p = new Point3(x + v.x, y + v.y, z + v.z);\n return p;\n }", "@Override\n public Point addVector(Vector3 vector) {\n this.x += vector.x;\n this.y += vector.y;\n setHeight(getHeight()+ vector.z);\n return this;\n }", "public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}", "Point createPoint();", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "abstract void setOrigin(double x, double y, double z);", "public Vector3f getPoint(float t) {\r\n\t\tVector3f point = new Vector3f();\r\n\t\tpoint.scaleAdd(t, mDirection, mOrigin);\r\n\t\treturn point;\r\n\t}", "public Vector3D transform(Vector3D vector) {\n\t\tdouble x = vector.x;\n\t\tdouble y = vector.y;\n\t\tdouble z = vector.z;\n\t\t\n\t\treturn new Vector3D(a11*x + a12*y + a13*z + a14, \n\t\t\t\t\t\t a21*x + a22*y + a23*z + a24,\n\t\t\t\t\t\t a31*x + a32*y + a33*z + a34);\n\t}", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public abstract Vector3 directionFrom(Point3 point);", "public Vec3(float x, float y, float z){\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\ttrunc();\n\t}", "synchronized public VectorString3D asVectorString3D() {\n \t\t// local pointers, since they may be transformed\n \t\tint n_points = this.n_points;\n \t\tdouble[][] p = this.p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Object[] ob = getTransformedData();\n \t\t\tp = (double[][])ob[0];\n \t\t\tn_points = p[0].length;\n \t\t}\n \t\tdouble[] z_values = new double[n_points];\n \t\tfor (int i=0; i<n_points; i++) {\n \t\t\tz_values[i] = layer_set.getLayer(p_layer[i]).getZ();\n \t\t}\n \n \t\tfinal double[] px = p[0];\n \t\tfinal double[] py = p[1];\n \t\tfinal double[] pz = z_values;\n \t\tVectorString3D vs = null;\n \t\ttry {\n \t\t\tvs = new VectorString3D(px, py, pz, false);\n \t\t} catch (Exception e) { IJError.print(e); }\n \t\treturn vs;\n \t}", "public Point3(double x_, double y_, double z_) {\n x = x_; y = y_; z = z_;\n }", "public Vector(double x, double y, double z) {\n this(new Point3D(x, y, z));\n }", "public Vector3()\n\t{\n\t\tx = y = z = 0;\n\t}", "public Vector3(double x, double y, double z) {\n this.x = x; this.y = y; this.z = z;\n }", "public Vector(Point point) {\n\t\tthis(point.x, point.y);\n\t}", "final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }", "public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }", "Vaisseau_occupeLaPosition createVaisseau_occupeLaPosition();", "public void createCoord( CFWPoint poiCtI, CFWVector vecLookAtI)\t{\r\n\t\tm_poiCenter\t= poiCtI;\r\n\t\tvecLookAtI.nor();\r\n\t\t//look to the top\r\n\t\tCFWVector vecUp = new CFWVector();\r\n\t\tif(vecLookAtI.m_fY == 1.0f && vecLookAtI.m_fX == 0.0f && vecLookAtI.m_fZ == 0.0f)\r\n\t\t\tvecUp.m_fZ\t= 1.0f;\r\n\t\telse\r\n\t\t\tvecUp.m_fY\t= 1.0f;\r\n\t\t//\n\t\tCFWVector vecRight\t= vecLookAtI.cross(vecUp);\r\n\t\tm_vecAxis[0] = vecRight;\r\n\t\tm_vecAxis[1] = vecRight.cross(vecLookAtI);\r\n\t\tm_vecAxis[2] = vecLookAtI;\r\n\t\t\r\n\t\tm_bLeftH = true;\r\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public Point3 getPoint(int pointNr);", "private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}", "public Vector2f getPosition() { return new Vector2f(centroid_pos); }", "public Vector3 (float x, float y, float z) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.z = z;\r\n\t}", "public Vec3D(Vec3D vec) {\n\t\tx = vec.x;\n\t\ty = vec.y;\n\t\tz = vec.z;\n\t}", "Vector getPos();", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "public PointImpl( CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl();\n empty = true;\n centroid = this;\n }", "public Vector3 (double x, double y, double z) {\n set(x, y, z);\n }", "public Vector2D getPosition ();", "public Point3 sub(Vector3 v) {\n Point3 p = new Point3(x - v.x, y - v.y, z - v.z);\n return p;\n }", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "Coordinate createCoordinate();", "public GeoPoint(Geometry geometry, Point3D point) {\n\tsuper();\n\tthis.geometry = geometry;\n\tthis.point = point;\n}", "public Point project() {\n Point tempPoint = new Point();\n double newAngle = movement.project(angle);\n tempPoint.x = (int)(length * Math.sin(newAngle));\n tempPoint.y = (int)(length * Math.cos(newAngle));\n return tempPoint;\n }", "public Vect3(double xx, double yy, double zz) {\n\t\tx = xx;\n\t\ty = yy;\n\t\tz = zz;\n\t}", "private Vector3D(int x, int y, int z) {\n this(x, y, z, null);\n }", "DVector3C getOffsetPosition();", "public Point3 add(Point3 p) {\n Point3 res = new Point3(x + p.x, y + p.y, z + p.z);\n return res;\n }" ]
[ "0.66551584", "0.65203714", "0.6447537", "0.639135", "0.6306199", "0.6248825", "0.6248198", "0.6217993", "0.6209205", "0.61923736", "0.61747295", "0.61492246", "0.6140567", "0.612573", "0.6123914", "0.60971165", "0.6056647", "0.60490817", "0.60383016", "0.602629", "0.6020597", "0.5975534", "0.59462327", "0.5945442", "0.59431213", "0.5930578", "0.5918447", "0.59134823", "0.5909357", "0.58970565", "0.5872236", "0.58590823", "0.58507997", "0.5832182", "0.58144045", "0.5814123", "0.58085185", "0.58035195", "0.580155", "0.5798526", "0.5798108", "0.5787603", "0.5785237", "0.5782044", "0.5779314", "0.57484144", "0.5736101", "0.5728477", "0.57276535", "0.5726071", "0.5725769", "0.5721693", "0.5716883", "0.5715455", "0.5701592", "0.57015234", "0.56991035", "0.56936586", "0.56853724", "0.5667494", "0.5667044", "0.56620497", "0.56610316", "0.5657354", "0.56384337", "0.563759", "0.56277996", "0.5626319", "0.5622978", "0.56148183", "0.56143266", "0.5612621", "0.56105787", "0.56077105", "0.5606722", "0.5604445", "0.5604373", "0.5602935", "0.5596216", "0.55912846", "0.5591199", "0.55846506", "0.5580974", "0.5580487", "0.5575002", "0.5573985", "0.5563017", "0.5560842", "0.55605227", "0.55541664", "0.55518395", "0.55505544", "0.55461997", "0.5543151", "0.55363303", "0.5530964", "0.5528896", "0.5526228", "0.55257297", "0.55129844" ]
0.6788679
0
assumes vector3 != null get euclid primitive.
public Vector3 getEuclidVector3() { // does CMLVector contain array elements? return new Vector3(this.getXMLContent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IVec3 div(IVec3 v);", "public CMLVector3 subtract(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.subtract(v3\r\n .getEuclidVector3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", "private static BigInteger extEuclid(BigInteger a, BigInteger b, BigInteger u1Out,\n BigInteger u2Out)\n {\n BigInteger u1 = BigInteger.ONE;\n BigInteger u3 = a;\n BigInteger v1 = BigInteger.ZERO;\n BigInteger v3 = b;\n\n while (v3.sign > 0)\n {\n BigInteger[] q = u3.divideAndRemainder(v3);\n\n BigInteger tn = u1.subtract(v1.multiply(q[0]));\n u1 = v1;\n v1 = tn;\n\n u3 = v3;\n v3 = q[1];\n }\n\n if (u1Out != null)\n {\n u1Out.sign = u1.sign;\n u1Out.magnitude = u1.magnitude;\n }\n\n if (u2Out != null)\n {\n BigInteger res = u3.subtract(u1.multiply(a)).divide(b);\n u2Out.sign = res.sign;\n u2Out.magnitude = res.magnitude;\n }\n\n return u3;\n }", "public CMLVector3 transform(CMLTransform3 t) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.transform(t\r\n .getEuclidTransform3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", "@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}", "public double getScalarTripleProduct(CMLVector3 v2, CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? null : veucl3.getScalarTripleProduct(v2\r\n .getEuclidVector3(), v3.getEuclidVector3());\r\n }", "public CMLVector3 plus(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3\r\n .plus(v3.getEuclidVector3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", "static PointDouble circumCircle(PointDouble p1, PointDouble p2, PointDouble p3) {\n // if points are collinear, triangle is degenerate => no circumcircle center\n if (collinear(p1, p2, p3)) return null;\n\n // computation\n double a = p2.x - p1.x, b = p2.y - p1.y;\n double c = p3.x - p1.x, d = p3.y - p1.y;\n double e = a * (p1.x + p2.x) + b * (p1.y + p2.y);\n double f = c * (p1.x + p3.x) + d * (p1.y + p3.y);\n double g = 2.0 * (a * (p3.y - p2.y) - b * (p3.x - p2.x));\n\n PointDouble ctr = new PointDouble();\n ctr.x = (d*e - b*f) / g;\n ctr.y = (a*f - c*e) / g;\n return ctr;\n }", "godot.wire.Wire.Vector3 getVector3Value();", "public double dot(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? Double.NaN : veucl3\r\n .dot(v3.getEuclidVector3());\r\n }", "@Test\r\n\tpublic void testGetCMLVector3() {\r\n\t\tCMLVector3 v = lattice1.getCMLVector3(0);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\",\r\n\t\t\t\tnew double[] { 10.0, 6.0, 4.0 }, v, EPS);\r\n\t\tv = lattice1.getCMLVector3(1);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\",\r\n\t\t\t\tnew double[] { 7.0, 11.0, 5.0 }, v, EPS);\r\n\t\tv = lattice1.getCMLVector3(2);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\", new double[] { 6.8, -4.0,\r\n\t\t\t\t-9.0 }, v, EPS);\r\n\t}", "public java.lang.Long getC3()\n {\n return this.c3;\n }", "godot.wire.Wire.Vector3OrBuilder getVector3ValueOrBuilder();", "UclidPackage getUclidPackage();", "boolean hasVector3Value();", "IVec3 sum(IVec3 v);", "public CMLVector3 getNonColinearVector() {\r\n Vector3 v = this.getEuclidVector3().getNonColinearVector();\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", "java.lang.String getC3();", "@Override\r\n\tpublic vec3 div(float var) {\n\t\treturn null;\r\n\t}", "int getDegree(V v);", "private double threeDimensionalSolveQ2(RealMatrix u, RealMatrix v, double q3) {\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (-v2/u22) - ((u23/u22)*q3);\r\n }", "public float calculateCelestialAngle(long par1, float par3) {\n\t\treturn 0.0F;\n\t}", "public Vector3D() {\n zero();\n }", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "public double getConc(Vector3d v) {\r\n\t\tint[] b = boxCoords(v);\r\n\t\treturn getConc(b[0],b[1],b[2]);\r\n\t}", "public CMLVector3() {\r\n }", "public float calculateCelestialAngle(long par1, float par3)\n {\n return 0.5F;\n }", "public Point3D getC() {\r\n return c;\r\n }", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);", "public static BoundingBox calculateBoundingBox(Vector3D[] paramArrayOfVector3D)\r\n/* 13: */ {\r\n/* 14: 9 */ Vector3D localVector3D1 = new Vector3D();\r\n/* 15: 10 */ for (int i = 0; i < paramArrayOfVector3D.length; i++)\r\n/* 16: */ {\r\n/* 17: 12 */ localVector3D1.x += paramArrayOfVector3D[i].x;\r\n/* 18: 13 */ localVector3D1.y += paramArrayOfVector3D[i].y;\r\n/* 19: 14 */ localVector3D1.z += paramArrayOfVector3D[i].z;\r\n/* 20: */ }\r\n/* 21: 16 */ localVector3D1.x /= paramArrayOfVector3D.length;\r\n/* 22: 17 */ localVector3D1.y /= paramArrayOfVector3D.length;\r\n/* 23: 18 */ localVector3D1.z /= paramArrayOfVector3D.length;\r\n/* 24: 19 */ float[][] arrayOfFloat = new float[3][3];\r\n/* 25: 20 */ for (int j = 0; j < paramArrayOfVector3D.length; j++)\r\n/* 26: */ {\r\n/* 27: 22 */ float f1 = paramArrayOfVector3D[j].x - localVector3D1.x;\r\n/* 28: 23 */ float f2 = paramArrayOfVector3D[j].y - localVector3D1.y;\r\n/* 29: 24 */ float f3 = paramArrayOfVector3D[j].z - localVector3D1.z;\r\n/* 30: 25 */ arrayOfFloat[0][0] += f1 * f1;\r\n/* 31: 26 */ arrayOfFloat[1][1] += f2 * f2;\r\n/* 32: 27 */ arrayOfFloat[2][2] += f3 * f3;\r\n/* 33: 28 */ arrayOfFloat[0][1] += f1 * f2;\r\n/* 34: 29 */ arrayOfFloat[0][2] += f1 * f3;\r\n/* 35: 30 */ arrayOfFloat[1][2] += f2 * f3;\r\n/* 36: */ }\r\n/* 37: 32 */ arrayOfFloat[1][2] /= paramArrayOfVector3D.length;\r\n/* 38: 33 */ arrayOfFloat[2][1] = arrayOfFloat[1][2];\r\n/* 39: 34 */ arrayOfFloat[0][2] /= paramArrayOfVector3D.length;\r\n/* 40: 35 */ arrayOfFloat[2][0] = arrayOfFloat[0][2];\r\n/* 41: 36 */ arrayOfFloat[0][1] /= paramArrayOfVector3D.length;\r\n/* 42: 37 */ arrayOfFloat[1][0] = arrayOfFloat[0][1];\r\n/* 43: 38 */ arrayOfFloat[1][1] /= paramArrayOfVector3D.length;\r\n/* 44: 39 */ arrayOfFloat[2][2] /= paramArrayOfVector3D.length;\r\n/* 45: 40 */ arrayOfFloat[0][0] /= paramArrayOfVector3D.length;\r\n/* 46: 41 */ System.out.println(arrayOfFloat[0][0] + \"\\t\" + arrayOfFloat[0][1] + \"\\t\" + arrayOfFloat[0][2] + \"\\t\");\r\n/* 47: 42 */ System.out.println(arrayOfFloat[1][0] + \"\\t\" + arrayOfFloat[1][1] + \"\\t\" + arrayOfFloat[1][2] + \"\\t\");\r\n/* 48: 43 */ System.out.println(arrayOfFloat[2][0] + \"\\t\" + arrayOfFloat[2][1] + \"\\t\" + arrayOfFloat[2][2] + \"\\t\");\r\n/* 49: 44 */ double[][] arrayOfDouble1 = new double[3][3];\r\n/* 50: 45 */ for (int k = 0; k < 3; k++) {\r\n/* 51: 47 */ for (int m = 0; m < 3; m++) {\r\n/* 52: 49 */ arrayOfDouble1[k][m] = arrayOfFloat[k][m];\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55: 52 */ Matrix localMatrix1 = new Matrix(arrayOfDouble1);\r\n/* 56: 53 */ EigenvalueDecomposition localEigenvalueDecomposition = localMatrix1.eig();\r\n/* 57: 54 */ Matrix localMatrix2 = localEigenvalueDecomposition.getV();\r\n/* 58: 55 */ double[][] arrayOfDouble2 = localMatrix2.getArray();\r\n/* 59: 56 */ Vector3D localVector3D2 = new Vector3D((float)arrayOfDouble2[0][0], (float)arrayOfDouble2[1][0], (float)arrayOfDouble2[2][0]);\r\n/* 60: 57 */ Vector3D localVector3D3 = new Vector3D(-(float)arrayOfDouble2[0][1], -(float)arrayOfDouble2[1][1], -(float)arrayOfDouble2[2][1]);\r\n/* 61: 58 */ Vector3D localVector3D4 = new Vector3D(-(float)arrayOfDouble2[0][2], -(float)arrayOfDouble2[1][2], -(float)arrayOfDouble2[2][2]);\r\n/* 62: 59 */ System.out.println(\"r=\" + localVector3D4);\r\n/* 63: 60 */ System.out.println(\"s=\" + localVector3D3);\r\n/* 64: 61 */ System.out.println(\"t=\" + localVector3D2);\r\n/* 65: 62 */ float f4 = 0.0F;\r\n/* 66: 63 */ float f5 = 0.0F;\r\n/* 67: 64 */ float f6 = 0.0F;\r\n/* 68: 65 */ float f7 = 0.0F;\r\n/* 69: 66 */ float f8 = 0.0F;\r\n/* 70: 67 */ float f9 = 0.0F;\r\n/* 71: 68 */ for (int n = 0; n < paramArrayOfVector3D.length; n++)\r\n/* 72: */ {\r\n/* 73: 70 */ float f10 = paramArrayOfVector3D[n].dotProduct(localVector3D4);\r\n/* 74: 71 */ float f11 = paramArrayOfVector3D[n].dotProduct(localVector3D4);\r\n/* 75: 72 */ float f12 = paramArrayOfVector3D[n].dotProduct(localVector3D4);\r\n/* 76: 73 */ f4 = Math.min(f4, f10);\r\n/* 77: 74 */ f5 = Math.min(f5, f11);\r\n/* 78: 75 */ f6 = Math.min(f6, f12);\r\n/* 79: 76 */ f7 = Math.max(f7, f10);\r\n/* 80: 77 */ f8 = Math.max(f8, f11);\r\n/* 81: 78 */ f9 = Math.max(f9, f12);\r\n/* 82: */ }\r\n/* 83: 80 */ float[] arrayOfFloat1 = { localVector3D4.x, localVector3D4.y, localVector3D4.z, -f4 };\r\n/* 84: 81 */ float[] arrayOfFloat2 = { -localVector3D4.x, -localVector3D4.y, -localVector3D4.z, f7 };\r\n/* 85: 82 */ float[] arrayOfFloat3 = { localVector3D2.x, localVector3D2.y, localVector3D2.z, -f6 };\r\n/* 86: 83 */ float[] arrayOfFloat4 = { -localVector3D2.x, -localVector3D2.y, -localVector3D2.z, f9 };\r\n/* 87: 84 */ float[] arrayOfFloat5 = { localVector3D3.x, localVector3D3.y, localVector3D3.z, -f5 };\r\n/* 88: 85 */ float[] arrayOfFloat6 = { -localVector3D3.x, -localVector3D3.y, -localVector3D3.z, f8 };\r\n/* 89: 86 */ return new BoundingBox(arrayOfFloat1, arrayOfFloat2, arrayOfFloat3, arrayOfFloat4, arrayOfFloat5, arrayOfFloat6);\r\n/* 90: */ }", "public VDouble getC() {\r\n return c;\r\n }", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public abstract Vector4fc normalize3();", "public abstract Point_3 evaluate(double u, double v);", "@Override\n\tpublic float calculateCelestialAngle(long par1, float par3) {\n\t\treturn 2.0F;\n\t}", "@Override\n\tpublic EuclidianView3D getEuclidianView3D() {\n\t\tif (this.euclidianView3D == null) {\n\t\t\tinitEuclidianController3D();\n\t\t\tif (euclidianController3D.hasInput3D()) {\n\t\t\t\teuclidianView3D = new EuclidianViewInput3D(\n\t\t\t\t\t\teuclidianController3D, getSettings().getEuclidian(3));\n\t\t\t} else {\n\t\t\t\teuclidianView3D = new EuclidianView3DD(euclidianController3D,\n\t\t\t\t\t\tgetSettings().getEuclidian(3));\n\t\t\t}\n\t\t}\n\t\treturn euclidianView3D;\n\t}", "private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }", "float dot(IVec3 v);", "public abstract Vector computeCenter();", "public static double inCenterRadius(Vector2d v1, Vector2d v2, Vector2d v3){\n\n double area = triangleArea(v1, v2, v3);\n double perimeter = trianglePerimeter(v1, v2, v3);\n\n return 2 * (triangleArea(v1, v2, v3) / trianglePerimeter(v1, v2, v3));\n\n }", "public double perimeter ()\r\n {\r\n return v1.distanceTo(v2)+v2.distanceTo(v3)+v3.distanceTo(v1);\r\n }", "public abstract Vector4fc div(float x, float y, float z, float w);", "public Vec3d method_2833() {\n return this.field_1649;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getVector3Value() {\n if (vector3ValueBuilder_ == null) {\n if (typeCase_ == 8) {\n return (godot.wire.Wire.Vector3) type_;\n }\n return godot.wire.Wire.Vector3.getDefaultInstance();\n } else {\n if (typeCase_ == 8) {\n return vector3ValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Vector3.getDefaultInstance();\n }\n }", "public Vector subtract(Point3D p){\n// return new Vector(\n// p.x.coord- x.coord,\n// p.y.coord- y.coord,\n// p.z.coord- z.coord);\n return new Vector(\n x.coord- p.x.coord,\n y.coord- p.y.coord,\n z.coord- p.z.coord);\n }", "public static double euclidDist(Point p1, Point p2) {\r\n\t\tvar p1Lat = p1.latitude();\r\n\t\tvar p1Lon = p1.longitude();\r\n\t\tvar p2Lat = p2.latitude();\r\n\t\tvar p2Lon = p2.longitude();\r\n\t\tvar dist = Math.sqrt( ((p1Lat-p2Lat)*(p1Lat-p2Lat)) + ((p1Lon-p2Lon)*(p1Lon-p2Lon)) );\r\n\t\treturn dist;\r\n\t}", "static PointDouble incircleCenter(PointDouble p1, PointDouble p2, PointDouble p3) {\n // if points are collinear, triangle is degenerate => no incircle center\n if (collinear(p1, p2, p3)) return null;\n\n // Compute the angle bisectors in l1, l2\n double ratio = dist(p1, p2) / dist(p1, p3);\n PointDouble p = translate(p2, scale(vector(p2, p3), ratio / (1 + ratio)));\n Line l1 = pointsToLine(p1, p);\n\n ratio = dist(p2, p1) / dist(p2, p3);\n p = translate(p1, scale(vector(p1, p3), ratio / (1 + ratio)));\n Line l2 = pointsToLine(p2, p);\n\n // Return the intersection of the bisectors\n return intersection(l1, l2);\n }", "public CvssV30 getCvssV3() {\n return cvssV3;\n }", "public FloatVector3D(){}", "@Override\n\tpublic boolean isEuclidianView3D(EuclidianViewInterfaceCommon view) {\n\t\t// euclidianView3D might be null\n\t\treturn view != null && view == euclidianView3D;\n\t}", "abstract double getOrgZ();", "public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }", "public float getMaxCY3();", "private double produitVectoriel(Point2D p1,Point2D p2, Point2D p3, Point2D p4) {\n double xv1 = p2.getX() - p1.getX();\n double xv2 = p4.getX() - p3.getX();\n double yv1 = p2.getY() - p1.getY();\n double yv2 = p4.getY() - p3.getY();\n\n return (xv1 * yv2) - (xv2 * yv1);\n }", "com.google.protobuf.ByteString\n getC3Bytes();", "int getLngE6();", "int getLngE6();", "public Vector getL(Point3D p){\n if (p.equals(_position)) {\n return null;\n }\n return p.subtract(_position).normalize();\n }", "public abstract Vector4fc div(IVector4f v);", "double getVz() { return vel[2]; }", "public abstract Vector2 getCentreOfMass();", "public E3DVector2F getTextureCoordC(){\r\n return vertices[2].getTextureCoord();\r\n }", "IVec3 sub(IVec3 v);", "@java.lang.Override\n public godot.wire.Wire.Vector3OrBuilder getVector3ValueOrBuilder() {\n if (typeCase_ == 8) {\n return (godot.wire.Wire.Vector3) type_;\n }\n return godot.wire.Wire.Vector3.getDefaultInstance();\n }", "public double getPositionToP3()\r\n\t{\r\n\t\tdouble max = 0;\r\n\t\tfor(Unit u : units)\r\n\t\t{\r\n\t\t\tif(u instanceof Gate)\r\n\t\t\t\tcontinue;\r\n\t\t\tdouble d = u.getPositionAlongCurve() + u.getRadius()/owner.getLength();\r\n\t\t\tif(d > max)\r\n\t\t\t\tmax = d;\r\n\t\t}\r\n\t\tif(max < 0)\r\n\t\t\tmax = 0;\r\n\t\tif(max > 1)\r\n\t\t\tmax = 1;\r\n\t\treturn 1 - max;\r\n\t}", "@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getVector3Value() {\n if (typeCase_ == 8) {\n return (godot.wire.Wire.Vector3) type_;\n }\n return godot.wire.Wire.Vector3.getDefaultInstance();\n }", "public double getSolutionX3() {\n this.polySolve();\n if (this.degree < 3) {\n return 0010;\n } else {\n if (this.real) {\n return this.x3;\n } else {\n return 0010;\n }\n }\n }", "public IPoint getThirdPoint()\n {\n\n Set<IPoint> vertices = this.getVertices();\n Object[] verticesArray = vertices.toArray();\n IPoint thirdPoint = (IPoint)verticesArray[2];\n\n return thirdPoint;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3OrBuilder getVector3ValueOrBuilder() {\n if ((typeCase_ == 8) && (vector3ValueBuilder_ != null)) {\n return vector3ValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 8) {\n return (godot.wire.Wire.Vector3) type_;\n }\n return godot.wire.Wire.Vector3.getDefaultInstance();\n }\n }", "public Position coord3dToGeoCoord(Point3D p) {\n double lat_cor = java.lang.Math.toDegrees(java.lang.Math.asin(-p.getY()));\n float lat = (float)lat_cor - TEXTURE_LAT_OFFSET;\n\n // First case issue: longitude between 0° and 180° => half the globe\n double lon_cor = java.lang.Math.toDegrees(java.lang.Math.acos(p.getZ()\n / java.lang.Math.cos(java.lang.Math.asin(-p.getY()))));\n\n // Second case issue: longitude between -90° and 90° => half the globe too\n //double lon_cor = java.lang.Math.toDegrees(java.lang.Math.asin(-p.getX()\n // / java.lang.Math.cos(java.lang.Math.asin(-p.getY()))));\n\n float lon = (float)lon_cor - TEXTURE_LON_OFFSET;\n\n return new Position(lat, lon);\n }", "private Vector3d convertToModelAnswer()\r\n {\r\n GeographicPosition pos = (GeographicPosition)EasyMock.getCurrentArguments()[0];\r\n\r\n return pos.asVector3d();\r\n }", "public Angle getAngleMadeWith(CMLVector3 v2) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? null : veucl3.getAngleMadeWith(v2\r\n .getEuclidVector3());\r\n }", "double getside3(){\n\t\treturn side3;\n\t}", "public Vector3 () {\n }", "public vy e(int paramInt1, int paramInt2, int paramInt3)\n/* */ {\n/* 186 */ if (this.d.e(paramInt1, paramInt2, paramInt3) > this.e * this.e) return null;\n/* 187 */ vy localvy; for (Iterator localIterator = this.b.iterator(); localIterator.hasNext(); \n/* 188 */ return localvy)\n/* */ {\n/* 187 */ localvy = (vy)localIterator.next();\n/* 188 */ if ((localvy.a != paramInt1) || (localvy.c != paramInt3) || (Math.abs(localvy.b - paramInt2) > 1)) {} }\n/* 189 */ return null;\n/* */ }", "public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }", "private double calculateUvi(){\n if ( uva != Integer.MAX_VALUE\n && uvb != Integer.MAX_VALUE\n && uvd != Integer.MAX_VALUE\n && uvcomp1 != Integer.MAX_VALUE\n && uvcomp2 != Integer.MAX_VALUE\n )\n {\n // These equations came from the \"Designing the VEML6075 into an Application\" document from Vishay\n double uvacomp = (uva - uvd) - VEML_A_COEF * (uvcomp1 - uvd) - VEML_B_COEF * (uvcomp2 - uvd);\n double uvbcomp = (uvb - uvd) - VEML_C_COEF * (uvcomp1 - uvd) - VEML_D_COEF * (uvcomp2 - uvd);\n\n return ( (uvbcomp * VEML_UVB_RESP) + (uvacomp * VEML_UVA_RESP) ) / 2.0;\n }\n\n return Double.NaN;\n }", "public int getDegree(int v);", "public double det2D(Vect3 v) {\n\t\treturn x*v.y - y*v.x;\n\t}", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "PVector _getCenter() {\n PVector cen = new PVector(_hitboxCenter.x, _hitboxCenter.y);\n cen.rotate(_rotVector.heading() - _front);\n cen.x += _x;\n cen.y += _y;\n return cen;\n }", "final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }", "public double distanceV(Vect3 w) {\n\t\treturn z - w.z;\n\t}", "godot.wire.Wire.Vector3OrBuilder getZOrBuilder();", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "public void testComplex2() {\n Scalar scalar = GCD.of(ComplexScalar.of(9, 3), ComplexScalar.of(123, 9));\n assertEquals(scalar, ComplexScalar.of(-3, 3));\n }", "private static double ct(double W, double Vr, double V){\n\t\t/*\n\t\t//declaring constants\n\t\tdouble A0 = 0.5766; \n\t\tdouble A1 = 1.9169;\n\t\tdouble A2 = -1.0712;\n\t\tdouble A3 = 1.6898;\n\t\t\n\t\tdouble aW = a/W;\n\t\tdouble Eqn1 = A0 + (A1*aW) + (A2*(aW*aW)) + (A3*(aW*aW*aW));\n\t\t//I don't know if they need to be able to see what the reference voltage is\n\t\tdouble Vr = initialV/Eqn1;\n\t\t*/\n\t\t//declaring constants\n\t\tdouble B0 = -0.5051;\n\t\tdouble B1 = 0.8857; \n\t\tdouble B2 = -0.1398;\n\t\tdouble B3 = 0.0002398;\n\t\t\n\t\tdouble VVr = V/Vr;\n\t\tdouble Eqn2 = B0 + (B1*VVr) + (B2*(VVr*VVr)) + (B3*(VVr*VVr*VVr));\n\t\t//crack size, A calculated for any voltage\n\t\tdouble A = Eqn2 * W;\n\t\treturn A;\n\t\t\n\t}", "public boolean isZero() {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? false : veucl3.isZero();\r\n }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "private int getCrs(TrackPoint p) {\r\n\t\tint crsindex = 0;\r\n\t\tif (coordinateReferenceSystem.length > 1) {\r\n\t\t\tint ls = TransformCoordinates.getLocalProjectionSystem(coordinateReferenceSystem[0]);\r\n\t\t\tProjectedPoint gkbl = TransformCoordinates.wgs84ToLocalsystem(p, ls); // TODO: think / read about what to do if bottom left and top right are not in the same Gau?-Kr?ger stripe?\r\n\t\t\tint wantepsg = gkbl.getEpsgCode();\r\n\t\t\tfor (crsindex = 0; crsindex < coordinateReferenceSystem.length; crsindex++) {\r\n\t\t\t\tif (coordinateReferenceSystem[crsindex] == wantepsg)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (crsindex >= coordinateReferenceSystem.length) { // not match\r\n\t\t\t\tfor (crsindex = 0; crsindex < coordinateReferenceSystem.length; crsindex++) {\r\n\t\t\t\t\tif (Math.abs(coordinateReferenceSystem[crsindex] - wantepsg) == 1)\r\n\t\t\t\t\t\tbreak; // accept 1 zone deviation\r\n\t\t\t\t}\r\n\t\t\t\tif (crsindex >= coordinateReferenceSystem.length)\r\n\t\t\t\t\tcrsindex = -1;\r\n\r\n\t\t\t}\r\n\t\t\tif (crsindex < 0)\r\n\t\t\t\tthrow new IllegalArgumentException(MyLocale.getMsg(4829, \"getUrlForBoundingBox: Point:\") + \" \" + gkbl.toString() + MyLocale.getMsg(4830, \"no matching Gau?-Kr?ger-Stripe in the EPSG-code list in the .wms\"));\r\n\t\t}\r\n\t\treturn crsindex;\r\n\t}", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "public double getX3SubSolution() {\n this.polySubSolve();\n return this.x3sub;\n }", "public ThreeVector(double v1,double v2,double v3) {\r\n\t\tthis.x=v1;\r\n\t\tthis.y=v2;\r\n\t\tthis.z=v3;\r\n\t}", "godot.wire.Wire.Vector3OrBuilder getSizeOrBuilder();", "static boolean pointInCircumcircle2(PointDouble a, PointDouble b, PointDouble c, PointDouble p) {\n return ((a.x - p.x) * (b.y - p.y) * ((c.x - p.x) * (c.x - p.x) + (c.y - p.y) * (c.y - p.y)) +\n (a.y - p.y) * ((b.x - p.x) * (b.x - p.x) + (b.y - p.y) * (b.y - p.y)) * (c.x - p.x) +\n ((a.x - p.x) * (a.x - p.x) + (a.y - p.y) * (a.y - p.y)) * (b.x - p.x) * (c.y - p.y) -\n ((a.x - p.x) * (a.x - p.x) + (a.y - p.y) * (a.y - p.y)) * (b.y - p.y) * (c.x - p.x) -\n (a.y - p.y) * (b.x - p.x) * ((c.x - p.x) * (c.x - p.x) + (c.y - p.y) * (c.y - p.y)) -\n (a.x - p.x) * ((b.x - p.x) * (b.x - p.x) + (b.y - p.y) * (b.y - p.y)) * (c.y - p.y)) > 0.0;\n }", "@Test\n public void heightInTri() {\n Vector3f a = new Vector3f(0, 1, 1);\n Vector3f b = new Vector3f(0, 1, 0);\n Vector3f c = new Vector3f(2, 3, 0.5f);\n assertEquals(2, Trig.heightInTri(a, b, c, new Vector3f(1, 999, 0.5f)));\n assertEquals(Float.NaN, Trig.heightInTri(a, b, c, new Vector3f(1, 999, 1)));\n assertEquals(Float.NaN, Trig.heightInTri(a, b, c, new Vector2f(1, 1)));\n assertEquals(1, Trig.heightInTri(a, b, c, new Vector3f(0, 1, 1)));\n assertEquals(1, Trig.heightInTri(a, b, c, new Vector2f(0, 1)));\n assertEquals(1, Trig.heightInTri(a, b, c, new Vector3f(0, 1, 0.2f)));\n }", "static double radiusOfCircumcirle(PointDouble a, PointDouble b, PointDouble c) {\n return radiusOfCircumcirle(dist(a, b), dist(b, c), dist(c, a));\n }" ]
[ "0.6242363", "0.61042416", "0.59898925", "0.5980335", "0.59211695", "0.5911086", "0.5846447", "0.58198255", "0.58026856", "0.5748605", "0.57248706", "0.5698544", "0.56419945", "0.56055456", "0.55964464", "0.55322546", "0.5475095", "0.5464439", "0.5452762", "0.54522043", "0.5440818", "0.53581166", "0.53407896", "0.53248644", "0.5316787", "0.53130853", "0.53122663", "0.5300041", "0.52926874", "0.5289884", "0.5285714", "0.528281", "0.5281216", "0.5278579", "0.5268366", "0.52434814", "0.5242028", "0.5241236", "0.52385944", "0.5223883", "0.5216395", "0.52095157", "0.5205602", "0.5203977", "0.51976675", "0.5191527", "0.51899236", "0.5181103", "0.5175803", "0.5169879", "0.51575243", "0.5152753", "0.5136843", "0.51274353", "0.51209795", "0.51147777", "0.51142204", "0.51142204", "0.509796", "0.5086244", "0.5078233", "0.5067206", "0.50661707", "0.506339", "0.5061014", "0.5052691", "0.5051837", "0.50293994", "0.5017493", "0.5017299", "0.50166935", "0.5013498", "0.50113946", "0.50067264", "0.49942777", "0.49931672", "0.49917212", "0.49888042", "0.49878493", "0.49851128", "0.49805456", "0.49781734", "0.49707016", "0.49701953", "0.4965041", "0.49625906", "0.49544603", "0.49534956", "0.49467278", "0.49444082", "0.4930295", "0.49257177", "0.4924419", "0.49237403", "0.49228305", "0.49201977", "0.4916149", "0.49158493", "0.49096036", "0.4906509" ]
0.7316962
0
====================== subsidiary accessors ===================== sets components.
public void setXYZ3(double[] xyz3) throws RuntimeException { if (xyz3.length != 3) { throw new RuntimeException("xyz3 must be of length 3; found: " + xyz3.length); } this.setXMLContent(xyz3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "public void setUIComponent(Component c) {}", "private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2));\n delete.setText(\"Löschen\");\n addAttr.setText(\"Attribut hinzufügen\");\n deleteAttr.setText(\"Attribut löschen\");\n nameText.setText(DefaultValues.PRODUKTDATUM_NAME);\n idText.setText(DefaultValues.ID);\n attributeText.setText(DefaultValues.PRODUKTDATUM_ATTRIBUTE);\n verweiseText.setText(DefaultValues.PRODUKTDATUM_VERWEISE);\n title.setForeground(Color.BLUE);\n attributList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n attributList.setSelectedIndex(0);\n }", "private void setComponentStatus() {}", "private void initcomponent() {\n\r\n\t}", "private void assignComponents() {\r\n if (myTask != null) {\r\n textFieldName.setText(myTask.getName());\r\n textFieldDescription.setText(myTask.getDescription());\r\n textFieldDueDate.setText(myTask.getDueDate().toString());\r\n comboPriority.setSelectedItem(myTask.getPriority());\r\n } else {\r\n textFieldName.setText(null);\r\n textFieldDescription.setText(null);\r\n textFieldDueDate.setText(null);\r\n comboPriority.setSelectedItem(-1);\r\n }\r\n }", "@Override\npublic void setUIComponent(VirtualComponent c) {\n\t\n}", "public abstract void setupComponent();", "@Override\n\tpublic void setComponentValue(Object value) {\n\t\t\n\t}", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "private void initMyComponents() {\n this.jPanel1.setLayout(new BoxLayout(this.jPanel1, BoxLayout.Y_AXIS));\n this.jPanel1.add(controller.getPressureController().getEMeasureBasicView());\n this.jPanel1.add(controller.getTemperatureController().getEMeasureBasicView());\n this.controller.getPressureController().getListeners().add(this);\n this.controller.getTemperatureController().getListeners().add(this);\n this.jComboBox1.setModel(new DefaultComboBoxModel(FluidKind.values()));\n this.changeResponce();\n }", "public void set(Object requestor, String field, JLabel comp);", "public void setComponent(String componentName1) {\n this.component = componentName1;\n }", "public void setComponent(ElementView jc) {\n\t\tthis.jc = jc;\n\t}", "@Override\r\n public void initComponent() {\n }", "public void set(Object requestor, String field, JComponent comp);", "private void getComponents() {\n drawerLayout = binding.activityMainDrawerLayout;\n navigationView = binding.navigationView;\n floatingActionButton = binding.flAddPet;\n shareAppButton = binding.flShareApp;\n }", "private void createUIComponents() {\n this.removeAll();\n this.setLayout(new GridBagLayout());\n\n selectionListener = e -> update();\n\n categorySet_panel = new DataObject_DisplayList<>(database.getSchema(), CategorySet.class, new Full_Set<>(database, CategorySet.class), false, this);\n categorySet_panel.addControlButtons(new CategorySet_ElementController(database, this));\n categorySet_panel.getMainPanel().getListSelectionModel().addListSelectionListener(selectionListener);\n\n virtualCategory_set = new OneParent_Children_Set<>(VirtualCategory.class, null);\n virtualCategory_elementController = new VirtualCategory_ElementController(database, this);\n virtualCategory_panel = new DataObject_DisplayList<>(database.getSchema(), VirtualCategory.class, virtualCategory_set, false, this);\n virtualCategory_panel.addControlButtons(virtualCategory_elementController);\n virtualCategory_panel.getMainPanel().getListSelectionModel().addListSelectionListener(selectionListener);\n\n categoryToCategorySet_set = new OneParent_Children_Set<>(CategoryToCategorySet.class, null);\n categoryToCategorySet_elementController = new CategoryToCategorySet_ElementController(database, this);\n categoryToCategorySet_panel = new DataObject_DisplayList<>(database.getSchema(), CategoryToCategorySet.class, categoryToCategorySet_set, false, this);\n categoryToCategorySet_panel.addControlButtons(categoryToCategorySet_elementController);\n\n categoryToVirtualCategory_set = new OneParent_Children_Set<>(CategoryToVirtualCategory.class, null);\n categoryToVirtualCategory_elementController = new CategoryToVirtualCategory_ElementController(database, this);\n categoryToVirtualCategory_panel = new DataObject_DisplayList<>(database.getSchema(), CategoryToVirtualCategory.class, categoryToVirtualCategory_set, false, this);\n categoryToVirtualCategory_panel.addControlButtons(categoryToVirtualCategory_elementController);\n\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1;\n gridBagConstraints.weighty = 1;\n gridBagConstraints.gridheight = 2;\n\n gridBagConstraints.gridx = 0;\n this.add(categorySet_panel, gridBagConstraints);\n\n gridBagConstraints.gridheight = 1;\n gridBagConstraints.gridx = 1;\n this.add(virtualCategory_panel, gridBagConstraints);\n\n gridBagConstraints.weighty = 2;\n this.add(categoryToCategorySet_panel, gridBagConstraints);\n\n gridBagConstraints.gridheight = 2;\n gridBagConstraints.weighty = 1;\n gridBagConstraints.gridx = 2;\n this.add(categoryToVirtualCategory_panel, gridBagConstraints);\n }", "@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}", "public DeviceSelectionComponentBase() {\n initComponents();\n }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "public void setUpComponents() {\n for (int i = 1; i <= 31; i++) {\n cmbDay.addItem(String.format(\"%02d\", i));\n }\n\n for (int i = 0; i <= 11; i++) {\n cmbMonth.addItem(monthNames[i]);\n }\n\n updateTimeComboBox();\n\n updateDurationComboBox();\n\n cmbDay.setSelectedIndex(initialDay.getDay() - 1);\n cmbMonth.setSelectedIndex(initialDay.getMonth());\n\n if (formType.equals(\"Edit\")) {\n txtName.setText(eventToEdit.getName());\n cmbTime.setSelectedIndex(eventToEdit.getStartTime() - usedTimes.size());\n cmbDuration.setSelectedIndex(eventToEdit.getDuration() - 1);\n }\n\n cmbTime.addItemListener(new MyItemListener());\n cmbDay.addItemListener(new MyItemListener());\n cmbMonth.addItemListener(new MyItemListener());\n radAutoTime.addActionListener(new TimeHandler());\n radSelectTime.addActionListener(new TimeHandler());\n\n buttonGroup.add(radSelectTime);\n buttonGroup.add(radAutoTime);\n\n frame.setLayout(new GridBagLayout());\n gbc.insets = new Insets(5, 5, 5, 5);\n addComponents();\n\n btnSubmit.addActionListener(new EventHandler());\n frame.getRootPane().setDefaultButton(btnSubmit);\n\n buildFrame();\n }", "Builder setComponent(String component);", "public void setComponentBounds(){\n spelerIDLabel.setBounds(40,10,100,40);\n typeLabel.setBounds(40,60,100,40);\n codeLabel.setBounds(40,110,200,40);\n heeftBetaaldLabel.setBounds(40, 160, 200, 40);\n\n spelerIDField.setBounds(250, 10, 100, 40);\n typeField.setBounds(250, 60, 100, 40);\n codeField.setBounds(250, 110, 100, 40);\n heeftBetaaldField.setBounds(250, 160, 100, 40);\n\n terugButton.setBounds(300,260,75,40);\n klaarButton.setBounds(200,260,100,40);\n\n\n\n\n }", "public void setOptionsPanelComponent(SelectableComponent sc){\r\n // Protect options panel from badly created components\r\n if(sc != null){\r\n this.sc = sc;\r\n titleLabel.setText((getActiveCircuit().getActiveComponents().contains(sc))?titleOld:titleNew);\r\n typeLabel.setText(sc.getName());\r\n if(!(sc instanceof ui.command.SubcircuitOpenCommand.SubcircuitComponent)){\r\n optionsPanel.setVisible(true);\r\n if(sc instanceof VisualComponent){\r\n AttributesPanel.removeAll();\r\n JPanel test = sc.getOptionsPanel();\r\n AttributesPanel.add(test, BorderLayout.NORTH);\r\n ((PreviewPanel)Preview).setComponent(sc);\r\n AttributesPanel.repaint();\r\n Preview.repaint();\r\n AttributesPanel.setPreferredSize(test.getSize());\r\n Toolbox.revalidate();\r\n }\r\n } \r\n getActiveCircuit().repaint();\r\n } else {\r\n ErrorHandler.newError(\"Options Panel Error\",\r\n \"The component that you are trying to create or select is malformed.\");\r\n }\r\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "@Override\r\n public void initializeComponents() {\r\n nameTf = new ITextField(\"name\");\r\n nameTf.addEditedListener(this, \"name\");\r\n\r\n separatorTf = new ITextField(\"Separator\");\r\n separatorTf.addEditedListener(this, \"separator\");\r\n }", "public void setItems(){\n }", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }", "private void initComponents() {\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(2);\n add(rootLayout);\n Empsn_Label= new nextapp.echo2.app.Label();\n Empsn_Label.setText(\"N_TIME_BEAR.EMPSN\");\n rootLayout.add(Empsn_Label);\n \n Empsn_DscField = new dsc.echo2app.component.DscField();\n Empsn_DscField.setId(\"Empsn_DscField\");\n Empsn_DscField.setWidth(new Extent(4, Extent.CM));\n rootLayout.add(Empsn_DscField);\n \n\t}", "public MendInformation() {\r\n \tinitComponents();\r\n }", "public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "public updatedata() {\n initComponents();\n }", "public void set(Object requestor, String field, JFrame comp);", "private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }", "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "public Modify() {\n initComponents();\n }", "public ImmutableComponent[] getComponents(){\n\t return this.components;\n\t}", "public void setComponent(String newComponent) {\r\n\t\tcomponent = newComponent;\r\n\t}", "public uitax() {\n initComponents();\n }", "public Component prepare(){\n\t\treturn this;\n\t}", "public Enumeration components() {\n\t\treturn null;\n\t}", "public void initComponents() {\n Iterator<Component> itComponent = this.components.iterator();\n while (itComponent.hasNext()) {\n itComponent.next().init(this);\n }\n\n Iterator<Script> itScript = this.scripts.iterator();\n while (itScript.hasNext()) {\n itScript.next().init(this);\n }\n System.out.println(this.owner.id + \" : \" + this.components.toString() + \" \" + this.scripts.toString());\n\n }", "public product() {\n initComponents();\n }", "public allProductUpdate() {\n initComponents();\n }", "public void addComponents(){\n add(spelerIDLabel);\n add(typeLabel);\n add(codeLabel);\n add(heeftBetaaldLabel);\n\n add(spelerIDField);\n add(typeField);\n add(codeField);\n add(heeftBetaaldField);\n\n add(klaarButton);\n add(terugButton);\n\n }", "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "public void setPortletComponents(ArrayList components) {\n this.components = components;\n }", "public abstract void setParent(UIComponent parent);", "private void setData() {\n populateInterfaceElements();\n }", "@Override\n public JComponent getComponent () {\n return this;\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public void initComponent(){\n\t\t\n\t\tpanelMiddle.setCaption(\"PROSES:\");\n\t\t\n\t\t//INIT COMPONENT BAWAH\t\n\t\tlabelNotes.setContentMode(ContentMode.HTML);\n\t\tlabelNotes.setValue(\"Notes: <br> Perubahan pada Calender Kerja akan mempengaruhi seluruh sistem <br>.\" );\n\t}", "private void initComponents() {\r\n\r\n jLabel1 = new javax.swing.JLabel();\r\n manageCompoundJButton = new javax.swing.JButton();\r\n enterpriseLabel = new javax.swing.JLabel();\r\n valueLabel = new javax.swing.JLabel();\r\n drugComboBox = new javax.swing.JComboBox();\r\n\r\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\r\n jLabel1.setText(\"My Work Area -Supplier Role\");\r\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 40, -1, -1));\r\n\r\n manageCompoundJButton.setText(\"Manage Compound\");\r\n manageCompoundJButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n manageCompoundJButtonActionPerformed(evt);\r\n }\r\n });\r\n add(manageCompoundJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 290, -1, -1));\r\n\r\n enterpriseLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\r\n enterpriseLabel.setText(\"EnterPrise :\");\r\n add(enterpriseLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 90, 120, 30));\r\n\r\n valueLabel.setText(\"<value>\");\r\n add(valueLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 100, 130, -1));\r\n\r\n drugComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n add(drugComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 210, 210, -1));\r\n }", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}", "public CadastroComplemento() {\n initComponents();\n \n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n lblPlatform = new javax.swing.JLabel();\n platformComboBox = new javax.swing.JComboBox();\n btnManagePlatforms = new javax.swing.JButton();\n filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 100), new java.awt.Dimension(0, 0));\n progressLabel = new javax.swing.JLabel();\n progressPanel = new javax.swing.JPanel();\n\n setLayout(new java.awt.GridBagLayout());\n\n lblPlatform.setLabelFor(platformComboBox);\n lblPlatform.setText(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"LBL_Platform_ComboBox\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 12);\n add(lblPlatform, gridBagConstraints);\n lblPlatform.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"ACSN_labelPlatform\")); // NOI18N\n lblPlatform.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"ACSD_labelPlatform\")); // NOI18N\n\n platformComboBox.setModel(platformsModel);\n platformComboBox.setRenderer(platformsCellRenderer);\n platformComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n platformComboBoxItemStateChanged(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 0.1;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 0);\n add(platformComboBox, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(btnManagePlatforms, org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"LBL_PanelOptions_Manage_Button\")); // NOI18N\n btnManagePlatforms.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnManagePlatformsActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n add(btnManagePlatforms, gridBagConstraints);\n btnManagePlatforms.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"ACSN_buttonManagePlatforms\")); // NOI18N\n btnManagePlatforms.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"ACSD_buttonManagePlatforms\")); // NOI18N\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;\n gridBagConstraints.weighty = 0.1;\n add(filler1, gridBagConstraints);\n\n progressLabel.setText(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"LBL_Platform_Progress\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n add(progressLabel, gridBagConstraints);\n progressLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"ACSN_platformProgress\")); // NOI18N\n progressLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, \"ACSD_platformProgress\")); // NOI18N\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 0.1;\n add(progressPanel, gridBagConstraints);\n }", "public PropsGUI() {\n initComponents();\n }", "public PropertiesFrame(FrameController fc) {\n this.fc = fc;\n objects = new ArrayList<IDataObject>();\n \n initComponents();\n reset();\n }", "public void setContent(Component... components) {\n this.contentLayout.setContent(components);\n }", "private void setComponentBounds() {\n float width = this.getWidth();\n float height = this.getHeight();\n\n int fontSize = height / 30 > 16 ? 16 : (int) (height / 30);\n int buttonWidth = width / 4.5 > 200 ? 200 : (int) (width / 4.5);\n int buttonHeight = height / 14.15 > 35 ? 35 : (int) (height / 14.15);\n int horMargin = (int) (width / 38.15);\n int verMargin = (int) (height / 21.2);\n\n registerButton.setBounds(horMargin, verMargin, buttonWidth, buttonHeight);\n registerButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n editButton.setBounds(horMargin + buttonWidth + 30, verMargin, buttonWidth, buttonHeight);\n editButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n deleteButton.setBounds((int) (width - (horMargin + buttonWidth)), verMargin, buttonWidth, buttonHeight);\n deleteButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n partidaScrollPane.setBounds(horMargin, (int) (height / 7), (int) (width - (horMargin * 2)), (int) (height - ((height / 21.2 * 3) + (height / 14.15))));\n partidaTable.setFont(new Font(\"Arial\", Font.PLAIN, fontSize));\n partidaTable.packAll();\n }", "public ModifyProductFrame() {\n initComponents();\n setIcon();\n }", "public abstract void updateOfferComponents();", "public merits() {\n initComponents();\n }", "public CurricularCourseDataComponent() {\n\t\tsuper();\n\n\t\t// Header\n\t\t// None yet\n\n\t\t// Body\n\t\tVerticalPanel verticalPanelIdentification = new VerticalPanel();\n\t\tcontentPanel.add(verticalPanelIdentification);\n\t\taddComponents(verticalPanelIdentification);\n\n\t\t// Footer\n\t\t// None yet\n\t}", "public ViewProperty() {\n initComponents();\n }", "public void initComponents();", "protected abstract Object[] getComponents();", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "public void setContents()\r\n\t{\r\n\t\t// contents.widthProperty().bind(this.prefWidthProperty());\r\n\t\t// contents.heightProperty().bind(this.prefHeightProperty());\r\n\t\t// contents.resize(width, height);\r\n\t\t// contents.relocate(width/4, height/4);\r\n\r\n\t}", "public meseros() {\n initComponents();\n }", "public int components() {\n return numOfComponents;\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public interface ComponentsAware \n{\n\t/**\n\t * This method retrieves components by its name. If the component doesn't exist\n\t * it returns an empty List.\n\t * \n\t * @param name The name of the component we want to retrieve\n\t * @return The Component\n\t */\n\tpublic abstract List<Component> getComponentsByName(String name);\n\t\n\t/**\n\t * This method retrieves components by its name. If the component doesn't exist\n\t * it returns <code>null</code>.\n\t * \n\t * @param name The name of the component we want to retrieve\n\t * @return The Component\n\t */\t\n\tpublic abstract Component getComponentByName(String name);\n\t\n\t/**\n\t * It retrieves all the named components within the main Container\n\t * returned by this view.\n\t * \n\t * @return A map with all the named components\n\t */\n\tpublic abstract Map<String,List<Component>> getNamedComponents();\n\t\n\t/**\n\t * NamedComponents should be filled by an external delegator. It should inspect\n\t * the rootPane of the view and retrieve all named java.awt.Component components.\n\t * \n\t * @param namedComponents\n\t */\n\tpublic abstract void setNamedComponents(Map<String,List<Component>> namedComponents);\n}", "protected HashSet getNoComponentName(){\n return tester.noComponentName;\n }", "private void initComposants() {\r\n\t\tselectionMatierePanel = new SelectionMatierePanel(1);\r\n\t\ttableauPanel = new TableauPanel(1);\r\n\t\tadd(selectionMatierePanel, BorderLayout.NORTH);\r\n\t\tadd(tableauPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t}", "public abstract void setNamedComponents(Map<String,List<Component>> namedComponents);", "private void initComponents() {\n\t\tjava.awt.GridBagConstraints gridBagConstraints;\n\n\t\tSqlDateModel fromSqlModel = new SqlDateModel();\n\t\tProperties pFrom = new Properties();\n\t\tpFrom.put(\"text.today\", \"Today\");\n\t\tpFrom.put(\"text.month\", \"Month\");\n\t\tpFrom.put(\"text.year\", \"Year\");\n\t\tJDatePanelImpl fromDatePanel = new JDatePanelImpl(fromSqlModel, pFrom);\n\n\t\t// Don't know about the formatter, but there it is...\n\t\tfromDatePicker = new JDatePickerImpl(fromDatePanel, new DateLabelFormatter());\n\n\t\tSqlDateModel toSqlModel = new SqlDateModel();\n\t\tProperties pTo = new Properties();\n\t\tpTo.put(\"text.today\", \"Today\");\n\t\tpTo.put(\"text.month\", \"Month\");\n\t\tpTo.put(\"text.year\", \"Year\");\n\t\tJDatePanelImpl toDatePanel = new JDatePanelImpl(toSqlModel, pTo);\n\t\ttoDatePicker = new JDatePickerImpl(toDatePanel, new DateLabelFormatter());\n\n\t\t// JCBClient = new JComboBox<>();\n\n\t\tJCBClient = PublicMethods.fillComboClient(\n\t\t\t\t\"Select clientId, firstName, middleName, lastName from clients order by firstName asc, middlename asc, lastname asc\",\n\t\t\t\tthis.cnFoodDataEntry);\n\n\t\tJCBFoodUnit = new JComboBox<>();\n\t\tJCBFoodUnit.setModel(\n\t\t\t\tnew javax.swing.DefaultComboBoxModel<>(energySourceDetail.get(FoodIntake).keySet().toArray()));\n\n\t\tJCBLandfillingFoodWasteUnit = new JComboBox<>();\n\t\tJCBLandfillingFoodWasteUnit.setModel(new javax.swing.DefaultComboBoxModel<>(\n\t\t\t\tenergySourceDetail.get(LandfillingFoodWaste).keySet().toArray()));\n\n\t\tJCBCompostingFoodWasteUnit = new JComboBox<>();\n\t\tJCBCompostingFoodWasteUnit.setModel(\n\t\t\t\tnew javax.swing.DefaultComboBoxModel<>(energySourceDetail.get(CompostingFoodWaste).keySet().toArray()));\n\n\t\tsetLayout(new java.awt.GridBagLayout());\n\n\t\tImageIcon image = new ImageIcon(\"images/foodcalculator.jpg\");\n\t\tJLImage = new JLabel(\"\", image, JLabel.CENTER);\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tgridBagConstraints.gridheight = 17;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tadd(JLImage, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tJLHeader.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 35));\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(JLHeader, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 1;\n\t\tJLSelectClient.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(JLSelectClient, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 2;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);\n\t\tadd(JCBClient, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 1;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tJLDateRange.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(JLDateRange, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 2;\n\t\tJLFromDate.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLFromDate, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 2;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(fromDatePicker, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 3;\n\t\tJLToDate.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLToDate, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 3;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(toDatePicker, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 6;\n\t\tJLFood.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLFood, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 7;\n\t\tJLLandfillingFoodWaste.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLLandfillingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);\n\t\tJLCompostingFoodWaste.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLCompostingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 6;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(JTFFood, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 7;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(JTFLandfillingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(JTFCompostingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 5;\n\t\tJLUnit.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tadd(JLUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 6;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 10);\n\t\tadd(JCBFoodUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 7;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 10);\n\t\tadd(JCBLandfillingFoodWasteUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 10);\n\t\tadd(JCBCompostingFoodWasteUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 14;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tcalculateButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tcalculateButton.setBackground(new Color(92, 184, 92));\n\t\tcalculateButton.setForeground(Color.WHITE);\n\t\tcalculateButton.addActionListener(actionListener);\n\t\tcalculateButton.setActionCommand(\"CALCULATE\");\n\t\tadd(calculateButton, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 16;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tJTFResult.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tJTFResult.setEditable(false);\n\t\tadd(JTFResult, gridBagConstraints);\n\n\t\tJPanel jpanel = new JPanel();\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.gridwidth = 1;\n\t\t// gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\t// gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tsaveButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tsaveButton.addActionListener(actionListener);\n\t\tsaveButton.setActionCommand(\"SAVE\");\n\t\tjpanel.add(saveButton, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 18;\n\t\tgridBagConstraints.gridwidth = 1;\n\t\t// gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(jpanel, gridBagConstraints);\n\n\t\tsetBackground(Color.WHITE);\n\n\t}", "public void setComponentName(ComponentName name);", "private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }", "public void set(Object requestor, String field, JButton comp);", "private void setComponentsId(){\n this.tableA.setId(1);\n this.horizontalScrollViewB.setId(2);\n this.scrollViewC.setId(3);\n this.scrollViewD.setId(4);\n }", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }", "public LabelAttributesPanel() {\n initComponents();\n selectedModel = nodesToggleButton.getModel();\n elementButtonGroup.setSelected(selectedModel, true);\n nodesToggleButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (nodesToggleButton.isSelected()) {\n selectedModel = nodesToggleButton.getModel();\n refresh();\n }\n }\n });\n edgesToggleButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (edgesToggleButton.isSelected()) {\n selectedModel = edgesToggleButton.getModel();\n refresh();\n }\n }\n });\n showPropertiesCheckbox.setSelected(showProperties);\n showPropertiesCheckbox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n showProperties = showPropertiesCheckbox.isSelected();\n refresh();\n }\n });\n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n javax.swing.JLabel subjectLabel = new javax.swing.JLabel();\n subjectComponent = new javax.swing.JTextArea();\n javax.swing.JLabel holderLabel = new javax.swing.JLabel();\n javax.swing.JScrollPane holderScrollPane = new javax.swing.JScrollPane();\n holderComponent = new javax.swing.JTextArea();\n javax.swing.JLabel issuerLabel = new javax.swing.JLabel();\n javax.swing.JScrollPane issuerScrollPane = new javax.swing.JScrollPane();\n issuerComponent = new javax.swing.JTextArea();\n javax.swing.JLabel issuedLabel = new javax.swing.JLabel();\n issuedComponent = new javax.swing.JTextArea();\n javax.swing.JLabel notBeforeLabel = new javax.swing.JLabel();\n notBeforeComponent = new javax.swing.JTextArea();\n javax.swing.JLabel notAfterLabel = new javax.swing.JLabel();\n notAfterComponent = new javax.swing.JTextArea();\n javax.swing.JLabel consumerLabel = new javax.swing.JLabel();\n consumerComponent = new javax.swing.JTextArea();\n javax.swing.JLabel infoLabel = new javax.swing.JLabel();\n javax.swing.JScrollPane infoScrollPane = new javax.swing.JScrollPane();\n infoComponent = new javax.swing.JTextArea();\n\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createTitledBorder(format(LicenseWizardMessage.display_title)), javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10))); // NOI18N\n setName(DisplayPanel.class.getSimpleName());\n setLayout(new java.awt.GridBagLayout());\n\n subjectLabel.setLabelFor(subjectComponent);\n subjectLabel.setText(format(LicenseWizardMessage.display_subject)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(subjectLabel, gridBagConstraints);\n\n subjectComponent.setEditable(false);\n subjectComponent.setFont(getFont());\n subjectComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n subjectComponent.setName(LicenseWizardMessage.display_subject.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(subjectComponent, gridBagConstraints);\n\n holderLabel.setLabelFor(holderComponent);\n holderLabel.setText(format(LicenseWizardMessage.display_holder)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(holderLabel, gridBagConstraints);\n\n holderScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n holderScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n holderScrollPane.setPreferredSize(new java.awt.Dimension(300, 65));\n\n holderComponent.setEditable(false);\n holderComponent.setFont(getFont());\n holderComponent.setLineWrap(true);\n holderComponent.setWrapStyleWord(true);\n holderComponent.setBorder(null);\n holderComponent.setName(LicenseWizardMessage.display_holder.name());\n holderScrollPane.setViewportView(holderComponent);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(holderScrollPane, gridBagConstraints);\n\n issuerLabel.setLabelFor(issuerComponent);\n issuerLabel.setText(format(LicenseWizardMessage.display_issuer)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(issuerLabel, gridBagConstraints);\n\n issuerScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n issuerScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n issuerScrollPane.setPreferredSize(new java.awt.Dimension(300, 65));\n\n issuerComponent.setEditable(false);\n issuerComponent.setFont(getFont());\n issuerComponent.setLineWrap(true);\n issuerComponent.setWrapStyleWord(true);\n issuerComponent.setBorder(null);\n issuerComponent.setName(LicenseWizardMessage.display_issuer.name());\n issuerScrollPane.setViewportView(issuerComponent);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(issuerScrollPane, gridBagConstraints);\n\n issuedLabel.setLabelFor(issuedComponent);\n issuedLabel.setText(format(LicenseWizardMessage.display_issued)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(issuedLabel, gridBagConstraints);\n\n issuedComponent.setEditable(false);\n issuedComponent.setFont(getFont());\n issuedComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n issuedComponent.setName(LicenseWizardMessage.display_issued.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(issuedComponent, gridBagConstraints);\n\n notBeforeLabel.setLabelFor(notBeforeComponent);\n notBeforeLabel.setText(format(LicenseWizardMessage.display_notBefore)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(notBeforeLabel, gridBagConstraints);\n\n notBeforeComponent.setEditable(false);\n notBeforeComponent.setFont(getFont());\n notBeforeComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n notBeforeComponent.setName(LicenseWizardMessage.display_notBefore.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(notBeforeComponent, gridBagConstraints);\n\n notAfterLabel.setLabelFor(notAfterComponent);\n notAfterLabel.setText(format(LicenseWizardMessage.display_notAfter)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(notAfterLabel, gridBagConstraints);\n\n notAfterComponent.setEditable(false);\n notAfterComponent.setFont(getFont());\n notAfterComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n notAfterComponent.setName(LicenseWizardMessage.display_notAfter.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(notAfterComponent, gridBagConstraints);\n\n consumerLabel.setLabelFor(consumerComponent);\n consumerLabel.setText(format(LicenseWizardMessage.display_consumer)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(consumerLabel, gridBagConstraints);\n\n consumerComponent.setEditable(false);\n consumerComponent.setFont(getFont());\n consumerComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n consumerComponent.setName(LicenseWizardMessage.display_consumer.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(consumerComponent, gridBagConstraints);\n\n infoLabel.setLabelFor(infoComponent);\n infoLabel.setText(format(LicenseWizardMessage.display_info)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(infoLabel, gridBagConstraints);\n\n infoScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n infoScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n infoScrollPane.setPreferredSize(new java.awt.Dimension(300, 65));\n\n infoComponent.setEditable(false);\n infoComponent.setFont(getFont());\n infoComponent.setLineWrap(true);\n infoComponent.setWrapStyleWord(true);\n infoComponent.setBorder(null);\n infoComponent.setName(LicenseWizardMessage.display_info.name());\n infoScrollPane.setViewportView(infoComponent);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(infoScrollPane, gridBagConstraints);\n }", "public void addComponents(){\r\n\r\n\t\t\tfor(int i=0; i < fieldNum ; i++){ \r\n\t\t\t\tadd(labels[i]);\r\n\t\t\t\tif(i==3){\r\n\t\t\t\t\tadd(fields[i]);\r\n\t\t\t\t\tfor(int k=1;k<ingredientFields.size();k++)\r\n\t\t\t\t\t\tadd(ingredientFields.get(k));\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tadd(fields[i]);\r\n\t\t\t}\r\n\r\n\t\t}", "public VComponente() {\n initComponents();\n }", "@Override\n public Component getUiComponent() {\n return this;\n }", "public Modification() {\n initComponents();\n }", "@Override\r\n\tpublic void setModel() {\n\t}", "private void initComponents() {\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(title());\r\n setMinimumSize(new java.awt.Dimension(1000, 500));\r\n\r\n toolsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\r\n\r\n channelComboBox.setMinimumSize(new java.awt.Dimension(75, 20));\r\n channelComboBox.setPreferredSize(new java.awt.Dimension(100, 20));\r\n channelComboBox.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n channelComboBox_actionPerformed(evt);\r\n }\r\n });\r\n toolsPanel.add(channelComboBox);\r\n\r\n getContentPane().add(toolsPanel, java.awt.BorderLayout.NORTH);\r\n getContentPane().add(tabsPanel, java.awt.BorderLayout.CENTER);\r\n\r\n valuesPanel.setLayout(new javax.swing.BoxLayout(valuesPanel, javax.swing.BoxLayout.Y_AXIS));\r\n getContentPane().add(valuesPanel, java.awt.BorderLayout.EAST);\r\n\r\n pack();\r\n }", "public articlesModify() {\n initComponents();\n }", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }" ]
[ "0.6649312", "0.65885013", "0.65885013", "0.6537292", "0.64762074", "0.6394325", "0.6325198", "0.630271", "0.62200254", "0.6207781", "0.6154597", "0.6080854", "0.6080854", "0.60780996", "0.6064937", "0.60555863", "0.60394806", "0.6038915", "0.6034718", "0.59945935", "0.59888756", "0.59646106", "0.59610665", "0.5951287", "0.5928209", "0.59212613", "0.59178406", "0.5916775", "0.5909941", "0.5903353", "0.58960205", "0.5892226", "0.58822536", "0.5879484", "0.58776516", "0.5855698", "0.5835463", "0.5833746", "0.58333683", "0.5810468", "0.58076334", "0.5804221", "0.58027774", "0.5802482", "0.579034", "0.57847434", "0.57730293", "0.5769111", "0.5768075", "0.5763348", "0.5753041", "0.5752159", "0.5748551", "0.574084", "0.5733639", "0.5728242", "0.5725681", "0.57233167", "0.5707346", "0.5705494", "0.57017416", "0.569623", "0.569551", "0.56920075", "0.56899893", "0.56885207", "0.5688164", "0.56851166", "0.56794524", "0.5673372", "0.5672761", "0.56725657", "0.5663573", "0.56627965", "0.56607664", "0.5658764", "0.5658589", "0.565372", "0.56534225", "0.56460756", "0.5645111", "0.5645056", "0.56255245", "0.56251156", "0.5620063", "0.5618674", "0.56153315", "0.56148225", "0.5608359", "0.56048137", "0.5597191", "0.5595482", "0.55952275", "0.5595093", "0.5593496", "0.5592155", "0.55917555", "0.5587215", "0.55851054", "0.55813235", "0.5580046" ]
0.0
-1
====================== functionality ===================== are two vectors equal. uses EPS to test all differences. vectors are NOT normalized
public boolean isEqualTo(CMLVector3 v) { return isEqualTo(v, EPS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test//test equal\n public void testEqual() {\n MyVector vD1 = new MyVector(ORIGINALDOUBLEARRAY);\n MyVector vD2 = new MyVector(ORIGINALDOUBLEARRAY);\n double[] doubleArray = new double[]{3.0, 2.3, 1.0, 0.0, -1.1};\n MyVector diffVD3 = new MyVector(doubleArray);\n assertEquals(true, vD1.equal(vD2));\n assertEquals(false, vD1.equal(diffVD3));\n MyVector vI1 = new MyVector(ORIGINALINTARRAY);\n MyVector vI2 = new MyVector(ORIGINALINTARRAY);\n int[] intArray = new int[]{1, 2, 3, 4};\n MyVector vI3 = new MyVector(intArray);\n assertEquals(true, vI1.equal(vI2));\n assertEquals(false, vI1.equal(vI3));\n }", "@Test\n public void epsilonEquals() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.epsilonEquals(a, 2, b, 3, 0.01f));\n assertTrue(! Vec4f.epsilonEquals(a, 0, b, 0, 0.01f));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.01f, 2.02f, 3.03f, 4.04f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.epsilonEquals(a4,b4, 0.05f));\n assertTrue(!Vec4f.epsilonEquals(a4,b4, 0.02f));\n assertTrue(!Vec4f.epsilonEquals(a4,c4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,d4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,e4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,f4, 0.1f));\n \n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "@Test\n void normalize() {\n\n Vector v = new Vector(1, 2, 3);\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n if (vCopy != vCopyNormalize)\n fail(\"ERROR: normalize() function creates a new vector\");\n if (!isZero(vCopyNormalize.length() - 1))\n fail(\"ERROR: normalize() result is not a unit vector\");\n Vector u = v.normalized();\n if (u == v)\n fail(\"ERROR: normalized() function does not create a new vector\");\n }", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "public boolean equals(Vector other){\n\t\treturn x == other.x && y == other.y && z == other.z;\n\t}", "public static boolean equal(VectorIntf x, VectorIntf y) {\r\n if (x==null && y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"both args null\");\r\n if (x==null || y==null) return false;\r\n if (x.getNumCoords()!=y.getNumCoords()) return false;\r\n // short-cut for specific sparse vectors\r\n if (x instanceof DblArray1SparseVector && \r\n\t\t\t y instanceof DblArray1SparseVector)\r\n return ((DblArray1SparseVector) x).equals((DblArray1SparseVector) y);\r\n for (int i=0; i<x.getNumCoords(); i++) {\r\n if (Double.compare(x.getCoord(i),y.getCoord(i))!=0) return false;\r\n }\r\n return true;\r\n }", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "public boolean equals(Vector330Class v){\n return (Math.abs(this.x-v.x) <= EPS || Math.abs(this.y-v.y) <= EPS);\n }", "double computeSimilarity(double[] vector1, double[] vector2) {\n\n // We need doubles for these so the math is done correctly. Else we only\n // return 1 or 0.\n double nDifferences = 0.;\n double lengthOfVector = (double) vector1.length;\n\n for (int i = 0; i < vector1.length; i++) {\n if (vector1[i] != vector2[i]) {\n nDifferences ++;\n }\n } \n return (1. - (nDifferences/lengthOfVector));\n }", "@Test\n public void dot() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 2.0f, 6.0f, 4.0f, 4.0f, 5.0f};\n float expect = 74.0f;\n // 1)\n result = Vec4f.dot(a, 2, b, 1);\n assertTrue(Math.abs(result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {2.0f, 6.0f, 4.0f, 4.0f};\n float result2 = Vec4f.dot(a2, b2);\n assertTrue(Math.abs(result2-expect) < 1E-6f);\n }", "@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }", "@Test\n public void sub() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {2.003f, -1.996f, 2.005f, 4.006f };\n Vec4f.sub(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(a4, b4);\n assertTrue(Vec4f.epsilonEquals(a4, expect4, 1E-6f));\n }", "@Override\n public boolean equals(Object o){\n if(!(o instanceof DoubleVector2)) return false;\n DoubleVector2 dv = (DoubleVector2) o;\n return dv.getVectorOne().equals(dv.getVectorTwo());\n }", "private double vectDist(double[] a,double[] b) {\n\t\tdouble out = Double.NEGATIVE_INFINITY;\n\t\tfor (int i = 0; i <a.length;i++) {\n\t\t\tdouble diff = Math.abs(a[i]-b[i]);\n\t\t\tif (diff > out)\n\t\t\t\tout = diff;\n\t\t}\n\t\treturn out;\n\t}", "@Test\n public void testGetIntersect() throws Exception {\n Vector farIntersect = sphere.getIntersect(new Vector(0,0,0),new Vector(0,-6,10));\n assertTrue(farIntersect.equals(new Vector(0,-6,10)));\n }", "@Test\n public void normalize() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float len = (float) Math.sqrt(86.0);\n float[] expect = new float[] {3.0f/len, 4.0f/len, 5.0f/len, 6.0f/len};\n // 1)\n Vec4f.normalize(dest, 4, a, 2);\n float newLen = Vec4f.length(dest, 4);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n assertTrue(Math.abs(newLen-1.0f) < 1E-5f);\n \n //2)\n Vec4f.normalize(a, 2);\n float newLen2 = Vec4f.length(dest, 4);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-5f));\n assertTrue(Math.abs(newLen2-1.0f) < 1E-5f);\n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n //3)\n Vec4f.normalize(dest2, a2);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n //4) \n Vec4f.normalize(a2);\n assertTrue(Vec4f.epsilonEquals(a2, expect, 1E-5f));\n \n }", "public static boolean AreEqual(double a, double b)\n {\n return Math.abs(a - b) < EPSILON;\n }", "private Point2D.Double calcVec(Point2D.Double a, Point2D.Double b)\n\t{\n\t\treturn new Point2D.Double((b.getX() - a.getX()), (b.getY() - a.getY()));\n\t}", "public boolean equals(Vector3D v, Vector3D w) {\n double epsilon = 1e-9;\n return (Math.abs(v.xCoord - w.xCoord) < epsilon\n && Math.abs(v.yCoord - w.yCoord) < epsilon\n && Math.abs(v.zCoord - w.zCoord) < epsilon);\n }", "@Test\n public void negate() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect = new float[] {-3.003f, -4.004f, -5.005f, -6.006f};\n // 1)\n Vec4f.negate(dest, 4, a, 2);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n // 2)\n Vec4f.negate(a, 2);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-6f));\n \n float[] dest1 = new float[4]; \n float[] a1 = new float[] { 3.003f, 4.004f, 5.005f, 6.006f}; \n \n // 3)\n Vec4f.negate(dest1, a1);\n assertTrue(Vec4f.epsilonEquals(dest1, expect, 1E-6f));\n // 4)\n Vec4f.negate(a1);\n assertTrue(Vec4f.epsilonEquals(a1, expect, 1E-6f));\n }", "public static double getResemblance(Vector<Long> v1, Vector<Long> v2) {\n int minSize = Math.min(v1.size(), v2.size());\n int count = 0;\n for (int i=0; i < minSize; i++) {\n if (v1.get(i) != -1 && (v1.get(i).equals(v2.get(i)))) {\n count++;\n } //else {\n //System.out.println(\"in position \"+i+\": \"+v1.get(i)+\" is different from \"+v2.get(i));\n //}\n }\n return count/(double) minSize;\n }", "@Test\n public void add() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a4, b4);\n //System.out.println(\"a=\"+Vec4f.toString(a, 2));\n assertTrue(Vec4f.epsilonEquals(a4,expect4, 1E-6f));\n }", "public boolean almostEqual(Coordinates a, Coordinates b);", "public boolean almostEqual(double a, double b);", "public static boolean vectorEquals(int[] v, int[] w) { return Arrays.equals(v, w); }", "static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }", "@Test\r\n public void testAddVector() throws Exception {\r\n System.out.println(\"AddVector\");\r\n int[] T = {1,2,3};\r\n int []T2 = {4,5,6};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {5,7,9};\r\n int[] result = instance.AddVector(T, T2);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "boolean equals(IVec3 v, float epsilon);", "public boolean isEqualTo(CMLVector3 v, double eps) {\r\n boolean ok = true;\r\n for (int i = 0; i < 3; i++) {\r\n if (Math.abs(this.getXYZ3()[i] - v.getXYZ3()[i]) > eps) {\r\n ok = false;\r\n break;\r\n }\r\n }\r\n return ok;\r\n }", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "@Test\n public void testDotProduct() {\n System.out.println(\"dotProduct\");\n Vector v = null;\n Vector instance = null;\n double expResult = 0.0;\n double result = instance.dotProduct(v);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public boolean equals(Vector2F v) {\n\t\treturn (this.xPos == v.xPos && this.yPos == v.yPos);\n\t}", "@Test\n public void set() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n Vec4f.set(a, 2, b, 1);\n assertTrue(Vec4f.equals(a, 2, expect, 0));\n \n float[] expect2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f};\n Vec4f.set(a, b);\n assertTrue(Vec4f.equals(a, expect2));\n \n \n float[] a3 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect3 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a3,2, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a3, 2, expect3, 0));\n \n float[] a4 = new float[4]; \n float[] expect4 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a4, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a4, expect4));\n }", "@Test\r\n public void testMinMaxVector() {\r\n System.out.println(\"minMaxVector\");\r\n int[] vector = {1,8,3,4};\r\n VectorHelper instance = new VectorHelper();\r\n int[]expResult= {1,8};\r\n int []result=instance.minMaxVector(vector);\r\n assertArrayEquals(expResult,result);\r\n \r\n }", "public Coordinates unitVector(Coordinates vector);", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "@Test\r\n public void testdecSortVector() {\r\n System.out.println(\"decSortVector\");\r\n int[] vector = {1,8,3,4};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {8,4,3,1};\r\n int[] result = instance.decSortVector(vector);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Test\r\n public void testParityVector() {\r\n System.out.println(\"parityVector\");\r\n int[] vector = {1,2,3};\r\n VectorHelper instance = new VectorHelper();\r\n String[] expResult = {\"impair\",\"pair\",\"impair\"};\r\n String[] result = instance.parityVector(vector);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Override\n public boolean equals(Object o) {\n if (o instanceof Vector2) {\n boolean value = false;\n if (o.hashCode() == this.hashCode()) {\n value = true;\n }\n return value;\n } else {\n return false;\n }\n }", "public boolean isEquilateral() {\r\n double d1 = pointA.distance(pointB);\r\n double d2 = pointA.distance(pointC);\r\n double d3 = pointB.distance(pointC);\r\n \r\n return(Math.abs(d1 - d2) < EPSILON && Math.abs(d1 - d3) < EPSILON && (Math.abs(d2 - d3) < EPSILON));\r\n }", "public static void subVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0] - v2[0];\n result[1] = v1[1] - v2[1];\n result[2] = v1[2] - v2[2];\n }", "private static Point2D getUnitVector(Point2D p1, Point2D p2) {\r\n\t\tPoint2D paux = new Point2D.Double(p2.getX() - p1.getX(),\r\n\t\t\t\tp2.getY() - p1.getY());\r\n\t\tdouble v = Math.sqrt(Math.pow(paux.getX(), 2d) +\r\n\t\t\t\tMath.pow(paux.getY(), 2d));\r\n\t\tpaux = new Point2D.Double(paux.getX() / v, paux.getY() / v);\r\n\r\n\t\treturn paux;\r\n\t}", "@Test\n public void scale() {\n assertEquals(\"Wrong vector scale\", new Vector(1,1,1).scale(2), new Vector(2,2,2));\n }", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "public static boolean isValidVector(double x, double y){\r\n\t\treturn (isValidComponent(x) && isValidComponent(y));\r\n\t}", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "public static synchronized Vector diff(Vector left, Vector right)\n\t throws IcofException {\n\n\tString funcName = new String(\"diff(Vector, Vector)\");\n\n\t// If the \"right\" Vector is null or empty, just return the \"left\"\n\t// Vector.\n\t// There's no point in cycling through the entire \"left\" Vector, in this\n\t// case.\n\tif ((right == null) || (right.isEmpty())) {\n\t return left;\n\t}\n\n\tVector aDiff = new Vector();\n\n\ttry {\n\n\t for (int i = 0; i < left.size(); i++) {\n\t\tObject o = (Object) left.elementAt(i);\n\t\tif (!right.contains(o)) {\n\t\t aDiff.add(o);\n\t\t}\n\t }\n\n\t aDiff.trimToSize();\n\t} catch (Exception e) {\n\t IcofException ie = new IcofException(CLASS_NAME, funcName,\n\t\t IcofException.SEVERE,\n\t\t \"Error creating difference of Vectors \", \"\");\n\t throw (ie);\n\t}\n\n\treturn aDiff;\n }", "private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }", "public static boolean almost_equals(double a, double b) {\n return almost_equals(a, b, PRECISION_DEFAULT);\n }", "public boolean\n\tequals( Vector3 other ) \n\t{\n\t\treturn( data[0] == other.data[0]\n\t\t\t&& data[1] == other.data[1]\n\t\t\t&& data[2] == other.data[2] );\n\t}", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "boolean hasVector2Value();", "@Override\n public int compareTo(DoubleVector2 o) {\n return (getVectorOne().getSteps() + getVectorTwo().getSteps()) - (o.getVectorOne().getSteps() + o.getVectorTwo().getSteps());\n }", "@Test\n public void testVerticalDisplacementTo() {\n System.out.println(\"Testing verticleDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n -555.998,\n -555.998,\n 555.998,\n\t\t\t72.266,\n\t\t\t-72.266,\n\t\t\t-72.266,\n\t\t\t72.266\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.verticalDisplacementTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "public boolean equalsIdentical(MyVector V) {\n if (V.ON != ON) return false;\n V.compress();\n compress();\n for (int i = 0; i < ON; i++) {\n if (V.O[i] != O[i]) return false;\n }\n return true;\n }", "public boolean almostEquals(Vect3 v) {\n\t\treturn Util.almost_equals(x,v.x) && Util.almost_equals(y,v.y) && \n\t\t\t\tUtil.almost_equals(z,v.z);\n\t}", "@Test\n public void testGetMatrixFromVector() {\n System.out.println(\"getMatrixFromVector\");\n Vector instance = null;\n Matrix expResult = null;\n Matrix result = instance.getMatrixFromVector();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void length() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.length(a, 2);\n assertTrue(Math.abs(result*result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.length(a2);\n assertTrue(Math.abs(result2*result2-expect) < 1E-6f);\n }", "double V2Dot(Position a, Position b){\r\n\t\treturn((a.getX() * b.getX())+(a.getY() * b.getY()));\r\n\t}", "static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }", "@Test\n public void testAsinsBehaveSimilarly() {\n double tolerance = 0.00000001;\n double standardAsin1 = Math.asin(1);\n double j2meAsin1 = MathUtils.asin(1);\n Assert.assertTrue(\"Math.asin(1) = \" + standardAsin1\n + \", while MathUtils.asin(1) = \" + j2meAsin1,\n Math.abs(standardAsin1 - j2meAsin1) < tolerance);\n }", "public static boolean closeToAnyOf(ArrayList<Vector> vectors, Vector v, double epsilon) {\r\n \r\n for(Vector w : vectors){ \r\n if( Vector.distanceSquared(v,w) < epsilon ){ return true; }\r\n }\r\n return false;\r\n }", "private static boolean checkLikelyEqual(EquationSystem system, Map<Sort, List<Term>> smallTerms) {\n //int searchDepth = 0;\n //Term convergence = null;\n\n return true;\n /*\n\n for (int i = 0; i < 2; i++) {\n Set<Term> leftTerms = new HashSet<>();\n Set<Term> rightTerms = new HashSet<>();\n\n Term left = system.getGoal().getLeft();\n Term right = system.getGoal().getRight();\n\n for (Variable var : left.getVariables()) {\n left = left.substitute(var, smallTerms.get(var.getSort()).get(i));\n right = right.substitute(var, smallTerms.get(var.getSort()).get(i));\n }\n\n leftTerms.add(left);\n rightTerms.add(right);\n\n Logger.d(\"Checking convergence of \" + left.toString() + \" to \" + right.toString());\n\n while (convergence == null && searchDepth < 5) {\n leftTerms.addAll(Prover.rewriteAll(leftTerms, system.getEquations(), null, true, true));\n rightTerms.addAll(Prover.rewriteAll(rightTerms, system.getEquations(), null, true, true));\n\n searchDepth++;\n convergence = checkConvergence(leftTerms, rightTerms);\n }\n\n if (convergence == null) {\n return false;\n }\n }\n\n return true;*/\n }", "@Test\r\n\tpublic void testEqualsEU() {\r\n\t\tExternUnit externu2 = externu1.clone();\r\n\t\tassertTrue(externu1.equals(externu2));\r\n\t}", "@Test\r\n public void testCrSortVector() {\r\n System.out.println(\"CrSortVector\");\r\n int[] vector = {1,8,3,4};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {1,3,4,8};\r\n int[] result = instance.CrSortVector(vector);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "public static boolean doubleEqual(double d1, double d2) {\n if (Double.isNaN(d1) || Double.isNaN(d2)) {\n return false;\n }\n return Math.abs(d1 - d2) < EPSILON;\n }", "public boolean equals(MyVector V) {\n if (V.ON != ON) return false;\n V.compress();\n compress();\n for (int i = 0; i < ON; i++) {\n if (!V.O[i].equals(O[i])) return false;\n }\n return true;\n }", "final public static boolean approximately_equal(double a, double b,\n \t\t\tdouble epsilon) {\n \t\treturn (Math.abs(a - b) <= epsilon);\n \t}", "public boolean equals(AttributeVector o) {\n\t\tif (o == null) return false;\n\t\tif (this == o) return true;\n\t\tif (getClass() != o.getClass()) return false;\n\t\treturn compareTo((AttributeVector) o) == 0;\n\t}", "@Test\n public void testCyclicalIdentity() {\n Vector a = Vector.of(Variable.of(\"a1\"), Variable.of(\"a2\"), Variable.of(\"a3\"));\n Vector b = Vector.of(Variable.of(\"b1\"), Variable.of(\"b2\"), Variable.of(\"b3\"));\n Vector c = Vector.of(Variable.of(\"c1\"), Variable.of(\"c2\"), Variable.of(\"c3\"));\n Vector lhs = a.cross(b).cross(c);\n lhs = lhs.simplify();\n Vector rhs = b.times(a.dot(c)).plus(a.times(b.dot(c)).times(Constant.MINUS_ONE));\n rhs = rhs.simplify();\n Assert.assertEquals(lhs.getValues()[0], rhs.getValues()[0]);\n Assert.assertEquals(lhs.getValues()[1], rhs.getValues()[1]);\n Assert.assertEquals(lhs.getValues()[2], rhs.getValues()[2]);\n Assert.assertEquals(lhs, rhs);\n }", "public V difference(V v1, V v2);", "public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }", "@Test\n\tpublic void perpVector3D() {\n\t\tVector3f v1 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\tVector3f v2 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\t\n\t\tdouble dotProduct = v1.dot(v2);\n\t\tdouble perpProduct = Math.abs(v1.perp(v2));\n\t\tdouble angle = v1.angle(v2);\n\t\t\n\t\tassertEpsilonEquals(Math.tan(angle),perpProduct/dotProduct);\n\t\t\n\t}", "public float CalculateSimilarityByVector(float[] v1, float[] v2) {\n\t\t\n\t\tfloat similarity = 0f;\n\t\t\n\t\tfloat numerator = 0f;\n\t\tfor(int i = 0; i < v1.length; i++) {\n\t\t\tnumerator += v1[i] * v2[i];\n\t\t}\n\t\t\n\t\tfloat v1Denom = 0f;\n\t\tfor(int i = 0; i < v1.length; i++) {\n\t\t\tv1Denom += Math.pow(v1[i], 2);\n\t\t}\n\t\tfloat v2Denom = 0f;\n\t\tfor(int i = 0; i < v2.length; i++) {\n\t\t\tv2Denom += Math.pow(v2[i], 2);\n\t\t}\n\t\t\n\t\tfloat denominator = (float) (Math.sqrt(v1Denom) * Math.sqrt(v2Denom));\n\t\t\n\t\tsimilarity = numerator / denominator;\n\t\t\n\t\treturn similarity;\n\t}", "@Test\n @DisplayName(\"Test should detect inequality between unequal states.\")\n public void testShouldResultInInequality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Goodbye\");\n\n Assertions.assertThat(os1).isNotEqualTo(os2);\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Vector3 other = (Vector3) obj;\n if (Double.doubleToLongBits(this.x) != Double.doubleToLongBits(other.x)) {\n return false;\n }\n if (Double.doubleToLongBits(this.y) != Double.doubleToLongBits(other.y)) {\n return false;\n }\n if (Double.doubleToLongBits(this.z) != Double.doubleToLongBits(other.z)) {\n return false;\n }\n if (Double.doubleToLongBits(this.magnitude) != Double.doubleToLongBits(other.magnitude)) {\n return false;\n }\n return true;\n }", "public static boolean compareListElements(ArrayList<Double> a,ArrayList<Double> b){\n\t\t\n\t\tif(a==null && b==null)\n\t\t\treturn true;\n\t\t\n\t\tif(a.size()!=b.size())\n\t\t\treturn false;\n\t\t\n\t\tint i=0,j,k;\n\t\t\n\t\twhile(i<a.size())\n\t\t{\n\t\t\tj=(int) (100*a.get(i));\n\t\t\tk=(int) (100*b.get(i));\n\t\t\t\n\t\t\tif(j!=k)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean equals(Object vec) {\r\n\t\tif (vec == null)\r\n\t\t\treturn false;\r\n\t\ttry {\r\n\t\t\treturn (Util.fuzzyEquals(this.getX(),\r\n\t\t\t\t\t((Vector) vec).getX()) && Util.fuzzyEquals(\r\n\t\t\t\t\tthis.getY(), ((Vector) vec).getY()));\r\n\t\t} catch (ClassCastException ex) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "static boolean sumEquals(double u, double v, double w) {\n return (u + v == w) && (u == w - v) && (v == w - u);\n }", "public static double unitVector(VCAgent agent,VCAgent anchor1, VCAgent anchor2, boolean useLocal){\r\n\t\tdouble hNiAj = getVCTable(agent, useLocal).getNumberOfHops(agent, anchor1);\r\n\t\tdouble hNiAk = getVCTable(agent, useLocal).getNumberOfHops(agent, anchor2);\r\n\t\tdouble hAjAk = getVCTable(agent, useLocal).getNumberOfHops(anchor1, anchor2);\r\n\t\treturn 1/(2* hAjAk) * (Math.pow(hNiAj, 2) - Math.pow(hNiAk, 2));\r\n\t}", "static boolean collinear(PointDouble p, PointDouble q, PointDouble r) {\n return Math.abs(cross(vector(p, q), vector(p, r))) < EPS;\n }", "@Test\n public void getNormal_test() \n {\n\t // ============ Equivalence Partitions Tests ==============\n\t // TC01\n\t Plane pln= new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n\t assertEquals(pln.getNormal(new Point3D(0,1,0)), new Vector(0.5773502691896258, 0.5773502691896258, 0.5773502691896258));\n }", "@Test\n\tpublic void turnVectorVector3DDouble() {\n\t\tVector3f vector = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\tVector3f axis = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\taxis.normalize();\n\t\tdouble angle = this.random.nextDouble();\n\t\t\n\t\tMatrix3f turn = new Matrix3f(\n\t\t\t\taxis.getX()*axis.getX()+(1-axis.getX()*axis.getX())*Math.cos(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))-axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))+axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))+axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getY()+(1-axis.getY()*axis.getY())*Math.cos(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))-axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))-axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))+axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getZ()*axis.getZ()+(1-axis.getZ()*axis.getZ())*Math.cos(angle));\n\t\t\n\t\tVector3f vectorTurned = vector.mul(turn);\n\t\tvector.turnVector(axis, angle);\n\t\t\n\t\tassertEpsilonEquals(vector.length(),vectorTurned.length());\n\t\tassertEpsilonEquals(vector.signedAngle(new Vector3f(1,0,0)),vectorTurned.signedAngle(new Vector3f(1,0,0)));\n\t\tassertTrue(vector.equals(vectorTurned));\n\t}", "private static void assertNotEquals(String message, double a, double b, double epsilon)\n {\n assertTrue(message, Math.abs(a - b) > epsilon);\n }", "private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}", "@Test\n public void testRotateVector(){\n\n double [] v = new double[2]; // input vector\n double[] transformedV; // output vector\n\n v[0] = 0;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 1;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 1);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n }", "public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }" ]
[ "0.6916876", "0.67574453", "0.6735053", "0.665552", "0.6652667", "0.6613491", "0.65303576", "0.6522241", "0.6509495", "0.65077245", "0.65070415", "0.647339", "0.64072436", "0.61842704", "0.61735266", "0.61646986", "0.61328524", "0.61132187", "0.60962176", "0.6093609", "0.6085377", "0.6062352", "0.60337585", "0.6030053", "0.5990413", "0.59824777", "0.59749913", "0.5949238", "0.5871384", "0.5870723", "0.58426666", "0.57870835", "0.57526827", "0.5747382", "0.5733057", "0.5694477", "0.56879234", "0.56844884", "0.5681647", "0.56753993", "0.56720114", "0.56669223", "0.56642187", "0.5645112", "0.56448096", "0.5642947", "0.56171894", "0.5609589", "0.55830973", "0.5573532", "0.5549486", "0.55347884", "0.5525101", "0.5509775", "0.55067086", "0.54946464", "0.549356", "0.5493273", "0.5474358", "0.5459982", "0.5456358", "0.5453542", "0.54487467", "0.54486585", "0.54352313", "0.5425908", "0.5419089", "0.5394433", "0.5392179", "0.53833413", "0.5381146", "0.53787315", "0.5347978", "0.5346913", "0.5342007", "0.53419715", "0.53334206", "0.5323952", "0.5310948", "0.5300152", "0.52997243", "0.5297962", "0.5290218", "0.52884144", "0.5284011", "0.5276335", "0.5271471", "0.5268705", "0.5265566", "0.52651495", "0.5261325", "0.5257309", "0.5252344", "0.5241111", "0.5239897", "0.5234602", "0.5234575", "0.52316076", "0.5225554", "0.52215207" ]
0.55614
50
are two vectors equal. vectors are NOT normalized
public boolean isEqualTo(CMLVector3 v, double eps) { boolean ok = true; for (int i = 0; i < 3; i++) { if (Math.abs(this.getXYZ3()[i] - v.getXYZ3()[i]) > eps) { ok = false; break; } } return ok; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "public static boolean equal(VectorIntf x, VectorIntf y) {\r\n if (x==null && y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"both args null\");\r\n if (x==null || y==null) return false;\r\n if (x.getNumCoords()!=y.getNumCoords()) return false;\r\n // short-cut for specific sparse vectors\r\n if (x instanceof DblArray1SparseVector && \r\n\t\t\t y instanceof DblArray1SparseVector)\r\n return ((DblArray1SparseVector) x).equals((DblArray1SparseVector) y);\r\n for (int i=0; i<x.getNumCoords(); i++) {\r\n if (Double.compare(x.getCoord(i),y.getCoord(i))!=0) return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Vector other){\n\t\treturn x == other.x && y == other.y && z == other.z;\n\t}", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "@Test\n void normalize() {\n\n Vector v = new Vector(1, 2, 3);\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n if (vCopy != vCopyNormalize)\n fail(\"ERROR: normalize() function creates a new vector\");\n if (!isZero(vCopyNormalize.length() - 1))\n fail(\"ERROR: normalize() result is not a unit vector\");\n Vector u = v.normalized();\n if (u == v)\n fail(\"ERROR: normalized() function does not create a new vector\");\n }", "@Test//test equal\n public void testEqual() {\n MyVector vD1 = new MyVector(ORIGINALDOUBLEARRAY);\n MyVector vD2 = new MyVector(ORIGINALDOUBLEARRAY);\n double[] doubleArray = new double[]{3.0, 2.3, 1.0, 0.0, -1.1};\n MyVector diffVD3 = new MyVector(doubleArray);\n assertEquals(true, vD1.equal(vD2));\n assertEquals(false, vD1.equal(diffVD3));\n MyVector vI1 = new MyVector(ORIGINALINTARRAY);\n MyVector vI2 = new MyVector(ORIGINALINTARRAY);\n int[] intArray = new int[]{1, 2, 3, 4};\n MyVector vI3 = new MyVector(intArray);\n assertEquals(true, vI1.equal(vI2));\n assertEquals(false, vI1.equal(vI3));\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean vectorEquals(int[] v, int[] w) { return Arrays.equals(v, w); }", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "double computeSimilarity(double[] vector1, double[] vector2) {\n\n // We need doubles for these so the math is done correctly. Else we only\n // return 1 or 0.\n double nDifferences = 0.;\n double lengthOfVector = (double) vector1.length;\n\n for (int i = 0; i < vector1.length; i++) {\n if (vector1[i] != vector2[i]) {\n nDifferences ++;\n }\n } \n return (1. - (nDifferences/lengthOfVector));\n }", "@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }", "public boolean equals(Vector330Class v){\n return (Math.abs(this.x-v.x) <= EPS || Math.abs(this.y-v.y) <= EPS);\n }", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "public static double getResemblance(Vector<Long> v1, Vector<Long> v2) {\n int minSize = Math.min(v1.size(), v2.size());\n int count = 0;\n for (int i=0; i < minSize; i++) {\n if (v1.get(i) != -1 && (v1.get(i).equals(v2.get(i)))) {\n count++;\n } //else {\n //System.out.println(\"in position \"+i+\": \"+v1.get(i)+\" is different from \"+v2.get(i));\n //}\n }\n return count/(double) minSize;\n }", "@Override\n public boolean equals(Object o){\n if(!(o instanceof DoubleVector2)) return false;\n DoubleVector2 dv = (DoubleVector2) o;\n return dv.getVectorOne().equals(dv.getVectorTwo());\n }", "private double vectDist(double[] a,double[] b) {\n\t\tdouble out = Double.NEGATIVE_INFINITY;\n\t\tfor (int i = 0; i <a.length;i++) {\n\t\t\tdouble diff = Math.abs(a[i]-b[i]);\n\t\t\tif (diff > out)\n\t\t\t\tout = diff;\n\t\t}\n\t\treturn out;\n\t}", "public boolean equals(Vector3D v, Vector3D w) {\n double epsilon = 1e-9;\n return (Math.abs(v.xCoord - w.xCoord) < epsilon\n && Math.abs(v.yCoord - w.yCoord) < epsilon\n && Math.abs(v.zCoord - w.zCoord) < epsilon);\n }", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "@Test\n public void epsilonEquals() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.epsilonEquals(a, 2, b, 3, 0.01f));\n assertTrue(! Vec4f.epsilonEquals(a, 0, b, 0, 0.01f));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.01f, 2.02f, 3.03f, 4.04f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.epsilonEquals(a4,b4, 0.05f));\n assertTrue(!Vec4f.epsilonEquals(a4,b4, 0.02f));\n assertTrue(!Vec4f.epsilonEquals(a4,c4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,d4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,e4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,f4, 0.1f));\n \n }", "public boolean isVector() {\n return mat.getNumRows() == 1 || mat.getNumCols() == 1;\n }", "@Test\n public void normalize() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float len = (float) Math.sqrt(86.0);\n float[] expect = new float[] {3.0f/len, 4.0f/len, 5.0f/len, 6.0f/len};\n // 1)\n Vec4f.normalize(dest, 4, a, 2);\n float newLen = Vec4f.length(dest, 4);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n assertTrue(Math.abs(newLen-1.0f) < 1E-5f);\n \n //2)\n Vec4f.normalize(a, 2);\n float newLen2 = Vec4f.length(dest, 4);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-5f));\n assertTrue(Math.abs(newLen2-1.0f) < 1E-5f);\n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n //3)\n Vec4f.normalize(dest2, a2);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n //4) \n Vec4f.normalize(a2);\n assertTrue(Vec4f.epsilonEquals(a2, expect, 1E-5f));\n \n }", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "public abstract boolean isSameDirection(double[] direction1, double[] direction2);", "boolean hasVector2Value();", "public boolean\n\tequals( Vector3 other ) \n\t{\n\t\treturn( data[0] == other.data[0]\n\t\t\t&& data[1] == other.data[1]\n\t\t\t&& data[2] == other.data[2] );\n\t}", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "@Test\n public void dot() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 2.0f, 6.0f, 4.0f, 4.0f, 5.0f};\n float expect = 74.0f;\n // 1)\n result = Vec4f.dot(a, 2, b, 1);\n assertTrue(Math.abs(result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {2.0f, 6.0f, 4.0f, 4.0f};\n float result2 = Vec4f.dot(a2, b2);\n assertTrue(Math.abs(result2-expect) < 1E-6f);\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "public boolean almostEqual(Coordinates a, Coordinates b);", "@Override\n public boolean isDifferent(FastVector... predictions) {\n if (predictions != null && predictions.length == 2){\n return isDifferent(predictions[0],predictions[1]);\n }\n throw new IllegalArgumentException();\n }", "public boolean equals(Vector2F v) {\n\t\treturn (this.xPos == v.xPos && this.yPos == v.yPos);\n\t}", "public boolean equals(AttributeVector o) {\n\t\tif (o == null) return false;\n\t\tif (this == o) return true;\n\t\tif (getClass() != o.getClass()) return false;\n\t\treturn compareTo((AttributeVector) o) == 0;\n\t}", "public boolean equalsIdentical(MyVector V) {\n if (V.ON != ON) return false;\n V.compress();\n compress();\n for (int i = 0; i < ON; i++) {\n if (V.O[i] != O[i]) return false;\n }\n return true;\n }", "static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "public static boolean isValidVector(double x, double y){\r\n\t\treturn (isValidComponent(x) && isValidComponent(y));\r\n\t}", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "@Override\n public boolean equals(Object o) {\n if (o instanceof Vector2) {\n boolean value = false;\n if (o.hashCode() == this.hashCode()) {\n value = true;\n }\n return value;\n } else {\n return false;\n }\n }", "private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}", "public Vector normalize ( );", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "@Test\n public void testGetIntersect() throws Exception {\n Vector farIntersect = sphere.getIntersect(new Vector(0,0,0),new Vector(0,-6,10));\n assertTrue(farIntersect.equals(new Vector(0,-6,10)));\n }", "public boolean almostEquals(Vect3 v) {\n\t\treturn Util.almost_equals(x,v.x) && Util.almost_equals(y,v.y) && \n\t\t\t\tUtil.almost_equals(z,v.z);\n\t}", "public static boolean AreEqual(double a, double b)\n {\n return Math.abs(a - b) < EPSILON;\n }", "@Override\n\tpublic boolean\n\tequals( Object other ) \n\t{\n\t\tVector3 v;\n\n\t\tif( ! ( other instanceof Vector3 ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tv = (Vector3) other;\n\t\n\t\treturn( data[0] == v.data[0]\n\t\t\t&& data[1] == v.data[1]\n\t\t\t&& data[2] == v.data[2] );\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Vector3 other = (Vector3) obj;\n if (Double.doubleToLongBits(this.x) != Double.doubleToLongBits(other.x)) {\n return false;\n }\n if (Double.doubleToLongBits(this.y) != Double.doubleToLongBits(other.y)) {\n return false;\n }\n if (Double.doubleToLongBits(this.z) != Double.doubleToLongBits(other.z)) {\n return false;\n }\n if (Double.doubleToLongBits(this.magnitude) != Double.doubleToLongBits(other.magnitude)) {\n return false;\n }\n return true;\n }", "public static boolean hasRotated(MutableVector first, MutableVector second) {\n return first.getY() != second.getY() || first.getX() != second.getX();\n }", "public float CalculateSimilarityByVector(float[] v1, float[] v2) {\n\t\t\n\t\tfloat similarity = 0f;\n\t\t\n\t\tfloat numerator = 0f;\n\t\tfor(int i = 0; i < v1.length; i++) {\n\t\t\tnumerator += v1[i] * v2[i];\n\t\t}\n\t\t\n\t\tfloat v1Denom = 0f;\n\t\tfor(int i = 0; i < v1.length; i++) {\n\t\t\tv1Denom += Math.pow(v1[i], 2);\n\t\t}\n\t\tfloat v2Denom = 0f;\n\t\tfor(int i = 0; i < v2.length; i++) {\n\t\t\tv2Denom += Math.pow(v2[i], 2);\n\t\t}\n\t\t\n\t\tfloat denominator = (float) (Math.sqrt(v1Denom) * Math.sqrt(v2Denom));\n\t\t\n\t\tsimilarity = numerator / denominator;\n\t\t\n\t\treturn similarity;\n\t}", "@Test\n public void negate() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect = new float[] {-3.003f, -4.004f, -5.005f, -6.006f};\n // 1)\n Vec4f.negate(dest, 4, a, 2);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n // 2)\n Vec4f.negate(a, 2);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-6f));\n \n float[] dest1 = new float[4]; \n float[] a1 = new float[] { 3.003f, 4.004f, 5.005f, 6.006f}; \n \n // 3)\n Vec4f.negate(dest1, a1);\n assertTrue(Vec4f.epsilonEquals(dest1, expect, 1E-6f));\n // 4)\n Vec4f.negate(a1);\n assertTrue(Vec4f.epsilonEquals(a1, expect, 1E-6f));\n }", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "static boolean areSame(String expr1, String expr2)\n\t{\n\n\t\t// Create a vector for all operands and\n\t\t// initialize the vector as 0.\n\t\tint[] v = new int[MAX_CHAR];\n\n\t\t// Put signs of all operands in expr1\n\t\teval(expr1, v, true);\n\n\t\t// Subtract signs of operands in expr2\n\t\teval(expr2, v, false);\n\n\t\t// If expressions are same, vector must\n\t\t// be 0.\n\t\tfor (int i = 0; i < MAX_CHAR; i++)\n\t\t\tif (v[i] != 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public Coordinates unitVector(Coordinates vector);", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "private final static boolean equivalent(Automaton automaton,\n\t\t\tBinaryMatrix equivs, Automaton.Bag b1, Automaton.Bag b2) {\n\t\tint b1_size = b1.size();\n\t\tint b2_size = b2.size();\n\n\t\tif (b1_size != b2_size) {\n\t\t\t// Observe that, unlike a set, the size of a bag will never be\n\t\t\t// changed by the identification of equivalent states. Therefore,\n\t\t\t// the size of both collection must be identical, otherwise they can\n\t\t\t// never be equivalent.\n\t\t\treturn false;\n\t\t}\n\n\t\tint[] b1_children = b1.children;\n\t\tint[] b2_children = b2.children;\n\t\t// maps vertices in b2 to those they are matched against in b1\n\t\tint[] matches = new int[b1_size];\n\t\tArrays.fill(matches, -1);\n\t\t// Used to ensure no vertex is explored more than once during\n\t\t// reconfiguration.\n\t\tboolean[] visited = new boolean[b1_size];\n\t\t\n\t\t// For every state in s1\n\t\tfor (int i = 0; i != b1_size; ++i) {\n\t\t\tint b1_child = b1_children[i];\n\t\t\tif(b1_child < 0) {\n\t\t\t\t// In this case, we have to do something different.\n\t\t\t\tif(!findNegativeMatch(i,b1_children,b2_children,equivs,matches)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tArrays.fill(visited,false);\n\t\t\t\tif(!findMatch(i,b1_children,b2_children,equivs,matches,visited)) {\n\t\t\t\t\t// If we can't find a match, then it's game over and we know for\n\t\t\t\t\t// sure these two states are not equivalent.\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean equals(MyVector V) {\n if (V.ON != ON) return false;\n V.compress();\n compress();\n for (int i = 0; i < ON; i++) {\n if (!V.O[i].equals(O[i])) return false;\n }\n return true;\n }", "@Test\n public void set() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n Vec4f.set(a, 2, b, 1);\n assertTrue(Vec4f.equals(a, 2, expect, 0));\n \n float[] expect2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f};\n Vec4f.set(a, b);\n assertTrue(Vec4f.equals(a, expect2));\n \n \n float[] a3 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect3 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a3,2, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a3, 2, expect3, 0));\n \n float[] a4 = new float[4]; \n float[] expect4 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a4, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a4, expect4));\n }", "public static synchronized Vector diff(Vector left, Vector right)\n\t throws IcofException {\n\n\tString funcName = new String(\"diff(Vector, Vector)\");\n\n\t// If the \"right\" Vector is null or empty, just return the \"left\"\n\t// Vector.\n\t// There's no point in cycling through the entire \"left\" Vector, in this\n\t// case.\n\tif ((right == null) || (right.isEmpty())) {\n\t return left;\n\t}\n\n\tVector aDiff = new Vector();\n\n\ttry {\n\n\t for (int i = 0; i < left.size(); i++) {\n\t\tObject o = (Object) left.elementAt(i);\n\t\tif (!right.contains(o)) {\n\t\t aDiff.add(o);\n\t\t}\n\t }\n\n\t aDiff.trimToSize();\n\t} catch (Exception e) {\n\t IcofException ie = new IcofException(CLASS_NAME, funcName,\n\t\t IcofException.SEVERE,\n\t\t \"Error creating difference of Vectors \", \"\");\n\t throw (ie);\n\t}\n\n\treturn aDiff;\n }", "@Override\r\n\tpublic boolean equals(Object vec) {\r\n\t\tif (vec == null)\r\n\t\t\treturn false;\r\n\t\ttry {\r\n\t\t\treturn (Util.fuzzyEquals(this.getX(),\r\n\t\t\t\t\t((Vector) vec).getX()) && Util.fuzzyEquals(\r\n\t\t\t\t\tthis.getY(), ((Vector) vec).getY()));\r\n\t\t} catch (ClassCastException ex) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }", "private boolean isThereEquivalenceBetweenNorms(Norm norm1, Norm norm2) {\n\t\tboolean conflictContext = contextChecker(norm1, norm2);\n\t\tif (!conflictContext) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// returns true if the if the entities are the same OR one is ALL\n\t\tboolean conflictEntity = entityChecker(norm1, norm2);\n\t\tif (!conflictEntity) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// returns true if there is not conflict between activation and deactivation constraint\n\t\tboolean conflictConstraint = constraintChecker(norm1, norm2);\n\t\tif (!conflictConstraint) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// returns true if the action are the same\n\t\tboolean conflictAction = actionChecker(norm1, norm2);\n\t\tif (!conflictAction) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// at this moment all conditions are valid and the norms are in conflict\n\t\treturn true;\n\t}", "boolean hasIsEquivalent();", "public static float Dot(Vector a, Vector b){\n if(a.axis.length == b.axis.length) {\n float dot = 0f;\n for (int i = 0; i < a.axis.length; i++) {\n dot += a.axis[i] * b.axis[i];\n }\n return dot;\n }\n return 0f;\n }", "public boolean almostEqual(double a, double b);", "@Test\n public void testCyclicalIdentity() {\n Vector a = Vector.of(Variable.of(\"a1\"), Variable.of(\"a2\"), Variable.of(\"a3\"));\n Vector b = Vector.of(Variable.of(\"b1\"), Variable.of(\"b2\"), Variable.of(\"b3\"));\n Vector c = Vector.of(Variable.of(\"c1\"), Variable.of(\"c2\"), Variable.of(\"c3\"));\n Vector lhs = a.cross(b).cross(c);\n lhs = lhs.simplify();\n Vector rhs = b.times(a.dot(c)).plus(a.times(b.dot(c)).times(Constant.MINUS_ONE));\n rhs = rhs.simplify();\n Assert.assertEquals(lhs.getValues()[0], rhs.getValues()[0]);\n Assert.assertEquals(lhs.getValues()[1], rhs.getValues()[1]);\n Assert.assertEquals(lhs.getValues()[2], rhs.getValues()[2]);\n Assert.assertEquals(lhs, rhs);\n }", "public static boolean isSubset(Vector v1, Vector v2) {\n\t\tif (v1 == null || v2 == null || v1.equals(v2) || v1.size() >= v2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (Object o1 : v1) {\n\t\t\tif (!v2.contains(o1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "Boolean isOmitNorms();", "@Test\n public void sub() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {2.003f, -1.996f, 2.005f, 4.006f };\n Vec4f.sub(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(a4, b4);\n assertTrue(Vec4f.epsilonEquals(a4, expect4, 1E-6f));\n }", "public static boolean isVector(int[] v) { return v != null && v.length == 2; }", "@Override\n public VectorEquality compareTo(PredicateVector vectorCmp) {\n try {\n PredicateVector vectorLarge;\n PredicateVector vectorSmall;\n VectorEquality cmpResult;\n \n if (flagged || vectorCmp.flagged) {\n return VectorEquality.UNIQUE;\n }\n \n // TODO: add size check\n \n if (this.size() > vectorCmp.size() && !this.values().iterator().next().isEmpty()) {\n vectorLarge = this;\n vectorSmall = vectorCmp;\n cmpResult = VectorEquality.SUPERSET;\n } else {\n vectorLarge = vectorCmp;\n vectorSmall = this;\n cmpResult = VectorEquality.SUBSET;\n }\n \n int largeVectorIter = 0;\n int numEq = 0;\n \n List<Integer> vectorSmallKeys = new ArrayList<Integer>(vectorSmall.keySet());\n Collections.sort(vectorSmallKeys);\n \n List<Integer> vectorLargeKeys = new ArrayList<Integer>(vectorLarge.keySet());\n Collections.sort(vectorLargeKeys);\n\n int i = 0;\n\n for (Integer smallVectorKey: vectorSmallKeys) {\n StateVector smallVectorState = vectorSmall.get(smallVectorKey);\n // Check if we have not iterated over all large vector states\n if (largeVectorIter >= vectorLargeKeys.size() && !smallVectorState.isEmpty()) {\n cmpResult = VectorEquality.UNIQUE;\n break;\n }\n \n \n for (i = largeVectorIter; i < vectorLargeKeys.size(); i++) {\n StateVector largeVectorState = vectorLarge.get(vectorLargeKeys.get(i));\n VectorEquality cmpVectorResult = smallVectorState.compareTo(largeVectorState); \n if (cmpVectorResult == VectorEquality.EQUAL) {\n numEq += 1;\n break;\n }\n \n if (cmpVectorResult == VectorEquality.SUPERSET || cmpVectorResult == VectorEquality.SUBSET) {\n cmpResult = cmpVectorResult;\n numEq += 1;\n break;\n }\n }\n \n largeVectorIter = i + 1; // TODO: double check i+1\n }\n \n if (numEq < vectorSmall.size() && !vectorSmall.values().iterator().next().isEmpty())\n cmpResult = VectorEquality.UNIQUE;\n \n return cmpResult;\n } catch (ArrayIndexOutOfBoundsException e) {\n e.printStackTrace();\n }\n \n return VectorEquality.UNIQUE;\n }", "private Point2D.Double calcVec(Point2D.Double a, Point2D.Double b)\n\t{\n\t\treturn new Point2D.Double((b.getX() - a.getX()), (b.getY() - a.getY()));\n\t}", "public boolean isEquilateral() {\r\n double d1 = pointA.distance(pointB);\r\n double d2 = pointA.distance(pointC);\r\n double d3 = pointB.distance(pointC);\r\n \r\n return(Math.abs(d1 - d2) < EPSILON && Math.abs(d1 - d3) < EPSILON && (Math.abs(d2 - d3) < EPSILON));\r\n }", "public static float sameDirection(Vector2f v1, Vector2f v2)\n {\n return v1.dot(v2) / (v1.length() * v2.length()); // 0 - pi\n }", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "@Test\n public void length() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.length(a, 2);\n assertTrue(Math.abs(result*result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.length(a2);\n assertTrue(Math.abs(result2*result2-expect) < 1E-6f);\n }", "boolean hasSameAs();", "public static double unitVector(VCAgent agent,VCAgent anchor1, VCAgent anchor2, boolean useLocal){\r\n\t\tdouble hNiAj = getVCTable(agent, useLocal).getNumberOfHops(agent, anchor1);\r\n\t\tdouble hNiAk = getVCTable(agent, useLocal).getNumberOfHops(agent, anchor2);\r\n\t\tdouble hAjAk = getVCTable(agent, useLocal).getNumberOfHops(anchor1, anchor2);\r\n\t\treturn 1/(2* hAjAk) * (Math.pow(hNiAj, 2) - Math.pow(hNiAk, 2));\r\n\t}", "public static void main(String[] args) {\n int[] a = {4, 6, 3};\n int[] b = {6, 4, 3};\n System.out.println(areSimilar(a, b));\n\n }", "private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "@Test\r\n public void testMinMaxVector() {\r\n System.out.println(\"minMaxVector\");\r\n int[] vector = {1,8,3,4};\r\n VectorHelper instance = new VectorHelper();\r\n int[]expResult= {1,8};\r\n int []result=instance.minMaxVector(vector);\r\n assertArrayEquals(expResult,result);\r\n \r\n }", "private static boolean slowEquals(final byte[] a, final byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }", "private boolean notEqualFeatures(Instance inst1, Instance inst2) {\n\n for(int i = 0; i < m_Train.numAttributes(); i++){\n if(i == m_Train.classIndex())\n\tcontinue;\n if(inst1.value(i) != inst2.value(i))\n\treturn true;\n }\n return false;\n }", "@Test\n public void scale() {\n assertEquals(\"Wrong vector scale\", new Vector(1,1,1).scale(2), new Vector(2,2,2));\n }", "private static boolean slowEquals(byte[] a, byte[] b) {\r\n int diff = a.length ^ b.length;\r\n for (int i = 0; i < a.length && i < b.length; i++) {\r\n diff |= a[i] ^ b[i];\r\n }\r\n return diff == 0;\r\n }", "boolean equivalent(Concept x, Concept y);", "@Test\n @DisplayName(\"Test should detect inequality between unequal states.\")\n public void testShouldResultInInequality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Goodbye\");\n\n Assertions.assertThat(os1).isNotEqualTo(os2);\n }", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) return true;\n if (obj == null) return false;\n if (!(obj instanceof Vector)) return false;\n Vector oth = (Vector) obj;\n return head.equals(oth.head);\n }", "public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }", "@Test\r\n public void testParityVector() {\r\n System.out.println(\"parityVector\");\r\n int[] vector = {1,2,3};\r\n VectorHelper instance = new VectorHelper();\r\n String[] expResult = {\"impair\",\"pair\",\"impair\"};\r\n String[] result = instance.parityVector(vector);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Override\n\tpublic double getSimilarity(double[] a, double[] b) {\n\t\tVecUtils.checkDims(a,b);\n\t\tfinal int n = a.length;\n\t\tfinal double[] minV = VecUtils.pmin(a, b);\n\t\t\n\t\t// Get front\n\t\t// Originally: \n\t\t//\n\t\t// final double[] front = VecUtils.multiply(VecUtils.multiply(a, b), VecUtils.scalarAdd(minV, 1d));\n\t\t// final double[] mid1 = VecUtils.scalarDivide(VecUtils.add(a, b), 2);\n\t\t// final double[] mid2 = VecUtils.pow(minV, 2);\n\t\t// final double[] mid = VecUtils.multiplyForceSerial(mid1, mid2);\n\t\t// final double[] back = VecUtils.scalarDivide(VecUtils.pow(minV, 3), 3);\n\t\t// final double[] res = VecUtils.addForceSerial(VecUtils.subtractForceSerial(VecUtils.scalarAdd(front, 1), mid), back);\n\t\t// return VecUtils.prod(res);\n\t\t//\n\t\t// but this takes 12n (13n total!!)... can do it uglier, but much more elegantly in 1n (2n total):\n\t\tdouble[] front = new double[n], mid = new double[n], back = new double[n];\n\t\tdouble prod = 1;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfront[i] = a[i]*b[i] * (minV[i]+1);\n\t\t\tmid[i] = ((a[i]+b[i]) / 2) * (minV[i] * minV[i]);\n\t\t\tback[i] = FastMath.pow(minV[i], 3) / 3d;\n\t\t\tprod *= ( ((front[i]+1)-mid[i])+back[i] );\n\t\t}\n\t\t\n\t\treturn prod;\n\t}", "private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}", "public boolean isTheSame(CoordinateSystem cs) {\n // we need to introduce some order among the points before we can start comparing !\n double totalTolerance = 0.001;\n\n double dist1 = this.axis1.endsDistance(cs.axes.getKey()) + this.axis2.endsDistance(cs.axes.getValue());\n double dist2 = this.axis1.endsDistance(cs.axes.getValue()) + this.axis2.endsDistance(cs.axes.getKey());\n\n return (dist1 < totalTolerance || dist2 < totalTolerance);\n }", "public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "private static boolean intersectAxis(Vector2f[] points0, Vector2f[] points1, Vector2f normal) {\n\t\tfloat proj_dot_00 = getProjectionDot(points0[0], normal);\n\t\tfloat proj_dot_01 = getProjectionDot(points0[1], normal);\n\t\tfloat proj_dot_02 = getProjectionDot(points0[2], normal);\n\t\tfloat proj_dot_03 = getProjectionDot(points0[3], normal);\n\t\tfloat proj_dot_10 = getProjectionDot(points1[0], normal);\n\t\tfloat proj_dot_11 = getProjectionDot(points1[1], normal);\n\t\tfloat proj_dot_12 = getProjectionDot(points1[2], normal);\n\t\tfloat proj_dot_13 = getProjectionDot(points1[3], normal);\n\t\t\n\t\tfloat min_0 = Math.min(Math.min(proj_dot_00, proj_dot_01), Math.min(proj_dot_02, proj_dot_03));\n\t\tfloat max_0 = Math.max(Math.max(proj_dot_00, proj_dot_01), Math.max(proj_dot_02, proj_dot_03));\n\t\tfloat min_1 = Math.min(Math.min(proj_dot_10, proj_dot_11), Math.min(proj_dot_12, proj_dot_13));\n\t\tfloat max_1 = Math.max(Math.max(proj_dot_10, proj_dot_11), Math.max(proj_dot_12, proj_dot_13));\n\t\t\n\t\treturn max_0 >= min_1 && min_0 <= max_1;\n\t}", "boolean isEquilateral() {\r\n\t\treturn (side1 == side2 && side2 == side3 && side3 == side1);\r\n\t}" ]
[ "0.7454537", "0.69481117", "0.6795198", "0.6784128", "0.6748193", "0.6603182", "0.65347356", "0.6438219", "0.6428559", "0.636238", "0.6272405", "0.62549067", "0.6152348", "0.61319023", "0.6096431", "0.60903215", "0.6053904", "0.60482347", "0.5996878", "0.59607816", "0.593586", "0.59338766", "0.5926845", "0.5903101", "0.59021735", "0.5886363", "0.58722526", "0.587154", "0.5868001", "0.5866657", "0.5853234", "0.58519274", "0.5848256", "0.582929", "0.5826149", "0.58259004", "0.5819174", "0.5810013", "0.57796043", "0.5737528", "0.5675022", "0.56398004", "0.56346947", "0.5619788", "0.5612727", "0.5602781", "0.558827", "0.55864125", "0.558591", "0.55774534", "0.557352", "0.5567733", "0.5548662", "0.5537454", "0.5533931", "0.5527539", "0.5526869", "0.55097544", "0.55072486", "0.5494746", "0.54946554", "0.5488578", "0.54805785", "0.5479535", "0.54778934", "0.54676265", "0.54632604", "0.54619455", "0.5458509", "0.5453405", "0.5437288", "0.5430151", "0.5429215", "0.54101735", "0.5399685", "0.5388983", "0.53887665", "0.53613883", "0.5348562", "0.5335779", "0.5305791", "0.5302972", "0.52960753", "0.5295938", "0.5295279", "0.52928525", "0.52926046", "0.5291394", "0.5288292", "0.5285048", "0.52796096", "0.5278629", "0.52764255", "0.52659", "0.5264155", "0.52487713", "0.52447623", "0.52437294", "0.5243605", "0.5238365", "0.5234187" ]
0.0
-1
is one vector longer than another.
public boolean longerThan(CMLVector3 v) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? false : veucl3.longerThan(v .getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "private static void _assertSizeAlignment(boolean[] one, boolean[] other){\r\n assert one.length==other.length:\r\n String.format(\"Incompatible Arrays %s / %s\",one.length,other.length);\r\n }", "public static boolean isSubset(Vector v1, Vector v2) {\n\t\tif (v1 == null || v2 == null || v1.equals(v2) || v1.size() >= v2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (Object o1 : v1) {\n\t\t\tif (!v2.contains(o1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private double vectDist(double[] a,double[] b) {\n\t\tdouble out = Double.NEGATIVE_INFINITY;\n\t\tfor (int i = 0; i <a.length;i++) {\n\t\t\tdouble diff = Math.abs(a[i]-b[i]);\n\t\t\tif (diff > out)\n\t\t\t\tout = diff;\n\t\t}\n\t\treturn out;\n\t}", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "public boolean compareLength(Length l1, Length l2){\n return Double.compare(l1.value*l1.unit.baseUnitConversion, l2.value*l2.unit.baseUnitConversion) == 0;\n }", "public static double getResemblance(Vector<Long> v1, Vector<Long> v2) {\n int minSize = Math.min(v1.size(), v2.size());\n int count = 0;\n for (int i=0; i < minSize; i++) {\n if (v1.get(i) != -1 && (v1.get(i).equals(v2.get(i)))) {\n count++;\n } //else {\n //System.out.println(\"in position \"+i+\": \"+v1.get(i)+\" is different from \"+v2.get(i));\n //}\n }\n return count/(double) minSize;\n }", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\n }", "public double getLength() {\n\treturn CVector.subtract(v2, v1).getMag();\n }", "Vector getSize();", "public int vecLength();", "public boolean intersects(Range other) {\n if ((length() == 0) || (other.length() == 0)) {\n return false;\n }\n if (this == VLEN || other == VLEN) {\n return true;\n }\n\n int first = Math.max(this.first(), other.first());\n int last = Math.min(this.last(), other.last());\n\n return (first <= last);\n }", "@Test\n public void length() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 2.0f, 3.0f, 4.0f, 6.0f}; \n float expect = 65.0f;\n // 1)\n result = Vec4f.length(a, 2);\n assertTrue(Math.abs(result*result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {2.0f, 3.0f, 4.0f, 6.0f}; \n float result2 = Vec4f.length(a2);\n assertTrue(Math.abs(result2*result2-expect) < 1E-6f);\n }", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "@Property\n public boolean reverse_has_the_same_size_as_original(@ForAll List<?> original) {\n return Lists.reverse(original).size() == original.size();\n }", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean unsignedIntersects(CharBuffer set1, int length1, CharBuffer set2,\n int length2) {\n if ((0 == length1) || (0 == length2)) {\n return false;\n }\n int k1 = 0;\n int k2 = 0;\n\n // could be more efficient with galloping\n char s1 = set1.get(k1);\n char s2 = set2.get(k2);\n\n mainwhile: while (true) {\n if (s2 < s1) {\n do {\n ++k2;\n if (k2 == length2) {\n break mainwhile;\n }\n s2 = set2.get(k2);\n } while (s2 < s1);\n }\n if (s1 < s2) {\n do {\n ++k1;\n if (k1 == length1) {\n break mainwhile;\n }\n s1 = set1.get(k1);\n } while (s1 < s2);\n } else {\n return true;\n }\n }\n return false;\n }", "@Override\r\n\tpublic void larger() {\n\t\tsuper.larger();\r\n\t\twordSize = (int) Math.max((Math.abs(x2 - x1) + Math.abs(y2 - y1)) / 3, 2);\r\n\t}", "public boolean isLargerThan(Rectangle other){\n\t\treturn this.getArea() > other.getArea();\n\t\n\t}", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }", "boolean growing(boolean bothDimensions) {\n if (complete()) {\n if (bothDimensions)\n return (start2D.x < stop2D.x) && (start2D.y <= stop2D.y);\n else\n return (start2D.x < stop2D.x) || (start2D.y <= stop2D.y);\n } else\n return true;\n }", "public int returnLargerLength(ArrayList<String> listOne, ArrayList<String> listTwo) {\n if (listOne.size() > listTwo.size()) {\n return listOne.size();\n } else {\n return listTwo.size();\n }\n }", "public static int bigger(Vector<Double> k1, Vector<Double> k2)\n\t{\n\t\tif(k1.size() != k2.size()) return -1;\n\t\tif(k1.get(0)==k2.get(0))\n\t\t\tif(k1.get(1)==k2.get(1))\n\t\t\t\tif(k1.get(2)==k2.get(2))\n\t\t\t\t\treturn 0;\n\t\t\t\telse\n\t\t\t\t\tif(k1.get(2)>k2.get(2))\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn 2;\n\t\t\telse\n\t\t\t\tif(k1.get(1)>k2.get(1))\n\t\t\t\t\treturn 1;\n\t\t\t\telse\n\t\t\t\t\treturn 2;\n\t\telse\n\t\t\tif(k1.get(0)>k2.get(0))\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\treturn 2;\n\t}", "private boolean isFullSouth()\r\n\t{\r\n\t\treturn (southElem == maxSize);\r\n\t}", "public static boolean isVector(int[] v) { return v != null && v.length == 2; }", "@Override\n public VectorEquality compareTo(PredicateVector vectorCmp) {\n try {\n PredicateVector vectorLarge;\n PredicateVector vectorSmall;\n VectorEquality cmpResult;\n \n if (flagged || vectorCmp.flagged) {\n return VectorEquality.UNIQUE;\n }\n \n // TODO: add size check\n \n if (this.size() > vectorCmp.size() && !this.values().iterator().next().isEmpty()) {\n vectorLarge = this;\n vectorSmall = vectorCmp;\n cmpResult = VectorEquality.SUPERSET;\n } else {\n vectorLarge = vectorCmp;\n vectorSmall = this;\n cmpResult = VectorEquality.SUBSET;\n }\n \n int largeVectorIter = 0;\n int numEq = 0;\n \n List<Integer> vectorSmallKeys = new ArrayList<Integer>(vectorSmall.keySet());\n Collections.sort(vectorSmallKeys);\n \n List<Integer> vectorLargeKeys = new ArrayList<Integer>(vectorLarge.keySet());\n Collections.sort(vectorLargeKeys);\n\n int i = 0;\n\n for (Integer smallVectorKey: vectorSmallKeys) {\n StateVector smallVectorState = vectorSmall.get(smallVectorKey);\n // Check if we have not iterated over all large vector states\n if (largeVectorIter >= vectorLargeKeys.size() && !smallVectorState.isEmpty()) {\n cmpResult = VectorEquality.UNIQUE;\n break;\n }\n \n \n for (i = largeVectorIter; i < vectorLargeKeys.size(); i++) {\n StateVector largeVectorState = vectorLarge.get(vectorLargeKeys.get(i));\n VectorEquality cmpVectorResult = smallVectorState.compareTo(largeVectorState); \n if (cmpVectorResult == VectorEquality.EQUAL) {\n numEq += 1;\n break;\n }\n \n if (cmpVectorResult == VectorEquality.SUPERSET || cmpVectorResult == VectorEquality.SUBSET) {\n cmpResult = cmpVectorResult;\n numEq += 1;\n break;\n }\n }\n \n largeVectorIter = i + 1; // TODO: double check i+1\n }\n \n if (numEq < vectorSmall.size() && !vectorSmall.values().iterator().next().isEmpty())\n cmpResult = VectorEquality.UNIQUE;\n \n return cmpResult;\n } catch (ArrayIndexOutOfBoundsException e) {\n e.printStackTrace();\n }\n \n return VectorEquality.UNIQUE;\n }", "private boolean isBigger(int pos1, int pos2) {\n //Comparable c1 = heap.get(pos1);\n //Comparable c2 = heap.get(pos2);\n //return c1.compareTo(c2) > 0;\n return heap.get(pos1).compareTo(heap.get(pos2)) > 0;\n }", "public boolean equals(Vector other){\n\t\treturn x == other.x && y == other.y && z == other.z;\n\t}", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\n (long) rhs.getWidth() * rhs.getHeight());\n }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight()\n - (long) rhs.getWidth() * rhs.getHeight());\n }", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight()\n - (long) rhs.getWidth() * rhs.getHeight());\n }", "public boolean larger(CRational1 r) {\n\t\tint cn = (this.n * r.d) - (this.d * r.n);\r\n\t\tif (cn < 0)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\n (long) rhs.getWidth() * rhs.getHeight());\n }", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\n (long) rhs.getWidth() * rhs.getHeight());\n }", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\n (long) rhs.getWidth() * rhs.getHeight());\n }", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\n (long) rhs.getWidth() * rhs.getHeight());\n }", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\n (long) rhs.getWidth() * rhs.getHeight());\n }", "public boolean almostEqual(Coordinates a, Coordinates b);", "default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }", "public boolean isLargerThan(int length, int height){\n\t\treturn this.getArea() > (length * height);\n\t}", "@Override\r\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() -\r\n (long) rhs.getWidth() * rhs.getHeight());\r\n }", "public boolean checkInvariants() {\n\t\tRunningLengthWord rlw, prev;\n\n\t\ttry {\n\t\t\tEWAHIterator i =\n\t\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\t\t// test that actualsizeinwords complies with info in headers and\n\t\t\t// test that literal number is not > max\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tRunningLengthWord w = i.next();\n\t\t\t\tif (i.dirtyWords() > actualsizeinwords) {\n\t\t\t\t\tlog.error(i.dirtyWords() + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (i.pointer > actualsizeinwords) {\n\t\t\t\t\tlog.error(\"pointer \" + i.pointer + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getNumberOfLiteralWords() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max literals\"\n\t\t\t\t\t\t\t+ w.getNumberOfLiteralWords());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getRunningLength() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max running length \"\n\t\t\t\t\t\t\t+ w.getRunningLength());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check adjacent words for errors\n\t\t\trlw = new RunningLengthWord(buffer, 0);\n\t\t\tprev = rlw;\n\t\t\trlw = rlw.getNext();\n\n\t\t\twhile (rlw.position < actualsizeinwords\n\t\t\t\t\t&& rlw.position + rlw.getNumberOfLiteralWords() < actualsizeinwords) {\n\t\t\t\t// case 1) second word has no running length -> first one should\n\t\t\t\t// have max literal count\n\t\t\t\tif (rlw.getRunningLength() == 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tlog.error(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" dirty words followed by \"\n\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" number of dirty words \" + \"\\n\\n\"\n\t\t\t\t\t\t\t+ toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// case 2) both have running length for same bit and first one\n\t\t\t\t// has\n\t\t\t\t// no literals -> first one should have max running length\n\t\t\t\tif (prev.getRunningLength() > 0\n\t\t\t\t\t\t&& rlw.getRunningLength() > 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t&& prev.getRunningBit() == rlw.getRunningBit()\n\t\t\t\t\t\t&& prev.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"Two running length for same bit of length \"\n\t\t\t\t\t\t\t+ prev.getRunningLength() + \" and \"\n\t\t\t\t\t\t\t+ rlw.getRunningLength() + \"\\n\\n\" + toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tprev = rlw;\n\t\t\t\trlw = rlw.getNext();\n\t\t\t}\n\n\t\t\tif (!prev.equals(this.rlw)) {\n\t\t\t\tlog.error(\"Last word should have been \" + prev.toString()\n\t\t\t\t\t\t+ \" but was \" + this.rlw.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// the largest bit set == sizeinbits\n\t\t\tIntIterator it = intIterator();\n\t\t\tint greatest = -1;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tgreatest = it.next();\n\t\t\t}\n\t\t\tif (this.sizeinbits != greatest + 1) {\n\t\t\t\tlog.error(\"sizein bits \" + sizeinbits\n\t\t\t\t\t\t+ \" but largest value is \" + greatest + \"\\n\\n\"\n\t\t\t\t\t\t+ toDebugString());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLoggerUtil.logException(e, log);\n\t\t\tlog.error(bufferToString());\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean almostEquals(Vect3 v, long maxUlps) {\n\t\treturn Util.almost_equals(x, v.x, maxUlps) && Util.almost_equals(y, v.y, maxUlps) && \n\t\t\t\tUtil.almost_equals(z, v.z, maxUlps);\n\t}", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "@Override\n public int compare(Size lhs, Size rhs) {\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() - (long) rhs.getWidth() *\n rhs.getHeight());\n }", "public static boolean hasEnoughSpace(Player player, Inventory inv1, Inventory inv2){\r\n int inv1Count = -2;\r\n int inv2Count = 0;\r\n for (ItemStack item : inv1.getContents()) {\r\n if (item != null) {\r\n inv1Count++;\r\n }\r\n }\r\n\r\n for (ItemStack item : inv2.getContents()) {\r\n if (item != null) {\r\n inv2Count++;\r\n }\r\n }\r\n\r\n int inv2FreeSpace = 36 - inv2Count;\r\n if (inv2FreeSpace >= inv1Count) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "@Override\r\n\tpublic void shorter() {\n\t\tsuper.shorter();\r\n\t\twordSize = (int) Math.max((Math.abs(x2 - x1) + Math.abs(y2 - y1)) / 3, 2);\r\n\t}", "@Test\r\n public void testMinMaxVector() {\r\n System.out.println(\"minMaxVector\");\r\n int[] vector = {1,8,3,4};\r\n VectorHelper instance = new VectorHelper();\r\n int[]expResult= {1,8};\r\n int []result=instance.minMaxVector(vector);\r\n assertArrayEquals(expResult,result);\r\n \r\n }", "public boolean greaterThan(final Bytes other)\n\t{\n\t\tif ((this == other) || (other == null))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn bytes() > other.bytes();\n\t}", "public boolean equals(Vector330Class v){\n return (Math.abs(this.x-v.x) <= EPS || Math.abs(this.y-v.y) <= EPS);\n }", "public static boolean equal(VectorIntf x, VectorIntf y) {\r\n if (x==null && y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"both args null\");\r\n if (x==null || y==null) return false;\r\n if (x.getNumCoords()!=y.getNumCoords()) return false;\r\n // short-cut for specific sparse vectors\r\n if (x instanceof DblArray1SparseVector && \r\n\t\t\t y instanceof DblArray1SparseVector)\r\n return ((DblArray1SparseVector) x).equals((DblArray1SparseVector) y);\r\n for (int i=0; i<x.getNumCoords(); i++) {\r\n if (Double.compare(x.getCoord(i),y.getCoord(i))!=0) return false;\r\n }\r\n return true;\r\n }", "boolean hasMaxSize();", "private static int intArrayCmpToLen(int[] arg1, int[] arg2, int len) {\n for (int i=0; i < len; i++) {\n long b1 = arg1[i] & LONG_MASK;\n long b2 = arg2[i] & LONG_MASK;\n if (b1 < b2)\n return -1;\n if (b1 > b2)\n return 1;\n }\n return 0;\n }", "private boolean checkRange(final int actualVerticalSize,\n final int actualHorizontalSize) {\n return actualVerticalSize >= 0\n && actualVerticalSize < values.length\n && actualHorizontalSize >= 0\n && actualHorizontalSize < values[0].length;\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "public boolean goodSize( Coordinates startCoord, Coordinates endCoord, int size) {\n\t\t\r\n\t\tint nb1 = startCoord.getNumber();\r\n\t\tchar letter1 = startCoord.getLetter();\r\n\t\tint nb2 = endCoord.getNumber();\r\n\t\tchar letter2 = endCoord.getLetter();\r\n\t\t\r\n\t\treturn (\r\n\t\t\t\t(Math.abs(nb1 - nb2) == size-1)\r\n\t\t\t\t|| \r\n\t\t\t\t(Math.abs(letter1 - letter2) == size-1 ));\r\n\t}", "boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\n }", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "public static boolean hasMoved(MutableVector first, MutableVector second) {\n return first.getX() != second.getX() || first.getY() != second.getY() || first.getZ() != second.getZ();\n }", "LengthEquals createLengthEquals();", "public boolean overlap(float[] a, float[] b) {\r\n return ( (b[0] <= a[0] && a[0] <= b[3]) || (b[0] <= a[3] && a[3] <= b[3]) ) &&\r\n ( (b[1] <= a[1] && a[1] <= b[4]) || (b[1] <= a[4] && a[4] <= b[4]) ) &&\r\n ( (b[2] <= a[2] && a[2] <= b[5]) || (b[2] <= a[5] && a[5] <= b[5]) );\r\n }", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "private boolean isOverlapping( int[] t0, int[] t1)\n {\n if ( t0.length == 1)\n {\n return t0[ 0] >= t1[ 0]; \n }\n else\n {\n return t0[ 1] >= t1[ 0]; \n }\n }", "public Boolean getLargestAxis() {\n\t\tdouble widthX = this.maxx.getData().getX()-this.minx.getData().getX();\n\t\tdouble widthY = this.maxy.getData().getY()-this.miny.getData().getY();\n\t\treturn (widthX > widthY);\n\t}", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "LengthSmaller createLengthSmaller();", "public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}", "public static native int Capacity(long lpjFbxArrayVector2);", "public static synchronized Vector diff(Vector left, Vector right)\n\t throws IcofException {\n\n\tString funcName = new String(\"diff(Vector, Vector)\");\n\n\t// If the \"right\" Vector is null or empty, just return the \"left\"\n\t// Vector.\n\t// There's no point in cycling through the entire \"left\" Vector, in this\n\t// case.\n\tif ((right == null) || (right.isEmpty())) {\n\t return left;\n\t}\n\n\tVector aDiff = new Vector();\n\n\ttry {\n\n\t for (int i = 0; i < left.size(); i++) {\n\t\tObject o = (Object) left.elementAt(i);\n\t\tif (!right.contains(o)) {\n\t\t aDiff.add(o);\n\t\t}\n\t }\n\n\t aDiff.trimToSize();\n\t} catch (Exception e) {\n\t IcofException ie = new IcofException(CLASS_NAME, funcName,\n\t\t IcofException.SEVERE,\n\t\t \"Error creating difference of Vectors \", \"\");\n\t throw (ie);\n\t}\n\n\treturn aDiff;\n }", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "@Override\n public boolean isDifferent(FastVector... predictions) {\n if (predictions != null && predictions.length == 2){\n return isDifferent(predictions[0],predictions[1]);\n }\n throw new IllegalArgumentException();\n }", "public static boolean hasRotated(MutableVector first, MutableVector second) {\n return first.getY() != second.getY() || first.getX() != second.getX();\n }", "boolean hasVector2Value();", "static boolean bigint_gt(bigint a, bigint b)\n {\n if (a.bigint_sign && !b.bigint_sign)\n return true;\n else if (!a.bigint_sign && b.bigint_sign)\n return false;\n else\n {\n if (a.bigint_len > b.bigint_len)\n return a.bigint_sign;\n else if (a.bigint_len < b.bigint_len)\n return !a.bigint_sign;\n else\n for (int i = 0; i < a.bigint_len; i++)\n {\n int j = a.bigint_len - 1 - i;\n if (a.bigint_chiffres[j] > b.bigint_chiffres[j])\n return a.bigint_sign;\n else if (a.bigint_chiffres[j] < b.bigint_chiffres[j])\n return !a.bigint_sign;\n }\n return true;\n }\n }", "public boolean isLongRange() {\n\t\treturn this.ordinal() >= 2 && this.ordinal() <= 4;\n\t}", "public boolean couldWrap(Cargo other) {\n return getCarrierTarget() == other.getCarrierTarget()\n && getNewSpace() < 0 && other.getNewSpace() < 0;\n }", "@Test\r\n public void NegativeTestSize1() {\r\n Assert.assertNotEquals(1, set1.size());\r\n }", "public int findLength(int[] A, int[] B) {\n\n int len = A.length < B.length ? A.length : B.length ;\n Integer x , y ;\n int res = 0 ;\n int temp = 0 ;\n for(int i = len ;i > 0 ; i--){\n x = A[i];\n y = B[i];\n if(x.getClass().hashCode() == y.getClass().hashCode()){\n temp++ ;\n }else{\n res = res > temp ? res : temp ;\n temp = 0 ;\n }\n }\n return res ;\n }", "private static void compareForReverseArrays() {\n Integer[] reverse1 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Integer[] reverse2 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Insertion insertion = new Insertion();\n insertion.analyzeSort(reverse1);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(reverse2);\n selection.getStat().printReport();\n }", "public boolean isInconsistentWith(BuildPtr that) {\n return signOfCompare(this.posByN,that.posByN) * signOfCompare(this.posByID,that.posByID) < 0;\n }", "public boolean isFull(){\n return this.top==this.maxLength-1;\n }", "public void testLength()\n {\n LinearSearch ls = new LinearSearch();\n\n assertFalse(ls.validLength(int [15] haystack));\n }", "private static boolean isDistanceOK(double[] diff) {\n\t\tfor (double d : diff) {\n\t\t\tif (Math.abs(d) > MAX_PIXEL_DISTANCE) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }", "@Test\n public void testFindLargestCommonTermID() {\n Vector v1 = new Vector();\n v1.set(1, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(3, 0),\n new VectorComponent(1, 0) }));\n Vector v2 = new Vector();\n v2.set(2, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(4, 0),\n new VectorComponent(2, 0) }));\n assertEquals(-1, Vector.findSmallestCommonTermID(v1, v2));\n v2.set(2, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(3, 0),\n new VectorComponent(2, 0) }));\n assertEquals(3, Vector.findSmallestCommonTermID(v1, v2));\n v2.set(2, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(5, 0),\n new VectorComponent(1, 0) }));\n assertEquals(1, Vector.findSmallestCommonTermID(v1, v2));\n v2.set(2, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(5, 0),\n new VectorComponent(4, 0), new VectorComponent(1, 0) }));\n assertEquals(1, Vector.findSmallestCommonTermID(v1, v2));\n\n v1.set(1, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(5, 0),\n new VectorComponent(3, 0), new VectorComponent(2, 0), new VectorComponent(1, 0) }));\n v2.set(2, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(6, 0),\n new VectorComponent(4, 0), new VectorComponent(3, 0), new VectorComponent(1, 0) }));\n assertEquals(1, Vector.findSmallestCommonTermID(v1, v2));\n v2.set(2, new VectorComponentArrayWritable(new VectorComponent[] { new VectorComponent(6, 0),\n new VectorComponent(4, 0), new VectorComponent(2, 0)}));\n assertEquals(2, Vector.findSmallestCommonTermID(v1, v2));\n }", "public native boolean isLengthComputable() /*-{\n\t\treturn this.lengthComputable;\n\t}-*/;", "public static SiftKnnContainer mergetosizeoflarger(SiftKnnContainer a, SiftKnnContainer b) {\n int size = a.getK();\n if (b.getK() > size ) {\n size = b.getK();\n }\n SiftKnnContainer ret = new SiftKnnContainer( size );\n ret.SetQueryPoint(a.getQueryPoint());\n knnPair[] knn = a.getknnPairArray();\n for (int i = 0; i < knn.length ; i++) {\n if (knn[i].distance != Integer.MAX_VALUE) {\n ret.addNoDuplicateIDs(knn[i].pointID, knn[i].distance);\n }\n }\n knn = b.getknnPairArray();\n for (int i = 0; i < knn.length ; i++) {\n if (knn[i].distance != Integer.MAX_VALUE) {\n ret.addNoDuplicateIDs(knn[i].pointID, knn[i].distance);\n }\n }\n return ret;\n }", "public Boolean isFull() {\n\t\tif (this.mVehicles.size() == this.mCapacity)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Test//test equal\n public void testEqual() {\n MyVector vD1 = new MyVector(ORIGINALDOUBLEARRAY);\n MyVector vD2 = new MyVector(ORIGINALDOUBLEARRAY);\n double[] doubleArray = new double[]{3.0, 2.3, 1.0, 0.0, -1.1};\n MyVector diffVD3 = new MyVector(doubleArray);\n assertEquals(true, vD1.equal(vD2));\n assertEquals(false, vD1.equal(diffVD3));\n MyVector vI1 = new MyVector(ORIGINALINTARRAY);\n MyVector vI2 = new MyVector(ORIGINALINTARRAY);\n int[] intArray = new int[]{1, 2, 3, 4};\n MyVector vI3 = new MyVector(intArray);\n assertEquals(true, vI1.equal(vI2));\n assertEquals(false, vI1.equal(vI3));\n }", "public double getMaxDiffVertical(Coordinate a, Coordinate b) {\n\t\t Coordinate lowCoord = a.z < b.z ? a : b;\n\t\t Coordinate highCoord = a.z >= b.z ? a : b;\n\t\t double lowZ = (lowCoord.z - uncertaityVertical); \n\t\t double highZ = (highCoord.z + uncertaityVertical);\n\t\t double diff = highZ - lowZ;\n\t\t return diff;\t\t\n\t}" ]
[ "0.6667502", "0.5950158", "0.59482574", "0.5890991", "0.5881958", "0.5771925", "0.57696646", "0.5755733", "0.5689136", "0.56544614", "0.5642553", "0.56239146", "0.56109977", "0.5601266", "0.5556539", "0.55435795", "0.5528109", "0.5515691", "0.5504507", "0.5503813", "0.5503738", "0.54431045", "0.5401024", "0.53966606", "0.5379338", "0.5364731", "0.5344957", "0.53447056", "0.53352684", "0.5332227", "0.5315973", "0.5315964", "0.52950686", "0.52950686", "0.52950686", "0.52950686", "0.52903163", "0.52903163", "0.5281524", "0.5278374", "0.5278374", "0.5278374", "0.5278374", "0.5278374", "0.5267937", "0.52602726", "0.524482", "0.5244362", "0.5239012", "0.5233024", "0.5224549", "0.52193516", "0.52167124", "0.5215564", "0.5207351", "0.52010316", "0.5192454", "0.5176745", "0.51750773", "0.5172621", "0.51691544", "0.5167892", "0.5167892", "0.5167633", "0.5167418", "0.5167254", "0.5165373", "0.5160035", "0.5150448", "0.5142469", "0.5136218", "0.5126868", "0.51238334", "0.5119221", "0.51165587", "0.51149374", "0.51102173", "0.51088244", "0.5101288", "0.50899565", "0.5080947", "0.50782675", "0.50740886", "0.5072685", "0.50716716", "0.50693196", "0.5065391", "0.505358", "0.5050677", "0.5049802", "0.5038973", "0.50380474", "0.5035422", "0.5032621", "0.50283796", "0.50223976", "0.500986", "0.4999428", "0.49784335", "0.49782836" ]
0.6050998
1
scalar multiplication. create new vector vector = thisf does not alter this
public CMLVector3 multiplyBy(double f) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3.multiplyBy(f); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector<T> multiply(T aScalar);", "public Vector2f mul(float scalar) {\n return mul(new Vector2f(scalar, scalar));\n }", "@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}", "public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}", "public Vector tensorProduct( final Vector a);", "public Vector2f multLocal (float v)\n {\n return mult(v, this);\n }", "@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}", "public abstract Vector4fc mul(IVector4f v);", "public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }", "public Vector2f mult (Vector2f other)\n {\n return mult(other, new Vector2f());\n }", "public Vector2f multLocal (Vector2f other)\n {\n return mult(other, this);\n }", "public Vector3 mult(float scalar){\r\n\t\tthis.x *= scalar;\r\n\t\tthis.y *= scalar;\r\n\t\tthis.z *= scalar;\r\n\t\treturn this;\r\n\t}", "public Vector2f mult (Vector2f other, Vector2f result)\n {\n return result.set(x*other.x, y*other.y);\n }", "public abstract Vector4fc mul(float x, float y, float z, float w);", "@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}", "public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}", "public Vector2f mult (float v)\n {\n return mult(v, new Vector2f());\n }", "public Vector2D scalarMult(double scalar)\n {\n return new Vector2D(scalar * this.x, scalar * this.y);\n }", "public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}", "public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }", "@Override\n\tpublic void\n\tscalarMult( double value )\n\t{\n\t\tdata[0] *= value;\n\t\tdata[1] *= value;\n\t\tdata[2] *= value;\n\t}", "public Vector2f mul(Vector2f vec) {\n this.x *= vec.x;\n this.y *= vec.y;\n return this;\n }", "public abstract Vector4fc mul(IMatrix4f mat);", "public Vector at ( float x ) { return A.add(D.prod(x)); }", "public static <T extends Vector> T Multiply(T a, float val, T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * val;\n }\n return result;\n }", "private void mul() {\n\n\t}", "double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;", "@Override\n public DoubleVector multiply(DoubleVector s) {\n DoubleVector smallestVector = s.getLength() < getLength() ? s : this;\n DoubleVector vec = new SparseDoubleVector(s.getDimension(),\n smallestVector.getLength());\n DoubleVector largerVector = smallestVector == this ? s : this;\n Iterator<DoubleVectorElement> it = smallestVector.iterateNonZero();\n while (it.hasNext()) {\n DoubleVectorElement next = it.next();\n double otherValue = largerVector.get(next.getIndex());\n vec.set(next.getIndex(), next.getValue() * otherValue);\n }\n\n return vec;\n }", "public void\n\tmult( Vector3 other )\n\t{\n\t\tdata[0] *= other.data[0];\n\t\tdata[1] *= other.data[1];\n\t\tdata[2] *= other.data[2];\n\t}", "public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }", "public static Vector2 MultScalar(Vector2 a, float scalar){\n return new Vector2(a.x * scalar, a.y * scalar);\n }", "public Vector2d mul(double s) {\n\t\treturn new Vector2d(x*s, y*s);\n\t}", "public static <T extends Vector> T Multiply(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * b.axis[i];\n }\n return result;\n }\n return result;\n }", "public void multiply() {\n\t\t\n\t}", "public abstract Vector4fc mul(IMatrix4x3f mat);", "Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }", "public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }", "public LorentzVector multiply(double factor) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tthis.fact(factor);\n\t\treturn newVector;\n\t}", "public Scalar mul(Scalar s) {\n\t\treturn new RealScalar(getValue() * ((RealScalar)s).getValue());\n\t}", "public void scalarMultiply(double s) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n matrix.get(i)[j] *= s;\n }\n }\n }", "public Vector3 multLocal (double v) {\n return mult(v, this);\n }", "public static final Vector2 multiply(final Vector2 vector, final float scalar) {\n\t\tVector2 r = new Vector2();\n\t\tr.X = vector.X * scalar;\n\t\tr.Y = vector.Y * scalar;\n\t\t\n\t\treturn r;\n\t}", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "public static void multiply(Double[] vector, Double multiplier) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] * multiplier;\r\n }\r\n }", "public void mul_(JType value) {\n TH.THTensor_(mul)(this, this, value);\n }", "public final void mul(float scalar, Matrix3f m1) {\n\t set(m1);\n\t mul(scalar);\n }", "public Vector scalar(double scalar) {\n return new Vector(\n scalar * getX(),\n scalar * getY(),\n scalar * getZ()\n );\n }", "public T mul(T first, T second);", "public DVec multiply(DVec arg0) {\n\t\tDVec vec = new DVec(arg0.rowCount());\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tvec.set(i, get(i, j) * arg0.get(i));\n\t\treturn vec;\n\t}", "public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }", "public Matrix multiply(double scalar) {\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] * scalar;\n }\n }\n\n return result;\n }", "@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}", "public Vector2f addScaled (Vector2f other, float v, Vector2f result)\n {\n return result.set(x + other.x*v, y + other.y*v);\n }", "public Vector3D product(float s)\r\n { \r\n return new Vector3D(s*this.x, s*this.y, s*this.z);\r\n }", "@Override\n public Float mul(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs*rhs;\n\treturn res;\n }", "public vec3 times(float val) {\r\n\t\tvec3 tmp = new vec3(this);\r\n\t\ttmp.scale(val);\r\n\t\treturn tmp;\r\n\t}", "public double dot(Vec vthat);", "public double[] vectorMult(double[] v1, double[] v2) {\n\n double[] res = new double[v1.length];\n\n for(int i = 0; i < v1.length; i++) {\n res[i] = v1[i]*v2[i];\n }\n return res;\n }", "public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}", "IVec3 mult(IVec3 v);", "@Override\r\n\tpublic vec3 mult(float var) {\n\t\treturn null;\r\n\t}", "public T dotProduct(Vector<T> aVector) throws VectorSizeException;", "public Fraction multiply(Fraction f){\n return new Fraction(this.numerator * f.numerator, this.denominator * f.denominator);\n }", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "public void multiplyScalar(double scalar) {\n if(scalar==1.0) {\n return;\n }\n for (T value : getFirstDimension()) {\n for (T secondValue : getMatches(value)) {\n double d = get(value, secondValue) * scalar;\n set(value, secondValue, d);\n }\n }\n }", "public static Vector3D multiplyScalar(Vector3D v1, Vector3D v2) {\n\t\tdouble x1 = v1.getX1() * v2.getX1();\n\t\tdouble x2 = v1.getX2() * v2.getX2();\n\t\tdouble x3 = v1.getX3() * v2.getX3();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "@Override\r\n\tpublic void multLocal(float var) {\n\t}", "abstract void mulS();", "public Vector2D mul(double a)\n\t{\n\t\treturn new Vector2D(a*x, a*y);\n\t}", "@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}", "public double multScalar(Vector3D u, Vector3D v) {\n\t\treturn ((u.x * v.x) + (u.y * v.y) + (u.z * v.z));\n\t}", "final public Vector3 mul(double c){\n return new Vector3(x*c, y*c, z*c);\n }", "private Vector<Double> multiplyRow(Vector<Double> row, double scalar) {\n row.replaceAll(n -> round(scalar * n, 8));\n return row;\n }", "public static BigFraction[] vectorTimesScalar(BigFraction[] vector, BigFraction scalar) {\n vector = vector.clone();\n for (int i = 0; i < vector.length; i++) {\n vector[i] = vector[i].multiply(scalar);\n }\n return vector;\n }", "public vec2 mul( vec2 o){\n vec2 R = new vec2 ();\n R.x += this._M[ 0 ] * o.x ;\n R.x += this._M[ 1 ] * o.y ;\n R.y += this._M[ 4 ] * o.x ;\n R.y += this._M[ 5 ] * o.y ;\n return R;\n }", "public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }", "public Matrix multiply(Fraction f) {\n\t\treturn multiply(new ComplexNumber(f));\n\t}", "public RealFeature multiply(double m) {\n RealConjunctiveFeature result = (RealConjunctiveFeature) clone();\n if (!left.isDiscrete()) result.left = ((RealFeature) left).multiply(m);\n else result.right = ((RealFeature) right).multiply(m);\n return result;\n }", "public PolyTerm mul(PolyTerm pt) {\n\t\tScalar coeffi=this.coefficient.mul(pt.coefficient);\n\t\tint expon= pt.exponent + this.exponent;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}", "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "public Vector product(Vector vec) {\n\t\t// Create data structure for containing the result vector\n\t\tdouble[] r = new double[vec.len];\n\n\t\t// Iteratively assign each element of the new vector to be the sum of row*vec\n\t\tfor(int i=0; i < rank; i++) {\n\t\t\tfor(int j=0; j < rank; j++) {\n\t\t\t\tr[i] += retrieveElement(i, j) * vec.v[j]; \n\t\t\t}\n\t\t}\t\n\t\treturn new Vector(r);\n\t}", "public Fraction mul(Fraction f) {\n return new Fraction(this.numerator * f.getNumerator(), this.denominator * f.getDenominator());\n }", "public static double[] scalarproduct(double[] v, double r) {\n double[] tmp = new double[3];\n tmp[0] = v[0]*r;\n tmp[1] = v[1]*r;\n tmp[2] = v[2]*r;\n return tmp;\n }", "LengthScalarMultiply createLengthScalarMultiply();", "public final native Vec4 multiply(Vec4 vec) /*-{\n return $wnd.mat4.multiplyVec4(this, vec, $wnd.vec4.create());\n }-*/;", "private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}", "public Vector scale(double scalar) {\n\t\treturn new Vector(x * scalar, y * scalar);\n\t}", "public Vec3 multiply(Vec3 vect){\n if(values == null || values[0] == null || values[1] == null\n || values[2] == null){\n throw new IllegalStateException(\"Ill-formed transform\");\n }\n if(vect == null){\n throw new IllegalArgumentException(\"multiply by null vector\");\n }\n float x = values[0][3];\n float y = values[1][3];\n float z = values[2][3];\n x += values[0][0] * vect.x + values[0][1] * vect.y + values[0][2]\n * vect.z;\n y += values[1][0] * vect.x + values[1][1] * vect.y + values[1][2]\n * vect.z;\n z += values[2][0] * vect.x + values[2][1] * vect.y + values[2][2]\n * vect.z;\n return new Vec3(x, y, z);\n }", "public double product(DocumentVector other) {\n\t\tdouble product = 0;\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tproduct += this.getValueAsReal(i) * other.getValueAsReal(i);\n\t\t}\n\t\t\n\t\treturn product;\n\t}", "public Vector2f addScaled (Vector2f other, float v)\n {\n return addScaled(other, v, new Vector2f());\n }", "public double carre(double v) {\n return v*v;\n }", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "public Vector2f addScaledLocal (Vector2f other, float v)\n {\n return addScaled(other, v, this);\n }", "public abstract Vector4fc mulProject(IMatrix4f mat);", "public double scalarProduct(Point3D b) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tdouble res = copy.x * b.x + copy.y * b.y + copy.z * b.z + copy.w * b.w;\n\t\tres /= copy.w * b.w;\n\t\treturn res;\n\t}", "public Point3D multiply(double f) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tcopy.homogenize();\n\t\tcopy.x = copy.x * f;\n\t\tcopy.y = copy.y * f;\n\t\tcopy.z = copy.z * f;\n\t\treturn copy;\n\t}", "public double getProduct()\n {\n return first * second;\n }" ]
[ "0.75726646", "0.73063296", "0.7182", "0.71262884", "0.6968036", "0.69629586", "0.69518423", "0.69344157", "0.6933734", "0.6866215", "0.6843595", "0.6806559", "0.6794836", "0.6750663", "0.67417955", "0.67116475", "0.66738063", "0.6665698", "0.66483027", "0.66132194", "0.65427756", "0.6512219", "0.6481588", "0.6476643", "0.64765644", "0.6448922", "0.642902", "0.64277816", "0.6423278", "0.6409654", "0.6406076", "0.63981676", "0.63848084", "0.6369519", "0.6369318", "0.63271224", "0.63172835", "0.6293937", "0.6291504", "0.62806195", "0.6276167", "0.62742484", "0.6266235", "0.62602305", "0.62574923", "0.62564117", "0.6233413", "0.6204945", "0.61931187", "0.6191262", "0.6176396", "0.61681855", "0.6162506", "0.61606604", "0.61603945", "0.61409605", "0.6135611", "0.60914403", "0.60908115", "0.6085268", "0.60712314", "0.6069053", "0.6048096", "0.6033664", "0.6025107", "0.60239404", "0.6020549", "0.6001729", "0.5994335", "0.59764665", "0.59711874", "0.5964192", "0.5953235", "0.59491503", "0.5947693", "0.5945862", "0.5926372", "0.5918981", "0.59130335", "0.59055334", "0.58970845", "0.58862305", "0.5861282", "0.585799", "0.58517146", "0.5850923", "0.5849595", "0.5825135", "0.5824309", "0.58145756", "0.5807207", "0.5798753", "0.5791197", "0.5788143", "0.57812554", "0.57780635", "0.57646286", "0.57642657", "0.57485205", "0.57480973" ]
0.6799155
12
vector addition. create new vector result = this + v3 does not alter this
public CMLVector3 plus(CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3 .plus(v3.getEuclidVector3()); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }", "public Vector3D addVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(this.x = u.x + v.x, this.y = u.y + v.y, \n\t\t\t\tthis.z = u.z + v.z);\n\t}", "final public Vector3 add(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3(x + v.x, y + v.y, z + v.z);\n }", "public static ThreeVector add(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn new ThreeVector(v1.x + v2.x, v1.y + v2.y,v1.z + v2.z);\r\n\t}", "public VectorA add(VectorA v)\n {\n return new VectorA(this.x+v.x, this.y+v.y);\n }", "public static void addVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0]+v2[0];\n result[1] = v1[1]+v2[1];\n result[2] = v1[2]+v2[2];\n }", "public vec3 plus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}", "public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }", "public Vector add(Vector v2){\n return new Vector(this.getX() + v2.getX(), this.getY() + v2.getY());\n }", "public static Vector3D add(Vector3D v1, Vector3D v2) {\n\t\tdouble x1 = v1.getX1() + v2.getX1();\n\t\tdouble x2 = v1.getX2() + v2.getX2();\n\t\tdouble x3 = v1.getX3() + v2.getX3();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "public Vector add(Vector other){\n\t\treturn new Vector(x+other.x, y+other.y, z+other.z);\n\t}", "public vec3 plus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}", "IVec3 sum(IVec3 v);", "public static Vector3 add(Vector3 a, Vector3 b){return new Vector3(a.x + b.x, a.y + b.y, a.z + b.z);}", "public Vector3 add(Vector3 other){\r\n\t\tthis.x += other.x;\r\n\t\tthis.y += other.y;\r\n\t\tthis.z += other.z;\r\n\t\treturn this;\r\n\t}", "public Vector3D add(Vector3D v) {\n return new Vector3D(v.xCoord + this.xCoord, v.yCoord + this.yCoord, v.zCoord + this.zCoord);\n }", "public static Vector3D add(Vector3D v1, Vector3D v2) {\r\n\t\tVector3D result = new Vector3D( v1.getX() + v2.getX(),\r\n\t\t\t\t\t\t\t\t\t\tv1.getY() + v2.getY(),\r\n\t\t\t\t\t\t\t\t\t\tv1.getZ() + v2.getZ());\r\n\t\treturn result;\r\n\t}", "public abstract Vector4fc add(IVector4f v);", "public static <T extends Vector> T Add(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + b.axis[i];\n }\n return result;\n }\n return result;\n }", "public Point3 add(Vector3 v) {\n Point3 p = new Point3(x + v.x, y + v.y, z + v.z);\n return p;\n }", "public Vect3 ScalAdd(double k, Vect3 v) {\n\t\treturn new Vect3(k*x+v.x, k*y+v.y, k*z+v.z);\n\t}", "public Point vectAdd(Point i) {\n\t\tx+=i.x;\n\t\ty+=i.y;\n\t\tz+=i.z;\n\t\treturn this;\n\t}", "public SVector add(SVector other) {\n this.x += other.getX();\n this.y += other.getY();\n this.z += other.getZ();\n return this;\n }", "public Vector plus(Vector m) {\n\t\treturn new Vector((deltaX + m.getDeltaX()), (deltaY + m.getDeltaY()));\n\t}", "public Point3D add (Vector v){\n Point3D p=new Point3D(x.coord+v._head.x.coord, y.coord+v._head.y.coord, z.coord+v._head.z.coord);\n return p;\n }", "public Vector3 add(Vector3 other) {\n\t\treturn new Vector3(x + other.x, y + other.y, z + other.z);\n\t}", "public abstract Vector4fc add(float x, float y, float z, float w);", "@Override\n\tpublic IVector add(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)+vector.get(i));\n\t\t}\n\t\treturn this;\n\t}", "@Override\n\tpublic IVector nAdd(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().add(vector);\n\t}", "public void add(Vec2 v) {\r\n\t\tx += v.x;\r\n\t\ty += v.y;\r\n\t}", "public static Vector add(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.add(v2);\r\n return w;\r\n }", "public static BigFraction[] vectorAddition(BigFraction[] a, BigFraction[] b) {\n a = a.clone();\n b = b.clone();\n if (a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n for (int i = 0; i < a.length; i++) {\n a[i] = a[i].add(b[i]);\n }\n return a;\n }", "public static <T extends Vector> T Add(T a, float val,T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + val;\n }\n return result;\n }", "@Override\n public Point addVector(Vector3 vector) {\n this.x += vector.x;\n this.y += vector.y;\n setHeight(getHeight()+ vector.z);\n return this;\n }", "public void\n\tadd( Vector3 other )\n\t{\n\t\tdata[0] += other.data[0];\n\t\tdata[1] += other.data[1];\n\t\tdata[2] += other.data[2];\n\t}", "public void addTo(Vector3 addition) {\n\t\tthis.x += addition.x;\n\t\tthis.y += addition.y;\n\t\tthis.z += addition.z;\n\t}", "public Vec2double add(Vec2double v) {\n\t\treturn new Vec2double(this.x + v.x, this.y + v.y);\n\t}", "public DocumentVector add(DocumentVector that) {\n\t\tint n = Math.min(this.getAttCount(), that.getAttCount());\n\t\tDocumentVector result = new DocumentVector(n, 0);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tresult.setValue(i, this.getValueAsReal(i) + that.getValueAsReal(i));\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public static Vector3f add(Vector3f vec1, Vector3f vec2) {\n\t\tVector3f result = new Vector3f();\n\n\t\tresult.x = vec1.x + vec2.x;\n\t\tresult.y = vec1.y + vec2.y;\n\t\tresult.z = vec1.z + vec2.z;\n\n\t\treturn result;\n\t}", "public Vector add(Vector other) {\n\t\treturn new Vector(x + other.x, y + other.y);\n\t}", "public static void add(float[] u, float[] v) {\n for (int i = 0; i < u.length; i++) {\n u[i] += v[i];\n }\n }", "public Vector<T> add(T aScalar);", "public void add(double sthis, Vec vthat, double sthat);", "public void add(vec3 a, vec3 b) {\r\n\t\tx = a.x + b.x;\r\n\t\ty = a.y + b.y;\r\n\t\tz = a.z + b.z;\r\n\t}", "public static double[] vectorAddition(double[] a, double[] b) {\r\n\t\tdouble[] retval = new double[a.length];\r\n\t\tfor(int i = 0; i < a.length; i += 1) {\r\n\t\t\tretval[i] = a[i] + b[i];\r\n\t\t}\r\n\t\treturn retval;\r\n\t}", "public Vector add(Vector other) {\n Point3D p=new Point3D (head.add(other));\n Vector v = new Vector(p);\n return v;\n }", "final public Vector3 add(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return new Vector3(x + n.x, y + n.y, z + n.z);\n }", "@Override\n public Point addVector(float[] vector) {\n this.x += vector[0];\n this.y += vector[1];\n setHeight(getHeight()+ vector[2]);\n return this;\n }", "public Vector2d add(Vector2d v) {\n\t\treturn new Vector2d(x + v.x, y + v.y);\n\t}", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}", "public Vector4d add(Vector4d o) {\n\t\tx += o.x; y += o.y; z += o.z; w += o.w;\n\t\treturn this;\n\t}", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static double[] addVectors( double[] v1, double[] v2 ) {\n double[] result = new double[3];\n addVectors(v1, v2, result);\n return result;\n }", "public void addV(double vx, double vy, double vz){\n vel[0] += vx;\n vel[0] += vy;\n vel[0] += vz;\n }", "public Vector3 addAndCreate(Vector3 addition) {\n\t\treturn new Vector3(addition.x + this.x, addition.y + this.y, addition.z + this.z);\n\t}", "public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }", "public Vector2D add(Vector2D v)\n\t{\n\t\treturn new Vector2D(x+v.getX(), y+v.getY());\n\t}", "@Override\n \tpublic ArrayPVector<E> plus(int i, E e) {\n \t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n \t}", "public Vector4d add(double x, double y, double z, double w) {\n\t\tthis.x += x; this.y += y; this.z += z; this.w += w;\n\t\treturn this;\n\t}", "public Vect3 AddScal(double k, Vect3 v) {\n\t\treturn new Vect3(x+k*v.x, y+k*v.y, z+k*v.z);\n\t}", "public void add(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] += rhs.components[i];\r\n }\r\n }", "public Vector330Class add(Vector330Class v){\n return new Vector330Class((this.x + v.x), (this.y + v.y));\n }", "public static void add(List<Double> vector, List<Double> toAdd) {\n for (int i = 0; i < vector.size(); i++) {\n double sum = vector.get(i) + toAdd.get(i);\n vector.set(i, sum);\n }\n }", "public void add(int v, int p){\n \n \n \n }", "public void add(vec3 a, float b) {\r\n\t\tx = a.x + b;\r\n\t\ty = a.y + b;\r\n\t\tz = a.z + b;\r\n\t}", "public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}", "public ColorVector add(ColorVector c) {\n return new ColorVector(red + c.getRed(), green + c.getGreen(), blue + c.getBlue());\n }", "public static ThreeVector vectorProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\tThreeVector v3 = new ThreeVector((v1.y*v2.z)-(v1.z*v2.y),(v1.z*v2.x)-(v1.x*v2.z),(v1.x*v2.y) - (v1.y* v2.x));\r\n\t\treturn v3;\r\n\t}", "public Vector3 add(float x, float y, float z) {\r\n\t\treturn this.set(this.x + x, this.y + y, this.z + z);\r\n\t}", "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "@Test\n public void add() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a4, b4);\n //System.out.println(\"a=\"+Vec4f.toString(a, 2));\n assertTrue(Vec4f.epsilonEquals(a4,expect4, 1E-6f));\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic V add(V val) {\n\t\ttry {\n\t\t\tif (value instanceof Integer && val instanceof Integer) {\n\t\t\t\tint temp = (int) value + (int) val;\n\t\t\t\treturn (V) ((Object) temp);\n\t\t\t} else if (value instanceof Double && val instanceof Double) {\n\t\t\t\tdouble temp = (double) value + (double) val;\n\t\t\t\tif (Double.isNaN(temp)) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t\tif (!Double.isNaN((double) value))\n\t\t\t\t\t\ttemp += (double) value;\n\t\t\t\t\telse if (!Double.isNaN((double) val))\n\t\t\t\t\t\ttemp += (double) val;\n\t\t\t\t}\n\t\t\t\treturn (V) ((Object) temp);\n\t\t\t} else if (value instanceof String && val instanceof String) {\n\t\t\t\tString temp = (String) value + (String) val;\n\t\t\t\treturn (V) (temp);\n\t\t\t} else if (value instanceof Accumulator\n\t\t\t\t\t&& val instanceof Accumulator) {\n\t\t\t\tAccumulator temp = ((Accumulator) value)\n\t\t\t\t\t\t.merge((Accumulator) val);\n\t\t\t\treturn (V) (temp);\n\t\t\t}\n\t\t} catch (ClassCastException e) {\n\t\t}\n\t\treturn null;\n\t}", "public void add(final Vec3 B)\n \t{\n \t\tthis.x += B.x;\n \t\tthis.y += B.y;\n \t\tthis.z += B.z;\n \t}", "public Vector2f add (Vector2f other, Vector2f result)\n {\n return add(other.x, other.y, result);\n }", "public void add(Number v)\n\t{ total = total + v.doubleValue(); }", "public LorentzVector sum(LorentzVector... vects) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tnewVector.add(vects);\n\t\treturn newVector;\n\t}", "public Vector2f add (float x, float y, Vector2f result)\n {\n return result.set(this.x + x, this.y + y);\n }", "public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "public final void add(Matrix3f m1) {\n\tm00 += m1.m00; m01 += m1.m01; m02 += m1.m02;\n\tm10 += m1.m10; m11 += m1.m11; m12 += m1.m12;\n\tm20 += m1.m20; m21 += m1.m21; m22 += m1.m22;\n }", "public static void add(Double[] vector, Double adder) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] + adder;\r\n }\r\n }", "public void add(LorentzVector... vects) {\n\t\tfor (LorentzVector vect : vects) {\n\t\t\tthis.vector.add(vect.vect());\n\t\t\tthis.energy = this.e() + vect.e();\n\t\t}\n\t}", "public static VectorIntf add(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) + y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }", "@Override\n \tpublic ArrayPVector<E> plusAll(int i, Collection<? extends E> l) {\n \t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n \t}", "public Vector at ( float x ) { return A.add(D.prod(x)); }", "public static double[] sum(double[] v, double[] w) {\n double[] tmp = new double[3];\n tmp[0] = v[0] + w[0];\n tmp[1] = v[1] + w[1];\n tmp[2] = v[2] + w[2];\n return tmp; }", "public Vector3 addLocal (IVector3 other) {\n return add(other, this);\n }", "IVec3 mult(IVec3 v);", "public Vector2f addScaled (Vector2f other, float v, Vector2f result)\n {\n return result.set(x + other.x*v, y + other.y*v);\n }", "public WB_Vector nextVector();", "private void rv2Elements(VectorN r, VectorN v)\n\t{\n\t\tr.checkVectorDimensions(3);\n\t\tv.checkVectorDimensions(3);\n\t\t//Constants c = new Constants();\n\t\tVectorN evec = new VectorN(3); // e vector\n\t\tVectorN k = new VectorN(3); // unit vector in z direction\n\n\t\tthis.rv = new VectorN(r, v);\n\n\t\tdouble rmag = r.mag();\n\t\tdouble vmag = v.mag();\n\t\tdouble energy = vmag * vmag / 2.0 - this.mu / rmag;\n\n\t\tk.x[0] = 0.0;\n\t\tk.x[1] = 0.0;\n\t\tk.x[2] = 1.0;\n\n\t\tVectorN h = r.crossProduct(v);\n\t\tVectorN n = k.crossProduct(h);\n\n\t\tdouble rdotv = r.dotProduct(v);\n\n\t\tdouble q1 = (vmag * vmag - this.mu / rmag) / this.mu;\n\t\tdouble q2 = rdotv / this.mu;\n\n\t\tevec.x[0] = q1 * r.x[0] - q2 * v.x[0];\n\t\tevec.x[1] = q1 * r.x[1] - q2 * v.x[1];\n\t\tevec.x[2] = q1 * r.x[2] - q2 * v.x[2];\n\n\t\tthis.e = evec.mag();\n\n\t\tif (e != 1.0)\n\t\t{\n\t\t\tthis.a = -this.mu / (2.0 * energy);\n\t\t} else\n\t\t{\n\t\t\tthis.a = 1.0E30;\n\t\t\tSystem.out.println(\"parabolic orbit\");\n\t\t}\n\n\t\tthis.i = Math.acos(h.x[2] / h.mag()); // inclination\n\n\t\tthis.raan = Math.acos(n.x[0] / n.mag()); // raan\n\t\tif (n.x[1] < 0.0)\n\t\t{\n\t\t\tthis.raan = 2.0 * Constants.pi - raan;\n\t\t}\n\n\t\tthis.w = Math.acos(n.dotProduct(evec) / (n.mag() * e));\n\t\tif (evec.x[2] < 0.0)\n\t\t{\n\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t}\n\n\t\tif (i == 0.0) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] < 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tif (i == Constants.pi) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] > 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tthis.ta = Math.acos(evec.dotProduct(r) / (e * rmag));\n\t\tif (rdotv < 0.0)\n\t\t{\n\t\t\tthis.ta = 2.0 * Constants.pi - this.ta;\n\t\t}\n\t}", "public Point plus(Vector vector){\n\t\tdouble dx = vector.getDeltaX();\n\t\tdouble dy = vector.getDeltaY();\n\t\treturn new Point(x+dx, y+dy);\n\t}", "public void add(int x, int y, int t, int v) {\n\t\tif (v < vArray[49]) {\n\t\t\treturn;\n\t\t}\n\t\t \t\n \t// find out the position\n \tint newIndex = indexOf(v);\n \t \t\n \t// shift arrays\n \tfor (int i = 49; i > newIndex; --i) {\n \t\txArray[i] = xArray[i - 1];\n \t\tyArray[i] = yArray[i - 1];\n \t\ttArray[i] = tArray[i - 1];\n \t\tvArray[i] = vArray[i - 1];\n \t}\n\n \t// put the new item in position\n \txArray[newIndex] = x;\n \tyArray[newIndex] = y;\n \ttArray[newIndex] = t;\n \tvArray[newIndex] = v;\n\t}", "public Point3 add(Point3 p) {\n Point3 res = new Point3(x + p.x, y + p.y, z + p.z);\n return res;\n }", "public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }", "public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}", "@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}", "public ThreeVector(double v1,double v2,double v3) {\r\n\t\tthis.x=v1;\r\n\t\tthis.y=v2;\r\n\t\tthis.z=v3;\r\n\t}", "public void add(vec3 b) {\r\n\t\tadd(this, b);\r\n\t}", "public double dot(Vec vthat);" ]
[ "0.7583598", "0.73393494", "0.7334711", "0.7327258", "0.72396576", "0.72044635", "0.72038937", "0.7036542", "0.7015454", "0.69755", "0.6970638", "0.6945012", "0.6925659", "0.69007975", "0.6862667", "0.6835124", "0.6821464", "0.6768554", "0.6757709", "0.6709495", "0.6700475", "0.6696122", "0.6677799", "0.6656141", "0.6641006", "0.6634587", "0.6623501", "0.6596938", "0.65793246", "0.65707046", "0.65693223", "0.65391797", "0.65330285", "0.65275574", "0.652743", "0.6525824", "0.64970344", "0.6494134", "0.6456771", "0.64200455", "0.640912", "0.6405771", "0.6369024", "0.6356197", "0.6354879", "0.6345753", "0.6332182", "0.6295304", "0.62921166", "0.62728673", "0.62475926", "0.62272793", "0.6205907", "0.62041736", "0.61911607", "0.6189165", "0.6188743", "0.61755383", "0.61090106", "0.61075324", "0.6093558", "0.60636806", "0.6059707", "0.60215914", "0.60109454", "0.598039", "0.5972692", "0.59699047", "0.59668034", "0.5940253", "0.5936465", "0.59324974", "0.59243584", "0.58988297", "0.5864934", "0.58531046", "0.5839433", "0.58206815", "0.5815869", "0.5809463", "0.57923347", "0.5787991", "0.57388735", "0.57326734", "0.5721768", "0.57094014", "0.5705751", "0.56961876", "0.5687894", "0.56809", "0.56775457", "0.5671326", "0.5670848", "0.5668351", "0.5665648", "0.56655335", "0.56648964", "0.56647414", "0.5657313", "0.5655882" ]
0.7184111
7
vector subtraction. create new vector result = this v3 does not alter this
public CMLVector3 subtract(CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3.subtract(v3 .getEuclidVector3()); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}", "public static Vector subtract(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.subtract(v2);\r\n return w;\r\n }", "public Vector<T> subtract(T aScalar);", "public VectorA sub(VectorA v)\n {\n return new VectorA(this.x-v.x, this.y-v.y);\n }", "public Vector3D subtract(Vector3D v)\r\n {\r\n return new Vector3D(this.x - v.getX(),\r\n this.y - v.getY(),\r\n this.z - v.getZ());\r\n }", "public Vector minusAll(Vector v) {\n return new Vector(\n getX() - v.getX(),\n getY() - v.getY(),\n getZ() - v.getZ(),\n 0\n );\n }", "public static void subVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0] - v2[0];\n result[1] = v1[1] - v2[1];\n result[2] = v1[2] - v2[2];\n }", "public static <T extends Vector> T Substract(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - b.axis[i];\n }\n return result;\n }\n return result;\n }", "public Vector3D subtract(Vector3D v) {\n return new Vector3D(v.xCoord - this.xCoord, v.yCoord - this.yCoord, v.zCoord - this.zCoord);\n }", "public vec3 minus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}", "public void\n\tsub( Vector3 other )\n\t{\n\t\tdata[0] -= other.data[0];\n\t\tdata[1] -= other.data[1];\n\t\tdata[2] -= other.data[2];\n\t}", "public Vector3 sub(Vector3 other) {\n\t\treturn new Vector3(x - other.x, y - other.y, z - other.z);\n\t}", "IVec3 sub(IVec3 v);", "public Vector subtract(Point3D p){\n// return new Vector(\n// p.x.coord- x.coord,\n// p.y.coord- y.coord,\n// p.z.coord- z.coord);\n return new Vector(\n x.coord- p.x.coord,\n y.coord- p.y.coord,\n z.coord- p.z.coord);\n }", "public Vector subtract(Vector other) {\n\t\treturn new Vector(x - other.x, y - other.y);\n\t}", "public vec3 minus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}", "public Vector subtract (Vector other) {\n Vector t =new Vector(head.subtract(other.head));\n return t;\n }", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "public static <T extends Vector> T Substract(T a, float val,T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - val;\n }\n return result;\n }", "public abstract Vector4fc sub(IVector4f v);", "public Vector3 subThisFrom(Vector3 other){\r\n\t\tthis.x = (other.x - this.x);\r\n\t\tthis.y = (other.y - this.y);\r\n\t\tthis.z = (other.z - this.z);\r\n\t\treturn this;\r\n\t}", "public static double[] subtract(double[] v, double[] w) {\n double[] tmp = new double[3];\n tmp[0] = v[0] - w[0];\n tmp[1] = v[1] - w[1];\n tmp[2] = v[2] - w[2];\n return tmp;\n }", "public abstract Vector4fc sub(float x, float y, float z, float w);", "public SVector subtract(SVector other) {\n this.x -= other.getX();\n this.y -= other.getY();\n this.z -= other.getZ();\n return this;\n }", "public Point3 sub(Vector3 v) {\n Point3 p = new Point3(x - v.x, y - v.y, z - v.z);\n return p;\n }", "public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }", "public Vector minus(Vector m) {\n\t\treturn new Vector((deltaX - m.getDeltaX()), (deltaY - m.getDeltaY()));\n\t}", "@Override\n\tpublic IVector sub(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)-vector.get(i));\n\t\t}\n\t\treturn this;\n\t}", "public static Vector subtract(Vector v1, Vector v2) {\n return new Vector(v1.getX() - v2.getX(), v1.getY() - v2.getY());\n }", "public void sub(Vec2 v) {\r\n\t\tx -= v.x;\r\n\t\ty -= v.y;\r\n\t}", "public Vector2d subtract(Vector2d v) {\n\t\treturn new Vector2d(x - v.x, y - v.y);\n\t}", "public void sub(vec3 a, vec3 b) {\r\n\t\tx = a.x - b.x;\r\n\t\ty = a.y - b.y;\r\n\t\tz = a.z - b.z;\r\n\t}", "@Override\n\tpublic IVector nSub(IVector vector) throws OperationNotSupportedException{\n\t\treturn this.copy().sub(vector);\n\t}", "public LorentzVector substract(LorentzVector... vects) {\n\t\tLorentzVector newVector = new LorentzVector(this);\n\t\tnewVector.sub(vects);\n\t\treturn newVector;\n\t}", "public static VectorIntf subtract(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n for (int i=0; i<n; i++) {\r\n try {\r\n z.setCoord(i, x.getCoord(i) - y.getCoord(i));\r\n }\r\n catch (parallel.ParallelException e) { // can never get here\r\n e.printStackTrace();\r\n }\r\n }\r\n return z;\r\n }", "public Vector3 subtractLocal (IVector3 other) {\n return subtract(other, this);\n }", "public Vector330Class subtract(Vector330Class v){\n return new Vector330Class((this.x - v.x), (this.y - v.y));\n }", "public void difference(Vector3 subtrahend) {\n\t\tthis.x -= subtrahend.x;\n\t\tthis.y -= subtrahend.y;\n\t\tthis.z -= subtrahend.z;\n\t}", "public void subtract() {\n\t\t\n\t}", "public V difference(V v1, V v2);", "public Vector2f subtract (Vector2f other, Vector2f result)\n {\n return add(-other.x, -other.y, result);\n }", "final public Vector3 sub(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return new Vector3(x - n.x, y - n.y, z - n.z);\n }", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public Vector minus(Point point){\n\t\tdouble xSubtracted = this.getX()-point.getX();\n\t\tdouble ySubtracted = this.getY()-point.getY();\n\t\treturn new Vector (xSubtracted, ySubtracted);\n\t}", "public static Vector3D sub(Point3D p1, Point3D p2) {\r\n\t\tVector3D result = new Vector3D( p1.getX() - p2.getX(),\r\n\t\t\t\t\t\t\t\t\t\tp1.getY() - p2.getY(),\r\n\t\t\t\t\t\t\t\t\t\tp1.getZ() - p2.getZ());\r\n\t\treturn result;\r\n\t}", "public Vector4d sub(double x, double y, double z, double w) {\n\t\tthis.x -= x; this.y -= y; this.z -= z; this.w -= w;\n\t\treturn this;\n\t}", "public void sub(vec3 a, float b) {\r\n\t\tx = a.x - b;\r\n\t\ty = a.y - b;\r\n\t\tz = a.z - b;\r\n\t}", "public Vector3 differenceAndCreate(Vector3 subtrahend) {\n\t\treturn new Vector3(this.x - subtrahend.x, this.y - subtrahend.y, this.z - subtrahend.z);\n\t}", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "public double[] vectorTo(double[] pt){\n double[] vecToLight = new double[3];\n vecToLight[0] = pos[0] - pt[0];\n vecToLight[1] = pos[1] - pt[1];\n vecToLight[2] = pos[2] - pt[2];\n return vecToLight;\n }", "@Test\n public void sub() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {2.003f, -1.996f, 2.005f, 4.006f };\n Vec4f.sub(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(a4, b4);\n assertTrue(Vec4f.epsilonEquals(a4, expect4, 1E-6f));\n }", "public void sub(LorentzVector... vectors) {\n\t\tfor (LorentzVector vect : vectors) {\n\t\t\tthis.vector.sub(vect.vect());\n\t\t\tthis.energy = this.e() - vect.e();\n\t\t}\n\t}", "public Vector subtract(Vector vec) {\n return this.head.subtract(vec.getHead());\n }", "public Vector2f subtract (Vector2f other)\n {\n return subtract(other, new Vector2f());\n }", "public Vec2double sub(Vec2int v) {\n\t\treturn new Vec2double(this.x - v.x, this.y - v.y);\n\t}", "public Vector4d sub(Vector4d o) {\n\t\tx -= o.x; y -= o.y; z -= o.z; w -= o.w;\n\t\treturn this;\n\t}", "public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}", "@Deprecated\n public static Vector3 subtract(Vector3 par1, Vector3 par2)\n {\n return new Vector3(par1.x - par2.x, par1.y - par2.y, par1.z - par2.z);\n }", "public void subtract(Point3 p) {\r\n\t\tset(this.x - p.x, this.y - p.y, this.z - p.z);\r\n\t}", "public Vector2f subtractLocal (Vector2f other)\n {\n return subtract(other, this);\n }", "public VectorFloat subVector(int start, int length) {\n final VectorFloat v = new VectorFloat(length);\n for (int i = 0; i < length; i++) {\n v.storage[i] = storage[i + start];\n }\n return v;\n }", "private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }", "public Vector6f subI(Vector6f otherVector)\n\t{\n\t\tx[0] -= otherVector.x[0]; \n\t\tx[1] -= otherVector.x[1]; \n\t\tx[2] -= otherVector.x[2]; \n\t\tx[3] -= otherVector.x[3]; \n\t\tx[4] -= otherVector.x[4]; \n\t\tx[5] -= otherVector.x[5];\n\t\treturn this;\n\t}", "@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}", "public void sub(vec3 b) {\r\n\t\tsub(this, b);\r\n\t}", "public Vector2f sub(Vector2f vec) {\n this.x -= vec.x;\n this.y -= vec.y;\n return this;\n }", "public Point3D minus(Point3D subtrahend) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tcopy.homogenize();\n\t\tPoint3D subCopy = new Point3D(subtrahend);\n\t\tsubCopy.homogenize();\n\n\t\tcopy.x -= subCopy.x;\n\t\tcopy.y -= subCopy.y;\n\t\tcopy.z -= subCopy.z;\t\t\n\t\t\n\t\treturn copy;\n\t}", "IVec3 cross(IVec3 v);", "public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }", "public double[] luBackSub(double[] bvec){\r\n\t \tint ii = 0,ip = 0;\r\n\t \tint n=bvec.length;\r\n\t \tif(n!=this.ncol)throw new IllegalArgumentException(\"vector length is not equal to matrix dimension\");\r\n\t \tif(this.ncol!=this.nrow)throw new IllegalArgumentException(\"matrix is not square\");\r\n\t \tdouble sum= 0.0D;\r\n\t \tdouble[] xvec=new double[n];\r\n\t \tfor(int i=0; i<n; i++){\r\n\t \txvec[i]=bvec[i];\r\n\t \t}\r\n\t \tfor (int i=0;i<n;i++) {\r\n\t\t \tip=this.index[i];\r\n\t\t \tsum=xvec[ip];\r\n\t\t \txvec[ip]=xvec[i];\r\n\t\t \tif (ii==0){\r\n\t\t\t \tfor (int j=ii;j<=i-1;j++){\r\n\t\t\t \tsum -= this.matrix[i][j]*xvec[j];\r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t \telse{\r\n\t\t \tif(sum==0.0) ii=i;\r\n\t\t \t}\r\n\t\t \txvec[i]=sum;\r\n\t \t}\r\n\t \tfor(int i=n-1;i>=0;i--) {\r\n\t\t \tsum=xvec[i];\r\n\t\t \tfor (int j=i+1;j<n;j++){\r\n\t\t \tsum -= this.matrix[i][j]*xvec[j];\r\n\t\t \t}\r\n\t\t \txvec[i]= sum/matrix[i][i];\r\n\t \t}\r\n\t \treturn xvec;\r\n \t}", "final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }", "public Vector cross(Vector other){\n\t\treturn new Vector(\n\t\t\t\ty*other.z - z*other.y,\n\t\t\t\tz*other.x - x*other.z,\n\t\t\t\tx*other.y - y*other.x\n\t\t\t\t);\n\t}", "public static ThreeVector vectorProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\tThreeVector v3 = new ThreeVector((v1.y*v2.z)-(v1.z*v2.y),(v1.z*v2.x)-(v1.x*v2.z),(v1.x*v2.y) - (v1.y* v2.x));\r\n\t\treturn v3;\r\n\t}", "@Override\n\tpublic float subtrair(float op1, float op2) {\n\t\treturn op1 - op2;\n\t}", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "IVec3 mult(IVec3 v);", "public Vector getDisplacementVector(Coord b) {\n\t\treturn new Vector(b).minus(new Vector(this));\n\t}", "public final void sub(Matrix3f m1) {\n\tm00 -= m1.m00; m01 -= m1.m01; m02 -= m1.m02;\n\tm10 -= m1.m10; m11 -= m1.m11; m12 -= m1.m12;\n\tm20 -= m1.m20; m21 -= m1.m21; m22 -= m1.m22;\n }", "public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }", "public static double[] subVectors( double[] v1, double[] v2 ) {\n double[] result = new double[3];\n subVectors(v1, v2, result);\n return result;\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "private Point2D.Double calcVec(Point2D.Double a, Point2D.Double b)\n\t{\n\t\treturn new Point2D.Double((b.getX() - a.getX()), (b.getY() - a.getY()));\n\t}", "protected double[] negate(ColumnVector vector) {\r\n double[] v = vector.getVector();\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] *= -1.0;\r\n }\r\n return v;\r\n }", "public Vector3 invert()\n {\n this.scale(-1);\n return this;\n }", "public Vector cross(Vector v) {\n return new Vector(\n (getY() * v.getZ()) - (getZ() * v.getY()),\n (getZ() * v.getX()) - (getX() * v.getZ()),\n (getX() * v.getY()) - (getY() * v.getX())\n );\n }", "public Inatnum subtract(Inatnum a){//purpose: to subtract 2 values\n\t\ttry {return(this.pred().subtract(a).pred());}//take the previous value of this and the previous value of a until one of them hits zero and then return the other value\n\t\tcatch(Exception e) {System.out.println(\"Error add: \"+ e.getMessage());// otherwise return an error, this needs to be greater than or equal to a otherise we'd get a negative\n\t\t\t\t \t\t\t\t\t\t\t// and there are no negative natural numbers\n\t\treturn null;}\n\t\t\t}", "public Vector2D minus(Vector2D rhs)\n {\n return new Vector2D(this.x - rhs.x, this.y - rhs.y);\n }", "public Point3D subtract(Point3D p) {\n\t\treturn new Point3D(x - p.x, y - p.y, z - p.z);\n\t}", "static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }", "@Override\r\n\tpublic vec3 minus(ShaderVar var) {\n\t\treturn null;\r\n\t}", "Position V2Sub(Position a, Position b){\r\n\t\tdouble x = a.getX() - b.getX();\r\n\t\tdouble y = a.getY() - b.getY();\r\n\t\tPosition c = new Position(x, y);\r\n\t\treturn c;\r\n\t}", "public Vector3 negateLocal () {\n return negate(this);\n }", "public Polynomial subtract(Polynomial p){\n\t\tPolynomial sum = new Polynomial();\n\n\t\t\n\t\t for (int i = 0 ; i < p.maxindex; i++) {\n\t\t //if (p.data[i] != 0)\n\t\t sum.setCoefficient(i, this.data[i]-p.data[i]);\n\t\t }\n\t\t if(this.maxindex>p.maxindex)\n\t\t {\n\t\t\t for(int i=p.maxindex-1;i<=this.maxindex;i++)\n\t\t\t\t sum.setCoefficient(i, this.data[i]);\n\t\t }\n\t\t \n\t\t return sum;\n\t}", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "public Vector3 cross(Vector3 other) {\n return new Vector3(\n (y * other.z) - (z * other.y),\n (z * other.x) - (x * other.z),\n (x * other.y) - (y * other.x)\n );\n }", "public Vector2D subtract(float x, float y){\n return new Vector2D(this.x - x, this.y - y);\n }", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}" ]
[ "0.7447024", "0.72921526", "0.72484255", "0.72184306", "0.71950585", "0.7113243", "0.70942247", "0.70869637", "0.7045175", "0.7032136", "0.70053166", "0.6994181", "0.6975175", "0.6954497", "0.6943465", "0.68740445", "0.68726224", "0.6858603", "0.68482554", "0.6833746", "0.6816775", "0.6776742", "0.6705419", "0.66927433", "0.6692513", "0.66729534", "0.6655569", "0.66454697", "0.66158557", "0.6607598", "0.65445226", "0.65053505", "0.65024495", "0.6489203", "0.6485275", "0.6413855", "0.6412724", "0.6393436", "0.6332586", "0.6330129", "0.63090855", "0.62950236", "0.62696433", "0.624633", "0.624449", "0.6238402", "0.6226175", "0.6212367", "0.6203506", "0.6171374", "0.61585885", "0.61566997", "0.61440694", "0.6127277", "0.61057574", "0.60842633", "0.6081537", "0.6081276", "0.6063702", "0.6028156", "0.60158974", "0.5964531", "0.59502065", "0.5935844", "0.59333014", "0.5933105", "0.5927136", "0.5922837", "0.5922792", "0.59040594", "0.58989614", "0.5833057", "0.58225507", "0.58016884", "0.5801599", "0.580084", "0.57919466", "0.57915074", "0.5784322", "0.5742005", "0.572549", "0.57119715", "0.57086974", "0.56864655", "0.5676502", "0.5675734", "0.5672375", "0.56437886", "0.5631861", "0.56156397", "0.5597871", "0.5597199", "0.5593681", "0.5592236", "0.5586984", "0.55825734", "0.5579552", "0.55765325", "0.55757177", "0.5557965" ]
0.653353
31
is vector of zero length. uses Real.isEqual
public boolean isZero() { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? false : veucl3.isZero(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isEmpty() {\n\t\tif(this.vector.isEmpty()) return true;\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n\t\treturn vector.isEmpty();\n\t}", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "public boolean isVector() {\n return mat.getNumRows() == 1 || mat.getNumCols() == 1;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\tboolean bandera=true;\r\n\t\tif(vector.size()>0){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tbandera=false;\r\n\t\t}\r\n\t\treturn bandera;\r\n\t}", "@Override\n\tpublic boolean\n\tisZero()\n\t{\n\t\treturn( data[0] == 0 && data[1] == 0 && data[2] == 0 );\n\t}", "public boolean isZero() {\n\t\treturn x == 0.0 && y == 0.0 && z == 0.0;\n\t}", "public static boolean isEmpty(Vector aVector) throws IcofException {\n\tboolean bReturn = false;\n\tif (aVector == null || aVector.size() <= 0) {\n\t bReturn = true;\n\t}\n\treturn bReturn;\n }", "private static boolean isZeroMatrix(@NonNull RealMatrix a) {\n for (int i = 0; i < a.getRowDimension(); i++) {\n for (int j = 0; j < a.getRowDimension(); j++) {\n if (a.getEntry(i, j) != 0) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean isZero() {\n\n return realPart == 0d && imaginaryPart == 0d;\n }", "public boolean isZero() {\r\n return (this.getReal() == 0 && this.getImag() == 0) ? true : false;\r\n }", "public boolean isZero()\r\n {\r\n boolean is = true;\r\n for (int i = 0; i < SIZE; i++)\r\n {\r\n if ( this.myArray[i] != 0)\r\n {\r\n is = false;\r\n }\r\n }\r\n return is;\r\n }", "public boolean isEmpty() {\r\n\tfor (int i = 0; i < this.size; i++) {\r\n\t if (this.territory[0][i] != 0 || this.territory[1][i] != 0) {\r\n\t\treturn false;\r\n\t }\r\n\t}\r\n\r\n\treturn true;\r\n }", "public static boolean isVector(int[] v) { return v != null && v.length == 2; }", "boolean isZero();", "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "public Boolean isZERO(Ring ring) {\r\n return (re.isZero(ring) && im.isZero(ring));\r\n }", "public static int zeroNorm(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof SparseVectorIntf) { // short-cut for sparse vectors\r\n SparseVectorIntf y = (SparseVectorIntf) x;\r\n\t\t\tif (Double.compare(y.getDefaultValue(),0.0)==0) return y.getNumNonZeros();\r\n }\r\n final int n = x.getNumCoords();\r\n int res=0;\r\n for (int i=0; i<n; i++)\r\n if (Double.compare(x.getCoord(i),0.0)!=0) ++res;\r\n return res;\r\n }", "public boolean isZero() {\r\n for (int i = 0; i < this.getDimension(); i++) {\r\n if (this.getComponent(i) != 0)\r\n return false;\r\n }\r\n return true;\r\n }", "Vector getZeroVector();", "public boolean isZero() {return false;}", "public boolean isZero()\r\n\t{\r\n\t\tif(this.get_coefficient()==0)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasVector2Value();", "private static boolean checkZero(int[] count) {\n\t\tfor (int i = 0; i < count.length; i++) {\n\t\t\tif (count[i] != 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean equals(Vector other){\n\t\treturn x == other.x && y == other.y && z == other.z;\n\t}", "public final boolean equals (Object obj) {\n if (obj instanceof IntVector) {\n IntVector v = (IntVector)obj;\n if (isEmpty())\n return v.isEmpty();\n else\n return !v.isEmpty() &&\n head == v.head() &&\n tail.equals(tail);\n } else\n return false;\n }", "public boolean almostZero(Coordinates a);", "public static boolean equal(VectorIntf x, VectorIntf y) {\r\n if (x==null && y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"both args null\");\r\n if (x==null || y==null) return false;\r\n if (x.getNumCoords()!=y.getNumCoords()) return false;\r\n // short-cut for specific sparse vectors\r\n if (x instanceof DblArray1SparseVector && \r\n\t\t\t y instanceof DblArray1SparseVector)\r\n return ((DblArray1SparseVector) x).equals((DblArray1SparseVector) y);\r\n for (int i=0; i<x.getNumCoords(); i++) {\r\n if (Double.compare(x.getCoord(i),y.getCoord(i))!=0) return false;\r\n }\r\n return true;\r\n }", "public boolean isZero(int count) {\n\t\treturn count == 0;\n\t}", "public boolean isZero() {\n return mJavaSize == 0 && mRegisteredNativeSize == 0;\n }", "public boolean isZeroLength() {\r\n return value.length() == 0;\r\n }", "public boolean isEmpty() {\n\t\treturn tamano == 0;\n\t}", "public boolean isEmpty() {\r\n return (Double.isNaN(x) && Double.isNaN(y));\r\n }", "public boolean equalsIdentical(MyVector V) {\n if (V.ON != ON) return false;\n V.compress();\n compress();\n for (int i = 0; i < ON; i++) {\n if (V.O[i] != O[i]) return false;\n }\n return true;\n }", "private void findZeros() {\n\t\t\n\t\tif (realFinal == 0) {\n\t\t\thasZeroR = true;\n\t\t} if (imagFinal == 0) {\n\t\t\thasZeroI = true;\n\t\t}\n\t\t\n\t}", "public boolean isEmpty()\r\n { return N == 0; }", "public boolean isEmpty() {\r\n\t\tfor (double d : values) {\r\n\t\t\tif (!Double.isNaN(d)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isEmpty() {\n\t\treturn (N == 0);\t\n\t}", "public boolean isEmpty() {\n return b < 0;\n }", "CompT zero();", "public static boolean isZero (int []n) {\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tif (n[i] != 0) { return false; }\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isEmpty() { \r\n \treturn n == 0;\r\n }", "public boolean isEmpty(){\n return this.size()==0;\n }", "@Override\n\tpublic boolean notEmpty() {\n\t\treturn count==0&&front==rear?true:false;\n\t}", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "@Test\n public void testIsEmpty_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = false;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "public boolean isEmpty(){\r\n return currentSize == 0;\r\n }", "public boolean isZero() {\n\t\treturn ((get() >> 7) & 1) == 1;\n\t}", "@Override\n public boolean IsEmpty() {\n if (tamano == 0) {\n return true;\n } else {\n return false;\n }//FIn del else\n }", "public boolean isEmpty() {\r\n return N == 0;\r\n }", "public boolean isEmpty() {\n\t\treturn numElements == 0; // Dummy return\n\t}", "private boolean isEmpty(){\n return (numInstances() == 0);\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty(){\n\t\tboolean ans = false;\n\t\tif (_size == 0) ans = true;\n\t\treturn ans;\n\t}", "public boolean isEmpty(){return n==0;}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean equals(MyVector V) {\n if (V.ON != ON) return false;\n V.compress();\n compress();\n for (int i = 0; i < ON; i++) {\n if (!V.O[i].equals(O[i])) return false;\n }\n return true;\n }", "public static boolean isEmpty()\n { return currentSize==0; }", "public boolean hasZeroVolume() {\n\t\treturn getSize() == 0;\n\t}", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty()\n\t{\n\t\treturn vertices.isEmpty();\n\t}", "@Test\n public void testIsEmpty_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = false;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "public boolean isEmpty()\r\n {\r\n return n == 0;\r\n }", "public boolean equals(Vector330Class v){\n return (Math.abs(this.x-v.x) <= EPS || Math.abs(this.y-v.y) <= EPS);\n }", "public boolean isZero()\n {\n return Native.fpaIsNumeralZero(getContext().nCtx(), getNativeObject());\n }", "int isEmpty(){\n if(values[0]==(-1)){\n return 1;\n }\n return (-1);\n }", "public boolean isEmpty() {\r\n\t\treturn n == 0;\r\n\t}", "public boolean isEmtpyBySize(){\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "private boolean isEmpty() {\n return (size == 0);\n }", "@Test//test equal\n public void testEqual() {\n MyVector vD1 = new MyVector(ORIGINALDOUBLEARRAY);\n MyVector vD2 = new MyVector(ORIGINALDOUBLEARRAY);\n double[] doubleArray = new double[]{3.0, 2.3, 1.0, 0.0, -1.1};\n MyVector diffVD3 = new MyVector(doubleArray);\n assertEquals(true, vD1.equal(vD2));\n assertEquals(false, vD1.equal(diffVD3));\n MyVector vI1 = new MyVector(ORIGINALINTARRAY);\n MyVector vI2 = new MyVector(ORIGINALINTARRAY);\n int[] intArray = new int[]{1, 2, 3, 4};\n MyVector vI3 = new MyVector(intArray);\n assertEquals(true, vI1.equal(vI2));\n assertEquals(false, vI1.equal(vI3));\n }", "boolean isZeroReference() {\n return refCount == 0;\n }", "public boolean isEmpty() {\n \treturn size == 0;\n }", "public boolean isEmpty() {\n\t\treturn front == rear; //-+\n\t}", "public boolean isEmpty() {\n \t return size == 0;\n }", "public boolean isEmpty()\r\n {\r\n if (count > 0) return false;\r\n else return true;\r\n }", "@Requires(\"c != null\")\n protected static boolean cigarHasZeroSizeElement(final Cigar c) {\n for (final CigarElement ce : c.getCigarElements()) {\n if (ce.getLength() == 0)\n return true;\n }\n return false;\n }", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "public boolean isEmpty(){\n\t\tif(this.mVehicles.size() == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isEmpty() { return count == 0; }", "public boolean isEmpty() {\n\r\n if(size()==0){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n }", "@Test\n public void testIsEmpty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.clear();\n\n boolean expResult = true;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "public boolean isEmpty(){ return size==0;}", "public boolean isEmpty() \n\t {\n\t\t return (size()==0);\n\t }", "public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty() {\n return front == back;\n }", "public boolean isEmpty(){\n return size == 0;\n }", "public boolean almostZero(double a);", "public boolean isEmpty(){\n return (length == 0);\n }", "public boolean isEmpty() {\r\n return size == 0; \r\n }", "public boolean isEmpty(){\r\n\t\treturn size == 0;\r\n\t}" ]
[ "0.68989784", "0.689401", "0.6891685", "0.6726034", "0.6709521", "0.6582406", "0.64789057", "0.6478212", "0.645867", "0.64513814", "0.6435577", "0.6275574", "0.6232172", "0.6228518", "0.6200976", "0.6200819", "0.6152301", "0.6123173", "0.6032278", "0.60125387", "0.5985537", "0.597887", "0.5974087", "0.5971964", "0.59612465", "0.5940437", "0.5932964", "0.59274894", "0.5922644", "0.59198546", "0.5902127", "0.58880484", "0.58742523", "0.58639586", "0.5849535", "0.5837269", "0.5821316", "0.5815879", "0.5815688", "0.58001417", "0.5789127", "0.5784366", "0.5768033", "0.5759493", "0.57401365", "0.57338864", "0.5723192", "0.5722311", "0.5720276", "0.5713394", "0.5709474", "0.57071424", "0.5705372", "0.57040757", "0.5703786", "0.5698909", "0.56823784", "0.56823784", "0.56823784", "0.5680993", "0.56712115", "0.56635743", "0.56630963", "0.5662491", "0.5662491", "0.5662491", "0.5662491", "0.56611186", "0.5653184", "0.56465757", "0.56398654", "0.56362814", "0.5636029", "0.5635987", "0.5632504", "0.5631936", "0.5631936", "0.5631936", "0.56266594", "0.562518", "0.5621509", "0.5618296", "0.5616698", "0.56104255", "0.5607594", "0.5606698", "0.56032425", "0.56028587", "0.5600829", "0.55996984", "0.5597614", "0.5597536", "0.5596693", "0.5595956", "0.5595113", "0.5594997", "0.55949533", "0.55922043", "0.5592024", "0.55912626" ]
0.6588004
5
create transformed vector. does not alter this.
public CMLVector3 transform(CMLTransform3 t) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3.transform(t .getEuclidTransform3()); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "public void transform(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 + V.y * M23 + V.z * M33 + V.w * M43;\r\n\t\trv.w = V.x * M14 + V.y * M24 + V.z * M34 + V.w * M44;\r\n\t\tV.set(rv);\r\n\t}", "public Vector normalize ( );", "public Vector3D transform(Vector3D vector) {\n\t\tdouble x = vector.x;\n\t\tdouble y = vector.y;\n\t\tdouble z = vector.z;\n\t\t\n\t\treturn new Vector3D(a11*x + a12*y + a13*z + a14, \n\t\t\t\t\t\t a21*x + a22*y + a23*z + a24,\n\t\t\t\t\t\t a31*x + a32*y + a33*z + a34);\n\t}", "@Test\n public void testRotateVector(){\n\n double [] v = new double[2]; // input vector\n double[] transformedV; // output vector\n\n v[0] = 0;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 1;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 1);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n }", "public Vector3D getTransformedVector(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 + V.y * M23 + V.z * M33 + V.w * M43;\r\n\t\trv.w = V.x * M14 + V.y * M24 + V.z * M34 + V.w * M44;\r\n\t\treturn rv;\r\n\t}", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }", "public static Vector2f transformVect(Transform t, Vector2f v) {\n\t\treturn new Vector2f(t.a * v.x + t.c * v.y, t.b * v.x + t.d * v.y);\n\t}", "public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }", "public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}", "public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }", "public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);", "public Vector(float[] axis){ this.axis = axis;}", "@Override\n\tpublic IVector toVector(boolean liveView) {\n\t\tif (this.getColsCount() != 1 && this.getRowsCount() != 1) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"Matrix can be represented as vector only if number of rows or columns is 1\");\n\t\t}\n\t\treturn new VectorMatrixView(this);\n\n\t}", "private void transform(float[] v, int len){\n \t\n \t\n \t\t\n if((len & 3) != 0) throw new IllegalArgumentException();\n \n for(int i = 0; i < len; i += 4){\n\n // 0\n // 1\n // 2\n // 3\n \t// 0 1 2 3 \n \t \t// 4 5 6 7\n \t \t// 8 9 10 11\n \t \t// 12 13 14 15\n \t \t// \n\n \tfloat v0 = v[i];\n \tfloat v1 = v[i+1];\n \tfloat v2 = v[i+2];\n \tfloat v3 = v[i+3];\n \t\n \tv[i] = matrix[ 0]*v0 + matrix[ 1]*v1 + matrix[ 2]*v2 + matrix[ 3]*v3;\n \tv[i+1] = matrix[ 4]*v0 + matrix[ 5]*v1 + matrix[ 6]*v2 + matrix[ 7]*v3;\n \tv[i+2] = matrix[ 8]*v0 + matrix[ 9]*v1 + matrix[10]*v2 + matrix[11]*v3;\n \tv[i+3] = matrix[12]*v0 + matrix[13]*v1 + matrix[14]*v2 + matrix[15]*v3;\n \t\n }\n\n }", "public Vector at ( float x ) { return A.add(D.prod(x)); }", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "protected Matrix4 computeTransform() {\n return super.computeTransform();\n }", "public abstract Vector4fc set(float x, float y, float z, float w);", "public static Transform identity(){\n return new Transform(new float[][]{\n {1.0f, 0.0f, 0.0f, 0.0f},\n {0.0f, 1.0f, 0.0f, 0.0f},\n {0.0f, 0.0f, 1.0f, 0.0f},\n {0.0f, 0.0f, 0.0f, 1.0f}\n });\n }", "public TransformationMatrix(Tuple3<Double,Double,Double> vector) {\n\t\tthis(1, 0, 0, vector.x, \n\t\t 0, 1, 0, vector.y, \n\t\t 0, 0, 1, vector.z);\n\t}", "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "VectorType11 getVector();", "public Vector projectOnto(Vector other){\n Vector normalizedOther = other.normalize();\n \n return normalizedOther.scale(dot(normalizedOther));\n }", "public Vector330Class normalize(){\n if(this.magnitude() <= EPS){\n return new Vector330Class(0, 0);\n }\n else{\n return new Vector330Class(this.x * (1/this.magnitude()), this.y * (1/this.magnitude()));\n }\n }", "public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }", "public Vector2d() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}", "public Vector3 invert()\n {\n this.scale(-1);\n return this;\n }", "public abstract Vector4fc normalize(float length);", "public abstract Vector4fc zero();", "public static Vector4 forward()\n {\n return new Vector4(0,0,1,0);\n }", "public abstract ImmutableVector getImmutableVector();", "public Coordinates scaleVector(Coordinates vector, double factor);", "public void transform(float a11, float a12, float a21, float a22, float x, float y);", "public double[] vectorTo(double[] pt){\n double[] vecToLight = new double[3];\n vecToLight[0] = pos[0] - pt[0];\n vecToLight[1] = pos[1] - pt[1];\n vecToLight[2] = pos[2] - pt[2];\n return vecToLight;\n }", "public Coordinates unitVector(Coordinates vector);", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "public Vector normalize() {\n double num=1/length();\n head = scale(num).head;\n return this;\n }", "@Override\n public Vector3 clone()\n {\n return new Vector3(this);\n }", "public Vector2 xform(Vector2 v) \n\t{\n\t\treturn new Vector2(this.tDotX(v), tDotY(v)).add(this.matrix[2]);\n\t}", "public static PVector fromCanvas( PVector in) {\n\t\treturn fromCanvas( in, 0 );\n\t}", "@NotNull\n private Coordinate flipV() {\n angle = -angle;\n Coordinate nextCenterPointCoordinate = new Coordinate(this.centerPointCoordinate.getXCoordinate(),\n this.centerPointCoordinate.getYCoordinate() + (Constants.BULLET_SPEED * Math.sin(Math.toRadians(90 - angle))));\n return nextCenterPointCoordinate;\n }", "public static Vector4 up()\n {\n return new Vector4(0,1,0,0);\n }", "public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "public abstract Vector4fc add(float x, float y, float z, float w);", "public Vector scalar(double scalar) {\n return new Vector(\n scalar * getX(),\n scalar * getY(),\n scalar * getZ()\n );\n }", "public Vector2D toVector2D ( );", "@Override\r\n\tpublic Point2D.Double transform(Point2D.Double p) {\r\n\t\tRealVector s = new ArrayRealVector(new double[] { p.x, p.y, 1 }, false);\r\n\t\tRealVector t = H.operate(s);\r\n\t\tp.x = t.getEntry(0) / t.getEntry(2);\r\n\t\tp.y = t.getEntry(1) / t.getEntry(2);\r\n\t\treturn p;\r\n\t}", "public Transform(Transform transform){\n System.arraycopy(transform.matrix, 0, matrix, 0, 16); \n }", "public Vector normalize() {\n this.head = this.normalized().getHead();\n return this;\n }", "void vectorToWorld(double px, double py, double pz, DVector3 result);", "public Vector normalized(){\r\n\t\tfloat len = this.length();\r\n\t\tif( len != 0.0f && len != 1.0f ){\r\n\t\t\treturn new Vector( this.x / len, this.y / len, this.z / len );\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "void vectorFromWorld(double px, double py, double pz, DVector3 result);", "public vec3 times(float val) {\r\n\t\tvec3 tmp = new vec3(this);\r\n\t\ttmp.scale(val);\r\n\t\treturn tmp;\r\n\t}", "@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}", "Vector getZeroVector();", "public abstract Vector4fc normalize3();", "public ImgMathVec(int x, int y) {\r\n\t\tv = new int[3];\r\n\t\tv[0] = x;\r\n\t\tv[1] = y;\r\n\t\tv[2] = 1;\r\n\t}", "public Vector3<T> build() {\n return new Vector3<>(x, y, z);\n }", "public Vector4d copy() {\n\t\treturn new Vector4d(this);\n\t}", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "public Vector3D addVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(this.x = u.x + v.x, this.y = u.y + v.y, \n\t\t\t\tthis.z = u.z + v.z);\n\t}", "static PointDouble translate(PointDouble p, Vec v) {\n return new PointDouble(p.x + v.x , p.y + v.y);\n }", "public ColladaFloatVector() {\n super();\n }", "public Vec2f() {\n\t\tthis(0, 0);\n\t}", "static Vec scale(Vec v, double s) {\n return new Vec(v.x * s, v.y * s);\n }", "public Vector(Point point) {\n\t\tthis(point.x, point.y);\n\t}", "public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}", "public void transform(VertexArray in, float[] out, boolean W) {\n int c = in.numComponents;\n int len = in.numVertices;\n\n float fill = W ? 1 : 0;\n\n int s = in.componentSize;\n int op = 0;\n int ip = 0;\n\n for(int i = 0; i < len; i++){\n for(int j = 0; j < c; j++){\n out[op++] = s == 2 ? in.data2[ip] : in.data1[ip];\n ip++;\n }\n // fill components c..2 with 0\n for(int j = c; j < 3; j++){\n out[op++] = 0;\n }\n // fill W component (3) with fill value\n out[op++] = fill;\n }\n \n transform(out, len*4);\n }", "public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}", "public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }", "public abstract Vector4fc set(float d);", "public static Vector normalize(Vector v) {\r\n Vector w = new Vector(v);\r\n w.normalize();\r\n return w;\r\n }", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "public static Transform newTranslation(Vec3 tr){\n return newTranslation(tr.x, tr.y, tr.z);\n }", "private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }", "public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}", "public void transform(Matrix m)\n { \n\t \tfor(int i= 0 ; i < this.vertex.length ; i++)\n\t \t{\n\t \t\tthis.vertex[i] = this.vertex[i].transform(m);\n\t \t}\n\t \n }", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public abstract Vector computeCenter();", "public VOIVector() {\r\n super();\r\n }", "public Vector2D normalize() \n {\n \tfloat length = getLength();\n if (length != 0.0f) \n {\n this.setX(this.getX() / length);\n this.setY(this.getY() / length);\n } \n else \n {\n this.setX(0.0f);\n this.setY(0.0f);\n }\n return this;\n }", "public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }", "public final Shape translate(Vector displacement) {\n\t\treturn transform(new Translation(displacement));\n\t}", "public Vector4d normalize() {\n\t\tdouble len = length();\n\t\tif (len != 0) {\n\t\t\tx /= len;\n\t\t\ty /= len;\n\t\t\tz /= len;\n\t\t\tw /= len;\n\t\t}\n\t\treturn this;\n\t}", "public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }", "public punto() {\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\tz = 0;\n\t\t}", "public Vector(double x, double y){\n this.x=x;\n this.y=y;\n }", "final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }", "@Override\n\tpublic void vInv() {\n\t\t\n\t}", "public VectorA sub(VectorA v)\n {\n return new VectorA(this.x-v.x, this.y-v.y);\n }", "public Vector2f() {\n this(0, 0);\n }", "public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }", "public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}" ]
[ "0.732893", "0.6365584", "0.63511264", "0.632268", "0.6315958", "0.629888", "0.62296677", "0.61820364", "0.61719894", "0.61233604", "0.61232734", "0.60122275", "0.599411", "0.5982521", "0.5963954", "0.59042174", "0.589697", "0.58870494", "0.5877218", "0.5871523", "0.58703876", "0.58502346", "0.5837314", "0.5820911", "0.5809245", "0.5798651", "0.57775974", "0.5760975", "0.5742525", "0.5737381", "0.5736505", "0.5727537", "0.57234126", "0.5721068", "0.57077086", "0.56953347", "0.5693263", "0.5689093", "0.5685692", "0.5672369", "0.5671153", "0.5664426", "0.5663661", "0.5654003", "0.5650575", "0.56384254", "0.56362665", "0.56357086", "0.5629199", "0.56236494", "0.5622628", "0.5620903", "0.56198597", "0.5617917", "0.56166315", "0.5610746", "0.5591171", "0.5590897", "0.5573641", "0.557316", "0.5565976", "0.5556779", "0.55419683", "0.5537914", "0.5537163", "0.5527135", "0.5526222", "0.55229306", "0.5517464", "0.55028796", "0.5502624", "0.5499421", "0.54971385", "0.5495975", "0.549313", "0.5492089", "0.54891634", "0.54814804", "0.5481204", "0.54800075", "0.5477009", "0.5476", "0.5468979", "0.5465635", "0.546057", "0.5453373", "0.5451784", "0.5436592", "0.5433509", "0.54331577", "0.5424795", "0.5424632", "0.54218507", "0.541369", "0.5410367", "0.54103374", "0.5409812", "0.540547", "0.5400474", "0.539562", "0.5394504" ]
0.0
-1
normalize vector. alters this this = this.normalize() if zero vector throws CMLRuntim
public CMLVector3 normalize() throws RuntimeException { if (this.isZero()) { throw new RuntimeException("Cannot normalize zero vector"); } Vector3 veucl3 = this.getEuclidVector3(); if (veucl3 != null) { veucl3.normalize(); setXMLContent(veucl3.getArray()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector normalize ( );", "public void normalize() {\n\t\tdouble norm = norm();\n\t\tif (DoubleComparison.eq(norm, 0)) {\n\t\t\tthrow new RuntimeException(\"Failed to normalize: length is zero\");\n\t\t}\n\t\tthis.x = this.x / norm;\n\t\tthis.y = this.y / norm;\n\t\tthis.z = this.z / norm;\n\t}", "public Vector normalized(){\r\n\t\tfloat len = this.length();\r\n\t\tif( len != 0.0f && len != 1.0f ){\r\n\t\t\treturn new Vector( this.x / len, this.y / len, this.z / len );\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }", "public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}", "public Vector normalize() {\n double num=1/length();\n head = scale(num).head;\n return this;\n }", "public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }", "public Vector3 normalized() {\n\t\tif (isZeroVector(this)) {\n\t\t\treturn this;\n\t\t}\n\t\treturn new Vector3(x / norm(), y / norm(), z / norm());\n\t}", "public Vector2D normalize() \n {\n \tfloat length = getLength();\n if (length != 0.0f) \n {\n this.setX(this.getX() / length);\n this.setY(this.getY() / length);\n } \n else \n {\n this.setX(0.0f);\n this.setY(0.0f);\n }\n return this;\n }", "public void normalize() {\r\n\t\tfloat length = (float) this.lenght();\r\n\t\tif (length > 0) {\r\n\t\t\tx /= length;\r\n\t\t\ty /= length;\r\n\t\t\tz /= length;\r\n\t\t}\r\n\t}", "public void normalize() { sets length to 1\n //\n double length = Math.sqrt(x * x + y * y);\n\n if (length != 0.0) {\n float s = 1.0f / (float) length;\n x = x * s;\n y = y * s;\n }\n }", "public final void normalize() {\n\tsvd(this);\n }", "public Vector normalized() {\n double size = this.length();\n return new Vector(this.getHead().getX() / size, this.getHead().getY() / size, this.getHead().getZ() / size);\n }", "public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }", "@Test\n void normalize() {\n\n Vector v = new Vector(1, 2, 3);\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n if (vCopy != vCopyNormalize)\n fail(\"ERROR: normalize() function creates a new vector\");\n if (!isZero(vCopyNormalize.length() - 1))\n fail(\"ERROR: normalize() result is not a unit vector\");\n Vector u = v.normalized();\n if (u == v)\n fail(\"ERROR: normalized() function does not create a new vector\");\n }", "public abstract Vector4fc normalize(float length);", "public Vector4d normalize() {\n\t\tdouble len = length();\n\t\tif (len != 0) {\n\t\t\tx /= len;\n\t\t\ty /= len;\n\t\t\tz /= len;\n\t\t\tw /= len;\n\t\t}\n\t\treturn this;\n\t}", "public static Vector normalize(Vector input) {\n return input.divide(input.euclideanNorm());\n }", "public Vector normalize() {\n this.head = this.normalized().getHead();\n return this;\n }", "public static Vector normalize(Vector v) {\r\n Vector w = new Vector(v);\r\n w.normalize();\r\n return w;\r\n }", "public Vector330Class normalize(){\n if(this.magnitude() <= EPS){\n return new Vector330Class(0, 0);\n }\n else{\n return new Vector330Class(this.x * (1/this.magnitude()), this.y * (1/this.magnitude()));\n }\n }", "public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }", "public void normalize()\n {\n double magnitude = this.magnitude();\n this.x = x / (float)magnitude;\n this.y = y / (float)magnitude;\n this.z = z / (float)magnitude;\n this.w = w / (float)magnitude;\n }", "public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}", "public void normalise(Vector2 normVector) {\n\t\tposition.subtract(normVector);\n\t\tsetX(getX() - normVector.getX());\n\t\tsetY(getY() - normVector.getY());\n\t}", "@Override\n\tpublic double\n\tnormalize()\n\t{\n\t\tdouble len = length();\n\n\t\tif( len != 0 )\n\t\t{\n\t\t\tdata[0] /= len;\n\t\t\tdata[1] /= len;\n\t\t\tdata[2] /= len;\n\t\t}\n\t\t\n\t\treturn len;\n\t}", "public Vector2f normalize() {\n return div(length());\n }", "public void normalize() {}", "public void normalize() {\n // determine the maximum value\n \n Double max = getMaxValue();\n \n if(max!=null) {\n normalize(max);\n }\n }", "void normalizeSafe (Vector3f kVector)\r\n {\r\n set(kVector);\r\n normalizeSafe();\r\n }", "final public Vector3 normalized(){\n return new Vector3(x/magnitude, y/magnitude, z/magnitude);\n }", "public void normalize()\n\t{\n\t\tif (this.getDenom() < 0)\n\t\t{\n\t\t\tthis.setDenom(this.getDenom() * (-1));\n\t\t\tthis.setNumer(this.getNumer() * (-1));\n\t\t}\n\t}", "public static void normalise(double[] v) {\n double tot = 0;\r\n for (int i=0; i<v.length; i++) {\r\n tot += v[i] * v[i];\r\n }\r\n double div = Math.sqrt(tot);\r\n if (div > 0) {\r\n for (int i=0; i<v.length; i++) {\r\n v[i] /= div;\r\n }\r\n }\r\n }", "public Vector3 normalizeLocal () {\n return normalize(this);\n }", "public void normalize() {\n float length = (float)Math.sqrt(nx * nx + ny * ny);\n nx/=length;\n ny/=length;\n }", "public static float[] l2normalize(float[] v, boolean throwOnZero) {\n double squareSum = IMPL.dotProduct(v, v);\n int dim = v.length;\n if (squareSum == 0) {\n if (throwOnZero) {\n throw new IllegalArgumentException(\"Cannot normalize a zero-length vector\");\n } else {\n return v;\n }\n }\n double length = Math.sqrt(squareSum);\n for (int i = 0; i < dim; i++) {\n v[i] /= length;\n }\n return v;\n }", "@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }", "public Vector2f normalize (Vector2f result)\n {\n return mult(1f / length(), result);\n }", "IVec3 normalized();", "public static Vector<Double> norm(Vector<Double> a) {\n\t\tdouble x = TransEInitializer.vec_len(a);\n\t\tif (x > 1){\n\t\t\t\n\t\t\tfor (int ii = 0; ii < a.size(); ii++)\n\t\t\t\ta.set(ii, a.get(ii) / x);\n\t\t\n\n\t\t}\n\n//\t\tif(x > 1)\n//\t\t\treturn true;\n//\t\treturn false;\n\t\treturn a;\n\t}", "public final void normalize(Matrix3f m1) {\n\tset(m1);\n\tsvd(this);\n }", "public Vector3 normalized() {\n float length = length();\n return new Vector3(x / length, y / length, z / length);\n }", "public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }", "void normalizeSafe()\r\n {\r\n float fLengthSquared = lengthSquared();\r\n if ( 0.0f == fLengthSquared )\r\n {\r\n set(ZERO);\r\n }\r\n else\r\n {\r\n scale(1.0f/(float)Math.sqrt(fLengthSquared));\r\n }\r\n }", "public static double[] normalize(double[] v) {\n double[] tmp = new double[3];\n tmp[0] = v[0] / VectorMath.length(v); \n tmp[1] = v[1] / VectorMath.length(v); \n tmp[2] = v[2] / VectorMath.length(v); \n return tmp; \n }", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "public abstract Vector4fc normalize3();", "public Vector4 normalized()\n {\n double magnitude = this.magnitude();\n\n float normalizeX = x / (float)magnitude;\n float normalizeY = y / (float)magnitude;\n float normalizeZ = z / (float)magnitude;\n float normalizeW = w / (float)magnitude;\n\n return new Vector4(normalizeX, normalizeY, normalizeZ, normalizeW);\n }", "private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }", "private void normalize() {\n this.x = (this.x - RobocodeRunner.width / 2) / RobocodeRunner.width;\n this.y = (this.y - RobocodeRunner.height / 2) / RobocodeRunner.height;\n this.distance /= Math.sqrt(RobocodeRunner.width * RobocodeRunner.width + RobocodeRunner.height * RobocodeRunner.height);\n this.enemyHeading /= 90;\n this.enemyDx /= 8;\n this.enemyDy /= 8;\n this.gunToTurn /= 180;\n this.angle /= 180;\n }", "public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}", "@Override\r\n\t\tpublic void normalize()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "float norm();", "public void unitize() {\n \t\tdouble len = this.len();\n \t\t// avoid division by zero\n\t\tif (len<vecPrecision) return;\n \t\t// don't unitize roughly unit vectors\n \t\tif (Math.abs(len-1)<vecPrecision) return;\n \t\t// divide dimensions by length to unitize\n \t\tfloat invlen = (float) (1.0 / len);\n \t\tthis.x *= invlen;\n \t\tthis.y *= invlen;\n \t\tthis.z *= invlen;\n \t}", "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 }", "public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "public static void normalize()\n {\n int sum;\n\n for(int i=0;i<12;i++)\n {\n for(int j=0;j<12;j++) {\n sum = sumAll(i,j);\n if (sum != 0)\n for (int n = 0; n < 12; n++)\n weights[i][j][n] /= sum;\n }\n }\n }", "public void normalize(){\n\t_defense = originalDefense;\n\t_strength = originalStrength;\n }", "private double[][] normalize (float[][] in) {\n\n\t\tdouble[][] temp = new double[in.length][2];\n\n\t\t// Get centroid\n\t\tfloat[] centroid = getCentroid(in);\n\n\t\t// Normalize\n\t\tfor(int i = 0; i < in.length; i++) {\n\t\t\ttemp[i][0] = in[i][0] - centroid[0];\n\t\t\ttemp[i][1] = in[i][1] - centroid[1];\n\t\t}\n\n\t\treturn temp;\n\t}", "public double norm() {\n\t\treturn Math.sqrt(x * x + y * y + z * z);\n\t}", "@Test\n public void normalize() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float len = (float) Math.sqrt(86.0);\n float[] expect = new float[] {3.0f/len, 4.0f/len, 5.0f/len, 6.0f/len};\n // 1)\n Vec4f.normalize(dest, 4, a, 2);\n float newLen = Vec4f.length(dest, 4);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n assertTrue(Math.abs(newLen-1.0f) < 1E-5f);\n \n //2)\n Vec4f.normalize(a, 2);\n float newLen2 = Vec4f.length(dest, 4);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-5f));\n assertTrue(Math.abs(newLen2-1.0f) < 1E-5f);\n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n //3)\n Vec4f.normalize(dest2, a2);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n //4) \n Vec4f.normalize(a2);\n assertTrue(Vec4f.epsilonEquals(a2, expect, 1E-5f));\n \n }", "@Override \n public double[] fastApply(double[] x) {\n double d = dot.norm(x);\n scale.fastDivide(x, d);\n return x;\n }", "public Point3D normalize() {\n\t\treturn this.divide(Math.sqrt(x*x + y*y + z*z));\n\t}", "static float calculateAccelerationNormalizer(float a, float v, float theta) {\n if (theta == 0 && v < 0) {\n a *= -1;\n }\n return a;\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "public Vector2D normal()\n\t{\n\t\treturn this.mul(1/this.length());\n\t}", "public final void mulNormalize(Matrix3f m1) {\n\tmul(m1);\n\tsvd(this);\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "public final void normalizeCP() {\n\t// domain error may occur\n\tdouble s = Math.pow(determinant(), -1.0/3.0);\n\tmul((float)s);\n }", "protected float normalize(Vector3f kV) {\r\n float fLengthSquared = kV.x * kV.x + kV.y * kV.y + kV.z * kV.z;\r\n if (0.0f < fLengthSquared) {\r\n float fLength = (float)Math.sqrt(fLengthSquared);\r\n kV.scale(1.0f / fLength);\r\n return fLength;\r\n }\r\n else {\r\n kV.set(0.0f, 0.0f, 0.0f);\r\n return 0.0f;\r\n }\r\n }", "private void computeNormal() {\n normal = getDirection();\r\n\r\n // Rotate by -90 degrees to get normal of line\r\n float oldY = normal.y;\r\n normal.y = -normal.x;\r\n normal.x = oldY;\r\n }", "public void normalize(double normalizingFactor) {\n //System.out.println(\"norm: \" + normalizingFactor);\n for (T value : getFirstDimension()) {\n for (T secondValue : getMatches(value)) {\n double d = get(value, secondValue) / normalizingFactor;\n set(value, secondValue, d);\n }\n }\n }", "public static final double[] normalize(final double[] V)\n {\n double []vec = new double[periodNum];\t\n\t//Vector vec = new Vector(periodNum);\n\t//Double zero = new Double(0);\n\t//for(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt(zero,i);\n\n\tdouble sum =0;\n\t\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t\tsum += V[i];\n\t\t//sum += ((Double)V.elementAt(i)).doubleValue();\n\t}\n\t// if sum is 0, can't divide using it\n\tif(sum ==0)\n\t return V;\n\n\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t double d = V[i];//((Double)V.elementAt(i)).doubleValue();\n\t double dd = d/sum;\n\n\t vec[i] = dd;\n\t //vec.addElement(new Double(dd));\n\t}\n\t \n\treturn vec;\n }", "public abstract void recalcNormalizationExtrema();", "public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}", "public float normalize() {\r\n\t\tfloat length = mDirection.length();\r\n\t\tif (length>0) {\r\n\t\t\tmDirection.normalize();\r\n\t\t}\r\n\t\treturn length;\r\n\t}", "public double l1_norm()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += Math.abs(c);\r\n\r\n return sum;\r\n }", "private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}", "public void normalize(){\n\tstrength = 50;\n\tdefense = 55;\n\tattRating = 0.4\t;\n }", "private static double[] normalize(double[] data)\n {\n double sum = 0;\n \n for (double d : data)\n sum += d;\n \n if (sum != 1 && sum != 0)\n {\n for (int i = 0; i < data.length; i++)\n data[i] /= sum;\n }\n \n return data;\n }", "public double norm() {\n if (dy == 0.0)\n return Math.abs(dx);\n return Math.hypot(dx, dy);\n }", "public DoubleVector Normalize(Instance inst) {\n\t\t\tDoubleVector normalizedInstance = new DoubleVector();\n\t\t\tint index = 0;\n\t\t\tfor (int j = 0; j < inst.numAttributes(); j++) {\n\t\t\t\tif (inst.classIndex() == j)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tdouble value = 0;\n\n\t\t\t\tif (normalizeationOption.getChosenIndex() == 0) {\n\t\t\t\t\tif (this.statsAttributes.get(index).getStandardDeviation() < Constants.SMALL_EPSILON)\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getCurrentMean());\n\t\t\t\t\telse\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getCurrentMean())\n\t\t\t\t\t\t\t\t/ this.statsAttributes.get(index).getStandardDeviation();\n\t\t\t\t}else if(normalizeationOption.getChosenIndex() <= 2){\n\t\t\t\t\tif (this.statsAttributes.get(index).getRange() < Constants.SMALL_EPSILON)\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getMin());\n\t\t\t\t\telse\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getMin())\n\t\t\t\t\t\t\t\t/ this.statsAttributes.get(index).getRange();\n\t\t\t\t}else {\n\t\t\t\t\tvalue = inst.value(j) ;\n\t\t\t\t}\n\n\t\t\t\tnormalizedInstance.setValue(index, value);\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn normalizedInstance;\n\t\t}", "public double[] getNormalizedInputValues(){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = Attributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "static void normalize(double[] state) {\r\n double norm = 1/Math.sqrt(state[0]*state[0]+state[2]*state[2]+state[4]*state[4]+state[6]*state[6]);\r\n state[0] *= norm;\r\n state[2] *= norm;\r\n state[4] *= norm;\r\n state[6] *= norm;\r\n }", "public double[] Normalizar(int[] v){\n double[] result=new double[v.length];\n double s=0;\n for (int i=0;i<v.length;i++){\n s+=v[i];\n }\n for (int i=0;i<v.length;i++){\n result[i]=(double)v[i]/(double)s;\n }\n\n return result;\n }", "public static float[] l2normalize(float[] v) {\n l2normalize(v, true);\n return v;\n }", "@Override\n Vector calculate_normal_vector(Point hitPoint, int surface) {\n Point origin = new Point(0, 0, 0);\n return getInternalTransformer().substraction_to_vector(hitPoint, origin);\n }", "private double[] getNormalVector(Conformer conformer, int[] atom) {\n\t\tdouble[] n = new double[3];\n\t\tgetNormalVector(conformer, atom, n);\n\t\treturn n;\n\t\t}", "public DoubleVector PrepareExtendedFeatureVector(Instance inst) {\n\t\t\tDoubleVector normalizedInstance = Normalize(inst) ;\n\t\t\tnormalizedInstance.setValue(normalizedInstance.numValues(), 1);\n\t\t\treturn normalizedInstance ;\n\t\t}", "public static double normInfinity(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof DblArray1SparseVector) { // short-cut for sparse vectors\r\n return ((DblArray1SparseVector) x).normInfinity();\r\n }\r\n int n = x.getNumCoords();\r\n double res = 0.0;\r\n for (int i=0; i<n; i++) {\r\n final double absxi = Math.abs(x.getCoord(i));\r\n if (absxi>res) res = absxi;\r\n }\r\n return res;\r\n }", "protected void setForceNormalVector() {\n\t\tvn = forceNormalVector(v1, v2);\n\t}", "private double denormalizePrediction(double normalizedPrediction) {\n\t\t\t\n\t\t\tif (this.statsTarget.getCounter()==0)\n\t\t\t\treturn 0 ;\n\t\t\t\n\t\t\tdouble value = 0;\n\t\t\tif (normalizeationOption.getChosenIndex() == 0 || normalizeationOption.getChosenIndex() == 1) {\n\t\t\t\tvalue = normalizedPrediction * this.statsTarget.getStandardDeviation()\n\t\t\t\t\t\t+ this.statsTarget.getCurrentMean();\n\t\t\t} else if (normalizeationOption.getChosenIndex() == 2) {\n\t\t\t\tvalue = normalizedPrediction * this.statsTarget.getRange() + this.statsTarget.getMin();\n\t\t\t}else {\n\t\t\t\tvalue = normalizedPrediction ;\n\t\t\t}\n\t\t\treturn value;\n\t\t}", "@Override\n public Vector getNormal(Point3D p) {\n Vector O_P= p.subtract(_center);\n return O_P.normalize();\n // return null;\n }", "float norm2();", "public static int zeroNorm(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof SparseVectorIntf) { // short-cut for sparse vectors\r\n SparseVectorIntf y = (SparseVectorIntf) x;\r\n\t\t\tif (Double.compare(y.getDefaultValue(),0.0)==0) return y.getNumNonZeros();\r\n }\r\n final int n = x.getNumCoords();\r\n int res=0;\r\n for (int i=0; i<n; i++)\r\n if (Double.compare(x.getCoord(i),0.0)!=0) ++res;\r\n return res;\r\n }", "public static void normalize(Vec2 a, Vec2 dest) {\r\n\t\tfloat length = (float) Math.sqrt((a.x * a.x) + (a.y * a.y));\r\n\t\tdest.x = a.x / length;\r\n\t\tdest.y = a.y / length;\r\n\t}", "public double oneNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}", "public void normalize() {\r\n\t\tfor (int i = 0; i<no_goods; i++) {\t\t\t\r\n\t\t\tfor (IntegerArray r : prob[i].keySet()) {\t\t\t\t\r\n\t\t\t\tdouble[] p = prob[i].get(r);\r\n\t\t\t\tint s = sum[i].get(r);\r\n\t\t\t\t\r\n\t\t\t\tfor (int j = 0; j<p.length; j++)\r\n\t\t\t\t\tp[j] /= s;\r\n\t\t\t}\r\n\r\n\t\t\t// compute the marginal distribution for this good\r\n\t\t\tfor (int j = 0; j<no_bins; j++)\r\n\t\t\t\tmarg_prob[i][j] /= marg_sum;\r\n\t\t}\r\n\t\t\r\n\t\tready = true;\r\n\t}" ]
[ "0.8542028", "0.7891413", "0.77567893", "0.7637737", "0.7592709", "0.75392884", "0.7533487", "0.7525765", "0.75156564", "0.7463884", "0.7436708", "0.74039584", "0.73300815", "0.73295116", "0.7325179", "0.7295534", "0.7294321", "0.72483265", "0.72258717", "0.72099876", "0.7191652", "0.71323913", "0.71157146", "0.70175177", "0.694956", "0.69381946", "0.6919863", "0.6910765", "0.6905481", "0.690365", "0.68998057", "0.6889039", "0.6861899", "0.683562", "0.68305635", "0.68246096", "0.68108183", "0.6775168", "0.6769874", "0.673861", "0.6730338", "0.6720456", "0.6660298", "0.66483927", "0.6639525", "0.6609844", "0.6573352", "0.65732616", "0.6559063", "0.65363777", "0.65084654", "0.6465484", "0.6447616", "0.641599", "0.6287922", "0.6278371", "0.6269802", "0.62620264", "0.6181418", "0.61778104", "0.61544657", "0.6147448", "0.61322814", "0.6129029", "0.612889", "0.6126914", "0.61265266", "0.61155957", "0.61130786", "0.61130786", "0.60976565", "0.60793734", "0.6065602", "0.60413015", "0.60386735", "0.60186994", "0.6017781", "0.6016398", "0.6005867", "0.5987513", "0.59755456", "0.59722143", "0.5966552", "0.59475845", "0.5945206", "0.59435654", "0.5921697", "0.59199613", "0.59174734", "0.5889781", "0.5884771", "0.5881272", "0.5862797", "0.5857029", "0.58495843", "0.583157", "0.5830073", "0.5829748", "0.5788949", "0.57625496" ]
0.71334803
21
create dot product. result = this . v3 does not alter this.
public double dot(CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? Double.NaN : veucl3 .dot(v3.getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double dot(Vec vthat);", "float dot(IVec3 v);", "public double dotProduct(Coordinates vectorA, Coordinates vectorB);", "public T dotProduct(Vector<T> aVector) throws VectorSizeException;", "private double calcDotProduct(Point2D.Double a, Point2D.Double b)\n\t{\t\n\t\treturn (a.getX() * b.getX()) + (a.getY() * b.getY());\n\t}", "public double dotProduct(Vector2d _that)\n {\n Vector2d startToThat = _that.sub(start);\n return startToEnd.dot(startToThat);\n }", "private double dotProduct(double x, double y, double z, double d, double e, double f){\n\t\tdouble length1 = Math.sqrt(x*x + y*y + z*z);\t// Calculate length of [x, y]\n\t\tdouble length2 = Math.sqrt(d*d + e*e + f*f);\t// Calculate length of [d, e]\n\t\t// Normalize vectors:\n\t\tx /= length1;\n\t\ty /= length1;\n\t\tz /= length1;\n\t\td /= length2;\n\t\te /= length2;\n\t\tf /= length2;\n\t\t// Return dot product:\n\t\treturn (x * d) + (y * e) + (z * f);\n\t}", "private static float dotProduct(float[] paramArrayOfFloat1, float[] paramArrayOfFloat2)\r\n/* 133: */ {\r\n/* 134:117 */ return paramArrayOfFloat1[0] * paramArrayOfFloat2[0] + paramArrayOfFloat1[1] * paramArrayOfFloat2[1] + paramArrayOfFloat1[2] * paramArrayOfFloat2[2] + paramArrayOfFloat1[3] * paramArrayOfFloat2[3];\r\n/* 135: */ }", "public double dot(Vector other){\n\t\treturn x*other.x + y*other.y + z*other.z;\n\t}", "static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }", "public double\n\tdotProduct( Vector3 other ) \n\t{\n\t\treturn( ( data[0] * other.data[0] ) + ( data[1] * other.data[1] ) + ( data[2] * other.data[2] ) );\n\t}", "@Override\n public float dot(INDArray x, INDArray y) {\n //return NativeBlas.ddot(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n return JavaBlas.rdot(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n }", "public double dotProduct(Vector other) {\n double num= (head.x._coord*other.head.x._coord+head.y._coord*other.head.y._coord\n +head.z._coord*other.head.z._coord);\n return num;\n }", "public static int dotProduct(byte[] a, byte[] b) {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"vector dimensions differ: \" + a.length + \"!=\" + b.length);\n }\n return IMPL.dotProduct(a, b);\n }", "public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }", "@Override\n public ComplexFloat dotu(IComplexNDArray x, IComplexNDArray y) {\n return new ComplexFloat(NativeBlas.cdotu(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1));\n }", "public double dotProduct(Vector330Class v){\n return ((this.x * v.x) + (this.y * v.y));\n }", "Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }", "Multiply createMultiply();", "public Fraccion producto() {\r\n Fraccion producto = new Fraccion(operador1.getNumerador()*operador2.getNumerador() , operador1.getDenominador()*operador2.getDenominador());\r\n return simplify(producto);\r\n }", "public double dot( T v ) {\n convertType.specify(this, v);\n T A = convertType.convert(this);\n v = convertType.convert(v);\n\n if (!isVector()) {\n throw new IllegalArgumentException(\"'this' matrix is not a vector.\");\n } else if (!v.isVector()) {\n throw new IllegalArgumentException(\"'v' matrix is not a vector.\");\n }\n\n return A.ops.dot(A.mat, v.getMatrix());\n }", "@Test\n public void testDotProduct() {\n System.out.println(\"dotProduct\");\n Vector v = null;\n Vector instance = null;\n double expResult = 0.0;\n double result = instance.dotProduct(v);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public double getProduct()\n {\n return first * second;\n }", "private double dotProduct(Rater me,Rater other) {\n double p=0;\n //int count=Math.min(me.numRatings(), other.numRatings());//this approach failed instead now i search all the ratings done by 'me' rater object\n ArrayList<String> myRatedMovieID=me.getItemsRated();//here string in arraylist represents movie id\n for(int k=0;k<myRatedMovieID.size();k++)\n {\n String myMovieID=myRatedMovieID.get(k);\n if(other.hasRating(myMovieID))//agar mera movie id dusra ka paas hai to \n {\n double myrating=me.getRating(myMovieID)-5;//mera rating lo usme 5 ghatao\n double otherrating=other.getRating(myMovieID)-5;//dusra ka wahi movie ka rating lo aur 5 ghatao\n p=p+(myrating*otherrating);//uske baad dot product kar do\n }\n }\n return p;\n }", "public static double dotproduct(double[] v, double[] w) {\n double r = 0;\n for (int i=0; i<3; i++) {\n r += v[i] * w[i];\n }\n return r;\n }", "public double product(DocumentVector other) {\n\t\tdouble product = 0;\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tproduct += this.getValueAsReal(i) * other.getValueAsReal(i);\n\t\t}\n\t\t\n\t\treturn product;\n\t}", "private static int dot(int x1, int y1, int x2, int y2) {\n\t\treturn (x1 * x2) + (y1 * y2);\t\n\t}", "public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "public static double dot(double[] v1, double[] v2) {\n double result = 0;\n for (int i = 0; i < v1.length; i++) {\n result += v1[i] * v2[i];\n }\n return result;\n }", "double V2Dot(Position a, Position b){\r\n\t\treturn((a.getX() * b.getX())+(a.getY() * b.getY()));\r\n\t}", "@Test\n\tpublic void dotProductTest() {\n\t\tassertEquals((long) point.dot(point1), 57500);\n\t}", "public static float dotProduct(float[] a, float[] b) {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"vector dimensions differ: \" + a.length + \"!=\" + b.length);\n }\n float r = IMPL.dotProduct(a, b);\n assert Float.isFinite(r);\n return r;\n }", "final public double dot(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return (x*v.x + y*v.y + z*v.z);\n }", "public float dot(Vector2D v2) \n {\n \tfloat result = 0.0f;\n result = this.getX() * v2.getX() + this.getY() * v2.getY();\n return result;\n }", "private double dotProduct(String[] words) {\n double sum = 0;\n for (TF_IDF_Term term : TF_IDF_Vectorizer.tfIdf(words, vocabulary)) {\n sum += term.getTfIdf() * theta[term.getId()];\n }\n return sum;\n }", "public double dot(Vector2D v) {\n \n return _x * v.x() + _y * v.y(); \n \n }", "public double componentProduct()\n {\n return this.x * this.y;\n }", "private static double dot(final Map<String, Integer> leftVector, final Map<String, Integer> rightVector,\n final Set<String> intersection) {\n long dotProduct = 0;\n for (final String key : intersection) {\n dotProduct += leftVector.get(key) * rightVector.get(key);\n }\n return dotProduct;\n }", "@Override\n\tpublic float dot(Vector vector) {\n\t\tif(vector instanceof Vec2){\n\t\t\tVec2 vect = (Vec2)vector;\n\t\t\treturn x*vect.x+y*vect.y;//z and w are 0\n\t\t}else if(vector instanceof Vec3){\n\t\t\tVec3 vect = (Vec3)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w is 0\n\t\t}else{\n\t\t\tVec4 vect = (Vec4)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w doesn't exist\n\t\t}\n\t}", "public double dot(Vector2D v)\n\t{\n\t\treturn x*v.getX() + y*v.getY();\n\t}", "public float dot(Vec2 v) {\r\n\t\treturn ((x * v.x) + (y * v.y));\r\n\t}", "public Expression commutativeExp() {\r\n return this;\r\n }", "public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }", "@Test\n public void dot() {\n float result = 0.0f;\n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 2.0f, 6.0f, 4.0f, 4.0f, 5.0f};\n float expect = 74.0f;\n // 1)\n result = Vec4f.dot(a, 2, b, 1);\n assertTrue(Math.abs(result-expect) < 1E-6f);\n \n //2)\n float[] a2 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {2.0f, 6.0f, 4.0f, 4.0f};\n float result2 = Vec4f.dot(a2, b2);\n assertTrue(Math.abs(result2-expect) < 1E-6f);\n }", "public double dotProduct(Vector3 vec) {\n\t\treturn this.x*vec.x + this.y*vec.y + this.z*vec.z;\n\t}", "public float dot(Vector3D v)\r\n\t{\r\n\t\treturn x*v.x + y*v.y + z*v.z;\r\n\t}", "public double dotProduct(Vector2D rhs)\n {\n return this.x * rhs.x + this.y * rhs.y;\n }", "public double dot(SparseVector vector) {\n SparseVector v1 = this;\n SparseVector v2 = vector;\n double result = 0.0;\n int i = 0;\n int j = 0;\n \n while (i < v1.size() && j < v2.size()) {\n Element e1 = v1.get(i);\n Element e2 = v2.get(j);\n \n if (e1.index == e2.index) {\n result += e1.value * e2.value;\n i++;\n j++;\n } else if (e1.index < e2.index) {\n i++;\n } else {\n j++;\n }\n }\n \n return result;\n }", "public float dottedWith( Vector B ){\r\n\t\treturn ((this.x * B.x) + (this.y * B.y) + (this.z * B.z));\r\n\t}", "public static VectorIntf componentProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) * y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }", "void example1() {\n\t\t\n\t\tFloat64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4);\n\t\t\n\t\tFloat64CartesianTensorProductMember b = G.DBL_TEN.construct();\n\t\t\n\t\tTensorCommaDerivative.compute(G.DBL_TEN, G.DBL, 1, a, b);\n\t\t\n\t\t// b contains the comma derivative of a\n\t}", "public String multiply()\r\n {\r\n\r\n return First.multiply(Second).stripTrailingZeros().toString();\r\n }", "public double dot(Vector2d v) {\n\t\treturn x*v.x + y*v.y;\n\t}", "public T elementPower( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementPower(A.mat, b.mat, c.mat);\n return c;\n }", "public double dot(final Vec4 o) {\n expectDirection();\n o.expectDirection();\n return x * o.x + y * o.y + z * o.z;\n }", "public float dot (Vector2f other)\n {\n return x*other.x + y*other.y;\n }", "public double dot(Vector3D v) {\n return (this.xCoord * v.xCoord) + (this.yCoord * v.yCoord) + (this.zCoord * v.zCoord);\n }", "public double dot(Vector3 other) {\n\t\treturn x * other.x + y * other.y + z * other.z;\n\t}", "public static double dot(DataNumeric obj1, DataNumeric obj2) {\n if (obj1 instanceof DataVector && obj2 instanceof DataVector)\n return VectorFactory.dot((DataVector) obj1, (DataVector) obj2);\n if (obj1 instanceof DataMatrix && obj2 instanceof DataMatrix)\n return MatrixFactory.dot((DataMatrix) obj1, (DataMatrix) obj2);\n throw new IllegalArgumentException(\"Unhandled data objects: \" + obj1 + \", \" + obj2);\n }", "public double innerProduct(double[] x1, double[] x2) {\n\t\tdouble result = 0.0d;\n\t\tfor (int i = 0; i < x1.length; i++) {\n\t\t\tresult += x1[i] * x2[i];\n\t\t}\n\t\treturn result;\n\t}", "private double dotProduct(Rater me, Rater r) {\n double output = 0;\n for (String item : me.getItemsRated()) {\n if (r.hasRating(item)) {\n output += (5 - me.getRating(item)) * (5 - r.getRating(item));\n }\n }\n return output;\n }", "public static float dot(float[] a, float[] b) {\n float retval = a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n return retval;\n }", "public ComplexFloat dotc(IComplexNDArray x, IComplexNDArray y) {\n return new ComplexFloat(NativeBlas.cdotc(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1));\n }", "public double DotProduct3(Vector3D vt)\r\n\t{\r\n\t return this.x * vt.x + this.y * vt.y + this.z * vt.z;\r\n\t}", "public float dot(Vector3 other){\r\n return r * other.r + g * other.g + b * other.b;\r\n }", "public static float Dot(Vector a, Vector b){\n if(a.axis.length == b.axis.length) {\n float dot = 0f;\n for (int i = 0; i < a.axis.length; i++) {\n dot += a.axis[i] * b.axis[i];\n }\n return dot;\n }\n return 0f;\n }", "public static int dotProduct(int[] arr1, int[] arr2)\n {\n int sum = 0;\n if(arr1.length == arr2.length)\n {\n for(int i = 0; i < 3; i++)\n {\n int p = (arr1[i] * arr2[i]);\n sum += p;\n \n }\n return sum;\n }\n else\n {\n System.out.println(\"The arrays arent the same length\");\n return -1;\n }\n }", "public Vector tensorProduct( final Vector a);", "public double dotProduct(Vec2dd vec) {\n return x * vec.getX() + y * vec.getY();\n }", "public Function differentiate() {\n return new Product(this,\n new Sum(new Quotient(new Product(f2,\n f1.differentiate()),\n f1),\n new Product(new Log(new Complex(Math.E, 0.0), f1),\n f2.differentiate())));\n }", "public double dot(LorentzVector vect){\n\t\tdouble dotProduct = this.e()*vect.e() - this.vect().dot(vect.vect());\n\t\treturn dotProduct;\n\t}", "public Complex Plus (Complex z) {\nreturn new Complex(u+z.u,v+z.v);\n\n}", "public PolyTerm derivate() {\n\t\tScalar coeffi=this.coefficient.mul(this.exponent);\n\t\tint expon=this.exponent-1;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}", "final public double dot(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n return (x*n.x + y*n.y + z*n.z);\n }", "public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}", "private float[] crossProduct(float[] v1, float[] v2) {\n float[] result = new float[3];\n result[0] = v1[1] * v2[2] - v2[1] * v1[2];\n result[1] = v1[2] * v2[0] - v2[2] * v1[0];\n result[2] = v1[0] * v2[1] - v2[0] * v1[1];\n return result;\n }", "public int dotProduct(SparseVector vec) {\n\t\tint result = 0;\n\t\tfor (int index : set) {\n\t\t\tif (vec.set.contains(index)) {\n\t\t\t\tresult += nums[index] * vec.nums[index];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Polynomial operate(){\n Polynomial result = a.multiplyPolynomial(b);\n return result;\n }", "public Image getDot();", "public double dotProduct(ArrayList<Double> outputs, ArrayList<Double> weights) {\n\t\tdouble toReturn = 0.0;\n\t\tfor (int i = 0; i < weights.size() - 1; i++) {\n\t\t\tif (!(i > outputs.size() - 1)) {\n\t\t\t\tdouble oldV = weights.get(i);\n\t\t\t\tdouble hk = outputs.get(i);\n\t\t\t\ttoReturn += hk * oldV;\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}", "public float dot(float x, float y, float z) {\r\n\t\treturn this.x * x + this.y * y + this.z * z;\r\n\t}", "public Dot() {\n super(SOME, NONE); // a deliberate lie\n }", "private void mul() {\n\n\t}", "public int getProduct() {\n int a = 5;\n int b = 14;\n int c = a * b;\n return c;\n }", "public double dot(Point3D p) {\n\t\treturn x*p.x + y*p.y + z*p.z;\n\t}", "@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}", "public int product() {\n // You'll need to replace this code with something\n // else to make product() work; this is just to make\n // things compile while you work on sum()\n return 1;\n }", "public void multiply() {\n\t\t\n\t}", "LengthScalarMultiply createLengthScalarMultiply();", "public /*@ non_null @*/ StringBuffer toDot(){\n\n StringBuffer r = new StringBuffer();\n\n for(int i = 0; i <= sons.size() - 1; i++)\n\tr.append(getChildAt(i).toDot());\n \n return r;\n }", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public static double safeDotProduct(Vector v1, Vector v2) {\n double dotProduct = v1.innerProduct(v2);\n if (dotProduct > 1) {\n dotProduct = 1;\n }\n if (dotProduct < -1) {\n dotProduct = -1;\n }\n return dotProduct;\n }", "public Vector crossProduct(Vector t){\n Vector v=new Vector(head.y.get()*t.head.getZ().get()-\n t.head.getY().get()*head.z.get(),head.z.get()*t.head.getX().get()-\n t.head.getZ().get()*head.x.get(),head.x.get()*t.head.getY().get()-\n t.head.getX().get()*head.y.get());\n return v;\n }", "public int dotProduct(SparseVector vec) {\n List<int[]> res1=vec.res;\n int p=0,q=0,ans=0;\n while(p<res.size()&&q<res1.size()){\n if(res.get(p)[0]==res1.get(q)[0]){\n ans+=res.get(p)[1]*res1.get(q)[1];\n p++;\n q++;\n }else if(res.get(p)[0]>res1.get(q)[0]){\n q++;\n }else{\n p++;\n }\n }\n return ans;\n }", "private static double dot(final Grad g, final double x, final double y,\n final double z) {\n return g.x * x + g.y * y + g.z * z;\n }", "public PolyTerm mul(PolyTerm pt) {\n\t\tScalar coeffi=this.coefficient.mul(pt.coefficient);\n\t\tint expon= pt.exponent + this.exponent;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}", "public int producto(){\r\n return x*y;\r\n }", "public Point3D crossProduct(Point3D b) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tPoint3D bCopy = new Point3D(b);\n\t\tcopy.homogenize();\n\t\tbCopy.homogenize();\n\n\t\tPoint3D dest = new Point3D(0, 0, 0);\n\t\tdest.x = copy.y * bCopy.z - copy.z * bCopy.y;\n\t\tdest.y = copy.z * bCopy.x - copy.x * bCopy.z;\n\t\tdest.z = copy.x * bCopy.y - copy.y * bCopy.x;\n\t\treturn dest;\n\t}", "public static double dot(Vector2D va, Vector2D vb) {\n \n return va.x() * vb.x() + va.y() * vb.y();\n \n }", "private double dot(Point A, Point B, Point C) {\n\t\tdouble AB_X = B.x - A.x;\n\t\tdouble AB_Y = B.y - A.y;\n\t\tdouble BC_X = C.x - B.x;\n\t\tdouble BC_Y = C.y - B.y;\n\t\tdouble dot = AB_X * BC_X + AB_Y * BC_Y;\n\t\treturn dot;\n\t}", "public String setDot() {\r\n\t\tif (getOperand().length() == Config.MAX_SIZE) {\r\n\t\t\treturn getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() == 0) {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (getOperand().indexOf(\".\") == -1) {\r\n\t\t\tgetOperand().append(\".\");\r\n\t\t}\r\n\r\n\t\treturn getOperand().toString();\r\n\t}" ]
[ "0.6535538", "0.6319199", "0.6173752", "0.61518973", "0.61319864", "0.60820645", "0.6030064", "0.59295547", "0.58816636", "0.58777976", "0.58671254", "0.5805784", "0.5770423", "0.57009035", "0.569002", "0.56060576", "0.5568984", "0.55357015", "0.55325425", "0.552987", "0.5521079", "0.551927", "0.5513672", "0.5481185", "0.5478273", "0.54718906", "0.545897", "0.54475224", "0.54231226", "0.5420702", "0.5414132", "0.5404058", "0.53949374", "0.5392824", "0.5386099", "0.5382596", "0.5364605", "0.5340743", "0.53206265", "0.5308472", "0.53073734", "0.53042704", "0.5287709", "0.52722394", "0.52683306", "0.5261834", "0.5256799", "0.5246276", "0.5240367", "0.52329075", "0.5232362", "0.5229899", "0.5227255", "0.5213618", "0.5203899", "0.5203626", "0.5200196", "0.5194977", "0.51888835", "0.5188244", "0.5173289", "0.5166147", "0.5165006", "0.51375", "0.51348317", "0.51294327", "0.5121773", "0.51180583", "0.5114453", "0.5105074", "0.51022905", "0.509976", "0.50962365", "0.5083612", "0.50832397", "0.50759953", "0.50742555", "0.5073067", "0.50729156", "0.5059616", "0.5036084", "0.5035265", "0.50322586", "0.5027182", "0.5026688", "0.50154275", "0.5002582", "0.49907556", "0.49889556", "0.49871504", "0.49693653", "0.4945769", "0.49401683", "0.49214268", "0.49214268", "0.49070483", "0.4904716", "0.48907378", "0.48901057", "0.48886997", "0.48884556" ]
0.0
-1
calculate unsigned angle between vectors result = angle between this and v2 uses acos(this.dot.v2) so angle is unsigned does not alter this.
public Angle getAngleMadeWith(CMLVector3 v2) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? null : veucl3.getAngleMadeWith(v2 .getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double angle(ThreeVector v1,ThreeVector v2) {\r\n\t\tdouble a = (scalarProduct(v1,v2))/(v1.magnitude()*v2.magnitude());\r\n\t\tdouble b = Math.acos(a);\r\n\t\treturn Math.toDegrees(b);\r\n\t}", "public double angle(Vector2D v)\n\t{\n\t\treturn Math.toDegrees(Math.acos(this.dot(v)/v.length()/this.length()));\n\t}", "public double angleBetweenVectors(Vector3D v) {\r\n\t\t//calculate the lengths of two vectors\t\r\n\t\tdouble a = this.lenght();\r\n\t\tdouble b = v.lenght();\r\n\t\t\r\n\t\tif(a == 0 || b == 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn Math.acos(this.DotProduct3(v));\r\n\t\t}\r\n\t}", "public float angle (Vector2f other)\n {\n return FloatMath.acos(dot(other) / (length() * other.length()));\n }", "public static double angle(Vector2d v1, Vector2d v2) {\n\t\tdouble angle1 = Math.atan2(v1.y, v1.x);\n\t\tdouble angle2 = Math.atan2(v2.y, v2.x);\n\t\tdouble angle = angle2 - angle1;\n\n\t\tif (angle < -Math.PI)\n\t\t\tangle = 2 * Math.PI + angle;\n\t\telse if (angle > Math.PI)\n\t\t\tangle = angle - 2 * Math.PI;\n\t\telse if (angle == Math.PI)\n\t\t\tangle = -Math.PI;\n\t\treturn angle;\n\t}", "public static float angleBetween(Vector2f v1, Vector2f v2)\n {\n return FastMath.acos(sameDirection(v1, v2)); // 0-pi\n }", "public double getAngleBetween(Vector other){\n\t\treturn Math.acos(dot(other)/(magnitude() * other.magnitude()));\n\t}", "public static float angleBetweenVectors(Vector3 v1, Vector3 v2)\n\t{\n\t\tfloat v1_len = v1.len();\n\t\tif (v1_len == 0) return 0;\n\t\tfloat v2_len = v2.len();\n\t\tif (v2_len == 0) return 0;\n\n\t\tv3tmp1.set(v1);\n\t\tv3tmp2.set(v2);\n\t\tv3tmp1.scl(1f / v1_len);\n\t\tv3tmp2.scl(1f / v2_len);\n\n\t\tfloat dp_v1n_v2n = v3tmp1.dot(v3tmp2);\n\n\t\tfloat radians = (float)Math.acos(dp_v1n_v2n);\n\t\tif (Float.isNaN(radians)) {\n\t\t\tv3tmp1.add(v3tmp2);\n\t\t\tif (v3tmp1.len2() > 1) {\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 180;\n\t\t\t}\n\t\t}\n\t\treturn MathUtils.radiansToDegrees * radians;\n\t}", "public static double angle(Vector2D va, Vector2D vb) {\n \n double dp = dot(va,vb);\n return Math.acos(dp);\n \n }", "@Override\n\tpublic float vectorToAngle(Vector2 vector) {\n\t\treturn Constants.vectorToAngle(vector);\n\t}", "public double angleBetween(Vector other) {\n double t = (getX()*other.getY() - getY()*other.getX());\n if(t == 0)\n return 0;\n t/=Math.abs(t);\n return t * Math.acos(scalar(other)/(length()*other.length()));\n }", "private static double angulo(Point2D.Double p2,Point2D.Double p1){\n \t\n return Math.atan2(p2.x - p1.x, p2.y - p1.y);\n }", "static double angle(PointDouble a, PointDouble o, PointDouble b) {\n Vec oa = vector(o, a), ob = vector(o, b);\n return Math.acos(dot(oa, ob) / (norm(oa) * norm(ob)));\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public double angle(final Vec4 o) {\n return Math.asin(Math.sqrt(normalized().cross(o.normalized()).lengthSq()));\n }", "public float getAngle2Vecs(Vector2 vec1) {\n float angle2 = (float) Math.toDegrees(Math.atan2(vec1.y, vec1.x));\n return angle2 + 90;\n }", "public static int vectorAngle(int x, int y) {\n return (Math.round((float)Math.toDegrees(Math.atan2(x, y))));\n }", "public static int vectorAngle(Point p) {\n \treturn (Math.round((float)Math.toDegrees(Math.atan2(p.x, p.y))));\n\t}", "public static double calculateAngleInDegrees(Vector base, Vector target1, Vector target2) {\n Vector baseToTarget1 = target1.subtract(base);\n Vector baseToTarget1Direction = normalize(baseToTarget1);\n Vector baseToTarget2 = target2.subtract(base);\n Vector baseToTarget2Direction = normalize(baseToTarget2);\n double dotProduct = safeDotProduct(baseToTarget1Direction, baseToTarget2Direction);\n double angleInRadians = Math.acos(dotProduct);\n return Math.toDegrees(angleInRadians);\n }", "public static double getAngle( GameObject one, GameObject two )\n {\n return Math.atan2( getDeltaY( one, two ), +getDeltaX( one, two ) );\n }", "public double getAngle(Vector3 vec2)\n {\n return Vector3.anglePreNorm(this.clone().normalize(), vec2.clone().normalize());\n }", "public static float calculateAngle(Vec2 vecA, Vec2 vecB) {\n\t\treturn (float) FastMath.toDegrees(FastMath.atan2(vecA.y - vecB.y, vecA.x - vecB.x));\n\t}", "public double betweenAngle(Coordinates vectorA, Coordinates vectorB);", "public float angle(Vector2f vec) {\n return (float) Math.acos(dot(vec) / (length() * vec.length()));\n }", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "private double angleTo(Point2D that) {\r\n double dx = that.x - this.x;\r\n double dy = that.y - this.y;\r\n return Math.atan2(dy, dx);\r\n }", "public static double getDiffAngle(double angle1, double angle2) {\r\n\t\t//acos(cos(a1-a2))=acos(cos(a1)*cos(a2)+sin(a1)*sin(a2))--trig identity\r\n\t\treturn Math.abs(Math.acos(Math.cos(angle1) * Math.cos(angle2) + Math.sin(angle1) * Math.sin(angle2)));\r\n\t}", "public static float sameDirection(Vector2f v1, Vector2f v2)\n {\n return v1.dot(v2) / (v1.length() * v2.length()); // 0 - pi\n }", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public static double angle(Point2D a, Point2D b) {\n\t\t// TODO use dot product instead\n\t\tdouble ang = angle(b) - angle(a);\n\t\tif (ang <= Math.PI)\n\t\t\tang += 2 * Math.PI;\n\t\tif (ang >= Math.PI)\n\t\t\tang -= 2 * Math.PI;\n\t\treturn ang;\n\t}", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public double compute(double v)\r\n {\n return Math.toDegrees(Float11.atan(v));\r\n }", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "public static float getAngleBetween(PVector p1, PVector p2) {\n // float angle = (float) Math.atan2(p2.y - p1.y, p2.x - p1.x);\n\n // Note: Raw values between point 1 and point 2 not valid, as they are are origin-based.\n PVector sub = PVector.sub(p2, p1);\n PVector xaxis = new PVector(1, 0);\n float angle = PVector.angleBetween(xaxis, sub);\n\n if (p2.y < p1.y) {\n angle = PApplet.TWO_PI - angle;\n }\n return angle;\n }", "@Override\n\tpublic Vector2 angleToVector(Vector2 outVector, float angle) {\n\t\treturn Constants.angleToVector(outVector, angle);\n\t}", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public static float AngleOfVector(final Vector vector) {\n return atan2(vector.x, vector.y);\n }", "public float calculateAngle(float x1, float y1, float x2, float y2) {\n float difX = x1 - x2;\n float difY = y1 - y2;\n float angle = (float)(180.0 / Math.PI * Math.atan2(difY, difX));\n if(angle < 0) {\n return 360 + angle;\n }\n return angle;\n }", "public float getVelAngle() {\n\t\tif (velocity.y == 0f && velocity.x == 0f)\n\t\t\treturn restrictAngle((float) Math.random() * float2pi);\n\t\tfloat result = (float) Math.atan2(velocity.y, velocity.x);\n\t\treturn restrictAngle(result);\n\t}", "public double Angle2D(double x1, double y1, double x2, double y2)\n {\n double dtheta,theta1,theta2;\n\n theta1 = Math.atan2(y1,x1);\n theta2 = Math.atan2(y2,x2);\n dtheta = theta2 - theta1;\n while (dtheta > Math.PI)\n dtheta -= 2*Math.PI;\n while (dtheta < -Math.PI)\n dtheta += 2*Math.PI;\n\n return(dtheta);\n}", "static double calculateAngle(Line2D line, ArrowEnd end) {\n \t\t// Translate the line to 0,0\n \t\tdouble x1 = line.getX1();\n \t\tdouble y1 = line.getY1();\n \t\tdouble x2 = line.getX2();\n \t\tdouble y2 = line.getY2();\n \t\tdouble opposite = y2-y1;\n \t\tdouble adjacent = x2-x1;\n \n \t\tdouble radians = Math.atan(opposite/adjacent);\n \n \t\tif (adjacent < 0) radians += Math.PI;\n \n \t\t// TODO: Flip for other end\n \t\treturn radians;\n \t}", "public double getCounterclockwiseAngleBetween(Vector other){\n\t\tdouble sign = signum(cross(other).getZ()); //the sign of the cross product - will be zero if the vectors are paralell\n\t\t\n\t\tif(sign!=0){\n\t\t\treturn 2*Math.PI - sign*getAngleBetween(other);\n\t\t}else{\n\t\t\treturn getAngleBetween(other);\n\t\t}\n\t}", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "public static double angle(Point2D a) {\n\t\treturn Math.atan2(a.getY(), a.getX());\n\t}", "public double angleTo(Point point){\n \treturn facingVector.angleDegrees(vectorTo(point));\n }", "static double angle(CvPoint a, CvPoint b, CvPoint c) {\n\t\t\n\t\tCvPoint vecAC = new CvPoint(a.x() - c.x(), a.y() - c.y());\n\t\tCvPoint vecBC = new CvPoint(b.x() - c.x(), b.y() - c.y());\n\n\t\tdouble q = (vecAC.x() * vecBC.x()) + (vecAC.y() * vecBC.y());\n\t\tdouble ac = Math.sqrt(Math.pow(vecAC.x(), 2) + Math.pow(vecAC.y(), 2));\n\t\tdouble cd = Math.sqrt(Math.pow(vecBC.x(), 2) + Math.pow(vecBC.y(), 2));\n\n\t\tdouble ang = q / Math.abs((ac * cd));\n\t\tdouble rad = Math.acos(ang);\n\t\tdouble rad2 = Math.toDegrees(rad);\n\n\t\treturn rad2;\n\t}", "public static final double arctan2(double y, double x)\n {\n double coeff_1 = Math.PI/4;\n double coeff_2 = 3*coeff_1;\n double abs_y = Math.abs(y)+1e-10; // kludge to prevent 0/0 condition\n\n double angle;\n\n if (x >= 0) {\n double r = (x - abs_y) / (x + abs_y);\n angle = coeff_1 - coeff_1 * r;\n } else {\n double r = (x + abs_y) / (abs_y - x);\n angle = coeff_2 - coeff_1 * r;\n }\n\n if (y < 0)\n return -angle; // negate if in quad III or IV\n else\n return angle;\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "private PVector angleAsVector(float theta) {\n\t\tPVector result = new PVector(0,0);\r\n\t\tresult.x = (float) Math.cos(theta);\r\n\t\tresult.y = (float) Math.sin(theta);\r\n\t\treturn result;\r\n\t}", "public double getAngle(float x1, float y1, float x2, float y2) {\n\n double rad = Math.atan2(y1-y2,x2-x1) + Math.PI;\n return (rad*180/Math.PI + 180)%360;\n }", "public void updateAngle() {\n\t\tfloat ak = 0;\n\t\tfloat gk = 0;\n\t\tak = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterX() - x);\n\t\tgk = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterY() - y);\n\t\tangleDesired = (float) Math.toDegrees(Math.atan2(ak*-1, gk));\n\t\t// if the angle and the angleDesired are opposites the Vector point into the opposite direction\n\t\t// this means the angle will be the angle of the longer vector which is always angle\n\t\t// so if that happens the angleDesired is offset so this won't happen\n\t\tangle = Commons.calculateAngleAfterRotation(angle, angleDesired, rotationDelay);\n\t}", "public double\nangleInXYPlane()\n{\n\tBVector2d transPt = new BVector2d(\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n\t\n\t// debug(\"transPt: \" + transPt);\n\n\tdouble angle = MathDefines.RadToDeg * new Vector2d(1.0, 0.0).angle(transPt);\n\tif (transPt.getY() < 0.0)\n\t{\n\t\t// debug(\"ang0: \" + (360.0 - angle));\n\t\treturn(360.0 - angle);\n\t}\n\t// debug(\"ang1: \" + angle);\n\treturn(angle);\n}", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "private double calculateAngle(Point2D p, Point2D q)\n {\n return Math.atan2(q.getY() - p.getY(), q.getX() - p.getX());\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "public double betweenAngle(Coordinates a, Coordinates b, Coordinates origin);", "public static double cal_angle_diff(double angle1, double angle2) {\n double a = Math.abs(angle1 - angle2);\n double b;\n if (angle1 > angle2) {\n b = 360 - angle1 + angle2;\n } else {\n b = 360 - angle2 + angle1;\n }\n if (a > b) {\n return b;\n } else {\n return a;\n }\n }", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "public static double atan2(double y, double x)\n {\n float ax=(float)abs(x);\n float ay=(float)abs(y);\n\n if ((ax<1e-7) && (ay<1e-7)) return 0f;\n\n if (ax>ay)\n {\n if (x<0)\n {\n if (y>=0) return ArcTan(y/x)+PI;\n else return ArcTan(y/x)-PI;\n }\n else return ArcTan(y/x);\n }\n else\n {\n if (y<0) return ArcTan(-x/y)-PI/2;\n else return ArcTan(-x/y)+PI/2;\n }\n }", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public static double getAngle(float x1, float y1, float x2, float y2) {\n\n double rad = Math.atan2(y1 - y2, x2 - x1) + Math.PI;\n return (rad * 180 / Math.PI + 180) % 360;\n }", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public static float AngleBetweenVectors(final Vector vecA, final Vector vecB) {\n Vector rotated = VectorRotate2D(vecA, HALF_PI);\n return atan2(dotProduct(rotated, vecB), dotProduct(vecA, vecB));\n }", "public static float angleAtPlane(Vector3 v1, Vector3 v2, Vector3 normal)\n\t{\n\t\t// Get rotation between vectors in case where there is no plane\n\t\tfloat angle = angleBetweenVectors(v1, v2);\n\t\t// Check which side the rotation is\n\t\tv3tmp1.set(v1);\n\t\tv3tmp1.crs(v2);\n\t\tfloat dp = normal.dot(v3tmp1);\n\t\tif (dp < 0) {\n\t\t\tangle = -angle;\n\t\t}\n\t\treturn angle;\n\t}", "public double theta() { return Math.atan2(y, x); }", "public static float getAngle(float x1, float y1, float x2, float y2, float x3, float y3){\n\t\tfloat a2 = Vector2.len2(x3 - x2, y3 - y2);\n\t\tfloat b2 = Vector2.len2(x1 - x2, y1 - y2);\n\t\tfloat c2 = Vector2.len2(x3 - x1, y3 - y1);\n\t\tdouble aLen = Math.sqrt(a2);\n\t\tdouble bLen = Math.sqrt(b2);\n\t\t//c2 == a2 + b2 - (2 * aLen * bLen * x);\n\t\tdouble x = (a2 + b2 - c2) / (2 * aLen * bLen);\n\t\treturn (float) Math.acos(x) * MathUtils.radDeg;\n\t}", "public int angleOX() {\n if (B.getY() == A.getY()) {\r\n return 0;\r\n } else if (A.getX() == B.getX()) {\r\n return 90;\r\n }\r\n else {\r\n float fi = ((float) (B.getY() - A.getY()) / (B.getX() - A.getX()));\r\n if (fi<0){\r\n return (int)(fi*(-1));\r\n }\r\n else return (int)(fi);\r\n }\r\n }", "public double findAngleOfAttack() {\n\t\tdouble dy = this.trailingPt.y - this.leadingPt.y; // trailingPt goes first since positive numbers are down\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y-axis in Canvas\n\t\tdouble dx = this.leadingPt.x - this.trailingPt.x;\n\t\treturn Math.atan2(dy, dx);\n\t}", "public double getAcuteAngle( final LineXY line ) {\n\t\t// get the intersection point\n\t\tfinal PointXY p1 = PointXY.getIntersectionPoint( this, line );\n\t\tif( p1 == null ) {\n\t\t\tthrow new IllegalArgumentException( format( \"No intersection found\" ) );\n\t\t}\n\t\t\n\t\t// get the points of both lines\n\t\tfinal PointXY pa1 = this.getBeginPoint();\n\t\tfinal PointXY pa2 = this.getEndPoint();\n\t\tfinal PointXY pb1 = line.getBeginPoint();\n\t\tfinal PointXY pb2 = line.getEndPoint();\n\t\t\n\t\tfinal PointXY p2 = PointXY.getFarthestPoint( p1, pa1, pa2 );\n\t\tfinal PointXY p3 = PointXY.getFarthestPoint( p1, pb1, pb2 );\n\t\t\n\t\t// are both lines orthogonal?\n\t\tif( this.isOrthogonal() && line.isOrthogonal() ) {\n\t\t\treturn this.isParallelTo( line ) ? 0 : Math.PI;\n\t\t}\n\t\t\n\t\t// is the either line orthogonal?\n\t\telse if( this.isOrthogonal() || line.isOrthogonal() ) {\n\t\t\t// cos t = ( -a^2 + b^2 - c^2 ) / 2cb \n\t\t\tfinal double a = getDistance( p1, p2 );\n\t\t\tfinal double b = getDistance( p1, p3 );\n\t\t\tfinal double c = getDistance( p2, p3 );;\n\t\t\treturn acos( ( -pow(a, 2d) + pow(b, 2d) - pow(c, 2d) ) / ( 2d * c * b ) );\n\t\t}\n\t\t\n\t\t// both must be angular\n\t\telse {\n\t\t\t// tan t = ( m1 - m2 ) / ( 1 + m1 * m2 ); where m2 > m1\n\t\t\tdouble m1 = this.getSlope();\n\t\t\tdouble m2 = line.getSlope();\n\t\t\tif( m1 > m2 ) {\n\t\t\t\tfinal double mt = m1;\n\t\t\t\tm1 = m2;\n\t\t\t\tm2 = mt;\n\t\t\t}\n\t\t\t\n\t\t\t// compute the angle\n\t\t\treturn atan( ( m1 - m2 ) / ( 1 + m1 * m2 ) );\n\t\t}\n\t}", "private double getAngle(double y, double x) {\n\t\tdouble angle = Math.atan2(y, x);\n\t\tif (angle < 0)\n\t\t\tangle += 2 * Math.PI;\n\t\treturn angle;\n\t}", "double getAngle();", "double getAngle();", "public double getAngle();", "public static double getAngle2D(Line2D line, Point2D point) {\n return AlgoPoint2D.getAngle2D(AlgoPoint2D.subtract(line.getP2(),line.getP1()), point);\r\n }", "public double PlaneAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_PlaneAngle(swigCPtr, this);\n }", "private double calculateAngle(Point start, Point stop) {\r\n // angle in radian measure between x-axis and moving vector of the mouse\r\n double mouseTraceAngle = Math.atan2(start.y - stop.y, start.x - stop.x);\r\n\r\n // angle in radian measure between the x-axis and the vector from start\r\n // point of the current mouse vector and the fixation point\r\n double gazeVectorAngle = Math.atan2(start.y - this.fixation.y, start.x - this.fixation.x);\r\n\r\n // angleStartEnd between this two ones in degrees\r\n double angleTmp = (gazeVectorAngle - mouseTraceAngle) * 180 / Math.PI;\r\n\r\n return Math.abs(angleTmp);\r\n }", "double V2Dot(Position a, Position b){\r\n\t\treturn((a.getX() * b.getX())+(a.getY() * b.getY()));\r\n\t}", "public atan( ) {\n super(1);\n }", "public static double angle(double x, double y) {\n\t\treturn atan2(y, x);\n\t}", "public static final double atan2(double y, double x)\n {\n double atn = atan(y/x);\n\n if (y>=0)\n\t {\n if (x>=0)\n return atn;\n return Math.PI+atn;\n\t }\n if (x>=0)\n\t {\n return atn;\n\t }\n return -Math.PI+atn;\n }", "public double ang()\n {\n \treturn Math.atan(y/x);\n }", "public double calculateAngle(Point2D dir) {\n\t\tPoint2D normDir = dir.normalize();\n\t\treturn (normDir.getX() >= 0 ? new Point2D(0, 1).angle(normDir) : new Point2D(0, -1).angle(normDir) + 180);\n\t}", "public double getAngleXZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.y/l);\r\n\t}", "public double altezza(){\r\n\t\treturn Math.abs(this.vad.getY()-this.vbs.getY());\r\n\t}", "public double getAngle(float x, float y )\n {\n double dx = x - centerX;\n // Minus to correct for coord re-mapping\n double dy = -(y - centerY);\n\n double inRads = Math.atan2(dy,dx);\n\n // We need to map to coord system when 0 degree is at 3 O'clock, 270 at 12 O'clock\n if (inRads < 0)\n inRads = Math.abs(inRads);\n else\n inRads = 2*Math.PI - inRads;\n\n return Math.toDegrees(inRads);\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}", "public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}", "AngleSubtract createAngleSubtract();", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "public float dot(Vector2D v2) \n {\n \tfloat result = 0.0f;\n result = this.getX() * v2.getX() + this.getY() * v2.getY();\n return result;\n }", "protected double findAngleToEnemy(Movable enemy){\n\t\tdouble enemyX = enemy.getX() - x;\n\t\tdouble enemyY = enemy.getY() - y;\n\t\treturn Math.atan2(enemyX, enemyY);\n\t}", "public static double atan2_safe(double y, double x) {\n if (y == 0 && x == 0)\n return 0;\n return Math.atan2(y, x);\n }", "@Test\n public void testRotateVector(){\n\n double [] v = new double[2]; // input vector\n double[] transformedV; // output vector\n\n v[0] = 0;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 1;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 1);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n }", "public static double getPointsAngle(Point center, Point p0, Point p1) {\n\n double p0c = Math.sqrt(Math.pow(center.getX()-p0.getX(),2)+\n Math.pow(center.getY()-p0.getY(),2)); // p0->c (b)\n double p1c = Math.sqrt(Math.pow(center.getX()-p1.getX(),2)+\n Math.pow(center.getY()-p1.getY(),2)); // p1->c (a)\n double p0p1 = Math.sqrt(Math.pow(p1.getX()-p0.getX(),2)+\n Math.pow(p1.getY()-p0.getY(),2)); // p0->p1 (c)\n\n return Math.acos((p1c*p1c+p0c*p0c-p0p1*p0p1)/(2*p1c*p0c));\n }", "public double getSecondAngle(){\r\n\t\treturn Math.atan( \r\n\t\t\t\t(\r\n\t\t\t\t\t\tthis.getSecondObject().getCenterY()\r\n\t\t\t\t\t\t- this.getFirstObject().getCenterY()\r\n\t\t\t\t)\r\n\t\t\t\t/ (\r\n\t\t\t\t\t\tthis.getSecondObject().getCenterX()\r\n\t\t\t\t\t\t- this.getFirstObject().getCenterX()\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}", "public static float getAngle(float x, float y)\n\t{\n\t\treturn MathUtils.atan2(y, x) * MathUtils.radiansToDegrees - 90;\n\t}", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public float getAngleForPoint(float x, float y) {\n /* 262 */\n MPPointF c = getCenterOffsets();\n /* */\n /* 264 */\n double tx = (x - c.x), ty = (y - c.y);\n /* 265 */\n double length = Math.sqrt(tx * tx + ty * ty);\n /* 266 */\n double r = Math.acos(ty / length);\n /* */\n /* 268 */\n float angle = (float) Math.toDegrees(r);\n /* */\n /* 270 */\n if (x > c.x) {\n /* 271 */\n angle = 360.0F - angle;\n /* */\n }\n /* */\n /* 274 */\n angle += 90.0F;\n /* */\n /* */\n /* 277 */\n if (angle > 360.0F) {\n /* 278 */\n angle -= 360.0F;\n /* */\n }\n /* 280 */\n MPPointF.recycleInstance(c);\n /* */\n /* 282 */\n return angle;\n /* */\n }" ]
[ "0.7717125", "0.74849826", "0.74318504", "0.74234253", "0.73790705", "0.7236832", "0.70211625", "0.6971012", "0.68841827", "0.6803433", "0.67893505", "0.677231", "0.6687467", "0.66754425", "0.6623949", "0.6608462", "0.65917104", "0.65770596", "0.656539", "0.65363604", "0.6516938", "0.6503032", "0.64453053", "0.64069855", "0.6339246", "0.6337956", "0.6322451", "0.63121307", "0.62733436", "0.6264828", "0.62413245", "0.6226701", "0.6201552", "0.61976033", "0.61612487", "0.6157768", "0.61184007", "0.61171705", "0.6111298", "0.6107723", "0.6104039", "0.6103222", "0.60913515", "0.6082109", "0.6051162", "0.6030775", "0.6001602", "0.599643", "0.5971528", "0.59664375", "0.59312385", "0.59263444", "0.5897075", "0.5849726", "0.5825342", "0.58211833", "0.57907206", "0.5786799", "0.57389766", "0.57323384", "0.5718659", "0.57185453", "0.56941146", "0.568736", "0.5669394", "0.56677306", "0.56627077", "0.56276256", "0.56109554", "0.5602463", "0.5598323", "0.5581425", "0.55806017", "0.55806017", "0.55733716", "0.5562614", "0.554957", "0.5544479", "0.55392903", "0.5535748", "0.5535098", "0.5523628", "0.55126", "0.5492706", "0.54523724", "0.54059386", "0.54004055", "0.5399147", "0.53785807", "0.5376463", "0.53756875", "0.5358784", "0.53568965", "0.53554803", "0.53448606", "0.5339362", "0.53307307", "0.53293", "0.53181916", "0.5314542" ]
0.6751425
12
calculate scalar triple product between vectors. result = this.(v2 x v3) does not alter this.
public double getScalarTripleProduct(CMLVector3 v2, CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? null : veucl3.getScalarTripleProduct(v2 .getEuclidVector3(), v3.getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}", "public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}", "public static float ScalarTripleProduct(final Vector U, final Vector V, final Vector W) {\n return dotProduct(U, crossProduct(V, W));\n }", "public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}", "public static ThreeVector vectorProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\tThreeVector v3 = new ThreeVector((v1.y*v2.z)-(v1.z*v2.y),(v1.z*v2.x)-(v1.x*v2.z),(v1.x*v2.y) - (v1.y* v2.x));\r\n\t\treturn v3;\r\n\t}", "public Vector tensorProduct( final Vector a);", "public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }", "public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}", "public static Vector3D multiplyScalar(Vector3D v1, Vector3D v2) {\n\t\tdouble x1 = v1.getX1() * v2.getX1();\n\t\tdouble x2 = v1.getX2() * v2.getX2();\n\t\tdouble x3 = v1.getX3() * v2.getX3();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}", "public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}", "public static Vector3D product(Vector3D v1, Vector3D v2) {\r\n\t\tVector3D result = new Vector3D(\t(v1.y * v2.z) - (v1.z * v2.y),\r\n\t\t\t\t\t\t\t\t\t\t(v1.z * v2.x) - (v1.x * v2.z),\r\n\t\t\t\t\t\t\t\t\t\t(v1.x * v2.y) - (v1.y * v2.x));\r\n\t\treturn result;\r\n\t}", "public double multScalar(Vector3D u, Vector3D v) {\n\t\treturn ((u.x * v.x) + (u.y * v.y) + (u.z * v.z));\n\t}", "public double DotProduct3(Vector3D vt)\r\n\t{\r\n\t return this.x * vt.x + this.y * vt.y + this.z * vt.z;\r\n\t}", "public double scalarProduct(Point3D b) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tdouble res = copy.x * b.x + copy.y * b.y + copy.z * b.z + copy.w * b.w;\n\t\tres /= copy.w * b.w;\n\t\treturn res;\n\t}", "public Vector3 vectorProduct(Vector3 vector) {\n\t\treturn new Vector3(\n\t\t\t\tthis.y * vector.z - this.z * vector.y, \n\t\t\t\tthis.z * vector.x - this.x * vector.z,\n\t\t\t\tthis.x * vector.y - this.y * vector.x \n\t\t);\n\t}", "public static Vector VectorTripleProduct(final Vector U, final Vector V, final Vector W) {\n return crossProduct(U, crossProduct(V, W));\n }", "public Vec3 multiply(Vec3 vect){\n if(values == null || values[0] == null || values[1] == null\n || values[2] == null){\n throw new IllegalStateException(\"Ill-formed transform\");\n }\n if(vect == null){\n throw new IllegalArgumentException(\"multiply by null vector\");\n }\n float x = values[0][3];\n float y = values[1][3];\n float z = values[2][3];\n x += values[0][0] * vect.x + values[0][1] * vect.y + values[0][2]\n * vect.z;\n y += values[1][0] * vect.x + values[1][1] * vect.y + values[1][2]\n * vect.z;\n z += values[2][0] * vect.x + values[2][1] * vect.y + values[2][2]\n * vect.z;\n return new Vec3(x, y, z);\n }", "public static void main(String[] args) \n {\n Scanner s = new Scanner(System.in);\n\n // VECTOR 1 CONSTRUCTION\n System.out.print(\"Enter the components of the first 3-d vector-> \"); \n Vector3D vector1 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 2 CONSTRUCTION\n System.out.print(\"Enter the components of the second 3-d vector-> \"); \n Vector3D vector2 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // VECTOR 3 CONSTRUCTION\n System.out.print(\"Enter the components of the third 3-d vector-> \"); \n Vector3D vector3 = new Vector3D(s.nextDouble(), s.nextDouble(), s.nextDouble());\n \n // Print Vector 1\n System.out.println(\"v1 = \" + vector1.toString());\n \n // Print Vector 2\n System.out.println(\"v2 = \" + vector2.toString());\n \n // Print Vector 3\n System.out.printf(\"v3 = %s\\n\\n\", vector3.toString());\n \n // Compute and display v1 + v2\n System.out.printf(\"v1 + v2 = %s\\n\\n\", vector1.add(vector2).toString());\n \n // Compute and display (v2 + v3) * v1\n System.out.printf(\"(v2 + v3) * v1 = %.6f\\n\\n\",\n vector1.iProduct(vector2.add(vector3)));\n \n // Compute and display v1 X (v2 - v3)\n System.out.printf(\"v1 x (v2 - v3) = %s\\n\\n\",\n vector1.xProduct(vector2.subtract(vector3)).toString());\n \n // Compute and display (v2 - v3) X v1\n System.out.printf(\"(v2 - v3) X v1 = %s\\n\\n\",\n vector2.subtract(vector3).xProduct(vector1).toString());\n \n // Compute and display |v1 X v2| and |v2| |v1|\n System.out.printf(\"|v1 x v2| = %.6f and |v2||v1| = %.6f\\n\\n\",\n vector1.xProduct(vector2).length(), \n vector2.length() * vector1.length());\n \n // Compute and display (v1 x v2) / (|v1 x v2|)\n System.out.printf(\"(v1 x v2) / (|v1 x v2|) = %s\\n\\n\",\n vector1.xProduct(vector2).multiply(1 / \n vector1.xProduct(vector2).length()).toString());\n \n // Compute and display v1 x (v2 + v3)\n System.out.printf(\"v1 x (v2 + v3) = %s\\n\\n\",\n vector1.xProduct(vector2.add(vector3)).toString());\n \n // Compute and display (v1 x v2) + (v1 x v3)\n System.out.printf(\"(v1 x v2) + (v1 x v3) = %s\\n\\n\",\n vector1.xProduct(vector2).add(vector1.xProduct(vector3)).toString());\n \n // Test the norm method\n Vector3D v1Norm = vector1.norm();\n System.out.printf(\"v1.norm() = %s\\n\\n\", v1Norm);\n \n // Test the normalize method\n vector1.normalize();\n System.out.printf(\"v1.normalize = <%.6f, %.6f, %.6f>\\n\\n\", \n vector1.getX(), vector1.getY(), vector1.getZ());\n }", "IVec3 mult(IVec3 v);", "public Vector3D product(float s)\r\n { \r\n return new Vector3D(s*this.x, s*this.y, s*this.z);\r\n }", "public static double[] scalarproduct(double[] v, double r) {\n double[] tmp = new double[3];\n tmp[0] = v[0]*r;\n tmp[1] = v[1]*r;\n tmp[2] = v[2]*r;\n return tmp;\n }", "public double dot(Vec vthat);", "private float[] crossProduct(float[] v1, float[] v2) {\n float[] result = new float[3];\n result[0] = v1[1] * v2[2] - v2[1] * v1[2];\n result[1] = v1[2] * v2[0] - v2[2] * v1[0];\n result[2] = v1[0] * v2[1] - v2[0] * v1[1];\n return result;\n }", "final public double dot(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return (x*v.x + y*v.y + z*v.z);\n }", "@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}", "public abstract Vector4fc mul(float x, float y, float z, float w);", "public Vector3 multLocal (double v) {\n return mult(v, this);\n }", "public abstract Vector4fc normalize3();", "public Vector3 mult(float scalar){\r\n\t\tthis.x *= scalar;\r\n\t\tthis.y *= scalar;\r\n\t\tthis.z *= scalar;\r\n\t\treturn this;\r\n\t}", "public double dot(Vector3D v) {\n return (this.xCoord * v.xCoord) + (this.yCoord * v.yCoord) + (this.zCoord * v.zCoord);\n }", "final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }", "public double dot(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? Double.NaN : veucl3\r\n .dot(v3.getEuclidVector3());\r\n }", "public Vector3 mul(final Matrix4 matrix) {\r\n\t\tfinal float l_mat[] = matrix.val;\r\n\t\treturn this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M01] + z * l_mat[Matrix4.M02] + l_mat[Matrix4.M03],\r\n\t\t\t\tx * l_mat[Matrix4.M10] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M12] + l_mat[Matrix4.M13],\r\n\t\t\t\tx * l_mat[Matrix4.M20] + y * l_mat[Matrix4.M21] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M23]);\r\n\t}", "public double\n\tdotProduct( Vector3 other ) \n\t{\n\t\treturn( ( data[0] * other.data[0] ) + ( data[1] * other.data[1] ) + ( data[2] * other.data[2] ) );\n\t}", "public ThreeVector(double v1,double v2,double v3) {\r\n\t\tthis.x=v1;\r\n\t\tthis.y=v2;\r\n\t\tthis.z=v3;\r\n\t}", "public float dot(Vector3D v)\r\n\t{\r\n\t\treturn x*v.x + y*v.y + z*v.z;\r\n\t}", "@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}", "public void\n\tcrossProduct( Vector3 other )\n\t{\n\t\tdouble x;\n\t\tdouble y;\n\n\t\tx = ( data[1] * other.data[2] ) - ( data[2] * other.data[1] );\n\t\ty = ( data[2] * other.data[0] ) - ( data[0] * other.data[2] );\n\t\tdata[2] = ( data[0] * other.data[1] ) - ( data[1] * other.data[0] );\n\t\tdata[0] = x;\n\t\tdata[1] = y;\n\t}", "public Vector crossProduct(Vector t){\n Vector v=new Vector(head.y.get()*t.head.getZ().get()-\n t.head.getY().get()*head.z.get(),head.z.get()*t.head.getX().get()-\n t.head.getZ().get()*head.x.get(),head.x.get()*t.head.getY().get()-\n t.head.getX().get()*head.y.get());\n return v;\n }", "public double dotProduct(Vector3 vec) {\n\t\treturn this.x*vec.x + this.y*vec.y + this.z*vec.z;\n\t}", "public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }", "public double[] vectorMult(double[] v1, double[] v2) {\n\n double[] res = new double[v1.length];\n\n for(int i = 0; i < v1.length; i++) {\n res[i] = v1[i]*v2[i];\n }\n return res;\n }", "public Vect3 ScalAdd(double k, Vect3 v) {\n\t\treturn new Vect3(k*x+v.x, k*y+v.y, k*z+v.z);\n\t}", "public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;", "public Vector<T> multiply(T aScalar);", "float dot(IVec3 v);", "public T dotProduct(Vector<T> aVector) throws VectorSizeException;", "public void\n\tmult( Vector3 other )\n\t{\n\t\tdata[0] *= other.data[0];\n\t\tdata[1] *= other.data[1];\n\t\tdata[2] *= other.data[2];\n\t}", "static float[] mulVM(float[] vt, float vt3, float[] m){\n \t // 0 1 2 3 \n \t // 4 5 6 7\n \t // 8 9 10 11\n \t // 12 13 14 15\n \t // 0 1 2 3 \n \t\n \t return new float[] {vt[0]*m[0] + vt[1]*m[4] + vt[2]*m[ 8] + vt3*m[12],\n\t\t \t \t\t vt[0]*m[1] + vt[1]*m[5] + vt[2]*m[ 9] + vt3*m[13],\n\t\t \t \t\t vt[0]*m[2] + vt[1]*m[6] + vt[2]*m[10] + vt3*m[14],\n\t\t \t \t\t vt[0]*m[3] + vt[1]*m[7] + vt[2]*m[11] + vt3*m[15]};\n \t\n }", "public Vector3D crossProduct(Vector3D b)\r\n {\r\n Vector3D a = this;\r\n return new Vector3D(a.y*b.z - a.z*b.y, a.z*b.x - a.x*b.z, a.x*b.y - a.y*b.x);\r\n }", "static float[] mulMV(float[] m, float[] v, float v3){ 0\n // 1\n // 2\n // 3\n\t // 0 1 2 3 \n\t // 4 5 6 7\n\t // 8 9 10 11\n\t // 12 13 14 15\n\t // \n \n return new float[]{\n \t m[ 0]*v[0] + m[ 1]*v[1] + m[ 2]*v[2] + m[ 3]*v3,\n \t m[ 4]*v[0] + m[ 5]*v[1] + m[ 6]*v[2] + m[ 7]*v3,\n \t m[ 8]*v[0] + m[ 9]*v[1] + m[10]*v[2] + m[11]*v3,\n \t m[12]*v[0] + m[13]*v[1] + m[14]*v[2] + m[15]*v3};\n }", "public Vector product(Vector vec) {\n\t\t// Create data structure for containing the result vector\n\t\tdouble[] r = new double[vec.len];\n\n\t\t// Iteratively assign each element of the new vector to be the sum of row*vec\n\t\tfor(int i=0; i < rank; i++) {\n\t\t\tfor(int j=0; j < rank; j++) {\n\t\t\t\tr[i] += retrieveElement(i, j) * vec.v[j]; \n\t\t\t}\n\t\t}\t\n\t\treturn new Vector(r);\n\t}", "public Vec3D mul(Vec3D rhs) {\n\t\treturn new Vec3D(x * rhs.x, y * rhs.y, z * rhs.z);\n\t}", "public abstract Vector4fc mul(IVector4f v);", "public double dot( T v ) {\n convertType.specify(this, v);\n T A = convertType.convert(this);\n v = convertType.convert(v);\n\n if (!isVector()) {\n throw new IllegalArgumentException(\"'this' matrix is not a vector.\");\n } else if (!v.isVector()) {\n throw new IllegalArgumentException(\"'v' matrix is not a vector.\");\n }\n\n return A.ops.dot(A.mat, v.getMatrix());\n }", "public double dot(SparseVector vector) {\n SparseVector v1 = this;\n SparseVector v2 = vector;\n double result = 0.0;\n int i = 0;\n int j = 0;\n \n while (i < v1.size() && j < v2.size()) {\n Element e1 = v1.get(i);\n Element e2 = v2.get(j);\n \n if (e1.index == e2.index) {\n result += e1.value * e2.value;\n i++;\n j++;\n } else if (e1.index < e2.index) {\n i++;\n } else {\n j++;\n }\n }\n \n return result;\n }", "final public Vector3 mul(double c){\n return new Vector3(x*c, y*c, z*c);\n }", "@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}", "public Square(Point3D P1, Vector v1,\n Vector v2, double length) {\n super(P1, v1.crossProduct(v2));\n if (v1.dotProduct(v2) != 0)\n throw new IllegalArgumentException(\"the vectors are not orthogonal\");\n v1 = v1.rescale(length);\n v2 = v2.rescale(length);\n p2 = p1.add(v1);\n p4 = p1.add(v2);\n p3 = p4.add(v1);\n }", "@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}", "public double computeCrossProduct(Vector v2){\n return this.getX() * v2.getY() - this.getY() * v2.getX();\n }", "public double[] mult(double[] vector) {\n\t\tif(this.cols != vector.length) return null;\n\t\tdouble[] result = new double[this.rows];\n\t\tfor(int i=0; i<this.rows; i++) {\n\t\t\tfor(int j=0; j<this.cols; j++) {\n\t\t\t\tresult[i] += data[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }", "public static void main(String[] args) {\n\t\tVector3 i = new Vector3(1, 0, 0);\n\t\tVector3 j = new Vector3(0, 1, 0);\n\t\tVector3 k = i.cross(j);\n\t\t\n\t\tVector3 l = k.add(j).scale(5);\n\t\t\n\t\tVector3 m = l.normalized();\n\t\t\n\t\tSystem.out.println(i);\n\t\tSystem.out.println(j);\n\t\tSystem.out.println(k);\n\t\tSystem.out.println(l);\n\t\tSystem.out.println(l.norm());\n\t\tSystem.out.println(m);\n\t\tSystem.out.println(l.dot(j));\n\t\tSystem.out.println(i.add(new Vector3(0, 1, 0)).cosAngle(l));\n\t}", "public static Vector3f multiply(Vector3f vec1, Vector3f vec2) {\n\t\tVector3f result = new Vector3f();\n\n\t\tresult.x = vec1.x * vec2.x;\n\t\tresult.y = vec1.y * vec2.y;\n\t\tresult.z = vec1.z * vec2.z;\n\n\t\treturn result;\n\t}", "public CMLVector3 multiplyBy(double f) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.multiplyBy(f);\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", "public static double dotproduct(double[] v, double[] w) {\n double r = 0;\n for (int i=0; i<3; i++) {\n r += v[i] * w[i];\n }\n return r;\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public double dotProduct(Vector330Class v){\n return ((this.x * v.x) + (this.y * v.y));\n }", "double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;", "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "@Override\r\n\tpublic vec3 mult(float var) {\n\t\treturn null;\r\n\t}", "public void crossProd(double U[],\n double V[], double W[]) {\n W[0] = U[1]*V[2]-U[2]*V[1];\n W[1] = U[2]*V[0]-U[0]*V[2];\n W[2] = U[0]*V[1]-U[1]*V[0];\n }", "public abstract Point_3 evaluate(double u, double v);", "public TriangleElt3D(Point3D point1, Point3D point2, Point3D point3,\n\t\t\tScalarOperator sop) {\n\t\tthis(new Point3D[] { point1, point2, point3 }, sop);\n\t}", "public double dot(Vector3 other) {\n\t\treturn x * other.x + y * other.y + z * other.z;\n\t}", "public static Vector cross(Vector a, Vector b) {\r\n if(a.getDimension() == 3 && b.getDimension() == 3)\r\n return new Vector(a.components[1] * b.components[2] - a.components[2]\r\n * b.components[1], -a.components[0] * b.components[2]\r\n + a.components[2] * b.components[0], a.components[0]\r\n * b.components[1] - a.components[1] * b.components[0]);\r\n else if (a.getDimension() == 2 && b.getDimension() == 2)\r\n return new Vector(a.components[0] * b.components[1] - a.components[1] * b.components[0]);\r\n else return null;\r\n }", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public Vector3 (double[] values) {\n set(values);\n }", "@Override\n public DoubleVector multiply(DoubleVector s) {\n DoubleVector smallestVector = s.getLength() < getLength() ? s : this;\n DoubleVector vec = new SparseDoubleVector(s.getDimension(),\n smallestVector.getLength());\n DoubleVector largerVector = smallestVector == this ? s : this;\n Iterator<DoubleVectorElement> it = smallestVector.iterateNonZero();\n while (it.hasNext()) {\n DoubleVectorElement next = it.next();\n double otherValue = largerVector.get(next.getIndex());\n vec.set(next.getIndex(), next.getValue() * otherValue);\n }\n\n return vec;\n }", "public static VectorIntf componentProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) * y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }", "public MAT(Vector v) {\n super(dimension(v), dimension(v));\n final int n = this.nRows();\n\n int k = 1;\n for (int i = 1; i <= n; ++i) {\n for (int j = i; j <= n; ++j) {\n double vk = v.get(k++);\n if (j != i) {\n vk /= Constant.ROOT_2;\n }\n\n set(i, j, vk);\n set(j, i, vk);\n }\n }\n }", "public vec3 times(float val) {\r\n\t\tvec3 tmp = new vec3(this);\r\n\t\ttmp.scale(val);\r\n\t\treturn tmp;\r\n\t}", "public double dotProduct(Coordinates vectorA, Coordinates vectorB);", "@Override\n\tpublic float dot(Vector vector) {\n\t\tif(vector instanceof Vec2){\n\t\t\tVec2 vect = (Vec2)vector;\n\t\t\treturn x*vect.x+y*vect.y;//z and w are 0\n\t\t}else if(vector instanceof Vec3){\n\t\t\tVec3 vect = (Vec3)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w is 0\n\t\t}else{\n\t\t\tVec4 vect = (Vec4)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w doesn't exist\n\t\t}\n\t}", "public Vector crossProduct(Vector vec) {\n return new Vector(new Point3D(vec.getHead().getY() * this.getHead().getZ() - this.getHead().getY() * vec.getHead().getZ(),\n vec.getHead().getZ() * this.getHead().getX() - this.getHead().getZ() * vec.getHead().getX(),\n vec.getHead().getX() * this.getHead().getY() - this.getHead().getX() * vec.getHead().getY()));\n }", "IVec3 cross(IVec3 v);", "public Vector3 multLocal (IVector3 other) {\n return mult(other, this);\n }", "public Vector2f multLocal (float v)\n {\n return mult(v, this);\n }", "public double componentProduct()\n {\n return this.x * this.y;\n }", "public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }", "public VectorA scalarAdd(double z)\n {\n return new VectorA(this.x+z, this.y+z);\n }", "public Square(Color emission, Material material,\n Point3D P1, Vector v1,\n Vector v2, double length) {\n super(emission, material, P1, v1.crossProduct(v2));\n if (v1.dotProduct(v2) != 0)\n throw new IllegalArgumentException(\"the vectors are not orthogonal\");\n v1 = v1.rescale(length);\n v2 = v2.rescale(length);\n p2 = p1.add(v1);\n p4 = p1.add(v2);\n p3 = p4.add(v1);\n }", "public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }", "public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }", "private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }", "private double produitVectoriel(Point2D p1,Point2D p2, Point2D p3, Point2D p4) {\n double xv1 = p2.getX() - p1.getX();\n double xv2 = p4.getX() - p3.getX();\n double yv1 = p2.getY() - p1.getY();\n double yv2 = p4.getY() - p3.getY();\n\n return (xv1 * yv2) - (xv2 * yv1);\n }", "public Vector2f mult (float v)\n {\n return mult(v, new Vector2f());\n }", "private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }" ]
[ "0.76647055", "0.74597687", "0.7004041", "0.69928485", "0.6984135", "0.69354963", "0.6890205", "0.6768054", "0.67022663", "0.66363454", "0.6625056", "0.66220677", "0.6587868", "0.658721", "0.6556791", "0.64805585", "0.64454496", "0.6433596", "0.6399388", "0.6397406", "0.63800305", "0.6293503", "0.6271827", "0.62372845", "0.62011886", "0.6162212", "0.6156708", "0.61561143", "0.6153944", "0.61314005", "0.61083823", "0.6103637", "0.6094032", "0.60930836", "0.60563546", "0.60384303", "0.6021239", "0.60034984", "0.5994367", "0.5965879", "0.5952514", "0.5936257", "0.5921273", "0.59204316", "0.5911125", "0.5896579", "0.5888592", "0.58602804", "0.58593607", "0.5851318", "0.5840667", "0.5804126", "0.57951033", "0.57923985", "0.5790495", "0.5771836", "0.5756481", "0.5752229", "0.5749665", "0.57428867", "0.57417744", "0.573739", "0.5736668", "0.5735771", "0.5712946", "0.5704601", "0.57011557", "0.5696894", "0.56713915", "0.5666301", "0.56573564", "0.5654297", "0.56530184", "0.5646021", "0.5639727", "0.56253934", "0.56056446", "0.5587607", "0.55858505", "0.55835944", "0.5582056", "0.55804783", "0.5579148", "0.55759645", "0.5575098", "0.5564202", "0.5563643", "0.555947", "0.555894", "0.5555701", "0.5553724", "0.5550986", "0.55408996", "0.55341226", "0.55287576", "0.5527549", "0.55198437", "0.5512118", "0.55105776", "0.5493924" ]
0.71740854
2
projection of this onto vector. does not alter this. result = vector.norm() (this.norm() dot vector.norm())
public CMLVector3 projectOnto(CMLVector3 v) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 vv = null; try { vv = (veucl3 == null) ? null : veucl3.projectOnto(v .getEuclidVector3()); } catch (EuclidRuntimeException je) { } return (vv == null) ? null : CMLVector3.createCMLVector3(vv); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector projection(Vector b){\n Vector result = new Vector();\n result.norm= (this.x*b.x+this.y*b.y) / b.getNorm();\n result.x = b.x/b.getNorm();\n result.y = b.y/b.getNorm();\n return result;\n }", "public Vector normalize ( );", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}", "public Vector projectOnto(Vector other){\n Vector normalizedOther = other.normalize();\n \n return normalizedOther.scale(dot(normalizedOther));\n }", "public Vector3 normalized() {\n\t\tif (isZeroVector(this)) {\n\t\t\treturn this;\n\t\t}\n\t\treturn new Vector3(x / norm(), y / norm(), z / norm());\n\t}", "public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}", "public abstract Vector computeCenter();", "void vectorToWorld(double px, double py, double pz, DVector3 result);", "public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }", "public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }", "public abstract Vector4fc normalize(float length);", "public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "void vectorFromWorld(double px, double py, double pz, DVector3 result);", "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }", "public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }", "public double dot(Vec vthat);", "public Vector normalized(){\r\n\t\tfloat len = this.length();\r\n\t\tif( len != 0.0f && len != 1.0f ){\r\n\t\t\treturn new Vector( this.x / len, this.y / len, this.z / len );\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public Coordinates unitVector(Coordinates vector);", "public abstract Vector4fc normalize3();", "public Vector4d normalize() {\n\t\tdouble len = length();\n\t\tif (len != 0) {\n\t\t\tx /= len;\n\t\t\ty /= len;\n\t\t\tz /= len;\n\t\t\tw /= len;\n\t\t}\n\t\treturn this;\n\t}", "public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}", "@Override\n\tpublic float dot(Vector vector) {\n\t\tif(vector instanceof Vec2){\n\t\t\tVec2 vect = (Vec2)vector;\n\t\t\treturn x*vect.x+y*vect.y;//z and w are 0\n\t\t}else if(vector instanceof Vec3){\n\t\t\tVec3 vect = (Vec3)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w is 0\n\t\t}else{\n\t\t\tVec4 vect = (Vec4)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w doesn't exist\n\t\t}\n\t}", "public Vector normalized() {\n double size = this.length();\n return new Vector(this.getHead().getX() / size, this.getHead().getY() / size, this.getHead().getZ() / size);\n }", "public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }", "public Vector2D normalize() \n {\n \tfloat length = getLength();\n if (length != 0.0f) \n {\n this.setX(this.getX() / length);\n this.setY(this.getY() / length);\n } \n else \n {\n this.setX(0.0f);\n this.setY(0.0f);\n }\n return this;\n }", "float norm();", "public Vector2D normal()\n\t{\n\t\treturn this.mul(1/this.length());\n\t}", "private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}", "public Vector3 normalizeLocal () {\n return normalize(this);\n }", "public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }", "public Vector4 normalized()\n {\n double magnitude = this.magnitude();\n\n float normalizeX = x / (float)magnitude;\n float normalizeY = y / (float)magnitude;\n float normalizeZ = z / (float)magnitude;\n float normalizeW = w / (float)magnitude;\n\n return new Vector4(normalizeX, normalizeY, normalizeZ, normalizeW);\n }", "static double squaredNorm(Vec v) {\n return v.x * v.x + v.y * v.y;\n }", "public double norm() {\n\t\treturn Math.sqrt(x * x + y * y + z * z);\n\t}", "public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public Vector2D unitVector()\n {\n if (this.getR() != 0)\n return new Vector2D(this.x / this.getR(), this.y / this.getR());\n return new Vector2D(0, 0);\n }", "public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}", "public double dot(Vector other){\n\t\treturn x*other.x + y*other.y + z*other.z;\n\t}", "public double getV() {\r\n return Math.sqrt(Math.pow(this.dx, 2) + Math.pow(this.dy, 2));\r\n }", "public double dot(Vector3D v) {\n return (this.xCoord * v.xCoord) + (this.yCoord * v.yCoord) + (this.zCoord * v.zCoord);\n }", "public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}", "public Vector3 vectorProduct(Vector3 vector) {\n\t\treturn new Vector3(\n\t\t\t\tthis.y * vector.z - this.z * vector.y, \n\t\t\t\tthis.z * vector.x - this.x * vector.z,\n\t\t\t\tthis.x * vector.y - this.y * vector.x \n\t\t);\n\t}", "private void getNormalVector(Conformer conformer, int[] atom, double[] n) {\n\t\t// calculate the three vectors leading from atom[0] to the other three atoms\n\t\tdouble[][] coords = new double[2][3];\n\t\tfor (int i=0; i<2; i++) {\n\t\t\tcoords[i][0] = conformer.getX(atom[i+1]) - conformer.getX(atom[0]);\n\t\t\tcoords[i][1] = conformer.getY(atom[i+1]) - conformer.getY(atom[0]);\n\t\t\tcoords[i][2] = conformer.getZ(atom[i+1]) - conformer.getZ(atom[0]);\n\t\t\t}\n\n\t\t// calculate the normal vector (vector product of coords[0] and coords[1])\n\t\tn[0] = coords[0][1]*coords[1][2]-coords[0][2]*coords[1][1];\n\t\tn[1] = coords[0][2]*coords[1][0]-coords[0][0]*coords[1][2];\n\t\tn[2] = coords[0][0]*coords[1][1]-coords[0][1]*coords[1][0];\n\n\t\tdouble l = Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);\n\t\tn[0] /= l;\n\t\tn[1] /= l;\n\t\tn[2] /= l;\n\t\t}", "public Vector normalize() {\n this.head = this.normalized().getHead();\n return this;\n }", "public Vector normalize() {\n double num=1/length();\n head = scale(num).head;\n return this;\n }", "private Vector3f getPlaneNormal(Vector3f directionVector) {\n\t\tVector3f up = new Vector3f(0, 0, 1);\n\t\tif (directionVector.z == 1 || directionVector.z == -1)\n\t\t\tup.set(0, 1, 0);\n\n\t\tfloat dirX = directionVector.x;\n\t\tfloat dirY = directionVector.y;\n\t\tfloat dirZ = directionVector.z;\n\t\tfloat upX = up.x;\n\t\tfloat upY = up.y;\n\t\tfloat upZ = up.z;\n\n\t\t// right = direction x up\n\t\tfloat rightX, rightY, rightZ;\n\t\trightX = dirY * upZ - dirZ * upY;\n\t\trightY = dirZ * upX - dirX * upZ;\n\t\trightZ = dirX * upY - dirY * upX;\n\t\t// normalize right\n\t\tfloat invRightLength = 1.0f / (float) Math.sqrt(rightX * rightX + rightY * rightY + rightZ * rightZ);\n\t\trightX *= invRightLength;\n\t\trightY *= invRightLength;\n\t\trightZ *= invRightLength;\n\n\t\treturn new Vector3f(rightX, rightY, rightZ);\n\t}", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public double dot(final Vec4 o) {\n expectDirection();\n o.expectDirection();\n return x * o.x + y * o.y + z * o.z;\n }", "float[][] getCameraVectorsNormal(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vectors[j*resX+i]=normalize(vectors[j*resX+i]);\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "public double dotProduct(Coordinates vectorA, Coordinates vectorB);", "public Vector tensorProduct( final Vector a);", "public Vector330Class normalize(){\n if(this.magnitude() <= EPS){\n return new Vector330Class(0, 0);\n }\n else{\n return new Vector330Class(this.x * (1/this.magnitude()), this.y * (1/this.magnitude()));\n }\n }", "public Grid2DFloat vectorVGrid() {\n Grid2DFloat mGrid = getMagGrid();\n Grid2DFloat dGrid = getDirGrid();\n Grid2DFloat vGrid = new Grid2DFloat(mGrid.getXdim(), mGrid.getYdim());\n int i, j;\n for (i = 0; i < vGrid.getXdim(); i++) {\n for (j = 0; j < vGrid.getYdim(); j++) {\n float angle = (float) Math.toRadians(dGrid.get(i, j));\n vGrid.set(i, j, (float) (Math.cos(angle) * mGrid.get(i, j)));\n }\n }\n return vGrid;\n }", "@Override\r\n\tpublic Point2D.Double transform(Point2D.Double p) {\r\n\t\tRealVector s = new ArrayRealVector(new double[] { p.x, p.y, 1 }, false);\r\n\t\tRealVector t = H.operate(s);\r\n\t\tp.x = t.getEntry(0) / t.getEntry(2);\r\n\t\tp.y = t.getEntry(1) / t.getEntry(2);\r\n\t\treturn p;\r\n\t}", "public static Vector normalize(Vector v) {\r\n Vector w = new Vector(v);\r\n w.normalize();\r\n return w;\r\n }", "public CMLVector3 getPerpendicularVector() {\r\n Vector3 v = this.getEuclidVector3().getPerpendicularVector();\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", "public double dot(Vector2D v) {\n \n return _x * v.x() + _y * v.y(); \n \n }", "public float dot(Vector3D v)\r\n\t{\r\n\t\treturn x*v.x + y*v.y + z*v.z;\r\n\t}", "public double[] project(double [] vector) {\n\t\tMatrix vec = new Matrix(1, vector.length);\n\t\tfinal double[][] vecarr = vec.getArray();\n\t\t\n\t\tfor (int i=0; i<vector.length; i++)\n\t\t\tvecarr[0][i] = vector[i] - mean[i];\n\t\t\n\t\treturn vec.times(eigenvectors).getColumnPackedCopy();\n\t}", "public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }", "public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }", "@Override\n public Vector getNormal(Point3D p) {\n Vector O_P= p.subtract(_center);\n return O_P.normalize();\n // return null;\n }", "public Vector getNormal(Vector v) {\n\t\tif (this.getClass() == Sphere.class) { // shape is sphere\n\t\t\tSphere sph = (Sphere) this;\n\t\t\treturn sph.getNormal(v);\n\t\t}\n\t\tif (this.getClass() == Triangle.class) { // shape is triangle\n\t\t\tTriangle trn = (Triangle) this;\n\t\t\treturn trn.getNormal(v);\n\t\t}\n\t\tif (this.getClass() == Plane.class) { // shape is plane\n\t\t\tPlane pln = (Plane) this;\n\t\t\treturn pln.getNormal(v);\n\t\t}\n\t\treturn null;\n\t}", "public Vector getNormal(Point3D point) throws Exception {\n\n // Setting the U vector\n Vector vecU = new Vector(_p1.getX().getCoordinate()-_p2.getX().getCoordinate(),\n _p1.getY().getCoordinate()-_p2.getY().getCoordinate(),\n _p1.getZ().getCoordinate()-_p2.getZ().getCoordinate());\n // Setting the V vector\n Vector vecV = new Vector(_p1.getX().getCoordinate()-_p3.getX().getCoordinate(),\n _p1.getY().getCoordinate()-_p3.getY().getCoordinate(),\n _p1.getZ().getCoordinate()-_p3.getZ().getCoordinate());\n\n // Finding the normal vector and normalize it\n Vector _normal = new Vector(vecU.crossProduct(vecV));\n _normal.normalize();\n _normal.scale(-1);\n\n return _normal;\n }", "public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}", "public double dotProduct(Vector3 vec) {\n\t\treturn this.x*vec.x + this.y*vec.y + this.z*vec.z;\n\t}", "final public Vector3 normalized(){\n return new Vector3(x/magnitude, y/magnitude, z/magnitude);\n }", "private void rv2Elements(VectorN r, VectorN v)\n\t{\n\t\tr.checkVectorDimensions(3);\n\t\tv.checkVectorDimensions(3);\n\t\t//Constants c = new Constants();\n\t\tVectorN evec = new VectorN(3); // e vector\n\t\tVectorN k = new VectorN(3); // unit vector in z direction\n\n\t\tthis.rv = new VectorN(r, v);\n\n\t\tdouble rmag = r.mag();\n\t\tdouble vmag = v.mag();\n\t\tdouble energy = vmag * vmag / 2.0 - this.mu / rmag;\n\n\t\tk.x[0] = 0.0;\n\t\tk.x[1] = 0.0;\n\t\tk.x[2] = 1.0;\n\n\t\tVectorN h = r.crossProduct(v);\n\t\tVectorN n = k.crossProduct(h);\n\n\t\tdouble rdotv = r.dotProduct(v);\n\n\t\tdouble q1 = (vmag * vmag - this.mu / rmag) / this.mu;\n\t\tdouble q2 = rdotv / this.mu;\n\n\t\tevec.x[0] = q1 * r.x[0] - q2 * v.x[0];\n\t\tevec.x[1] = q1 * r.x[1] - q2 * v.x[1];\n\t\tevec.x[2] = q1 * r.x[2] - q2 * v.x[2];\n\n\t\tthis.e = evec.mag();\n\n\t\tif (e != 1.0)\n\t\t{\n\t\t\tthis.a = -this.mu / (2.0 * energy);\n\t\t} else\n\t\t{\n\t\t\tthis.a = 1.0E30;\n\t\t\tSystem.out.println(\"parabolic orbit\");\n\t\t}\n\n\t\tthis.i = Math.acos(h.x[2] / h.mag()); // inclination\n\n\t\tthis.raan = Math.acos(n.x[0] / n.mag()); // raan\n\t\tif (n.x[1] < 0.0)\n\t\t{\n\t\t\tthis.raan = 2.0 * Constants.pi - raan;\n\t\t}\n\n\t\tthis.w = Math.acos(n.dotProduct(evec) / (n.mag() * e));\n\t\tif (evec.x[2] < 0.0)\n\t\t{\n\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t}\n\n\t\tif (i == 0.0) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] < 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tif (i == Constants.pi) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] > 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tthis.ta = Math.acos(evec.dotProduct(r) / (e * rmag));\n\t\tif (rdotv < 0.0)\n\t\t{\n\t\t\tthis.ta = 2.0 * Constants.pi - this.ta;\n\t\t}\n\t}", "float norm2();", "public double magnitude(Coordinates vector);", "public double dot(Vector2d v) {\n\t\treturn x*v.x + y*v.y;\n\t}", "public double[] vectorTo(double[] pt){\n double[] vecToLight = new double[3];\n vecToLight[0] = pos[0] - pt[0];\n vecToLight[1] = pos[1] - pt[1];\n vecToLight[2] = pos[2] - pt[2];\n return vecToLight;\n }", "public Vector4f objectToProjectionMatrix(Vector3f vector) {\r\n\t\treturn Matrix4f.transform(this.PROJECTION_MATRIX, new Vector4f(vector.x, vector.y, vector.z, 1), null);\r\n\t}", "public Vector2f normalize (Vector2f result)\n {\n return mult(1f / length(), result);\n }", "public Point3D normalize() {\n\t\treturn this.divide(Math.sqrt(x*x + y*y + z*z));\n\t}", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public static Vector normalize(Vector input) {\n return input.divide(input.euclideanNorm());\n }", "public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);", "public double dot( T v ) {\n convertType.specify(this, v);\n T A = convertType.convert(this);\n v = convertType.convert(v);\n\n if (!isVector()) {\n throw new IllegalArgumentException(\"'this' matrix is not a vector.\");\n } else if (!v.isVector()) {\n throw new IllegalArgumentException(\"'v' matrix is not a vector.\");\n }\n\n return A.ops.dot(A.mat, v.getMatrix());\n }", "public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}", "public Vector3D transform(Vector3D vector) {\n\t\tdouble x = vector.x;\n\t\tdouble y = vector.y;\n\t\tdouble z = vector.z;\n\t\t\n\t\treturn new Vector3D(a11*x + a12*y + a13*z + a14, \n\t\t\t\t\t\t a21*x + a22*y + a23*z + a24,\n\t\t\t\t\t\t a31*x + a32*y + a33*z + a34);\n\t}", "public abstract Vector4fc mul(IVector4f v);", "public float dot(Vector3 other){\r\n return r * other.r + g * other.g + b * other.b;\r\n }", "public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}", "public Vector3 getNormal() {\n\t\tdouble mag = this.magnitude();\n\t\tif (mag > 0) {\n\t\t\treturn new Vector3(\n\t\t\t\t\tthis.x/mag,\n\t\t\t\t\tthis.y/mag,\n\t\t\t\t\tthis.z/mag\n\t\t\t\t\t);\n\t\t} else {\n\t\t\treturn new Vector3();\n\t\t}\n\t}", "@Override\n\tpublic void setOrientation(Vector o)\n\t{\n\t\tsuper.setOrientation(o);\n\t\tif (position != null && normal != null)\n\t\t{\n\t\t\toX = o.dup().norm();\n\t\t\toY = normal.cross(oX).norm();\n\t\t\toX = oY.cross(normal).norm();\n\t\t}\n\t}", "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }", "public void perpendicular() {\r\n\t\tset(y, x * -1);\r\n\t}", "public double dotProduct(Vector330Class v){\n return ((this.x * v.x) + (this.y * v.y));\n }", "public Vector3D getTransformedVector(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 + V.y * M23 + V.z * M33 + V.w * M43;\r\n\t\trv.w = V.x * M14 + V.y * M24 + V.z * M34 + V.w * M44;\r\n\t\treturn rv;\r\n\t}", "public double dot(Vector2D v)\n\t{\n\t\treturn x*v.getX() + y*v.getY();\n\t}", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "public static void getPerpendicular(Vector3 result, Vector3 v)\n\t{\n\t\tif (Math.abs(v.x) < Math.abs(v.y)) {\n\t\t\tresult.set(0, v.z, -v.y);\n\t\t} else {\n\t\t\tresult.set(-v.z, 0, v.x);\n\t\t}\n\t}", "public double dot(LorentzVector vect){\n\t\tdouble dotProduct = this.e()*vect.e() - this.vect().dot(vect.vect());\n\t\treturn dotProduct;\n\t}", "private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }", "public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}", "static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }" ]
[ "0.6987292", "0.69233716", "0.6739773", "0.6706753", "0.64485204", "0.64418375", "0.6406856", "0.6361168", "0.63268006", "0.63246447", "0.6319656", "0.63144773", "0.62793523", "0.62787974", "0.6277609", "0.62775403", "0.6261638", "0.6257721", "0.6256865", "0.6240993", "0.61788577", "0.61674887", "0.61600655", "0.6126055", "0.6117544", "0.61134976", "0.6064787", "0.605324", "0.6029953", "0.6021215", "0.6001654", "0.5997014", "0.59884375", "0.5984979", "0.5980797", "0.5977282", "0.59750366", "0.5967236", "0.5945312", "0.5941517", "0.59356487", "0.5926065", "0.5919981", "0.5912242", "0.5905563", "0.59049106", "0.58974594", "0.58823836", "0.58761835", "0.58707696", "0.58615214", "0.585549", "0.5851156", "0.582133", "0.58186835", "0.5815864", "0.5811183", "0.5810031", "0.579181", "0.578926", "0.57868534", "0.57749945", "0.5764417", "0.57594305", "0.5754723", "0.5753777", "0.5740681", "0.57375264", "0.5720262", "0.5719161", "0.5718463", "0.57183224", "0.57171136", "0.57127565", "0.5700652", "0.56997424", "0.5698988", "0.56745297", "0.5664762", "0.56487423", "0.56476635", "0.5646681", "0.5640729", "0.56340086", "0.56276226", "0.5625453", "0.56254363", "0.5622034", "0.5618448", "0.5617304", "0.5616713", "0.5614368", "0.56062216", "0.5600629", "0.5595451", "0.5593439", "0.55872166", "0.55726904", "0.5572265", "0.5568792", "0.5554411" ]
0.0
-1
are two vectors colinear. also returns true if one or more vectors are zero
public boolean isColinearVector(CMLVector3 v) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? false : veucl3.isColinearVector(v .getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "Boolean isCollinearTo(IVec3 v);", "protected static boolean areAllCollinear(List<Point2D.Float> points) {\n\n\t\tif (points.size() < 2) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal Point2D.Float a = points.get(0);\n\t\tfinal Point2D.Float b = points.get(1);\n\n\t\tfor (int i = 2; i < points.size(); i++) {\n\n\t\t\tPoint2D.Float c = points.get(i);\n\n\t\t\tif (getTurn(a, b, c) != Turn.COLLINEAR) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean isCollinear(Point p1, Point p2, Point p3, Point p4) {\n return (Double.compare(p1.slopeTo(p2), p1.slopeTo(p3)) == 0 && Double.compare(p1.slopeTo(p2), p1.slopeTo(p4)) == 0);\n }", "private boolean hasCollided(Circle a, Circle b) {\r\n //calculate the distance between the centers\r\n double dist = Math.sqrt(Math.pow(a.getCenterX() - b.getCenterX(), 2) + Math.pow(a.getCenterY() - b.getCenterY(), 2));\r\n double rads = a.getRadius() + b.getRadius();\r\n\r\n //if the distance between the centers is less than the 2 radius\r\n //they have collided. \r\n return dist < rads;\r\n }", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "boolean hasVector2Value();", "boolean isFacingOut(float[] a, float[] b, float[] c, float[] d) {\n // the vector to center of face! genius!\n return a[2] + b[2] + c[2] + d[2] > 0;\n }", "public static boolean isVector(int[] v) { return v != null && v.length == 2; }", "static boolean collinear(PointDouble p, PointDouble q, PointDouble r) {\n return Math.abs(cross(vector(p, q), vector(p, r))) < EPS;\n }", "public boolean isVector() {\n return mat.getNumRows() == 1 || mat.getNumCols() == 1;\n }", "public static boolean hasRotated(MutableVector first, MutableVector second) {\n return first.getY() != second.getY() || first.getX() != second.getX();\n }", "public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }", "public boolean percolates()\r\n { return uf.find(0) == uf.find(dimension*dimension + 1); }", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "private static boolean intersectAxis(Vector2f[] points0, Vector2f[] points1, Vector2f normal) {\n\t\tfloat proj_dot_00 = getProjectionDot(points0[0], normal);\n\t\tfloat proj_dot_01 = getProjectionDot(points0[1], normal);\n\t\tfloat proj_dot_02 = getProjectionDot(points0[2], normal);\n\t\tfloat proj_dot_03 = getProjectionDot(points0[3], normal);\n\t\tfloat proj_dot_10 = getProjectionDot(points1[0], normal);\n\t\tfloat proj_dot_11 = getProjectionDot(points1[1], normal);\n\t\tfloat proj_dot_12 = getProjectionDot(points1[2], normal);\n\t\tfloat proj_dot_13 = getProjectionDot(points1[3], normal);\n\t\t\n\t\tfloat min_0 = Math.min(Math.min(proj_dot_00, proj_dot_01), Math.min(proj_dot_02, proj_dot_03));\n\t\tfloat max_0 = Math.max(Math.max(proj_dot_00, proj_dot_01), Math.max(proj_dot_02, proj_dot_03));\n\t\tfloat min_1 = Math.min(Math.min(proj_dot_10, proj_dot_11), Math.min(proj_dot_12, proj_dot_13));\n\t\tfloat max_1 = Math.max(Math.max(proj_dot_10, proj_dot_11), Math.max(proj_dot_12, proj_dot_13));\n\t\t\n\t\treturn max_0 >= min_1 && min_0 <= max_1;\n\t}", "public boolean percolates() {\n\t\tint top = uf.find(0);\n\t\tint bottom = uf.find(size * size + 1);\n\t\treturn top == bottom;\n\t}", "public boolean equals(Vector other){\n\t\treturn x == other.x && y == other.y && z == other.z;\n\t}", "private boolean checkConvexity()\r\n \t{\r\n\t\tswap(0, findLowest());\r\n\t\tArrays.sort(v, new Comparator() {\r\n\t\t\tpublic int compare(Object a, Object b)\r\n\t\t\t{\r\n\t\t\t\tint as = area_sign(v[0], (Pointd)a, (Pointd)b);\r\n\t\t\t\tif ( as > 0)\t\t/* left turn */\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if (as < 0)\t/* right turn */\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\telse \t\t\t\t\t/* collinear */\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble x = Math.abs(((Pointd)a).getx() - v[0].getx()) - Math.abs(((Pointd)b).getx() - v[0].getx());\r\n\t\t\t\t\tdouble y = Math.abs(((Pointd)a).gety() - v[0].gety()) - Math.abs(((Pointd)b).gety() - v[0].gety());\r\n\t\t\t\t\tif ( (x < 0) || (y < 0) )\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\telse if ( (x > 0) || (y > 0) )\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\telse\t\t// points are coincident\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n \t\tfor (int i=0; i < nv; i++)\r\n \t\t{\r\n \t\t\ti2 = next(i, nv);\r\n \t\t\ti3 = next(i2, nv);\r\n \t\t\tif ( !lefton(\tv[i], v[i2], v[i3]) )\r\n \t\t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n\t}", "public boolean existeAresta (int v1, int v2) {\n return (this.mat[v1][v2] > 0);\n }", "public static boolean isValidVector(double x, double y){\r\n\t\treturn (isValidComponent(x) && isValidComponent(y));\r\n\t}", "public boolean hasCollided(float _x, float _y, float _width, float _height) \r\n {\n\t \t \tfloat leftA = _x;\r\n\t \t \tfloat rightA = _x + _width;\r\n\t \t \tfloat topA = _y;\r\n\t \t \tfloat bottomA = _y + _height;\r\n\t \t \r\n\t \t //Calculate the sides of leaf\r\n\t \t \tfloat leftB = x;\r\n\t \t \tfloat rightB = x + width;\r\n\t \t \tfloat topB = y;\r\n\t \t \tfloat bottomB = y + height;\r\n\t \t \r\n\t\r\n\t \t //If any of the sides from A are outside of B\r\n\t \t if( bottomA <= topB || topA >= bottomB || rightA <= leftB || leftA >= rightB)\r\n\t \t {\r\n\t \t return false;\r\n\t \t }\r\n\t \t else\r\n\t \t {\r\n\t \t \t//If none of the sides from A are outside B\r\n\t \t \treturn true;\r\n\t \t }\r\n\t\r\n\t \t \r\n\t \r\n \t \t\r\n }", "private boolean _clockwise(PVector A, PVector B, PVector C) {\n return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x);\n }", "public boolean percolates(){\n\t\treturn unionFind.connected(virtualBottom, virtualTop);\n\t}", "public boolean hasCollided(GameObject object1, GameObject object2){\n Position pos1 = object1.getPos();\n Position pos2 = object2.getPos();\n int object1Width = object1.getWidth();\n int object2Width = object2.getWidth();\n if(object1Width < 0){\n pos1.setX(pos1.getX()+object1Width);\n object1Width = Math.abs(object1Width);\n }\n if(object2Width < 0){\n pos2.setX(pos2.getX()+object2Width);\n object2Width = Math.abs(object2Width);\n }\n\n return(!(pos1.getX()+object1Width<pos2.getX()\n //Checks if the object is on either side of the other. If it is not, it is inside.\n || pos1.getY()>pos2.getY()+object2.getHeight()\n || pos1.getY() + object1.getHeight()<pos2.getY()\n || pos1.getX()>pos2.getX()+object2Width));\n }", "private boolean hasCollided(Circle a, Polygon p) {\r\n //calculate the distance between the centers\r\n return p.getBoundsInParent().intersects(a.getBoundsInParent());\r\n\r\n }", "public static boolean collinear(double x1, double y1, double x2, double y2, double x3, double y3) {\n double determinant =\n x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2);\n return Math.abs(determinant) < TOL * TOL;\n }", "public boolean isZero() {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? false : veucl3.isZero();\r\n }", "boolean isEquilateral() {\r\n\t\treturn (side1 == side2 && side2 == side3 && side3 == side1);\r\n\t}", "private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}", "private boolean hayRayaVertical() {\n for (int j = 0; j < casillas[0].length; j++) {\n Casilla[] columna = new Casilla[casillas.length];\n for (int i = 0; i < casillas.length; i++) {\n columna[i] = casillas[i][j];\n }\n if (linea(columna))\n return true;\n }\n\n return false;\n }", "public boolean isZero() {\n\t\treturn x == 0.0 && y == 0.0 && z == 0.0;\n\t}", "public boolean percolates(){\n return uf.connected(ufSize - 2, ufSize - 1);\n }", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "public boolean percolates() {\n\t\treturn linearGrid.connected(0, 1);\n\t}", "public boolean checkCollission(LinkedList<Node> agents) {\n for (Node otherAgent: agents) {\n double dist = Math.sqrt(Math.pow(otherAgent.getX() - agent.getX(), 2) + Math.pow(otherAgent.getY() - agent.getY(), 2));\n if (dist != 0) {\n return true;\n }\n }\n \n return false;\n }", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "private Object isValidColumnVector(List<List<Double>> vector) {\n\t\tInteger nrows = vector.size();\n\n\t\tList<Integer> rowLengths = vector.stream().map(List::size).toList();\n\t\tInteger ncols = rowLengths.stream().mapToInt(Integer::intValue).sum() / rowLengths.size();\n\n\t\treturn (nrows == 3) && (ncols == 1);\n\t}", "public boolean isPerpendicular() {\n\t\tVector3D u1 = new Vector3D(A1, B1);\n\t\tVector3D u2 = new Vector3D(B1, C1);\n\t\treturn (u1.getX() * u2.getX() + u1.getY() * u2.getY() + u1.getZ() * u2.getZ()) == 0;\n\t}", "public static boolean checkCollinearUsingArea(int x1, int y1, int x2, int y2, int x3, int y3) {\r\n\t\tint calculateTriangleCollinear;\r\n\t\tcalculateTriangleCollinear = x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2);\r\n\r\n\t\tif (calculateTriangleCollinear == 0)\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "public abstract boolean isSameDirection(double[] direction1, double[] direction2);", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "public static boolean equal(VectorIntf x, VectorIntf y) {\r\n if (x==null && y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"both args null\");\r\n if (x==null || y==null) return false;\r\n if (x.getNumCoords()!=y.getNumCoords()) return false;\r\n // short-cut for specific sparse vectors\r\n if (x instanceof DblArray1SparseVector && \r\n\t\t\t y instanceof DblArray1SparseVector)\r\n return ((DblArray1SparseVector) x).equals((DblArray1SparseVector) y);\r\n for (int i=0; i<x.getNumCoords(); i++) {\r\n if (Double.compare(x.getCoord(i),y.getCoord(i))!=0) return false;\r\n }\r\n return true;\r\n }", "public boolean isEquilateral() {\r\n double d1 = pointA.distance(pointB);\r\n double d2 = pointA.distance(pointC);\r\n double d3 = pointB.distance(pointC);\r\n \r\n return(Math.abs(d1 - d2) < EPSILON && Math.abs(d1 - d3) < EPSILON && (Math.abs(d2 - d3) < EPSILON));\r\n }", "public boolean isEquilateral () {\r\n\t\tif ((startSide1 == startSide2 && startSide1 == startSide3) && isTriangle () == true && isRight () == false) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "public boolean isIsosceles () {\r\n\t\tif ((startSide1 == startSide2 || startSide1 == startSide3 || startSide2 == startSide3) && isTriangle () == true && isEquilateral() == false) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "public boolean percolates() {\n return mainUnion.connected(virtualTopId, virtualBottomId);\n }", "public boolean percolates(){\n \tif(this.gridLength == 1){\n \t\treturn isOpen(1,1);\n \t}\n \treturn (this.bottom[unionTest.find(0)]);\n }", "public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}", "public boolean areDisjoint() {\n return !geometry.almostZero(distance);\n }", "public static boolean vectorEquals(int[] v, int[] w) { return Arrays.equals(v, w); }", "public boolean relieComposantes(int x, int y, String col)\n\t{\n\t\t\tif(getLesVoisins(x, y, col).getX() == x && getLesVoisins(x, y, col).getY() == y)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (getLesVoisins(x, y, col).getCol() == tableauPeres_[x][y].getCol());\n\t\t\t}\n\t\t/*}*/\n\t\t/*if (x == 0)\n\t\t{\n\t\t \treturn (tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}\n\t\telse if (y == 0)\n\t\t{\n\t\t\treturn (tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x-1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x-1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}\n\t\telse if (x == 0 && y == 0)\n\t\t{\n\t\t\treturn (tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (tableauPeres_[x-1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x-1][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x-1][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}*/\n\t\t\n\n\t}", "public boolean isEquilateral() {\n\t\t\t\n\t\t\tif (this.sideOne == this.sideTwo & this.sideOne == this.sideThree & this.sideTwo == this.sideThree) {\n\t\t\t\treturn true;\t\t\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean percolates() {\n if (grid.length == 1) {\n return isOpen(1, 1);\n }\n return uf.find(grid.length * grid.length) == uf.find(grid.length * grid.length + 1);\n }", "private boolean isVecInYZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.yCoord >= this.minY && vec.yCoord <= this.maxY && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "@Override\n\tpublic boolean\n\tisZero()\n\t{\n\t\treturn( data[0] == 0 && data[1] == 0 && data[2] == 0 );\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif(this.vector.isEmpty()) return true;\n\t\treturn false;\n\t}", "@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // For A not to intersect B (where each loop interior is defined to be\n // its left side), the CCW edge order around ab1 must be a0 b2 b0 a2.\n // Note that it's important to write these conditions as negatives\n // (!OrderedCCW(a,b,c,o) rather than Ordered(c,b,a,o)) to get correct\n // results when two vertices are the same.\n return (orderedCCW(a0, b2, b0, ab1) && orderedCCW(b0, a2, a0, ab1) ? 0 : -1);\n }", "public static boolean vcheck() {\n for (int i = 0; i < card.length; i++) { // rows\n int sum = 0;\n for (int j = 0; j < card.length; j++) { // what coloum\n sum = sum + card[i][j]; // last sum plus the number in the cordinate\n }\n if (sum == 0) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n\n }\n\n }\n return false;\n\n }", "private static boolean isCorridor(int[][] area, int x, int y, int x2, int y2) {\r\n\t\tboolean one = false;\r\n\t\tboolean two = false;\r\n\t\tif ((y < 0) || (x >= area.length) || (x < 0) || (y >= area[x].length)) {\r\n\t\t\tone = true;\r\n\t\t} else {\r\n\t\t\tone = (area[x][y] >= 1);\r\n\t\t}\r\n\t\tif ((y2 < 0) || (x2 >= area.length) || (x2 < 0) || (y2 >= area[x2].length)) {\r\n\t\t\ttwo = true;\r\n\t\t} else {\r\n\t\t\ttwo = (area[x2][y2] >= 1);\r\n\t\t}\r\n\t\tif(!one && !two) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean almostZero(Coordinates a);", "static boolean ccw(PointDouble p, PointDouble q, PointDouble r) {\n return cross(vector(p, q), vector(p, r)) > 0;\n }", "@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // For A to contain B (where each loop interior is defined to be its left\n // side), the CCW edge order around ab1 must be a2 b2 b0 a0. We split\n // this test into two parts that test three vertices each.\n return orderedCCW(a2, b2, b0, ab1) && orderedCCW(b0, a0, a2, ab1) ? 1 : 0;\n }", "public boolean isCentral() {\n return (distanceToCentral() == 0);\n }", "public boolean isCentral() {\n return distanceToCentral() == 0;\n }", "private boolean checkifCollinear(Point[] ptArr, Comparator<Point> cmp, int start){\n\t\tif(start +2 >= ptArr.length) return false;\t\n\t\tif(cmp.compare(ptArr[start],ptArr[start+1]) == cmp.compare(ptArr[start+1],ptArr[start+2]) && cmp.compare(ptArr[start],ptArr[start+1]) == 0){\n\t\t\treturn true;\n\t\t}\t\t\n\t\treturn false;\t\n\t}", "public boolean percolates() {\n // The system percolates if top and bottom are connected\n return UF.connected(top, bottom);\n }", "public boolean isZero() {\r\n for (int i = 0; i < this.getDimension(); i++) {\r\n if (this.getComponent(i) != 0)\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean checkComp() {\n\t\tfor (int i = 0; i < comp.length; i++) {\n\t\t\tfor (int j = 0; j < comp[i].length; j++) {\n\t\t\t\tif (comp[i][j] != answer[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkSecondaryDiagonal() {\n int diagonalSum = 0;\n for (int i = 0; i < dimensions; i++) {\n diagonalSum += square[(dimensions - 1) * i + dimensions - 1];\n }\n\n return diagonalSum == magicConst;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\tboolean bandera=true;\r\n\t\tif(vector.size()>0){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tbandera=false;\r\n\t\t}\r\n\t\treturn bandera;\r\n\t}", "public boolean percolates() {\n if (mGridSize == 1 && !isOpen(1, 1))\n return false;\n //return mUnionFind.connected(0, mGridSize * mGridSize + 1);\n return mUnionFind.find(0) == mUnionFind.find(mGridSize * mGridSize + 1);\n\n }", "public boolean isIsosceles() {\n\t\t\tif((this.sideOne == this.sideTwo & this.sideOne != this.sideThree) || (this.sideOne == this.sideThree & this.sideOne != this.sideTwo) || (this.sideTwo == this.sideThree & this.sideTwo != this.sideOne)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean isEquilateral() {\n\t\t\tif(sideOne == sideTwo && sideOne == sideThree && sideTwo == sideThree) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean percolates() {\n for (int i = n * n - n + 1; i <= n * n; i++) {\n if (weightedQuickUnionUF.connected(0, i)) {\n return true;\n }\n }\n return false;\n }", "public boolean semConflitos(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n if(!verificaQuadrante(i,j) || !verificaLinhaEColuna(i, j)){\n return false;\n } \n }\n }\n }\n\n return true;\n }", "public static boolean isCardinal(Tile tile1, Tile tile2) {\n\t\tif (tile1.getX() == tile2.getX() || tile1.getY() == tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean percolates()\n {\n return uf.connected(topVirtualSite, bottomVirtualSite);\n }", "public static boolean containsVelocityCoord(int[] coords){\r\n for(int i=0; i < coords.length; i++){\r\n if(coords[i] == COORD_V0 || coords[i] == COORD_V1 || coords[i] == COORD_V2)\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean checkRowCol(int c1, int c2, int c3) \r\n {\r\n return ((c1 != -1) && (c1 == c2) && (c2 == c3)); //eida ekhon porjonto kaaj e lage nai\r\n }", "private boolean colisionEstorbos(){\r\n\t\tif(game.estorbo1.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo1, rebotes1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo2.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo2, rebotes2);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo3.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo3, rebotes3);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean percolates() {\n return mainObject.connected(vsite1, vsite2);\n }", "boolean hasVector3Value();", "public boolean isConvex() {\t\r\n\t\tboolean value = true;\r\n\t\t\r\n\t\t//if size = 3 and passed the isSimple condition then \r\n\t\t//it is a non-collinear polygon, aka Triangle,\r\n\t\t//which is convez\r\n\t\tif ( this.getSize() == 3) {\r\n\t\t\tif (this.isSimple() != true) {\r\n\t\t\t\treturn false;\r\n\t\t\t}//else\r\n\t\t\treturn true;\r\n\t\t} \r\n\t\tString zeroIndexOrientation = SimplePolygon.orientation(this.getVertex(0),\r\n\t\t\t\tthis.getVertex((0 + 1) % this.getSize()),\r\n\t\t\t\tthis.getVertex((1 + 1) % this.getSize()));\r\n\t\t\r\n\t\t\t//starting at index 1 not 0\r\n\t\t\tfor ( int i = 1; i < this.getSize(); i++) {\r\n\t\t\t//first point\r\n\t\t\tPoint2D.Double a = this.getVertex(i);\r\n\t\t\t\r\n\t\t\t//second point with respect to first point\r\n\t\t\tint j = (i+1) % this.getSize();\r\n\t\t\tPoint2D.Double b = this.getVertex(j);\r\n\t\t\t\r\n\t\t\t//third point with respect to second point, \r\n\t\t\t//which is with respect to first\r\n\t\t\tPoint2D.Double c = this.getVertex((j + 1) % this.getSize());\r\n\t\t\t\r\n\t\t\tif ( !SimplePolygon.orientation(a, b, c).equals(zeroIndexOrientation)) {\r\n\t\t\t\tvalue = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value; // TODO: replace this line with your code\r\n\t}", "public abstract boolean isCollided();", "private boolean collide(Ship s1, Ship s2) {\n if (s1 == null || s2 == null) return false; // no collision if either ship is null\n boolean vert1 = s1.getIsVertical();\n boolean vert2 = s2.getIsVertical();\n if (vert1 && vert2) {\n if (s1.getCol() != s2.getCol()) return false; // 2 vertical ships in different columns\n if (s1.getRow() >= s2.getRow() + s2.getSize()) return false; // s1 is below s2\n if (s2.getRow() >= s1.getRow() + s1.getSize()) return false; // s2 is below s1\n return true; // otherwise they collide\n } else if (!vert1 && !vert2) {\n if (s1.getRow() != s2.getRow()) return false; // 2 holizontal ships in different rows\n if (s1.getCol() >= s2.getCol() + s2.getSize()) return false; // s1 to the right of s2\n if (s2.getCol() >= s1.getCol() + s1.getSize()) return false; // s2 to the right of s1\n return true; // otherwise they collide\n } else {\n if (s1.getRow() >= s2.getRow() + s2.getSize()) return false; // s1 is below s2\n if (s2.getRow() >= s1.getRow() + s1.getSize()) return false; // s2 is below s1\n if (s1.getCol() >= s2.getCol() + s2.getSize()) return false; // s1 to the right of s2\n if (s2.getCol() >= s1.getCol() + s1.getSize()) return false; // s2 to the right of s1\n return true; // otherwise they collide\n }\n }", "boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }", "public boolean percolates() {\n return backwashQuickUnion.connected(virtualTop, virtualBottom);\n }", "public static boolean isSubset(Vector v1, Vector v2) {\n\t\tif (v1 == null || v2 == null || v1.equals(v2) || v1.size() >= v2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (Object o1 : v1) {\n\t\t\tif (!v2.contains(o1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean overlap(float[] a, float[] b) {\r\n return ( (b[0] <= a[0] && a[0] <= b[3]) || (b[0] <= a[3] && a[3] <= b[3]) ) &&\r\n ( (b[1] <= a[1] && a[1] <= b[4]) || (b[1] <= a[4] && a[4] <= b[4]) ) &&\r\n ( (b[2] <= a[2] && a[2] <= b[5]) || (b[2] <= a[5] && a[5] <= b[5]) );\r\n }", "public boolean percolates() {\n return unionFind.connected(topRoot, bottomRoot);\n }", "private boolean checkColoumnForQuadPair(int j1) {\n for(int i=0;i<4;i++)\r\n {\r\n if(Kmap[i][j1]==0 || Kmap[i][j1]==-1)\r\n return false;\r\n }\r\n for(int i=0;i<4;i++)\r\n {\r\n Kmap[i][j1]=-1;\r\n }\r\n return true; \r\n }", "public boolean percolates() {\n\t\treturn cellTree.connected(side * side, side * side + 1);\n\t}", "public boolean colision(Nave nave) {\r\n\t\t\r\n\t\tint[] arrayY = cargarPuntoColisionY();\r\n\t\tint[] arrayX = cargarPuntoColisionX();\r\n\t\tboolean A,B,C,D,E,F,G,H;\r\n\t\tboolean fColision = false;\r\n\t\tint i = 0;\r\n\t\t\r\n\t\twhile(i + 1 < arrayY.length && !fColision){\r\n\t\t\r\n\t\t\tA = x + arrayX[i] >= nave.getX();\r\n\t\t\tB = x + arrayX[i] <= (nave.getX() + nave.getWidth());\r\n\t\t\tC = y + arrayY[i] >= nave.getY();\r\n\t\t\tD = y + arrayY[i] <= (nave.getY() + nave.getHeight());\r\n\t\t\tE = (x + arrayX[i+1]) >= nave.getX();\r\n\t\t\tF = (x + arrayX[i+1]) <= (nave.getX() + nave.getWidth());\r\n\t\t\tG = (y + arrayY[i+1]) >= nave.getY();\r\n\t\t\tH = (y + arrayY[i+1]) <= (nave.getY() + nave.getHeight());\r\n\t\t\r\n\t\t\t// funcion de colicion que verifica si uno o mas puntos del borde del objeto nave intersectan con el borde del objeto que ejecuta la funcion\r\n\t\t\tfColision = fColision || (A && B || E && F) && (C && D || G && H) || !A && !F && ( !H && D || G && H) || !C && !H && (B && !F || !A && E);\r\n\t\t\ti = i+2;\r\n\t\t}\r\n\t\t\r\n\t\treturn getVisible() && nave.getVisible() && fColision;\r\n\t\t\t\r\n\t\t\t\t\r\n\t}", "public boolean isEmpty() {\n\t\treturn vector.isEmpty();\n\t}", "public boolean isEmpty() {\r\n\tfor (int i = 0; i < this.size; i++) {\r\n\t if (this.territory[0][i] != 0 || this.territory[1][i] != 0) {\r\n\t\treturn false;\r\n\t }\r\n\t}\r\n\r\n\treturn true;\r\n }", "public boolean completa(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(!verificaLinhaEColuna(i,j) || !verificaQuadrante(i,j) || matriz[i][j] == 0){\n return false;\n }\n\n }\n }\n\n return true;\n }", "public boolean isColinear(final Point pointC) {\n\t\t\tPointPair secondPair = new PointPair(pointC, pointA);\n\t\t\treturn this.lineData.equals(secondPair.lineData);\n\t\t}", "public boolean percolates(){\r\n\t\treturn uf.connected(N * N, N * N + 1);\r\n\t}", "public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }" ]
[ "0.6882369", "0.65536845", "0.640403", "0.63979226", "0.6343956", "0.618722", "0.61700624", "0.61324626", "0.6087715", "0.60606885", "0.60533506", "0.6050936", "0.6049561", "0.60406744", "0.59688896", "0.593371", "0.5910599", "0.586159", "0.58428735", "0.582674", "0.57988846", "0.57816994", "0.5779334", "0.5726564", "0.5701932", "0.56920266", "0.56906986", "0.5677465", "0.5675393", "0.5671692", "0.5666129", "0.5657694", "0.5656982", "0.5655628", "0.56529725", "0.56519544", "0.56254816", "0.5610981", "0.5607948", "0.5601506", "0.55992347", "0.55617523", "0.5557836", "0.5544404", "0.55329674", "0.55223656", "0.5520659", "0.5514113", "0.54951805", "0.54929936", "0.54901326", "0.54881525", "0.54875666", "0.5482353", "0.5479564", "0.5477425", "0.5477324", "0.5476993", "0.5469759", "0.54529274", "0.54513377", "0.54472387", "0.54448324", "0.5439092", "0.5431459", "0.5430223", "0.54234135", "0.54225135", "0.5420828", "0.540834", "0.5406712", "0.5404597", "0.54000616", "0.5389954", "0.5388253", "0.53726786", "0.5368996", "0.5365789", "0.53606", "0.5359447", "0.5354694", "0.53424644", "0.53377515", "0.5332259", "0.5324783", "0.5324557", "0.5313821", "0.5313432", "0.5304524", "0.5302326", "0.5301803", "0.5296607", "0.52962816", "0.5292498", "0.5291148", "0.5289955", "0.52812415", "0.5280412", "0.52803874", "0.52787876" ]
0.6239078
5
get any vector not colinear with this. returns any axis which is not colinear with this
public CMLVector3 getNonColinearVector() { Vector3 v = this.getEuclidVector3().getNonColinearVector(); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected double[] negate(ColumnVector vector) {\r\n double[] v = vector.getVector();\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] *= -1.0;\r\n }\r\n return v;\r\n }", "Boolean isCollinearTo(IVec3 v);", "List<CalibratedAxis> getAxesNonPlanar();", "public boolean isVector() {\n return mat.getNumRows() == 1 || mat.getNumCols() == 1;\n }", "public Vector2D neg()\n\t{\n\t\treturn this.mul(-1);\n\t}", "public boolean isColinearVector(CMLVector3 v) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n return (veucl3 == null) ? false : veucl3.isColinearVector(v\r\n .getEuclidVector3());\r\n }", "public Set<Double> xOfEachCol() {\r\n Set<Double> xOfCols = new HashSet<>();\r\n for (Enemy e : enemies) {\r\n Double ex = e.getCollisionRectangle().getUpperLeft().getX();\r\n if (!xOfCols.contains(ex)) {\r\n xOfCols.add(ex);\r\n }\r\n }\r\n return xOfCols;\r\n }", "public Vector2f negateLocal ()\n {\n return negate(this);\n }", "public Vector3 negateLocal () {\n return negate(this);\n }", "public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}", "public boolean percolates()\r\n { return uf.find(0) == uf.find(dimension*dimension + 1); }", "public static double[] deadZone(double[] axis){\n\t\tfor (int i = 0; i< axis.length; i++){\n\t\t\tif ((axis[i] <= 0.05) && (axis[i] >= -0.05)) {//i will iterate to 0,1,2 since axis array size is 3\n\t\t\t\taxis[i] = 0;//if the condition is satisfies, round it to zero\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(axis.length);\n\t\treturn axis;\n\t}", "Vector getZeroVector();", "long[] getAxesLengthsNonPlanar();", "@Override\n UnitVector3DBasics getAxis();", "public boolean shouldIgnoreUnrelatedDimensions() {\n return getCube().shouldIgnoreUnrelatedDimensions(\n getMeasureCube().getName());\n }", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "public Vector minusAll(Vector v) {\n return new Vector(\n getX() - v.getX(),\n getY() - v.getY(),\n getZ() - v.getZ(),\n 0\n );\n }", "private boolean isVecInXY(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.yCoord >= this.minY && vec.yCoord <= this.maxY;\n\t}", "private static float getComponentInAxis(Vector3f vector, Vector3f direction)\n\t{\n\t\treturn Vector3f.dot(vector, direction) / vector.length();\n\t}", "private boolean hayRayaVertical() {\n for (int j = 0; j < casillas[0].length; j++) {\n Casilla[] columna = new Casilla[casillas.length];\n for (int i = 0; i < casillas.length; i++) {\n columna[i] = casillas[i][j];\n }\n if (linea(columna))\n return true;\n }\n\n return false;\n }", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "public FloatColumn getAngleOutOfPlane() {\n return (FloatColumn) (isText ? textFields.computeIfAbsent(\"angle_out_of_plane\", FloatColumn::new) :\n getBinaryColumn(\"angle_out_of_plane\"));\n }", "public abstract Vector4fc zero();", "static int getExitAxis(S2Point n) {\n // assert (intersectsFace(n));\n if (intersectsOppositeEdges(n)) {\n // The line passes through opposite edges of the face.\n // It exits through the v=+1 or v=-1 edge if the u-component of N has a\n // larger absolute magnitude than the v-component.\n return (Math.abs(n.x) >= Math.abs(n.y)) ? 1 : 0;\n } else {\n // The line passes through two adjacent edges of the face.\n // It exits the v=+1 or v=-1 edge if an even number of the components of N\n // are negative. We test this using signbit() rather than multiplication\n // to avoid the possibility of underflow.\n // assert(n.x != 0 && n.y != 0 && n.z != 0);\n return ((n.x < 0) ^ (n.y < 0) ^ (n.z < 0)) ? 0 : 1;\n }\n }", "Boolean isOmitNorms();", "public boolean percolates() {\n\t\treturn linearGrid.connected(0, 1);\n\t}", "default DiscreteDoubleMap2D nonNegativePart() {\r\n\t\treturn pointWiseMaximum(ZERO);\r\n\t}", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "public Vector3D negate() {\n return scale(-1);\n }", "public boolean isVertical(){\n return !isHorizontal();\n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public int getNoDimensions() {\n return noDimensions;\n }", "boolean getYAxisCharacteristicIdNull();", "public Vector3 normalized() {\n\t\tif (isZeroVector(this)) {\n\t\t\treturn this;\n\t\t}\n\t\treturn new Vector3(x / norm(), y / norm(), z / norm());\n\t}", "public final Set<Particle> getNoCollisionElements()\n {\n return noCollisionElements;\n }", "@Override\r\n\tpublic Vector2f[] getVertices() {\n\t\treturn null;\r\n\t}", "public InfLinearAxis() {\n }", "private boolean tryBorder(int x, int y){\n\n\t\treturn y == this.dimension - 1 || x == this.dimension - 1;\n\t}", "@Override\n public boolean is2D()\n {\n return false;\n }", "boolean isFacingOut(float[] a, float[] b, float[] c, float[] d) {\n // the vector to center of face! genius!\n return a[2] + b[2] + c[2] + d[2] > 0;\n }", "public Vector(float[] axis){ this.axis = axis;}", "public boolean outside(Vector3f other){\n double[][] m = {{this.a.x, this.b.x, this.c.x, other.x},\n {this.a.y, this.b.y, this.c.y, other.y},\n {this.a.z, this.b.z, this.c.z, other.z},\n {1,1,1,1}};\n if(DeterminantTools.get4x4Determinant(m)>0){\n return true;\n } else {\n return false;\n }\n }", "public Vector2 getUnprojected() {\n return unprojected;\n }", "int[][]\n getVerticalMask();", "@Override\r\n\tpublic boolean isEmpty() {\n\t\tboolean bandera=true;\r\n\t\tif(vector.size()>0){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tbandera=false;\r\n\t\t}\r\n\t\treturn bandera;\r\n\t}", "public boolean percolates(){\n return uf.connected(ufSize - 2, ufSize - 1);\n }", "private boolean isVecInYZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.yCoord >= this.minY && vec.yCoord <= this.maxY && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "default DiscreteSet2D support() {\r\n\t\treturn pointsSatisfying(d -> d != 0);\r\n\t}", "public static boolean isVector(int[] v) { return v != null && v.length == 2; }", "public double getX_AxisMagnitudeDifference() {\n return 0;\n }", "protected int sign(@Const Vector3 v) {\n switch (dominantAxis) {\n case X:\n return (v.x >= 0.0 ? 1 : -1);\n case Y:\n return (v.y >= 0.0 ? 1 : -1);\n case Z:\n return (v.z >= 0.0 ? 1 : -1);\n default:\n return 0;\n }\n }", "public static double normInfinity(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof DblArray1SparseVector) { // short-cut for sparse vectors\r\n return ((DblArray1SparseVector) x).normInfinity();\r\n }\r\n int n = x.getNumCoords();\r\n double res = 0.0;\r\n for (int i=0; i<n; i++) {\r\n final double absxi = Math.abs(x.getCoord(i));\r\n if (absxi>res) res = absxi;\r\n }\r\n return res;\r\n }", "boolean hasDimension();", "public static VectorIntf getCenter(Collection vectors) {\r\n if (vectors==null || vectors.size()==0)\r\n throw new IllegalArgumentException(\"null argument or empty set\");\r\n Iterator it = vectors.iterator();\r\n VectorIntf res = null;\r\n int n = 0;\r\n double[] arr = null;\r\n while (it.hasNext()) {\r\n VectorIntf x = (VectorIntf) it.next();\r\n n = x.getNumCoords();\r\n if (arr==null) arr = new double[n];\r\n else if (arr.length!=n)\r\n throw new IllegalArgumentException(\"vectors in collection \"+\r\n\t\t\t\t\t \"have different length\");\r\n for (int i=0; i<n; i++) arr[i] += x.getCoord(i);\r\n }\r\n for (int i=0; i<arr.length; i++) arr[i] /= ((double) vectors.size());\r\n res = new DblArray1Vector(arr);\r\n return res;\r\n }", "@Override\n\tpublic IDoubleVector getColumn(int j) throws OutOfBoundsException {\n\t\treturn null;\n\t}", "public static int zeroNorm(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof SparseVectorIntf) { // short-cut for sparse vectors\r\n SparseVectorIntf y = (SparseVectorIntf) x;\r\n\t\t\tif (Double.compare(y.getDefaultValue(),0.0)==0) return y.getNumNonZeros();\r\n }\r\n final int n = x.getNumCoords();\r\n int res=0;\r\n for (int i=0; i<n; i++)\r\n if (Double.compare(x.getCoord(i),0.0)!=0) ++res;\r\n return res;\r\n }", "public Matrix inverse(){\r\n \tint n = this.nrow;\r\n \tif(n!=this.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble[] col = new double[n];\r\n \tdouble[] xvec = new double[n];\r\n \tMatrix invmat = new Matrix(n, n);\r\n \tdouble[][] invarray = invmat.getArrayReference();\r\n \tMatrix ludmat;\r\n\r\n\t \tludmat = this.luDecomp();\r\n \tfor(int j=0; j<n; j++){\r\n \t\tfor(int i=0; i<n; i++)col[i]=0.0D;\r\n \t\tcol[j]=1.0;\r\n \t\txvec=ludmat.luBackSub(col);\r\n \t\tfor(int i=0; i<n; i++)invarray[i][j]=xvec[i];\r\n \t}\r\n \t\treturn invmat;\r\n \t}", "public JTensor neg() {\n JTensor r = new JTensor();\n TH.THTensor_(neg)(r, this);\n return r;\n }", "public Vector3f getOccluderPosition();", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "protected static boolean areAllCollinear(List<Point2D.Float> points) {\n\n\t\tif (points.size() < 2) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal Point2D.Float a = points.get(0);\n\t\tfinal Point2D.Float b = points.get(1);\n\n\t\tfor (int i = 2; i < points.size(); i++) {\n\n\t\t\tPoint2D.Float c = points.get(i);\n\n\t\t\tif (getTurn(a, b, c) != Turn.COLLINEAR) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }", "VectorArray getNeutHar();", "public Vector3d[] getAxes()\n {\n return new Vector3d[] { getRight(), getUp(), getDir() };\n }", "public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}", "private boolean isInUniverse(int line, int column) {\n return line >= 0 &&\n column >= 0 &&\n line <= this.width-1 &&\n column <= this.height-1;\n }", "public Axis<?, ?> a() {\n Axis<?, ?>[] axisArr = this.a;\n if (axisArr.length == 0) {\n return null;\n }\n return axisArr[0];\n }", "private boolean isVecInXZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "protected void maintainInAxis(Coord2d mouse) {\n View view = getChart().getView();\n View2DLayout layout = view.get2DLayout();\n\n BoundingBox3d bounds3d = getChart().getView().getBounds();\n\n\n\n // Get corners\n Coord3d cornerMin3D = null;\n Coord3d cornerMax3D = null;\n\n\n if (view.is2D_XY()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXminYminZmax();\n }\n }\n\n else if (view.is2D_XZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmax();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmin();\n }\n }\n\n else if (view.is2D_YZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmin();\n }\n }\n\n // System.out.println(\"Corner min 3D : \" + cornerMin3D);\n // System.out.println(\"Corner max 3D : \" + cornerMax3D);\n\n // Project 3D bounds to 2D\n Coord3d cornerMin2D = modelToScreen(cornerMin3D); // bottom left\n Coord3d cornerMax2D = modelToScreen(cornerMax3D); // top right\n\n Coord2d scale = scaled?new Coord2d(1,1):getChart().getView().getPixelScale();\n \n cornerMin2D.x /= scale.x; \n cornerMin2D.y /= scale.y; \n cornerMax2D.x /= scale.x; \n cornerMax2D.y /= scale.y; \n \n // System.out.println(mouse + \" corner min \" + cornerMin2D + \" corner max \" + cornerMax2D);\n\n // System.out.println(\"Corner min 2D : \" + cornerMin);\n // System.out.println(\"Corner max 2D : \" + cornerMax);\n\n // Crop on X bounds\n if (mouse.x < cornerMin2D.x)\n mouse.x = cornerMin2D.x;\n if (mouse.x > cornerMax2D.x)\n mouse.x = cornerMax2D.x;\n\n // Crop on Y bounds\n int height = (int)(getChart().getCanvas().getRendererHeight() / scale.y);\n\n float flipedCornerMinY = height - cornerMin2D.y;\n float flipedCornerMaxY = height - cornerMax2D.y;\n float flipedMouseY = height - mouse.y;\n\n if (flipedMouseY < cornerMin2D.y)\n mouse.y = flipedCornerMinY;\n if (flipedMouseY > cornerMax2D.y)\n mouse.y = flipedCornerMaxY;\n }", "public boolean inVerticalBlank();", "default DiscreteDoubleMap2D nonPositivePart() {\r\n\t\treturn pointWiseMinimum(ZERO);\r\n\t}", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "public Vector normalized(){\r\n\t\tfloat len = this.length();\r\n\t\tif( len != 0.0f && len != 1.0f ){\r\n\t\t\treturn new Vector( this.x / len, this.y / len, this.z / len );\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "static boolean collinear(PointDouble p, PointDouble q, PointDouble r) {\n return Math.abs(cross(vector(p, q), vector(p, r))) < EPS;\n }", "boolean ignoreExistingVertices();", "public static double [][] inv(double [][] a) {\n int N = a.length;\n double [] col = new double[N];\n int [] indx = new int[N];\n double [][] y = new double[N][N];\n \n double d = ludcmp(a, indx);\n for (int j=0; j<N; j++ ) {\n for (int i=0; i<N; i++) \n col[i] = 0.0;\n col[j] = 1.0;\n lubksb(a, indx, col);\n for (int i=0; i<N; i++)\n y[i][j] = col[i];\n }\n return y; \n }", "public InfLinearAxis(Axis axis) {\n super(axis);\n }", "public Vector[] getCorners() {\n\t\treturn new Vector[] { this.topLeft, this.topRight, this.botLeft, this.botRight };\n\t}", "public boolean isEmpty() {\n\t\treturn vector.isEmpty();\n\t}", "public float[] unProjectCoordinates(float x, float y) {\n\t\t// construct the input vector\n\t\tfloat[] inVec = new float[] {\n\t\t\t\t/* x: */ x, /* y: */ y, \n\t\t\t\t/* z: */ 0, /* w: */ 1\n\t\t};\n\t\t// map from window coordinates to NDC coordinates\n\t\tinVec[0] = (inVec[0] / viewportDims[0]) * 2.0f - 1.0f;\n\t\tinVec[1] = (inVec[1] / viewportDims[1]) * 2.0f - 1.0f;\n\t\tinVec[1] = -inVec[1];\n\t\t\n\t\t// get the output coordinates\n\t\tfloat[] outVec = new float[4];\n\t\tMatrix.multiplyMV(outVec, 0, reverseMatrix, 0, inVec, 0);\n\t\tif (outVec[3] == 0) \n\t\t\treturn null;\n\t\t\n\t\t// divide by the homogenous coordinates\n\t\toutVec[0] /= outVec[3];\n\t\toutVec[1] /= outVec[3];\n\t\toutVec[2] /= outVec[3];\n\t\t\n\t\treturn outVec;\n\t}", "public Vector[] getCardinalPoints(){\r\n\t\tVector[] ret = new Vector[4];\r\n\t\tfor(int i = 0; i < 4; i++)\r\n\t\t\tret[i] = getPosition().add(new Vector(dx[i] * Tile.SIZE, dy[i] * Tile.SIZE));\r\n\t\treturn ret;\r\n\t}", "public abstract boolean isCollided();", "public abstract Vector computeCenter();", "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "public Boolean getLargestAxis() {\n\t\tdouble widthX = this.maxx.getData().getX()-this.minx.getData().getX();\n\t\tdouble widthY = this.maxy.getData().getY()-this.miny.getData().getY();\n\t\treturn (widthX > widthY);\n\t}", "public AxisAlignedBB getBoundingBox()\r\n {\r\n return null;\r\n }", "boolean getNoColor();", "boolean hasVector2Value();", "@Override\n\tpublic IDoubleVector sumColumns() {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif(this.vector.isEmpty()) return true;\n\t\treturn false;\n\t}", "public boolean percolates() {\n return false;\n }", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "void colFull(int col);", "public Vector getDisplacementVector(Coord b) {\n\t\treturn new Vector(b).minus(new Vector(this));\n\t}", "public static double getRawAxis(int i) {\n\t\treturn 0;\r\n\t}", "public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n } else {\n return neighborOddColIndex;\n }\n }", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "private void checkVertical() {\n\n for(int i = 0; i < 2; i++){ // winning column can be either 0-1-2-(3) or (0)-1-2-3\n for (int j = 0; j < stateArray[3].length; j++) {\n\n if (check3Vertical(i, j)) {\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i+1][j] = 1;\n maskArray[i+2][j] = 1;\n }\n\n }\n }\n\n }" ]
[ "0.5857541", "0.56982875", "0.56236184", "0.5597535", "0.55086297", "0.5418403", "0.5393838", "0.5360817", "0.53247684", "0.52639455", "0.52226233", "0.5181985", "0.514104", "0.513996", "0.51373017", "0.5120021", "0.51156455", "0.5078652", "0.5077305", "0.50453496", "0.5043751", "0.50344056", "0.5030876", "0.5024622", "0.5022412", "0.50110465", "0.50091326", "0.50034016", "0.49987292", "0.4994307", "0.49798757", "0.49716133", "0.49626854", "0.49366587", "0.49139237", "0.4908054", "0.48997462", "0.48989773", "0.48986587", "0.48910362", "0.4890913", "0.48701054", "0.48645982", "0.48594657", "0.48320147", "0.48310012", "0.48280844", "0.48265618", "0.48212135", "0.48098674", "0.48015437", "0.47744238", "0.47700122", "0.4766742", "0.47431874", "0.4739781", "0.47359878", "0.4732128", "0.47306246", "0.47242194", "0.47169173", "0.47150058", "0.4708595", "0.46954218", "0.46920487", "0.46670032", "0.4659519", "0.4655177", "0.46507832", "0.46484688", "0.46440858", "0.46400958", "0.46391717", "0.46341643", "0.4628301", "0.4620896", "0.4614298", "0.46140996", "0.46138674", "0.46135736", "0.4611233", "0.4611141", "0.46047828", "0.45949638", "0.4585185", "0.45784914", "0.4575987", "0.45739836", "0.45733112", "0.45724759", "0.45683086", "0.45680645", "0.4567977", "0.45673725", "0.45652986", "0.45634168", "0.4562851", "0.4559471", "0.45591426", "0.4552371" ]
0.6322538
0
get any vector perpendicular to this. useful for creating cartesian axes containing this
public CMLVector3 getPerpendicularVector() { Vector3 v = this.getEuclidVector3().getPerpendicularVector(); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void perpendicular() {\r\n\t\tset(y, x * -1);\r\n\t}", "public static void getPerpendicular(Vector3 result, Vector3 v)\n\t{\n\t\tif (Math.abs(v.x) < Math.abs(v.y)) {\n\t\t\tresult.set(0, v.z, -v.y);\n\t\t} else {\n\t\t\tresult.set(-v.z, 0, v.x);\n\t\t}\n\t}", "public Line perpendicularLine(){\n\t\tLine perpendicularLine = new Line();\n\t\tint pa,pb,pc;\n\t\tpa = getQ().x - getP().x;\n\t\tpb = getQ().y - getP().y;\n\t\tpc = (getP().x * (getP().x - getQ().x)) +(getP().y * (getP().y - getQ().y));\n\t\tperpendicularLine.setA(pa);\n\t\tperpendicularLine.setB(pb);\n\t\tperpendicularLine.setC(pc);\n\t\tperpendicularLine.setP(new Point(0,0));\n\t\tperpendicularLine.setQ(new Point(0,0));\n\t\treturn perpendicularLine;\n\t}", "public static void perpendicular(Vec2 v, Vec2 dest) {\r\n\t\tdest.x = v.y;\r\n\t\tdest.y = v.x * -1;\r\n\t}", "public double getV() {\r\n return Math.sqrt(Math.pow(this.dx, 2) + Math.pow(this.dy, 2));\r\n }", "public boolean isPerpendicular() {\n\t\tVector3D u1 = new Vector3D(A1, B1);\n\t\tVector3D u2 = new Vector3D(B1, C1);\n\t\treturn (u1.getX() * u2.getX() + u1.getY() * u2.getY() + u1.getZ() * u2.getZ()) == 0;\n\t}", "private static Point2D[] getPerpendicular(Point2D p1, Point2D p2,\r\n\t\tPoint2D perp) {\r\n\t\tif ((p2.getY() - p1.getY()) == 0) {\r\n\t\t\treturn new Point2D[] {\r\n\t\t\t\tnew Point2D.Double(perp.getX(), 0),\r\n\t\t\t\tnew Point2D.Double(perp.getX(), 1)\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t//Pendiente de la recta perpendicular\r\n\t\tdouble m = (p1.getX() - p2.getX()) / (p2.getY() - p1.getY());\r\n\r\n\t\t//b de la funcion de la recta perpendicular\r\n\t\tdouble b = perp.getY() - (m * perp.getX());\r\n\r\n\t\t//Obtenemos un par de puntos\r\n\t\tPoint2D[] res = new Point2D[2];\r\n\r\n\t\tres[0] = new Point2D.Double(0, (m * 0) + b);\r\n\t\tres[1] = new Point2D.Double(1000, (m * 1000) + b);\r\n\r\n\t\treturn res;\r\n\t}", "public static Recta getPerpendicular(Recta recta, Punto punto) {\r\n double anguloRecta = Math.atan(recta.getM());\r\n anguloRecta += Math.PI / 2;\r\n double m = Math.tan(anguloRecta);\r\n return new Recta(m, punto.getY() - m * punto.getX());\r\n }", "private static Point2D getPerpendicularPoint(Point2D p1, Point2D p2,\r\n\t\tPoint2D perpPoint, double dist) {\r\n\t\tPoint2D[] p = getPerpendicular(p1, p2, perpPoint);\r\n\t\tPoint2D unit = getUnitVector(p[0], p[1]);\r\n\r\n\t\treturn new Point2D.Double(perpPoint.getX() + (unit.getX() * dist),\r\n\t\t\tperpPoint.getY() + (unit.getY() * dist));\r\n\t}", "public Vect3 PerpL() {\n\t\treturn new Vect3(-y,x,0);\n\t}", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "@XmlElement(\"PerpendicularOffset\")\n Expression getPerpendicularOffset();", "public double dot(final Vec4 o) {\n expectDirection();\n o.expectDirection();\n return x * o.x + y * o.y + z * o.z;\n }", "public Vector2D toPolar()\n {\n return new Vector2D(Math.sqrt(this.x * this.x + this.y * this.y), Math.atan2(this.y, this.x));\n }", "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "public double dot(Vec vthat);", "public double dot(Vector2D v) {\n \n return _x * v.x() + _y * v.y(); \n \n }", "@Override\n public Vector getNormal(Point3D p) {\n Vector O_P= p.subtract(_center);\n return O_P.normalize();\n // return null;\n }", "public Vect3 PerpR() {\n\t\treturn new Vect3(y,-x,0);\n\t}", "public Vector getL(Point3D p){\n if (p.equals(_position)) {\n return null;\n }\n return p.subtract(_position).normalize();\n }", "public double productoVectorial(Pixel pixel) {\r\n\t\treturn getXDouble() * pixel.getYDouble() - getYDouble() * pixel.getXDouble();\r\n\t\t// return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() *\r\n\t\t// pixel.getXCartesiano();\r\n\t}", "double getVx() { return vel[0]; }", "public double dot(Vector2d v) {\n\t\treturn x*v.x + y*v.y;\n\t}", "@Override\n\tpublic void setOrientation(Vector o)\n\t{\n\t\tsuper.setOrientation(o);\n\t\tif (position != null && normal != null)\n\t\t{\n\t\t\toX = o.dup().norm();\n\t\t\toY = normal.cross(oX).norm();\n\t\t\toX = oY.cross(normal).norm();\n\t\t}\n\t}", "public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }", "public double dot(Vector2D v)\n\t{\n\t\treturn x*v.getX() + y*v.getY();\n\t}", "@Override\n public Vector getNormal(Point3D P) {\n Point3D O = _center;\n Vector n = P.subtract(O);\n return n.normalized();\n }", "public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}", "private Vector3f getPlaneNormal(Vector3f directionVector) {\n\t\tVector3f up = new Vector3f(0, 0, 1);\n\t\tif (directionVector.z == 1 || directionVector.z == -1)\n\t\t\tup.set(0, 1, 0);\n\n\t\tfloat dirX = directionVector.x;\n\t\tfloat dirY = directionVector.y;\n\t\tfloat dirZ = directionVector.z;\n\t\tfloat upX = up.x;\n\t\tfloat upY = up.y;\n\t\tfloat upZ = up.z;\n\n\t\t// right = direction x up\n\t\tfloat rightX, rightY, rightZ;\n\t\trightX = dirY * upZ - dirZ * upY;\n\t\trightY = dirZ * upX - dirX * upZ;\n\t\trightZ = dirX * upY - dirY * upX;\n\t\t// normalize right\n\t\tfloat invRightLength = 1.0f / (float) Math.sqrt(rightX * rightX + rightY * rightY + rightZ * rightZ);\n\t\trightX *= invRightLength;\n\t\trightY *= invRightLength;\n\t\trightZ *= invRightLength;\n\n\t\treturn new Vector3f(rightX, rightY, rightZ);\n\t}", "public double dot(Vector other){\n\t\treturn x*other.x + y*other.y + z*other.z;\n\t}", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public abstract Vector3 directionFrom(Point3 point);", "public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}", "public Vector normalized() {\n double size = this.length();\n return new Vector(this.getHead().getX() / size, this.getHead().getY() / size, this.getHead().getZ() / size);\n }", "public Vector3D getPointOnAxis() {\n\t\treturn pointOnAxis;\n\t}", "public float dot(Vec2 v) {\r\n\t\treturn ((x * v.x) + (y * v.y));\r\n\t}", "public double dot(Vector3D v) {\n return (this.xCoord * v.xCoord) + (this.yCoord * v.yCoord) + (this.zCoord * v.zCoord);\n }", "public double norm() {\n if (dy == 0.0)\n return Math.abs(dx);\n return Math.hypot(dx, dy);\n }", "public Vector2D normal()\n\t{\n\t\treturn this.mul(1/this.length());\n\t}", "public double cross(Vector2D v)\n\t{\n\t\treturn this.x * v.y - this.y * v.x;\n\t}", "public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}", "@Override\n\tpublic float dot(Vector vector) {\n\t\tif(vector instanceof Vec2){\n\t\t\tVec2 vect = (Vec2)vector;\n\t\t\treturn x*vect.x+y*vect.y;//z and w are 0\n\t\t}else if(vector instanceof Vec3){\n\t\t\tVec3 vect = (Vec3)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w is 0\n\t\t}else{\n\t\t\tVec4 vect = (Vec4)vector;\n\t\t\treturn x*vect.x+y*vect.y+z*vect.z;//w doesn't exist\n\t\t}\n\t}", "double getVy() { return vel[1]; }", "public Vector2D unitVector()\n {\n if (this.getR() != 0)\n return new Vector2D(this.x / this.getR(), this.y / this.getR());\n return new Vector2D(0, 0);\n }", "@Override\n\tpublic Vector getNormal(Point3D point) {\n\t\tdouble temp=axisRay.getDir().dotProduct(point.subtract(axisRay.getP0()));\n\t\tif(Util.isZero(temp/100))return (point.subtract(Point3D.ZERO)).normalize();\n\t\tPoint3D O=axisRay.getP0().add(axisRay.getDir().scale(temp));\n\t\treturn (point.subtract(O)).normalize();\n\n\t}", "public Vector getNormal(Point3D point) throws Exception {\n\n // Setting the U vector\n Vector vecU = new Vector(_p1.getX().getCoordinate()-_p2.getX().getCoordinate(),\n _p1.getY().getCoordinate()-_p2.getY().getCoordinate(),\n _p1.getZ().getCoordinate()-_p2.getZ().getCoordinate());\n // Setting the V vector\n Vector vecV = new Vector(_p1.getX().getCoordinate()-_p3.getX().getCoordinate(),\n _p1.getY().getCoordinate()-_p3.getY().getCoordinate(),\n _p1.getZ().getCoordinate()-_p3.getZ().getCoordinate());\n\n // Finding the normal vector and normalize it\n Vector _normal = new Vector(vecU.crossProduct(vecV));\n _normal.normalize();\n _normal.scale(-1);\n\n return _normal;\n }", "@Override\n UnitVector3DBasics getAxis();", "public Vector3 normalized() {\n\t\tif (isZeroVector(this)) {\n\t\t\treturn this;\n\t\t}\n\t\treturn new Vector3(x / norm(), y / norm(), z / norm());\n\t}", "public double\nangleInXYPlane()\n{\n\tBVector2d transPt = new BVector2d(\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n\t\n\t// debug(\"transPt: \" + transPt);\n\n\tdouble angle = MathDefines.RadToDeg * new Vector2d(1.0, 0.0).angle(transPt);\n\tif (transPt.getY() < 0.0)\n\t{\n\t\t// debug(\"ang0: \" + (360.0 - angle));\n\t\treturn(360.0 - angle);\n\t}\n\t// debug(\"ang1: \" + angle);\n\treturn(angle);\n}", "public Triangle(int width, int height, int perpendicular, int x, int y){\n super(x,y);\n setWidth(width);\n setHeight(height);\n setPerpendicular(perpendicular);\n }", "public abstract Vector computeCenter();", "public void\ngetPerpendicularPointsAtT(double t, Point2D tailPerpPt,\n\tPoint2D headPerpPt, double length, boolean positiveSide)\n{\n\tif (this.getP1().equals(this.getP2()))\n\t{\n\t\ttailPerpPt.setLocation(this.getP1());\n\t\theadPerpPt.setLocation(this.getP2());\n\t\treturn;\n\t}\n\tdouble deltaX = this.getX2() - this.getX1();\n\tdouble deltaY = this.getY2() - this.getY1();\n\tdouble multLength = length/Math.sqrt(deltaX*deltaX + deltaY*deltaY);\n\tdeltaX *= multLength;\n\tdeltaY *= multLength;\n\n\tgetPointAtT(tailPerpPt, t);\n\n\tif(positiveSide)\n\t{\n\t\theadPerpPt.setLocation(tailPerpPt.getX() + deltaY, tailPerpPt.getY() - deltaX);\n\t\ttailPerpPt.setLocation(\n\t\t\ttailPerpPt.getX() - deltaY,\n\t\t\ttailPerpPt.getY() + deltaX);\n\t}\n\telse\n\t{\n\t\theadPerpPt.setLocation(tailPerpPt.getX() - deltaY, tailPerpPt.getY() + deltaX);\n\t\ttailPerpPt.setLocation(\n\t\t\ttailPerpPt.getX() + deltaY,\n\t\t\ttailPerpPt.getY() - deltaX);\n\t}\n}", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public float dot (Vector2f other)\n {\n return x*other.x + y*other.y;\n }", "public double dot(Vector3 other) {\n\t\treturn x * other.x + y * other.y + z * other.z;\n\t}", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }", "public double dotProduct(Vector2d _that)\n {\n Vector2d startToThat = _that.sub(start);\n return startToEnd.dot(startToThat);\n }", "public Vector projection(Vector b){\n Vector result = new Vector();\n result.norm= (this.x*b.x+this.y*b.y) / b.getNorm();\n result.x = b.x/b.getNorm();\n result.y = b.y/b.getNorm();\n return result;\n }", "public Vector getNormal(Point3D point) {\r\n\t\treturn point.subtract(centerPoint).normalize();\r\n\t}", "public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "public static int vectorAngle(Point p) {\n \treturn (Math.round((float)Math.toDegrees(Math.atan2(p.x, p.y))));\n\t}", "final public double dot(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return (x*v.x + y*v.y + z*v.z);\n }", "public double productoVectorial2(Pixel pixel) {\r\n\t\treturn getX() * pixel.getY() - getY() * pixel.getX();\r\n\t\t //return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() * pixel.getXCartesiano();\r\n\t}", "public float dot(Vector3D v)\r\n\t{\r\n\t\treturn x*v.x + y*v.y + z*v.z;\r\n\t}", "private static Vector2 CartesianToPolar(Vector2 t)\r\n {\n\r\n Vector2 a = new Vector2((float)Math.atan(-t.Y/t.X), (float)Math.sqrt((t.X * t.X) + (t.Y * t.Y)));\r\n if (t.X < 0)a.X += Math.PI;\r\n else if (t.Y < 0) a.X += Math.PI * 2;\r\n return a;\r\n }", "double V2Dot(Position a, Position b){\r\n\t\treturn((a.getX() * b.getX())+(a.getY() * b.getY()));\r\n\t}", "public double dotProduct(Vector3 vec) {\n\t\treturn this.x*vec.x + this.y*vec.y + this.z*vec.z;\n\t}", "public float dot(Vector2D v2) \n {\n \tfloat result = 0.0f;\n result = this.getX() * v2.getX() + this.getY() * v2.getY();\n return result;\n }", "@Override\n public Vector getL(Point3D point) {\n // the L vector is same as the point light L vector\n return super.getL(point);\n }", "public double dot(LorentzVector vect){\n\t\tdouble dotProduct = this.e()*vect.e() - this.vect().dot(vect.vect());\n\t\treturn dotProduct;\n\t}", "public Vector3d[] getAxes()\n {\n return new Vector3d[] { getRight(), getUp(), getDir() };\n }", "public Line getOrthogonalLine(){\n return new Line(point, MathUtil.getOrthogonalDirection(direction));\n }", "@Basic\n\tpublic double getVx() {\n\t\treturn this.vx;\n\t}", "public float dot(Vector3 other){\r\n return r * other.r + g * other.g + b * other.b;\r\n }", "public Vector crossProduct(Vector vec) {\n return new Vector(new Point3D(vec.getHead().getY() * this.getHead().getZ() - this.getHead().getY() * vec.getHead().getZ(),\n vec.getHead().getZ() * this.getHead().getX() - this.getHead().getZ() * vec.getHead().getX(),\n vec.getHead().getX() * this.getHead().getY() - this.getHead().getX() * vec.getHead().getY()));\n }", "public Vector3 getNormal() {\n\t\tdouble mag = this.magnitude();\n\t\tif (mag > 0) {\n\t\t\treturn new Vector3(\n\t\t\t\t\tthis.x/mag,\n\t\t\t\t\tthis.y/mag,\n\t\t\t\t\tthis.z/mag\n\t\t\t\t\t);\n\t\t} else {\n\t\t\treturn new Vector3();\n\t\t}\n\t}", "public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}", "public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }", "public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }", "static PointDouble projection(Line line, PointDouble p) {\n if (Math.abs(line.b) < EPS) {\n // special case 1: vertical Line\n return new PointDouble(-line.c, p.y);\n }\n\n if (Math.abs(line.a) < EPS) {\n // special case 2: horizontal Line\n return new PointDouble(p.x, -line.c);\n }\n\n // perpendicular to l, passing through p\n // slope guaranteed to not be edge-case since we dealt with those already\n Line perpendicular = pointSlopeToLine(p, 1 / line.a);\n // intersect Line with perpendicular\n return intersection(line, perpendicular);\n }", "double getVz() { return vel[2]; }", "default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }", "public Vector crossProduct(Vector t){\n Vector v=new Vector(head.y.get()*t.head.getZ().get()-\n t.head.getY().get()*head.z.get(),head.z.get()*t.head.getX().get()-\n t.head.getZ().get()*head.x.get(),head.x.get()*t.head.getY().get()-\n t.head.getX().get()*head.y.get());\n return v;\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public double crossProduct(Vec2dd vec) {\n return x * vec.getY() - y * vec.getX();\n }", "@Override\n public double getPitch()\n {\n Vector3d modelIntersect = getModelIntersection();\n if (modelIntersect == null)\n {\n return 0;\n }\n modelIntersect = modelIntersect.getNormalized();\n Vector3d projectedIntersect = Plane.unitProjection(myPosition.getDir().multiply(-1), modelIntersect).getNormalized();\n // Now calculate angle between vectors (and keep sign)\n Vector3d orthogonal = myPosition.getRight().multiply(-1);\n Vector3d cross = modelIntersect.cross(projectedIntersect);\n double dot = modelIntersect.dot(projectedIntersect);\n double resultAngle = Math.atan2(orthogonal.dot(cross), dot);\n double ninetyDegrees = Math.toRadians(90);\n return Math.signum(resultAngle) < 0 ? -1 * (ninetyDegrees - Math.abs(resultAngle)) : ninetyDegrees - resultAngle;\n }", "private static float vectorToScalarScroll(float dx, float dy, float x, float y) {\n // get the length of the vector\n float l = (float) Math.sqrt(dx * dx + dy * dy);\n\n // decide if the scalar should be negative or positive by finding\n // the dot product of the vector perpendicular to (x,y). \n float crossX = -y;\n float crossY = x;\n\n float dot = (crossX * dx + crossY * dy);\n float sign = Math.signum(dot);\n\n return l * sign;\n }", "private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}", "public double[] vectorTo(double[] pt){\n double[] vecToLight = new double[3];\n vecToLight[0] = pos[0] - pt[0];\n vecToLight[1] = pos[1] - pt[1];\n vecToLight[2] = pos[2] - pt[2];\n return vecToLight;\n }", "public Grid2DFloat vectorVGrid() {\n Grid2DFloat mGrid = getMagGrid();\n Grid2DFloat dGrid = getDirGrid();\n Grid2DFloat vGrid = new Grid2DFloat(mGrid.getXdim(), mGrid.getYdim());\n int i, j;\n for (i = 0; i < vGrid.getXdim(); i++) {\n for (j = 0; j < vGrid.getYdim(); j++) {\n float angle = (float) Math.toRadians(dGrid.get(i, j));\n vGrid.set(i, j, (float) (Math.cos(angle) * mGrid.get(i, j)));\n }\n }\n return vGrid;\n }", "public Vector3d getVelocity() {\n return getMotion().getVelocity();\n }", "public BLine2D\ngetPerpendicularRayAtT(double t, double length, boolean positiveSide)\n{\n\tPoint2D tailPerpPt = new Point2D.Double();\n\tPoint2D headPerpPt = new Point2D.Double();\n\n\tif (this.getP1().equals(this.getP2()))\n\t{\n\t\ttailPerpPt.setLocation(this.getP1());\n\t\theadPerpPt.setLocation(this.getP2());\n\t\treturn (new BLine2D(tailPerpPt, headPerpPt));\n\t}\n\tdouble deltaX = this.getX2() - this.getX1();\n\tdouble deltaY = this.getY2() - this.getY1();\n\tdouble multLength = length/Math.sqrt(deltaX*deltaX + deltaY*deltaY);\n\tdeltaX *= multLength;\n\tdeltaY *= multLength;\n\n\tthis.getPointAtT(tailPerpPt, t);\n\n\tif(positiveSide)\n\t{\n\t\theadPerpPt.setLocation(tailPerpPt.getX() + deltaY, tailPerpPt.getY() - deltaX);\n\t\t/*\n\t\ttailPerpPt.setLocation(\n\t\t\ttailPerpPt.getX() - deltaY,\n\t\t\ttailPerpPt.getY() + deltaX);\n\t\t*/\n\t}\n\telse\n\t{\n\t\theadPerpPt.setLocation(tailPerpPt.getX() - deltaY, tailPerpPt.getY() + deltaX);\n\t\t/*\n\t\ttailPerpPt.setLocation(\n\t\t\ttailPerpPt.getX() + deltaY,\n\t\t\ttailPerpPt.getY() - deltaX);\n\t\t*/\n\t}\n\treturn (new BLine2D(tailPerpPt, headPerpPt));\n}", "public Vector cross(Vector v) {\n return new Vector(\n (getY() * v.getZ()) - (getZ() * v.getY()),\n (getZ() * v.getX()) - (getX() * v.getZ()),\n (getX() * v.getY()) - (getY() * v.getX())\n );\n }", "public Vec3D tangentPlaneNormalAt(Vec3D q) {\n\t\tVec3D p = this.sub(q);\n\t\t// float xr2 = eR.x * eR.x;\n\t\t// float yr2 = eR.y * eR.y;\n\t\t// float zr2 = eR.z * eR.z;\n\t\tfloat r2 = 1f / (radius * radius);\n\t\treturn p.scaleSelf(r2).normalize();\n\t}", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "public float dot(Vector2f vec) {\n return x * vec.x + y * vec.y;\n }", "public double dotProduct(Vec2dd vec) {\n return x * vec.getX() + y * vec.getY();\n }", "@Test\n\tpublic void perpVector3D() {\n\t\tVector3f v1 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\tVector3f v2 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\t\n\t\tdouble dotProduct = v1.dot(v2);\n\t\tdouble perpProduct = Math.abs(v1.perp(v2));\n\t\tdouble angle = v1.angle(v2);\n\t\t\n\t\tassertEpsilonEquals(Math.tan(angle),perpProduct/dotProduct);\n\t\t\n\t}" ]
[ "0.76303303", "0.71373767", "0.7022348", "0.6598414", "0.64812696", "0.6480186", "0.63711095", "0.6351405", "0.62087", "0.62082624", "0.61407226", "0.60986906", "0.5993508", "0.59773713", "0.5903877", "0.587693", "0.58589923", "0.58555704", "0.5845449", "0.5822748", "0.58212394", "0.58057064", "0.57903326", "0.5771495", "0.5726821", "0.57144415", "0.5709626", "0.57073975", "0.5705261", "0.57050395", "0.5704749", "0.5697085", "0.5696194", "0.5680359", "0.56773925", "0.5674582", "0.5673962", "0.5673929", "0.5672956", "0.565169", "0.56338024", "0.5623464", "0.56205374", "0.5612109", "0.5597285", "0.55954117", "0.5592383", "0.5571844", "0.55634207", "0.5562866", "0.5543436", "0.5543242", "0.55413395", "0.55400985", "0.55399376", "0.5537233", "0.55332476", "0.55326504", "0.55310655", "0.55141485", "0.550676", "0.5504439", "0.5477897", "0.5477653", "0.54662776", "0.54659736", "0.5464244", "0.54575586", "0.5451074", "0.54502344", "0.54476535", "0.5442943", "0.5432611", "0.54155034", "0.5406727", "0.54059464", "0.5402266", "0.5399694", "0.53986585", "0.5388713", "0.53815734", "0.53788453", "0.5365567", "0.5350715", "0.53415823", "0.5341462", "0.5341015", "0.5337169", "0.53336275", "0.53282726", "0.53277004", "0.532746", "0.5325586", "0.53247565", "0.5322136", "0.5317953", "0.5315041", "0.53055835", "0.5298837", "0.52971613" ]
0.81724614
0
/ access modifiers changed from: private / renamed from: b
public static final boolean m18411b(ConnectivityManager connectivityManager) { NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); return activeNetworkInfo != null && activeNetworkInfo.isConnected(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "@Override\n\tpublic void b() {\n\n\t}", "public void b() {\r\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public void mo21825b() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public void mo115190b() {\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public void mo23813b() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract Object mo1185b();", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "@Override\n protected void prot() {\n }", "public abstract void mo6549b();", "public final void mo51373a() {\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public abstract C0631bt mo9227aB();", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public static void bi() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "public void m23075a() {\n }", "public abstract void mo35054b();", "public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }", "public final void mo1285b() {\n }", "private final zzgy zzgb() {\n }", "private BigB()\r\n{\tsuper();\t\r\n}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract Object mo26777y();", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public void mo9137b() {\n }", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "void mo2508a(bxb bxb);", "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 interface b {\n}", "public interface b {\n}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public static final class <init> extends com.google.android.m4b.maps.ct.<init>\n implements b\n{\n\n private ()\n {\n super(com.google.android.m4b.maps.cy.a.d());\n }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "protected void b(dh paramdh) {}", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "void m1864a() {\r\n }", "public void mo38117a() {\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public void method_4270() {}", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void a() {\r\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public void b() {\n ((a) this.a).b();\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo5251b() {\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public abstract B zzjo();", "public abstract int b();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo45765b();", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public abstract String mo118046b();", "public abstract void mo70702a(C30989b c30989b);", "private void m50366E() {\n }", "private abstract void privateabstract();", "void mo57277b();", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "protected void h() {}" ]
[ "0.7224839", "0.69518054", "0.68448514", "0.68045336", "0.6729634", "0.66892576", "0.6667949", "0.6666382", "0.66440094", "0.6614186", "0.66016066", "0.66016066", "0.6589728", "0.6487956", "0.6466085", "0.6466085", "0.645071", "0.6444203", "0.6424545", "0.64207315", "0.64160943", "0.6414322", "0.6328003", "0.6327414", "0.62732816", "0.62140226", "0.6206746", "0.6153523", "0.6149558", "0.6139187", "0.61167544", "0.6105347", "0.6098345", "0.6094454", "0.60885423", "0.6087932", "0.6078157", "0.60696363", "0.6069193", "0.6055342", "0.60527724", "0.6038868", "0.60326576", "0.60306174", "0.60212743", "0.60198337", "0.60137844", "0.6011094", "0.6009061", "0.5992609", "0.5988389", "0.598014", "0.59780216", "0.5971663", "0.5965223", "0.59651285", "0.5964735", "0.59584355", "0.5957915", "0.5955441", "0.5953412", "0.5953412", "0.59503615", "0.59496933", "0.59433514", "0.5942441", "0.59363157", "0.5933126", "0.5931375", "0.5928882", "0.59262604", "0.59236795", "0.5919878", "0.5916655", "0.5908729", "0.5906255", "0.5903017", "0.58993715", "0.58946365", "0.5894542", "0.58909625", "0.5885613", "0.5872216", "0.5871274", "0.58612293", "0.58611935", "0.5858143", "0.5847258", "0.5845622", "0.5845622", "0.5841156", "0.5832988", "0.58289605", "0.58240587", "0.58197", "0.5807641", "0.5805498", "0.5797393", "0.5796352", "0.57937944", "0.5790913" ]
0.0
-1
/ String filePath = TestContext.getProperty("dataDriven_file_path" + "/" + excelFileName); InputStream in = ExcelUtils.class.getClassLoader().getResourceAsStream(filePath);
public static void setExcelFile(String excelFileName) throws Exception { try { InputStream excelFile = new FileInputStream(excelFileName); log.debug("excel file path: " + excelFileName); excelWBook = new XSSFWorkbook(excelFile); log.info("<font color='green'><b>成功加载测试文件:[ " + excelFileName + " ]</b></font>"); } catch (Exception e) { log.error("setExcelFile() Exception : " + e.getMessage()); // ExecutionEngine.result = false; throw new RuntimeException("加载Excel测试文件 " + excelFileName + " 失败...[ " + e.getMessage() + " ]"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}", "public static void main(String[] args) throws IOException {\nFileInputStream f=new FileInputStream(\"D:\\\\AccuSelenium\\\\Ram\\\\TEST\\\\TestData\\\\LoginData.xls\");\nHSSFWorkbook w=new HSSFWorkbook(f);\nHSSFSheet s=w.getSheet(\"sheet1\");\nSystem.out.println(s.getRow(1));\n}", "public static void readFromExcel_ApachePOI(String testCase) throws Exception{\n\t\tString fileName = \"TestData.xlsx\";\n\t\tString SAMPLE_XLSX_FILE_PATH = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\TestData\\\\TestData.xlsx\";\n\t\tFile file = new File(SAMPLE_XLSX_FILE_PATH);\n\t\tFileInputStream inputStream = new FileInputStream(file);\n\t\tWorkbook workbook = null;\n\t\tString fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\n\t\t\n\t if(fileExtensionName.equals(\".xlsx\")){\n\n\n\t \tworkbook = new XSSFWorkbook(inputStream);\n\n\t }\n\n\t //Check condition if the file is xls file\n\n\t else if(fileExtensionName.equals(\".xls\")){\n\n\t //If it is xls file then create object of HSSFWorkbook class\n\n\t \tworkbook = new HSSFWorkbook(inputStream);\n\n\t }\n\t\t//System.out.println(\"Reading from right sheet\"); \n\t\tSheet sheet = workbook.getSheet(\"TestSheet\");\n\t\tfor(int i = 0;i<sheet.getLastRowNum();i++) {\n\t\t\tif(testCase.equalsIgnoreCase(sheet.getRow(i).getCell(0).getStringCellValue())) {\n\t\t\t\tRow row = sheet.getRow(i);\n\t\t\t\tString userID = row.getCell(1).getStringCellValue();\n\t\t\t\tint pwd = (int) row.getCell(2).getNumericCellValue();\n\t\t\t}\n\t\t}\n\t\tRow row = sheet.getRow(1);\n\t\tCell cell = row.getCell(0);\n\t\tString testCaseName = cell.getStringCellValue();\n\t\tString userID = row.getCell(1).getStringCellValue();\n\t\tint pwd = (int) row.getCell(2).getNumericCellValue();\n\t\tSystem.out.println(testCaseName);\n\t\tSystem.out.println(userID);\n\t\tSystem.out.println(pwd);\n\t\t\t\n\t\tworkbook.close();\n\t}", "public static void main(String[] args) throws UnsupportedEncodingException, FileNotFoundException {\n InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"riddles.xls\");\n\t\t\n InputStream is = new FileInputStream(new File(\"C:\\\\Users\\\\sean\\\\workspace\\\\mlymoon\\\\src\\\\main\\\\resources\\\\riddles.xls\"));\n\t\tExcelUtil eu = new ExcelUtil();\n List<Object> ls = eu.importDataFromExcel(new Item(), in, \"riddles.xls\");\n for(Object item : ls){\n \t Item i = (Item) item;\n \t System.out.println(i.getAnswer()+\"##\"+i.getConundrum());\n }\n String[] excelHeader = { \"所属区域(地市)\", \"机房\", \"机架资源情况\", \n \t \"\", \"端口资源情况\", \"机位资源情况\", \"\", \"\", \"设备资源情况\", \n \t \"\", \"\", \"IP资源情况\", \"\", \"\", \"\", \"\", \"网络设备数\" };\n /*ApplicationContext context = \n\t new ClassPathXmlApplicationContext(\"appContext.xml\");\n\t CustomerService customerService = context.getBean(\"customerService\",CustomerService.class);\n List<Customer> customers=customerService.findAll(null, null);\n FileOutputStream fout = new FileOutputStream(\"I:/students.xls\"); \n\t\tExcelUtil eu = new ExcelUtil();\n\t\teu.exportDataToExcel(customers, excelHeader, \"dddddd\", fout);*/\n\t}", "private InputStream getFileFromResourceAsStream(String fileName) {\n\n // The class loader that loaded the class\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n\n }", "private static InputStream getInputStream(final String filename) throws IOException, FileNotFoundException {\r\n final ResourcePatternResolver applicationContext = new ClassPathXmlApplicationContext(new String[] {});\r\n final Resource[] resource = applicationContext.getResources(\"classpath*:\" + filename);\r\n if (resource.length == 0) {\r\n throw new FileNotFoundException(\"Unable to find file '\" + filename + \"' in classpath.\");\r\n }\r\n return resource[0].getInputStream();\r\n }", "private InputStream getFileFromResourceAsStream(String fileName) {\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "void readExcel(File existedFile) throws Exception;", "private static InputStream getResourceAsStream(final String filename) throws IOException {\n\t\t// Try to load resource from jar\n\t\tInputStream stream = TextureLoader.class.getResourceAsStream(filename);\n\t\t// If not found in jar, then load from disk\n\t\tif (stream == null) {\n\t\t\treturn new BufferedInputStream( new FileInputStream(filename) );\n\t\t} else {\n\t\t\treturn stream;\n\t\t}\n\t}", "private InputStream getResourceAsStream(String path) throws FileNotFoundException {\n\t\tInputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);\n\t\tif (in == null) {\n\t\t\tin = getClass().getResourceAsStream(path);\n\t\t}\n\n\t\tif (in == null) {\n\t\t\tFile file = new File(path);\n\t\t\tif (file.isFile()) {\n\t\t\t\tin = new FileInputStream(file);\n\t\t\t}\n\t\t}\n\n\t\treturn in;\n\t}", "public static XSSFSheet setExcelFile() throws Exception {\n\n XSSFSheet ExcelWSheet;\n XSSFWorkbook ExcelWBook;\n XSSFRow Row;\n String Path;\n String SheetName;\n\n try {\n // Open the Excel file\n Path = fetchMyProperties(\"spreadsheet_path\");\n SheetName= fetchMyProperties(\"sheet_name\");\n FileInputStream ExcelFile = new FileInputStream(Path);\n\n // Access the required test data sheet\n ExcelWBook = new XSSFWorkbook(ExcelFile);\n ExcelWSheet = ExcelWBook.getSheet(SheetName);\n\n } catch (Exception e){\n throw (e);\n }\n return ExcelWSheet;\n }", "private static InputStream getStream(String inResName) {\n\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n InputStream is = loader.getResourceAsStream(inResName);\n if (is == null) {\n log.error(\"Resource '\" + inResName + \"' not found in classpath\");\n }\n return is;\n\n }", "@SuppressWarnings(\"resource\")\n\tpublic String init_excel(String excel_name_with_extension, Integer sheet_index_starting_from_0, Integer row_index_starting_from_0, Integer column_index_starting_from_0)\n\t\t\tthrows Exception {\n\n\t\tString folderPath = \"src//test//resources//TestData//\"; // keep excel in this folder path\n\t\tString element_Image = System.getProperty(\"user.dir\") + File.separator + folderPath + excel_name_with_extension;\n\n\t\tFile file = new File(element_Image);\n\t\tFileInputStream fis = new FileInputStream(file); // this contains raw data from the excel\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(fis); // creating workbook\n\t\tXSSFSheet sheet = workbook.getSheetAt(sheet_index_starting_from_0); // getting the sheet from workbook\n\n\t\tString cellValue = sheet.getRow(row_index_starting_from_0).getCell(column_index_starting_from_0).getStringCellValue(); // fetching data from the\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// sheet\n\t\treturn cellValue;\n\t}", "public void getRowCount() {\n\n try {\n\n String FILE = \"src/test/resources/Datasheet.xlsx\";\n String SHEET_NAME = \"Master\";\n XSSFWorkbook workbook = new XSSFWorkbook();\n\n }catch (Exception exp)\n {\n exp.printStackTrace();\n System.out.println(exp.getMessage());\n System.out.println(exp.getCause());\n }\n }", "public InputStream getInputStream()\n/* */ {\n/* 105 */ InputStream in = ResourceUtils.getResourceAsStream(this, this);\n/* */ \n/* 107 */ return in;\n/* */ }", "public void intializeExcel(String path) throws Exception{\n//\t\topen a input stream\n\t\t fis = new FileInputStream(path);\n\n\t\t//create a workbook object\n\t\t wb = new XSSFWorkbook(fis);\n\t\t\n\t}", "@Test\r\n\tpublic void startup(){\r\n\tExcelutil e=new Excelutil(\"E://EmpData.xlsx\", \"Sheet1\");\r\n\t\r\n\tString strdata=e.stringdata(1, 1);\r\n\tSystem.out.println(strdata);\r\n\tdouble numdata1=e.numdata(1, 0);\r\n\tSystem.out.println(numdata1);\r\n\te.rowcount();\r\n\te.colcount();\r\n}", "@Test\r\n public void excel() throws EncryptedDocumentException, InvalidFormatException, FileNotFoundException, IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Selenium\\\\Newfolder\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\t\r\n //get the excel sheet file location \r\n String filepath=\"E:\\\\Selenium\\\\SampleApplications\\\\ClearTripAppln\\\\DataSheet.xlsx\";\r\n\t \t\t\t\tWorkbook wb= WorkbookFactory.create(new FileInputStream(new File(filepath)));\r\n //get the sheet which needs read operation\r\n\t\t Sheet sh = wb.getSheet(\"sheet1\");\r\n\t\t \r\n\t String url =sh.getRow(0).getCell(1).getStringCellValue();\r\n\t System.out.println(url);\r\n\t driver.get(url);\r\n\t \r\n\t \t\t// Maximizing the window\r\n\t \t\tdriver.manage().window().maximize();\r\n\t \t\t\r\n\r\n\r\n\t\t }", "public static void main(String[] args) throws IOException {\n\r\n\t\tFile src = new File(\"C:\\\\Users\\\\new\\\\workspace\\\\FirstTestNGProject\\\\TestData\\\\InputData.xlsx\");\r\n\t\tFileInputStream fis = new FileInputStream(src);\r\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\r\n\t\tXSSFSheet sheet1 = wb.getSheetAt(0);\r\n\t\tint rowcount = sheet1.getLastRowNum();\r\n\t\tfor(int i=0;i<rowcount;i++){\r\n\t\t\tString data0 = sheet1.getRow(i).getCell(0).getStringCellValue();\r\n\t\t\tSystem.out.print(data0+\" \");\r\n\t\twb.close();\r\n\t}\r\n}", "private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}", "public InputStream open() {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }", "@Test\n public void testFileDownload() throws FileNotFoundException {\n ExcelFile testFile = new ExcelFile(\"0\", \"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n Mockito.when(excelService.getExcelFileById(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").get(\"/excel/0/content\").peek().\n then().assertThat()\n .statusCode(200);\n }", "private void init() {\n this.excelSpreadSheetWorkBookDestination = excelSource.copyTo(DirectoryReference.TARGETDIRECTORY\n .getFileFromDirectory(new StringBuilder()\n .append(\"PARSED-\")\n .append(\"java-developer-philly-rubric-template_\")\n .append(System.nanoTime())\n .append(\".xlsx\")\n .toString()));\n }", "public String read_XL_Data(String path,String sheet,int row,int cell) throws EncryptedDocumentException, FileNotFoundException, IOException \r\n{\r\n\tString data=\"\";\r\n\r\n\tWorkbook wb = WorkbookFactory.create(new FileInputStream(path));\r\n\tdata=wb.getSheet(sheet).getRow(row).getCell(cell).toString();\r\n\t\r\n\treturn data;\r\n}", "@DataProvider(name =\"excel-data\")\n \tpublic Object[][] excelDP() throws IOException{\n \tObject[][] arrObj = getExcelData(\"C:\\\\Users\\\\kalpe\\\\eclipse-workspace\\\\DataProvider\\\\DataFiles\\\\loginData.xlsx\",\"Sheet1\");\n \treturn arrObj;\n \t}", "private InputStream getInstream() {\r\n\t\tif (instream == null) try {\r\n\t\t\tinstream = new FileInputStream(file);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't create instream for test\", ioe);\r\n\t\t}\r\n\t\treturn instream;\r\n\t}", "Excel getExcelInst();", "@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }", "@Override\r\n public void execute(Workbook workbook) {\n InputStream fileStream = this.getResourceStream(\"xlsx/Employee absence schedule.xlsx\");\r\n workbook.open(fileStream);\r\n }", "private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}", "public void testExportToStream() throws FileNotFoundException {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n OutputStream out1 = new FileOutputStream(new File(\"t2-out.xls\"));\n excelExportingService.exportToExcel(null, out1, data, ExcelFormatTypeEnum.XLS);\n\n InputStream in2 = getClass().getResourceAsStream(\"/exportData/t2-in.xlsx\");\n OutputStream out2 = new FileOutputStream(new File(\"t2-out.xlsx\"));\n sheet1.setName(\"Append Sheet\");\n sheet1.setSheetIndex(0);\n excelExportingService.exportToExcel(in2, out2, data, ExcelFormatTypeEnum.XLSX);\n }", "@Test\n// @Disabled\n public void testExcelGeneration() throws IOException {\n // Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n ExcelRequest testRequest = new ExcelRequest();\n ExcelData testData = new ExcelData();\n File file = new File(\"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.singleSlicer(testRequest)).thenReturn(testData);\n Mockito.when(excelGenerationService.generateExcelReport(testData)).thenReturn(file);\n given().accept(\"application/json\").contentType(ContentType.JSON).body(\"{\\\"headers\\\":[\\\"Name\\\",\\\"Age\\\"], \\\"data\\\":[[\\\"Teresa\\\",\\\"5\\\"],[\\\"Daniel\\\",\\\"1\\\"]]}\").post(\"/excel\").peek().\n then().assertThat()\n .statusCode(400);\n }", "@Test\n\tpublic void testGetFileAsStream_4()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testGetFileAsStream_1()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testGetFileAsStream_6()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "@Test\n\tpublic void testGetFileAsStream_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "public static InputStream openStream(String fileName) throws IOException {\r\n\t\treturn MarkLogicUtils.class.getClassLoader().getResourceAsStream(fileName);\r\n\t}", "public InputStream getStream(String base, String fileName){\n return getClass().getClassLoader().getResourceAsStream(base + fileName);\n }", "InputStream getInputStream(String path) throws CruiseControlException;", "@Test\n\tpublic void testGetFileAsStream_3()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@SuppressWarnings(\"resource\")\n\tpublic static InputStream getStream(String fileName){\n\t\tInputStream fileInputStream = null;\n\t\ttry{\n\t\t\tfileInputStream = new FileInputStream(new File(fileName));\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.debug(\"Attempting to grab resource as stream.\"+e.getMessage());\n\t\t}\n\n\t\t//Just in case file doesn't exist.\n\t\tif(null == fileInputStream){\t\t\t\n\t\t\tfileInputStream = PropertyUtil.class.getClassLoader().getResourceAsStream(fileName);\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}\t\t\n\t\treturn fileInputStream;\n\t}", "public InputStream getFileFromResourceAsStream(String fileName) {\n var classLoader = getClass().getClassLoader();\n var inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "@Override\n @Test\n public void testXlsx() throws IOException, InvalidFormatException\n {\n super.testXlsx();\n }", "@Override\n @Test\n public void testXlsx() throws IOException, InvalidFormatException\n {\n super.testXlsx();\n }", "public ArrayList<String> getData(String testcaseName) throws IOException\n{\n//fileInputStream argument\nArrayList<String> a=new ArrayList<String>();\n\nFileInputStream fis=new FileInputStream(\"D://TestCases.xlsx\");\nXSSFWorkbook workbook=new XSSFWorkbook(fis);\n\nint sheets=workbook.getNumberOfSheets();\n}", "private static InputStream loadFile(String[] args) throws Exception {\n\t\tString fileName = args[1];\n\t\t\n\t\tInputStream fileStream = KMP.class.getResourceAsStream(fileName);\n\t\tif(fileStream == null) {\n\t\t\tthrow new FileNotAvailableException(\"File could not be found nor open.\");\n\t\t}\n\n\t\treturn fileStream;\n\t}", "@Test\n\tpublic void testGetFileAsStream_5()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "public static FileInputStream getMavenTestRessourcesFileInputStream(\r\n\t Object object, String filename)\r\n {\r\n\treturn FilesURLs.getRessourcesFileInputStream(object,\r\n\t\tMAVEN_TEST_RESSOURCES, filename);\r\n }", "@Override\n @Test\n public void testXls() throws IOException, InvalidFormatException\n {\n super.testXls();\n }", "@Override\n @Test\n public void testXls() throws IOException, InvalidFormatException\n {\n super.testXls();\n }", "public static void main(String[] args) {\n String path = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\FileHandling\\\\Data.xlsx\";\n //Xls_Reader xls = new Xls_Reader(path);\n\n // counting rows\n\n //counting cols\n\n //reading\n\n //writing\n\n }", "InputStream getInputStream() {\r\n\r\n\t\tif (inputStream != null) {\r\n\t\t\treturn inputStream;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\treturn new FileInputStream(path);\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tthrow new RuntimeException(\"Configuration file could not be loaded from \" + getPath());\r\n\t\t\t} // catch\r\n\t\t} // else\r\n\t}", "public static InputStream getInputStream(String fileName) {\n\t\ttry {\n\t\t\tInputStream in = FileUtil.class.getResourceAsStream(fileName);\n\t\t\treturn in;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t}\n\t}", "private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }", "protected static InputStream inputStreamFromClasspath(String path) {\n return Thread.currentThread().getContextClassLoader().getResourceAsStream(path);\n }", "@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }", "public InputStream openStream(String str) {\n return Thread.currentThread().getContextClassLoader().getResourceAsStream(str);\n }", "public static void demo3() throws IOException, Exception {\n\n // HSSFWorkbook, File\n NPOIFSFileSystem fs = new NPOIFSFileSystem(new File(\"file.xls\"));\n HSSFWorkbook wb = new HSSFWorkbook(fs.getRoot(), true);\n fs.close();\n\n // HSSFWorkbook, InputStream, needs more memory\n NPOIFSFileSystem fs2 = new NPOIFSFileSystem(new FileInputStream(\"MyExcel.xlsx\"));\n HSSFWorkbook wb2 = new HSSFWorkbook(fs2.getRoot(), true);\n\n // XSSFWorkbook, File\n OPCPackage pkg = OPCPackage.open(new File(\"file.xlsx\"));\n XSSFWorkbook wb3 = new XSSFWorkbook(pkg);\n pkg.close();\n\n // XSSFWorkbook, InputStream, needs more memory\n OPCPackage pkg2 = OPCPackage.open(new FileInputStream(\"MyExcel.xlsx\"));\n XSSFWorkbook wb4 = new XSSFWorkbook(pkg);\n pkg.close();\n }", "public synchronized InputStream tryToLoadFromEverywhere(String filename) {\n InputStream result = null;\n result = System.class.getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n result = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n result = Thread.currentThread().getClass().getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n result = ClassLoader.getSystemResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n result = ClassLoader.getSystemClassLoader().getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n return result;\n }", "public static void main(String[] args) {\n\t\tExcelDataConfig excel=new ExcelDataConfig(\"D:\\\\Batch -2 Workspace\\\\Selenium_Batch_Two\\\\TestData\\\\readexceldemo1.xlsx\");\n\t\tSystem.out.println(excel.getData(0, 0, 0));\n\t}", "@Override\n\tpublic InputStream getResourceAsStream(String name) {\n\t\tlog.debug(\"getResourceAsStream({})\", name);\n\t\tbyte[] bytes = resources.get(name);\n\t\t\n\t\tif (bytes != null) {\n\t\t\treturn new ByteArrayInputStream(bytes);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void onStart(ITestContext classname) {\n\t\t\r\n\t\tReadExcel.connect_To_Excel();\r\n\t\t\r\n\t}", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "private static <T> InputStream getPropertiesFile(Class<T> clazz, ULocale locale) {\r\n String localeStr = \"\";\r\n if(locale != null) {\r\n localeStr = '_' + locale.getName();\r\n }\r\n String filePath = clazz.getName().replace(DOT, SLASH) + localeStr + PROPERTIES_EXT;\r\n return clazz.getClassLoader().getResourceAsStream(filePath);\r\n }", "static byte[] readResource(String name) throws IOException {\n byte[] buf = new byte[1024];\n\n InputStream in = Main.class.getResourceAsStream(name);\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n int n;\n while ((n = in.read(buf)) > 0) {\n bout.write(buf, 0, n);\n }\n try { in.close(); } catch (Exception ignored) { } \n\n return bout.toByteArray();\n }", "private static InputStream get_resource_as_stream(String path, String res_name)\r\n throws InternalException {\n ClassLoader cl = IdeaHelpers.class.getClassLoader();\r\n InputStream is;\r\n if (path == null || path.trim().length() == 0) {\r\n // to avoid Warning\r\n // Do not request resource from classloader using path with leading slash\r\n is = cl.getResourceAsStream(res_name);\r\n } else {\r\n is = cl.getResourceAsStream(path + \"/\" + res_name);\r\n }\r\n if (is == null) {\r\n is = cl.getResourceAsStream(\"/\" + path + \"/\" + res_name);\r\n }\r\n if (is == null) {\r\n throw new InternalException(\"Resource not found: \" + res_name);\r\n }\r\n return is;\r\n }", "public static InputStream openResourceStream(String resourceName) {\n InputStream stream = null;\n ClassLoader classLoader = Utils.class.getClassLoader();\n if (classLoader != null) {\n stream = classLoader.getResourceAsStream(resourceName);\n }\n\n if (stream == null) {\n stream = ClassLoader.getSystemResourceAsStream(resourceName);\n }\n return stream;\n }", "public static InputStream loadFileAsStream(final String path) {\n InputStream stream = classLoader.getResourceAsStream(path);\n checkIfFound(stream, path);\n return stream;\n }", "@DataProvider(name = \"xls-inputs\")\n\tpublic Object[][] getXLSData() {\n\t\treturn new ReadExcel().getExcelData(\"C:\\\\project-framework\\\\Testing.xlsx\", \"Sheet1\");\n\t}", "public InputStream getResource(String path) {\n return getClass().getResourceAsStream(path);\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public BaseTest() {\n\n String path = System.getProperty(\"user.dir\") + \"/src/test/resources/config.properties\";\n prop = new Properties();\n /** Stream to read the spreadsheet. */\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n prop.load(fis);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "private static InputStream getResourceAsStream(String resource)\r\n {\r\n return KuBatschTheme.class.getResourceAsStream(String.format(\"%s/%s\",\r\n RESOURCES_DIR, resource));\r\n }", "public interface IPathConstants \n{\n\tString PropertyFilePath = \"./src/test/resources/commondata.properties\";\n\tString JsonFilePath\t = \"./commonData.json\";\n\tString ExcelPath = \"./src/test/resources/testdata.xlsx\";\n\t\n }", "public static void main(String[] args) {\n\t\tString projectLocation=System.getProperty(\"user.dir\");\n\t\tExcelDataConfig excelDataConfig=new ExcelDataConfig(projectLocation+\"/Data/Data.xlsx\");\n\t\t\n\t\texcelDataConfig.writeExcelData(projectLocation+\"/Data/Data.xlsx\");\n\t\t\n\t\texcelDataConfig.getFullExcelData(projectLocation+\"/Data/Data.xlsx\", \"raghu\");\n\t\t\n\t\t\n\t}", "@Test\n public void ReadTemplateXLSX() throws Exception {\n int expected = 2;\n int actual = 0;\n Workbook book = readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\");\n Sheet sheet = book.getSheetAt(0);\n Iterator<Row> iterator = sheet.iterator();\n\n while (iterator.hasNext()) {\n Row nextRow = iterator.next();\n Iterator<Cell> cellIterator = nextRow.cellIterator();\n\n while (cellIterator.hasNext()) {\n Cell cell = cellIterator.next();\n switch (cell.getCellTypeEnum()) {\n case STRING:\n if (cell.getRichStringCellValue().getString().trim().equals(\"Students Name:\")) {\n actual = nextRow.getRowNum();\n }\n }\n }\n }\n\n Assert.assertEquals(expected, actual);\n }", "public Properties getObjectRepository() throws IOException{\n\t\t\n\t\tInputStream stream = new FileInputStream(\"../demo/src/main/resources/config.xlsx\");\n\t\t\n\t\t\n\t\tp.load(stream);\n\t\t\n\t\treturn p;\n\t}", "public static List<InputDto> readXLSXFile(File file) throws Exception {\n List<InputDto> inputDtos = new ArrayList<>();\n\n Integer i = 0;\n InputStream ExcelFileToRead = new FileInputStream(file);\n XSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\n\n XSSFWorkbook test = new XSSFWorkbook();\n\n XSSFSheet sheet = wb.getSheetAt(0);\n XSSFRow row;\n XSSFCell cell;\n\n Iterator rows = sheet.rowIterator();\n// ss = new String[sheet.getLastRowNum()];\n sheet.getLastRowNum();\n while (rows.hasNext()) {\n InputDto input = new InputDto();\n row = (XSSFRow) rows.next();\n Iterator cells = row.cellIterator();\n if (row.getRowNum() == 0) {\n continue; //just skip the rows if row number is 0 or 1\n }\n String s = \"\";\n while (cells.hasNext()) {\n cell = (XSSFCell) cells.next();\n\n if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {\n// System.out.print(cell.getStringCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getRawValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n }\n /*else {\n //U Can Handel Boolean, Formula, Errors\n }*/\n }\n if (!s.equals(\"\") && s.split(\"\\\\|\").length == 8) {\n input.setLoadName(s.split(\"\\\\|\")[6]);\n input.setLoadSize(s.split(\"\\\\|\")[1]);\n input.setLoadDate(s.split(\"\\\\|\")[0]);\n input.setLoadPath(s.split(\"\\\\|\")[4]);\n input.setLoadType(s.split(\"\\\\|\")[2]);\n input.setCicsName(s.split(\"\\\\|\")[5]);\n input.setRowId(s.split(\"\\\\|\")[7]);\n System.out.println(input.getRowId());\n inputDtos.add(input);\n// ss[i] = s;\n\n } else {\n throw new Exception(\"EXCEL DATA IS NOT COMPELETED\");\n }\n i++;\n }\n\n return inputDtos;\n }", "@Before\n\tpublic void init() {\n\t\ttry {\n\t\t\tinputStream = new FileInputStream(new File(getPathToXmlResource().concat(\"test.xml\")));\n\t\t\tinputStream2 = new FileInputStream(new File(getPathToXmlResource().concat(\"test.xsl\")));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void getData() throws Exception {\n\t\tString filepath = \"F:\\\\Selenium Practice\\\\Framework\\\\TestData\\\\TestData.xlsx\";\n\t\tFile f = new File(filepath);\n\t\tFileInputStream str = new FileInputStream(f);\n\t\tWorkbook w = new XSSFWorkbook(str);\n\t\tSheet sh = w.getSheet(\"TestData\");\n\t\tfor (int i = 0; i < sh.getPhysicalNumberOfRows(); i++) {\n\t\t\tRow r = sh.getRow(i);\n\t\t\tfor (int j = 0; j < r.getPhysicalNumberOfCells(); j++) {\n\t\t\t\tCell c = r.getCell(j);\n\t\t\t\tint ct = c.getCellType();\n\t\t\t\tString name = \"\";\n\t\t\t\tswitch (ct) {\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tif (ct == 0) {\n\t\t\t\t\t\tif (DateUtil.isCellDateFormatted(c)) {\n\t\t\t\t\t\t\tSimpleDateFormat form = new SimpleDateFormat(\"dd-MMM-yy\");\n\t\t\t\t\t\t\tname = form.format(c.getDateCellValue());\n\t\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble d = c.getNumericCellValue();\n\t\t\t\t\t\t\tlong l = (long) d;\n\t\t\t\t\t\t\tname = String.valueOf(l);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tif (ct == 1) {\n\t\t\t\t\t\tname = c.getStringCellValue();\n\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public static InputStream getResourceStream(String resourceName) {\n return Utils.class.getClassLoader().getResourceAsStream(resourceName);\n }", "public synchronized InputStream getInputStream(String hash) throws IOException {\n\t\tif (null == hash) {\n\t\t\treturn null;\n\t\t}\n\t\t// RkLog.i(\"getInputStream\",\n\t\t// \"target file exist-->\"+getFile(hash).exists());\n\n\t\tInputStream is = new FileInputStream(getFile(hash));\n\n\t\treturn is;\n\t}", "public void setExcelFile(String excelFile) {\r\n this.excelFile = excelFile;\r\n }", "public ExcelResource(ExcelService excelService) {\n this.excelService = excelService;\n }", "public static void main(String[] args) throws IOException {\n\t\tFileInputStream fis=new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\java\\\\resources\\\\Excel.xlsx\");\n\t\tXSSFWorkbook workbook=new XSSFWorkbook(fis);\n\t\t int sheets=workbook.getNumberOfSheets();\n\t\t System.out.println(sheets);\n\t\t for(int i=0;i<sheets;i++)\n\t\t {\n\t\t \t if(workbook.getSheetName(i).equalsIgnoreCase(\"testdata\"))\n\t\t \t {\n\t\t \t\tXSSFSheet sheet=workbook.getSheetAt(i);\n\t\t \t\t//access to all the rows\n\t\t \t\t Iterator<Row> rows= sheet.iterator();\n\t\t \t\t //to print allthe values from the excel sheet\n\t\t \t\t while(rows.hasNext())\n\t\t \t\t {\n\t\t \t\t Row r\t=rows.next();\n\t\t \t\t \n\t\t \t\t Iterator<Cell> ce=r.cellIterator();\n\t\t \t\t while(ce.hasNext())\n\t \t\t {\n\t \t\t \tSystem.out.println(ce.next().getStringCellValue());\n\t \t\t }\n\t\t \t\t \n\t\t \t\t \n\t\t \t\t }\n\t\t \t\t \n\n\t\t \t\t \n\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\t \n\t\t \t }", "File getWorkfile();", "private FileInputStream getStreamFromPath(Context context, String fileName) {\n ParcelFileDescriptor parcelFileDesc = null;\n FileInputStream inputStream = null;\n try {\n inputStream = new FileInputStream(new File(fileName));\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n } catch (FileNotFoundException e2) {\n Log.e(TAG, \"getStreamFromPath FileNotFoundException.\");\n if (0 != 0) {\n parcelFileDesc.close();\n }\n } catch (Throwable th) {\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e3) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n throw th;\n }\n return inputStream;\n }", "@BeforeClass\n\tpublic static void classSetUp() {\n\t\tROWS = FileUtils.readExcelRows(TestConstants.EXCEL_TESTCASES_FILE_PATH, \"Settings\");\n\t}", "public interface IPathConstant {\n\tString PROPERTY_FILEPATH=\"./src/main/resources/CommonData.properties\";\n\tString EXCELPATH=\"./src/test/resources/testdata.xlsx\";\n\tString JSONFILEPATH=\"\";\n\tString htmlPath=\"./extentReport\"+JavaUtility.getCurrentSystemDate()+\".html\";\n}", "public static void main(String[] args) throws EncryptedDocumentException, IOException\r\n\t{\n\t\tFileInputStream fis = new FileInputStream(\"./data/input.xlsx\");\t\r\n\t\t\r\n\t\t//2.Create WorkBook or group of sheet\r\n\t\tWorkbook wb = WorkbookFactory.create(fis);\r\n\t\t\r\n\t\t//3.Read the Sheet\r\n\t\tSheet sh = wb.getSheet(\"TC02\");\r\n\t\t\r\n\t\t//4.To get No of Rows in Sheet\r\n\t\tint rowcount = sh.getLastRowNum();\r\n\t\tSystem.out.println(rowcount);\r\n\t\t\r\n\r\n}", "@BeforeMethod\n public void setUp() throws Exception {\n ClassLoader classLoader = getClass().getClassLoader();\n mAnyZipFile = new ZipFileImpl();\n String resourceName = \"historia_de_la_vida_del_buscOn_llamado_don_pablos.epub\";\n URL resourceUrl = classLoader.getResource(resourceName);\n Path path = PathImpl.Companion.from(resourceUrl.getPath());\n mFile = FileImpl.Companion.from(path);\n }", "@Test\n public void filePathTest() {\n // TODO: test filePath\n }", "public void test47026_1() {\n Workbook source = _testDataProvider.openSampleWorkbook(\"47026.xlsm\");\n Sheet sheet = source.getSheetAt(0);\n Row row = sheet.getRow(0);\n Cell cell = row.getCell(0);\n cell.setCellType(Cell.CELL_TYPE_STRING);\n cell.setCellValue(\"456\");\n }", "protected InputStream loadFile(String zipPath) throws Exception {\n\t\treturn Files.newInputStream(Paths.get(zipPath));\n\t}", "private InputStream getStubFile() throws MojoExecutionException {\n return getClass().getResourceAsStream(\"Messages.java.stub\");\n }", "public List<Element> getElementFromExcel(String inputFilePath);", "public String ReadFile_FromClassPath(String sFileName) {\n String stemp = null;\n\n try {\n InputStream is = getClass().getClassLoader().getResourceAsStream(sFileName);\n stemp = getStringFromInputStream(is);\n\n } catch (Exception e) {\n stemp = null;\n throw new Exception(\"ReadFile_FromClassPath : \" + e.toString());\n } finally {\n return stemp;\n }\n }", "@SuppressWarnings(\"null\")\r\n\tpublic static List<WorkParameter> readXls(String path, int startRow, int readSize) throws IOException {\r\n\t\tSystem.out.println(Common.PROCESSING + path);\r\n\t\tInputStream is = new FileInputStream(path);\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tHSSFWorkbook hssfWorkbook = new HSSFWorkbook(is);\r\n\t\tList<WorkParameter> list = new ArrayList<WorkParameter>();\r\n\t\t// Read the Sheet\r\n\t\tfor (int numSheet = 0; numSheet < hssfWorkbook.getNumberOfSheets(); numSheet++) {\r\n\t\t\tHSSFSheet hssfSheet = hssfWorkbook.getSheetAt(numSheet);\r\n\t\t\tif (hssfSheet == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t// Read the Row\r\n\t\t\tint endRow = Math.min(hssfSheet.getLastRowNum(), startRow + readSize - 1);\r\n\t\t\tfor (int rowNum = startRow; rowNum <= endRow; rowNum++) {\r\n\t\t\t\tSystem.out.println(rowNum);\r\n\t\t\t\tHSSFRow hssfRow = hssfSheet.getRow(rowNum);\r\n\t\t\t\tif (hssfRow != null) {\r\n\t\t\t\t\t// String province =\r\n\t\t\t\t\t// hssfRow.getCell(0).getStringCellValue();\r\n\t\t\t\t\t// String city = hssfRow.getCell(1).getStringCellValue();\r\n\t\t\t\t\t// String region = hssfRow.getCell(2).getStringCellValue();\r\n\t\t\t\t\t// String network = hssfRow.getCell(3).getStringCellValue();\r\n\t\t\t\t\t// double ci = hssfRow.getCell(4).getNumericCellValue();\r\n\t\t\t\t\t// double cid = hssfRow.getCell(5).getNumericCellValue();\r\n\t\t\t\t\t// double lac = hssfRow.getCell(6).getNumericCellValue();\r\n\t\t\t\t\t// double enodeb = hssfRow.getCell(7).getNumericCellValue();\r\n\t\t\t\t\t// if (network != null && network.equals(\"移动4G\"))\r\n\t\t\t\t\t// ci = 256 * enodeb + cid;\r\n\t\t\t\t\t// String freqChannel = null;\r\n\t\t\t\t\t// if (hssfRow.getCell(8).getCellType() ==\r\n\t\t\t\t\t// HSSFCell.CELL_TYPE_NUMERIC)\r\n\t\t\t\t\t// freqChannel = String.valueOf((int)\r\n\t\t\t\t\t// (hssfRow.getCell(8).getNumericCellValue()));\r\n\t\t\t\t\t// else if (hssfRow.getCell(8).getCellType() ==\r\n\t\t\t\t\t// HSSFCell.CELL_TYPE_STRING)\r\n\t\t\t\t\t// freqChannel = hssfRow.getCell(8).getStringCellValue();\r\n\t\t\t\t\t//\r\n\t\t\t\t\t// String cellNameEng =\r\n\t\t\t\t\t// hssfRow.getCell(9).getStringCellValue();\r\n\t\t\t\t\t// String cellNameCh =\r\n\t\t\t\t\t// hssfRow.getCell(10).getStringCellValue();\r\n\t\t\t\t\t// String cellAddress =\r\n\t\t\t\t\t// hssfRow.getCell(11).getStringCellValue();\r\n\t\t\t\t\t// double longitude =\r\n\t\t\t\t\t// hssfRow.getCell(12).getNumericCellValue();\r\n\t\t\t\t\t// double latitude =\r\n\t\t\t\t\t// hssfRow.getCell(13).getNumericCellValue();\r\n\t\t\t\t\t// String belonging =\r\n\t\t\t\t\t// hssfRow.getCell(14).getStringCellValue();\r\n\t\t\t\t\t// String scene = hssfRow.getCell(15).getStringCellValue();\r\n\t\t\t\t\t// String converageType =\r\n\t\t\t\t\t// hssfRow.getCell(16).getStringCellValue();\r\n\t\t\t\t\t//\r\n\t\t\t\t\t// WorkParameter workParameter = new WorkParameter();\r\n\t\t\t\t\t// workParameter.setProvince(province);\r\n\t\t\t\t\t// workParameter.setCity(city);\r\n\t\t\t\t\t// workParameter.setRegion(region);\r\n\t\t\t\t\t// workParameter.setNetwork(network);\r\n\t\t\t\t\t// workParameter.setCi((int) ci);\r\n\t\t\t\t\t// workParameter.setWpcid((int) cid);\r\n\t\t\t\t\t// workParameter.setLac((int) lac);\r\n\t\t\t\t\t// workParameter.setEnodeb((int) enodeb);\r\n\t\t\t\t\t// workParameter.setFreqChannel(freqChannel);\r\n\t\t\t\t\t// workParameter.setCellNameEng(cellNameEng);\r\n\t\t\t\t\t// workParameter.setCellNameCh(cellNameCh);\r\n\t\t\t\t\t// workParameter.setCellAddress(cellAddress);\r\n\t\t\t\t\t// workParameter.setLongitude(longitude);\r\n\t\t\t\t\t// workParameter.setLatitude(latitude);\r\n\t\t\t\t\t// workParameter.setBelonging(belonging);\r\n\t\t\t\t\t// workParameter.setScene(scene);\r\n\t\t\t\t\t// workParameter.setConverageType(converageType);\r\n\t\t\t\t\t// if (converageType != null && converageType.equals(\"室内\"))\r\n\t\t\t\t\t// {\r\n\t\t\t\t\t// workParameter.setIsIndoor(1);\r\n\t\t\t\t\t// } else {\r\n\t\t\t\t\t// workParameter.setIsIndoor(0);\r\n\t\t\t\t\t// }\r\n\t\t\t\t\tWorkParameter wp = parse2WorkParameter(hssfRow);\r\n\t\t\t\t\tlist.add(wp);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public static Iterator<Row> getExcelData(ResourceResolverFactory resolverFactory,\n\t\t\tString excelPath) {\n\t\tIterator<Row> iterator = null;\n\t\ttry {\n\t\t\tMap<String, Object> param = new HashMap<String, Object>();\n\t\t\tparam.put(ResourceResolverFactory.SUBSERVICE, \"getGEUUser\");\n\t\t\tResourceResolver resolver = null;\n\t\t\tresolver = resolverFactory.getServiceResourceResolver(param);\n\t\t\tResource resource=\tresolver.getResource(excelPath+ResourceConstants.RENDITION_ORIGINAL);\n\t\t\tValueMap properties = resource.adaptTo(ValueMap.class);\n\t\t\tInputStream inputStream = properties.get(\"jcr:data\", InputStream.class);\n\t\t\tWorkbook workbook = new XSSFWorkbook(inputStream);\n\t\t\tSheet sheet = workbook.getSheetAt(0);\n\t\t\titerator = sheet.iterator();\n\t\t\tif(iterator.hasNext())iterator.next();\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException in getExcelData method of GEUWebUtils\" + e);\n\t\t} catch (LoginException e) {\n\t\t\tLOGGER.error(\"LoginException in getExcelData method of GEUWebUtils\" + e);\n\t\t} catch (NullPointerException e) {\n\t\t\tLOGGER.error(\"NullPointerException in getExcelData method of GEUWebUtils: \" +excelPath+ \" not found \" + e);\n\t }\n\t\treturn iterator;\n\n\t}" ]
[ "0.66941804", "0.6563357", "0.6285007", "0.6059978", "0.5972175", "0.5946363", "0.5907842", "0.5874916", "0.58655816", "0.5860011", "0.58536446", "0.58469784", "0.58164847", "0.580022", "0.57773626", "0.57206494", "0.57027245", "0.5702688", "0.5687878", "0.568654", "0.56832355", "0.5674547", "0.5654559", "0.56421715", "0.5626567", "0.5596817", "0.5565574", "0.5564413", "0.5532297", "0.55280226", "0.5522125", "0.5519782", "0.55105436", "0.5503383", "0.5502536", "0.55015224", "0.54886013", "0.54793596", "0.54787284", "0.5468136", "0.5466782", "0.5455933", "0.54551893", "0.54502374", "0.54502374", "0.54457074", "0.54392433", "0.54081124", "0.5404091", "0.53462905", "0.53462905", "0.53413063", "0.5339116", "0.5334443", "0.53242844", "0.5320964", "0.53116995", "0.5303632", "0.5298191", "0.5272559", "0.52709043", "0.5267049", "0.52668405", "0.5257286", "0.5249148", "0.52321327", "0.5232108", "0.5221904", "0.52068204", "0.51941454", "0.5193041", "0.5189827", "0.518459", "0.51768863", "0.51768565", "0.5176766", "0.5168707", "0.5163853", "0.51616627", "0.5160819", "0.5160508", "0.5149849", "0.5147063", "0.5144396", "0.51413333", "0.5136659", "0.5111225", "0.511029", "0.5110118", "0.5109067", "0.51074564", "0.5099343", "0.50934947", "0.5088406", "0.5073205", "0.5071291", "0.5068047", "0.5066429", "0.5063214", "0.5063087" ]
0.5337766
53
Sets up the processors for the test using all constructor combinations.
@Before public void setUp() { processor = new ParseBigDecimal(); processor2 = new ParseBigDecimal(ENGLISH_SYMBOLS); processor3 = new ParseBigDecimal(GERMAN_SYMBOLS); processorChain = new ParseBigDecimal(new IdentityTransform()); processorChain2 = new ParseBigDecimal(ENGLISH_SYMBOLS, new IdentityTransform()); processorChain3 = new ParseBigDecimal(GERMAN_SYMBOLS, new IdentityTransform()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "@Before\n\tpublic void setup() {\n\t\tinit(rule.getProcessEngine());\n\t}", "public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }", "private void setupProcessingPipeline() throws Exception {\n // activeProcessingUnits = 1;\n\n nonThreadedProcessingUnit = new NonThreadedProcessingUnit(this);\n // Assign initial status to all Cas Processors in the processing pipeline\n for (int i = 0; i < annotatorList.size(); i++) {\n ((ProcessingContainer) annotatorList.get(i)).setStatus(Constants.CAS_PROCESSOR_RUNNING);\n }\n\n nonThreadedProcessingUnit.setContainers(annotatorList);\n nonThreadedProcessingUnit.setCasPool(casPool);\n for (int j = 0; j < statusCbL.size(); j++) {\n BaseStatusCallbackListener statCL = (BaseStatusCallbackListener) statusCbL.get(j);\n if (statCL != null) {\n nonThreadedProcessingUnit.addStatusCallbackListener(statCL);\n }\n }\n }", "@Before public void setUp() {\n\t\tsetUp(new ParallelLogger());\n\t}", "private void instantiateAux(InstanceSet instanceSet,\r\n\t\t\tPreprocessorParameters parameters)\r\n\tthrows Exception {\r\n\t\tclusterBasedUtils = new ClusterBasedUtils(instanceSet);\r\n\t\tint preprocessorID = parameters.getPreprocessorID();\r\n\t\t\r\n\t\tswitch (preprocessorID) {\r\n\t\t\t/* Original */\r\n\t\t\tcase PreprocessorIDs.ORIGINAL:\r\n\t\t\t\toriginal = new Original(instanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(original.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(original);\r\n\t\t\t\tbreak;\r\n\t\r\n\t\t\t/* Oversampling */\r\n\t\t\tcase PreprocessorIDs.OVERSAMPLING:\r\n\t\t\t\toversampling = new RandomOversampling(instanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(oversampling.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(oversampling);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t/* Simplesampling */\r\n\t\t\tcase PreprocessorIDs.SIMPLESAMPLING:\r\n\t\t\t\tsimplesampling = new Simplesampling(instanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(simplesampling.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(simplesampling);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t/* Smote */\r\n\t\t\tcase PreprocessorIDs.SMOTE:\r\n\t\t\t\tsmote = new Smote(instanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(smote.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(smote);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t/* Cluster Based Oversampling */\r\n\t\t\tcase PreprocessorIDs.CLUSTER_BASED_OVERSAMPLING:\r\n\t\t\t\tcbo = new ClusterBasedOversampling(clusterBasedUtils,\r\n\t\t\t\t\t\tinstanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(cbo.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(cbo);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t/* Cluster Based Smote */\r\n\t\t\tcase PreprocessorIDs.CLUSTER_BASED_SMOTE:\r\n\t\t\t\tcbs = new ClusterBasedSmote(clusterBasedUtils, instanceSet,\r\n\t\t\t\t\t\tparameters);\r\n\t\t\t\tnumBatchIterations.add(cbs.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(cbs);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t/* Cclear */\r\n\t\t\tcase PreprocessorIDs.CCLEAR:\r\n\t\t\t\tcClear = new Cclear(clusterBasedUtils, instanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(cClear.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(cClear);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t/* Baseline */\r\n\t\t\tcase PreprocessorIDs.BASELINE:\r\n\t\t\t\tbaseline = new Baseline(instanceSet, parameters);\r\n\t\t\t\tnumBatchIterations.add(baseline.getNumBatchIterations());\r\n\t\t\t\tpreprocessorList.add(baseline);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "protected void setUp() {\n // set up for test\n instance = new GeneralizationImpl();\n GeneralizableElement mockChild = EasyMock.createMock(GeneralizableElement.class);\n GeneralizableElement mockParent = EasyMock.createMock(GeneralizableElement.class);\n Classifier mockPowertype = EasyMock.createMock(Classifier.class);\n instance.setChild(mockChild);\n instance.setDiscriminator(TEST_DISCRIMINATORS[0]);\n instance.setParent(mockParent);\n instance.setPowertype(mockPowertype);\n\n }", "public TestDriverProgram(){\n iTestList = new SortableArray(iSize); // tests if parameterized constructor works\n iTestFileList = new SortableArray(); // tests if default constructor works\n runAllTests(); // run all of the tests\n }", "public static void start() {\n\t\t\n\t\ttestEmptyConstructors();\n\t\ttestConstructors();\n\n\t}", "@Setup\n public void setup() {\n\n f = x -> {\n Blackhole.consumeCPU(1000 * busyFactor);\n return x * x;\n };\n set = new HashSet<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n set.add(random.nextInt(dataSize));\n }\n }\n list = new ArrayList<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n list.add(random.nextInt(dataSize));\n }\n }\n executor1 = Executors.newFixedThreadPool(4);\n executor2 = Executors.newFixedThreadPool(8);\n executor3 = Executors.newFixedThreadPool(16);\n forkJoinPool = new ForkJoinPool();\n\n }", "@Before\n public void setUp()\n {\n x = new Symbol(\"x\");\n y = new Symbol(\"y\");\n z = new Symbol(\"z\");\n i = new Lambda(\"x\", x);\n k1 = new Lambda(\"y\", x);\n k = new Lambda(\"x\", k1);\n xz = new Application(x, z);\n yz = new Application(y, z);\n xz_yz = new Application(xz, yz);\n s1 = new Lambda(\"z\", xz_yz);\n s2 = new Lambda(\"y\", s1);\n s = new Lambda(\"x\", s2);\n sk = new Application(s, k);\n skk = new Application(sk, k);\n foo = new Quote(\"foo\");\n bar = new Quote(\"bar\");\n }", "public ProcessorTest(String name) {\n\t\tsuper(name);\n\t}", "@Before\r\n\tpublic void initializeDefaultMockObjects()\r\n\t{\r\n\t\tconfigs = new ArrayList<Config>();\r\n\t\tscreenshots = new ArrayList<Screenshot>();\r\n\t\tprocessedImages = new ArrayList<ProcessedImage>();\r\n\t\ttestExecutions = new ArrayList<TestExecution>();\r\n\t\ttestEnvironments = new ArrayList<TestEnvironment>();\r\n\r\n\t\tinitializeDefaultTestExecution();\r\n\t\tinitializeDefaultTestEnvironment();\r\n\t\tinitializeDefaultScreenshot();\r\n\t}", "private void startup() {\n LOGGER.info(\"Warming up extraction pipeline....\");\n\n for (Extractor extractor : this.context.extractors()) {\n try {\n extractor.init(this.context.persistencyWriter(), this.context.batchSize());\n this.extractors.add(extractor);\n } catch (Throwable t) {\n LOGGER.warn(\"Failed to initialize extractor {} due to an exception: {}\", extractor.getClass().getSimpleName(), t.getMessage());\n }\n }\n\n for (Extractor exporter : this.context.exporters()) {\n try {\n exporter.init(this.context.persistencyWriter(), this.context.batchSize());\n this.extractors.add(exporter);\n } catch (Throwable t) {\n LOGGER.warn(\"Failed to exporter extractor {} due to an exception: {}\", exporter.getClass().getSimpleName(), t.getMessage());\n }\n }\n \n LOGGER.info(\"Extraction pipeline is ready with {} extractors.\", this.extractors.size());\n }", "public void setup(){\r\n\r\n\t\t\tlogger.info(\"begin setting up the patches\");\r\n\r\n\t\t\t//Initialize the patches in the world.\r\n\t\t\tpatches = new Patch[numOfPathes][numOfPathes];\r\n\t\t\tfor(int i = 0; i < patches.length; i ++){\r\n\t\t\t\tfor(int j = 0; j < patches[i].length; j ++){\r\n\t\t\t\t\tpatches[i][j] = new Patch(i,j);\r\n\t\t\t\t\t//logger.info(\"generated x = \" + i + \"y = \" + j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"begin setting up the agents\");\r\n\r\n\t\t\t//Generate agents and cops.\r\n\t\t\tagents = new Agent[numOfAgents];\r\n\t\t\tfor(int k = 0; k < numOfAgents; k ++){\r\n\t\t\t\tagents[k] = generateAgent();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the agents\");\r\n\r\n\t\t\tlogger.info(\"begin setting up the cops\");\r\n\t\t\tcops = new Cop[numOfCops];\r\n\t\t\tfor(int k = 0; k < numOfCops; k ++){\r\n\t\t\t\tcops[k] = generateCop();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the cops\");\r\n\r\n\t\t}", "public void setUpEcosystem() {\n Pool skookumchuk = setUpSkookumchuk();\n Pool rutherford = setUpRutherford();\n Pool gamelin = setUpGamelin();\n\n ecosystem.addPool(skookumchuk);\n ecosystem.addPool(rutherford);\n ecosystem.addPool(gamelin);\n\n ecosystem.addStream(new Stream(skookumchuk, rutherford));\n ecosystem.addStream(new Stream(rutherford, gamelin));\n }", "@BeforeClass\n public void setup()\n throws Exception {\n startZk();\n startController();\n startBroker();\n startKafka();\n }", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}", "private void SetUp() {\n numbers.add(0);\n numbers.add(1);\n numbers.add(2);\n numbers.add(3);\n numbers.add(4);\n numbers.add(5);\n numbers.add(6);\n numbers.add(7);\n numbers.add(8);\n numbers.add(9);\n\n PuzzleSolve(10, empty, numbers);\n }", "@Before\n\tpublic void initialize() {\n\t\tnullParserSQLGenerator = new SQLStringGenerator(null);\n\t\toneArgParserSQLGenerator = new SQLStringGenerator(new OneArgParser());\n\t}", "@Override\n public synchronized void init(ProcessingEnvironment processingEnvironment) {\n super.init(processingEnvironment);\n\n logger = new Logger(processingEnv.getMessager()); // Package the log utils.\n logger.info(\">>>>parse options<<<< :\"+processingEnvironment.getOptions().size());\n parseOptionParams(processingEnvironment.getOptions());\n\n mFiler = processingEnv.getFiler(); // Generate class.\n types = processingEnv.getTypeUtils(); // Get type utils.\n elements = processingEnv.getElementUtils(); // Get class meta.\n\n typeUtils = new TypeUtils(types, elements);\n\n\n logger.info(\">>> AutowiredProcessor init. <<<\");\n }", "@Before\n public void init() {\n this.queue.push(\"work1\");\n this.queue.push(\"work2\");\n this.queue.push(\"work3\");\n this.queue.push(\"work4\");\n this.it = queue.iterator();\n }", "@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}", "protected void setUp() throws Exception {\r\n comparator = new ComponentCompetitionFulfillmentPredictionPrizeComparator(0.8, 1.2, 10000);\r\n super.setUp();\r\n }", "protected AsymmetricProcessor() {\n\t}", "@BeforeAll\n\tstatic void initOperate()\n\t{\t\n\t\tSystem.out.println(\"only Before All the tests....\");\n\t\toperate = new Operations();\n\t}", "private void setupConsumerPipeline() throws Exception {\n if (consumerList != null && consumerList.size() > 0) {\n nonThreadedCasConsumerProcessingUnit = new NonThreadedProcessingUnit(this);\n // Assign initial status to all Cas Processors in the processing pipeline\n for (int i = 0; i < consumerList.size(); i++) {\n ((ProcessingContainer) consumerList.get(i)).setStatus(Constants.CAS_PROCESSOR_RUNNING);\n }\n nonThreadedCasConsumerProcessingUnit.setContainers(consumerList);\n nonThreadedCasConsumerProcessingUnit.setCasPool(casPool);\n nonThreadedCasConsumerProcessingUnit.setReleaseCASFlag(false);\n\n // Add Callback Listeners\n for (int j = 0; j < statusCbL.size(); j++) {\n BaseStatusCallbackListener statCL = (BaseStatusCallbackListener) statusCbL.get(j);\n if (statCL != null) {\n nonThreadedCasConsumerProcessingUnit.addStatusCallbackListener(statCL);\n }\n }\n // Notify Callback Listeners when done processing entity\n nonThreadedCasConsumerProcessingUnit.setNotifyListeners(false);\n // Add custom timer\n try {\n nonThreadedCasConsumerProcessingUnit.setUimaTimer(getTimer());\n } catch (Exception e) {\n // Use default Timer\n nonThreadedCasConsumerProcessingUnit.setUimaTimer(new JavaTimer());\n }\n }\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tmatrixAdditionCalculator = new MatrixAdditionCalculator();\n\n\t}", "public void setupComputerPlayers() {\r\n\t\tif(models == null) models = new ModelFactory(this, options);\r\n\t\tCPUFactory factory = new CPUFactory(this);\r\n\t\tint cpuIndex = 0;\r\n\t\tfor(int i = 0; i < getNumPlayers(); i++) {\r\n\t\t\tboolean isCPU = i >= getNumPlayers() - getNumNPC();\r\n\t\t\tif(isCPU) {\r\n\t\t\t\tPlayer current = players.get(i);\r\n\t\t\t\tcurrent.setComputerPlayer(factory.getComputerPlayer(current, cpuTypes.get(cpuIndex++)));\r\n\t\t\t}\r\n\t\t} \r\n\t}", "@BeforeEach\n void setup()\n {\n createGraph( \"A1 NEXT A2\", \"A2 NEXT A3\",\n \"A1 FIRST_COMMENT C1\", \"C1 COMMENT C2\", \"C2 COMMENT C3\",\n \"A2 FIRST_COMMENT C4\", \"C4 COMMENT C5\", \"C5 COMMENT C6\",\n \"A3 FIRST_COMMENT C7\", \"C7 COMMENT C8\", \"C8 COMMENT C9\" );\n }", "@Before\n public void prepare() throws Exception{\n systemController = new SystemControllerImpl();\n //List<Node> inputNodes = NodeDataGenerator.generate(3, 5);\n List<Node> inputNodes = NodeDataGenerator.generateFixedReal();\n inputNodes.forEach(node -> systemController.addNode(node));\n }", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "private void initialiseAll() {\n // now that all the BeanDescriptors are in their map\n // we can initialise them which sorts out circular\n // dependencies for OneToMany and ManyToOne etc\n BeanDescriptorInitContext initContext = new BeanDescriptorInitContext(asOfTableMap, draftTableMap, asOfViewSuffix);\n\n // PASS 1:\n // initialise the ID properties of all the beans\n // first (as they are needed to initialise the\n // associated properties in the second pass).\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseId(initContext);\n }\n\n // PASS 2:\n // now initialise all the inherit info\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initInheritInfo();\n }\n\n // PASS 3:\n // now initialise all the associated properties\n for (BeanDescriptor<?> d : descMap.values()) {\n // also look for intersection tables with\n // associated history support and register them\n // into the asOfTableMap\n d.initialiseOther(initContext);\n }\n\n // PASS 4:\n // now initialise document mapping which needs target descriptors\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseDocMapping();\n }\n\n // create BeanManager for each non-embedded entity bean\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initLast();\n if (!d.isEmbedded()) {\n beanManagerMap.put(d.fullName(), beanManagerFactory.create(d));\n checkForValidEmbeddedId(d);\n }\n }\n }", "protected void setUp() {\n multiplicity = new MultiplicityImpl();\n owner = new StereotypeImpl();\n typedValue = new TaggedValueImpl();\n instance = new TagDefinitionImpl();\n }", "protected void setup() {\r\n }", "@Before\n\tpublic void setUp() {\n\n\t\t/*\n\t\t * Set up the mapper test harness.\n\t\t */\n\t\tHealthExpendituresMapper mapper = new HealthExpendituresMapper();\n\t\tmapDriver = new MapDriver<LongWritable, Text, Text, Text>();\n\t\tmapDriver.setMapper(mapper);\n\n\t\t/*\n\t\t * Set up the reducer test harness.\n\t\t */\n\t\tHealthStatsReducer reducer = new HealthStatsReducer();\n\t\treduceDriver = new ReduceDriver<Text, Text, Text, Text>();\n\t\treduceDriver.setReducer(reducer);\n\n\t\t/*\n\t\t * Set up the mapper/reducer test harness.\n\t\t */\n\t\tmapReduceDriver = new MapReduceDriver<LongWritable, Text, Text, Text, Text, Text>();\n\t\tmapReduceDriver.setMapper(mapper);\n\t\tmapReduceDriver.setReducer(reducer);\n\t}", "@BeforeClass\n public static void _startup()\n {\n // this test requires local storage to be enabled\n System.setProperty(\"coherence.distributed.localstorage\", \"true\");\n System.setProperty(\"coherence.distributed.threads.min\", \"4\");\n\n AbstractFunctionalTest._startup();\n }", "@Test\n public void testMultiJCPCalls() throws Exception {\n \n Topology topology = newTopology(\"testMultiJCPCalls\");\n \n for (int i = 0 ; i < 10; i++)\n topology.addJobControlPlane();\n \n submitAndCheckJCPIsThere(topology); \n }", "@Before\n public void init() {\n entityKVStateStoreMock = Mockito.mock(KeyValueStore.class);\n processorContextMock = Mockito.mock(ProcessorContext.class);\n when(processorContextMock.getStateStore(\"dummy\")).thenReturn(entityKVStateStoreMock);\n\n // Let's create tested object.\n commandProcessor = new CommandProcessor(\"dummy\");\n commandProcessor.init(processorContextMock);\n }", "@Before\r\n public void setupTestCases() {\r\n instance = new ShoppingListArray();\r\n }", "public void setup() {\n doors = new ArrayList<>();\n doors.add(new Door(Contains.GOAT));\n doors.add(new Door(Contains.GOAT));\n doors.add(new Door(Contains.CAR));\n Collections.shuffle(doors);\n stage = Stage.BEGINNING;\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tc1 = new ComDevice(\"123ABC\", \"Kate\", 3);\n\t\tc2 = new ComDevice(\"456DEF\", \"Bender\", 0);\n\t}", "public static void main(String[] args) {\r\n\t\tnew Test0().tc1() ;\r\n\t\tnew Test0().tc2() ;\r\n\t\tnew Test0().tc3() ;\r\n\t\tnew Test0().tc4() ;\r\n\t\tnew Test0().tc5() ;\r\n\t\tnew Test0().tc6() ;\r\n\t}", "@Before\n public void init() {\n final Map<String, DataType> defaultTypes = new HashMap<>();\n defaultTypes.put(\"frieda\", StringCell.TYPE);\n defaultTypes.put(\"berta\", StringCell.TYPE);\n ReadAdapterFactory<String, String> readAdapterFactory = new ReadAdapterFactory<String, String>() {\n\n @Override\n public ReadAdapter<String, String> createReadAdapter() {\n return new TestReadAdapter();\n }\n\n @Override\n public ProducerRegistry<String, ? extends ReadAdapter<String, String>> getProducerRegistry() {\n return m_producerRegistry;\n }\n\n @Override\n public Map<String, DataType> getDefaultTypeMap() {\n return defaultTypes;\n }\n\n };\n m_testInstance = new DefaultTypeMappingFactory<>(readAdapterFactory);\n }", "@Override\r\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(codec);\r\n\t\tgetContentManager().registerOntology(ontology);\r\n\t\t\r\n\t\t// Register in the DF\r\n\t\tDFRegistry.register(this, BROKER_AGENT);\r\n\t\t\r\n\t\t// Find retailers\r\n\t\tsubscribeToRetailers();\r\n\t\t\r\n\t\t// Run agent\r\n\t\tquery();\r\n\t\tpurchase();\r\n\t}", "protected void setUp() throws Exception {\r\n super.setUp();\r\n this.testedInstances = new AbstractPhaseHandlerSubclass[1];\r\n this.testedInstances[0] = new AbstractPhaseHandlerSubclass(TestDataFactory.NAMESPACE);\r\n }", "@Override\n\tpublic void setUp() {\n\t\tsuper.setUp();\n\t\taddOperator(\n\t\t\t\tOPERATOR_NAME,\n\t\t\t\tOPERATOR_PREFIX,\n\t\t\t\tSMS_COST,\n\t\t\t\tVOICE_COST,\n\t\t\t\tVIDEO_COST,\n\t\t\t\tTAX,\n\t\t\t\tBONUS);\n\t\taddPhone3G(EXISTING_NUMBER);\n\t\taddPhone3G(EXISTING_NUMBER2);\n\t\tincreasePhoneBalance(EXISTING_NUMBER, CASH);\n\t\tchangePhoneState(EXISTING_NUMBER, stateRepresention.getOnState());\n\t\tchangePhoneState(EXISTING_NUMBER2, stateRepresention.getOnState());\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t\t\r\n\t\tcustFact = new CustomerFactory();\t\t\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t}", "@Before\n public void setup() {\n Bootstraps.inject(this);\n\n A.reset();\n BImpl.reset();\n C.reset();\n\n analysisContext = analysisContextFactory.buildContext();\n\n analysisContext.getInjectionNodeBuilders().putType(B.class,\n variableInjectionBuilderFactory.buildVariableInjectionNodeBuilder(astClassFactory.getType(BImpl.class)));\n\n analysisContext.getInjectionNodeBuilders().putType(F.class,\n variableInjectionBuilderFactory.buildProviderInjectionNodeBuilder(astClassFactory.getType(FProvider.class)));\n\n analysisContext.getInjectionNodeBuilders().putType(E.class,\n variableInjectionBuilderFactory.buildVariableInjectionNodeBuilder(astClassFactory.getType(EImpl.class)));\n }", "@Override\r\n\tprotected final void setup() {\r\n \tsuper.setup();\r\n\r\n \tdoSetup();\r\n }", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Override\n\tpublic void setup() {\n\t\tfor (Communication communication: listCommunication) {\n\t\t\tcommunication.setup();\n\t\t}\n\t}", "public void setup() {\n }", "@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }", "public void prepare() {\n for (IMixinPlatformAgent agent : this.agents) {\n MixinContainer.logger.debug(\"Processing prepare() for {}\", agent);\n agent.prepare();\n }\n }", "@BeforeAll\n public static void oneTimeSetUp() {\n numberOfTrees = 100;\n sampleSize = 256;\n dimensions = 3;\n randomSeed = 123;\n\n parallelExecutionForest = RandomCutForest.builder()\n .numberOfTrees(numberOfTrees)\n .sampleSize(sampleSize)\n .dimensions(dimensions)\n .randomSeed(randomSeed)\n .centerOfMassEnabled(true)\n .storeSequenceIndexesEnabled(true)\n .build();\n\n singleThreadedForest = RandomCutForest.builder()\n .numberOfTrees(numberOfTrees)\n .sampleSize(sampleSize)\n .dimensions(dimensions)\n .randomSeed(randomSeed)\n .centerOfMassEnabled(true)\n .storeSequenceIndexesEnabled(true)\n .parallelExecutionEnabled(false)\n .build();\n\n dataSize = 10_000;\n\n baseMu = 0.0;\n baseSigma = 1.0;\n anomalyMu = 5.0;\n anomalySigma = 1.5;\n transitionToAnomalyProbability = 0.01;\n transitionToBaseProbability = 0.4;\n\n NormalMixtureTestData generator = new NormalMixtureTestData(baseMu, baseSigma, anomalyMu, anomalySigma,\n transitionToAnomalyProbability, transitionToBaseProbability);\n double[][] data = generator.generateTestData(dataSize, dimensions);\n\n for (int i = 0; i < dataSize; i++) {\n parallelExecutionForest.update(data[i]);\n singleThreadedForest.update(data[i]);\n }\n }", "public void initialize() {\n\t\t//start the processor thread\n\t\t//logger.debug(processorName+\" starting processor thread\");\n\t\tprocessorThread.start();\n\t\t\n\t\t//logger.debug(processorName+\" initialized\");\n\t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\n\t\t// set the file names to use my config files\n\t\tboard.setConfigFiles(\"CTest_ClueLayout.csv\", \"CTest_ClueLegend.txt\");\n\t\t// Initialize will load BOTH config files\n\t\tboard.initialize();\n\t\t\n\t\tplayerHuman.setConfigFile(\"CTest_PlayerHuman.txt\");\n\t\tplayerComputer.setConfigFile(\"CTest_PlayerComputer.txt\");\n\n\t}", "@Before\n public void setUp()\n {\n\n // Create countries\n country1 = new Country(\"Country 1\", null);\n country2 = new Country(\"Country 2\", null);\n country1.setGame(game);\n country2.setGame(game);\n\n // Create Cities\n cityA = new City(\"City A\", 80, country1);\n cityB = new City(\"City B\", 60, country1);\n cityC = new City(\"City C\", 40, country1);\n\n }", "@BeforeClass\n public static void setUpClass() throws Exception {\n cpuWorkLoad = new RtdBaseContinuous<Float>(maxAgeCpuWorkLoad);\n cpuWorkLoad.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdFloat());\n \n memWorkLoad = new RtdBaseContinuous<Float>(maxAgeMemWorkLoad);\n memWorkLoad.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdFloat());\n\n loadTrend = new RtdBaseDiscrete<Float>();\n loadTrend.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdFloat());\n \n measureVal = new RtdDerived<Float>((AbstractCalcRtdDerivation) new MeasureValCalc(Long.valueOf(5)));\n measureVal.addRtdReadSet(\"cpuWorkLoad\",cpuWorkLoad);\n measureVal.addRtdReadSet(\"memWorkLoad\",memWorkLoad);\n measureVal.addRtdReadSet(\"loadTrend\",loadTrend);\n \n testByteDiscrete = new RtdBaseDiscrete<Byte>();\n testByteDiscrete.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdByte());\n }", "@Before\n public void setUp()\n {\n hikerClub= new ClimbingClub();\n \n hikerClub.addClimb(\"Monadnock\", 274);\n hikerClub.addClimb(\"Whiteface\", 301);\n hikerClub.addClimb(\"Algonquin\", 225);\n hikerClub.addClimb(\"Monadnock\", 344);\n \n hikerClub2= new ClimbingClub();\n hikerClub2.addClimbSorted(\"Monadnock\", 274);\n hikerClub2.addClimbSorted(\"Whiteface\", 301);\n hikerClub2.addClimbSorted(\"Algonquin\", 225);\n hikerClub2.addClimbSorted(\"Monadnock\", 344);\n }", "private void setup(){\n buildTree(2);\n }", "@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 }", "public void testConstructor() {\r\n assertNotNull(\"DefaultReviewApplicationProcessor instance should be created successfully.\", processor);\r\n }", "private void delegateConstructors(ClassWriterTracker ct, Class type, String superClassFileNname) {\n Constructor[] constructors = type.getConstructors();\n\n for (Constructor constructor : constructors) {\n Class[] params = constructor.getParameterTypes();\n String[] exceptionTypes = AsmHelper.getInternalNames(constructor.getExceptionTypes());\n String descriptor = Type.getConstructorDescriptor(constructor);\n MethodVisitor mv = ct.visitMethod(Opcodes.ACC_PUBLIC, \"<init>\", descriptor, null, exceptionTypes);\n mv.visitCode();\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n int stackPos = 1;\n for (Class param : params) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(param), stackPos);\n stackPos += Type.getType(param).getSize();\n }\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, superClassFileNname, \"<init>\", descriptor, false);\n\n mv.visitInsn(Opcodes.RETURN);\n mv.visitMaxs(-1, -1);\n mv.visitEnd();\n }\n }", "private void setupAllMafiosis()\n {\n }", "@BeforeClass\n public static void setup() {\n // initialize the singleton of parking state\n ParkingState.getInstance();\n }", "static void initRuntimeConstructors(ITermFactory tf) {\n CFGNode.initializeConstructor(tf);\n ICFGNode.Kind.initializeConstructor(tf);\n Set.initializeConstructor(tf);\n Map.initializeConstructor(tf);\n EmptyMapOrSet.initializeConstructor(tf);\n Name.initializeConstructor(tf);\n FullSetLattice.ISetImplementation.initializeConstructor(tf);\n TermIndex.initializeConstructor(tf);\n }", "@Setup\n public void setup() {\n randomInput = new RandomComplexGenerator(inputLength).randomInputs();\n }", "@BeforeClass\n public static void setUpAll() throws SQLException, IOException {\n new P6TestFramework(\"blank\") {\n };\n }", "private void constructorPostProcessing()\n {\n prepareNextRequest();\n fetchNextBatch();\n advanceObjectSummary();\n }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Before\n\tpublic void setUp() {\n\t\tSimpleCalc sc = new SimpleCalc();\n\t}", "@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", "protected void setUp() throws Exception {\r\n super.setUp();\r\n processor = new DefaultReviewApplicationProcessor();\r\n // load config\r\n ConfigManager.getInstance().add(\"accuracy/processor_config.xml\");\r\n ConfigurationFileManager manager = new ConfigurationFileManager(ACCURACY_DIR + \"conf.properties\");\r\n config = manager.getConfiguration(\"processor_config\").getChild(\"valid_config1\");\r\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "@SuppressWarnings(\"serial\")\n @Before\n public void setUp() throws Exception {\n testInstance = new ClientsPrepopulatingBaseAction() {\n };\n }", "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }", "private static void init(String[] subjectsSupported) {\r\n\t\tgenerateUnis();\r\n\t\tgenerateCourses();\r\n\t\trankCourses();\r\n\t}", "@BeforeClass\r\n public static void setUpClass() throws Exception {\r\n P1 = new Partido(\"Camp Nou\",\"2010-04-28\");\r\n P2 = new Partido(\"Camp Nou\",\"2010-04-28\");\r\n P3 = new Partido(\"Camp Nou\",\"2010-04-28\"); \r\n PE = new Partido(\"Camp Nou\",\"2010-04-28\"); \r\n }", "@BeforeClass\n\tpublic static void setup() {\n\n\t}", "@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}", "private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}", "private ProcessorUtils() { }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tsubGen = new SubsetGenerator();\n\t}", "private void classifyCasProcessors() throws Exception {\n boolean allowReorder = true;\n // Walk the list of Cas Processor backwards. The list of Cas Processors is actually a list of\n // lists.\n // Each sub-list contains instances of the same type of Cas Processor.\n for (int i = initial_cp_list.size(); i > 0; i--) {\n // Get the sub-list containing instances of Cas Processor\n ArrayList cp_instance_list = (ArrayList) initial_cp_list.get(i - 1);\n\n String previous = \"\"; // hold the previous name of the Cas Processor\n\n // Check the list of CP instances to check if its parallelizable\n for (int j = 0; j < cp_instance_list.size(); j++) {\n CasProcessor cp = (CasProcessor) cp_instance_list.get(j);\n String name = cp.getProcessingResourceMetaData().getName();\n // Check if the CP is parallelizable\n boolean parallizable = isParallizable(cp, name);\n\n // If Cas Processor is not parallizable and we have not yet hit a parallizable component\n // place the Cas Processor in a pipeline that supports single instance components\n if (!parallizable && allowReorder) {\n // There should only be one instance. The current implementation supports placing\n // non-parallizable Analysis Engines in the Cas Consumer Pipeline.\n if (!previous.equals(name)) {\n addCasConsumer(cp, name);\n }\n } else {\n // Hit the parallizable Cas Processor. From this point of all Cas Processors will be added\n // to the main processing pipeline ( as opposed to Cas Consumer Pipeline)\n allowReorder = false;\n // If the Cas Processor is non-parallizable ad just one instance of it to the Pipeline.\n if (parallizable || !previous.equals(name)) {\n addParallizableCasProcessor(cp, name);\n }\n }\n if (!parallizable) {\n cp_instance_list.remove(0);\n }\n previous = name;\n }\n }\n }", "@BeforeClass\n\tpublic static void init() {\n\t\ttestProduct = new Product();\n\t\ttestProduct.setPrice(1000);\n\t\ttestProduct.setName(\"Moto 360\");\n\t\ttestProduct.setDescrip(\"Moto 360 smart watch for smart generation.\");\n\n\t\ttestReview = new Review();\n\t\ttestReview.setHeadline(\"Excellent battery life\");\n\t\ttestReview.setContent(\"Moto 360 has an excellent battery life of 10 days per full charge.\");\n\t}", "@Before\n public void setUpMovieTest() {\n movie1 = new Movie(karateMovie);\n movie2 = new Movie(gloryMovie);\n movie3 = new Movie(sevenMovie);\n movie4 = new Movie(theShawshankRedemtionMovie);\n }", "@Before\n\tpublic void StringProcessorTestInit() {\n\t\ttry {\n\t\t\tstopWordTree.importFile(\"stopWords.txt\");\n\t\t} catch (IOException e1) {\n\t\t\tfail(\"IOException: Check for stopword filename.\");\n\t\t}\n\t\ttry {\n\t\t\tScanner in = new Scanner(new File(\"stopWords.txt\"));\n\t\t\tstopWords = in.useDelimiter(\"\\\\A\").next();\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(\"FileNoteFoundException: Check filename.\");\n\t\t}\n\t\ttry {\n\t\t\tScanner in = new Scanner(new File(\"testTextFiles/unitTest.txt\"));\n\t\t\ttestString = in.useDelimiter(\"\\\\A\").next();\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(\"FileNoteFoundException: Check filename.\");\n\t\t}\n\t\ttry {\n\t\t\tScanner in = new Scanner(new File(\n\t\t\t\t\t\"testTextFiles/removeAlphaNum.txt\"));\n\t\t\tremoveAlphaNumTest = in.useDelimiter(\"\\\\A\").next();\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(\"FileNoteFoundException: Check filename.\");\n\t\t}\n\t\ttry {\n\t\t\tScanner in = new Scanner(\n\t\t\t\t\tnew File(\"testTextFiles/negationParse.txt\"));\n\t\t\tnegationParseTest = in.useDelimiter(\"\\\\A\").next();\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(\"FileNoteFoundException: Check filename.\");\n\t\t}\n\t\tbiGrams = testBiGram.split(\", \");\n\t}", "@Before\r\n\tpublic void setUp() {\r\n\t\tprocessFile = new ProcessFile();\r\n\t}", "@Override\r\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(codec);\r\n\t\tgetContentManager().registerOntology(ontology);\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\t\tif(args != null && args.length > 0) {\r\n\t\t\tbroker = (Broker)args[0];\r\n\t\t} else {\r\n\t\t\tbroker = new Broker(\"Broker\");\r\n\t\t}\r\n\t\t\r\n\t\tProgramGUI.getInstance().printToLog(broker.hashCode(), getLocalName(), \"created\", Color.GREEN.darker());\r\n\t\t\r\n\t\t// Register in the DF\r\n\t\tDFRegistry.register(this, BROKER_AGENT);\r\n\t\t\r\n\t\tsubscribeToRetailers();\r\n\t\tquery();\r\n\t\tpurchase();\r\n\t}", "public static void main(String[] args) {\n Part2_2 part2_2 = new Part2_2();\n part2_2.testHowMany();\n Part2_3 part_23 = new Part2_3();\n part_23.testHowManyGenes();\n Part3_1 part3_1 = new Part3_1();\n part3_1.testCgRatio();\n }", "@BeforeAll\n static void init() {\n }", "public static void initClasses() {\n\t // base class must be initialized first\n\t \t SoAction.initClass();\n\t \t \n\t \t SoCallbackAction.initClass();\n\t \t SoGLRenderAction.initClass();\n\t \t SoGetBoundingBoxAction.initClass();\n\t \t SoGetMatrixAction.initClass();\n\t \t SoGetPrimitiveCountAction.initClass();\n\t \t SoHandleEventAction.initClass();\n\t \t SoPickAction.initClass();\n\t \t SoRayPickAction.initClass();\n\t \t SoSearchAction.initClass();\n\t \t SoWriteAction.initClass();\n\t \t \t \t\n\t }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@BeforeEach\n\tpublic void setup() {\n\t\t\n\t\trisorsa= new Film(1,1);\n\t\tuser=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user\",\"psw\");\n\t\tfruitore = new Fruitore(user);\n\t\t\n\t\trisorsa_diversa= new Film(2,1);\n\t\tuser_diverso=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user_diverso\",\"psw\");\n\t\tfruitore_diverso = new Fruitore(user_diverso);\n\t\t\n\t\tprestito= new Prestito(risorsa, fruitore);\n\t\tprestito_diverso= new Prestito(risorsa_diversa, fruitore_diverso);\n\t}", "protected void init()\r\n\t{\n\t\tif (ConfigManager.getInstance().getIsCrossClassify() && WekaTool.dataStageOn)\r\n\t\t{\r\n\t\t\t//System.out.println(\"in init for data stage\");\r\n\t\t\tsrcDirUrl = ConfigManager.getInstance().getTrainPath();\r\n\t\t\tdestDirUrl = ConfigManager.getInstance().getTrainPath() +\r\n\t\t\t File.separator + \"output\";\r\n\t\t\t//System.out.println(\"srcDirUrl = \" + srcDirUrl);\r\n\t\t\t//System.out.println(\"destDirUrl = \" + destDirUrl);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//System.out.println(\"here, good\");\r\n\t\t\tsrcDirUrl = getSrcDirUrl();\r\n\t\t\tdestDirUrl = getDestDirUrl();\r\n\t\t}\r\n\t\tdatalibSVMUrl = getLibSVMDirUrl();\r\n\t\ttry {\r\n\t\t\tsrcDir = Utils.getDir(srcDirUrl);\r\n\t\t\tdestDir = Utils.getDir(destDirUrl);\r\n\t\t} catch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t}" ]
[ "0.64938885", "0.64938885", "0.63366354", "0.6172497", "0.61057067", "0.5997797", "0.5991595", "0.5920481", "0.5900941", "0.5877489", "0.5852591", "0.58245677", "0.5801583", "0.5795642", "0.5773811", "0.5738185", "0.5730556", "0.5721825", "0.56948125", "0.5691834", "0.568534", "0.5658285", "0.5648023", "0.56438637", "0.5636615", "0.56354", "0.5631322", "0.5622367", "0.56038356", "0.558758", "0.55865514", "0.55722094", "0.5565412", "0.5564993", "0.55627614", "0.55610096", "0.5552484", "0.55389625", "0.5537538", "0.5521683", "0.5512429", "0.5508369", "0.54982483", "0.5495036", "0.5491861", "0.5489789", "0.5489692", "0.54811007", "0.547776", "0.54650843", "0.54593027", "0.54564136", "0.54354054", "0.5431647", "0.5422624", "0.54206026", "0.5415136", "0.54137605", "0.54103553", "0.54086995", "0.5405654", "0.5404499", "0.5404142", "0.5401932", "0.5401576", "0.53976387", "0.53976345", "0.53956276", "0.53886104", "0.53826404", "0.5381379", "0.53812987", "0.53804624", "0.5377207", "0.5374704", "0.5373136", "0.5371072", "0.5369201", "0.53654045", "0.5362727", "0.53601474", "0.53589886", "0.5358178", "0.5355419", "0.5352484", "0.5352279", "0.53518766", "0.5351797", "0.5348907", "0.53442997", "0.53417945", "0.5339566", "0.5338206", "0.53369737", "0.5335979", "0.5334451", "0.5332962", "0.53326523", "0.5330027", "0.5328674" ]
0.65092885
0
Test unchained/chained execution with a valid positive input.
@Test public void testValidInput() { String normalInput = "1357.459"; String germanInput = "1357,459"; BigDecimal expectedOutput = new BigDecimal(normalInput); // normal input for( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) { assertExecution(p, normalInput, expectedOutput); } // german input ("," instead of "." as decimal symbol) for( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) { assertExecution(p, germanInput, expectedOutput); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void isInputDataValidTestWithBadInput() {\n boolean invoke = Deencapsulation.invoke(modificationFibonacci, \"isInputDataValid\", \"a\");\n assertFalse(invoke);\n }", "public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }", "public boolean validateInput() {\n/* 158 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "protected abstract int isValidInput();", "@Test\n\tvoid test() {\n\t\t\n\t\tuserInput ui = new userInput();\n\t\t\n\t\tboolean test0 = ui.isValidChildcareType(0);\n\t\tboolean test1 = ui.isValidChildcareType(1);\n\t\tboolean test2 = ui.isValidChildcareType(2);\n\t\tboolean test3 = ui.isValidChildcareType(3);\n\t\tboolean test4 = ui.isValidChildcareType(4);\n\t\tboolean test5 = ui.isValidChildcareType(5);\n\t\tboolean test6 = ui.isValidChildcareType(-1);\n\t\t\n\t\tassertEquals(test0, false);\n\t\tassertEquals(test1, true);\n\t\tassertEquals(test2, true);\n\t\tassertEquals(test3, true);\n\t\tassertEquals(test4, true);\n\t\tassertEquals(test5, false);\n\t\tassertEquals(test6, false);\n\t}", "@Test\n public void isInputDataValidTest() {\n boolean invoke = Deencapsulation.invoke(modificationFibonacci, \"isInputDataValid\", \"1\");\n assertTrue(invoke);\n }", "private boolean callSucceeds(Module m, Call call)\n {\n if(call.negative)\n {\n if(call.type.equals(\"sk\"))\n {\n if(m.getCredulous().contains(call.assumption)) return false;\n else return true;\n }\n else\n {\n if(m.getSceptical().contains(call.assumption)) return false;\n else return true;\n }\n }\n else\n {\n if(call.type.equals(\"sk\"))\n {\n if(m.getSceptical().contains(call.assumption)) return true;\n else return false;\n }\n else\n {\n if(m.getCredulous().contains(call.assumption)) return true;\n else return false;\n }\n }\n }", "private static void executeProgram() throws IllegalArgumentException {\n\t\twhile(true) {\n\t\t\tcalculateRoot();\n\t\t\tsc = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Do you want to enter another equation? :\");\n\t\t\tString answer = sc.next();\n\t\t\tif(answer.equalsIgnoreCase(\"no\")) {\n\t\t\t\tSystem.out.println(\"Good bye!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected abstract boolean checkInput();", "public abstract boolean verifyInput();", "@Test(expected = ArithmeticException.class)\n public void whenTryExecuteDivideByZeroShouldCheckThatAppThrowException() {\n String[] answer = new String[]{\"100\", \"0.0\", \"y\"};\n StubIO stubIO = new StubIO(answer);\n MenuCalculator menuCalculator = new MenuCalculator(new Calculator(), stubIO, actions);\n menuCalculator.fillActions();\n String expected = String.format(\"%s + %s = %s\\n%s / %s = %s\\n\",\n 0.0, 100.0, 100.0, 100.0, 2.0, 50.0);\n final int firstCommand = 0;\n final int secondCommand = 3;\n\n menuCalculator.select(firstCommand);\n menuCalculator.select(secondCommand);\n\n assertThat(stubIO.getOut(), is(expected));\n }", "static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}", "@Test\n public void testTooManyInput(){\n //set up\n CurrencyRates test = new CurrencyRates();\n\n //add sample user input\n InputStream in = new ByteArrayInputStream(\"ABC123 BCD234 WER456 FDG435\".getBytes());\n System.setIn(in);\n\n //test if system exits when user input is incorrect\n assertNull(test.takeInput());\n\n return;\n }", "@Test\n\tpublic void testAndNegativeIntegers() throws BcException, IOException {\n\t\tString[] params = { \"-1 && -1\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tassertEquals(\"1\", outStream.toString());\n\t}", "@Test\n\tprivate void checkPossibilityTest() {\n\t\tint[] input = new int[] {1,1,1};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {0,0,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {4,2,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {2,3,4,2,3};\n Assertions.assertThat(checkPossibility(input)).isFalse();\n\t}", "static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkThrough() {\n\t\tboolean flag = oTest.checkThrough();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n public void whenTryExecuteDeductShouldCheckThatIsWorkCorrect() {\n String[] answer = new String[]{\"2.5\", \"y\"};\n StubIO stubIO = new StubIO(answer);\n MenuCalculator menuCalculator = new MenuCalculator(new Calculator(), stubIO, actions);\n menuCalculator.fillActions();\n String expected = \"0.0 - 2.5 = -2.5\\n\";\n final int command = 1;\n\n menuCalculator.select(command);\n\n assertThat(stubIO.getOut(), is(expected));\n }", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}", "@Test\n public void whenTryExecuteAdditionShouldCheckThatIsWorkCorrect() {\n String[] answer = new String[]{\"1.0\", \"y\"};\n StubIO stubIO = new StubIO(answer);\n MenuCalculator menuCalculator = new MenuCalculator(new Calculator(), stubIO, actions);\n menuCalculator.fillActions();\n String expected = \"0.0 + 1.0 = 1.0\\n\";\n final int command = 0;\n\n menuCalculator.select(command);\n\n assertThat(stubIO.getOut(), is(expected));\n }", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testMakePurchase_not_enough_money() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"A\"));\r\n\t}", "@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }", "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}", "@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }", "@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }", "@Test\n\tpublic void rejectedOfferCanNotBeAccepted() {\n\t}", "@Test(expected = Exception.class)\n public void testCardSelectionIsValid_FALSE() throws Exception {\n System.out.println(\"cardSelectionIsValid not valid\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n utils.cardSelectionIsValid(cardSelection, drawCard, wildColour);\n \n }", "@Test(expected=RuntimeException.class)\n\tpublic void test_SpringCalculator_whenAnyNegativeIsGiven_Then_ReturnThrowException() {\n\t\tcalc.Add(\"-1,-2\");\n\t}", "@Test(description = \"Test to validate price reminder when no price is entered\", priority = 0)\n\tpublic void UserStory1() throws HeadlessException, AWTException, IOException, InterruptedException\n\t{\n\t\tLoanCalculatorPage loan_cal = new LoanCalculatorPage();\t\t\n\t\tloan_cal.validateCalHomePage();\n\t\t//testLog.log(Status.INFO, \"Loan calculator page launched\");\n\t\tint testCaseID = 1;\n\t\t\n\t\t\n\t\t//Validate the error message when no amount is input\t\t\n\t\tloan_cal.validateNoPrice(testCaseID);\n\t}", "@Test\r\n\tpublic void testTransferAmountNegative() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(-100.0);\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test(groups = { \"unit\" })\r\n public void testCase() {\r\n getPlayer().teleportToRoom(VAULT_ROOM);\r\n getPlayerA().teleportToRoom(VAULT_ROOM);\r\n clearAllOutput();\r\n\r\n if (!getCommand().execute(getPlayer(), \"de asd\")) {\r\n \t Assert.fail();\r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKTMC.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\");\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 100\")) {\r\n \t Assert.fail(); \t \r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKNHA.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n \r\n if (getCommand().execute(getPlayer(), \"de 100 gold\")) {\r\n \t Assert.fail(); \t \t \r\n }\r\n \r\n getPlayer().setGold(100);\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 101\")) {\r\n \t Assert.fail(); \t \t \t \r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKNHA.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n \r\n if (getPlayer().getVaultBalance() != 0) {\r\n Assert.fail();\r\n }\r\n\r\n if (getPlayer().getGold() != 100) {\r\n Assert.fail();\r\n }\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 100\")) {\r\n \t Assert.fail(); \t \t \t \r\n }\r\n String depositString = MessageFormat.format(TaMessageManager.BNKDEP.getMessage(), \"100\");\r\n TestUtil.assertOutput(getPlayerOutput(), depositString);\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n\r\n if (getPlayer().getVaultBalance() != 100) {\r\n Assert.fail();\r\n }\r\n\r\n if (getPlayer().getGold() != 0) {\r\n Assert.fail();\r\n }\r\n \r\n // Test the command in an invalid room.\r\n getPlayer().teleportToRoom(NORTH_PLAZA);\r\n getPlayerA().teleportToRoom(NORTH_PLAZA);\r\n clearAllOutput();\r\n\r\n if (getCommand().execute(getPlayer(), \"ba\")) {\r\n Assert.fail();\r\n }\r\n \r\n }", "public boolean hasPassed(){\n return hasPassed(0);\n }", "@Test\n public void TestIlegalCorrectInputCheck(){\n Assert.assertEquals(player.CorrectInputCheck(\"horisonaz\",5,1,1)\n ,false , \" check horisontal spelling\"\n );\n\n //illegal : check vertical\n Assert.assertEquals(player.CorrectInputCheck(\"verticles\",5,1,1)\n ,false , \" check vertical spelling\"\n );\n\n //illegal : place a 5 ship horisontal at 0,1 outside of the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,0,1)\n ,false,\" illegal : place a 5 ship horisontal at 0,1 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 1,0 outside of the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,0)\n ,false, \" illegal : place a 5 ship horisontal at 1,0 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 7,1 ship is to big it goes outside the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,7,1)\n ,false , \" illegal : place a 5 ship horisontal at 7,1 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,7)\n ,false , \" illegal : place a 5 ship horisontal at 1,7 outside of the grid \"\n );\n\n\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "@Test\n public void testPactOfNegationRollback() {\n setStrictChooseMode(true);\n\n addCard(Zone.HAND, playerA, \"Silvercoat Lion\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 2);\n\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 5);\n // Counter target spell.\n // At the beginning of your next upkeep, pay {3}{U}{U}. If you don't, you lose the game.\n addCard(Zone.HAND, playerB, \"Pact of Negation\"); // Instant {0}\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silvercoat Lion\");\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, \"Pact of Negation\", \"Silvercoat Lion\", \"Silvercoat Lion\");\n\n setChoice(playerB, true);\n\n rollbackTurns(2, PhaseStep.PRECOMBAT_MAIN, playerB, 0);\n\n setChoice(playerB, true);\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertGraveyardCount(playerA, \"Silvercoat Lion\", 1);\n assertGraveyardCount(playerB, \"Pact of Negation\", 1);\n\n Assert.assertTrue(\"Player A is still in game\", playerA.isInGame());\n Assert.assertTrue(\"Player B is still in game\", playerB.isInGame());\n\n assertTappedCount(\"Island\", true, 5);\n\n }", "@Test\n\tpublic void testCase2()\n\t{\n\t\tint numberOfCases=-1;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertFalse(valid);\n\t\t\n\t}", "@Test\n public void parse_invalidValueFollowedByValidValue_success() {\n Index targetIndex = INDEX_FIRST;\n String userInput = targetIndex.getOneBased() + INVALID_PHONE_DESC + PHONE_DESC_BABES;\n EditBeneficiaryDescriptor descriptor = new EditBeneficiaryDescriptorBuilder()\n .withPhone(VALID_PHONE_BABES).build();\n EditBeneficiaryCommand expectedCommand = new EditBeneficiaryCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n\n // other valid values specified\n userInput = targetIndex.getOneBased() + EMAIL_DESC_BABES + INVALID_PHONE_DESC + ADDRESS_DESC_BABES\n + PHONE_DESC_BABES;\n descriptor = new EditBeneficiaryDescriptorBuilder().withPhone(VALID_PHONE_BABES).withEmail(VALID_EMAIL_BABES)\n .withAddress(VALID_ADDRESS_BABES).build();\n expectedCommand = new EditBeneficiaryCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n }", "@Test\n public void testAndConjunctionInvalidFollowedByValid() {\n Validation<Pv> conjunction = invalidResult.and(validResult);\n Result<Pv, String> result = conjunction.validate(new Pv());\n\n assertThat(result.isFailure(), is(true));\n assertThat(result.failure().get(), is(message));\n }", "private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }", "public static void isPositive(int userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}", "public static boolean doTestsPass()\r\n {\r\n\r\n boolean result = true;\r\n result = result && FindMin(new int[]{3,4,5,6,1,2}) == 1;\r\n result = result && FindMin(new int[]{2,1}) == 1;\r\n result = result && FindMin(new int[]{1}) == 1;\r\n\r\n try {\r\n FindMin(null);\r\n result = false;\r\n }\r\n catch(Exception e)\r\n {\r\n result = result && true;\r\n }\r\n\r\n if(result)\r\n {\r\n System.out.println(\"All tests pass\\n\");\r\n }\r\n else\r\n {\r\n System.out.println(\"There are test failures\\n\");\r\n }\r\n return result;\r\n }", "@Test\r\n\tpublic void testTransferAmountZero() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(0.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test\n\tpublic void invalidEnterShip_1(){\n\t\tShip ship = new Ship(new ShipPart(0,0),new ShipPart(1,1),new ShipPart(2,2));\n\t\tassertFalse(ship.canEnter(null, Direction.EAST));\n\t}", "public boolean checkInput();", "@Test\n public void testAndConjunctionValidFollowedByInvalid() {\n Validation<Pv> conjunction = validResult.and(invalidResult);\n Result<Pv, String> result = conjunction.validate(new Pv());\n\n assertThat(result.isFailure(), is(true));\n assertThat(result.failure().get(), is(message));\n }", "@Test\n public void testCardSelectionIsValid_TRUE() throws Exception {\n System.out.println(\"cardSelectionIsValid not valid\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n utils.cardSelectionIsValid(cardSelection, drawCard, wildColour);\n }", "public static void main(String[] args) {\n\t\tdouble payment = 0; \n\t\tScanner in = new Scanner(System.in); \n\t\tboolean positivePayment = true; \n\t\t\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter the payment amount: \");\n\n\t\t\ttry {\n\t\t\t\tpayment = in.nextDouble() ; \n\t\t\t\tif (payment < 0) {\n\t\t\t\t\tpositivePayment = false; \n\t\t\t\t\tthrow new NegativePaymentException(payment);\n\t\t\t\t}else {\n\t\t\t\t\tpositivePayment = true; \n\t\t\t\t}\n\t\t\t}catch (NegativePaymentException e) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\n\t\t}while (!positivePayment); \n\n\t\t\n\t\t\t\n\t}", "@Test\n public void parse_invalidValueFollowedByValidValue_success() {\n Index targetIndex = INDEX_FIRST;\n String userInput = targetIndex.getOneBased() + INVALID_PHONE_DESC + PHONE_DESC_BOB;\n ClientDescriptor descriptor = new ClientDescriptorBuilder().withPhone(VALID_PHONE_BOB).build();\n EditClientCommand expectedCommand = new EditClientCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n\n // other valid values specified\n userInput = targetIndex.getOneBased() + EMAIL_DESC_BOB + INVALID_PHONE_DESC + ADDRESS_DESC_BOB\n + PHONE_DESC_BOB;\n descriptor = new ClientDescriptorBuilder().withPhone(VALID_PHONE_BOB).withEmail(VALID_EMAIL_BOB)\n .withAddress(VALID_ADDRESS_BOB).build();\n expectedCommand = new EditClientCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n }", "static void call_when_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_call_req(passed.substring(4));\n\t}", "protected abstract boolean isInputValid();", "@Test\n public void parse_invalidValueFollowedByValidValue_success() {\n Index targetIndex = INDEX_FIRST;\n String userInput = targetIndex.getOneBased() + INVALID_PHONE_DESC + PHONE_DESC_BOB;\n OrderDescriptor descriptor = new OrderDescriptorBuilder().withClientPhone(VALID_PHONE_BOB).build();\n EditOrderCommand expectedCommand = new EditOrderCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n\n // other valid values specified\n userInput = targetIndex.getOneBased() + RECIPE_NAME_DESC_LAKSA + INVALID_PHONE_DESC + ADDRESS_DESC_BOB\n + PHONE_DESC_BOB;\n descriptor = new OrderDescriptorBuilder().withClientPhone(VALID_PHONE_BOB)\n .withClientAddress(VALID_ADDRESS_BOB).withRecipeName(VALID_RECIPE_NAME_LAKSA).build();\n expectedCommand = new EditOrderCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n }", "@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }", "@Test\n\tpublic void testCheckSufficientCredits_False() {\n\n\t\tint creditsRequired = 11;\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t}", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "@Test\n\tpublic void testIfForbriddenSelfKill() {\n\t\tboard.commitMove(new Point(0,2), 1);\n\t\tboard.commitMove(new Point(1,1), 1);\n\t\tboard.commitMove(new Point(2,2), 1);\n\t\tboard.commitMove(new Point(1,3), 1);\n\t\tassertNotEquals(0, board.commitMove(new Point(1,2), 0));\n\t}", "@Test\n public void canMoveTest() {\n assertTrue(cp1.canMove(5, 3));\n assertTrue(cp1.canMove(1, 5));\n assertTrue(cp2.canMove(4, 6));\n assertTrue(cp2.canMove(6, 5));\n\n assertFalse(cp1.canMove(0, 5));\n assertFalse(cp1.canMove(3, 4));\n assertFalse(cp2.canMove(2, 6));\n assertFalse(cp2.canMove(7, 4));\n }", "@Test\n\tpublic void forInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}", "@Test\n public void testProcessCheckoutIllegalToolCode() {\n String toolCode = \"Not A Tool Code\";\n int rentalDays = 3;\n int discountPercentage = 10;\n LocalDate checkoutDate = LocalDate.of(2015, Month.SEPTEMBER, 3);\n String expectedMessage = \"Illegal tool code. LADW, CHNS, JAKR and JAKD are the valid tool codes, please enter a valid tool code.\";\n\n String message = \"\";\n try {\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n } catch (Exception e) {\n message = e.getMessage();\n }\n\n assertEquals(expectedMessage, message);\n }", "@Test\n public void TestLegalCorrectInputCheck(){\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,1)\n ,true , \" check horisontal \"\n );\n\n //legal : check vertical spelling\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,1)\n ,true , \" check vertical \"\n );\n\n //legal : place a 5 ship horisontal at 1,1\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,1)\n ,true , \" legal : place a 5 ship horisontal at 1,1 \"\n );\n\n // legal : place a 5 ship horisontal at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,10)\n ,true ,\" legal : place a 5 ship horisontal at 1,10 \"\n );\n\n // legal : place a 5 ship vertical at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,1)\n ,true , \" legal : place a 5 ship vertical at 1,10 \"\n );\n\n // legal : place a 5 ship vertical at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,10,1)\n ,true ,\"000 legal : place a 5 ship vertical at 1,10 \"\n );\n\n // legal : place a 5 ship horisontal at 6,1\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,6,1)\n ,true , \" legal : place a 5 ship horisontal at 6,1 \"\n );\n\n // legal : place a 5 ship vertical at 1,6\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,6)\n ,true ,\"000 legal : place a 5 ship vertical at 10,6 \"\n );\n\n }", "@Disabled\n @Test\n void processDepositValidatorPubkeysDoesNotContainPubkeyAndMinEmptyValidatorIndexIsNegative() {\n }", "@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}", "private static void validateChainingMethods(SelfPredicate<String> one , SelfPredicate<String> two) {\n\t\n\tSystem.out.println(\"final result \"+one.not().test(\"jai shree ram\")); // true\n\t\n\tSystem.out.println(\"final result \"+one.not().test(\"20\")); // false\n\t\n\tSystem.out.println(\"final result \"+one.not().test(\"23\")); // flase\n\t\nSystem.out.println(\"final result \"+two.not().test(\"jai shree ram\")); // true\n\t\n\tSystem.out.println(\"final result \"+two.not().test(\"20\")); // true\n\t\n\tSystem.out.println(\"final result \"+two.not().test(\"23\")); // false\n\t\n}", "@Test\n\tpublic void secindForInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}", "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgumentParser(arguments);\r\n String expResult = \"correct\";\r\n String result = instance.checkInput(arguments);\r\n assertEquals(expResult, result);\r\n \r\n System.out.println(\"test 2\");\r\n String[] arguments2 = {\"1k\",\"test.txt\",\"1\"};\r\n String expResult2 = \"correct\";\r\n String result2 = instance.checkInput(arguments2);\r\n assertEquals(expResult2, result2);\r\n \r\n System.out.println(\"test 3\");\r\n String[] arguments3 = {\"chat.txt\"};\r\n String expResult3 = \"correct\";\r\n String result3 = instance.checkInput(arguments3);\r\n assertEquals(expResult3, result3);\r\n \r\n System.out.println(\"test 4\");\r\n String[] arguments4 = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\"};\r\n String expResult4 = \"Incorrect number of arguments\";\r\n String result4 = instance.checkInput(arguments4);\r\n assertEquals(expResult4, result4);\r\n \r\n System.out.println(\"test 5\");\r\n String[] arguments5 = {};\r\n String expResult5 = \"Need at least one argument with input file path\";\r\n String result5 = instance.checkInput(arguments5);\r\n assertEquals(expResult5, result5);\r\n }", "private void checkUserInput() {\n }", "@Test\r\n\tpublic void Bush_Invalid_Test_1(){\r\n\t\tPlayer player = new Player(0,\"Chris\", new Point(1, 1), new Point(0, 1));\r\n\t\tPoint worldLocation = new Point(1, 1);\r\n\t\tPoint tileLocation = new Point(1, 1);\r\n\t\tBush bush = new Bush(worldLocation, tileLocation);\r\n\t\tboolean exception = false;\r\n\t\ttry{\r\n\t\t\ttry {\r\n\t\t\t\tbush.performAction(player);\r\n\t\t\t} catch (SignalException e) {\r\n\t\t\t}\r\n\t\t\tif(player.getPocket().getItems().size() == 1){\r\n\t\t\t\tItem item = player.getPocket().getItems().get(0);\r\n\t\t\t\tassert(item instanceof Food);\r\n\t\t\t\tassert(((Food) item).getFoodType() == FoodType.BERRY);\r\n\t\t\t}\r\n\t\t\tTimeUnit.SECONDS.sleep(2);\r\n\t\t\ttry {\r\n\t\t\t\tbush.performAction(player);\r\n\t\t\t} catch (SignalException e) {\r\n\t\t\t}\r\n\t\t}catch(GameException | InterruptedException e){\r\n\t\t\texception = true;\r\n\t\t}\r\n\t\tassertTrue(exception);\r\n\t}", "private static boolean KawigiEdit_RunTest(int testNum, int[] p0, boolean hasAnswer, int p1) {\n System.out.print(\"Test \" + testNum + \": [\" + \"{\");\n for (int i = 0; p0.length > i; ++i) {\n if (i > 0) {\n System.out.print(\",\");\n }\n System.out.print(p0[i]);\n }\n System.out.print(\"}\");\n System.out.println(\"]\");\n EllysAndXor obj;\n int answer;\n obj = new EllysAndXor();\n long startTime = System.currentTimeMillis();\n answer = obj.getMax(p0);\n long endTime = System.currentTimeMillis();\n boolean res;\n res = true;\n System.out.println(\"Time: \" + (endTime - startTime) / 1000.0 + \" seconds\");\n if (hasAnswer) {\n System.out.println(\"Desired answer:\");\n System.out.println(\"\\t\" + p1);\n }\n System.out.println(\"Your answer:\");\n System.out.println(\"\\t\" + answer);\n if (hasAnswer) {\n res = answer == p1;\n }\n if (!res) {\n System.out.println(\"DOESN'T MATCH!!!!\");\n } else if ((endTime - startTime) / 1000.0 >= 2) {\n System.out.println(\"FAIL the timeout\");\n res = false;\n } else if (hasAnswer) {\n System.out.println(\"Match :-)\");\n } else {\n System.out.println(\"OK, but is it right?\");\n }\n System.out.println(\"\");\n return res;\n }", "public void test00200_ValidateNonExistingCall() throws Exception\n\t{\n\t\tSystem.out.println(\"test00200_ValidateNonExistingCall()\");\n\t\tString pvName;\n\t\tString className = this.getClass().getSimpleName();\n\t\tint _position = className.indexOf('_');\n\t\tif (_position == -1)\n\t\t{\n\t\t\tpvName = className;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpvName = className.substring(0, _position);\n\t\t}\n\t\tEquationData data = getEQData(pvName, invalidCCN, decode, \"N\");\n\t\tString error = data.getErrorMessage().trim();\n\t\tSystem.out.println(\"Validate Non-Existing Call\");\n\t\tif (!error.equals(\"\"))\n\t\t{\n\t\t\tSystem.out.println(\"Error: \" + error);\n\t\t}\n\t\tSystem.out.println(\"Data Returned: \" + data.getData());\n\t\tassertEquals(false, error.equals(\"\"));\n\t}", "@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }", "public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean isInputValid() {\n return true;\n }", "@Test\n\t\tpublic void testNegativeFibonacciNumber() {\n\t\t\t// This is the core action we are testing.\n\t\t\tExecutable action = () -> {\n\t\t\t\tFibonacciGenerator.fibonacciNumber(-10);\n\t\t\t};\n\n\t\t\t// We want to assert this action DOES throw an exception\n\t\t\tExecutable wrapper = () -> {\n\t\t\t\tassertThrows(IllegalArgumentException.class, action);\n\t\t\t};\n\n\t\t\t// But, in case this breaks things, we don't want to wait forever.\n\t\t\tassertTimeout(TIMEOUT, wrapper);\n\t\t}", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "@Test\r\n public void Test004TakeUserInputValid()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"1 1 2 2 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[1][1] == 1 && gol.grid[2][2] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }", "@Test public void testPositive() {\n\t\tassertEquals(expected, new AtMostOne(data).process(getClass()));\n\t}", "@Test\n \tpublic void method1PC() {\n \t\tassertEquals(-2, FaultyClass.method1(-2));\n\t\tassertEquals(1, FaultyClass.method1(3));\n\t\t\n\t\t//test 1st IF TRUE, 2nd IF FALSE\n\t\tassertEquals(1, FaultyClass.method1(3));;\n\t\t\n\t\t//test 1st IF FALSE, 2nd IF TRUE\n\t\t//Arithmetic Exception and 100 path coverage here\n\t\tFaultyClass.method1(-1);\n }", "@Test\n\tpublic void caseCostWithWrongInput() {\n\t\tFloat cost = 0f;\n\t\ttry {\n\t\t\tStringNumberUtil.positiveNumberUtil(cost);\n\t\t\tfail();\n\t\t} catch (NumberException e) {\n\t\t}\n\t}", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "Boolean isPassed();", "public boolean execute(Player player) throws NoArgumentException,pkg_exceptions.IllegalArgumentException {\n\t\tsetMessage(\"\");\n\t\tif(hasParameter()) {\n\t\t\ttry {\n\t\t\t\tScanner s = new Scanner(new File(getParameter() + \".test\"));\n\t\t\t\twhile (s.hasNextLine()) {\n\n\t\t\t\t\tString commandLine = s.nextLine();\n\t\t\t\t\tCommand testedCommand = Parser.getCommand(commandLine);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\ttestedCommand.execute(player);\n\t\t\t\t\t\tif(testedCommand.hasMessage())\n\t\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t\t+ testedCommand.getMessage());\n\n\t\t\t\t\t} catch (NoArgumentException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t} catch (pkg_exceptions.IllegalArgumentException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t} catch(UnauthorizedException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ts.close();\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\tthrow new pkg_exceptions.IllegalArgumentException(\"No such test\");\n\t\t\t}\n\t\t} else\n\t\t\tthrow new NoArgumentException(\"What do you want to test?\");\n\t\treturn false;\n\t}", "@Test\n\tpublic void testValidRemainingActions() {\n\t\tassertFalse(Player.isValidRemainingActions(Player.MAX_ALLOWED_ACTIONS + 1));\n\t}", "@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }", "@Test\n public void testImpossible1TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.transferMoney(user.getPassport(), acc.getRequisites(), user.getPassport(), acc2.getRequisites(), 100), is(false));\n }", "@Test\n public void idempotentcyTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n final String paymentId = paymentDto.getId();\n\n\n //we mistakenly try to confirm unauthorized payment (even twice) - that is OK, payment should stay in INITIAL\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n\n //eventually we authorize payment\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //and confirm\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n }", "@Test\r\n\tpublic void testNoArgs() {\r\n\t\t// Declares and initializes an empty array\r\n\t\tString[] emptyArr = {};\r\n\t\t// Expected return from Cd\r\n\t\texpectedCd = \"Error : No parameters provided\";\r\n\t\t// Expected current working directory\r\n\t\texpectedPath = \"/\";\r\n\t\t// Actual return from Cd\r\n\t\tactualCd = cd.run(fs, emptyArr, \"cd \", false);\r\n\t\t// Returns the current working directory\r\n\t\tactualPath = fs.getCurrentPath();\r\n\t\t// Checks if the values are equal or not\r\n\t\tassertTrue(actualCd.equals(expectedCd) && actualPath.equals(expectedPath));\r\n\t}", "public static void isPositive(double userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}", "@Test\r\n\tpublic void testCoinRejected() {\r\n\t\tCoin coin = new Coin(7);\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tcsListener.coinRejected(vend.getCoinSlot(), coin);\r\n\t\tassertEquals(csListener.getCurrentCredit(), 0);\t\t\t\r\n\t}", "public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }", "void checkPrerequisite() throws ActionNotPossibleException;", "public void testNotApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), false);\n\t\tthis.replayMockObjects();\n\t\tassertFalse(\"Should not be able to apply if one change can not be applied\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}", "@Override\n boolean canFail() {\n return true;\n }", "@Test\n public void testInvalidPlayer() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskPlayer player2 = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 3);\n player2.conqueredTerritory(TerritoryEnum.ICELAND);\n board.getTerritory(TerritoryEnum.ICELAND).changePlayer(player2, 6);\n ValidDieDefendAction action = new ValidDieDefendAction(player, board,\n TerritoryEnum.GREENLAND);\n AttackAction attack = new AttackAction(player2, TerritoryEnum.ICELAND,\n TerritoryEnum.GREENLAND, 3);\n DefendAction defend = new DefendAction(player2, board, attack, 2);\n assertFalse(action.validateDefendMove(defend));\n }", "@Test\n\tpublic void invalidEnterShip_2(){\n\t\tShip ship = new Ship(new ShipPart(0,0),new ShipPart(1,1));\n\t\tPlayer p = new Player(0, \"Test\", null, null, null);\n\t\tp.giveItem(new ShipPart(0,0));\n\t\tp.giveItem(new ShipPart(1,1));\n\t\tassertFalse(ship.canEnter(p, null));\n\t}", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }" ]
[ "0.6210182", "0.6087562", "0.6049291", "0.59299225", "0.590056", "0.5883779", "0.58764815", "0.5873642", "0.5853951", "0.5811321", "0.57586956", "0.5748076", "0.57454354", "0.57234234", "0.571263", "0.569866", "0.565999", "0.56427467", "0.5640801", "0.56265026", "0.5621732", "0.5610529", "0.56077355", "0.56033665", "0.5601132", "0.5600528", "0.55930924", "0.5591525", "0.55718434", "0.55703104", "0.55651593", "0.55631995", "0.55529726", "0.5551197", "0.553423", "0.55202544", "0.55170643", "0.55132717", "0.551206", "0.5507421", "0.5500903", "0.5499168", "0.5492406", "0.5488719", "0.5481402", "0.5475737", "0.54718155", "0.54706854", "0.54691124", "0.5465825", "0.5458025", "0.5455795", "0.54451746", "0.5444059", "0.5443825", "0.54430324", "0.54410964", "0.54407483", "0.5439388", "0.54346836", "0.54343206", "0.5420456", "0.54203236", "0.5418705", "0.54163074", "0.541083", "0.5406886", "0.5406545", "0.5403331", "0.5398085", "0.53943235", "0.5394078", "0.53929436", "0.5385204", "0.53810567", "0.5379685", "0.53686804", "0.53666836", "0.53586984", "0.5353919", "0.53521", "0.53511757", "0.535066", "0.5345349", "0.53374916", "0.5330495", "0.5328599", "0.53275084", "0.532361", "0.53222066", "0.5310372", "0.53066903", "0.5303657", "0.5299012", "0.5298825", "0.5298706", "0.5295875", "0.52949995", "0.5293419", "0.5286203", "0.5284499" ]
0.0
-1
Test unchained/chained execution with a valid negative input.
@Test public void testValidNegativeInput() { String normalInput = "-1357.459"; String germanInput = "-1357,459"; BigDecimal expectedOutput = new BigDecimal(normalInput); // normal input for( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) { assertExecution(p, normalInput, expectedOutput); } // german input ("," instead of "." as decimal symbol) for( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) { assertExecution(p, germanInput, expectedOutput); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}", "@Test\n\tvoid testNegativeInteger() {\n\t\tint result = calculator.negativeInteger(-4,-3);\n\t\tassertEquals(-1,result);\n\t}", "@Test\n\tpublic void testAndNegativeIntegers() throws BcException, IOException {\n\t\tString[] params = { \"-1 && -1\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tassertEquals(\"1\", outStream.toString());\n\t}", "@Test\n\tpublic void testUnaryMinusExpression() throws BcException, IOException {\n\t\tString[] params = { \"5/-1*-2\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tassertEquals(\"10\", outStream.toString());\n\n\t}", "@Test\r\n\tpublic void testTransferAmountNegative() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(-100.0);\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test(expected=RuntimeException.class)\n\tpublic void test_SpringCalculator_whenAnyNegativeIsGiven_Then_ReturnThrowException() {\n\t\tcalc.Add(\"-1,-2\");\n\t}", "public boolean isNegative();", "public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "@Test\n\t\tpublic void testNegativeFibonacciNumber() {\n\t\t\t// This is the core action we are testing.\n\t\t\tExecutable action = () -> {\n\t\t\t\tFibonacciGenerator.fibonacciNumber(-10);\n\t\t\t};\n\n\t\t\t// We want to assert this action DOES throw an exception\n\t\t\tExecutable wrapper = () -> {\n\t\t\t\tassertThrows(IllegalArgumentException.class, action);\n\t\t\t};\n\n\t\t\t// But, in case this breaks things, we don't want to wait forever.\n\t\t\tassertTimeout(TIMEOUT, wrapper);\n\t\t}", "public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }", "@Test\n public void isInputDataValidTestWithBadInput() {\n boolean invoke = Deencapsulation.invoke(modificationFibonacci, \"isInputDataValid\", \"a\");\n assertFalse(invoke);\n }", "T negativeResult();", "@Test\n public void testModuloNegative() {\n MainPanel mp = new MainPanel();\n ProgramArea pa = new ProgramArea();\n ProgramStack ps = new ProgramStack();\n\n ps.push(-10);\n ps.push(3);\n\n ProgramExecutor pe = new ProgramExecutor(mp, ps, pa);\n\n pe.modulo();\n\n Assert.assertEquals(-1, ps.pop());\n }", "@Test(expected = RuntimeException.class)\n\tpublic void shouldReturnExceptionWhenNegativeNumberasInput(){\n\t\tstringCalculator.addString(\"3,-5,6,-9\");\n\t}", "@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }", "boolean isNeg();", "@Test\n public void testPactOfNegationRollback() {\n setStrictChooseMode(true);\n\n addCard(Zone.HAND, playerA, \"Silvercoat Lion\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 2);\n\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 5);\n // Counter target spell.\n // At the beginning of your next upkeep, pay {3}{U}{U}. If you don't, you lose the game.\n addCard(Zone.HAND, playerB, \"Pact of Negation\"); // Instant {0}\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silvercoat Lion\");\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, \"Pact of Negation\", \"Silvercoat Lion\", \"Silvercoat Lion\");\n\n setChoice(playerB, true);\n\n rollbackTurns(2, PhaseStep.PRECOMBAT_MAIN, playerB, 0);\n\n setChoice(playerB, true);\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertGraveyardCount(playerA, \"Silvercoat Lion\", 1);\n assertGraveyardCount(playerB, \"Pact of Negation\", 1);\n\n Assert.assertTrue(\"Player A is still in game\", playerA.isInGame());\n Assert.assertTrue(\"Player B is still in game\", playerB.isInGame());\n\n assertTappedCount(\"Island\", true, 5);\n\n }", "@Test(dependsOnMethods = { \"testGetTaskWithMandatoryParameters\" },\n description = \"podio {getTask} integration test with negative case.\")\n public void testGetTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getTask_negative.json\");\n \n String apiEndPoint = apiUrl + \"/task/Invalid\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "@Test(expected = IllegalArgumentException.class)\n public void factorialOfNegativeNumber() {\n factorialAlgorithm.factorial(-4);\n }", "public boolean validateInput() {\n/* 158 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "public static void main(String[] args){\n\t\tSystem.out.println(negate(8)); //should be -8\n\t\tSystem.out.println(negate(-2)); //should be 2\n\t}", "@Test(dependsOnMethods = { \"testAssignTaskWithMandatoryParameters\" },\n description = \"podio {assignTask} integration test with negative case.\")\n public void testAssignTaskWithNegativeCase() throws IOException, JSONException, InterruptedException {\n \n Thread.sleep(timeOut);\n esbRequestHeadersMap.put(\"Action\", \"urn:assignTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_assignTask_negative.json\");\n \n String apiEndPoint = apiUrl + \"/task/\" + connectorProperties.getProperty(\"taskId\") + \"/assign\";\n \n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_assignTask_negative.json\");\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_propagate\"),\n apiRestResponse.getBody().getString(\"error_propagate\"));\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "public void doNegativeClick() {\n // Do stuff here.\n Log.i(\"FragmentAlertDialog\", \"Negative click!\");\n }", "static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}", "@Test\n\tpublic void caseCostWithWrongInput() {\n\t\tFloat cost = 0f;\n\t\ttry {\n\t\t\tStringNumberUtil.positiveNumberUtil(cost);\n\t\t\tfail();\n\t\t} catch (NumberException e) {\n\t\t}\n\t}", "@Test\n public void testNegativeA() {\n assertEquals(-1, PiGenerator.powerMod(-1, 2, 23));\n }", "@Test(expected = ArithmeticException.class)\n public void whenTryExecuteDivideByZeroShouldCheckThatAppThrowException() {\n String[] answer = new String[]{\"100\", \"0.0\", \"y\"};\n StubIO stubIO = new StubIO(answer);\n MenuCalculator menuCalculator = new MenuCalculator(new Calculator(), stubIO, actions);\n menuCalculator.fillActions();\n String expected = String.format(\"%s + %s = %s\\n%s / %s = %s\\n\",\n 0.0, 100.0, 100.0, 100.0, 2.0, 50.0);\n final int firstCommand = 0;\n final int secondCommand = 3;\n\n menuCalculator.select(firstCommand);\n menuCalculator.select(secondCommand);\n\n assertThat(stubIO.getOut(), is(expected));\n }", "public void testNegativeBid(){\n try {\n Bid bid = new Bid(new Thing(new User()), new User(), -20);\n fail();\n } catch (BidNegativeException e){\n // ok!\n } catch (Exception e){\n //ok\n }\n\n }", "@Test\n\tpublic void rejectedOfferCanNotBeAccepted() {\n\t}", "@Test\n public void testNegativeB() {\n assertEquals(-1, PiGenerator.powerMod(2, -1, 23));\n }", "@Test\n public void testNegativeM() {\n assertEquals(-1, PiGenerator.powerMod(2, 2, -1));\n }", "public static int checkNegative(int orderN)\n {\n if (orderN < 0)\n {\n System.out.println(\"Negative order number detected input is read as 0.\\n\");\n return 0;\n }\n else\n {\n return orderN;\n }\n }", "@Test\n public void testCalculateRPNStackNegativeNumbers() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"-10\",\"*\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(-120.0));\n }", "@Test(dependsOnMethods = { \"testCompleteTaskWithMandatoryParameters\" },\n description = \"podio {completeTask} integration test with negative case.\")\n public void testCompleteTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:completeTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_completeTask_negative.json\");\n \n String apiEndPoint = apiUrl + \"/task/Invalid/complete\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n \n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getTask} integration test with negative case.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testGetTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getTask_negative.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/123456\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 404);\n Assert.assertEquals(apiRestResponse.getHttpStatusCode(), 404);\n }", "public static void main(String[] args) {\n\t\tdouble payment = 0; \n\t\tScanner in = new Scanner(System.in); \n\t\tboolean positivePayment = true; \n\t\t\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter the payment amount: \");\n\n\t\t\ttry {\n\t\t\t\tpayment = in.nextDouble() ; \n\t\t\t\tif (payment < 0) {\n\t\t\t\t\tpositivePayment = false; \n\t\t\t\t\tthrow new NegativePaymentException(payment);\n\t\t\t\t}else {\n\t\t\t\t\tpositivePayment = true; \n\t\t\t\t}\n\t\t\t}catch (NegativePaymentException e) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\n\t\t}while (!positivePayment); \n\n\t\t\n\t\t\t\n\t}", "public void testNotApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), false);\n\t\tthis.replayMockObjects();\n\t\tassertFalse(\"Should not be able to apply if one change can not be applied\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}", "public void testRunInvalidMEP() {\n System.out.println(\"Testing run() for the scenario where the message exchange pattern is not valid\");\n \n ExecOperation execoperation = new ExecOperation();\n operations.put(THE_OPERATION, execoperation);\n \n ExecInput execInput = new ExecInput();\n execInput.setExecMessage(new ExecMessage());\n execoperation.setExecOperationInput(execInput);\n \n ExecAddress addr = new ExecAddress();\n addr.setHostName(\"localhost\");\n endpoint.expects(atLeastOnce()).method(\"getEndpointName\").will(returnValue(THE_ENDPOINT));\n endpoint.expects(atLeastOnce()).method(\"getExecOperations\").will(returnValue(operations));\n endpoint.expects(atLeastOnce()).method(\"getOperationMsgExchangePattern\").will(returnValue(operationMeps));\n \n // 1. testing the case where message exchange pattern is not found (null)\n operationMeps.remove(THE_OPERATION);\n operationMeps.put(\"dummyOperation\", \"inonly\");\n\n instance.stopReceiving();\n // for junit testing - avoid multiple inbound worker threads\n instance.run();\n \n // 2. testing the case where message exchange status is invalid (not inonly or inout)\n operationMeps.put(THE_OPERATION, \"outin\");\n instance.run();\n }", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}", "@Test public void negativeTest() {\n Cat c = new Cat(\"Owner 1\", \"Kitty\", \"House Cat\", 15.0, 7, 9);\n Dog d = new Dog(\"Owner 2\", \"Rex\", \"Boxer\", 90.0, 7);\n Assert.assertEquals(-1, test.compare(d, c));\n }", "@Test\n\tpublic void testConstructor3ParametersNegInput() {\n\t\ttry {\n\t\t\tnew CountDownTimer(-2, 3, 4);\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\tassertTrue(e != null);\n\t\t}\n\n\t\ttry {\n\t\t\tnew CountDownTimer(2, -3, 4);\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\tassertTrue(e != null);\n\t\t}\n\n\t\ttry {\n\t\t\tnew CountDownTimer(2, 3, -4);\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\tassertTrue(e != null);\n\t\t}\n\t}", "public void test00200_ValidateNonExistingCall() throws Exception\n\t{\n\t\tSystem.out.println(\"test00200_ValidateNonExistingCall()\");\n\t\tString pvName;\n\t\tString className = this.getClass().getSimpleName();\n\t\tint _position = className.indexOf('_');\n\t\tif (_position == -1)\n\t\t{\n\t\t\tpvName = className;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpvName = className.substring(0, _position);\n\t\t}\n\t\tEquationData data = getEQData(pvName, invalidCCN, decode, \"N\");\n\t\tString error = data.getErrorMessage().trim();\n\t\tSystem.out.println(\"Validate Non-Existing Call\");\n\t\tif (!error.equals(\"\"))\n\t\t{\n\t\t\tSystem.out.println(\"Error: \" + error);\n\t\t}\n\t\tSystem.out.println(\"Data Returned: \" + data.getData());\n\t\tassertEquals(false, error.equals(\"\"));\n\t}", "@Test\n public void hailStoneNegative(){\n List<Integer> expected = new ArrayList<>();\n expected.add(-1);\n assertThat(ComputeStuff.hailstoneSequence(-1), is(expected));\n }", "@Test\n public void euclidesAreCoprimeTest_notCoprimesWithNegative() {\n BigInteger a = new BigInteger(\"-10000021\");\n // pseudoprime (3 * 43 * 257)\n BigInteger b = new BigInteger(\"33153\");\n boolean result = Algo.euclidesAreCoprime(a, b);\n\n assertTrue(result);\n }", "@Test public void unknownOptionStopsProcessing() {\n\t\tfinal String[] args = new String[]{\"-unknown\"};\n\t\tfinal CliActuators actuators = parser.parse(args, OPTIONS);\n\t\tAssert.assertEquals(\"-unknown\", actuators.getRests().get(0));\n\t}", "@Test\n public void whenTryExecuteDeductShouldCheckThatIsWorkCorrect() {\n String[] answer = new String[]{\"2.5\", \"y\"};\n StubIO stubIO = new StubIO(answer);\n MenuCalculator menuCalculator = new MenuCalculator(new Calculator(), stubIO, actions);\n menuCalculator.fillActions();\n String expected = \"0.0 - 2.5 = -2.5\\n\";\n final int command = 1;\n\n menuCalculator.select(command);\n\n assertThat(stubIO.getOut(), is(expected));\n }", "protected void handleOther(final boolean invalidCmd) {\r\n\t\t// do nothing\r\n\t}", "@Test\n public void testCalculateRPNCustomNegativeNumbers() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"-10\",\"*\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(-120.0));\n }", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative1() {\r\n\t\tauthenticate(\"brother5\");\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\r\n\t\tunauthenticate();\r\n\t}", "static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}", "@Test(expected=InsufficientCreditException.class)\n\tpublic void testNotEnoughtCredit() throws Exception {\n\t\tfor (int i = 49; i >= -1000; i--) {\n\t\t\td.dispense(i, 13);\n\t\t}\n\t}", "public void testRemoveTrackStatusForNegative() throws Exception {\r\n try {\r\n target.removeTrackStatus(-1);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "static void call_when_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_call_req(passed.substring(4));\n\t}", "@Test\r\n\tpublic void testTransferAmountZero() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(0.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testCoinRejected() {\r\n\t\tCoin coin = new Coin(7);\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tcsListener.coinRejected(vend.getCoinSlot(), coin);\r\n\t\tassertEquals(csListener.getCurrentCredit(), 0);\t\t\t\r\n\t}", "@Override\n public R visit(NumericLiteralNegative n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private static void validateChainingMethods(SelfPredicate<String> one , SelfPredicate<String> two) {\n\t\n\tSystem.out.println(\"final result \"+one.not().test(\"jai shree ram\")); // true\n\t\n\tSystem.out.println(\"final result \"+one.not().test(\"20\")); // false\n\t\n\tSystem.out.println(\"final result \"+one.not().test(\"23\")); // flase\n\t\nSystem.out.println(\"final result \"+two.not().test(\"jai shree ram\")); // true\n\t\n\tSystem.out.println(\"final result \"+two.not().test(\"20\")); // true\n\t\n\tSystem.out.println(\"final result \"+two.not().test(\"23\")); // false\n\t\n}", "public static void main( String [] args ) {\t\n\t\t\n\t\t//Output tests\n\t\tSystem.out.println( posNeg( 1, 1, false ) );\n\t}", "@Test(expected = BasePriceMustBePositiveException.class)\r\n\tpublic void testNegativeBasePrice() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"-100\"), 1, \"food\");\r\n\t estimator.estimateFinalCost();\r\n\t}", "@Test\r\n\t@Order(3)\r\n\tvoid testXnegative() {\r\n\t\trobot.setX(-100);\r\n\t\tassertNotEquals(-100, robot.getX() < 0 ,\"X coord test failed\\nREASON: Values less than 0 not allowed!\");\r\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testInvalidPickUp() {\n\t\tPlayer player = new Player(new Square(), 0);\n\t\t\n\t\tplayer.pickUp(null);\n\t}", "@Test\n\tpublic void testValidRemainingActions() {\n\t\tassertFalse(Player.isValidRemainingActions(Player.MAX_ALLOWED_ACTIONS + 1));\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindMinesNegative2() {\r\n\t\tauthenticate(\"viewer1\");\r\n\r\n\t\tbrotherhoodService.findMines();\r\n\r\n\t\tunauthenticate();\r\n\t}", "public void setNegative(boolean negative) {\n this.negative = negative;\n }", "public interface NegativeAction {\n void negativeAction();\n}", "@Test(dependsOnMethods = { \"testGetReminderWithMandatoryParameters\" },\n description = \"podio {getReminder} integration test with negative case.\")\n public void testGetReminderWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getReminder\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getReminder_negative.json\");\n \n String apiEndPoint = apiUrl + \"/reminder/task/Invalid\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "public ParseResult failure (Object input, int peel)\n {\n ParseResult r = run(input, recordCallStack);\n\n assertTrue(!r.fullMatch, peel + 1,\n () -> \"Parse succeeded when it was expected to fail.\");\n\n clearLocals();\n return r;\n }", "public static void isPositive(int userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}", "@Override\n boolean canFail() {\n return true;\n }", "public boolean posNeg(int a, int b, boolean negative) {\n throw new UnsupportedOperationException(\"Not implemented\");\n }", "@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {updateTask} integration test with negative case.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testUpdateTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:updateTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_updateTask_negative.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/999999\";\n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_updateTask_negative.json\");\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 404);\n Assert.assertEquals(apiRestResponse.getHttpStatusCode(), 404);\n }", "@Disabled\n @Test\n void processDepositValidatorPubkeysDoesNotContainPubkeyAndMinEmptyValidatorIndexIsNegative() {\n }", "@Test\n public void euclidesAreCoprimeTest_pseudoprimeCoprimesWithNegative() {\n BigInteger a = new BigInteger(\"-33153\");\n // pseudoprime (151 * 331)\n BigInteger b = new BigInteger(\"49981\");\n boolean result = Algo.euclidesAreCoprime(a, b);\n\n assertTrue(result);\n }", "@Test\n void calculateNegativeDailyCostTest() throws Exception {\n ToolType toolType = ToolType.JACKHAMMER; // weekendFree: true holidayFree: true\n String toolCode = \"JAKR\";\n String brand = \"Werner\";\n int discount = 0;\n int daysRented = 5;\n LocalDate checkoutDate = createDate(\"2015-09-03\");\n\n Tool tool = new Tool(toolType, toolCode, brand, -50.00, false, false);\n\n List<Tool> tools = Arrays.asList(tool);\n Order order = new Order(tools, checkoutDate, daysRented);\n\n List<LocalDate> holidays = createHolidays(checkoutDate.getYear());\n RentalAgreement rentAgmt = createRentalAgreement(order, discount, holidays);\n\n Assertions.assertThrows(Exception.class, ()->\n rentAgmt.calculate(), \"Expected calculate() to throw Exception but it didn't\"\n );\n }", "public boolean posNeg(int a, int b, boolean negative) {\n if (negative){\n return(a < 0 && b < 0);\n }\n\n return((a < 0 && b >= 0) || (a >= 0 && b < 0));\n}", "private static void executeProgram() throws IllegalArgumentException {\n\t\twhile(true) {\n\t\t\tcalculateRoot();\n\t\t\tsc = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Do you want to enter another equation? :\");\n\t\t\tString answer = sc.next();\n\t\t\tif(answer.equalsIgnoreCase(\"no\")) {\n\t\t\t\tSystem.out.println(\"Good bye!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}", "@Test(expected = DidNotPickCardException.class)\n public void allow_discard_only_if_picked_before(){\n\n Deck deck = new Deck();\n deck.add(new Card(3,2,5));\n Game game = new Game(deck);\n\n game.join(\"susan\");\n game.join(\"peter\");\n\n game.discard(\"susan\");\n }", "@Test(dependsOnMethods = { \"testUpdateTaskWithOptionalParameters\" },\n description = \"podio {updateTask} integration test with negative case.\")\n public void testUpdateTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:updateTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_updateTask_negative.json\");\n String taskId = connectorProperties.getProperty(\"taskId\");\n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"PUT\", apiRequestHeadersMap, \"api_updateTask_negative.json\");\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "@Test\n\tpublic void testIfForbriddenSelfKill() {\n\t\tboard.commitMove(new Point(0,2), 1);\n\t\tboard.commitMove(new Point(1,1), 1);\n\t\tboard.commitMove(new Point(2,2), 1);\n\t\tboard.commitMove(new Point(1,3), 1);\n\t\tassertNotEquals(0, board.commitMove(new Point(1,2), 0));\n\t}", "@Test\n public void executeWithFailure() {\n new SimpleCommandFailure(\"badRequest\", HystrixRuntimeException.FailureType.COMMAND_EXCEPTION).execute();\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getStory} integration test with negative case.\", dependsOnMethods = { \"testListProjectsWithMandatoryParameters\" })\n public void testGetStoryWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getStory\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getStory_negative.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/111111\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 404);\n Assert.assertEquals(apiRestResponse.getHttpStatusCode(), 404);\n \n }", "@Test\n\tpublic void invalidEnterShip_1(){\n\t\tShip ship = new Ship(new ShipPart(0,0),new ShipPart(1,1),new ShipPart(2,2));\n\t\tassertFalse(ship.canEnter(null, Direction.EAST));\n\t}", "@Test(dependsOnMethods = { \"testCreateTaskWithOptionalParameters\" },\n description = \"podio {createTask} integration test with negative case.\")\n public void testCreateTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_negative.json\");\n String apiEndPoint = apiUrl + \"/task\";\n \n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_createTask_negative.json\");\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createTask} integration test with negative case.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_negative.json\");\n final JSONArray esbResponseArray = new JSONArray(esbRestResponse.getBody().getString(\"output\"));\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks\";\n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_createTask_negative.json\");\n final JSONArray apiResponseArray = new JSONArray(apiRestResponse.getBody().getString(\"output\"));\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 400);\n Assert.assertEquals(apiRestResponse.getHttpStatusCode(), 400);\n Assert.assertEquals(esbResponseArray.getJSONObject(0).getString(\"property\"), apiResponseArray.getJSONObject(0)\n .getString(\"property\"));\n Assert.assertEquals(esbResponseArray.getJSONObject(0).getString(\"message\"), apiResponseArray.getJSONObject(0)\n .getString(\"message\"));\n }", "@Override\n\tpublic void onDialogNegativeClick(DialogFragment dialog) {\n\t\t\n\t\tif (isRunTimeException) {\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\n\t}", "@Test\n public void testInvalidPlayer() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskPlayer player2 = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 3);\n player2.conqueredTerritory(TerritoryEnum.ICELAND);\n board.getTerritory(TerritoryEnum.ICELAND).changePlayer(player2, 6);\n ValidDieDefendAction action = new ValidDieDefendAction(player, board,\n TerritoryEnum.GREENLAND);\n AttackAction attack = new AttackAction(player2, TerritoryEnum.ICELAND,\n TerritoryEnum.GREENLAND, 3);\n DefendAction defend = new DefendAction(player2, board, attack, 2);\n assertFalse(action.validateDefendMove(defend));\n }", "@Test\n\t\tpublic void testNegativeFibonacciNumbers() {\n\t\t\t// We do not need to separate all of the lambda expressions...\n\t\t\tassertTimeout(TIMEOUT, () -> {\n\t\t\t\tassertThrows(IllegalArgumentException.class, () -> {\n\t\t\t\t\tFibonacciGenerator.fibonacciNumbers(-1);\n\t\t\t\t});\n\t\t\t});\n\t\t}", "@Test (expected = Exception.class)\n\tpublic void testNegativeChord() throws Exception{\n\t\tnew Chord(-1, Chord.Tonality.aug, 0, 0, \"\", 4);\n\t}", "public boolean isNegative()\n\t{\n\t\t// TO DO\n\t\treturn isNeg;\n\t}", "public boolean validateCredits_cannotBeNegative(Float credits, DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context) {\n\t\t// TODO implement the constraint\n\t\t// -> specify the condition that violates the constraint\n\t\t// -> verify the diagnostic details, including severity, code, and message\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\tif (false) {\n\t\t\tif (diagnostics != null) {\n\t\t\t\tdiagnostics.add(\n\t\t\t\t\t\tcreateDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, 0, \"_UI_GenericConstraint_diagnostic\",\n\t\t\t\t\t\t\t\tnew Object[] { \"cannotBeNegative\",\n\t\t\t\t\t\t\t\t\t\tgetValueLabel(Tdt4250Package.Literals.CREDITS, credits, context) },\n\t\t\t\t\t\t\t\tnew Object[] { credits }, context));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative2() {\r\n\t\tauthenticate(\"admin\");\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\r\n\t\tunauthenticate();\r\n\t}", "@Test\n\tpublic void testCheckSufficientCredits_False() {\n\n\t\tint creditsRequired = 11;\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t}", "@Test\n void no_fall_through() {\n System.out.println(\"Result = \" + no_fall_through(\"TEST_1\"));\n System.out.println(\"Result = \" + no_fall_through(\"TEST_2\"));\n System.out.println(\"Result = \" + no_fall_through(\"TEST\"));\n }", "public void setAllowNegative(boolean allowNegative) {\n\t\tthis.allowNegative = allowNegative;\n\t\trequestRepaint();\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void outfromNumGradeTest1(){\r\n\t\tPointGrade.fromNumGrade(-2);\r\n\t}" ]
[ "0.6307875", "0.615532", "0.61448264", "0.6115778", "0.6099837", "0.6092391", "0.6083053", "0.6045328", "0.6008856", "0.5993588", "0.5977525", "0.5944467", "0.59318435", "0.58990526", "0.5870807", "0.58095974", "0.57362324", "0.57291925", "0.5725182", "0.5667584", "0.56404215", "0.5625467", "0.5601414", "0.55997944", "0.55807054", "0.557531", "0.55737513", "0.55684394", "0.55677927", "0.5563258", "0.5561062", "0.55574346", "0.55565184", "0.5546854", "0.5529562", "0.5523773", "0.5514104", "0.5499143", "0.54809487", "0.54795855", "0.54780185", "0.5472379", "0.54650044", "0.5454498", "0.5447498", "0.54322445", "0.5423139", "0.5421693", "0.5415958", "0.540887", "0.5408741", "0.54050976", "0.53970563", "0.53918207", "0.53874093", "0.53828377", "0.53810716", "0.53730464", "0.53599495", "0.53566515", "0.5347483", "0.53470916", "0.53435564", "0.5337179", "0.53362805", "0.5331188", "0.53292125", "0.53265953", "0.53229576", "0.5322765", "0.53180134", "0.5317837", "0.5317409", "0.53114116", "0.5304991", "0.5303058", "0.5298809", "0.5294749", "0.5291865", "0.52904385", "0.5286464", "0.5283997", "0.5283725", "0.52829427", "0.52800155", "0.5272001", "0.5268967", "0.5266042", "0.52600855", "0.5258117", "0.5256559", "0.5255685", "0.52527165", "0.52400494", "0.5235943", "0.523483", "0.52258056", "0.5219531", "0.5217311", "0.52106583" ]
0.5928614
13
Tests that grouping separators are handled correctly for positive numbers.
@Test public void testValidInputWithGroupingSeparator() { String normalInput = "1,357.459"; String germanInput = "1.357,459"; BigDecimal expectedOutput = new BigDecimal("1357.459"); // 'no symbols' processors should choke on grouping separators for( CellProcessor p : Arrays.asList(processor, processorChain) ) { try { p.execute(normalInput, ANONYMOUS_CSVCONTEXT); fail("should have thrown SuperCsvCellProcessorException"); } catch(SuperCsvCellProcessorException e) {} } // normal input for( final CellProcessor p : Arrays.asList(processor2, processorChain2) ) { assertExecution(p, normalInput, expectedOutput); } // german input (opposite - "," is decimal symbol and "." is grouping) for( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) { assertExecution(p, germanInput, expectedOutput); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testValidNegativeInputWithGroupingSeparator() {\n\t\tString normalInput = \"-1,357.459\";\n\t\tString germanInput = \"-1.357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(\"-1357.459\");\n\t\t\n\t\t// 'no symbols' processors should choke on grouping separators\n\t\tfor( CellProcessor p : Arrays.asList(processor, processorChain) ) {\n\t\t\ttry {\n\t\t\t\tp.execute(normalInput, ANONYMOUS_CSVCONTEXT);\n\t\t\t\tfail(\"should have thrown SuperCsvCellProcessorException\");\n\t\t\t}\n\t\t\tcatch(SuperCsvCellProcessorException e) {}\n\t\t}\n\t\t\n\t\t// normal input\n\t\tfor( final CellProcessor p : Arrays.asList(processor2, processorChain2) ) {\n\t\t\tassertExecution(p, normalInput, expectedOutput);\n\t\t}\n\t\t\n\t\t// german input (opposite - \",\" is decimal symbol and \".\" is grouping)\n\t\tfor( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) {\n\t\t\tassertExecution(p, germanInput, expectedOutput);\n\t\t}\n\t}", "@Ignore\n\tpublic void testSumShouldNotAcceptPlusSignAsSeparator() {\n\t\tString input = \"85+56\";\n\t\tString separator = \"+\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}", "@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }", "@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }", "@Test(expected=MalformedNumberException.class)\n public void spacesInWeirdPlaces() throws MalformedNumberException {\n new RomanArabicConverter(\"1 4\");\n }", "@Test\n public void canParseSeparator(){\n int[] i = null;\n try {\n i = SUT.getColumnWidthsFromString(\"1,2,3\");\n } catch (ImportException e) {\n Assert.fail(e.getMessage());\n }\n\n Assert.assertNotNull(i);\n Assert.assertEquals(i[0], 1);\n Assert.assertEquals(i[1], 2);\n Assert.assertEquals(i[2], 3);\n }", "static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }", "@Test(expected=ArithmeticException.class)\n public void testSplitOnZero() {\n Money money = new Money(new BigDecimal(\"50.00\"));\n money.split(0);\n fail(\"Can't split by 0\");\n }", "@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }", "@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }", "@Test\n void testWhiteSpace() {\n assertEquals(1, Calculator.calculate(\" 5 - 4\"));\n }", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "private static String removeDigitGroupSeparators(final String input)\n {\n final String output = input.trim();\n\n // Replace one occurrence only, otherwise we will generate an incorrect result\n if (output.contains(\",\"))\n {\n return output.replace(\",\", \"\");\n }\n else\n {\n return output.replace(\".\", \"\");\n }\n }", "public static String multiFormatNumber(Number theValue, String format, String groupSep, String decimalSep) throws BaseException\n {\n try\n {\n \tString result = null;\n \tNumber value = theValue;\n \tDecimalFormat _df = new DecimalFormat();\n \t_df.setRoundingMode(RoundingMode.HALF_UP);\n \tif(format.indexOf(\";\") == -1)\n \t{\n \t _df.applyPattern(format);\n\t result = _df.format(value);\n\t \n \t}\n \telse\n \t{\n\n \t String[] formatting = null;\n \t String[] formatType = { \"posFrmt\", \"negFrmt\", \"zeroFrmt\", \"nullFrmt\" };\n \t HashMap<String,String> formatMap = new HashMap<String,String>();\n \t formatting = format.split(\";\");\n\n \t for(int i = 0; i < formatting.length; i++)\n \t {\n \t\tformatMap.put(formatType[i], formatting[i]);\n \t }\n\n \t \n \t if(value == null)\n \t {\n \t\tif(formatMap.get(\"nullFrmt\") != null)\n \t\t{\n \t\t _df.applyPattern(formatMap.get(\"nullFrmt\"));\n \t\t result = _df.format(0);\n \t\t}\n \t }\n \t else\n \t {\n \t\tDouble valDouble = value.doubleValue();\n \t\tif(valDouble > 0)\n \t\t{\n \t\t if(formatMap.get(\"posFrmt\") != null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"posFrmt\"));\n \t\t\tresult = _df.format(value);\n \t\t }\n \t\t}\n \t\telse if(valDouble < 0)\n \t\t{\n \t\t if(formatMap.get(\"negFrmt\") != null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"negFrmt\"));\n \t\t\tvalue = Math.abs(valDouble);\n \t\t\tresult = _df.format(value);\n \t\t }\n \t\t}\n \t\telse if(valDouble == 0)\n \t\t{\n \t\t if(formatMap.get(\"zeroFrmt\") == null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"posFrmt\"));\n \t\t }\n \t\t else\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"zeroFrmt\")); \t\t\t\n \t\t }\n \t\t result = _df.format(valDouble);\n \t\t}\n \t }\n \t}\n \t\n \tString returnFrmt = null;\n \tif(result != null)\n \t{\n \t String theGrpSep = groupSep;\n \t String theDecSep = decimalSep;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t// return group and decimal separator from session if any\n \t\tString[] grpDecArr = returnGroupDecimalSep();\n \t\tif(theGrpSep == null || theGrpSep.isEmpty())\n \t\t{\n \t\t theGrpSep = grpDecArr[0];\n \t\t}\n \t\tif(theDecSep == null || theDecSep.isEmpty())\n \t\t{\n \t\t theDecSep = grpDecArr[1];\n \t\t}\n \t }\n \t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n \t returnFrmt = result.replace(\",\",\"#grp#\");\n \t returnFrmt = returnFrmt.replace(\".\",theDecSep+\"\");\n \t returnFrmt = returnFrmt.replace(\"#grp#\",theGrpSep+\"\");\n \t}\n\t \n\t return returnFrmt;\n }\n catch(Exception e)\n {\n \t throw new BaseException(e);\n }\n }", "@Test\n public void testAnyDigitSequences() {\n assertThat(regex(seq(e(\"0\"), e(\"1\"), X))).isEqualTo(\"01\\\\d\");\n // \"\\d\\d\" is shorter than \"\\d{2}\"\n assertThat(regex(seq(X, X))).isEqualTo(\"\\\\d\\\\d\");\n assertThat(regex(seq(X, X, X))).isEqualTo(\"\\\\d{3}\");\n // Top level optional groups are supported.\n assertThat(regex(opt(seq(X, X)))).isEqualTo(\"(?:\\\\d{2})?\");\n // Optional parts go at the end.\n assertThat(regex(\n seq(\n opt(seq(X, X)),\n X, X)))\n .isEqualTo(\"\\\\d\\\\d(?:\\\\d{2})?\");\n // \"(x(x(x)?)?)?\"\n Edge anyGrp = opt(seq(\n X,\n opt(seq(\n X,\n opt(X)))));\n // The two cases of a group on its own or as part of a sequence are handled separately, so\n // must be tested separately.\n assertThat(regex(anyGrp)).isEqualTo(\"\\\\d{0,3}\");\n assertThat(regex(seq(e(\"1\"), e(\"2\"), anyGrp))).isEqualTo(\"12\\\\d{0,3}\");\n // xx(x(x(x)?)?)?\"\n assertThat(regex(seq(X, X, anyGrp))).isEqualTo(\"\\\\d{2,5}\");\n // Combining \"any digit\" groups produces minimal representation\n assertThat(regex(seq(anyGrp, anyGrp))).isEqualTo(\"\\\\d{0,6}\");\n }", "private boolean isAllNums(String fieldVal){\r\n // Get rid of all whitespace\r\n String val = fieldVal.replaceAll(\"\\\\s\",\"\").trim();\r\n // check for presence of letters in the string, ignoring '()' and '-'\r\n for (int i=0; i < val.length(); i++){\r\n if (val.charAt(i) != '(' || val.charAt(i) != ')' || val.charAt(i) != '-'){\r\n if (Character.isLetter(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n }\r\n return true; \r\n }", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}", "protected static boolean isSeparator(int c) {\n return (c == -1 || SEPARATORS.indexOf(c) != -1);\n }", "@Test\r\npublic void dosNumerosComa(){\r\n try {\r\n assertEquals(Calculadora.add(\"1,5\"), 6);\r\n assertEquals(Calculadora.add(\"2,6\"), 8);\r\n assertEquals(Calculadora.add(\"31,2\"), 33);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con dos numeros separados por una coma\");\r\n }\r\n}", "@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }", "@Test\n public final void whenSemicolonDelimiterIsSpecifiedThenItIsUsedToSeparateNumbers() {\n assertEquals(3+6+15, StringCalculator.add(\"//;\\n3;6;15\"));\n }", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "@Test\n public void shouldReplaceSign() {\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').trimAndCollapseFrom(\"$$ this is $ test $$\",'x'),containsString(\" this is x test \"));\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').or(CharMatcher.is(' ')).trimFrom(\"$$ this is $ test $$\"),equalTo(\"this is $ test\"));\n }", "public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n\tpublic void testSumShouldGiveBackTheInputIfItContainsOnlyOneNumber() {\n\t\tString input = \"8556\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tassertEquals(Integer.valueOf(0), underTest.sum(input, separator));\n\t}", "private static boolean isNegativeNumberFollowingLeftBracket(String s, int index) {\n while (index < s.length()) {\n char c = s.charAt(index);\n if (c == ' ') {\n index++;\n continue;\n }\n if (c == '-') {\n return isDigitFollowing(s, index + 1);\n } else {\n return false;\n }\n }\n return false;\n }", "private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }", "@Test\n\tpublic void test_StringCalculator_WhenNewlineBetweenNumbers_Then_ReturnTheValidSum() {\n\t\tAssert.assertEquals(6,calc.Add(\"1\\n2,3\"));\n\t}", "@Test\r\npublic void multiplesNumerosSeparadosPorComa() {\r\n try {\r\n assertEquals(Calculadora.add(\"1,6,11,6\"), 24);\r\n assertEquals(Calculadora.add(\"1,2,3,5,6,7,8\"), 32);\r\n assertEquals(Calculadora.add(\"1,4,12,5,20\"), 42);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con varios números separados por una coma\");\r\n }\r\n}", "@Test\n\tpublic void testSumShouldBeValid() {\n\t\tString input = \"85,56\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tlogger.logInfo(EasyMock.anyString());\n\t\tassertEquals(Integer.valueOf(0), underTest.sum(input, separator));\n\t}", "@Test\r\npublic void separadorNuevaLinea() {\r\n try {\r\n assertEquals(Calculadora.add(\"2,4\\n6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4,6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4\"), 6);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\\n8\\n10\"), 30);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\\n8\\n10,12\"), 42);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con separador(es) de nueva línea\");\r\n }\r\n}", "public static String format(Object val, String pattern, char groupsepa, char decimalsepa)\n {\n if(val == null)\n {\n\t return \"\";\n } \n try\n {\n\t DecimalFormat _df = new DecimalFormat();\n\t _df.setRoundingMode(RoundingMode.HALF_UP);\n\t _df.applyPattern(pattern);\n\n\t String standardFrmt = _df.format(val);\n\t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n\t String returnFrmt = standardFrmt.replace(\",\",\"#grp#\");\n\t returnFrmt = returnFrmt.replace(\".\",decimalsepa+\"\");\n\t returnFrmt = returnFrmt.replace(\"#grp#\",groupsepa+\"\");\n\t return returnFrmt;\n\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n}", "public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "public static String[] returnGroupDecimalSep()\n {\n String[] returnVal = new String[]{\",\",\".\"};\n // if at level of presentation level then take the separators from session\n if(ActionContext.getContext() != null && ServletActionContext.getRequest() != null)\n {\n \t HashMap<String , Object> theFormats = RootUtil.returnNumberFormat(ServletActionContext.getRequest().getSession());\n \t returnVal[0] = StringUtil.nullEmptyToValue(theFormats.get(\"groupSepa\"), \",\");\n \t returnVal[1] = StringUtil.nullEmptyToValue(theFormats.get(\"decimalSepa\"), \".\");\n }\n else\n {\n \t// if there is not session then need to take the separators from initial load if available\n \tif(ConstantsCommon.PATH_GROUP_SEPARATOR != null)\n \t{\n \t returnVal[0] = ConstantsCommon.PATH_GROUP_SEPARATOR;\n \t}\n \tif(ConstantsCommon.PATH_DECIMAL_SEPARATOR != null)\n \t{\n \t returnVal[1] = ConstantsCommon.PATH_DECIMAL_SEPARATOR;\n \t}\n }\n return returnVal;\n }", "@Test\n\tpublic void testValidNegativeInput() {\n\t\t\n\t\tString normalInput = \"-1357.459\";\n\t\tString germanInput = \"-1357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(normalInput);\n\t\t\n\t\t// normal input\n\t\tfor( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) {\n\t\t\tassertExecution(p, normalInput, expectedOutput);\n\t\t}\n\t\t\n\t\t// german input (\",\" instead of \".\" as decimal symbol)\n\t\tfor( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) {\n\t\t\tassertExecution(p, germanInput, expectedOutput);\n\t\t}\n\t}", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "@Test(expectedExceptions = ParseException.class)\n\tpublic void testInvalidNumber() throws ParseException {\n\t\tparser(\"<%=-41a%>\").block();\n\t}", "private boolean isLegalNumChar(char c) {\n return c == '-'\n || c == '+'\n || (c >= '0' && c <= '9')\n || c == 'e'\n || c == 'E'\n || c == '.';\n }", "public void testDIGITS1() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 238, \"1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }", "@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}", "private boolean startsWithDigit(String s) {\n return Pattern.compile(\"^[0-9]\").matcher(s).find();\n\t}", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "@Test\n public void testNesting() {\n assertThat(regex(\n seq(\n e(\"0\"),\n or(\n e(\"1\"),\n seq(\n e(\"2\"),\n opt(e(\"3\"), e(\"4\")))),\n e(\"5\"), e(\"6\"))))\n .isEqualTo(\"0(?:1|2(?:3|4)?)56\");\n }", "public AVT getGroupingSeparator()\n {\n return m_groupingSeparator_avt;\n }", "private boolean isNumericoConFraccion(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tcase '.':\r\n\t\t\treturn dotCountValidate();\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static int Add(String numbers){\r\n \r\n int sum = 0;\r\n String negString = \"\";\r\n boolean negFlag = false;\r\n boolean commaFlag = false;\r\n \r\n String numberComponent[];\r\n String delimiterString;\r\n String delimiters[];\r\n String delimiterRegEx = \"\";\r\n \r\n System.out.println(\"Working string:\\n\"+numbers);\r\n //separate delimiter and number strings\r\n String newlineSplit[] = numbers.split(\"\\n\");\r\n \r\n if(numbers == null || numbers.isEmpty()){ //check for empty or null input\r\n System.out.println(\"String is empty or null\\n\");\r\n return 0;\r\n }\r\n else if(newlineSplit[0].charAt(0) != '/' || newlineSplit[0].charAt(1) != '/') { //check if string begins with '//'\r\n \tSystem.out.println(\"String is invalid\\n\");\r\n \treturn 0;\r\n }\r\n else { //get here if string has content and begins with '//'\r\n \t//take delimiter string of first split and ignore '//'\r\n \tdelimiterString = newlineSplit[0].substring(2);\r\n \t\r\n \t//check if ',' is one of the delimiters (do this since comma is also delimiter in delimiter string\r\n \tif(delimiterString.contains(\",,\") || delimiterString.equals(\",\")) {\r\n \t\tcommaFlag = true;\r\n \t}\r\n \t\r\n \tdelimiters = delimiterString.split(\",\");\r\n \t\r\n \t//add comma as delimiter if it existed (split erases comma if used as delimiter previously)\r\n \tif(commaFlag == true) {\r\n \t\tdelimiterRegEx += \"\\\\,\";\r\n \t\t\tcommaFlag = false;\r\n \t\t}\r\n \t\r\n \t//for each delimiter found\r\n \tfor(String temp:delimiters) {\r\n \t\t//escape all characters\r\n \t\ttemp = temp.replace(\"\"+temp.charAt(0), \"\\\\\"+temp.charAt(0));\r\n \t\t//continuously add to new regex (separate with OR for multiple delimiters)\r\n \t\tif(delimiterRegEx.length() == 0) {\r\n \t\t\tdelimiterRegEx += temp;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tdelimiterRegEx += \"|\"+temp;\r\n \t\t}\r\n \t}\r\n }\r\n \r\n System.out.println(\"Start of calculation...\");\r\n //split using regex generated, get every number as string\r\n numberComponent = newlineSplit[1].split(delimiterRegEx);\r\n \r\n for (String tempVal: numberComponent){\r\n \tif(Integer.valueOf(tempVal) < 0) { //raise error and record number if negative\r\n \t\tif(negString.length() == 0) {\r\n \t\t\tSystem.out.println(\"Negatives not allowed\");\r\n \t\t\tnegFlag = true;\r\n \t\t\tnegString += tempVal;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tnegString += \",\"+tempVal;\r\n \t\t}\r\n \t\tcontinue;\r\n \t}\r\n \telse if(Integer.valueOf(tempVal) > 1000) { //raise message and ignore if number is >1000\r\n \t\tSystem.out.println(\"Large number found and ignored\");\r\n \t\tcontinue;\r\n \t}\r\n \telse { //if passes all checks, add to sum\r\n \t\tsum += Integer.valueOf(tempVal);\r\n \t}\r\n \r\n }\r\n \r\n //display end message, depending if negatives were found or not\r\n if(negFlag == true) {\r\n \tSystem.out.println(\"Negative number(s) found: \"+negString+\"\\n\");\r\n }\r\n else {\r\n \tSystem.out.println(\"Sum is \"+sum);\r\n \tSystem.out.println(\"End of calculation!\\n\");\r\n }\r\n return 0;\r\n }", "@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }", "@Test\n\tpublic void test_StringCalculator_WhenNewLineIsOnlyDelimiter_then_return_validSum() {\n\t\tAssert.assertEquals(8, calc.Add(\"1\\n2\\n1\\n2\\n2\"));\n\t}", "public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }", "@Test\n public void testCrazyCalculator() {\n CrazyCalculator calculator = new CrazyCalculator();\n List<String> lines = new ArrayList<>();\n lines.add(\"1\");\n lines.add(\"\");\n lines.add(\"+@1L\");\n lines.add(\"-+3R\");\n lines.add(\"*-2R\");\n lines.add(\"//2R\");\n lines.add(\"1@1\");\n lines.add(\"5@5+4\");\n lines.add(\"2@3-12/6/5+3\");\n lines.add(\"-1+3\");\n lines.add(\"-1--3\");\n calculator.setLines(lines);\n calculator.processLines();\n List<String> results = calculator.getResults();\n assertEquals(\"should be 5\", 5, results.size());\n assertEquals(\"should be 2\", 2, Integer.parseInt(results.get(0)));\n assertEquals(\"should be 6\", 6, Integer.parseInt(results.get(1)));\n assertEquals(\"should be 14\", 14, Integer.parseInt(results.get(2)));\n assertEquals(\"should be -4\", -4, Integer.parseInt(results.get(3)));\n assertEquals(\"should be 3\", 3, Integer.parseInt(results.get(4)));\n }", "public static String format(Object val, String pattern, String groupsepa, String decimalsepa)\n {\n try\n {\n \t String theGrpSep = groupsepa;\n \t String theDecSep = decimalsepa;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t // return group and decimal separator from session if any\n \t String[] grpDecArr = returnGroupDecimalSep();\n \t if(theGrpSep == null || theGrpSep.isEmpty())\n \t {\n \t\t theGrpSep = grpDecArr[0];\n \t }\n \t if(theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t theDecSep = grpDecArr[1];\n \t }\n \t }\n \t return format(val,pattern, theGrpSep.charAt(0), theDecSep.charAt(0));\n }\n catch(Exception e )\n {\n \t log.error(e, \"[NumberUtil] Error caught in method format\");\n \t return \"\";\n }\n }", "private boolean isFlatNumValid(String s) {\n for (String f : flatNums) {\n if (f.matches(s)) {\n return false;\n }\n }\n return true;\n }", "@Test\n\tpublic void test_StringCalculator_WhenTwoDigitsNumbersUsed_Then_ReturnValidSum() {\n\t\tAssert.assertEquals(24,calc.Add(\"12,12\"));\n\t}", "private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }", "@Test(expected = RuntimeException.class)\n\tpublic void shouldReturnExceptionWhenNegativeNumberasInput(){\n\t\tstringCalculator.addString(\"3,-5,6,-9\");\n\t}", "public void testDIGITS3() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 240, \"1234567890\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "public static boolean numberFormatIsValid(String value) {\n return value.matches(\"^(([0-9]{1,3}[.][0-9]{1,2})|([0-9]{1,3}))$\");\n }", "@Test\n\tpublic void testInputWithMoreNumbers() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i <= 100; i++) {\n\t\t\tsb.append(i);\n\t\t\tif (i <100) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tassertEquals(\"Many numbers in input string\", 5050L, calculator.calculeteSum(sb.toString()).longValue());\n\t}", "private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private DecimalFormat getNumberFormatter(\n TransformerImpl transformer, int contextNode) throws TransformerException\n {\n // Patch from Steven Serocki\n // Maybe we really want to do the clone in getLocale() and return \n // a clone of the default Locale??\n Locale locale = (Locale)getLocale(transformer, contextNode).clone();\n\n // Helper to format local specific numbers to strings.\n DecimalFormat formatter = null;\n\n //synchronized (locale)\n //{\n // formatter = (DecimalFormat) NumberFormat.getNumberInstance(locale);\n //}\n\n String digitGroupSepValue =\n (null != m_groupingSeparator_avt)\n ? m_groupingSeparator_avt.evaluate(\n transformer.getXPathContext(), contextNode, this) : null;\n \n \n // Validate grouping separator if an AVT was used; otherwise this was \n // validated statically in XSLTAttributeDef.java.\n if ((digitGroupSepValue != null) && (!m_groupingSeparator_avt.isSimple()) &&\n (digitGroupSepValue.length() != 1))\n {\n transformer.getMsgMgr().warn(\n this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n new Object[]{ Constants.ATTRNAME_NAME, m_groupingSeparator_avt.getName()}); \n } \n \n \n String nDigitsPerGroupValue =\n (null != m_groupingSize_avt)\n ? m_groupingSize_avt.evaluate(\n transformer.getXPathContext(), contextNode, this) : null;\n\n // TODO: Handle digit-group attributes\n if ((null != digitGroupSepValue) && (null != nDigitsPerGroupValue) &&\n // Ignore if separation value is empty string\n (digitGroupSepValue.length() > 0))\n {\n try\n {\n formatter = (DecimalFormat) NumberFormat.getNumberInstance(locale);\n formatter.setGroupingSize(\n Integer.valueOf(nDigitsPerGroupValue).intValue());\n \n DecimalFormatSymbols symbols = formatter.getDecimalFormatSymbols();\n symbols.setGroupingSeparator(digitGroupSepValue.charAt(0));\n formatter.setDecimalFormatSymbols(symbols);\n formatter.setGroupingUsed(true);\n }\n catch (NumberFormatException ex)\n {\n formatter.setGroupingUsed(false);\n }\n }\n\n return formatter;\n }", "private static String removeDigitGroupSeparatorAndDecimalPlaces(final String input, final char digitGroupSeparator)\n {\n // Make sure we only deal with known characters for digit group separation\n Assert.assertTrue(\"Expected digit group separator to be either ',' or '.'\", digitGroupSeparator == ',' || digitGroupSeparator == '.');\n\n // Which decimal separator do we have (based on provided digit group separator)\n final char decimalSeparator = (digitGroupSeparator == ',') ? '.' : ',';\n\n // Trim the string, remove any digit group separators and copy the string\n String output = input.trim().replace(String.valueOf(digitGroupSeparator), \"\");\n\n // Find potential decimal separator in our string..\n final int decimalSeparatorPosition = output.indexOf(decimalSeparator);\n if (decimalSeparatorPosition > 0)\n {\n // ..and ignore everything including and after the decimal separator (= remove decimal\n // places)\n output = output.substring(0, decimalSeparatorPosition);\n }\n\n return output;\n }", "private boolean parseZeroesSection() {\n if (parseDoubleColon()) {\n zeroesSectionStart = hextetCount;\n return true;\n }\n return false;\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "public static TextFormatter soloNumeros() {\r\n DecimalFormat format = new DecimalFormat(\"##\");\r\n return new TextFormatter<>(c -> {\r\n if (c.getControlNewText().isEmpty()) {\r\n return c;\r\n }\r\n ParsePosition parsePosition = new ParsePosition(0);\r\n Object object = format.parse(c.getControlNewText(), parsePosition);\r\n if (object == null || parsePosition.getIndex() < c.getControlNewText().length()) {\r\n return null;\r\n } else {\r\n return c;\r\n }\r\n });\r\n }", "Rule Digit() {\n // No effect on value stack\n return CharRange('0', '9');\n }", "protected boolean isSeparator(char c) {\n return c == SEPARATOR;\n }", "@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }", "public void setGroupingSeparator(AVT v)\n {\n m_groupingSeparator_avt = v;\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String string0 = SQLUtil.normalize(\"^`-{}\\\"8M,,3\", true);\n assertEquals(\"^ ` - { } \\\"8M,,3\\\"\", string0);\n }", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "public void _testLeadingZeroesInt(String valueStr, int value) throws Exception\n {\n\n JsonFactory f = new JsonFactory();\n String JSON = valueStr;\n AsyncReaderWrapper p = createParser(f, JSON);\n try {\n p.nextToken();\n p.currentText();\n fail(\"Should have thrown an exception for doc <\"+JSON+\">\");\n } catch (JsonParseException e) {\n verifyException(e, \"invalid numeric value\");\n } finally {\n p.close();\n }\n\n // and then verify it's ok when enabled\n f = JsonFactory.builder()\n .enable(JsonReadFeature.ALLOW_LEADING_ZEROS_FOR_NUMBERS)\n .build();\n p = createParser(f, JSON);\n assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken());\n assertEquals(value, p.getIntValue());\n assertEquals(String.valueOf(value), p.currentText());\n p.close();\n }", "private boolean esDelimitador(char c){\n if ((\"+-/*^=%()\".indexOf (c) != -1)){\n return true;\n }else{\n return false;\n }\n }", "public boolean nextIsSep()\n {\n\n if (Character.isLetterOrDigit(str.charAt(currentPosition)))\n return false;\n else\n return true;\n }", "@Test\n @Disabled\n public void testValidateFormat() {\n assertTrue(RegExprMain.validateFormat(\"CC222CC\"));\n assertTrue(RegExprMain.validateFormat(\"DD333DD\"));\n assertTrue(RegExprMain.validateFormat(\"AA999AA\"));\n assertTrue(RegExprMain.validateFormat(\"VV555VV\"));\n assertTrue(RegExprMain.validateFormat(\"JJ777JJ\"));\n assertFalse(RegExprMain.validateFormat(\"J777JJ\"));\n assertFalse(RegExprMain.validateFormat(\"JJ777J\"));\n assertFalse(RegExprMain.validateFormat(\"JJ77JJ\"));\n assertFalse(RegExprMain.validateFormat(\"JJ777AA\"));\n assertFalse(RegExprMain.validateFormat(\"AA777JJ\"));\n \n\n }", "private boolean containsOnlyNumbers(String inputString)\r\n {\r\n inputString = inputString.trim();\r\n if (inputString.equals(null))\r\n return false;\r\n else\r\n for (int i = 0; i < inputString.length(); i++)\r\n if (!(inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9'))\r\n return false;\r\n return true;\r\n }", "public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "@Test\n public void testSeparateNumber131() { // FlairImage: 131\n java.util.concurrent.atomic.AtomicBoolean totuus = new java.util.concurrent.atomic.AtomicBoolean(false); \n StringBuilder testi = new StringBuilder(); \n assertEquals(\"From: FlairImage line: 135\", 0, separateNumber(testi,'-',totuus)); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd\"); \n assertEquals(\"From: FlairImage line: 139\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 140\", \"asdasd\", testi.toString()); \n assertEquals(\"From: FlairImage line: 141\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 145\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 146\", \"asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 147\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 151\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 152\", \"asd-asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 153\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-123\"); \n assertEquals(\"From: FlairImage line: 157\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 158\", \"asd-asdasd-123\", testi.toString()); \n assertEquals(\"From: FlairImage line: 159\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-123-muumi\"); \n assertEquals(\"From: FlairImage line: 163\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 164\", \"asd-123-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 165\", false, totuus.get()); \n }", "public static boolean isNumber(String input) {\n boolean hasDecimal = false;\n for (int i = 0; i < input.length(); i++) {\n char test = input.charAt(i);\n if (test == '-' && i == 0)\n continue; // Allow negative indicator.\n\n if (test == '.') {\n if (!hasDecimal) {\n hasDecimal = true;\n continue;\n } else {\n return false; // Multiple decimal = invalid number.\n }\n }\n\n if (!Character.isDigit(test))\n return false; // Character isn't a digit, so it can't be a number.\n }\n\n return true;\n }", "private boolean isValidNumber(String number) {\n if (null == number) {\n return false;\n }\n\n int i = 0;\n for (i = 0; i < number.length(); ++i) {\n if (number.charAt(i) != '+' && number.charAt(i) != '-') {\n if (Character.isDigit(number.charAt(i))) {\n break;\n }\n\n // Found a character that isn't a digit or sign\n return false;\n }\n }\n\n int firstDigitIndex = i;\n\n if (number.length() == i) {\n // The number has only signs\n return false;\n }\n\n return (number.substring(firstDigitIndex).chars().allMatch(Character::isDigit));\n }", "@Test\n public void testNumbersInvalid() throws Exception {\n testLexerSource(\"6x foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6g foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6xsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6gsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static boolean isDigitFollowing(String s, int index) {\n while (index < s.length()) {\n char c = s.charAt(index);\n if (c == ' ') {\n index++;\n continue;\n }\n if (Character.isDigit(c)) {\n return true;\n }\n return false;\n }\n return false;\n }", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "public void testDIGITS5() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 242, \"\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }", "public static int add(String numbers) throws IllegalArgumentException {\t\t\n\t\tint sum = 0; //resultado da soma;\n\t\tboolean negatives = false; //verifica se existem negativos;\n\t\tString ExceptMessage = \"negativos proibidos [\", //mensagem de erro quando negativo eh lido;\n\t\t\t RegEx = \"\"; //caracteres a serem considerados delimitadores;\n\t\t\n\t\tif(numbers.length() > 0) {\n\t\t \ti = 1; dl = false;\n\t\t\tRegEx = delimiters(numbers); //leitura dos novos delimitadores, se existirem;\n\t\t\t\n\t\t\t//remocao do inicio de numbers, caso hajam definicoes de novos delimitadores;\n\t\t\tif(dl) numbers = numbers.substring(i, numbers.length()); \n\t\t}\n\t\t\t\t\t\t\n\t\tString[] splt = numbers.split(\",|\\\\n|\\\\s\" + RegEx); //quebra de numbers nos delimitadores;\n\t\t\n\t//tratamento dos caracteres restantes apos remocao dos delimitadores; - - - - - - - - - - - - - - -\n\t\ttry {\n\t\t\tfor(String w:splt) {\n\t\t\t\tif(w.length() == 0) //string vazia, desconsiderar;\n\t\t\t\t\tcontinue;\n\n\t\t\t\telse if(Integer.parseInt(w) < 0) { //numero negativo, joga excecao + mensagem de erro;\n\t\t\t\t\tif(negatives)\n\t\t\t\t\t\tExceptMessage += \" \"; //realiza espaçamento correto na mensagem de erro;\n\n\t\t\t\t\tExceptMessage += w;\n\t\t\t\t\tnegatives = true;\n\t\t\t\t\t\n\t\t\t\t\tcontinue; //impede processamento do numero negativo na soma;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint par = Integer.parseInt(w); //converte a string em numero;\n\t\t\t\t\n\t\t\t\tif(par > 1000) //desconsidera numeros maiores que 1000;\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tsum += par; //se tudo der certo, atualiza a soma;\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException e) { throw new IllegalArgumentException(); }\n\t//fim do tratamento dos caracteres; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\n\t\tif(negatives) { //se houverem numeros negativos, joga excecao apos registrar os negativos na entrada;\n\t\t\tExceptMessage += \"]\\n\";\n\t\t\tthrow new IllegalArgumentException(ExceptMessage);\n\t\t}\n\t\t\n\t\treturn sum; //se der tudo certo, retorna a soma dos numeros em numbers;\n\t}", "private int validate(final String lcono) {\n\n if (lcono == null || lcono.isEmpty())\n return 1;\n else if (!lcono.matches(\"\\\\d*\\\\.?\\\\d+\"))\n return 2;\n\n return 0;\n }", "private static boolean isNumeric(String str) {\n // The regular expression can match all numbers, including negative numbers\n Pattern pattern = Pattern.compile(\"-?[0-9]+(\\\\.[0-9]+)?\");\n String bigStr;\n try {\n bigStr = new BigDecimal(str).toString();\n } catch (Exception e) {\n return false;\n }\n // matcher是全匹配\n Matcher isNum = pattern.matcher(bigStr);\n return isNum.matches();\n }", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}", "public String checkNumber(String num)\n {\n String[] numbers=num.split(\",\");\n int[] number=new int[numbers.length];\n\n //convert string elements into integer and store in array\n for(int i=0;i<numbers.length;i++)\n {\n number[i]=Integer.parseInt(numbers[i]);\n }\n int flag=0;\n\n //check if the numbers in the array are consecutive\n for(int i=0;i<number.length-1;i++)\n {\n if(number[i+1]==(number[i]-1))\n {\n flag=1;\n }\n else {\n flag=0;\n break;\n }\n }\n if(flag==1)\n {\n return \"Consecutive numbers\";\n }\n else{\n return \"Non consecutive numbers\";\n }\n }", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "public static boolean GroupingSpec(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"GroupingSpec\")) return false;\n if (!nextTokenIs(b, DOLLAR_SIGN)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = GroupingVariable(b, l + 1);\n r = r && GroupingSpec_1(b, l + 1);\n r = r && GroupingSpec_2(b, l + 1);\n exit_section_(b, m, GROUPING_SPEC, r);\n return r;\n }", "private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}", "@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }", "@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }", "public void testFormatting()\r\n {\n \tassertNotNull(\"failed to create degree symbol\", DEGREE_SYMBOL);\r\n \tassertEquals(\"degree symbol wrong length\", 1, DEGREE_SYMBOL.length());\r\n \t\r\n WorldLocation la = new WorldLocation(0d, 0d, 0d);\r\n String res1 = \" 00\" + DEGREE_SYMBOL + \"00\\'00.00\\\" 000\" + DEGREE_SYMBOL + \"00\\'00.00\\\"\";\r\n super.assertEquals(\"first test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(-12.345);\r\n la.setLong(22.432);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'42.00\\\"S 022\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"second test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(12.34533);\r\n la.setLong(-22.43222);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'43.19\\\"N 022\" + DEGREE_SYMBOL + \"25\\'55.99\\\"W\";\r\n super.assertEquals(\"third test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(82.345);\r\n la.setLong(172.432);\r\n res1 = \" 82\" + DEGREE_SYMBOL + \"20\\'42.00\\\"N 172\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"fourth test\", res1, BriefFormatLocation.toString(la));\r\n\r\n }" ]
[ "0.68831277", "0.61776465", "0.5933609", "0.57527226", "0.57197726", "0.56095326", "0.5541078", "0.55341756", "0.5485538", "0.54055446", "0.5404588", "0.53864646", "0.5368316", "0.53531444", "0.53414613", "0.5340443", "0.5338425", "0.53383946", "0.5336767", "0.53367037", "0.5327016", "0.53079647", "0.5301688", "0.52914935", "0.52829134", "0.52747315", "0.5266192", "0.52310455", "0.52200717", "0.5203088", "0.51694757", "0.51641494", "0.5157819", "0.5151061", "0.51340455", "0.51286215", "0.5126954", "0.50896716", "0.50268596", "0.5017604", "0.501405", "0.5010324", "0.50056654", "0.5004771", "0.49913704", "0.49853435", "0.49744987", "0.49649045", "0.49640036", "0.49620077", "0.49348408", "0.4924028", "0.49228057", "0.49138758", "0.49071658", "0.48997968", "0.48993146", "0.4882764", "0.4880506", "0.48710537", "0.48699862", "0.48690838", "0.48681578", "0.48656857", "0.48597077", "0.48480856", "0.48464757", "0.48402327", "0.48396766", "0.48375016", "0.48369065", "0.48339176", "0.48320588", "0.48253003", "0.48237088", "0.48177242", "0.48121148", "0.48104534", "0.48071295", "0.48035648", "0.48029956", "0.4799439", "0.4798749", "0.47953853", "0.47908783", "0.4787871", "0.47798988", "0.4779323", "0.4777402", "0.47720993", "0.4765296", "0.47644883", "0.47596544", "0.47577468", "0.47559878", "0.47552672", "0.47516546", "0.47489676", "0.47452655", "0.47434634" ]
0.6462454
1
Tests that grouping separators are handled correctly for negative numbers.
@Test public void testValidNegativeInputWithGroupingSeparator() { String normalInput = "-1,357.459"; String germanInput = "-1.357,459"; BigDecimal expectedOutput = new BigDecimal("-1357.459"); // 'no symbols' processors should choke on grouping separators for( CellProcessor p : Arrays.asList(processor, processorChain) ) { try { p.execute(normalInput, ANONYMOUS_CSVCONTEXT); fail("should have thrown SuperCsvCellProcessorException"); } catch(SuperCsvCellProcessorException e) {} } // normal input for( final CellProcessor p : Arrays.asList(processor2, processorChain2) ) { assertExecution(p, normalInput, expectedOutput); } // german input (opposite - "," is decimal symbol and "." is grouping) for( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) { assertExecution(p, germanInput, expectedOutput); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testValidInputWithGroupingSeparator() {\n\t\tString normalInput = \"1,357.459\";\n\t\tString germanInput = \"1.357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(\"1357.459\");\n\t\t\n\t\t// 'no symbols' processors should choke on grouping separators\n\t\tfor( CellProcessor p : Arrays.asList(processor, processorChain) ) {\n\t\t\ttry {\n\t\t\t\tp.execute(normalInput, ANONYMOUS_CSVCONTEXT);\n\t\t\t\tfail(\"should have thrown SuperCsvCellProcessorException\");\n\t\t\t}\n\t\t\tcatch(SuperCsvCellProcessorException e) {}\n\t\t}\n\t\t\n\t\t// normal input\n\t\tfor( final CellProcessor p : Arrays.asList(processor2, processorChain2) ) {\n\t\t\tassertExecution(p, normalInput, expectedOutput);\n\t\t}\n\t\t\n\t\t// german input (opposite - \",\" is decimal symbol and \".\" is grouping)\n\t\tfor( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) {\n\t\t\tassertExecution(p, germanInput, expectedOutput);\n\t\t}\n\t}", "@Ignore\n\tpublic void testSumShouldNotAcceptPlusSignAsSeparator() {\n\t\tString input = \"85+56\";\n\t\tString separator = \"+\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}", "@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }", "@Test\n public void canParseSeparator(){\n int[] i = null;\n try {\n i = SUT.getColumnWidthsFromString(\"1,2,3\");\n } catch (ImportException e) {\n Assert.fail(e.getMessage());\n }\n\n Assert.assertNotNull(i);\n Assert.assertEquals(i[0], 1);\n Assert.assertEquals(i[1], 2);\n Assert.assertEquals(i[2], 3);\n }", "@Test(expected=ArithmeticException.class)\n public void testSplitOnZero() {\n Money money = new Money(new BigDecimal(\"50.00\"));\n money.split(0);\n fail(\"Can't split by 0\");\n }", "@Test\n\tpublic void testValidNegativeInput() {\n\t\t\n\t\tString normalInput = \"-1357.459\";\n\t\tString germanInput = \"-1357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(normalInput);\n\t\t\n\t\t// normal input\n\t\tfor( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) {\n\t\t\tassertExecution(p, normalInput, expectedOutput);\n\t\t}\n\t\t\n\t\t// german input (\",\" instead of \".\" as decimal symbol)\n\t\tfor( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) {\n\t\t\tassertExecution(p, germanInput, expectedOutput);\n\t\t}\n\t}", "@Test(expected=MalformedNumberException.class)\n public void spacesInWeirdPlaces() throws MalformedNumberException {\n new RomanArabicConverter(\"1 4\");\n }", "public static String multiFormatNumber(Number theValue, String format, String groupSep, String decimalSep) throws BaseException\n {\n try\n {\n \tString result = null;\n \tNumber value = theValue;\n \tDecimalFormat _df = new DecimalFormat();\n \t_df.setRoundingMode(RoundingMode.HALF_UP);\n \tif(format.indexOf(\";\") == -1)\n \t{\n \t _df.applyPattern(format);\n\t result = _df.format(value);\n\t \n \t}\n \telse\n \t{\n\n \t String[] formatting = null;\n \t String[] formatType = { \"posFrmt\", \"negFrmt\", \"zeroFrmt\", \"nullFrmt\" };\n \t HashMap<String,String> formatMap = new HashMap<String,String>();\n \t formatting = format.split(\";\");\n\n \t for(int i = 0; i < formatting.length; i++)\n \t {\n \t\tformatMap.put(formatType[i], formatting[i]);\n \t }\n\n \t \n \t if(value == null)\n \t {\n \t\tif(formatMap.get(\"nullFrmt\") != null)\n \t\t{\n \t\t _df.applyPattern(formatMap.get(\"nullFrmt\"));\n \t\t result = _df.format(0);\n \t\t}\n \t }\n \t else\n \t {\n \t\tDouble valDouble = value.doubleValue();\n \t\tif(valDouble > 0)\n \t\t{\n \t\t if(formatMap.get(\"posFrmt\") != null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"posFrmt\"));\n \t\t\tresult = _df.format(value);\n \t\t }\n \t\t}\n \t\telse if(valDouble < 0)\n \t\t{\n \t\t if(formatMap.get(\"negFrmt\") != null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"negFrmt\"));\n \t\t\tvalue = Math.abs(valDouble);\n \t\t\tresult = _df.format(value);\n \t\t }\n \t\t}\n \t\telse if(valDouble == 0)\n \t\t{\n \t\t if(formatMap.get(\"zeroFrmt\") == null)\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"posFrmt\"));\n \t\t }\n \t\t else\n \t\t {\n \t\t\t_df.applyPattern(formatMap.get(\"zeroFrmt\")); \t\t\t\n \t\t }\n \t\t result = _df.format(valDouble);\n \t\t}\n \t }\n \t}\n \t\n \tString returnFrmt = null;\n \tif(result != null)\n \t{\n \t String theGrpSep = groupSep;\n \t String theDecSep = decimalSep;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t// return group and decimal separator from session if any\n \t\tString[] grpDecArr = returnGroupDecimalSep();\n \t\tif(theGrpSep == null || theGrpSep.isEmpty())\n \t\t{\n \t\t theGrpSep = grpDecArr[0];\n \t\t}\n \t\tif(theDecSep == null || theDecSep.isEmpty())\n \t\t{\n \t\t theDecSep = grpDecArr[1];\n \t\t}\n \t }\n \t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n \t returnFrmt = result.replace(\",\",\"#grp#\");\n \t returnFrmt = returnFrmt.replace(\".\",theDecSep+\"\");\n \t returnFrmt = returnFrmt.replace(\"#grp#\",theGrpSep+\"\");\n \t}\n\t \n\t return returnFrmt;\n }\n catch(Exception e)\n {\n \t throw new BaseException(e);\n }\n }", "private static boolean isNegativeNumberFollowingLeftBracket(String s, int index) {\n while (index < s.length()) {\n char c = s.charAt(index);\n if (c == ' ') {\n index++;\n continue;\n }\n if (c == '-') {\n return isDigitFollowing(s, index + 1);\n } else {\n return false;\n }\n }\n return false;\n }", "protected static boolean isSeparator(int c) {\n return (c == -1 || SEPARATORS.indexOf(c) != -1);\n }", "@Test(expected = RuntimeException.class)\n\tpublic void shouldReturnExceptionWhenNegativeNumberasInput(){\n\t\tstringCalculator.addString(\"3,-5,6,-9\");\n\t}", "@Test\n void testWhiteSpace() {\n assertEquals(1, Calculator.calculate(\" 5 - 4\"));\n }", "@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }", "public AVT getGroupingSeparator()\n {\n return m_groupingSeparator_avt;\n }", "@Test\n public final void whenSemicolonDelimiterIsSpecifiedThenItIsUsedToSeparateNumbers() {\n assertEquals(3+6+15, StringCalculator.add(\"//;\\n3;6;15\"));\n }", "public static String[] returnGroupDecimalSep()\n {\n String[] returnVal = new String[]{\",\",\".\"};\n // if at level of presentation level then take the separators from session\n if(ActionContext.getContext() != null && ServletActionContext.getRequest() != null)\n {\n \t HashMap<String , Object> theFormats = RootUtil.returnNumberFormat(ServletActionContext.getRequest().getSession());\n \t returnVal[0] = StringUtil.nullEmptyToValue(theFormats.get(\"groupSepa\"), \",\");\n \t returnVal[1] = StringUtil.nullEmptyToValue(theFormats.get(\"decimalSepa\"), \".\");\n }\n else\n {\n \t// if there is not session then need to take the separators from initial load if available\n \tif(ConstantsCommon.PATH_GROUP_SEPARATOR != null)\n \t{\n \t returnVal[0] = ConstantsCommon.PATH_GROUP_SEPARATOR;\n \t}\n \tif(ConstantsCommon.PATH_DECIMAL_SEPARATOR != null)\n \t{\n \t returnVal[1] = ConstantsCommon.PATH_DECIMAL_SEPARATOR;\n \t}\n }\n return returnVal;\n }", "@Test(expectedExceptions = ParseException.class)\n\tpublic void testInvalidNumber() throws ParseException {\n\t\tparser(\"<%=-41a%>\").block();\n\t}", "private static boolean isNegative(String value) {\n if (value.indexOf(\"-\") != -1) {\n return true;\n }\n return false;\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "@Test\r\npublic void dosNumerosComa(){\r\n try {\r\n assertEquals(Calculadora.add(\"1,5\"), 6);\r\n assertEquals(Calculadora.add(\"2,6\"), 8);\r\n assertEquals(Calculadora.add(\"31,2\"), 33);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con dos numeros separados por una coma\");\r\n }\r\n}", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "@Test (expected = DataFormatException.class)\n \tpublic void testDelete_NegativeInvalidCredit() throws DataFormatException {\n \t\tSystem.out.println(\"DeleteTest 8: Tests constructor's ability to catch and reject credit amount values less than zero or have invalid (i.e.minus,-) characters...\");\n\t\tString line = \"manager AA -00099.99\";\n \t\tDelete test = new Delete( line);\n \t}", "public static String format(Object val, String pattern, char groupsepa, char decimalsepa)\n {\n if(val == null)\n {\n\t return \"\";\n } \n try\n {\n\t DecimalFormat _df = new DecimalFormat();\n\t _df.setRoundingMode(RoundingMode.HALF_UP);\n\t _df.applyPattern(pattern);\n\n\t String standardFrmt = _df.format(val);\n\t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n\t String returnFrmt = standardFrmt.replace(\",\",\"#grp#\");\n\t returnFrmt = returnFrmt.replace(\".\",decimalsepa+\"\");\n\t returnFrmt = returnFrmt.replace(\"#grp#\",groupsepa+\"\");\n\t return returnFrmt;\n\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n}", "@Test\n public void testGroupComparator() throws Exception {\n assertEquals(-1, runGroupComparator(\"LembosGroupComparatorTest-testGroupComparator\", 1, 3));\n }", "private boolean formalDateContainsNegativeNumber(String source) {\n String dateWithNegativePattern = \".*-\\\\d+/|/-\\\\d+.*\";\n return source.matches(dateWithNegativePattern);\n }", "static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }", "@Test\r\npublic void separadorNuevaLinea() {\r\n try {\r\n assertEquals(Calculadora.add(\"2,4\\n6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4,6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4\"), 6);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\\n8\\n10\"), 30);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\\n8\\n10,12\"), 42);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con separador(es) de nueva línea\");\r\n }\r\n}", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}", "@Test\n public void shouldReplaceSign() {\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').trimAndCollapseFrom(\"$$ this is $ test $$\",'x'),containsString(\" this is x test \"));\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').or(CharMatcher.is(' ')).trimFrom(\"$$ this is $ test $$\"),equalTo(\"this is $ test\"));\n }", "@Test\r\npublic void multiplesNumerosSeparadosPorComa() {\r\n try {\r\n assertEquals(Calculadora.add(\"1,6,11,6\"), 24);\r\n assertEquals(Calculadora.add(\"1,2,3,5,6,7,8\"), 32);\r\n assertEquals(Calculadora.add(\"1,4,12,5,20\"), 42);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con varios números separados por una coma\");\r\n }\r\n}", "@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }", "private static String removeDigitGroupSeparators(final String input)\n {\n final String output = input.trim();\n\n // Replace one occurrence only, otherwise we will generate an incorrect result\n if (output.contains(\",\"))\n {\n return output.replace(\",\", \"\");\n }\n else\n {\n return output.replace(\".\", \"\");\n }\n }", "@Test\n\tpublic void testIncorrectSyntax() {\n\t\ttry {\n\t\t\t\tcalculator.calculeteSum(\"2 1\");\n\t\t} catch(CalculatorException e) {\n\t\t\t\tassertEquals(\"Input not valid!\", e.getMessage());\n\t\t}\n\t\t\n\t\t// not uniform delimiter\n\t\ttry {\n\t\t\tcalculator.calculeteSum(\"2 1,3\");\n\t\t} catch (CalculatorException e) {\n\t\t\tassertEquals(\"Used invalid delimiter ',', expected ' '!\", e.getMessage());\n\t\t}\n\t\t\n\t\t// with some text\n\t\ttry {\n\t\t\tcalculator.calculeteSum(\"hallo\");\n\t\t} catch (CalculatorException e) {\n\t\t\tassertEquals(\"Input not valid!\", e.getMessage());\n\t\t}\n\t}", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "@Test\n\tpublic void test_StringCalculator_WhenNewlineBetweenNumbers_Then_ReturnTheValidSum() {\n\t\tAssert.assertEquals(6,calc.Add(\"1\\n2,3\"));\n\t}", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedRight() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(0);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(11, true);\n\n // reorder outside group valid\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 4, true));\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 6, 7, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 7, 4, true));\n // in same group where adjacent group is also unbreakable\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 8, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 10, 8, true));\n // to any other group\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 5, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 1, 9, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 2, 13, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 8, true));\n }", "@Test\n\tpublic void testSumShouldBeValid() {\n\t\tString input = \"85,56\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tlogger.logInfo(EasyMock.anyString());\n\t\tassertEquals(Integer.valueOf(0), underTest.sum(input, separator));\n\t}", "@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }", "@Test\n public void testAnyDigitSequences() {\n assertThat(regex(seq(e(\"0\"), e(\"1\"), X))).isEqualTo(\"01\\\\d\");\n // \"\\d\\d\" is shorter than \"\\d{2}\"\n assertThat(regex(seq(X, X))).isEqualTo(\"\\\\d\\\\d\");\n assertThat(regex(seq(X, X, X))).isEqualTo(\"\\\\d{3}\");\n // Top level optional groups are supported.\n assertThat(regex(opt(seq(X, X)))).isEqualTo(\"(?:\\\\d{2})?\");\n // Optional parts go at the end.\n assertThat(regex(\n seq(\n opt(seq(X, X)),\n X, X)))\n .isEqualTo(\"\\\\d\\\\d(?:\\\\d{2})?\");\n // \"(x(x(x)?)?)?\"\n Edge anyGrp = opt(seq(\n X,\n opt(seq(\n X,\n opt(X)))));\n // The two cases of a group on its own or as part of a sequence are handled separately, so\n // must be tested separately.\n assertThat(regex(anyGrp)).isEqualTo(\"\\\\d{0,3}\");\n assertThat(regex(seq(e(\"1\"), e(\"2\"), anyGrp))).isEqualTo(\"12\\\\d{0,3}\");\n // xx(x(x(x)?)?)?\"\n assertThat(regex(seq(X, X, anyGrp))).isEqualTo(\"\\\\d{2,5}\");\n // Combining \"any digit\" groups produces minimal representation\n assertThat(regex(seq(anyGrp, anyGrp))).isEqualTo(\"\\\\d{0,6}\");\n }", "public void setGroupingSeparator(AVT v)\n {\n m_groupingSeparator_avt = v;\n }", "public static String format(Object val, String pattern, String groupsepa, String decimalsepa)\n {\n try\n {\n \t String theGrpSep = groupsepa;\n \t String theDecSep = decimalsepa;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t // return group and decimal separator from session if any\n \t String[] grpDecArr = returnGroupDecimalSep();\n \t if(theGrpSep == null || theGrpSep.isEmpty())\n \t {\n \t\t theGrpSep = grpDecArr[0];\n \t }\n \t if(theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t theDecSep = grpDecArr[1];\n \t }\n \t }\n \t return format(val,pattern, theGrpSep.charAt(0), theDecSep.charAt(0));\n }\n catch(Exception e )\n {\n \t log.error(e, \"[NumberUtil] Error caught in method format\");\n \t return \"\";\n }\n }", "@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String string0 = SQLUtil.normalize(\"^`-{}\\\"8M,,3\", true);\n assertEquals(\"^ ` - { } \\\"8M,,3\\\"\", string0);\n }", "@Test\n\tvoid testNegativeInteger() {\n\t\tint result = calculator.negativeInteger(-4,-3);\n\t\tassertEquals(-1,result);\n\t}", "private boolean isAllNums(String fieldVal){\r\n // Get rid of all whitespace\r\n String val = fieldVal.replaceAll(\"\\\\s\",\"\").trim();\r\n // check for presence of letters in the string, ignoring '()' and '-'\r\n for (int i=0; i < val.length(); i++){\r\n if (val.charAt(i) != '(' || val.charAt(i) != ')' || val.charAt(i) != '-'){\r\n if (Character.isLetter(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n }\r\n return true; \r\n }", "public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "private boolean esDelimitador(char c){\n if ((\"+-/*^=%()\".indexOf (c) != -1)){\n return true;\n }else{\n return false;\n }\n }", "protected boolean isSeparator(char c) {\n return c == SEPARATOR;\n }", "private boolean parseZeroesSection() {\n if (parseDoubleColon()) {\n zeroesSectionStart = hextetCount;\n return true;\n }\n return false;\n }", "public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isSeparatorOrInf(AnalyzedTokenReadings[] tokens, int n) {\n return isSeparator(tokens[n].getToken()) || tokens[n].hasPosTagStartingWith(\"VER:INF\")\n || (tokens.length > n + 1 && tokens[n].getToken().equals(\"zu\") && tokens[n + 1].matchesPosTagRegex(\"VER:.*INF.*\"));\n }", "public boolean isNegative() {\n return (numberString.charAt(0) == '-');\n }", "@Test\n public void testNesting() {\n assertThat(regex(\n seq(\n e(\"0\"),\n or(\n e(\"1\"),\n seq(\n e(\"2\"),\n opt(e(\"3\"), e(\"4\")))),\n e(\"5\"), e(\"6\"))))\n .isEqualTo(\"0(?:1|2(?:3|4)?)56\");\n }", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "@Test\n public void testNineNegativeRegionToPuncturePoint(){\n precisionAssertEquals(\n \"Test [x = -5.8]: nine negative region\",\n 3.89952,\n systemFunctions.calculate(-5.8)\n );\n precisionAssertEquals(\n \"Test [x = -6.0]: nine negative region\",\n -29.835,\n systemFunctions.calculate(-6.0)\n );\n precisionAssertEquals(\n \"Test [x = -6.2]: nine negative region\",\n -2866.63,\n systemFunctions.calculate(-6.2)\n );\n }", "@Test\n public void testNineNegativeRegionToPuncturePoint(){\n precisionAssertEquals(\n \"Test [x = -5.8]: nine negative region\",\n 3.89952,\n systemFunctions.calculate(-5.8)\n );\n precisionAssertEquals(\n \"Test [x = -6.0]: nine negative region\",\n -29.835,\n systemFunctions.calculate(-6.0)\n );\n precisionAssertEquals(\n \"Test [x = -6.2]: nine negative region\",\n -2866.63,\n systemFunctions.calculate(-6.2)\n );\n }", "private boolean isLegalNumChar(char c) {\n return c == '-'\n || c == '+'\n || (c >= '0' && c <= '9')\n || c == 'e'\n || c == 'E'\n || c == '.';\n }", "@Test\n @Disabled\n public void testValidateFormat() {\n assertTrue(RegExprMain.validateFormat(\"CC222CC\"));\n assertTrue(RegExprMain.validateFormat(\"DD333DD\"));\n assertTrue(RegExprMain.validateFormat(\"AA999AA\"));\n assertTrue(RegExprMain.validateFormat(\"VV555VV\"));\n assertTrue(RegExprMain.validateFormat(\"JJ777JJ\"));\n assertFalse(RegExprMain.validateFormat(\"J777JJ\"));\n assertFalse(RegExprMain.validateFormat(\"JJ777J\"));\n assertFalse(RegExprMain.validateFormat(\"JJ77JJ\"));\n assertFalse(RegExprMain.validateFormat(\"JJ777AA\"));\n assertFalse(RegExprMain.validateFormat(\"AA777JJ\"));\n \n\n }", "@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }", "@Test\n\tpublic void testSumShouldGiveBackTheInputIfItContainsOnlyOneNumber() {\n\t\tString input = \"8556\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tassertEquals(Integer.valueOf(0), underTest.sum(input, separator));\n\t}", "public static TextFormatter soloNumeros() {\r\n DecimalFormat format = new DecimalFormat(\"##\");\r\n return new TextFormatter<>(c -> {\r\n if (c.getControlNewText().isEmpty()) {\r\n return c;\r\n }\r\n ParsePosition parsePosition = new ParsePosition(0);\r\n Object object = format.parse(c.getControlNewText(), parsePosition);\r\n if (object == null || parsePosition.getIndex() < c.getControlNewText().length()) {\r\n return null;\r\n } else {\r\n return c;\r\n }\r\n });\r\n }", "private DecimalFormat getNumberFormatter(\n TransformerImpl transformer, int contextNode) throws TransformerException\n {\n // Patch from Steven Serocki\n // Maybe we really want to do the clone in getLocale() and return \n // a clone of the default Locale??\n Locale locale = (Locale)getLocale(transformer, contextNode).clone();\n\n // Helper to format local specific numbers to strings.\n DecimalFormat formatter = null;\n\n //synchronized (locale)\n //{\n // formatter = (DecimalFormat) NumberFormat.getNumberInstance(locale);\n //}\n\n String digitGroupSepValue =\n (null != m_groupingSeparator_avt)\n ? m_groupingSeparator_avt.evaluate(\n transformer.getXPathContext(), contextNode, this) : null;\n \n \n // Validate grouping separator if an AVT was used; otherwise this was \n // validated statically in XSLTAttributeDef.java.\n if ((digitGroupSepValue != null) && (!m_groupingSeparator_avt.isSimple()) &&\n (digitGroupSepValue.length() != 1))\n {\n transformer.getMsgMgr().warn(\n this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n new Object[]{ Constants.ATTRNAME_NAME, m_groupingSeparator_avt.getName()}); \n } \n \n \n String nDigitsPerGroupValue =\n (null != m_groupingSize_avt)\n ? m_groupingSize_avt.evaluate(\n transformer.getXPathContext(), contextNode, this) : null;\n\n // TODO: Handle digit-group attributes\n if ((null != digitGroupSepValue) && (null != nDigitsPerGroupValue) &&\n // Ignore if separation value is empty string\n (digitGroupSepValue.length() > 0))\n {\n try\n {\n formatter = (DecimalFormat) NumberFormat.getNumberInstance(locale);\n formatter.setGroupingSize(\n Integer.valueOf(nDigitsPerGroupValue).intValue());\n \n DecimalFormatSymbols symbols = formatter.getDecimalFormatSymbols();\n symbols.setGroupingSeparator(digitGroupSepValue.charAt(0));\n formatter.setDecimalFormatSymbols(symbols);\n formatter.setGroupingUsed(true);\n }\n catch (NumberFormatException ex)\n {\n formatter.setGroupingUsed(false);\n }\n }\n\n return formatter;\n }", "private static List<TableCell.Alignment> parseSeparator(CharSequence s) {\n List<TableCell.Alignment> columns = new ArrayList<>();\n int pipes = 0;\n boolean valid = false;\n int i = 0;\n while (i < s.length()) {\n char c = s.charAt(i);\n switch (c) {\n case '|':\n i++;\n pipes++;\n if (pipes > 1) {\n // More than one adjacent pipe not allowed\n return null;\n }\n // Need at lest one pipe, even for a one column table\n valid = true;\n break;\n case '-':\n case ':':\n if (pipes == 0 && !columns.isEmpty()) {\n // Need a pipe after the first column (first column doesn't need to start with one)\n return null;\n }\n boolean left = false;\n boolean right = false;\n if (c == ':') {\n left = true;\n i++;\n }\n boolean haveDash = false;\n while (i < s.length() && s.charAt(i) == '-') {\n i++;\n haveDash = true;\n }\n if (!haveDash) {\n // Need at least one dash\n return null;\n }\n if (i < s.length() && s.charAt(i) == ':') {\n right = true;\n i++;\n }\n columns.add(getAlignment(left, right));\n // Next, need another pipe\n pipes = 0;\n break;\n case ' ':\n case '\\t':\n // White space is allowed between pipes and columns\n i++;\n break;\n default:\n // Any other character is invalid\n return null;\n }\n }\n if (!valid) {\n return null;\n }\n return columns;\n }", "public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "public static int Add(String numbers){\r\n \r\n int sum = 0;\r\n String negString = \"\";\r\n boolean negFlag = false;\r\n boolean commaFlag = false;\r\n \r\n String numberComponent[];\r\n String delimiterString;\r\n String delimiters[];\r\n String delimiterRegEx = \"\";\r\n \r\n System.out.println(\"Working string:\\n\"+numbers);\r\n //separate delimiter and number strings\r\n String newlineSplit[] = numbers.split(\"\\n\");\r\n \r\n if(numbers == null || numbers.isEmpty()){ //check for empty or null input\r\n System.out.println(\"String is empty or null\\n\");\r\n return 0;\r\n }\r\n else if(newlineSplit[0].charAt(0) != '/' || newlineSplit[0].charAt(1) != '/') { //check if string begins with '//'\r\n \tSystem.out.println(\"String is invalid\\n\");\r\n \treturn 0;\r\n }\r\n else { //get here if string has content and begins with '//'\r\n \t//take delimiter string of first split and ignore '//'\r\n \tdelimiterString = newlineSplit[0].substring(2);\r\n \t\r\n \t//check if ',' is one of the delimiters (do this since comma is also delimiter in delimiter string\r\n \tif(delimiterString.contains(\",,\") || delimiterString.equals(\",\")) {\r\n \t\tcommaFlag = true;\r\n \t}\r\n \t\r\n \tdelimiters = delimiterString.split(\",\");\r\n \t\r\n \t//add comma as delimiter if it existed (split erases comma if used as delimiter previously)\r\n \tif(commaFlag == true) {\r\n \t\tdelimiterRegEx += \"\\\\,\";\r\n \t\t\tcommaFlag = false;\r\n \t\t}\r\n \t\r\n \t//for each delimiter found\r\n \tfor(String temp:delimiters) {\r\n \t\t//escape all characters\r\n \t\ttemp = temp.replace(\"\"+temp.charAt(0), \"\\\\\"+temp.charAt(0));\r\n \t\t//continuously add to new regex (separate with OR for multiple delimiters)\r\n \t\tif(delimiterRegEx.length() == 0) {\r\n \t\t\tdelimiterRegEx += temp;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tdelimiterRegEx += \"|\"+temp;\r\n \t\t}\r\n \t}\r\n }\r\n \r\n System.out.println(\"Start of calculation...\");\r\n //split using regex generated, get every number as string\r\n numberComponent = newlineSplit[1].split(delimiterRegEx);\r\n \r\n for (String tempVal: numberComponent){\r\n \tif(Integer.valueOf(tempVal) < 0) { //raise error and record number if negative\r\n \t\tif(negString.length() == 0) {\r\n \t\t\tSystem.out.println(\"Negatives not allowed\");\r\n \t\t\tnegFlag = true;\r\n \t\t\tnegString += tempVal;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tnegString += \",\"+tempVal;\r\n \t\t}\r\n \t\tcontinue;\r\n \t}\r\n \telse if(Integer.valueOf(tempVal) > 1000) { //raise message and ignore if number is >1000\r\n \t\tSystem.out.println(\"Large number found and ignored\");\r\n \t\tcontinue;\r\n \t}\r\n \telse { //if passes all checks, add to sum\r\n \t\tsum += Integer.valueOf(tempVal);\r\n \t}\r\n \r\n }\r\n \r\n //display end message, depending if negatives were found or not\r\n if(negFlag == true) {\r\n \tSystem.out.println(\"Negative number(s) found: \"+negString+\"\\n\");\r\n }\r\n else {\r\n \tSystem.out.println(\"Sum is \"+sum);\r\n \tSystem.out.println(\"End of calculation!\\n\");\r\n }\r\n return 0;\r\n }", "@Test\n\tpublic void test_StringCalculator_WhenNewLineIsOnlyDelimiter_then_return_validSum() {\n\t\tAssert.assertEquals(8, calc.Add(\"1\\n2\\n1\\n2\\n2\"));\n\t}", "private String toPattern(boolean localized) {\n StringBuffer result = new StringBuffer();\n for (int j = 1; j >= 0; --j) {\n if (j == 1)\n appendAffix(result, posPrefixPattern, positivePrefix, localized);\n else\n appendAffix(result, negPrefixPattern, negativePrefix, localized);\n int i;\n int digitCount = useExponentialNotation ? getMaximumIntegerDigits() : Math.max(groupingSize, getMinimumIntegerDigits()) + 1;\n for (i = digitCount; i > 0; --i) {\n if (i != digitCount && isGroupingUsed() && groupingSize != 0 && i % groupingSize == 0) {\n result.append(localized ? symbols.getGroupingSeparator() : PATTERN_GROUPING_SEPARATOR);\n }\n result.append(i <= getMinimumIntegerDigits() ? (localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT) : (localized ? symbols.getDigit()\n : PATTERN_DIGIT));\n }\n if (getMaximumFractionDigits() > 0 || decimalSeparatorAlwaysShown)\n result.append(localized ? symbols.getDecimalSeparator() : PATTERN_DECIMAL_SEPARATOR);\n for (i = 0; i < getMaximumFractionDigits(); ++i) {\n if (i < getMinimumFractionDigits()) {\n result.append(localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT);\n } else {\n result.append(localized ? symbols.getDigit() : PATTERN_DIGIT);\n }\n }\n if (useExponentialNotation) {\n result.append(localized ? symbols.getExponentialSymbol() : PATTERN_EXPONENT);\n for (i = 0; i < minExponentDigits; ++i)\n result.append(localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT);\n }\n if (j == 1) {\n appendAffix(result, posSuffixPattern, positiveSuffix, localized);\n if ((negSuffixPattern == posSuffixPattern && // n == p == null\n negativeSuffix.equals(positiveSuffix))\n || (negSuffixPattern != null && negSuffixPattern.equals(posSuffixPattern))) {\n if ((negPrefixPattern != null && posPrefixPattern != null && negPrefixPattern.equals(\"'-\" + posPrefixPattern))\n || (negPrefixPattern == posPrefixPattern && // n ==\n // p ==\n // null\n negativePrefix.equals(symbols.getMinusSign() + positivePrefix)))\n break;\n }\n result.append(localized ? symbols.getPatternSeparator() : PATTERN_SEPARATOR);\n } else\n appendAffix(result, negSuffixPattern, negativeSuffix, localized);\n }\n return result.toString();\n }", "public void testShouldAddColonExcept(){\n indentlogic.addText(\"except\\n\");\n assertTrue(indentlogic.shouldAddColon());\n }", "public void testFormatting()\r\n {\n \tassertNotNull(\"failed to create degree symbol\", DEGREE_SYMBOL);\r\n \tassertEquals(\"degree symbol wrong length\", 1, DEGREE_SYMBOL.length());\r\n \t\r\n WorldLocation la = new WorldLocation(0d, 0d, 0d);\r\n String res1 = \" 00\" + DEGREE_SYMBOL + \"00\\'00.00\\\" 000\" + DEGREE_SYMBOL + \"00\\'00.00\\\"\";\r\n super.assertEquals(\"first test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(-12.345);\r\n la.setLong(22.432);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'42.00\\\"S 022\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"second test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(12.34533);\r\n la.setLong(-22.43222);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'43.19\\\"N 022\" + DEGREE_SYMBOL + \"25\\'55.99\\\"W\";\r\n super.assertEquals(\"third test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(82.345);\r\n la.setLong(172.432);\r\n res1 = \" 82\" + DEGREE_SYMBOL + \"20\\'42.00\\\"N 172\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"fourth test\", res1, BriefFormatLocation.toString(la));\r\n\r\n }", "void beginNotZeroDec(String stringzero){\n \t\tboolean findot = false;\n \t\tString mantisse = \"\";\n \t\tint exposant = -1;\n \t\tfor (int i = 0; i < stringzero.length(); i++) {\n \t\t\tswitch(stringzero.charAt(i)) {\n \t\t\tcase 'f':\n \t\t\t\tbreak;\n \t\t\tcase 'F':\n \t\t\t\tbreak;\n \t\t\tcase 'e':\n \t\t\t\texposantFlottantDec(mantisse, exposant, stringzero.substring(i+1));\n \t\t\t\treturn;\n \t\t\tcase 'E':\n \t\t\t\texposantFlottantDec(mantisse, exposant, stringzero.substring(i+1));\n \t\t\t\treturn;\n \t\t\tcase '.':\n \t\t\t\tfindot = true;\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\tmantisse += stringzero.charAt(i);\n \t\t\t\tif(!findot) {\n \t\t\t\t\texposant++;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\tcompareExposantDec(exposant, mantisse);\n \t}", "@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }", "@Test\n public void testCrazyCalculator() {\n CrazyCalculator calculator = new CrazyCalculator();\n List<String> lines = new ArrayList<>();\n lines.add(\"1\");\n lines.add(\"\");\n lines.add(\"+@1L\");\n lines.add(\"-+3R\");\n lines.add(\"*-2R\");\n lines.add(\"//2R\");\n lines.add(\"1@1\");\n lines.add(\"5@5+4\");\n lines.add(\"2@3-12/6/5+3\");\n lines.add(\"-1+3\");\n lines.add(\"-1--3\");\n calculator.setLines(lines);\n calculator.processLines();\n List<String> results = calculator.getResults();\n assertEquals(\"should be 5\", 5, results.size());\n assertEquals(\"should be 2\", 2, Integer.parseInt(results.get(0)));\n assertEquals(\"should be 6\", 6, Integer.parseInt(results.get(1)));\n assertEquals(\"should be 14\", 14, Integer.parseInt(results.get(2)));\n assertEquals(\"should be -4\", -4, Integer.parseInt(results.get(3)));\n assertEquals(\"should be 3\", 3, Integer.parseInt(results.get(4)));\n }", "private static String removeDigitGroupSeparatorAndDecimalPlaces(final String input, final char digitGroupSeparator)\n {\n // Make sure we only deal with known characters for digit group separation\n Assert.assertTrue(\"Expected digit group separator to be either ',' or '.'\", digitGroupSeparator == ',' || digitGroupSeparator == '.');\n\n // Which decimal separator do we have (based on provided digit group separator)\n final char decimalSeparator = (digitGroupSeparator == ',') ? '.' : ',';\n\n // Trim the string, remove any digit group separators and copy the string\n String output = input.trim().replace(String.valueOf(digitGroupSeparator), \"\");\n\n // Find potential decimal separator in our string..\n final int decimalSeparatorPosition = output.indexOf(decimalSeparator);\n if (decimalSeparatorPosition > 0)\n {\n // ..and ignore everything including and after the decimal separator (= remove decimal\n // places)\n output = output.substring(0, decimalSeparatorPosition);\n }\n\n return output;\n }", "@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }", "public boolean noSeparator(){\n return separator == EMPTY_CHAR;\n }", "private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }", "public boolean nextIsSep()\n {\n\n if (Character.isLetterOrDigit(str.charAt(currentPosition)))\n return false;\n else\n return true;\n }", "Boolean groupingEnabled();", "public final void rule__EFloat__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPantryTextual.g:748:1: ( ( ( '-' )? ) )\n // InternalPantryTextual.g:749:1: ( ( '-' )? )\n {\n // InternalPantryTextual.g:749:1: ( ( '-' )? )\n // InternalPantryTextual.g:750:2: ( '-' )?\n {\n before(grammarAccess.getEFloatAccess().getHyphenMinusKeyword_0()); \n // InternalPantryTextual.g:751:2: ( '-' )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==20) ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // InternalPantryTextual.g:751:3: '-'\n {\n match(input,20,FOLLOW_2); \n\n }\n break;\n\n }\n\n after(grammarAccess.getEFloatAccess().getHyphenMinusKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}", "protected boolean isMinus(char c) {\r\n\t\treturn c == '-';\r\n\t}", "@Test\n public void testNumbersInvalid() throws Exception {\n testLexerSource(\"6x foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6g foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6xsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6gsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n }", "@Test\n public void testReturningWrongType() throws Exception {\n try {\n runGroupComparator(\"LembosGroupComparatorTest-testReturningWrongType\", 1, 3);\n\n fail(\"The line above should had failed\");\n } catch (Exception e) {\n assertEquals(\"MapReduce function 'group' must return an integer\", e.getMessage());\n }\n }", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "private boolean checkSpacingTabs(){\r\n\t\tString tmp = \"\";\r\n\t\ttry{ tmp = doc.getText(getCaretPosition()-2,1); }\r\n\t\tcatch(BadLocationException a){};\r\n\t\tSystem.out.println((int)tmp.charAt(0));\r\n\t\tif(tmp.charAt(0) == 9) return true;\r\n\t\telse return false;\r\n\t}", "@Test\r\n public void testInvalidMinusPrefixExpressionWithSIUnits() throws IOException {\n checkError(\"-varS\", \"0xA0175\");\r\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "public static int add(String numbers) throws IllegalArgumentException {\t\t\n\t\tint sum = 0; //resultado da soma;\n\t\tboolean negatives = false; //verifica se existem negativos;\n\t\tString ExceptMessage = \"negativos proibidos [\", //mensagem de erro quando negativo eh lido;\n\t\t\t RegEx = \"\"; //caracteres a serem considerados delimitadores;\n\t\t\n\t\tif(numbers.length() > 0) {\n\t\t \ti = 1; dl = false;\n\t\t\tRegEx = delimiters(numbers); //leitura dos novos delimitadores, se existirem;\n\t\t\t\n\t\t\t//remocao do inicio de numbers, caso hajam definicoes de novos delimitadores;\n\t\t\tif(dl) numbers = numbers.substring(i, numbers.length()); \n\t\t}\n\t\t\t\t\t\t\n\t\tString[] splt = numbers.split(\",|\\\\n|\\\\s\" + RegEx); //quebra de numbers nos delimitadores;\n\t\t\n\t//tratamento dos caracteres restantes apos remocao dos delimitadores; - - - - - - - - - - - - - - -\n\t\ttry {\n\t\t\tfor(String w:splt) {\n\t\t\t\tif(w.length() == 0) //string vazia, desconsiderar;\n\t\t\t\t\tcontinue;\n\n\t\t\t\telse if(Integer.parseInt(w) < 0) { //numero negativo, joga excecao + mensagem de erro;\n\t\t\t\t\tif(negatives)\n\t\t\t\t\t\tExceptMessage += \" \"; //realiza espaçamento correto na mensagem de erro;\n\n\t\t\t\t\tExceptMessage += w;\n\t\t\t\t\tnegatives = true;\n\t\t\t\t\t\n\t\t\t\t\tcontinue; //impede processamento do numero negativo na soma;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint par = Integer.parseInt(w); //converte a string em numero;\n\t\t\t\t\n\t\t\t\tif(par > 1000) //desconsidera numeros maiores que 1000;\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tsum += par; //se tudo der certo, atualiza a soma;\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException e) { throw new IllegalArgumentException(); }\n\t//fim do tratamento dos caracteres; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\n\t\tif(negatives) { //se houverem numeros negativos, joga excecao apos registrar os negativos na entrada;\n\t\t\tExceptMessage += \"]\\n\";\n\t\t\tthrow new IllegalArgumentException(ExceptMessage);\n\t\t}\n\t\t\n\t\treturn sum; //se der tudo certo, retorna a soma dos numeros em numbers;\n\t}", "public void testShouldAddColonExceptSpace(){\n indentlogic.addText(\"except \\n\");\n assertTrue(indentlogic.shouldAddColon());\n }", "Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }", "public static List<Integer> parseHyphenatedIntList(String text) {\n List<Integer> result = new ArrayList<>();\n for (String s : RegEx.SPACES.split(text)) {\n if (s.contains(Symbol.MINUS)) {\n int first = getFirstIntValue(s);\n int last = getNthIntValue(s, 2);\n for (int i = first; i <= last; i++) {\n result.add(i);\n }\n } else {\n int only = Builder.parseIntOrDefault(s, -1);\n if (only >= 0) {\n result.add(only);\n }\n }\n }\n return result;\n }", "private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }", "@Test\n public void testSeparateNumber131() { // FlairImage: 131\n java.util.concurrent.atomic.AtomicBoolean totuus = new java.util.concurrent.atomic.AtomicBoolean(false); \n StringBuilder testi = new StringBuilder(); \n assertEquals(\"From: FlairImage line: 135\", 0, separateNumber(testi,'-',totuus)); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd\"); \n assertEquals(\"From: FlairImage line: 139\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 140\", \"asdasd\", testi.toString()); \n assertEquals(\"From: FlairImage line: 141\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 145\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 146\", \"asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 147\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 151\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 152\", \"asd-asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 153\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-123\"); \n assertEquals(\"From: FlairImage line: 157\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 158\", \"asd-asdasd-123\", testi.toString()); \n assertEquals(\"From: FlairImage line: 159\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-123-muumi\"); \n assertEquals(\"From: FlairImage line: 163\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 164\", \"asd-123-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 165\", false, totuus.get()); \n }", "@Test\n public void testCalculateRPNCustomNegativeNumbers() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"-10\",\"*\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(-120.0));\n }", "public final void rule__DOUBLE__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:5214:1: ( ( ( '-' )? ) )\r\n // InternalDroneScript.g:5215:1: ( ( '-' )? )\r\n {\r\n // InternalDroneScript.g:5215:1: ( ( '-' )? )\r\n // InternalDroneScript.g:5216:2: ( '-' )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDOUBLEAccess().getHyphenMinusKeyword_0()); \r\n }\r\n // InternalDroneScript.g:5217:2: ( '-' )?\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==35) ) {\r\n alt52=1;\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // InternalDroneScript.g:5217:3: '-'\r\n {\r\n match(input,35,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDOUBLEAccess().getHyphenMinusKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.println( parts1.length );\n //System.out.println( parts2.length);\n //System.out.println( parts3.length);\n if (parts1.length > 2) {\n System.out.println( parts1[0] );\n String case1 = caseNumber1.substring( caseNumber1.indexOf( caseNumber1.split( \"-\" )[0] ), caseNumber1.indexOf( caseNumber1.split( \"-\" )[2] ) - 1 );\n System.out.println( case1 );\n } else {\n String case1 = caseNumber1;\n System.out.println( case1 );\n }\n }", "@Test\r\n public void testInvalidDecSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS--\", \"0xA0171\");\r\n }", "@Test\n public void arabicOutOfBounds() throws MalformedNumberException {\n final RomanArabicConverter rac_low = new RomanArabicConverter(\"-1\");\n final RomanArabicConverter rac_high = new RomanArabicConverter(\"124121\");\n \n assertEquals(-1, rac_low.toArabic());\n assertEquals(124121, rac_high.toArabic());\n }" ]
[ "0.62648416", "0.6065441", "0.58628833", "0.5648904", "0.56177735", "0.55767286", "0.5557724", "0.5526522", "0.5483808", "0.54079485", "0.5360439", "0.52928907", "0.52892655", "0.5160777", "0.5155214", "0.5146242", "0.51447475", "0.5098361", "0.50619084", "0.5053646", "0.5042368", "0.5039792", "0.50365055", "0.5026186", "0.5019575", "0.5015775", "0.5010335", "0.50003624", "0.49725682", "0.4959071", "0.49408346", "0.4935949", "0.49343532", "0.49238542", "0.49212724", "0.49123222", "0.49109545", "0.49057156", "0.4896875", "0.48825598", "0.4880792", "0.48740566", "0.4869588", "0.48563698", "0.48532313", "0.48455453", "0.48420954", "0.4841955", "0.4839059", "0.48388252", "0.4835136", "0.48166084", "0.48147243", "0.48143908", "0.4813796", "0.4813796", "0.48029304", "0.47950897", "0.47851467", "0.47791985", "0.47754452", "0.4759645", "0.47589362", "0.4749926", "0.4749747", "0.47494215", "0.47456327", "0.47430643", "0.4740175", "0.47357595", "0.47302383", "0.471159", "0.47104555", "0.47030756", "0.47025406", "0.46907967", "0.4687372", "0.4685431", "0.46807173", "0.4677154", "0.46757883", "0.46745682", "0.4664315", "0.4658936", "0.46542966", "0.4645507", "0.46435702", "0.4630367", "0.46242696", "0.46197206", "0.46185455", "0.4617885", "0.46117768", "0.4611735", "0.46077803", "0.4603587", "0.4585785", "0.45852312", "0.4580556", "0.4577335" ]
0.72301304
0
Tests execution with a nonString input (should throw an exception).
@Test(expected = SuperCsvCellProcessorException.class) public void testWithNonString() { processor.execute(1234, ANONYMOUS_CSVCONTEXT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test(expected = InvalidCommandException.class)\n public void testInvalidCommand() {\n interpreterInstance.interpret(\"notacommand argumentshere\");\n }", "public void testexecute(String test) throws Exception;", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public Boolean test(String input);", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }", "@Test\n public void testInvokingStringMethodAndEvaluateWithWrongValue() {\n\n // Calling the String-Method and it should be avaluated with an int, the result should be false\n MethodInvokingEventCondition invokingEventCondition = new MethodInvokingEventCondition(DummyAdapterEvent.class,\n DummyAdapterEvent.METHOD_RETURNS_STRING, INT_TO_MATCH);\n\n Assert.assertFalse(invokingEventCondition.evaluate(dummyAdapterEvent));\n }", "@Test(expected = RuntimeException.class)\n\tpublic void shouldReturnExceptionWhenNegativeNumberasInput(){\n\t\tstringCalculator.addString(\"3,-5,6,-9\");\n\t}", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\r\n public void testExecute_inputValid() {\r\n \r\n {\r\n String input = maxStr;\r\n \r\n assertThat((Object)processor.execute(input, ANONYMOUS_CSVCONTEXT)).isEqualTo(input);\r\n assertThat((Object)processorChain.execute(input, ANONYMOUS_CSVCONTEXT)).isEqualTo(input);\r\n }\r\n \r\n {\r\n String input = maxStr.substring(0, max-1);\r\n \r\n assertThat((Object)processor.execute(input, ANONYMOUS_CSVCONTEXT)).isEqualTo(input);\r\n assertThat((Object)processorChain.execute(input, ANONYMOUS_CSVCONTEXT)).isEqualTo(input);\r\n }\r\n \r\n }", "@Test\n public void testMain() {\n String simulatedUserInput = \"100AUD\" + System.getProperty(\"line.separator\")\n + \"1\" + System.getProperty(\"line.separator\");\n\n InputStream savedStandardInputStream = System.in;\n System.setIn(new ByteArrayInputStream(simulatedUserInput.getBytes()));\n\n mainFunction mainfunc = new mainFunction();\n\n try {\n mainfunc.start();\n } catch(Exception e) {\n System.out.println(\"Exception!\");\n }\n\n assertEquals(1,1);\n }", "private void checkRuntimeFail(String filename, int... input){\n\t\tString inputString = createInput(input);\n\t\t\n\t\tProgram prog;\n\t\tSimulator sim = null;\n\t\tMachine vm = null;\n\t\tPipedInputStream in = null;\n\t\ttry {\n\t\t\tprog = compiler.compile(new File(BASE_DIR, filename + EXT));\n\t\t\tvm = new Machine();\n\t\t\tsim = new Simulator(prog, vm);\n\t\t\tvm.clear();\n\t\t\tsim.setIn(new ByteArrayInputStream(inputString.getBytes()));\n\t\t\tin = new PipedInputStream();\n\t\t\tOutputStream out;\n\t\t\tout = new PipedOutputStream(in);\n\t\t\tsim.setOut(out);\n\t\t} catch (ParseException e) {fail(filename + \" did not generate\");\n\t\t} catch (IOException e) {\tfail(filename + \" did not generate\");}\n\t\t\n\t\ttry{\n\t\t\tsim.run();\n\t\t\tString output = \"\";\n\t\t\tint max = in.available();\n\t\t\tfor(int index = 0; index < max; index++)\n\t\t\t\toutput += (char)in.read();\n\t\t\t/** Check whether there was an error outputted. */\n\t\t\tif(!output.toLowerCase().contains(\"error: \"))\n\t\t\t\tfail(filename + \" shouldn't check but did\");\n\t\t} catch (Exception e) {\n\t\t\t// this is the expected behaviour\n\t\t}\n\t}", "@Test\n\tvoid testCheckString2() {\n\t\tassertFalse(DataChecker.checkString(\"\"));\n\t}", "@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }", "@Test\n public void nonNullStringPass() {\n }", "@Test\n\tpublic void test_ArgumentCount_0_InvalidInput() {\n\t\tString[] args = {};\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_ARGUMENT_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}", "@Test\n\t//Test for invalid command\n\tpublic void testForInvalidCommand() {\n\t\t\t\n\t\t//-d option present but no delimiter given\n\t\tString command1 = \"paste -d a.txt\";\n\t\t\n\t\tpasteTool = new PASTETool();\n\t\t\n\t\tString actual = pasteTool.execute(workingDirectory, command1);\n\t\tString expected = \"Invalid Command\";\n\t\t\t\n\t\tassertEquals(expected, actual);\n\t\tassertEquals(pasteTool.getStatusCode(),-1);\n\t}", "public static void assertInvalid(String text)\n {\n assertTrue(parseInvalidProgram(text));\n }", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgumentParser(arguments);\r\n String expResult = \"correct\";\r\n String result = instance.checkInput(arguments);\r\n assertEquals(expResult, result);\r\n \r\n System.out.println(\"test 2\");\r\n String[] arguments2 = {\"1k\",\"test.txt\",\"1\"};\r\n String expResult2 = \"correct\";\r\n String result2 = instance.checkInput(arguments2);\r\n assertEquals(expResult2, result2);\r\n \r\n System.out.println(\"test 3\");\r\n String[] arguments3 = {\"chat.txt\"};\r\n String expResult3 = \"correct\";\r\n String result3 = instance.checkInput(arguments3);\r\n assertEquals(expResult3, result3);\r\n \r\n System.out.println(\"test 4\");\r\n String[] arguments4 = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\"};\r\n String expResult4 = \"Incorrect number of arguments\";\r\n String result4 = instance.checkInput(arguments4);\r\n assertEquals(expResult4, result4);\r\n \r\n System.out.println(\"test 5\");\r\n String[] arguments5 = {};\r\n String expResult5 = \"Need at least one argument with input file path\";\r\n String result5 = instance.checkInput(arguments5);\r\n assertEquals(expResult5, result5);\r\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"()\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void nonNullString() {\n }", "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}", "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public void test(String s) throws Exception {\n }", "public void testParseCommands_Fail1() throws Exception {\r\n target = new DistributionScriptParserImpl();\r\n try {\r\n target.parseCommands(null, new DistributionScript(), LogManager.getLog(\"test_parse_commands\"));\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "@Test(timeout = 4000)\n public void test57() throws Throwable {\n SystemInUtil.addInputLine(\"0(u\");\n SystemInUtil.addInputLine(\"eWEzPBT{b\");\n String string0 = \"znot\";\n SystemInUtil.addInputLine(\"znot\");\n JSPredicateForm jSPredicateForm0 = null;\n try {\n jSPredicateForm0 = new JSPredicateForm(\"znot\");\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "@Override\n public String execute(String argument) {\n try {\n if (!argument.isEmpty()) {\n throw new WrongArgumentException();\n }\n\n System.out.println(\"Программа успешно завершена!\");\n System.exit(0);\n } catch (WrongArgumentException e) {\n System.out.println(\"Используйте: '\" + getName() + \"'\");\n } catch (Exception e) {\n System.out.println(\"Что-то пошло не так. Повторите ввод.\");\n }\n return argument;\n }", "@Test\n public void AppNoParams() {\n try{\n App.main(new String[]{});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Insufficient arguments given. Needs [input file] [# processors]\");\n }\n }", "@Test\r\n public void testTooFewArgs() {\r\n String[] str = {\"curl\"};\r\n\r\n curl.run(str);\r\n assertTrue(ErrorHandler.checkIfErrorOccurred());\r\n assertEquals(\"not enough arguments\\n\", Output.getLastPrinted());\r\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, 'Z', (Connection) null, false, (ErrorHandler) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n SystemInUtil.addInputLine(\"Sc\");\n JSPredicateForm jSPredicateForm0 = new JSPredicateForm((String) null);\n StringReader stringReader0 = new StringReader(\"r<'c)sk5oce,bri\");\n stringReader0.close();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n SystemInUtil.addInputLine(\"Predicateform.print(): 0 elements\");\n // Undeclared exception!\n try { \n jSPredicateForm0.JSPredicateFormInit(streamTokenizer0);\n fail(\"Expecting exception: System.SystemExitException\");\n \n } catch(System.SystemExitException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n SystemInUtil.addInputLine(\"%I\");\n streamTokenizer0.ordinaryChars((-4), (-4));\n SystemInUtil.addInputLine(\"%I\");\n streamTokenizer0.ordinaryChars((-2202), 689);\n SystemInUtil.addInputLine(\"0(u\");\n streamTokenizer0.ordinaryChar(3008);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n stringReader0.reset();\n SystemInUtil.addInputLine((String) null);\n streamTokenizer0.wordChars(1911, 689);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n streamTokenizer2.eolIsSignificant(true);\n streamTokenizer1.commentChar(3008);\n StringReader stringReader1 = new StringReader(\"0(u\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n stringReader1.close();\n streamTokenizer3.eolIsSignificant(true);\n SystemInUtil.addInputLine((String) null);\n System.setCurrentTimeMillis((-2));\n JSPredicateForm jSPredicateForm0 = null;\n try {\n jSPredicateForm0 = new JSPredicateForm(streamTokenizer3);\n fail(\"Expecting exception: System.SystemExitException\");\n \n } catch(System.SystemExitException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test\n public void AppFileError() {\n try{\n App.main(new String[]{TEST_PATH + \"asdfghjkl-nice.dot\",\"1\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Input file does not exist\");\n }\n }", "@Test\n\tvoid testCheckString1() {\n\t\tassertTrue(DataChecker.checkString(\"Test\"));\n\t}", "@Test\n public void shouldNotBeAbleToInputSpecialCharactersInTradeInValueField() {\n }", "public void testConstructor_StringString_InvalidReplyCode() {\n try {\n new StaticReplyCommandHandler(-99, \"text\");\n fail(\"Expected AssertFailedException\");\n }\n catch (AssertFailedException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }", "@Test\n\n public void shouldNotBeAbleToInputAlphaCharactersInTradeInValueField() {\n//1. Enter B in the Trade-In Value field\n//2. Enter z in the Trade-In Value field\n }", "public boolean execute(Player player) throws NoArgumentException,pkg_exceptions.IllegalArgumentException {\n\t\tsetMessage(\"\");\n\t\tif(hasParameter()) {\n\t\t\ttry {\n\t\t\t\tScanner s = new Scanner(new File(getParameter() + \".test\"));\n\t\t\t\twhile (s.hasNextLine()) {\n\n\t\t\t\t\tString commandLine = s.nextLine();\n\t\t\t\t\tCommand testedCommand = Parser.getCommand(commandLine);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\ttestedCommand.execute(player);\n\t\t\t\t\t\tif(testedCommand.hasMessage())\n\t\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t\t+ testedCommand.getMessage());\n\n\t\t\t\t\t} catch (NoArgumentException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t} catch (pkg_exceptions.IllegalArgumentException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t} catch(UnauthorizedException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ts.close();\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\tthrow new pkg_exceptions.IllegalArgumentException(\"No such test\");\n\t\t\t}\n\t\t} else\n\t\t\tthrow new NoArgumentException(\"What do you want to test?\");\n\t\treturn false;\n\t}", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ErrorHandler errorHandler0 = ErrorHandler.getDefault();\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test\n\tpublic void badQueryTest() {\n\t\texception.expect(IllegalArgumentException.class);\n\t\t\n\t\t// numbers not allowed\n\t\tqueryTest.query(\"lfhgkljaflkgjlkjlkj9f8difj3j98ouijsflkedfj90\");\n\t\t// unbalanced brackets\n\t\tqueryTest.query(\"( hello & goodbye | goodbye ( or hello )\");\n\t\t// & ) not legal\n\t\tqueryTest.query(\"A hello & goodbye | goodbye ( or hello &)\");\n\t\t// unbalanced quote\n\t\tqueryTest.query(\"kdf ksdfj (\\\") kjdf\");\n\t\t// empty quotes\n\t\tqueryTest.query(\"kdf ksdfj (\\\"\\\") kjdf\");\n\t\t// invalid text in quotes\n\t\tqueryTest.query(\"kdf ksdfj \\\"()\\\" kjdf\");\n\t\t// double negation invalid (decision)\n\t\tqueryTest.query(\"!!and\");\n\t\t\n\t\t// gibberish\n\t\tqueryTest.query(\"kjlkfgj! ! ! !!! ! !\");\n\t\tqueryTest.query(\"klkjgi & df & | herllo\");\n\t\tqueryTest.query(\"kjdfkj &\");\n\t\t\n\t\t// single negation\n\t\tqueryTest.query(\"( ! )\");\n\t\tqueryTest.query(\"!\");\n\t\t\n\t\t// quotes and parenthesis interspersed\n\t\tqueryTest.query(\"our lives | coulda ( \\\" been so ) \\\" but momma had to \\\" it all up wow\\\"\");\n\t}", "@Test\n\n public void shouldNotBeAbleToInputAlphaCharactersInAmountOwedOnTradeField() {\n//1. Enter B in the Trade-In Value field\n//2. Enter z in the Trade-In Value field\n }", "@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}", "public abstract void runInput(String stringFile) throws IOException;", "private void assertParseException(String inputCommand, String expectedMessage) {\n assertCommandFailure(inputCommand, ParseException.class, expectedMessage);\n }", "@Test\n\t// exception for when user inputs negative number\n\tpublic void testHappy_throwsException_incorrectNumber() {\n\n\t\tAssertions.assertThrows(InputMismatchException.class, () -> {\n//\t ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n//\t System.setErr(new PrintStream(outputStream));\n\n\t\t\tByteArrayInputStream in = new ByteArrayInputStream(\"happy\\ntest\\n\".getBytes());\n\t\t\tSystem.setIn(in);\n\n\t\t\tMovie movie = new Movie();\n\t\t\tmovie.Play();\n\t\t});\n\t}", "@Test\n public void testStringFractionImplInvalidStrings() {\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"9 9 0/2\");\n });\n //Input value which is not a number\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"One\");\n });\n }", "@Test\n public void shouldNotBeAbleToInputSpecialCharactersInAmountOwedOnTradeField() {\n }", "@Test\n public void isInputDataValidTestWithBadInput() {\n boolean invoke = Deencapsulation.invoke(modificationFibonacci, \"isInputDataValid\", \"a\");\n assertFalse(invoke);\n }", "@Test\n public void runScript() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"runScript\", \"alert('test')\");\n }", "@Test\n\tvoid testCheckString3() {\n\t\tassertFalse(DataChecker.checkString(null));\n\t}", "String execute() throws InterruptedException, FileNotFoundException\n {\n String s = \"This AI does not comprehend '\" + bogusCommand + \"'.\"; \n return s; \n }", "@Test\n\t public void teststringAPI_fail() {\n\t\tString testData = \"Caps is not considered the same\";\n\t\tchar charData='c';\n\t\tString expected = \"aps is not onsidered the same\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr);\n\t }", "@Test\n public void executeWithFailure() {\n new SimpleCommandFailure(\"badRequest\", HystrixRuntimeException.FailureType.COMMAND_EXCEPTION).execute();\n }", "@Test\n void buildTaskEventWrongCode() {\n String args = \"do CS2103 project (at: FOREVER IT NEVER STOPS)\";\n assertThrows(DukeIoException.class, () -> Storage.buildTask(\"F\", args, true));\n }", "@ParameterizedTest\n @ValueSource(strings = {\"Hello\", \"number1\", \"_underscore\", \"underscore_\", \"p.e.r.o.i.d.s\", \"\\\\Backslash\", \"Backslash\\\\\"})\n void testValid(String valid) throws IOException {\n try (Workbook wb = _testDataProvider.createWorkbook()) {\n Name name = wb.createName();\n assertDoesNotThrow(() -> name.setNameName(valid));\n }\n }", "@Test(expected = RuntimeException.class)\n public void givenEmptyStringShouldReturnRunTimeException() {\n transpose.setString(\"\");\n }", "@Test\n public void parse_invalidValues_failure() {\n assertParseFailure(parser, \"1 2 3\", String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n String.format(MESSAGE_TOO_MANY_ARGUMENTS,\n VendorCommand.COMMAND_WORD, 1, SwitchVendorCommand.MESSAGE_USAGE)));\n\n // Index passed is not a non-zero integer\n assertParseFailure(parser, \"1.4\", String.format(MESSAGE_INVALID_INDEX, \"Vendor Index\"));\n }", "@Test(expected = SortException.class)\n\tpublic void testRunInvalidArgsMissingStdin() throws SortException {\n\t\tString[] argsArr = new String[] { \"-j\" };\n\t\tByteArrayOutputStream stdout = new ByteArrayOutputStream();\n\t\tsortApplication.run(argsArr, null, stdout);\n\t}", "@When(\"^user enters an invalid \\\"([^\\\"]*)\\\"$\")\n public void userEntersAnInvalid(String arg0, DataTable args) throws Throwable {\n }", "@Test\n public void testTooManyInput(){\n //set up\n CurrencyRates test = new CurrencyRates();\n\n //add sample user input\n InputStream in = new ByteArrayInputStream(\"ABC123 BCD234 WER456 FDG435\".getBytes());\n System.setIn(in);\n\n //test if system exits when user input is incorrect\n assertNull(test.takeInput());\n\n return;\n }", "@Test\n\tpublic void forInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}", "@Test\r\n public void testInvalidEncodings() {\r\n assertThatInputIsInvalid(\"NIX\");\r\n assertThatInputIsInvalid(\"UTF-9\");\r\n assertThatInputIsInvalid(\"ISO-8859-42\");\r\n }", "@Test\n public void type() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"type\", \"aaa\", \"\");\n }", "@Test(expected = IOException.class)\n\tpublic void testMainInvalidFilePath() throws Exception {\n\t\tString[] arguments = { \"/invalid/file/path\" };\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "@Test\n public void wrongArgumentsReturnsNullAndPrintsMessage() {\n String[] inputArgs = new String[] {\"-i\", \"/path/\"};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, nullValue());\n assertThat(errContent.toString(), containsString(\"must be provided!\"));\n assertThat(errContent.toString(), containsString(\"Usage:\"));\n }", "@Test\n\tpublic void testIncorrectSyntax() {\n\t\ttry {\n\t\t\t\tcalculator.calculeteSum(\"2 1\");\n\t\t} catch(CalculatorException e) {\n\t\t\t\tassertEquals(\"Input not valid!\", e.getMessage());\n\t\t}\n\t\t\n\t\t// not uniform delimiter\n\t\ttry {\n\t\t\tcalculator.calculeteSum(\"2 1,3\");\n\t\t} catch (CalculatorException e) {\n\t\t\tassertEquals(\"Used invalid delimiter ',', expected ' '!\", e.getMessage());\n\t\t}\n\t\t\n\t\t// with some text\n\t\ttry {\n\t\t\tcalculator.calculeteSum(\"hallo\");\n\t\t} catch (CalculatorException e) {\n\t\t\tassertEquals(\"Input not valid!\", e.getMessage());\n\t\t}\n\t}", "@Test\n\tpublic void testRunStdinMissingArgs() throws SortException {\n\t\tString[] argsArr = new String[] {};\n\t\tString contentStr = \"8\" + NEW_LINE + \"68\" + NEW_LINE + \"105\";\n\t\tString expected = \"105\" + NEW_LINE + \"68\" + NEW_LINE + \"8\" + NEW_LINE;\n\t\tInputStream inputStream = new java.io.ByteArrayInputStream(contentStr.getBytes());\n\t\tByteArrayOutputStream stdout = new ByteArrayOutputStream();\n\t\tsortApplication.run(argsArr, inputStream, stdout);\n\t\tassertEquals(expected, stdout.toString());\n\t}", "public static void main(String[]args) {\n Assert.assertEquals(test(\"*.a.b..c\", \"cdadbccc\"), true);\n// Assert.assertEquals(test(\".a\", \"bba\"), false);\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n String[] stringArray0 = new String[0];\n Evaluation.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "@Test\n public void whenClientEntersIllegalCommandThenWarningIsThrownToConsole() throws IOException {\n String cmdPrompt = \"CURRENT FOLDER: C:\\\\projects\\\\vgrigoryev\\\\chapter_010 > \";\n\n this.testClientInput(\n Joiner.on(LN).join(\n \"\",\n \"\",\n \"\",\n \"\"\n ),\n\n String.format(\"%1$s%2$sThe command is illegal%3$s%4$s%5$s\",\n cmdPrompt,\n LN,\n LN,\n cmdPrompt,\n LN),\n Joiner.on(LN).join(\n \"some illegal command\",\n \"EXIT\"\n ),\n NetFileManagerClientTest.CONSOLE_OUTPUT_STUB\n );\n }", "public void testParseCommands_Fail2() throws Exception {\r\n target = new DistributionScriptParserImpl();\r\n try {\r\n target.parseCommands(new FileInputStream(\"test_files/scripts/test/test_parse.txt\"), null, LogManager\r\n .getLog(\"test_parse_commands\"));\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }", "public void testConstructor_String_InvalidReplyCode() {\n try {\n new StaticReplyCommandHandler(-1);\n fail(\"Expected AssertFailedException\");\n }\n catch (AssertFailedException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "public String invokeTest( String input ) throws TestException {\n\t\tString response = null;\n\t\t\n\t\ttry {\n\t\t\tresponse = runTest( input );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new TestException(\"Test service got an exception during execution: \" + e.getClass().getName()+ \" \" + e.getMessage() );\n\t\t} // end try\n\t\treturn response;\n\t}", "public static void main(String[] args) {\n\t\tinvalidInput();\n\n\t}", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}", "@Test\n\tpublic void secindForInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}", "@Test\n\tpublic void caseNameWithCorrectInput() {\n\t\tString caseName = \"led case\";\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.stringUtil(caseName);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (StringException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}", "@Test\n\t public void testIterateMtd_fail() {\n\t\tString testData = \" This is wrong\";\n\t\tchar charData='w';\n\t\tString expected =\" This is wrong\";\n\t\tString actualStr=stringObj.iterateMtd(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr);\n\t}", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Level level0 = Level.warn;\n ErrorHandler errorHandler0 = new ErrorHandler(\"Database query did not return a result: \", level0);\n // Undeclared exception!\n try { \n DBUtil.runScript(\"z\\\"\", \"Database query did not return a result: \", (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Resource not found: z\\\"\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void whenEmptyStringUsed_ExceptionIsThrown() {\n\t\tString input = \"\";\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tstringUtility.castWordNumberToNumber(input);\n\t}", "@Override\r\n\tpublic String testString(String string) {\n\t\treturn \"test -- hhh\";\r\n\t}", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Proxy proxy0 = (Proxy)DBUtil.wrapWithPooledConnection((Connection) null, false);\n Class<Parameter> class0 = Parameter.class;\n ErrorHandler errorHandler0 = new ErrorHandler(class0);\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, \"' found\", 'J', (Connection) proxy0, false, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }", "@Test\n public void testDoNotYak() {\n System.out.println(\"doNotYak\");\n String str = \"yakpak\";\n DoNotYak instance = new DoNotYak();\n String expResult = \"pak\";\n String result = instance.doNotYak(str);\n assertEquals(expResult, result);\n \n str = \"pakyak\";\n expResult = \"pak\";\n result = instance.doNotYak(str);\n assertEquals(expResult, result);\n \n str = \"yak123ya\";\n expResult = \"123ya\";\n result = instance.doNotYak(str);\n assertEquals(expResult, result);\n \n str = \"yek123ya\";\n expResult = \"123ya\";\n result = instance.doNotYak(str);\n assertEquals(expResult, result);\n }", "@Test\n public void testIsInvalidChannelName() {\n System.out.println(\"isInvalidChannelName test ---\");\n String validName = \"Valid Name\";\n String invalidName1 = \"Invalid_Name\";\n String invalidName2 = \"\";\n String invalidName3 = \" \";\n String invalidName4 = \"troll<script>document.cookie='lol'</script>\";\n assertFalse(instance.isInvalidChannelName(validName));\n assertTrue(instance.isInvalidChannelName(invalidName1));\n assertTrue(instance.isInvalidChannelName(invalidName2));\n assertTrue(instance.isInvalidChannelName(invalidName3));\n assertTrue(instance.isInvalidChannelName(invalidName4));\n }", "public static void main(String[] args) {\n testString();\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"(, 4$, 4$, 4$, 4$, 4$, 4$, , )\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "@Test\r\n\tpublic void testNameInvalid() {\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"*\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"0-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"324tggs\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-feioj\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"/\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"@\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\" \"));\r\n\t}", "@Test\n public void errorInput() {\n str = \"FGgGFSDF \" + \"https://foo.com\" + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.UNKNOWN);\n assertEquals(request.getHeader(null), \"\");\n\n str = \"FGgGFSDF \" + \"http://foo.com \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n }", "public static void main(String[] args) {\r\n \tScanner scan = new Scanner(System.in);\r\n \tint testCases = scan.nextInt();\r\n \tString[] str = new String[testCases];\r\n \tscan.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\r\n \t// first constraint\r\n \tif ((testCases >= 1) && (testCases <= 10)) {\r\n \t\tfor (int j = 0; j < testCases; j++) {\r\n \t\t\tstr[j] = scan.next();\r\n \t\t}\r\n \t\tfor (int k = 0; k < str.length; k++) {\r\n \t\t\ttest(str[k]);\r\n \t\t}\r\n \t} else {\r\n \t\tSystem.out.println(\"The number of test cases must be between 1 and 10.\");\r\n \t}\r\n \tscan.close();\r\n \t\r\n }", "public static void printErrorForInvalidCommand(String userInput) {\n System.out.println(\"Aw man! I am unable to \" + userInput + \" yet! Please specify a different function! :D\");\n }" ]
[ "0.7665368", "0.7052803", "0.69780934", "0.6854847", "0.6606927", "0.659819", "0.6593455", "0.6509934", "0.6455343", "0.64535797", "0.64535797", "0.64023906", "0.64023906", "0.6382775", "0.637566", "0.63031584", "0.62868816", "0.62854046", "0.6280189", "0.6226354", "0.61969006", "0.6196882", "0.6193052", "0.61835515", "0.61777323", "0.61650056", "0.61650056", "0.61538833", "0.6137519", "0.61261284", "0.6121807", "0.6108781", "0.61073", "0.61036366", "0.6100177", "0.6091266", "0.6088304", "0.608504", "0.607699", "0.6069576", "0.606589", "0.6059625", "0.60495496", "0.60393894", "0.6029936", "0.6022353", "0.6005258", "0.59962803", "0.5993663", "0.5984265", "0.5981343", "0.5953135", "0.59443897", "0.59437585", "0.5943121", "0.59340584", "0.5924728", "0.59218454", "0.5915576", "0.59145784", "0.5912166", "0.5895316", "0.5894994", "0.589356", "0.58861053", "0.5878114", "0.58716977", "0.5869162", "0.58587503", "0.5857473", "0.58565396", "0.5845962", "0.58445776", "0.58435106", "0.5841517", "0.5835734", "0.5831447", "0.58301336", "0.5829566", "0.58283985", "0.5827038", "0.5822807", "0.5819485", "0.5812265", "0.58042663", "0.5801076", "0.58006185", "0.5790486", "0.5781064", "0.5775396", "0.5774003", "0.57648534", "0.5761257", "0.5754239", "0.57465214", "0.574261", "0.57421106", "0.5741781", "0.5730727", "0.57260424" ]
0.68954104
3
Tests execution with a null input (should throw an Exception).
@Test(expected = SuperCsvCellProcessorException.class) public void testWithNull() { processor.execute(null, ANONYMOUS_CSVCONTEXT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }", "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }", "@Test\n\tpublic void testNull() throws Exception {\n\t\ttestWith(null);\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSumShouldGiveBackExceptionIfInputIsNull() {\n\t\tString input = null;\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}", "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public void testCheckNull() {\n Util.checkNull(\"\", \"test\");\n }", "public void testHandleGUIEvent_null() {\n try {\n eventManager.handleGUIEvent(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "@Test(expected=IllegalArgumentException.class)\n public void validNotNullTestWhenInputIsNull(){\n Validator.validateNotNull(null);\n //THEN exception thrown\n }", "public void testCheckNull_NullArg() {\n try {\n Util.checkNull(null, \"test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException e) {\n // good\n }\n }", "public void testCheckNull_NullArg() {\n try {\n Util.checkNull(null, \"test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException e) {\n // good\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckNullFailure() {\n Helper.checkNull(null, \"null-name\");\n }", "public void testValidNullPointerException() {\r\n assertNotNull(\"setup fails\", uploadRequestValidator);\r\n try {\r\n uploadRequestValidator.valid(null);\r\n fail(\"if argument is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "@Test\n public void when_SourceIsNull_Then_ThrowException() {\n //then\n assertThrows(\"The CSV row is mandatory for the software data extraction.\", NullPointerException.class, () -> {\n //when\n underTest.read(null);\n });\n }", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "public void testHandleActionEvent_null() throws Exception {\n try {\n eventManager.handleActionEvent(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "@Test\n public void wrapper_testNull() throws Exception {\n try {\n Helper.processGenerateResponse(null);\n } catch (Exception e) {\n fail(\"Should never have reached here.\");\n }\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, 'Z', (Connection) null, false, (ErrorHandler) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test\n public void testMultiplyAllNumbersWithNullInput() {\n assertEquals(null, calculator.multiplyAllNumbers(null));\n }", "@Test\n public void testSumAllNumbersWithNullInput() {\n \t//this test currently fails on purpose\n assertEquals(null, calculator.sumAllNumbers(null));\n }", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }", "@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}", "public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }", "public void testRecordPluginDownload_NullName() throws Exception {\n try {\n dao.recordPluginDownload(null);\n fail(\"IllegalArgumentException expected\");\n } catch (IllegalArgumentException e) {\n // should land here\n }\n }", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testPickUpNull() {\n\t\tPlayer player = new Player(new Square(), 0);\n\t\tplayer.pickUp(null);\n\t}", "public void testOrNPE1() {\r\n try {\r\n validator.or(null);\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test(expected = NullPointerException.class)\n public void formatBooleanNullAsInputTest() {\n Boolean someBoolean = null;\n Format.formatBoolean(someBoolean);\n }", "public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ErrorHandler errorHandler0 = ErrorHandler.getDefault();\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test\n public void stateNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_STATE);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }", "public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "@Test\n public void applicationNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_APPLICATION);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }", "@Test\r\n public void test_performLogic_Accuracy2() throws Exception {\r\n instance.performLogic(null);\r\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void testDetectWithNullData() throws Exception {\r\n instance.detect(null);\r\n }", "public void testMouseClickedIfMouseEventNull() {\n try {\n editBoxTrigger.mouseClicked(null);\n } catch (Exception e) {\n fail(\"No exception is excpected.\");\n }\n }", "@Test public void gracefullyEndsForEmptyInputs() {\n\t\tAssert.assertNotNull(parser.parse(new String[0], new CliOptions()));\n\t}", "public void testTransformWithNullElement() throws Exception {\n try {\n instance.transform(null, document, caller);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testArgumentsNotHaveAValue() {\n System.out.println(\"Arguments do not have n\");\n assertThat(Arguments.valueOf(\"n\"), is(nullValue()));\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testParseHost_Null() throws UnknownHostException {\n try {\n PortParser.parseHost(null);\n fail(\"Expected CommandSyntaxException\");\n }\n catch (CommandSyntaxException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "@Test\n public void testNullInputPerturbDataSet() throws Exception {\n int[] result = NoiseGenerator.perturbDataSet(null, 2);\n Assert.assertTrue(result == null);\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckNullWithLoggingFailure() {\n Helper.checkNullWithLogging(null, \"obj\", \"method\", LogManager.getLog());\n }", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "boolean getCalledOnNullInput();", "public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}", "@Test(expected = MissingArgumentException.class)\n\tpublic void testMainEmptyParameters() throws Exception {\n\t\tString[] arguments = new String[0];\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "public void testParsePortNumber_Null() throws UnknownHostException {\n try {\n PortParser.parsePortNumber(null);\n fail(\"Expected CommandSyntaxException\");\n }\n catch (CommandSyntaxException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSumShouldGiveBackExceptionIfInputIsEmpty() {\n\t\tString input = \"\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}", "@Test\n public void nonNullStringPass() {\n }", "@Test\n public void resultSetNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_RESULT_SET);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }", "@Test\n public void test098() throws Throwable {\n NumberInput numberInput0 = new NumberInput((Component) null, \"\", \"m\", \"m\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.param((CharSequence) \"m\", (CharSequence) \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public TestCase isNull( Object obj );", "private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLMessageArgument)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((Object)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLSymbol)null));\r\n\t}", "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithEmptyString() {\n\t\tprocessor.execute(\"\", ANONYMOUS_CSVCONTEXT);\n\t}", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testCheckArray_NullInArg() {\n Object[] objects = new Object[] {\"one\", null};\n try {\n Util.checkArray(objects, \"test\");\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void connectionNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_CONNECTION);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }", "@Test(timeout = 4000)\n public void test038() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n\t\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\t\tString input = \"\"; //The input is the empty string. \n\t\t\tthrown.expect(SyntaxException.class);\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tProgram p = parser.parse();\n\t\t}", "@Test\n public void givenInputWithNullFields_ShouldGenerateValueArrayError() throws IOException {\n WeatherSignal input = new WeatherSignal();\n\n kiqt.<WeatherSignal>theInputStream().given(Collections.singletonList(input));\n\n Matcher<AbstractErrorModel> expectedError = Matchers.instanceOf(DefaultErrorModel.class);\n\n kiqt.theErrorOutput().within(30, TimeUnit.SECONDS)\n .should(\"expected an error for null input\", Matchers.contains(expectedError));\n }", "public void testSetText_NullText() throws Exception {\n try {\n textInputBox.setText(null);\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "@Test\n\t@DisplayName(\"combinacion == null || combinacionSecreta == null\") \n\tvoid combinacionNulaFacilTest(){ \n\t\tCombinacion combinacionFacil = null;\n\t\tCombinacion combinacionSecretaFacil = null;\n\t\t\n\t\tAssertions.assertThrows(NullPointerException.class, () -> {\n\t\t\tcombinacionFacil.calcularResultado(combinacionSecretaFacil);\n\t\t});\n\t}", "@Test\n public void testReadNegativeItemIsNull() throws Exception{\n String name = null;\n itemDao.read(name);\n }", "public TestCase notNull( Object obj );", "@Test\n\tvoid testeNomeNull()\n\t{\n\t\ttry\n\t\t{\n\t\t\tcontatoBasico = new Contato(null, \"Gaudencio\", \"123\");\n\t\t\tfail(\"Esperava erro ao passar nome nulo\");\n\t\t}catch(NullPointerException npe)\n\t\t{\n\t\t\t\n\t\t}\n\n\t}", "@Test\n public void AppNoParams() {\n try{\n App.main(new String[]{});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Insufficient arguments given. Needs [input file] [# processors]\");\n }\n }", "@Test\n public void schemaNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_SCHEMA);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testNullVisitorThrowsIllegalArgumentException() {\n\t\t//Act\n\t\tnew VisitorIterator(seed, cityMock, randMock, printerMock, null);\n\t}", "@Test\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\tString input = \"\"; // The input is the empty string. This is not legal\n\t\tshow(input); // Display the input\n\t\tScanner scanner = new Scanner(input).scan(); // Create a Scanner and initialize it\n\t\tshow(scanner); // Display the Scanner\n\t\tSimpleParser parser = new SimpleParser(scanner); // Create a parser\n\t\tthrown.expect(SyntaxException.class);\n\t\ttry {\n\t\t\tparser.parse(); // Parse the program\n\t\t} catch (SyntaxException e) {\n\t\t\tshow(e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testNullPrinterthrowsIllegalArgumentException() {\n\t\t//Act\n\t\tnew VisitorIterator(seed, cityMock, randMock, null, visitorMock);\n\t}", "public void testCheckArray_NullArg() {\n try {\n Util.checkArray(null, \"test\");\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Proxy proxy0 = (Proxy)DBUtil.wrapWithPooledConnection((Connection) null, false);\n Class<Parameter> class0 = Parameter.class;\n ErrorHandler errorHandler0 = new ErrorHandler(class0);\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, \"' found\", 'J', (Connection) proxy0, false, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }", "@Test\r\n public void nullUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(null);\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n assertTrue(\"should not throw an exception\", noException);\r\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testNullCityThrowsIllegalArgumentException() {\n\t\t//Act\n\t\tnew VisitorIterator(seed, null, randMock, printerMock, visitorMock);\n\t}", "@Test\n public void test051() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"<\", \"<\");\n // Undeclared exception!\n try {\n Component component0 = fileInput0.sub();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n void checkThrowsNullPointerException() {\n // Act, Assert\n Assertions.assertThrows(NullPointerException.class,() -> {\n IsNumeric.check(null);\n });\n }", "public void testCtor_NullState() {\n try {\n new AddActionStateAction(null, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test(timeout = 4000)\n public void test369() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"J]'z8)\", \"J]'z8)\");\n // Undeclared exception!\n try { \n fileInput0.dfn((Object) \"J]'z8)\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n XPathLexer xPathLexer0 = null;\n try {\n xPathLexer0 = new XPathLexer((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addInputParam((FBProcedureParam) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test\n\tvoid testCheckNull2() {\n\t\tassertTrue(DataChecker.checkNull(null));\n\t}", "@Test\n public void nonNullString() {\n }", "@Test\r\n\t@LoadData(dataLoader=ProdutosDataLoader.class)\r\n\tpublic void consultaSaldoProdutoNullTest() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\testoqueFacade.consultarEstoque((Produto)null);\r\n\t\t\tAssert.fail();\r\n\t\t} catch (NullParameterException e) {\r\n\t\t\tAssert.assertTrue(e.hasCode(ExceptionCodes.MOVIMENTACAO_ESTOQUE.SALDO_PRODUTO_REQUIRED));\r\n\t\t}\r\n\t\t\t\r\n\t}", "@Test\n\tvoid testCheckNulls1() {\n\t\tassertTrue(DataChecker.checkNulls(null));\n\t}", "@Test\n\tvoid testCheckNull3() {\n\t\tassertTrue(DataChecker.checkNull((Object)null));\n\t}", "public void testTransformWithNullDocument() throws Exception {\n try {\n instance.transform(element, null, caller);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void test_getByUsername_usernameNull() throws Exception {\n instance.getByUsername(null);\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addInputParam((FBProcedureParam) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }" ]
[ "0.7908146", "0.7357814", "0.7194215", "0.66759974", "0.667414", "0.66687614", "0.66418034", "0.6592925", "0.65493053", "0.65493053", "0.6507607", "0.6498705", "0.64757246", "0.6472354", "0.6468578", "0.6466129", "0.64519453", "0.6449579", "0.643634", "0.6427573", "0.64261997", "0.64168304", "0.64092356", "0.6406276", "0.63866913", "0.6381496", "0.6371421", "0.63694924", "0.6356439", "0.63528806", "0.6350366", "0.6348578", "0.63392967", "0.63343346", "0.63067424", "0.63004786", "0.6278955", "0.6248024", "0.62453604", "0.62411296", "0.62291145", "0.6228813", "0.6227751", "0.62271506", "0.62222487", "0.62222487", "0.6204152", "0.61921436", "0.6188741", "0.6188577", "0.61858606", "0.6185247", "0.61808866", "0.61789244", "0.6175159", "0.61642766", "0.6162284", "0.6161721", "0.61586463", "0.61495733", "0.6143514", "0.6141914", "0.6132501", "0.6129077", "0.61260945", "0.61223257", "0.61204505", "0.6117637", "0.6116403", "0.61141884", "0.60918593", "0.6089011", "0.6088825", "0.6082401", "0.6080214", "0.6077368", "0.60761166", "0.60758877", "0.60753244", "0.6074223", "0.60577327", "0.6054844", "0.6053346", "0.60489666", "0.60375655", "0.6036076", "0.60293233", "0.6020901", "0.6019237", "0.60139203", "0.6013907", "0.59996307", "0.59980744", "0.59974486", "0.59968853", "0.5995676", "0.59860575", "0.5983743", "0.5983168", "0.59825486" ]
0.6850842
3
Tests execution with an emptyString input (should throw an Exception).
@Test(expected = SuperCsvCellProcessorException.class) public void testWithEmptyString() { processor.execute("", ANONYMOUS_CSVCONTEXT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n\t\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\t\tString input = \"\"; //The input is the empty string. \n\t\t\tthrown.expect(SyntaxException.class);\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tProgram p = parser.parse();\n\t\t}", "@Test\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\tString input = \"\"; // The input is the empty string. This is not legal\n\t\tshow(input); // Display the input\n\t\tScanner scanner = new Scanner(input).scan(); // Create a Scanner and initialize it\n\t\tshow(scanner); // Display the Scanner\n\t\tSimpleParser parser = new SimpleParser(scanner); // Create a parser\n\t\tthrown.expect(SyntaxException.class);\n\t\ttry {\n\t\t\tparser.parse(); // Parse the program\n\t\t} catch (SyntaxException e) {\n\t\t\tshow(e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\r\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\r\n\t\tString input = \"\"; //The input is the empty string. \r\n\t\tParser parser = makeParser(input);\r\n\t\tthrown.expect(SyntaxException.class);\r\n\t\tparser.parse();\r\n\t}", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "@Test public void gracefullyEndsForEmptyInputs() {\n\t\tAssert.assertNotNull(parser.parse(new String[0], new CliOptions()));\n\t}", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}", "@Test\n\tvoid testCheckString2() {\n\t\tassertFalse(DataChecker.checkString(\"\"));\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSumShouldGiveBackExceptionIfInputIsEmpty() {\n\t\tString input = \"\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void test_getByUsername_usernameEmpty() throws Exception {\n instance.getByUsername(TestsHelper.EMPTY_STRING);\n }", "@Test\r\n\tvoid emptyString() {\r\n\t\tassertEquals(\"\",removingAObj.removingA(\"\"));\r\n\t}", "public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }", "@Test\n public void nonNullStringPass() {\n }", "@Test\n public void nonNullString() {\n }", "@Test\n\tpublic void caseNameWithEmpty() {\n\t\tString caseName = \" \";\n\t\ttry {\n\t\t\tStringNumberUtil.stringUtil(caseName);\n\t\t} catch (StringException e) {\n\t\t}\n\t}", "@Test(expected = RuntimeException.class)\n public void givenEmptyStringShouldReturnRunTimeException() {\n transpose.setString(\"\");\n }", "public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void whenEmptyStringUsed_ExceptionIsThrown() {\n\t\tString input = \"\";\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tstringUtility.castWordNumberToNumber(input);\n\t}", "public void testSetText_EmptyText1() throws Exception {\n try {\n textInputBox.setText(\"\");\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "@Test\n\tpublic void testEmptyLine() {\n\t\tString s = \" \\n\";\n\t\tassertTrue(\"Empty string with line ending\", StringUtil.isEmpty(s));\n\t}", "@Test\n\tvoid testCheckString3() {\n\t\tassertFalse(DataChecker.checkString(null));\n\t}", "@Test\n\tpublic void testNullString() {\n\t\tString s = null;\n\t\tassertTrue(\"Null string\", StringUtil.isEmpty(s));\n\t}", "@Test\n public void parse_emptyArg_throwsParseException() {\n assertParseFailure(parser, \" \", String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n GoogleCommand.MESSAGE_USAGE));\n }", "abstract boolean canMatchEmptyString();", "@Test\r\n public void testIsNullOrEmptyEmpty() {\r\n System.out.println(\"isNullOrEmpty\");\r\n String word = \"\";\r\n boolean expResult = false;\r\n boolean result = Helper.isNotNullOrEmpty(word);\r\n \r\n assertEquals(expResult, result);\r\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test(expected = MissingArgumentException.class)\n\tpublic void testMainEmptyParameters() throws Exception {\n\t\tString[] arguments = new String[0];\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "@Test\n\tpublic void testEmptyString() {\n\t\tString s = \" \\t \";\n\t\tassertTrue(\"Empty string with tab\", StringUtil.isEmpty(s));\n\t}", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "@Test\n public void testIsEmptyValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"\";\n boolean result = service.isValidName(name);\n assertEquals(false, result);\n }", "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "boolean canMatchEmptyString() {\n return false;\n }", "public void testSetText_EmptyText2() throws Exception {\n try {\n textInputBox.setText(\" \\t \\n \");\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "public static String requireNonEmpty(String str, String message) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "@Test\n\tvoid testTokenizeEmptyString() {\n\t\ttokenizer.setColumns(new Range[] { new Range(1, 5), new Range(6, 10), new Range(11, 15) });\n\t\tvar exception = assertThrows(IncorrectLineLengthException.class, () -> tokenizer.tokenize(\"\"));\n\t\tassertEquals(15, exception.getExpectedLength());\n\t\tassertEquals(0, exception.getActualLength());\n\t\tassertEquals(\"\", exception.getInput());\n\t}", "public static String requireNonEmpty(String str) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSumShouldGiveBackExceptionIfInputIsNull() {\n\t\tString input = null;\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}", "@Test\n public void testEmpty() {\n\n }", "@Test\n public void testEnsureStringExists(){\n String exists = \"Hello World\";\n String emptyString = \"\";\n\n assertTrue(StringUtil.ensureStringExists(exists));\n assertFalse(StringUtil.ensureStringExists(null));\n assertFalse(StringUtil.ensureStringExists(emptyString));\n }", "public static void main(String[] args) {\n testSplitterNullOrEmpty();\n }", "@Test\n\tpublic void nonEmptyMultiLine() {\n\t\tString s = \" \\n\" + \"Nothing\";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "public void testRecordPluginDownload_EmptyName() throws Exception {\n try {\n dao.recordPluginDownload(\" \");\n fail(\"IllegalArgumentException expected\");\n } catch (IllegalArgumentException e) {\n // should land here\n }\n }", "@Test\n public void testSpinNoneWord() {\n final String actualResult = kata4.spinWord(\"This is a test\");\n final String expectedResult = \"This is a test\";\n assertEquals(expectedResult, actualResult);\n }", "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithNonString() {\n\t\tprocessor.execute(1234, ANONYMOUS_CSVCONTEXT);\n\t}", "@Test\n public void testEmptyString() {\n assertEquals(\"Should return false\", false, val.validateTransportationModes(\"\"));\n }", "@Test\n public void testWithNonEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{\\\"test\\\":1}\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n public void testParseUserString_1()\n throws Exception {\n String users = \"\";\n\n int result = JobUtil.parseUserString(users);\n\n assertEquals(0, result);\n }", "public void testCheckNull() {\n Util.checkNull(\"\", \"test\");\n }", "@Test(expected = IllegalArgumentException.class)\n public void testComponentNotCreatedIfExpressionIsBlank()\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(STRING_BLANK);\n assertNull(evaluator);\n }", "@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n String[] stringArray0 = new String[0];\n Evaluation.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "@Test\n public void parse_emptyInvalidArgs_throwsParseException() {\n assertParseFailure(parser, ParserUtil.EMPTY_STRING, String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n SortCommand.MESSAGE_USAGE));\n }", "private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void testWithEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{}\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\n public void testWithNonEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[\\\"test\\\"]\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n public void allowedEmptyType() throws Exception {\n Query query = Query.parse(\"/allow-empty-type\");\n doAllowedEmptyTest(query);\n }", "public void testCheckOxyEmpty() {\n }", "@Test\r\n\tpublic void testNameInvalid() {\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"*\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"0-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"324tggs\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-feioj\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"/\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"@\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\" \"));\r\n\t}", "@Test\n public void AppNoParams() {\n try{\n App.main(new String[]{});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Insufficient arguments given. Needs [input file] [# processors]\");\n }\n }", "public static String requireNullOrNonEmpty(String str, String message) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n String string0 = SQLUtil.normalize(\"\", false);\n assertEquals(\"\", string0);\n }", "protected boolean isEmpty(String text) {\r\n if (text == null) {\r\n return true;\r\n }\r\n\r\n if (text.trim().length() == 0) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Test(expected = RuntimeException.class)\n\tpublic void shouldReturnExceptionWhenNegativeNumberasInput(){\n\t\tstringCalculator.addString(\"3,-5,6,-9\");\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testcontainsUniqueCharsNaiveNullString() {\n\t\tQuestion11.containsUniqueCharsNaive(null);\n\t}", "public EmptyCommandException() {\n super(\"Input is empty! Please enter something into the chat\");\n }", "@Test\r\n\tpublic void testUserNameEmpty() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(\"\");\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"UserName_Cannot_Be_Null_Or_Empty\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMUIElemEmptyNameFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMUIElemEmptyName());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Test\n\tvoid testCheckString1() {\n\t\tassertTrue(DataChecker.checkString(\"Test\"));\n\t}", "public void testEmpty () throws IOException\n {\n Stream stream;\n\n stream = new Stream (new ByteArrayInputStream (new byte[0]));\n assertTrue (\"erroneous character\", -1 == stream.read ());\n }", "static void checkString(final String param, final String paramName) {\r\n Helper.checkNull(param, paramName);\r\n\r\n if (param.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"The argument '\" + paramName\r\n + \"' should not be empty string.\");\r\n }\r\n }", "private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "@Test\n public void loginWithEmptyEmail(){\n String rand=random.getNewRandomName()+\"_auto\";\n Assert.assertEquals(createUserChecking.creationChecking(rand,\"\"),\"APPLICATION ERROR #1200\");\n log.info(\"Empty email and login \"+ rand+\" were typed\");\n }", "public void testEmptyFileAfterTypingLambdaParam() throws Exception {\n performTest(\"SimpleLambdaExpressionStart\", 1004, \"t.test(s \", \"empty.pass\", \"1.8\");\n }", "@Test\n public void testEditDistEmptyOtherString() throws Exception{\n assertEquals(4, Esercizio2.edit_distance_dyn(s3, s1));\n }", "public static boolean isEmpty(String input) {\n if (input == null || input.isEmpty() || (\"\").equals(input.trim()))\n return true;\n return false;\n }", "public void testSetPostalCode_EmptyString() {\r\n try {\r\n address.setPostalCode(\" \");\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}", "private static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }", "@Test\n public void testLogin1() {\n System.out.println(\"login method tests empty string user input\");\n String accNo = \"\";\n String pinNo = \"\";\n assertEquals(\"Invalid entries should return false\",false, Account.login(accNo, pinNo));\n }", "public abstract boolean isBlank() throws Exception;", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n SystemInUtil.addInputLine(\"Sc\");\n JSPredicateForm jSPredicateForm0 = new JSPredicateForm((String) null);\n StringReader stringReader0 = new StringReader(\"r<'c)sk5oce,bri\");\n stringReader0.close();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n SystemInUtil.addInputLine(\"Predicateform.print(): 0 elements\");\n // Undeclared exception!\n try { \n jSPredicateForm0.JSPredicateFormInit(streamTokenizer0);\n fail(\"Expecting exception: System.SystemExitException\");\n \n } catch(System.SystemExitException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "public static void notNullOrEmpty(String value, String argName) {\n\t\tif( argName == null) {\n\t\t\tthrow new IllegalArgumentException (\"The argName of the received 'value' parameter cannot be null.\");\n\t\t}\n\t\t\n\t\tif( argName.trim().length() == 0) {\n\t\t\tthrow new IllegalArgumentException (\"The argName of the received 'value' parameter cannot be empty.\");\n\t\t}\n\t\t\n\t\tif( value == null) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' is null.\");\n\t\t}\n\t\t\n\t\tif( value.trim().length() == 0) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' is empty.\");\n\t\t}\n\t}", "@Test\r\n\tpublic void testNoArg() {\r\n\t\tAssert.assertEquals(\"test[]\", new FunctionImpl.FunctionBuilderImpl(\"test\").build().toQ());\r\n\t}", "@Test\r\n\tvoid testGetPlayerBySquadNameShouldFail() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tString s = ctrl.getSquadPlayersByName(\"w\");\r\n\t\t\r\n\t\tboolean success = false;\r\n\t\t\r\n\t\tif(!s.equals(\"\")) {\r\n\t\t\tsuccess = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(success);\r\n\t}", "public static String requireNullOrNonEmpty(String str) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n String string0 = SQLUtil.normalize(\"\", false);\n assertEquals(\"\", string0);\n }", "public void testexecute(String test) throws Exception;", "static boolean containsNoData(String str) {\n return \"\".equals(str) || \"-\".equals(str);\n }", "@Test\n void testWhiteSpace() {\n assertEquals(1, Calculator.calculate(\" 5 - 4\"));\n }", "static String checkEmptyString(String str, String strName) {\n String errorMsg = \"empty \" + strName;\n str = Optional.ofNullable(str).map(s -> {\n if(s.isEmpty()) {\n throw new NullPointerException(errorMsg);\n }\n return s;\n }).orElseThrow(() -> new NullPointerException(errorMsg));\n return str;\n }", "@Test\n public void test_empty_string_returns_null()\n {\n InputStream inputStream = ResourceUtil.getInputStream(\"\");\n assertNull(\"Should be null\", inputStream);\n }" ]
[ "0.7719299", "0.7719299", "0.7441977", "0.7428113", "0.7350597", "0.7258324", "0.7063337", "0.7041052", "0.70143765", "0.70110834", "0.6882934", "0.68120414", "0.68037176", "0.67485416", "0.67163944", "0.6605642", "0.65747607", "0.6539211", "0.65163875", "0.64849687", "0.6454341", "0.64447045", "0.63887507", "0.637739", "0.6365333", "0.6337442", "0.63298523", "0.63240874", "0.63227606", "0.6310169", "0.6310169", "0.63084084", "0.629788", "0.62973344", "0.62973344", "0.6276586", "0.6274559", "0.6242033", "0.6236752", "0.62070084", "0.6164433", "0.6162612", "0.6123209", "0.611978", "0.6110849", "0.6108092", "0.6093565", "0.6072483", "0.60671294", "0.6044059", "0.6043904", "0.60434914", "0.6035421", "0.6012672", "0.6007152", "0.59827125", "0.59686005", "0.596103", "0.596075", "0.5954511", "0.59350467", "0.59277296", "0.5892146", "0.5882368", "0.58748746", "0.5861655", "0.585885", "0.58467835", "0.5840638", "0.58334", "0.5832975", "0.58304876", "0.58237207", "0.58200014", "0.5819194", "0.5819002", "0.58081836", "0.58063996", "0.5799904", "0.5788688", "0.57835275", "0.578251", "0.578062", "0.5776623", "0.57734704", "0.57731265", "0.57730985", "0.57696795", "0.57657146", "0.57626015", "0.57572013", "0.57523715", "0.574777", "0.5740186", "0.57388294", "0.573492", "0.57337815", "0.5731672", "0.5731234", "0.57249755" ]
0.6938853
10
Tests construction with null symbols (should throw an Exception).
@Test(expected = NullPointerException.class) public void testWithNullSymbols() { new ParseBigDecimal((DecimalFormatSymbols) null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testConstructorNPE2() {\r\n try {\r\n new SimpleCreditCardValidator(null, new ValidationLUHN());\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void testCreationFromNullOrigin()\r\n {\r\n final Circle c = new Circle(null, 0);\r\n c.equals(null);\r\n }", "public void testConstructorNPE1() {\r\n try {\r\n new SimpleCreditCardValidator(null);\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "public void testConstructorNPE3() {\r\n try {\r\n new SimpleCreditCardValidator(\"test\", null);\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "@Test\n\tpublic void testNull() throws Exception {\n\t\ttestWith(null);\n\t}", "public void testConstructorWithNullArgument() throws Exception {\r\n try {\r\n new ConfigurationObjectSpecificationFactory(null);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void testCreationFromNullCircle()\r\n {\r\n final Circle c = new Circle(null);\r\n c.equals(null);\r\n }", "public void testCtor1_NullNewWayPoint() {\n try {\n new WayPointEvent(edge, null, offset);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n\tvoid testeNomeNull()\n\t{\n\t\ttry\n\t\t{\n\t\t\tcontatoBasico = new Contato(null, \"Gaudencio\", \"123\");\n\t\t\tfail(\"Esperava erro ao passar nome nulo\");\n\t\t}catch(NullPointerException npe)\n\t\t{\n\t\t\t\n\t\t}\n\n\t}", "public void testCtor_NullComment() {\n try {\n new CutCommentAction(null, null);\n fail(\"IllegalArgumentException is expected!\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void testCtor1_NullOffset() {\n try {\n new WayPointEvent(edge, wayPoint, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n\tpublic void testCreateNullCarMake() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = null;\n\t\tString _model = \"invalid_model\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1990;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a null make car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\t}", "public void testCtor1_NullEdge() {\n try {\n new WayPointEvent(null, wayPoint, offset);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void testConstructorNullName() {\n String name = null;\n int cost = 10;\n\n assertThrows( IllegalArgumentException.class, () -> {\n Modifier m = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n });\n }", "@Test\n void nullTest() {\n assertNull(sFloat1.toScrabbleInt());\n assertNull(sFloat1.and(sFloat2));\n assertNull(sFloat1.or(sFloat2));\n assertNull(sFloat1.toScrabbleBool());\n assertNull(sFloat1.toScrabbleBinary());\n assertNull(sFloat1.addToString(new ScrabbleString(\"Hello World\")));\n }", "@Test\n public void constructorThrowsOnNullFromType() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n new QuerySpecificationBuilder(\"*\", null);\n\n // assert\n });\n }", "public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }", "@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }", "public void testCheckNull() {\n Util.checkNull(\"\", \"test\");\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testcontainsUniqueCharsNaiveNullString() {\n\t\tQuestion11.containsUniqueCharsNaive(null);\n\t}", "@Test\n default void testAbstractDescriptivePredicateConstructorThrowsExceptionForNullDescription() {\n NullPointerException exception = Assertions.assertThrows(NullPointerException.class,\n () -> getInstance(null));\n Assertions.assertEquals(ValidityUtils.nullArgumentMessage(\"description\"),\n exception.getMessage(),\n \"The AbstractDescriptivePredicate constructor should throw the expected exception for a null argument.\");\n }", "@Test\n public void testConstructTaintFromNullLabel() {\n Integer label = null;\n Taint t = Taint.withLabel(label);\n assertTrue(t.isEmpty());\n }", "@Test(expected = NullPointerException.class)\n\tpublic void testCreateFreightCarWithInvalidNullGoodsType() throws TrainException\n\t{\n\t\tString invalidNullGoodsType = null;\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock freightCarWithInvalidNullGoodsType = \n\t\t\t\tnew asgn2RollingStock.FreightCar(validGrossWeight , invalidNullGoodsType);\n\t}", "public void testCtor2_NullOffset() {\n try {\n new WayPointEvent(edge, 0, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCtor_NullState() {\n try {\n new AddActionStateAction(null, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCtor2_NullEdge() {\n try {\n new WayPointEvent(null, 0, offset);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void testConstructTaintFromNullTaint() {\n Taint other = null;\n Taint t = Taint.withLabel(other);\n assertTrue(t.isEmpty());\n }", "@Test\r\n public void testEqualsNull() {\r\n SnakeSquare instance = new SnakeSquare(33, 21);\r\n try {\r\n assertEquals(false, instance.equals(null));\r\n } catch (NullPointerException e) { \r\n fail();\r\n }\r\n }", "@Test\n public void nonNullString() {\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorTypologyNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), null, \"descriton\", 0, true, 1,\n new Procedure(\"name\", \"smp\"), \"workspaceNotes\");\n\n }", "public void testCtor_NullPropertiesPanel() {\n try {\n new ConcurrencyPropertyPanel(null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void nonNullStringPass() {\n }", "public void testCtorWithNullTransferable() throws Exception {\n try {\n new PasteAssociationAction(null, namespace);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "@Test\n public void testAtomString_6() {\n LOGGER.info(\"testAtomString_6\");\n AtomString actual = null;\n final AtomString expected = null;\n boolean caught = false;\n try {\n actual = new AtomString(expected);\n } catch (final NullPointerException ex) {\n caught = true;\n }\n assertTrue(caught);\n assertEquals(expected, actual);\n }", "public void testCtorWithNullNamespace() throws Exception {\n try {\n new PasteAssociationAction(transferable, null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "@Test\n public void exampleTest1() {\n \ttry {\n \t\tVersion version = new Version(null);\n \t} catch(IllegalArgumentException e) {\n \t\tAssert.assertEquals(errorVersionMustNotBeNull, e.getMessage());\n \t} catch(Exception e) {\n \t\tAssert.fail(\"No exception thrown when null version passed to constructor: \"+e.getClass().getName()+\" \"+e.getMessage());\n \t}\n }", "public TestCase notNull( Object obj );", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testContainsUniqueChars2NullString() {\n\t\tQuestion11.containsUniqueChars2(null);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testCheckNullFailure() {\n Helper.checkNull(null, \"null-name\");\n }", "@Test(expected=NullPointerException.class)\r\n public void testConstructor_nextNull() {\r\n \r\n new LengthMax(max, null);\r\n \r\n fail();\r\n \r\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n jSTerm0.add((Object) null);\n // Undeclared exception!\n try { \n jSTerm0.clonePF();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion2(){\n MonetaryConversions.getConversion((String)null);\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n void createNullTest() {\n reservationService.create(null);\n }", "@Test(expected = NullPointerException.class)\n\tpublic final void testPlateau_NullException() {\n\t\tPlateauImpl plat=new PlateauImpl(null);\n\t\tassertNotNull(PlateauImpl.getPlateau(),\"plateau non définit\");\n\t\tPlateauImpl plat1=new PlateauImpl(\"K K\");\n\t\tassertNotNull(\"le plateau ne contient pas de chiffre\", PlateauImpl.getPlateau());\n\t\t\n\t\tPlateauImpl plat2=new PlateauImpl(\"-1 -1\");\n\t\tassertNotNull(\"les chiffres de ce plateau sont négatives\",PlateauImpl.getPlateau());\n\n\t\tPlateauImpl plat3=new PlateauImpl(\"55\");\n\t\tassertNotNull(\"les chiffres de ce plateau sont négatives\",PlateauImpl.getPlateau());\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void constructorExceptionTest(){\n Owner invalid = new Owner(\"First\", \"Last\", \"333\");\r\n }", "@SuppressWarnings(\"unused\")\n\tpublic void testNullInConstructor()\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew TripleKeyMap<>(null, HashMap.class, HashMap.class);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException | NullPointerException e)\n\t\t{\n\t\t\t// OK, expected\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tnew TripleKeyMap<>(HashMap.class, null, HashMap.class);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException | NullPointerException e)\n\t\t{\n\t\t\t// OK, expected\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tnew TripleKeyMap<>(HashMap.class, HashMap.class, null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException | NullPointerException e)\n\t\t{\n\t\t\t// OK, expected\n\t\t}\n\t}", "@Test\r\n\tpublic void testTile1AndTile2ArgumentConstructorNullTileException() {\n\t\tboolean ex = false;\r\n\t\t\t\t\r\n\t\ttry {\r\n\t\t\tPlayerMove move = new PlayerMove(null, tile2);\r\n\t\t} catch (PlayerMove.NullTileRuntimeException e) {\r\n\t\t\tex = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(ex);\r\n\t\t\r\n\t\t// First good, second null\t\t\r\n\t\tex = false;\r\n\t\t\t\t\r\n\t\ttry {\r\n\t\t\tPlayerMove move = new PlayerMove(tile1, null);\r\n\t\t} catch (PlayerMove.NullTileRuntimeException e) {\r\n\t\t\tex = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(ex);\r\n\t\t\r\n\t\t// Both null\t\t\r\n\t\tex = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPlayerMove move = new PlayerMove(null, null);\r\n\t\t} catch (PlayerMove.NullTileRuntimeException e) {\r\n\t\t\tex = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(ex);\r\n\t}", "public void testGetNullValue() {\n ValueString vs = new ValueString();\n\n assertNull(vs.getString());\n assertEquals(0.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate());\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(null, vs.getBigNumber());\n assertNull(vs.getSerializable());\n }", "public TestCase isNull( Object obj );", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder((Chromatogram) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // chromatogram can not be null\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "public void testCtorNullPointerException() {\r\n try {\r\n new InputStreamBytesIterator(null, 22);\r\n fail(\"if inputStream is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testNullPrinterthrowsIllegalArgumentException() {\n\t\t//Act\n\t\tnew VisitorIterator(seed, cityMock, randMock, null, visitorMock);\n\t}", "@Test (expected = Exception.class)\n\tpublic void testEmptySIFChord() throws Exception{\n\t\tnew Chord(1, \"\");\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testCtor_null_argument() throws Exception {\n new DefaultProjectPaymentCalculator(null);\n }", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "public void testCtorNPE() {\r\n try {\r\n new UploadRequestValidator(null);\r\n fail(\"if the argument is null, throw NullPointerExcetpion\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "@Test\n\tpublic void testDefaultConstructor() {\n\t\tassertThat(\"Expect not null.\", testling, is(notNullValue()));\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNullTerritory() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 2);\n new ValidDieDefendAction(player, board, null);\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testNullCityThrowsIllegalArgumentException() {\n\t\t//Act\n\t\tnew VisitorIterator(seed, null, randMock, printerMock, visitorMock);\n\t}", "@Test\n public void constructorThrowsOnNullSelection() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n new QuerySpecificationBuilder(null, QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n });\n }", "public void testCtorIfTextFieldNull() {\n try {\n new EditBoxTrigger(null);\n fail(\"IllegalArgumentException is excpected because textField cannot be null.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }", "@Test\n public void testConstructor() {\n assertNotEquals(null, up);\n }", "@Test\n public void testConstructorInvalidInputs() {\n try {\n Rectangle r5 = new Rectangle(-7, 4, new Color(255, 0, 0),\n new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r6 = new Rectangle(7, -4, new Color(255, 0, 0),\n new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r7 = new Rectangle(7, 4, null, new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r8 = new Rectangle(7, 4, new Color(255, 0, 0), null);\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r9 = new Rectangle(-7, 4, null, null);\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n }", "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }", "public void testNull () throws IOException\n {\n Stream stream;\n\n stream = new Stream (null);\n assertTrue (\"erroneous character\", -1 == stream.read ());\n }", "@Test\n void test_ArgsConstructor() {\n assertThrows(\n IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));\n assertThrows(\n IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));\n\n ValidationContext<Bean> ctx =\n new ValidationContextFactoryImpl(propertyNameObtainerFactory, null).buildFor(new Bean());\n\n assertTrue(ctx.isNull(Bean::getString1));\n }", "public void testCtor_NullManager() {\n try {\n new AddActionStateAction(state, activityGraph, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCtor_NullActivityGraph() {\n try {\n new AddActionStateAction(state, null, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public final void testConstructorEmpty() {\n Set<String> s = this.constructorTest();\n Set<String> sExpected = this.constructorRef();\n /*\n * Assert that values of variables match expectations\n */\n assertEquals(sExpected, s);\n }", "@Test(expected = NullPointerException.class)\n public void formatBooleanNullAsInputTest() {\n Boolean someBoolean = null;\n Format.formatBoolean(someBoolean);\n }", "@Test(expected = NullPointerException.class)\n\tpublic void testNull() {\n\n\t\tString str = null;\n\t\tstr.toUpperCase();\n\t}", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion4(){\n MonetaryConversions.getConversion((String)null, ConversionContext.of());\n }", "public void testCtor1() {\r\n try {\r\n new DbBaseFilterFactory(null);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }", "public void testRegexGroupSearcherForNullPointerException() {\r\n try {\r\n new RegexGroupSearcher(null);\r\n fail(\"the NullPointerException should be thrown!\");\r\n } catch (NullPointerException e) {\r\n // Good\r\n }\r\n }", "@Test\n public void testConstructionNegative()\n {\n String constructed = StateUtils.construct(TEST_DATA, externalContext);\n constructed = constructed.substring(1);\n try\n {\n Object object = StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertFalse(TEST_DATA.equals(object));\n }\n catch (Exception e)\n {\n // do nothing\n }\n }", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion1(){\n MonetaryConversions.getConversion((CurrencyUnit)null);\n }", "@Test(expected = NullPointerException.class)\n\tpublic void test_the_exception() throws Exception {\n\t\tTeacher t =new Teacher(NULL);\n\t\t\n\t\t\n\t}", "@Test\n public void testDefaultConstructor() {\n assertThat(\"Expect not null.\", testling, is(notNullValue()));\n }", "public void testCtorStr_Failure1() throws Exception {\n try {\n new RenameConverter(null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }", "@Test\n public void testIsNullValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = null;\n boolean result = service.isValidName(name);\n assertEquals(false, result);\n }", "@Test\n\tpublic void testCreateNullCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = null;\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an null model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorProcedureNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, null, \"workspaceNotes\");\n\n }", "@Test\n @DisplayName(\"Valid\")\n public void testValidConstructor() {\n assertDoesNotThrow(() -> {\n Settings settings = new Settings();\n assertAll(() -> assertEquals(0, settings.getStreamID()),\n () -> assertEquals(SETTINGS_TYPE, settings.getCode()));\n\n });\n }", "@Test\n public void testConstructorEmptyName() {\n String name = \"\";\n int cost = 10;\n\n assertThrows( IllegalArgumentException.class, () -> {\n Modifier m = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n });\n }", "@Test\n\tpublic void testCtor() {\n\t\tSnacksHot nachos = new SnacksHot(\"Chips\", 3, \"100gr\", \"img/icons/box.png\");\n\t\ttry {\n\t\t\tSnacksHot k = new SnacksHot(\"Chips\", 3, \"100gr\", \"img/icons/box.png\");\n\t\t\tassertNotEquals(null, k);\n\t\t\tassertEquals(\"object should be created with valid Nachos\", nachos, k.getName());\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tfail(\"died calling ctor\");\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNullPlayer() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 2);\n new ValidDieDefendAction(null, board, TerritoryEnum.GREENLAND);\n }", "@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}", "@Test(expected = NullPointerException.class)\n\tpublic void criaContatoSobrenomeNulo() {\n\t\tcontato = new Contato(\"Jardely\", null, \"984653722\");\n\t}", "public void testAddPaymentTerm_Null() throws Exception {\r\n try {\r\n this.getManager().addPaymentTerm(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"PaymentTerm to be added should not be null\") >= 0);\r\n }\r\n }", "public void testObtenerPalabrasClave() {\n \tString prueba = null; \n \t\tassertNull(prueba);\n }", "public void testAssertPropertyReflectionEquals_leftNull() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }", "@Test\n\tpublic void testNullToTerm() {\n\t\tassertTrue(JAVA_NULL.termEquals(jpc.toTerm(null)));\n\t}", "@Test\r\n public void testBadConstructor() {\r\n try {\r\n SnakeSquare instance = new SnakeSquare(33,44);\r\n fail();\r\n } catch (IllegalArgumentException e) { }\r\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n XPathLexer xPathLexer0 = null;\n try {\n xPathLexer0 = new XPathLexer((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testNullEnum () {\n\t\tString example = null;\n\t\ttry {\n\t\t\tRadioBand temp = RadioBand.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (NullPointerException exception) {\n fail(\"Null string throws NullPointerException.\");\n\t\t}\n\t}", "@Test(expected = NullPointerException.class)\n public void testConstructorNPE() throws NullPointerException {\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "@Test\n\tvoid testCheckNulls2() {\n\t\tObject[] o = {2,5f,\"Test\",null,\"Test2\"};\n\t\tassertTrue(DataChecker.checkNulls(o));\n\t}", "@Test\n public void test132() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"Col componet can be added only to a TableBlock.\", \"Col componet can be added only to a TableBlock.\");\n Double double0 = new Double(0.0);\n Text text0 = null;\n try {\n text0 = new Text(hidden0, double0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.73974055", "0.7350274", "0.73433936", "0.73203915", "0.71499896", "0.7145705", "0.7066402", "0.7023537", "0.69897723", "0.69874406", "0.68863565", "0.688448", "0.68659806", "0.68583125", "0.6849802", "0.68330115", "0.68105626", "0.67867166", "0.6774794", "0.67704034", "0.6766733", "0.6755688", "0.6753432", "0.6740589", "0.6740516", "0.67332745", "0.6733172", "0.66823405", "0.66752046", "0.6665044", "0.6631969", "0.6625323", "0.6621763", "0.6612213", "0.6607564", "0.6605264", "0.6601322", "0.6588588", "0.65745425", "0.6566969", "0.65575475", "0.65548944", "0.6553896", "0.65352285", "0.65301377", "0.6522798", "0.65189886", "0.65163386", "0.6512259", "0.65076286", "0.65018296", "0.6496869", "0.6496525", "0.6496276", "0.64936984", "0.64926773", "0.6484683", "0.6482693", "0.6479349", "0.647517", "0.6471174", "0.64654446", "0.6465169", "0.642281", "0.6419622", "0.6413046", "0.64026064", "0.640067", "0.6388284", "0.6379096", "0.6377647", "0.6367193", "0.63624704", "0.6345525", "0.6331952", "0.63313013", "0.633043", "0.63256526", "0.6325483", "0.6322631", "0.6321701", "0.6320124", "0.6318717", "0.63160104", "0.63051236", "0.6302589", "0.6297574", "0.6295836", "0.62958175", "0.6295352", "0.62846", "0.62838423", "0.6283443", "0.628326", "0.62816525", "0.62782615", "0.6277398", "0.6274516", "0.62727386", "0.6271876" ]
0.63306236
76
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int test_case = 0; test_case < T; test_case++) { int number = sc.nextInt(); int[] stones = new int[number]; int location = 0; int max_leap = 0; for(int i = 0; i < number; i++){ stones[i] = sc.nextInt(); } max_leap = sc.nextInt(); for(int k = 0; k < number; k++) { if(k == 0) { if(location + max_leap < stones[k]) { Answer = -1; break; } } else { if(stones[k-1] + max_leap < stones[k]) { Answer = -1; break; } } if(location + max_leap < stones[k]) { Answer++; location = stones[k-1]; } if(k == number - 1) { if(location + max_leap >= stones[k]) { Answer++; location = stones [k]; } } } // Print the answer to standard output(screen). System.out.println("Case #"+(test_case+1)); System.out.println(Answer); Answer = 0; } }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
The catch block clears the isInterrupted flog (sets is to false)
@Override public void run() { try { sleep(duration); } catch(InterruptedException e) { System.out.println(getName() + " was interrupted. isInterrupted(): " + isInterrupted()); return; } System.out.println(getName() + " has awakened"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isInterrupted();", "public void interrupt() {\n\t\tinterrupted = true;\n\t}", "synchronized void setInterrupted() {\n stopped = true;\n inputGiven = true;\n notifyAll();\n }", "protected void interrupted() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" interrupted\");\r\n\t\t }", "protected void interrupted() {\n\t\tL.ogInterrupt(this);\n\t}", "@Override\n\tprotected void interrupted() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" interrupted\");\n\t}", "protected void interrupted() {\r\n\t }", "public void interrupted() {\n\n }", "public void stopProcessing() {\n interrupted = true;\n }", "protected void interrupted() {\n \t\n }", "protected void interrupted() {\n \t\n }", "protected void interrupted() {\r\n }", "protected void interrupted() {\r\n }", "protected void interrupted() {\r\n }", "protected void interrupted() {\r\n }", "protected void interrupted() {\r\n }", "protected void interrupted() {\r\n }", "public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Templates.\r\n }", "protected void interrupted() {\n \n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n }", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\t}", "protected void interrupted() {\n\r\n\t}", "protected void interrupted() {\n\r\n\t}", "public void interrupt() {\n interrupted.set(true);\n Thread.currentThread().interrupt();\n }", "protected void interrupted() {\n \t// who cares\n }", "public void markInterrupted() {\n\t\tenvironmentStatus = State.INTERRUPTED.name();\n\t\terrorMessage = \"setup was interrupted\";\n\t\tthis.statusCode = StatusCode.Interrupted.code;\n\t}", "@Override\n protected void interrupted() {\n // isFinished = true;\n // end();\n }", "@Override\n public synchronized void interrupt() {\n closed = true;\n }", "protected void interrupted()\n\t{\n\t}", "@Override\r\n\tpublic void onInterrupt() {\n\t\t\r\n\t}", "@Override\n public boolean isInterruptible() {\n return true;\n }", "protected void interrupted() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }", "@Override\n public void onInterrupt() {\n }", "@Override\n public void run() {\n System.out.println(\"ffff===\"+ Thread.currentThread().isInterrupted());\n while (true) {\n try{\n Thread.sleep(1);\n System.out.println(\"ccc===\"+ Thread.currentThread().isInterrupted());\n if (Thread.interrupted()) {\n System.out.println(\"ddd===\"+ Thread.currentThread().isInterrupted());\n System.err.println(\"线程中断标志位为true\");\n return;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }", "@Override\n public void interrupt() {\n // the usual check for a set interrupt flag interferes with the looper used, therefore an\n // interrupt from outside directly terminates this handler.\n if (mThread != null) {\n terminate(true);\n } else {\n super.interrupt();\n }\n }", "protected void interrupted() {\n \tRobot.lift.hold();\n \tRobot.debug.Stop();\n }", "protected void interrupted() {\n\t\tdrive.setBoth(0);\n\t}", "protected void interrupted()\n\t{\n\t\tstop();\n\t}", "public void interrupt() {\n close();\n }", "protected void interrupted() {\n \tclaw.close();\n }", "protected void interrupted() {\n \tRobot.conveyor.stop();\n }", "@Override\r\n protected void interrupted() {\r\n }", "protected void interrupted() {\n\t\t// TODO make this end if not in autonomous\n\n\t}", "protected boolean reallyCancel() throws Exception { return true; }", "public static void main(String[] args) throws Exception {\n Thread thread =\n new Thread(\n new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n System.out.println(\"ffff===\"+ Thread.currentThread().isInterrupted());\n while (true) {\n try{\n Thread.sleep(1);\n System.out.println(\"ccc===\"+ Thread.currentThread().isInterrupted());\n if (Thread.interrupted()) {\n System.out.println(\"ddd===\"+ Thread.currentThread().isInterrupted());\n System.err.println(\"线程中断标志位为true\");\n return;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }\n });\n System.out.println(\"aaaa==\" + thread.isInterrupted());\n thread.start();\n Thread.sleep(2);\n thread.interrupt();\n Thread.sleep(2000);\n System.out.println(\"bbbb==\" + thread.isInterrupted());\n }", "public void interrupt();", "@Override\n public void abort() { \n abortFlag = true ;\n }", "protected void interrupted() {\n \t\n \tend();\n }", "protected void interrupted ()\n\t{\n\n\t}", "public boolean wasInterrupted() {\n int theMsg = 0;\n Object object = this.msgSync;\n synchronized (object) {\n theMsg = this.msg;\n }\n return theMsg == 2 || theMsg == 3;\n }", "@Override\n\tpublic void interrupted() {\n\n\t}", "protected void interrupted() {\n \tlogger.info(\"Interrupting AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \t\n }", "public final boolean wasInterrupted() {\n Object obj = this.value;\n return (obj instanceof zzc) && ((zzc) obj).wasInterrupted;\n }" ]
[ "0.7315582", "0.7144833", "0.7087363", "0.699821", "0.68990797", "0.68970984", "0.6892056", "0.6854422", "0.68220025", "0.6785422", "0.6785422", "0.6749157", "0.6749157", "0.6749157", "0.6749157", "0.6749157", "0.6749157", "0.6720039", "0.6670517", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6653159", "0.6624022", "0.6624022", "0.6624022", "0.6624022", "0.6624022", "0.6624022", "0.6624022", "0.6624022", "0.6624022", "0.65914", "0.65914", "0.6583745", "0.65662795", "0.6539585", "0.64837015", "0.6478832", "0.6472166", "0.64545316", "0.64105093", "0.6402467", "0.6382653", "0.63764197", "0.6360434", "0.6358024", "0.6345672", "0.63155884", "0.62868494", "0.6274189", "0.623245", "0.62025464", "0.6194214", "0.61926097", "0.61630857", "0.6144788", "0.61364245", "0.6114194", "0.6111231", "0.61105776", "0.61047953", "0.610478", "0.61023617" ]
0.0
-1
Gets the list of all the companies from the database.
@Override public List<Company> getAllCompanies() { String methodName = "getAllCompanies()"; log.info(className+","+methodName); return companyRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n Session session = sessionFactory.getCurrentSession();\n session.beginTransaction();\n List<Company> listOfCompanies = session.createQuery(\"FROM Company\").getResultList();\n session.getTransaction().commit();\n return listOfCompanies;\n\n } finally {\n if (sessionFactory != null) {\n sessionFactory.close();\n }\n }\n }", "public List<Company> getAllCompanies() {\n\t\t \n\t List<Company> listOfCompanies = new ArrayList<Company>();\n\n\t Cursor cursor = mDatabase.query(MySQLiteHelper.TABLE_COMPANIES,\n\t mAllColumns, null, null, null, null, null);\n\n\t cursor.moveToFirst();\n\t while (!cursor.isAfterLast()) {\n\t Company hunt = cursorToCompany(cursor);\n\t listOfCompanies.add(hunt);\n\t cursor.moveToNext();\n\t }\n\t \n\t cursor.close();\n\t return listOfCompanies;\n\t }", "@Override\n\tpublic List<Company> queryCompanyAll() {\n\t\treturn companyDao.queryCompanyAll();\n\t}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "@Override\n\tpublic List<Company> getAll() {\n\t\treturn dao.getAll();\n\t}", "public List<Company> getAllCompanies() {\n\t\treturn Validations.VerifyNotEmpty(companyRepository.findAll());\n\t}", "public ArrayList<Company> getAllCompanies() throws Exception {\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tconnection = JdbcUtils.getConnection();\n\n\t\t\t// Creating the SQL query\n\t\t\tString sqlStatement = \"SELECT * FROM companies\";\n\n\t\t\t// Combining between the syntax and our connection\n\t\t\tpreparedStatement = connection.prepareStatement(sqlStatement);\t\t\t\n\n\t\t\t// Executing the query\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\tArrayList<Company> allCompanies = new ArrayList<Company>(); \n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\t\n\t\t\t\tLong id = resultSet.getLong(\"Company_Id\");\n\t\t\t\tString name = resultSet.getString(\"Company_NAME\");\n\t\t\t\tallCompanies.add(new Company(id, name));\n\t\t\t}\n\t\t\treturn allCompanies;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// **If there was an exception in the \"try\" block above, it is caught here and\n\t\t\t// notifies a level above.\n\t\t\te.printStackTrace();\n\t\t\tthrow new ApplicationException(e,ErrorType.GENERAL_ERROR,\n\t\t\t\t\tDateUtils.getCurrentDateAndTime() + \"FAILED to return all companies\");\n\n\t\t\t// Closing the resources\n\t\t\t} finally {\n\t\t\t\tJdbcUtils.closeResources(connection, preparedStatement,resultSet);\n\t\t\t}\t\n\t\t}", "@Override\r\n\tpublic ArrayList<Company> getAllCompanies() throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tArrayList<Company> allCompanies = new ArrayList<>();\r\n\t\t\tString sql = \"select * from companies\";\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCompany comp = new Company(rs.getInt(\"companyId\"), rs.getString(\"companyName\"),\r\n\t\t\t\t\t\trs.getString(\"companyEmail\"), rs.getString(\"companyPass\"));\r\n\t\t\t\tallCompanies.add(comp);\r\n\t\t\t}\r\n\t\t\treturn allCompanies;\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"getAllCompanies Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Company> loadAll() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Company\").list();\r\n\t}", "@Override\r\n\tpublic synchronized List<Company> getAllCompanies() throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\t\tList<Company> list = new ArrayList<>();\r\n\t\tString sql = \"select * from Company\";\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql); ResultSet resultSet = preparedStatement.executeQuery()) {\r\n\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tlong companyId = resultSet.getLong(1);\r\n\t\t\t\tString companyName = resultSet.getString(2);\r\n\t\t\t\tString companyPassword = resultSet.getString(3);\r\n\t\t\t\tString companyEmail = resultSet.getString(4);\r\n\r\n\t\t\t\tlist.add(new Company(companyId, companyName, companyPassword, companyEmail));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - unable to get Company data\");\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"unable to get Company data\");\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "List<Company> getCompanyList() throws DAOException ;", "public List<ManagedCompany> getManagedCompanies() {\n \n List<ManagedCompany> results = new ArrayList<>();\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n results = dao.getItems();\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return results;\n }", "public abstract List<Company> getAll();", "public List<TmCompany> findAll() {\n\t\treturn tmCompanyDao.findAll();\r\n\t}", "public CompanyEntity[] getAllCompanies() throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"SELECT * FROM companies\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Executing the update\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (!resultSet.next()) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"Cannot retrieve information\");\n }\n// getting the number of rows returned to create an array of companies\n int numberOfRows = MyUtils.getRowCount(resultSet);\n if (numberOfRows == 0) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"0 companies in the table\");\n }\n// creating an array of companies\n CompanyEntity[] companies = new CompanyEntity[numberOfRows];\n int i = 0;\n while (resultSet.next()) {\n companies[i].setCompanyId(resultSet.getLong(\"id\"));\n companies[i].setCompanyName(resultSet.getString(\"company_name\"));\n companies[i].setCompanyEmail(resultSet.getString(\"company_email\"));\n companies[i].setCompanyPhone(resultSet.getString(\"company_phone\"));\n companies[i].setCompanyAddress(resultSet.getString(\"company_address\"));\n i++;\n }\n\n return companies;\n\n } catch (Exception e) {\n //\t\t\te.printStackTrace();\n throw new Exception(\"Failed to retrieve data\", e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }", "public List<CustomerCompany> getAllCustomerCompanies() \n\t{\n\t\treturn this.entityManager.createNamedQuery(\"CustomerCompany.listAll\", CustomerCompany.class).getResultList();\n\t}", "public static void showCompanies(){\n\t\tCompanyDao.getAllCompanies();\n\t}", "public List<Company> getCompanies() throws BusinessException {\n\t\tList<Company> lstCompanies = new ArrayList<Company>();\n\n\t\ttry {\n\n\t\t\tList<Object> list = UtilSession.getObjectsByNamedQuery(this.em, Company.FIND_COMPANIES, null);\n\n\t\t\tfor (Object object : list) {\n\t\t\t\tCompany vnt = (Company) object;\n\t\t\t\tlstCompanies.add(vnt);\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tString s = \"Error al consultar las compa�ias\";\n\t\t\t_logger.error(s, ex);\n\t\t\tthrow new BusinessException(s, ex);\n\t\t}\n\n\t\t\n\n\t\treturn lstCompanies;\n\n\t}", "public java.util.List<contactsapi.company.CompanyResponse> getCompaniesList() {\n return companies_;\n }", "@Override\n\tpublic Collection<String> getCompanyList() {\n\t\treturn getHibernateTemplate().execute(new HibernateCallback<String, Collection<String>>(\"getCompanyList\") {\n\t\t\t@Override\n\t\t\tpublic Collection<String> doInHibernate(final Session session) {\n\t\t\t\tfinal Criteria criteria = session.createCriteria(getEntityClass());\n\t\t\t\tcriteria.setProjection(Projections.property(\"name\"));\n\t\t\t\tcriteria.addOrder(Order.asc(\"name\"));\n\t\t\t\treturn criteria.list();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public ArrayList<Company> getCompaniesFromCache() {\n\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n query.fromLocalDatastore();\n\n try {\n return new ArrayList<>(query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchants from local data store:\\n\" + e.getMessage());\n }\n\n return new ArrayList<>();\n }", "public java.util.List<contactsapi.company.CompanyResponse> getCompaniesList() {\n if (companiesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(companies_);\n } else {\n return companiesBuilder_.getMessageList();\n }\n }", "@RequestMapping(path = \"/listCompanies\", method = RequestMethod.GET)\n\tpublic ResponseEntity<RestResponse<ListCompaniesResponse>> listCompanies() {\n\n\t\tList<CompanyDTO> companies = companyService.listAll();\n\t\t\n\t\tListCompaniesResponse result = new ListCompaniesResponse(companies);\n\t\t\n\t\tRestResponse<ListCompaniesResponse> restResponse = \n\t\t\t\tnew RestResponse<ListCompaniesResponse>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<ListCompaniesResponse>>(restResponse, HttpStatus.OK);\n\t\t\n\t}", "public java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> getCompanies()\n {\n return companies;\n }", "@Nonnull\n public List<CustomerCompany> fetchCustomerCompany()\n throws ODataException\n {\n if (erpConfigContext == null) {\n throw new ODataException(ODataExceptionType.OTHER, \"Failed to fetch related objects of type CustomerCompany.\", new IllegalStateException(\"Unable to execute OData query. The entity was created locally without an assigned ERP configuration context. This method is applicable only on entities which were retrieved or created using the OData VDM.\"));\n }\n final StringBuilder odataResourceUrl = new StringBuilder(getEntityCollection());\n odataResourceUrl.append(\"(\");\n odataResourceUrl.append(\"Customer=\");\n odataResourceUrl.append(ODataTypeValueSerializer.of(EdmSimpleTypeKind.String).toUri(customer));\n odataResourceUrl.append(\")/\");\n odataResourceUrl.append(\"to_CustomerCompany\");\n final ODataQueryBuilder builder = ODataQueryBuilder.withEntity(getServicePathForFetch(), odataResourceUrl.toString()).withoutMetadata();\n final ODataQuery query = builder.build();\n final ODataQueryResult result = query.execute(erpConfigContext);\n final List<CustomerCompany> entityList = result.asList(CustomerCompany.class);\n for (CustomerCompany entity: entityList) {\n entity.setErpConfigContext(erpConfigContext);\n entity.setServicePathForFetch(getServicePathForFetch());\n }\n return entityList;\n }", "static List<Company> getAllCompanies(SQLiteDatabase db) {\n Cursor cursor = db.query(COMPANY_TABLE, null, COMPANY_WAS_DELETED + \" = ?\", new String[] {\"0\"}, null, null, null);\n List<Company> list = new LinkedList<Company>();\n if (cursor.moveToFirst()) {\n int idIndex = cursor.getColumnIndex(COMPANY_ID);\n int nameIndex = cursor.getColumnIndex(COMPANY_NAME);\n int logoIndex = cursor.getColumnIndex(COMPANY_LOGO);\n int descriptionIndex = cursor.getColumnIndex(COMPANY_DESCRIPTION);\n int lastUpdatedIndex = cursor.getColumnIndex(COMPANY_LAST_UPDATED);\n\n do {\n Company company = new Company();\n company.companyId = cursor.getString(idIndex);\n company.name = cursor.getString(nameIndex);\n company.companyLogo = cursor.getString(logoIndex);\n company.companyDescription = cursor.getString(descriptionIndex);\n company.lastUpdatedDate = cursor.getDouble(lastUpdatedIndex);\n if(company.wasDeleted == false) {\n company.models = CarSQL.getCompanyCars(db, company.companyId);\n list.add(company);\n }\n } while (cursor.moveToNext());\n }\n return list;\n }", "public contactsapi.company.CompanyResponse getCompanies(int index) {\n return companies_.get(index);\n }", "@Override\n\tpublic List<Company> getAll(Page<Company,Long> page) {\n\t\t\treturn dao.getAll(companyPageMapper.pageToDaoRequestParameter(page));\n\t}", "public Collection<CompaniaDTO> findObtenerListaCompanias() throws ERPException{\r\n\t\treturn this.companiaGestor.obtenerListaCompanias();\r\n\t}", "@Override\n\tpublic List<Computer> getAll() {\n\t\t\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString sql = \"SELECT computer.id, computer.name, computer.introduced, computer.discontinued, computer.company_id, company.name FROM computer INNER JOIN company ON computer.company_id = company.id;\";\n\t\t\tconnection = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\tList<Computer> computerList = new ArrayList<Computer>();\n\t\t\twhile(resultSet.next()) {\n\t\t\t\n\t\t\t\tCompany company = Company.builder()\n\t\t\t\t\t\t.setId(resultSet.getLong(\"computer.company_id\"))\n\t\t\t\t\t\t.setName(resultSet.getString(\"company.name\"))\n\t\t\t\t\t\t.build();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tComputer computer = Computer.builder()\n\t\t\t\t\t\t.setId(resultSet.getLong(\"computer.id\"))\n\t\t\t\t\t\t.setName(resultSet.getString(\"computer.name\"))\n\t\t\t\t\t\t.setIntroduced(resultSet.getTimestamp(\"computer.introduced\"))\n\t\t\t\t\t\t.setDiscontinued(resultSet.getTimestamp(\"computer.discontinued\"))\n\t\t\t\t\t\t.setCompany_id(resultSet.getLong(\"computer.company_id\"))\n\t\t\t\t\t\t.setCompany(company)\n\t\t\t\t\t\t.build();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcomputer.toString();\n\t\t\t\tcomputerList.add(computer);\n\t\t\t}\n\t\t\t\n\t\t\treturn computerList;\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\t\n\t\t\tthrow new DAOException(\"Impossible de récupérer la liste des ordinateurs\", e);\n\t\t}finally {\n\t\t\tDaoUtils.closeAll(resultSet, preparedStatement, connection);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}", "public java.util.List<? extends contactsapi.company.CompanyResponseOrBuilder> \n getCompaniesOrBuilderList() {\n return companies_;\n }", "public ArrayList<Coupon> getCompanyCoupons() throws SQLException {\r\n\t\tArrayList<Coupon> coupons = couponsDAO.getAllCoupons();\r\n\t\tArrayList<Coupon> coups = new ArrayList<>();\r\n\t\tfor (Coupon coupon : coupons) {\r\n\t\t\tif (companyID == coupon.getCompanyID())\r\n\t\t\t\tcoups.add(coupon);\r\n\t\t}\r\n\t\treturn coups;\r\n\t}", "public List<BusinessAccount> searchAllContractors() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\t\n\t\n\t\t\tem.getTransaction().begin();\n\t\t\tQuery myQuery = em.createQuery(\"SELECT b FROM BusinessAccount b\");\n\t\t\tcontractorList=myQuery.getResultList();\n\t\t em.getTransaction().commit();\n\t\t em.close();\n\t\t\t\n\t\t\treturn contractorList;\n\t\t}", "@GetMapping(\"/company-types\")\n @Timed\n public List<CompanyType> getAllCompanyTypes() {\n log.debug(\"REST request to get all CompanyTypes\");\n List<CompanyType> companyTypes = companyTypeRepository.findAll();\n return companyTypes;\n }", "public List<IncomingReport> listCompany(Company company) throws IllegalArgumentException, DAOException;", "public List<Compte> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Transactional(readOnly = true)\n @PreAuthorize(\"hasRole('COMPANY_READER')\")\n public List<Company> getAll() {\n return companyRepository.findAll();\n }", "@Nonnull\n public List<CustomerCompany> getCustomerCompanyOrFetch()\n throws ODataException\n {\n if (toCustomerCompany == null) {\n toCustomerCompany = fetchCustomerCompany();\n }\n return toCustomerCompany;\n }", "public Collection<Coupon> getCompanyCoupons() {\n return couponRepo.findCouponsByCompanyID(this.companyID);\n }", "public ArrayList<Company> updateCacheList() {\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n\n try {\n Company.pinAll(\"companyList\", query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchant from Parse Database:\\n\" + e.getMessage());\n }\n\n return getCompaniesFromCache();\n }", "List getCompanies(OwnCodes ownCodes) throws PopulateDataException;", "public java.util.List<? extends contactsapi.company.CompanyResponseOrBuilder> \n getCompaniesOrBuilderList() {\n if (companiesBuilder_ != null) {\n return companiesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(companies_);\n }\n }", "@SuppressWarnings({\"checkstyle:WhitespaceAround\", \"checkstyle:DesignForExtension\", \"checkstyle:MissingJavadocMethod\"})\n @GetMapping(\"/findAllComplaint\")\n public List<Complaint> findAll() {\n\n return complaintService.findAll();\n }", "public java.util.List<contactsapi.company.CompanyResponse.Builder> \n getCompaniesBuilderList() {\n return getCompaniesFieldBuilder().getBuilderList();\n }", "List<Company> getCompaniesByEmailDomain(String domain);", "@Override\r\n\tpublic List<CurrencyAccountCorporate> findAll() {\n\t\treturn em.createQuery(\"from CurrencyAccountCorporate\",\r\n\t\t\t\tCurrencyAccountCorporate.class).getResultList();\r\n\t}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public Cursor fetchAllTodos() {\n\t\treturn database.query(DATABASE_TABLE, new String[] { KEY_COMPANYID,\n\t\t\t\tKEY_COMPANYNAME, KEY_COMPANYDESCRIPTION, KEY_WEBSITE, KEY_COMPANYIMG }, null, null, null,\n\t\t\t\tnull, null);\n\t}", "@Override\n\t/** Returns all Coupons of selected Company as an array list */\n\tpublic Collection<Coupon> getCouponsByCompany(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByCompanySQL = \"select * from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByCompanySQL);\n\t\t\t// Set Company ID variable that method received into prepared\n\t\t\t// statement\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }", "@RequestMapping(\"org/query_company_list.shtm\")\n public void queryCompanyList(HttpServletRequest req,\n HttpServletResponse resp) {\n LOG.info(\"query company list page start...\");\n \n Map<String, Object> params = getReqParams(req);\n \n // do query\n Map<String, Object> resultMap = this.service.queryCompanyList(params);\n\n Map<String, Object> output = getDefaultResult();\n output.putAll(resultMap);\n outputJSON(resp, output);\n \n LOG.info(\"query company list page end.\");\n }", "public List<String> getAllCompaniesNames() {\n\t\treturn Validations.VerifyNotEmpty(companyRepository.findAllUsernames());\n\t}", "public contactsapi.company.CompanyResponse getCompanies(int index) {\n if (companiesBuilder_ == null) {\n return companies_.get(index);\n } else {\n return companiesBuilder_.getMessage(index);\n }\n }", "@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}", "public String[] getCompanyNames() {\n return companyNames;\n }", "@Override\r\n\tpublic Company getAllCompaniesById(Integer id) {\r\n\t\tString methodName = \"getAllCompaniesById(Integer id)\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\tlog.debug(\"id value is::\"+id);\r\n\t\treturn companyRepository.findCompanyById(id.longValue());\r\n\t}", "public String [][] getCompanyListFromDB(int listSize) throws SQLException {\n\t\t\t ArrayList<Company> fromDB= ReturnMatchingCompaniesList();\n\t\t\t String [][] arrayDB = new String [listSize-1][4];\n\t\t\t int i=0;\n\t\t\t for (Company p:fromDB) {\n\t\t\t \tarrayDB[i][0]=p.getIdcompany();\n\t\t\t \tarrayDB[i][1]=p.getCompany_name();\n\t\t\t \tarrayDB[i][2]=p.getPhone();\n\t\t\t \tarrayDB[i][3]=p.getEmail();\n\t\t\t \t\ti++;\n\t\t\t }\n\t\t\t return arrayDB;\n\t\t }", "public List<Company> findAllCompany(int offset, int range);", "@Override\r\n\tpublic List<Commodity> getAllCommodity() {\n\t\tString hql = \"from Commodity\";\r\n\t\treturn (List<Commodity>) getHibernateTemplate().find(hql);\r\n\t}", "public void searchCompanies() {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\ttry {\r\n\t\t\tbusiness = businessDao.searchBusinessForNameOrNit(searchCompany);\r\n\t\t\tif (business == null || business.size() <= 0) {\r\n\t\t\t\tControladorContexto.mensajeInformacion(\r\n\t\t\t\t\t\t\"frmAsociarPermisos:empresas\",\r\n\t\t\t\t\t\tbundle.getString(\"message_no_existen_registros\"));\r\n\t\t\t} else {\r\n\t\t\t\tBusinessAction businessAction = ControladorContexto\r\n\t\t\t\t\t\t.getContextBean(BusinessAction.class);\r\n\t\t\t\tbusinessAction.setListBusiness(new ArrayList<Business>());\r\n\t\t\t\tbusinessAction.setListBusiness(business);\r\n\t\t\t\tbusinessAction.loadDetailsBusiness();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}", "public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}", "public ArrayList<Bot> getAllBotsByCompany(int companyId) {\n final String selectQuery = \"SELECT * FROM Bots WHERE company_id = %d;\";\n ResultSet retrievedBots = dbConnector.selectQuery(String.format(Locale.US, selectQuery, companyId));\n ArrayList<Bot> bots = null;\n try {\n bots = new ArrayList<Bot>();\n while (retrievedBots.next()) {\n bots.add(toBot(retrievedBots));\n }\n } catch (SQLException e) {\n System.out.println(\"Error getting all bots\");\n }\n return bots;\n }", "@Override\n\tpublic List<Comprobante> findAll() throws Exception {\n\t\treturn comproRepository.findAll();\n\t}", "public void refreshCompanies() {\n\t\t \n\t\t mDbHelper.refreshTable(mDatabase, MySQLiteHelper.TABLE_COMPANIES);\n\t }", "public List<Organization> getAll() throws SQLException {\n\t\tlogger.info(\"[Organization] get\");\n\t\treturn organizationDao.queryForAll();\n\t}", "@Override\n\tpublic List<CompanyVO> getCompanyInfo(String c_name) {\n\t\treturn null;\n\t}", "public List<Cosa> findAllBooks() {\r\n\t\tList<Cosa> cosas = (List<Cosa>) jdbcTemplate.query(\r\n\t\t\t\t\"select * from persone\", new CosaRowMapper());\r\n\t\treturn cosas;\r\n\t}", "public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }", "public Collection<Coupon> getAllCoupon() throws DbException;", "public contactsapi.company.CompanyResponseOrBuilder getCompaniesOrBuilder(\n int index) {\n return companies_.get(index);\n }", "public int getCompaniesCount() {\n return companies_.size();\n }", "protected List<CompaniesContactsEntity> findByIdCompany(CompaniesEntity companiesEntity) {\n\n log.info(\"CompaniesContactsBean => method : findByIdCompany()\");\n\n FacesMessage facesMessage;\n\n if (companiesContactsEntity == null) {\n log.error(\"Companies entity is null\");\n facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"company.error\"), null);\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n return null;\n }\n\n EntityManager em = EMF.getEM();\n\n List<CompaniesContactsEntity> companiesContactsEntities = companiesContactsDao.findByIdCompany(em, companiesEntity.getId());\n\n em.clear();\n em.close();\n\n return companiesContactsEntities;\n }", "public List<Author> fetchAllAuthors() {\n\t\tEntityManager entityManager = factory.createEntityManager();\n\t\tTypedQuery<Author> query = entityManager.createQuery(\"from Author\", Author.class);\n\t\tList<Author> authors = query.getResultList();\n\t\tentityManager.close();\n\t\treturn authors;\n\t}", "public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }", "@GetMapping(path = \"companyName/{companyName}\")\n public ResponseEntity<List<Contractor>> findAllByCompanyName(@PathVariable String companyName){\n logger.debug(\"findAllByCompanyName(\" + companyName + \")\");\n\t\tAssert.notNull(companyName, \"Expects a valid companyName\");\n\n List<Contractor> contractors = contractorService.findAllByCompanyName(companyName);\n if(contractors == null || contractors.size() < 1) throw new ResourceNotFoundException(\"Unable to find any contractors matching criteria\");\n return new ResponseEntity(getDTOs(contractors), HttpStatus.ACCEPTED);\n }", "@Override\n\tpublic List<Client> getAll() {\n\t\treturn dao.getAll(Client.class);\n\t}", "Company getCompany(int id);", "public List<ColaTicket> obtenerTodasLasColas() {\n return this.colaFacade.findAll();\n }", "public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }", "public List<Client> findAll() {\n\t\treturn dao.findAll();\n\t}", "public static List<CentroDeCusto> readAll() {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto\");\n return query.list();\n }", "public List<Consulta> getAll() throws BusinessException;", "public List<Customer> findAll(){\n\t\treturn custRepo.findAll();\n\t}", "public List<Book> getAll() {\n return bookFacade.findAll(); \n }", "@GetMapping(\"/bookworm/showAllAuthors\")\n public ResponseEntity<List> showAllAuthors() {\n\n log.debug(\"Showing all the Authors whose books are present in library\");\n return ResponseEntity.ok(authorService.getAuthor());\n }", "@Override\r\n\tpublic List<Company> getCompanyListbySector(String sectorName) {\n\t\tSector sector = sectorRepository.findBySectorName(sectorName);\r\n\t\treturn companyRepository.findBySector(sector.getSectorId());\r\n\t}", "@RequestMapping(value = \"/cophongs\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Cophong> getAllCophongs() {\n log.debug(\"REST request to get all Cophongs\");\n List<Cophong> cophongs = cophongRepository.findAll();\n return cophongs;\n }", "public LinkedListRecursive<Company> getCompanyList() {\r\n\t\treturn companyDirectory;\r\n\t}", "@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }", "@Override\n\tpublic List<Contact> getAllContacts() {\n\t\t\n\t\treturn repository.findAll();\n\t}", "@Override\n\tpublic List<CreditCard> getAll(){\n\t\t\n\t\treturn creditCardDao.findAll();\n\t}", "public List<Contact> getAllContacts();", "public ObservableList<Company> LoadCombo() {\n ObservableList<Company> _list = FXCollections.observableArrayList();\n _list.add(new Company(\"20428776110\", \"ICR PERU\"));\n _list.add(new Company(\"20555029277\", \"ICR INSTALACIONES\"));\n return _list;\n }", "@GetMapping(\"/conto-contabiles\")\n @Timed\n public List<ContoContabile> getAllContoContabiles() {\n log.debug(\"REST request to get all ContoContabiles\");\n return contoContabileService.findAll();\n }", "List<Coupon> findByCompanyId(int companyId);", "@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}", "public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }" ]
[ "0.8660769", "0.8560023", "0.8373527", "0.83205056", "0.83106583", "0.8297648", "0.8203071", "0.81294525", "0.81280315", "0.81017536", "0.80638677", "0.80466264", "0.79737675", "0.79665995", "0.7894897", "0.7874001", "0.7868653", "0.7850497", "0.7834262", "0.78295434", "0.7713179", "0.75620294", "0.7427506", "0.7390552", "0.7329123", "0.73278064", "0.7161489", "0.7064363", "0.69829506", "0.6977291", "0.69667995", "0.6917598", "0.68943435", "0.68938637", "0.6815679", "0.6806319", "0.6771676", "0.67691153", "0.67197543", "0.6689202", "0.6662044", "0.6586758", "0.65851426", "0.6580142", "0.657154", "0.655385", "0.6542049", "0.6537261", "0.6535002", "0.6531808", "0.65275866", "0.6517648", "0.6496263", "0.64436865", "0.6402707", "0.6382607", "0.6369537", "0.6357963", "0.6341327", "0.63335854", "0.63277894", "0.63268495", "0.632214", "0.6307055", "0.6292932", "0.62825906", "0.6277846", "0.62695277", "0.6268468", "0.6266711", "0.6242404", "0.6233616", "0.6212437", "0.62071943", "0.6205695", "0.6161149", "0.615228", "0.6148464", "0.61463517", "0.6145055", "0.6130432", "0.6128022", "0.6106446", "0.6096434", "0.6058637", "0.6050994", "0.60506845", "0.604898", "0.6045108", "0.60356164", "0.6034934", "0.60256815", "0.6025306", "0.6016932", "0.6008895", "0.6008529", "0.6007328", "0.60022265", "0.60005045", "0.600002" ]
0.82356334
6
Gets the company information from repository interface based on auto generated Id
@Override public Company getAllCompaniesById(Integer id) { String methodName = "getAllCompaniesById(Integer id)"; log.info(className+","+methodName); log.debug("id value is::"+id); return companyRepository.findCompanyById(id.longValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Company getCompany(int id);", "public Company findCompany(long id);", "Optional<Company> getCompany(long id);", "public abstract Company get(int id);", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public String getCompanyId()\n {\n return companyId;\n }", "public int getCompanyId() {\n return companyId;\n }", "public String getCompanyId() {\n return companyId;\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public Long getCompanyId() {\n return companyId;\n }", "public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }", "public long getCompanyId() {\n return companyId;\n }", "Company getOrCreateCompanyId(String companyID) throws Exception;", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}", "public Integer getCompanyId() {\n return this.companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "Optional<Company> findById(long company_id);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getAuditingCompany();", "String getCompany();", "public Company getCompany() {\n return company;\n }", "public String getCompany() {\n return (String) get(\"company\");\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "public Company getCompany() {\r\n return this.company;\r\n }", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "@Override\n\tpublic Company getOne(Long id) {\n\t\treturn dao.getById(id);\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}", "public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}", "public String getCompany() {\n return company;\n }", "Optional<Company> findOneById(String id);", "public static final String getCompany() { return company; }", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}", "@Override\r\n\tpublic Company getCompany(long companyId) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\t\tCompany company = new Company();\r\n\t\tString sql = \"SELECT * FROM Company WHERE ID=\" + companyId;\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\r\n\t\t\tresultSet.next();\r\n\t\t\tcompany.setCompanyId(resultSet.getLong(1));\r\n\t\t\tcompany.setCompanyName(resultSet.getString(2));\r\n\t\t\tcompany.setCompanyPassword(resultSet.getString(3));\r\n\t\t\tcompany.setCompanyEmail(resultSet.getString(4));\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - unable to get Company data. companyId: \" + companyId);\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"unable to get Company data. companyId: \" + companyId);\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\t\treturn company;\r\n\t}", "public ManagedCompany getManagedCompany(int id) {\n \n ManagedCompany result = null;\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n result = dao.getItemById(id);\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return result;\n }", "public Company getCompany(String companyShortName);", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }", "@Override\r\n\tpublic Company getOneCompanyById(int compId) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"select * from companies where companyId=\" + compId;\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tCompany comp = new Company();\r\n\t\t\t\tcomp.setCompId(compId);\r\n\t\t\t\tcomp.setCompName(rs.getString(\"companyName\"));\r\n\t\t\t\tcomp.setCompEmail(rs.getString(\"companyEmail\"));\r\n\t\t\t\tcomp.setCompPass(rs.getString(\"companyPass\"));\r\n\r\n\t\t\t\treturn comp;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Couldn't find any company by this ID: \" + compId);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"getOneCompanyById Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "static Company getCompany(SQLiteDatabase db, String companyId) {\n Cursor cursor = db.query(COMPANY_TABLE, null, COMPANY_ID + \" = ?\", new String[] { companyId }, null, null, null);\n List<Company> list = new LinkedList<Company>();\n if (cursor.moveToFirst()) {\n int idIndex = cursor.getColumnIndex(COMPANY_ID);\n int nameIndex = cursor.getColumnIndex(COMPANY_NAME);\n int logoIndex = cursor.getColumnIndex(COMPANY_LOGO);\n int descriptionIndex = cursor.getColumnIndex(COMPANY_DESCRIPTION);\n int lastUpdatedIndex = cursor.getColumnIndex(COMPANY_LAST_UPDATED);\n int wasDeletedIndex = cursor.getColumnIndex(COMPANY_WAS_DELETED);\n\n do {\n if(cursor.getString(idIndex).equals(companyId)) {\n Company company = new Company();\n company.companyId = cursor.getString(idIndex);\n company.name = cursor.getString(nameIndex);\n company.companyLogo = cursor.getString(logoIndex);\n company.companyDescription = cursor.getString(descriptionIndex);\n company.lastUpdatedDate = cursor.getDouble(lastUpdatedIndex);\n company.wasDeleted = (cursor.getInt(wasDeletedIndex) == 1);\n company.models = CarSQL.getCompanyCars(db,company.companyId);\n return company;\n }\n else\n Log.d(\"TAG\",\"can not give correct company companyID \" + companyId + \" from sql\");\n } while (cursor.moveToNext());\n }\n return null;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public Company findCompany(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "@Override\n @Transactional\n public Company getByID(long id) {\n\n\tCompany company = this.companyDAO.getByID(id);\n\n\t// Security check.\n\tif (!this.authHelper.isSuperAdmin()) {\n\t this.messageHelper.unauthorizedID(Company.OBJECT_NAME, company.getId());\n\t return new Company();\n\t}\n\n\t// Log then\n\t// return actual object.\n\tthis.messageHelper.nonAuditableIDNoAssoc(AuditAction.ACTION_GET, Company.OBJECT_NAME,\n\t\tcompany.getId());\n\treturn company;\n }", "@Secured({ })\n\t@RequestMapping(value = \"/contacts/findBycompany/{key}\", method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic List<Contact> findBycompany(@PathVariable(\"key\") Long idcompany) {\n\t\tList<Contact> list = contactService.findBycompany(idcompany);\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}", "public Company getCompany() {\n\t\treturn company;\n\t}", "public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}", "public com.hps.july.persistence.Company getCompany() throws Exception {\n\tif (getDivision() == null) {\n\t\tCompanyAccessBean bean = constructCompanies();\n\t\tif (bean != null)\n\t\t return (Company)bean.getEJBRef();\n\t\telse\n\t\t return null;\n\t}\n\telse\n\t\treturn null;\n\t\t\n}", "public interface CompanyOperations {\n\t/**\n\t * Retrieve Company Details based on unique integer id\n\t * @param id\n\t * @return company\n\t */\n\tCompany getCompany(int id);\n\t\n\t/**\n\t * Retrieve Company Details based on unique name id\n\t * @param name\n\t * @return company\n\t */\n\tCompany getCompanyByUniversalName(String name);\n\t\n\t/**\n\t * Retrive List of Company Details based on email domain\n\t * \n\t * @param domain Email Domain\n\t * @return List of Companies\n\t */\n\tList<Company> getCompaniesByEmailDomain(String domain);\n\t\n\t/**\n\t * Search of Companies based on space separated list of keywords\n\t * \n\t * @param keywords\n\t * @return Search Result with count, start, total and list of companies\n\t */\n\tSearchResultCompany search(String keywords);\n\t\n\t/**\n\t * Retrieve list of Companies that user is following\n\t * @return List of Companies\n\t */\n\tList<Company> getFollowing();\n\t\n\t/**\n\t * Retrieve a list of Suggested Companies for user to follow\n\t * @return List of Companies\n\t */\n\tList<Company> getSuggestionsToFollow();\n\t\n\t/**\n\t * Start following company\n\t * @param id\n\t */\n\tvoid startFollowingCompany(int id);\n\t\n\t/**\n\t * Stop following company\n\t * @param id\n\t */\n\tvoid stopFollowingCompany(int id);\n\t\n\tProductResult getProducts(int companyId, int start, int count);\n}", "public CompanyEntity getCompany(long companyId) throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"SELECT * FROM companies WHERE id = ?\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Replacing the question marks in the statement above with the relevant data\n preparedStatement.setLong(1, companyId);\n\n //Executing the update\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (!resultSet.next()) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"Cannot retrieve information\");\n }\n// creating an array of companies\n CompanyEntity companyEntity = new CompanyEntity();\n companyEntity.setCompanyId(resultSet.getLong(\"id\"));\n companyEntity.setCompanyName(resultSet.getString(\"company_name\"));\n companyEntity.setCompanyEmail(resultSet.getString(\"company_email\"));\n companyEntity.setCompanyPhone(resultSet.getString(\"company_phone\"));\n companyEntity.setCompanyAddress(resultSet.getString(\"company_address\"));\n\n return companyEntity;\n\n } catch (Exception e) {\n //\t\t\te.printStackTrace();\n throw new Exception(\"Failed to retrieve data\", e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public interface ICompanyService {\r\n /**\r\n * 根据公司名字和唯一码查询公司信息\r\n *\r\n * @param company\r\n * @return\r\n */\r\n List<Company> findCompanyByCompany(Company company);\r\n List<Company> findCompanyByCompany(Company company,PageBounds pageBounds);\r\n\r\n /**\r\n * 根据公司code查询公司信息\r\n *\r\n * @param companyCode\r\n * @return\r\n */\r\n Company findCompanyByCompanyCode(String companyCode);\r\n\r\n /**\r\n * 根据公司id查询\r\n *\r\n * @param id\r\n * @return\r\n */\r\n Company findCompanyByid(String id);\r\n\r\n /**\r\n * 修改公司信息\r\n * @param company 公司基本信息\r\n */\r\n void modifyCompanyInfo(Company company)throws Exception;\r\n\r\n void removeCompany(String companyId);\r\n\r\n /**\r\n * 创建公司\r\n *\r\n * @param company\r\n * @param permissionIds\r\n */\r\n void addCompany(Company company, String permissionIds);\r\n\r\n /**\r\n * 更新公司权限\r\n *\r\n * @param company\r\n * @param permissionIds\r\n */\r\n void modifyCompanyPermission(Company company, String permissionIds);\r\n}", "public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }", "@JsonGetter(\"company_id\")\n public String getCompanyId ( ) { \n return this.companyId;\n }", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}", "@Override\r\n\tpublic Company getAllCompaniesByCode(Integer code) {\r\n\t\tString methodName = \"getAllCompaniesById(Integer id)\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\tlog.debug(\"company code is::\"+code);\r\n\t\treturn companyRepository.findCompanyByCode(code.longValue());\r\n\t}", "public Company getCompanyAt(int index) {\r\n\t\treturn companyDirectory.get(index); \r\n\t\t\t\r\n\t}", "public abstract List<Company> getAll();", "List<Company> getCompanyList() throws DAOException ;", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "CompanyExtend selectByPrimaryKey(Long id);", "public String getCompanyCode() {\n return companyCode;\n }", "@Transactional(readOnly = true)\n public Company findOne(final Long companyId) {\n return companyRepository.findOne(companyId);\n }", "CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "@Override\r\n\tpublic Company getDetailByCompanyName(String companyName) {\n\t\treturn companyRepository.findByCompanyName(companyName);\r\n\t}", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public String getCompany(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, COMPANY);\n\t}", "@Override\n\tpublic List<CompanyVO> getCompanyInfo(String c_name) {\n\t\treturn null;\n\t}", "public static void showCompanies(){\n\t\tCompanyDao.getAllCompanies();\n\t}" ]
[ "0.8216618", "0.78359145", "0.75423867", "0.7517638", "0.75065875", "0.75065875", "0.75065875", "0.75065875", "0.75065875", "0.7339596", "0.7332592", "0.7261712", "0.7250055", "0.7250055", "0.724992", "0.724992", "0.724992", "0.724992", "0.7206133", "0.7206133", "0.7184923", "0.7143561", "0.71361744", "0.7132309", "0.70902586", "0.70715517", "0.7041502", "0.7041502", "0.7041502", "0.7024018", "0.6978332", "0.69763756", "0.69045204", "0.6890229", "0.687462", "0.6865347", "0.68584126", "0.6841935", "0.6838304", "0.6838199", "0.6838199", "0.6831944", "0.6825907", "0.680896", "0.6784394", "0.6767571", "0.6757661", "0.67529297", "0.67498887", "0.6746075", "0.6735101", "0.6729327", "0.671406", "0.66773945", "0.66729033", "0.6672709", "0.6652318", "0.6634407", "0.6592406", "0.65871054", "0.6575591", "0.6563191", "0.6560011", "0.65586585", "0.65347534", "0.65251625", "0.65189457", "0.6510788", "0.6502133", "0.6502133", "0.6491034", "0.6490801", "0.6480791", "0.6470862", "0.64637834", "0.64637834", "0.64637834", "0.64637834", "0.64637834", "0.6463704", "0.64499557", "0.6423656", "0.64210415", "0.64111716", "0.64056844", "0.64056844", "0.63913214", "0.6388026", "0.6375414", "0.63739854", "0.63727844", "0.63727844", "0.636938", "0.63586974", "0.63586974", "0.63451564", "0.6323234", "0.6307653", "0.6304792", "0.62884974" ]
0.6975278
32
Gets the company information from repository interface based on company code
@Override public Company getAllCompaniesByCode(Integer code) { String methodName = "getAllCompaniesById(Integer id)"; log.info(className+","+methodName); log.debug("company code is::"+code); return companyRepository.findCompanyByCode(code.longValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCompany();", "public static final String getCompany() { return company; }", "public String getCompany() {\n return (String) get(\"company\");\n }", "public Company getCompany(String companyShortName);", "Company getCompany(int id);", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompany() {\n return company;\n }", "public String getCompanyCode() {\n return companyCode;\n }", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public Company getCompany() {\r\n return this.company;\r\n }", "public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}", "@Override\n\tpublic List<CompanyVO> getCompanyInfo(String c_name) {\n\t\treturn null;\n\t}", "public com.hps.july.persistence.Company getCompany() throws Exception {\n\tif (getDivision() == null) {\n\t\tCompanyAccessBean bean = constructCompanies();\n\t\tif (bean != null)\n\t\t return (Company)bean.getEJBRef();\n\t\telse\n\t\t return null;\n\t}\n\telse\n\t\treturn null;\n\t\t\n}", "public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }", "public Company getCompany() {\n return company;\n }", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "public String getCompany(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, COMPANY);\n\t}", "List getCompanies(OwnCodes ownCodes) throws PopulateDataException;", "public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}", "@java.lang.Override\n public java.lang.String getCompany() {\n java.lang.Object ref = company_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n company_ = s;\n return s;\n }\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getAuditingCompany();", "public abstract Company get(int id);", "Optional<Company> getCompany(long id);", "public Company getCompanyAt(int index) {\r\n\t\treturn companyDirectory.get(index); \r\n\t\t\t\r\n\t}", "public Company findCompany(long id);", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "public Company getCompany() {\n\t\treturn company;\n\t}", "public Company findCompany(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public String getCompanyId()\n {\n return companyId;\n }", "Company getCompanyByUniversalName(String name);", "public java.lang.String getCompany() {\n java.lang.Object ref = company_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n company_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}", "public interface CompanyOperations {\n\t/**\n\t * Retrieve Company Details based on unique integer id\n\t * @param id\n\t * @return company\n\t */\n\tCompany getCompany(int id);\n\t\n\t/**\n\t * Retrieve Company Details based on unique name id\n\t * @param name\n\t * @return company\n\t */\n\tCompany getCompanyByUniversalName(String name);\n\t\n\t/**\n\t * Retrive List of Company Details based on email domain\n\t * \n\t * @param domain Email Domain\n\t * @return List of Companies\n\t */\n\tList<Company> getCompaniesByEmailDomain(String domain);\n\t\n\t/**\n\t * Search of Companies based on space separated list of keywords\n\t * \n\t * @param keywords\n\t * @return Search Result with count, start, total and list of companies\n\t */\n\tSearchResultCompany search(String keywords);\n\t\n\t/**\n\t * Retrieve list of Companies that user is following\n\t * @return List of Companies\n\t */\n\tList<Company> getFollowing();\n\t\n\t/**\n\t * Retrieve a list of Suggested Companies for user to follow\n\t * @return List of Companies\n\t */\n\tList<Company> getSuggestionsToFollow();\n\t\n\t/**\n\t * Start following company\n\t * @param id\n\t */\n\tvoid startFollowingCompany(int id);\n\t\n\t/**\n\t * Stop following company\n\t * @param id\n\t */\n\tvoid stopFollowingCompany(int id);\n\t\n\tProductResult getProducts(int companyId, int start, int count);\n}", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyId() {\n return companyId;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public interface ICompanyService {\r\n /**\r\n * 根据公司名字和唯一码查询公司信息\r\n *\r\n * @param company\r\n * @return\r\n */\r\n List<Company> findCompanyByCompany(Company company);\r\n List<Company> findCompanyByCompany(Company company,PageBounds pageBounds);\r\n\r\n /**\r\n * 根据公司code查询公司信息\r\n *\r\n * @param companyCode\r\n * @return\r\n */\r\n Company findCompanyByCompanyCode(String companyCode);\r\n\r\n /**\r\n * 根据公司id查询\r\n *\r\n * @param id\r\n * @return\r\n */\r\n Company findCompanyByid(String id);\r\n\r\n /**\r\n * 修改公司信息\r\n * @param company 公司基本信息\r\n */\r\n void modifyCompanyInfo(Company company)throws Exception;\r\n\r\n void removeCompany(String companyId);\r\n\r\n /**\r\n * 创建公司\r\n *\r\n * @param company\r\n * @param permissionIds\r\n */\r\n void addCompany(Company company, String permissionIds);\r\n\r\n /**\r\n * 更新公司权限\r\n *\r\n * @param company\r\n * @param permissionIds\r\n */\r\n void modifyCompanyPermission(Company company, String permissionIds);\r\n}", "public String getCompanyname() {\n return companyname;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\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 company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public int getCompanyId() {\n return companyId;\n }", "public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "public String getContactCompany() {\n return contactCompany;\n }", "public String getcompanyURL() {\n return companyURL;\n }", "public String getJdCompany() {\r\n\t\treturn jdCompany;\r\n\t}", "public String getPrimaryCompanyName() {\r\n return primaryCompanyName;\r\n }", "public Long getCompanyId() {\n return companyId;\n }", "public long getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return this.companyId;\n }", "@Test\n public void getCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.QUOTE_SYMBOL);\n assertFalse(comps.isEmpty());\n boolean pass = false;\n for (Stock info : comps) {\n if (info.getSymbol().equals(TestConfiguration.QUOTE_SYMBOL)) {\n pass = true;\n }\n }\n assertTrue(pass);\n }", "Optional<Company> findById(long company_id);", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "public static void showCompanies(){\n\t\tCompanyDao.getAllCompanies();\n\t}", "public void setCompany(String company) {\n this.company = company;\n }", "public java.lang.String getCompanyname() {\n\treturn companyname;\n}", "@Override\r\n\tpublic Company getDetailByCompanyName(String companyName) {\n\t\treturn companyRepository.findByCompanyName(companyName);\r\n\t}", "protected Company getCompany(HttpServletRequest req) {\n\t\t\n\t\tEmployee user = getUser(req);\n\n return (user == null?null:user.getContact().getCompany());\n\t}", "public String getCompanyName() {\r\n\r\n\t\treturn this.companyName;\r\n\t}", "public interface PdbDao {\n\n /**\n * List of company codes for the given ownership codes.\n *\n * @param ownCodes map of own codes with their segments.\n * @return list of OLBCompanyMigration objects.\n * @throws PopulateDataException is thrown.\n */\n List getCompanies(OwnCodes ownCodes) throws PopulateDataException;\n\n}", "public abstract List<Company> getAll();", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}", "public String getCarCompany() {\n\t\treturn carCompany;\n\t}", "@Override\n\tpublic List<Map<String, Object>> getCompanyInfos(Map<String, Object> param) {\n\t\treturn companyMapper.getCompanyInfos(param);\n\t}", "public java.lang.String getDocumentCompany() {\n return documentCompany;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "public ManagedCompany getManagedCompany(int id) {\n \n ManagedCompany result = null;\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n result = dao.getItemById(id);\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return result;\n }", "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}" ]
[ "0.76209635", "0.736015", "0.7308921", "0.72857565", "0.7210415", "0.71510816", "0.71510816", "0.71296394", "0.71296394", "0.71254474", "0.71222323", "0.71045697", "0.71045697", "0.7006671", "0.6993768", "0.6912842", "0.6912842", "0.6888764", "0.68844783", "0.68828946", "0.68608636", "0.6858221", "0.68341064", "0.6829988", "0.6799", "0.6774853", "0.67443234", "0.6742074", "0.6734702", "0.6730087", "0.6706787", "0.66800874", "0.6677423", "0.6662018", "0.6656229", "0.66229606", "0.6612054", "0.66059756", "0.6600012", "0.6589713", "0.6589713", "0.6554167", "0.6549179", "0.65457904", "0.65457904", "0.6539901", "0.6539901", "0.6539901", "0.6529294", "0.6525128", "0.6525128", "0.6525128", "0.6525128", "0.65053797", "0.6492133", "0.6480524", "0.6479488", "0.6461689", "0.6461689", "0.6461689", "0.6461689", "0.6461689", "0.6447253", "0.64140064", "0.6361392", "0.6361392", "0.6360331", "0.6351917", "0.6350805", "0.6350805", "0.6350805", "0.6350805", "0.6348251", "0.6320218", "0.62870395", "0.62825054", "0.62810296", "0.6272066", "0.6269025", "0.6265701", "0.6264353", "0.6262646", "0.6256841", "0.6255075", "0.62499434", "0.62483585", "0.6239083", "0.62202585", "0.62053335", "0.61865884", "0.61839527", "0.61837775", "0.61819977", "0.6176453", "0.61751443", "0.6170785", "0.6170785", "0.6170785", "0.6160678", "0.61532444" ]
0.69023955
17
Primarily for unit tests only
public void setHttpDriver(HttpDriver httpDriver) { this.httpDriver = httpDriver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "private JacobUtils() {}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "private Mocks() { }", "private Util() { }", "private test5() {\r\n\t\r\n\t}", "@Before\n\t public void setUp() {\n\t }", "private ReportGenerationUtil() {\n\t\t\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private OMUtil() { }", "@Before\n\tpublic void setUp() {\n\t}", "protected TestBench() {}", "@Before\n public void setUp () {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void setUp() throws Exception {}", "@Before\n public void setUp() throws Exception {\n\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}", "@Before\r\n\tpublic void setUp() {\n\t}", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Before public void setUp() { }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Override\n public void test() {\n \n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Test\n public void testGetProductInfo() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Override\n public void setUp() {\n }", "private BuilderUtils() {}", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "public void testSetBasedata() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private DataClayMockObject() {\n\n\t}", "@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}", "@Override\n protected void setup() {\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Test\n public void testAddACopy() {\n }", "private MApi() {}", "private StressTestHelper() {\n // Empty constructor.\n }", "protected void setupLocal() {}", "protected void onFirstUse() {}", "public void testLoadOrder() throws Exception {\n }", "public void mock(){\n\n }", "private ProcessorUtils() { }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "public void testGetInsDyn() {\n }", "public void testGetBasedata() {\n }", "@Test public void singletonResolutionInFunctions() {\n fail( \"Not yet implemented\" );\n }", "@Override\n protected void tearDown() {\n }" ]
[ "0.6516577", "0.6477741", "0.6464324", "0.6430179", "0.63670194", "0.6310284", "0.62575495", "0.6246896", "0.6201035", "0.61860836", "0.61374664", "0.60905915", "0.60905915", "0.60905915", "0.60905915", "0.60695654", "0.605083", "0.6023476", "0.6018556", "0.5980934", "0.5980934", "0.5980934", "0.5980934", "0.5980934", "0.5980934", "0.59722054", "0.59687", "0.5967527", "0.5967527", "0.5967527", "0.5967527", "0.5967527", "0.5967208", "0.59660935", "0.5951504", "0.59506357", "0.594715", "0.594715", "0.594696", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5930933", "0.5928977", "0.59160596", "0.5908313", "0.5908313", "0.5908313", "0.5908313", "0.590177", "0.589752", "0.589752", "0.589752", "0.58872855", "0.5886917", "0.5885523", "0.5885523", "0.5869841", "0.5869829", "0.58660907", "0.5864917", "0.58644205", "0.58639306", "0.5862198", "0.58598334", "0.58587664", "0.58587664", "0.58557343", "0.5855211", "0.5854587", "0.5852022", "0.5852022", "0.58486855", "0.5841675", "0.58358705", "0.5834908", "0.58331823", "0.581918", "0.58143353", "0.5805756", "0.5805555", "0.58050436", "0.57953423", "0.5791391", "0.5789454", "0.5778035", "0.57735044" ]
0.0
-1
Exchanges the ZTS ID token with Google STD Exchange Token which then we'll use to get our access token as described in the GCP docs:
GcpExchangeTokenResponse getExchangeToken(DomainDetails domainDetails, final String idToken, ExternalCredentialsRequest externalCredentialsRequest) throws IOException { Map<String, String> attributes = externalCredentialsRequest.getAttributes(); final String gcpTokenScope = getRequestAttribute(attributes, GCP_TOKEN_SCOPE, GCP_DEFAULT_TOKEN_SCOPE); final String gcpWorkloadPoolName = getRequestAttribute(attributes, GCP_WORKLOAD_POOL_NAME, defaultWorkloadPoolName); final String gcpWorkloadProviderName = getRequestAttribute(attributes, GCP_WORKLOAD_PROVIDER_NAME, defaultWorkloadProviderName); String audience = String.format("//iam.googleapis.com/projects/%s/locations/global/workloadIdentityPools/%s/providers/%s", domainDetails.getGcpProjectNumber(), gcpWorkloadPoolName, gcpWorkloadProviderName); GcpExchangeTokenRequest exchangeTokenRequest = new GcpExchangeTokenRequest(); exchangeTokenRequest.setGrantType(GCP_GRANT_TYPE); exchangeTokenRequest.setAudience(audience); exchangeTokenRequest.setScope(gcpTokenScope); exchangeTokenRequest.setRequestedTokenType(GCP_ACCESS_TOKEN_TYPE); exchangeTokenRequest.setSubjectToken(idToken); exchangeTokenRequest.setSubjectTokenType(GCP_ID_TOKEN_TYPE); HttpPost httpPost = new HttpPost(GCP_STS_TOKEN_URL); httpPost.setEntity(new StringEntity(jsonMapper.writeValueAsString(exchangeTokenRequest), ContentType.APPLICATION_JSON)); final HttpDriverResponse httpResponse = httpDriver.doPostHttpResponse(httpPost); if (httpResponse.getStatusCode() != HttpStatus.SC_OK) { GcpExchangeTokenError error = jsonMapper.readValue(httpResponse.getMessage(), GcpExchangeTokenError.class); throw new ResourceException(httpResponse.getStatusCode(), error.getErrorDescription()); } return jsonMapper.readValue(httpResponse.getMessage(), GcpExchangeTokenResponse.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n if (globalKeyFile == null || !globalKeyFile.exists()) {\n CLog.d(\"Unable to fetch the service key because neither environment variable \" +\n \"APE_API_KEY is set nor the key file is dynamically downloaded.\");\n return null;\n }\n keyFilePath = globalKeyFile.getAbsolutePath();\n }\n if (Strings.isNullOrEmpty(mApiScope)) {\n CLog.d(\"API scope not set, use flag --business-logic-api-scope.\");\n return null;\n }\n try {\n Credential credential = GoogleCredential.fromStream(new FileInputStream(keyFilePath))\n .createScoped(Collections.singleton(mApiScope));\n credential.refreshToken();\n return credential.getAccessToken();\n } catch (FileNotFoundException e) {\n CLog.e(String.format(\"Service key file %s doesn't exist.\", keyFilePath));\n } catch (IOException e) {\n CLog.e(String.format(\"Can't read the service key file, %s\", keyFilePath));\n }\n return null;\n }", "@Override\n public ExternalCredentialsResponse getCredentials(Principal principal, DomainDetails domainDetails, String idToken, ExternalCredentialsRequest externalCredentialsRequest)\n throws ResourceException {\n\n // first make sure that our required components are available and configured\n\n if (authorizer == null) {\n throw new ResourceException(ResourceException.FORBIDDEN, \"ZTS authorizer not configured\");\n }\n\n Map<String, String> attributes = externalCredentialsRequest.getAttributes();\n final String gcpServiceAccount = getRequestAttribute(attributes, GCP_SERVICE_ACCOUNT, null);\n if (StringUtil.isEmpty(gcpServiceAccount)) {\n throw new ResourceException(ResourceException.BAD_REQUEST, \"missing gcp service account\");\n }\n\n // verify that the given principal is authorized for all scopes requested\n\n final String gcpTokenScope = getRequestAttribute(attributes, GCP_TOKEN_SCOPE, GCP_DEFAULT_TOKEN_SCOPE);\n String[] gcpTokenScopeList = gcpTokenScope.split(\" \");\n for (String scopeItem : gcpTokenScopeList) {\n final String resource = domainDetails.getName() + \":\" + scopeItem;\n if (!authorizer.access(GCP_SCOPE_ACTION, resource, principal, null)) {\n throw new ResourceException(ResourceException.FORBIDDEN, \"Principal not authorized for configured scope\");\n }\n }\n\n try {\n // first we're going to get our exchange token\n\n GcpExchangeTokenResponse exchangeTokenResponse = getExchangeToken(domainDetails, idToken, externalCredentialsRequest);\n\n final String serviceUrl = String.format(\"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s@%s.iam.gserviceaccount.com:generateAccessToken\",\n gcpServiceAccount, domainDetails.getGcpProjectId());\n final String authorizationHeader = exchangeTokenResponse.getTokenType() + \" \" + exchangeTokenResponse.getAccessToken();\n\n GcpAccessTokenRequest accessTokenRequest = new GcpAccessTokenRequest();\n accessTokenRequest.setScopeList(gcpTokenScope);\n int expiryTime = externalCredentialsRequest.getExpiryTime() == null ? 3600 : externalCredentialsRequest.getExpiryTime();\n accessTokenRequest.setLifetimeSeconds(expiryTime);\n\n HttpPost httpPost = new HttpPost(serviceUrl);\n httpPost.addHeader(HttpHeaders.AUTHORIZATION, authorizationHeader);\n httpPost.setEntity(new StringEntity(jsonMapper.writeValueAsString(accessTokenRequest), ContentType.APPLICATION_JSON));\n\n final HttpDriverResponse httpResponse = httpDriver.doPostHttpResponse(httpPost);\n if (httpResponse.getStatusCode() != HttpStatus.SC_OK) {\n GcpAccessTokenError error = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenError.class);\n throw new ResourceException(httpResponse.getStatusCode(), error.getErrorMessage());\n }\n\n GcpAccessTokenResponse gcpAccessTokenResponse = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenResponse.class);\n\n ExternalCredentialsResponse externalCredentialsResponse = new ExternalCredentialsResponse();\n attributes = new HashMap<>();\n attributes.put(GCP_ACCESS_TOKEN, gcpAccessTokenResponse.getAccessToken());\n externalCredentialsResponse.setAttributes(attributes);\n externalCredentialsResponse.setExpiration(Timestamp.fromString(gcpAccessTokenResponse.getExpireTime()));\n return externalCredentialsResponse;\n\n } catch (Exception ex) {\n throw new ResourceException(ResourceException.FORBIDDEN, ex.getMessage());\n }\n }", "@Test\n public void getGoogleAuthTokensTest() throws ApiException {\n String code = null;\n InlineResponse2003 response = api.getGoogleAuthTokens(code);\n\n // TODO: test validations\n }", "String getAccessToken();", "String getAccessToken();", "GoogleAuthenticatorKey createCredentials();", "public String getAccessToken();", "private void refreshGoogleCalendarToken() {\n this.getGoogleToken();\n }", "private static String getAccessToken() throws IOException {\n\t\t \t\n\t\t GoogleCredential googleCredential = GoogleCredential\n\t .fromStream(new FileInputStream(path))\n\t .createScoped(Arrays.asList(SCOPES));\n\t\t \tgoogleCredential.refreshToken();\n\t\t \treturn googleCredential.getAccessToken();\n\t}", "private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }", "OAuth2Token getToken();", "public void getGoogleToken() {\n String googleEmail = sharedpreferences.getString(\"GoogleEmail\", \"\");\n String scopes = sharedpreferences.getString(\"GoogleScopes\", \"\");\n if (!\"\".equals(googleEmail)) {\n MyAsyncTask asyncTask = new MyAsyncTask(googleEmail, scopes, this.getBaseContext());\n asyncTask.delegate = this;\n asyncTask.execute();\n }\n }", "private String getAccessTokenUrl(String identityServer) {\n\t\treturn \"https://accounts.google.com/o/oauth2/token\";\n\t}", "public void retrieveAccessToken(Context context) {\n PBookAuth mPBookAuth = mApplicationPreferences.getPBookAuth();\n if (mPBookAuth == null || TextUtils.isEmpty(mPBookAuth.getClientName())) {\n view.onReturnAccessToken(null, false);\n return;\n }\n Ion.with(context).load(ACCESS_TOKEN_SERVICE_URL).setBodyParameter(\"client\", mPBookAuth.getClientName()).setBodyParameter(\"phoneNumber\", mPBookAuth.getPhoneNumber()).setBodyParameter(\"platform\", PLATFORM_KEY).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null || !TextUtils.isEmpty(accessToken)) {\n mApplicationPreferences.setTwilioToken(accessToken);\n view.onReturnAccessToken(accessToken, true);\n } else {\n view.onReturnAccessToken(accessToken, false);\n }\n }\n });\n }", "public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }", "public GoogleAuthHelper() {\n\t\t\n\t\tLoadType<ClientCredentials> credentials = ofy().load().type(ClientCredentials.class);\n\t\t\n\t\tfor(ClientCredentials credential : credentials) {\n\t\t\t// static ClientCredentials credentials = new ClientCredentials();\n\t\t\tCALLBACK_URI = credential.getCallBackUri();\n\t\t\tCLIENT_ID = credential.getclientId();\n\t\t\tCLIENT_SECRET = credential.getClientSecret();\n\t\t}\n\t\t\n\t\tflow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT,\n\t\t\t\tJSON_FACTORY, CLIENT_ID, CLIENT_SECRET, SCOPE).setAccessType(\n\t\t\t\t\"offline\").build();\n\t\tgenerateStateToken();\n\t}", "@SuppressWarnings(\"unused\")\n private static String getRefreshToken() throws IOException {\n String client_id = System.getenv(\"PICASSA_CLIENT_ID\");\n String client_secret = System.getenv(\"PICASSA_CLIENT_SECRET\");\n \n // Adapted from http://stackoverflow.com/a/14499390/1447621\n String redirect_uri = \"http://localhost\";\n String scope = \"http://picasaweb.google.com/data/\";\n List<String> scopes;\n HttpTransport transport = new NetHttpTransport();\n JsonFactory jsonFactory = new JacksonFactory();\n\n scopes = new LinkedList<String>();\n scopes.add(scope);\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(transport, jsonFactory, client_id, client_secret, scopes).build();\n GoogleAuthorizationCodeRequestUrl url = flow.newAuthorizationUrl();\n url.setRedirectUri(redirect_uri);\n url.setApprovalPrompt(\"force\");\n url.setAccessType(\"offline\");\n String authorize_url = url.build();\n \n // paste into browser to get code\n System.out.println(\"Put this url into your browser and paste in the access token:\");\n System.out.println(authorize_url);\n \n Scanner scanner = new Scanner(System.in);\n String code = scanner.nextLine();\n scanner.close();\n\n flow = new GoogleAuthorizationCodeFlow.Builder(transport, jsonFactory, client_id, client_secret, scopes).build();\n GoogleTokenResponse res = flow.newTokenRequest(code).setRedirectUri(redirect_uri).execute();\n String refreshToken = res.getRefreshToken();\n String accessToken = res.getAccessToken();\n\n System.out.println(\"refresh:\");\n System.out.println(refreshToken);\n System.out.println(\"access:\");\n System.out.println(accessToken);\n return refreshToken;\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetAccessTokenFromGoogle(code);\n\t\t\t\t\t}", "String getToken(String scope, String username, String password) throws AuthorizationException;", "private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Observable<SscToken> requestSscToken() {\n return new ServiceConnector<SscToken>(\"TokenWS.php?wsdl\", \"RequestToken\"){}\n .execute(new WSParam(\"IMEI\", credentials.getImei()), \n new WSParam(\"Signature\", credentials.getSignature()),\n new WSParam(\"Salt\", credentials.getSalt()), new WSParam(\"VersionCode\", \n credentials.getVersionCode()));\n }", "public static Element getSamlTokenByApiAccessToken(String vCenterServer, String accessToken, String idToken)\n\t\t\tthrows Exception {\n\t\t// Create the REST URL\n\t\tString vcHostnameUri = \"https://\" + vCenterServer + VCENTER_TOKENEXCHANGE_ENDPOINT;\n\t\tURL url = new URL(vcHostnameUri);\n\n\t\t// Create the REST Header\n\t\tMap<String, String> headers = new HashMap<String, String>();\n\t\theaders.put(\"Content-Type\", \"application/json\");\n\t\theaders.put(\"Accept\", \"application/json\");\n\n\t\theaders.put(\"Authorization\", \"Bearer \" + accessToken);\n\n\t\t// POST the REST CALL and get the API Response\n\t\tString payload = \"{ \\\"spec\\\": { \\\"subject_token\\\":\\\"\" + accessToken + \"\\\",\"\n\t\t\t\t+ \"\\\"subject_token_type\\\":\\\"urn:ietf:params:oauth:token-type:access_token\\\", \\\"\"\n\t\t\t\t+ \"requested_token_type\\\": \\\"urn:ietf:params:oauth:token-type:saml2\\\",\"\n\t\t\t\t+ \"\\\"grant_type\\\": \\\"urn:ietf:params:oauth:grant-type:token-exchange\\\",\"\n\t\t\t\t+ \"\\\"actor_token_type\\\":\\\"urn:ietf:params:oauth:token-type:id_token\\\",\"\n\t\t\t\t+ \"\\\"actor_token\\\":\\\"\" + idToken + \"\\\"} }\";\n\n\t\tURLEncoder.encode(payload, \"UTF-8\");\n\n\t\tMap<Integer, String> apiResponse = RestHandler.httpPost(url, headers, payload);\n\t\tIterator<Integer> itr = apiResponse.keySet().iterator();\n\t\tInteger key = itr.next();\n\t\tString local_response = apiResponse.get(key).replaceFirst(\"\\\\{\", \"\").replace(\"\\\\}\", \"\");\n\t\tStringTokenizer tokenizer = new StringTokenizer(local_response, \",\");\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tString element = (String) tokenizer.nextElement();\n\t\t\tString[] res = element.split(\":\");\n\t\t\tString accessTokenElements = res[1].replaceFirst(\"\\\\{\", \"\").replace(\"\\\\}\", \"\");\n\t\t\tString replacedAcessToken = accessTokenElements.toString().replaceAll(\"\\\"\", \"\");\n\t\t\tif (\"access_token\".equalsIgnoreCase(replacedAcessToken)) {\n\t\t\t\tString samlToken = res[2];\n\t\t\t\tString replacedSamlToken = samlToken.replaceAll(\"\\\"\", \"\");\n\t\t\t\tbyte[] decodedBytes = DatatypeConverter.parseBase64Binary(replacedSamlToken);\n\t\t\t\tString decodedSamlToken = new String(decodedBytes, \"UTF-8\");\n\t\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\t\tfactory.setNamespaceAware(true);\n\t\t\t\tDocumentBuilder builder;\n\t\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\t\tDocument doc = builder.parse(new InputSource(new StringReader(decodedSamlToken)));\n\t\t\t\treturn doc.getDocumentElement();\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new Exception(\"Error encountered while retrieving saml bearer token using access token\");\n\t}", "@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }", "private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "public SalesforceAccessGrant(final String accessToken, final String scope, final String refreshToken, final Map<String, Object> response) {\n super(accessToken, scope, refreshToken, null);\n this.instanceUrl = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_INSTANCE_URL);\n this.id = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_ID);\n this.signature = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_SIGNATURE);\n this.issuedAt = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_ISSUED_AT);\n }", "public static String getAccessToken() {\n return accessToken;\n }", "@Test\n public void getServiceAccountTokenTest() throws ApiException {\n String owner = null;\n String entity = null;\n String uuid = null;\n V1Token response = api.getServiceAccountToken(owner, entity, uuid);\n // TODO: test validations\n }", "private Drive authentication() throws IOException {\n\t\t// Request a new access token using the refresh token.\n\t\tGoogleCredential credential = new GoogleCredential.Builder()\n\t\t\t\t.setTransport(HTTP_TRANSPORT)\n\t\t\t\t.setJsonFactory(JSON_FACTORY)\n\t\t\t\t.setClientSecrets(CLIENT_ID, CLIENT_SECRET).build()\n\t\t\t\t.setFromTokenResponse(new TokenResponse().setRefreshToken(REFRESH_TOKEN));\n\t\tcredential.refreshToken();\n\t\treturn new Drive.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential)\n\t\t\t\t.setApplicationName(\"tp3\").build();\n\t}", "public String getAccessToken() {\n return accessToken;\n }", "public String getGCalendarAccessToken( String gcalid, String emailID) {\n\t\t\n\t\tGoogleCredential credential = getGoogleCredential(emailID);\n\t\tif (credential == null) {\n\t\t\treturn null; // user not authorized\n\t\t}\n\t\telse{\n\t\t\treturn credential.getAccessToken();\n\t\t}\n\t}", "private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"client_id=\" + CONSUMER_KEY + \"&client_secret=\" + CONSUMER_SECRET + \"&grant_type=client_credentials\");\n\t\tRequest request = new Request.Builder().url(\"https://api.yelp.com/oauth2/token\").post(body)\n\t\t\t\t.addHeader(\"cache-control\", \"no-cache\").build();\n\n\t\ttry {\n\t\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\t\tString respbody = response.body().string().trim();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject json = (JSONObject) parser.parse(respbody);\n\t\t\taccessToken = (String) json.get(\"access_token\");\n\t\t} catch (IOException | ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public SalesforceAccessGrant(final String accessToken, final String scope, final String refreshToken, final String instanceUrl, final String id) {\n super(accessToken, scope, refreshToken, null);\n this.instanceUrl = instanceUrl;\n this.id = id;\n this.signature = null;\n this.issuedAt = null;\n }", "public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }", "public static String getAccessToken() {\n return \"\";\n }", "public String getAccessToken() {\n return accessToken;\n }", "protected void createIdTokenForRefreshRequest() {\n\t\tgenerateIdTokenClaims();\n\n\t\taddAtHashToIdToken();\n\n\t\taddCustomValuesToIdTokenForRefreshResponse();\n\n\t\tsignIdToken();\n\n\t\tcustomizeIdTokenSignatureForRefreshResponse();\n\n\t\tencryptIdTokenIfNecessary();\n\t}", "@Test\n public void destiny2AwaGetActionTokenTest() {\n String correlationId = null;\n InlineResponse20059 response = api.destiny2AwaGetActionToken(correlationId);\n\n // TODO: test validations\n }", "public String grantToIdentity(String identity, String tkn) throws InternalSkiException {\n byte[] tokenKey = getTokenKey();\n Token otherTkn = th.decodeToken(tkn, tokenKey);\n\n Token newTkn = new Token();\n newTkn.setIdentity(identity);\n newTkn.setKey(otherTkn.getKey());\n // log.info(\"New granted key: \" + newTkn.getKey());\n\n String tknValue = th.encodeToken(newTkn, tokenKey);\n if (tknValue==null) {\n log.warning(\"Failed to encode token during identity grant!\");\n }\n if (log.isLoggable(Level.FINE)) {\n log.fine(\"Created token with value: \" + tknValue);\n }\n return tknValue;\n }", "GoogleAuthenticatorKey createCredentials(String userName);", "public static void main(String... args) {\n\n OAuthRequest oathReq = new OAuthRequest();\n Gson gson = new Gson();\n String hostname = get(\"ne.url.hostname\");\n String urlOAuth2 = hostname + get(\"ne.url.auth\");\n\n try {\n // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App).\n // 4. Set the grant type to \"password' or 'client_credentials' if you want API Gateway to generate the Access token.\n oathReq.clientId(get(\"ne.client.access.client.id\"));\n oathReq.clientSecret(get(\"ne.client.access.client.secret\"));\n oathReq.grantType(get(\"ne.client.access.client.granttype\"));\n oathReq.userName(get(\"ne.client.access.client.username\"));\n String password = new String(Base64.getDecoder().decode(get(\"ne.client.access.client.base64.password\")), \"UTF-8\");\n oathReq.userPassword(password);\n\n HttpResponse<String> response = Unirest.post(urlOAuth2)\n .header(\"Content-Type\", get(\"ne.client.http.body.contenttype\"))\n .body(gson.toJson(oathReq)).asString();\n OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class);\n\n\n System.out.println(\"OAuth2 Access Token: \" + oauthResponse.getAccessToken());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private String GetAccessToken() {\n final String grantType = \"password\";\n final String resourceId = \"https%3A%2F%2Fgraph.microsoft.com%2F\";\n final String tokenEndpoint = \"https://login.microsoftonline.com/common/oauth2/token\";\n\n try {\n URL url = new URL(tokenEndpoint);\n HttpURLConnection conn;\n if (configuration.isProxyUsed()) {\n Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(configuration.getProxyServer(), configuration.getProxyPort()));\n conn = (HttpURLConnection) url.openConnection(proxy);\n } else {\n conn = (HttpURLConnection) url.openConnection();\n }\n\n String line;\n StringBuilder jsonString = new StringBuilder();\n\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n conn.setRequestMethod(\"POST\");\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setInstanceFollowRedirects(false);\n conn.connect();\n\n try (OutputStreamWriter outputStreamWriter = new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)) {\n String payload = String.format(\"grant_type=%1$s&resource=%2$s&client_id=%3$s&username=%4$s&password=%5$s\",\n grantType,\n resourceId,\n clientId,\n username,\n password);\n outputStreamWriter.write(payload);\n }\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {\n while((line = br.readLine()) != null) {\n jsonString.append(line);\n }\n }\n\n conn.disconnect();\n\n JsonObject res = new GsonBuilder()\n .create()\n .fromJson(jsonString.toString(), JsonObject.class);\n\n return res\n .get(\"access_token\")\n .toString()\n .replaceAll(\"\\\"\", \"\");\n\n } catch (IOException e) {\n throw new IllegalAccessError(\"Unable to read authorization response: \" + e.getLocalizedMessage());\n }\n }", "Future<String> getAccessToken(OkapiConnectionParams params);", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "public static SpaceAuthzInterface getSpaceAuthz(TSpaceToken token) {\n\n\t\tSpaceAuthzInterface spaceAuthz = new MockSpaceAuthz();\n\t\t// Retrieve the SpaceAuthz related to the Space Token\n\t\tif ((spaceAuthzs != null) && (spaceAuthzs.containsKey(token))) {\n\t\t\tspaceAuthz = spaceAuthzs.get(token);\n\t\t\tlog.debug(\"Space Authz related to S.Token ='{}' is '{}'\", token, \n\t\t\t\tspaceAuthz.getSpaceAuthzID());\n\t\t} else {\n\t\t\tlog.debug(\"Space Authz related to S.Token ='{}' does not exists. \"\n\t\t\t\t+ \"Use the MOCK one.\", token);\n\t\t}\n\t\treturn spaceAuthz;\n\t}", "GetToken.Req getGetTokenReq();", "AccessToken getOAuthAccessToken(RequestToken requestToken) throws MoefouException;", "@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}", "public int getTokenViaClientCredentials(){\n\t\t//Do we have credentials?\n\t\tif (Is.nullOrEmpty(clientId) || Is.nullOrEmpty(clientSecret)){\n\t\t\treturn 1;\n\t\t}\n\t\ttry{\n\t\t\t//Build auth. header entry\n\t\t\tString authString = \"Basic \" + Base64.getEncoder().encodeToString((clientId + \":\" + clientSecret).getBytes());\n\t\t\t\n\t\t\t//Request headers\n\t\t\tMap<String, String> headers = new HashMap<>();\n\t\t\theaders.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\t\theaders.put(\"Authorization\", authString);\n\t\t\t\n\t\t\t//Request data\n\t\t\tString data = ContentBuilder.postForm(\"grant_type\", \"client_credentials\");\n\t\t\t\n\t\t\t//Call\n\t\t\tlong tic = System.currentTimeMillis();\n\t\t\tthis.lastRefreshTry = tic;\n\t\t\tJSONObject res = Connectors.httpPOST(spotifyAuthUrl, data, headers);\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi getTokenViaClientCredentials\");\n\t\t\tStatistics.addExternalApiTime(\"SpotifyApi getTokenViaClientCredentials\", tic);\n\t\t\t//System.out.println(res.toJSONString()); \t\t//DEBUG\n\t\t\tif (!Connectors.httpSuccess(res)){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tString token = JSON.getString(res, \"access_token\");\n\t\t\tString tokenType = JSON.getString(res, \"token_type\");\n\t\t\tlong expiresIn = JSON.getLongOrDefault(res, \"expires_in\", 0);\n\t\t\tif (Is.nullOrEmpty(token)){\n\t\t\t\treturn 4;\n\t\t\t}else{\n\t\t\t\tthis.token = token;\n\t\t\t\tthis.tokenType = tokenType;\n\t\t\t\tthis.tokenValidUntil = System.currentTimeMillis() + (expiresIn * 1000);\n\t\t\t}\n\t\t\treturn 0;\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi-error getTokenViaClientCredentials\");\n\t\t\treturn 3;\n\t\t}\n\t}", "public String generateNewAccessToken(String refresh_token) throws SocketTimeoutException, IOException, Exception{\n String newAccessToken = \"\";\n JSONObject jsonReturn = new JSONObject();\n JSONObject tokenRequestParams = new JSONObject();\n tokenRequestParams.element(\"refresh_token\", refresh_token);\n if(currentRefreshToken.equals(\"\")){\n //You must read in the properties first!\n Exception noProps = new Exception(\"You must read in the properties first with init(). There was no refresh token set.\");\n throw noProps;\n }\n else{\n try{\n URL rerum = new URL(Constant.RERUM_ACCESS_TOKEN_URL);\n HttpURLConnection connection = (HttpURLConnection) rerum.openConnection();\n connection.setRequestMethod(\"POST\"); \n connection.setConnectTimeout(5*1000); \n connection.setDoOutput(true);\n connection.setDoInput(true);\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.connect();\n DataOutputStream outStream = new DataOutputStream(connection.getOutputStream());\n //Pass in the user provided JSON for the body \n outStream.writeBytes(tokenRequestParams.toString());\n outStream.flush();\n outStream.close(); \n //Execute rerum server v1 request\n BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(),\"utf-8\"));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null){\n //Gather rerum server v1 response\n sb.append(line);\n }\n reader.close();\n jsonReturn = JSONObject.fromObject(sb.toString());\n newAccessToken = jsonReturn.getString(\"access_token\");\n }\n catch(java.net.SocketTimeoutException e){ //This specifically catches the timeout\n System.out.println(\"The Auth0 token endpoint is taking too long...\");\n jsonReturn = new JSONObject(); //We were never going to get a response, so return an empty object.\n jsonReturn.element(\"error\", \"The Auth0 endpoint took too long\");\n throw e;\n }\n }\n setAccessToken(newAccessToken);\n writeProperty(\"access_token\", newAccessToken);\n return newAccessToken;\n }", "Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder();", "@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }", "public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "public String getAccessToken() {\n return accessToken;\n }", "@Override\n public String refresh() {\n\n // Override the existing token\n setToken(null);\n\n // Get the identityId and token by making a call to your backend\n // (Call to your backend)\n\n // Call the update method with updated identityId and token to make sure\n // these are ready to be used from Credentials Provider.\n\n update(identityId, token);\n return token;\n\n }", "String getToken(String username, String password, String grant_type) throws IllegalAccessException{\n\n String URI = serviceUrl + \"/oauth/token\" + \"?\" +\n String.format(\"%s=%s&%s=%s&%s=%s\", \"grant_type\", grant_type, \"username\", username, \"password\", password);\n// String CONTENT_TYPE = \"application/x-www-form-urlencoded\";\n // TODO clientId and clientSecret !!!\n String ENCODING = \"Basic \" +\n Base64.getEncoder().encodeToString(String.format(\"%s:%s\", \"clientId\", \"clientSecret\").getBytes());\n\n// AtomicReference<String> token = null;\n// authorization.subscribe(map -> {\n// token.set((String) map.get(ACCESS_TOKEN));\n// });\n\n String token = null;\n try {\n token = (String)WebClient.create().post()\n .uri(URI)\n .accept(MediaType.APPLICATION_FORM_URLENCODED)\n .contentType(MediaType.APPLICATION_FORM_URLENCODED)\n .header(\"Authorization\", ENCODING)\n .retrieve()\n .bodyToMono(Map.class)\n .block().get(ACCESS_TOKEN);\n } catch (Exception e){\n throw new IllegalAccessException(\"Can't reach access token\");\n }\n\n return token;\n }", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "LastFmAccessGrant exchangeForAccess(String token,\n\t\t\tMultiValueMap<String, String> additionalParameters);", "public Token toScribeToken() {\n return new Token(oauthToken, oauthTokenSecret);\n }", "public void getToken(Context context) {\n FirebaseInstanceId.getInstance().getInstanceId()\r\n .addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<InstanceIdResult> task) {\r\n if (!task.isSuccessful()) {\r\n Log.w(TAG, \"getInstanceId failed\", task.getException());\r\n return;\r\n }\r\n\r\n // Get new Instance ID token\r\n String token = task.getResult().getToken();\r\n\r\n // Log and toast\r\n String msg = context.getString(R.string.msg_token_fmt, token);\r\n Log.d(TAG, msg);\r\n //Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n // [END retrieve_current_token]\r\n }", "void createExposedOAuthCredential(IntegrationClientCredentialsDetailsModel integrationCCD);", "public static String getAccessToken(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN, null);\n\t\t}", "public String getToken()\n {\n return ssProxy.getToken();\n }", "String getComponentAccessToken();", "java.lang.String getRemoteToken();", "String getAuthorizerRefreshToken(String appId);", "@Override\n public void onTokenRefresh() {\n Log.d(\"MyInstanceIDService\", \"onTokenRefresh\");\n// new GCMDoRequest().execute(new GCMRequest(this, GCMCommand.GET_TOKEN));\n }", "@VisibleForTesting\n protected EzSecurityToken getSecurityToken() {\n if (new EzProperties(getConfigurationProperties(), true).getBoolean(\"ezbake.security.fake.token\", false)) {\n return ThriftTestUtils.generateTestSecurityToken(applicationSecurityId, applicationSecurityId, Lists.newArrayList(\"U\"));\n } else {\n try {\n return securityClient.fetchAppToken();\n } catch (Exception ex) {\n logger.error(\"Failed to get security token for INS\", ex);\n throw new RuntimeException(ex);\n }\n }\n }", "@Test\n public void testRefreshToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .refreshToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}", "public String getAccessToken() {\n if (accessToken == null || (System.currentTimeMillis() > (expirationTime - 60 * 1000))) {\n if (refreshToken != null) {\n try {\n this.refreshAccessToken();\n } catch (IOException e) {\n log.error(\"Error fetching access token\", e);\n }\n }\n }\n\n return accessToken;\n }", "void setAccessToken(String accessToken);", "public interface AuthAPIService {\n\n @FormUrlEncoded\n @POST(\"/oauth/token\")\n public Observable<Tokens> getAccessTokensObs(@Field(\"grant_type\") String grantType,\n @Field(\"scope\") String manageProject,\n @Header(\"Authorization\") String authHeader);\n\n}", "default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }", "public static GoogleCredential createCredentialWithRefreshToken(\n\t\t\tHttpTransport transport, JacksonFactory jsonFactory,\n\t\t\tTokenResponse tokenResponse, String clientId, String clientSecret) {\n\t\treturn new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT)\n\t\t\t\t.setJsonFactory(new JacksonFactory())\n\t\t\t\t.setClientSecrets(clientId, clientSecret).build()\n\t\t\t\t.setFromTokenResponse(tokenResponse);\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public static String generate(String clientId, String xacmlRequest) {\n\t\tSystem.out.println(\"Index: \" + xacmlRequest);\n\t\tPrivatePublicKeyHolder holder = getKeys();\n\t\t Calendar calendar = Calendar.getInstance();\n\n\t\t calendar.add(Calendar.DATE, 3);\n\t\t \n\t\t Date date = calendar.getTime();\n\tString issuer = GenerateKeystore.ALIAS;\n \tAlgorithm algorithm = Algorithm.ECDSA256((ECPublicKey)holder.getPublicKey(), (ECPrivateKey)holder.getPrivateKey());\n \tString token = JWT.create()\n \t\t\t.withIssuer(issuer)\n \t\t\t.withClaim(\"clientId\", clientId)\n \t\t\t.withClaim(\"xacml\", xacmlRequest)\n \t\t\t.withExpiresAt(date)\n \t\t\t.sign(algorithm);\n \t\n \t\n \t//validation off the token, just for an example \n\n//\t\ttry {\n//\t\t\tJwts.parser().setSigningKey(holder.getPublicKey()).parseClaimsJws(token);\n//\t\t\tSystem.out.println(\"Credentials are ok\");\n//\t\t} catch (JwtException ex) {\n//\t\t\tSystem.err.println(ex);\n//\t\t\tSystem.out.println(\"Credentials are wrong\");\n//\t\t}\n \t\n\t\treturn token;\n\t}", "String getAuthorizerAccessToken(String appId);", "@Override\r\n\tpublic String accessToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "void performTokenRequest() throws MsalClientException, MsalServiceException {\n throwIfNetworkNotAvailable();\n\n final Oauth2Client oauth2Client = new Oauth2Client(mRequestContext);\n buildRequestParameters(oauth2Client);\n\n final TokenResponse tokenResponse;\n try {\n tokenResponse = oauth2Client.getToken(mAuthRequestParameters.getAuthority());\n } catch (final IOException e) {\n Logger.error(TAG, mRequestContext, \"Token request failed with error: \"\n + e.getMessage(), e);\n throw new MsalClientException(MsalClientException.IO_ERROR, \"Auth failed with the error \" + e.getMessage(), e);\n }\n\n mTokenResponse = tokenResponse;\n }", "@Override\n public String createJwtToken(String userId) {\n Calendar expiration = Calendar.getInstance();\n expiration.roll(Calendar.HOUR, 1);\n \n HashMap<String, Object> claims = new HashMap<>();\n claims.put(\"http://tapkey.net/oauth/token_exchange/client_id\", oauthClientId);\n\n return Jwts.builder()\n .addClaims(claims)\n .setSubject(userId)\n .setAudience(identityProviderAudience)\n .setIssuer(identityProviderIssuer)\n .setIssuedAt(new Date())\n .setExpiration(expiration.getTime())\n .signWith(keyService.getPrivateKey(), SignatureAlgorithm.RS256)\n .compact();\n }", "static void apiSample() {\n ApiClient client = new ApiClient(API_KEY, API_SECRET);\n // get symbol list:\n print(client.getSymbols());\n // get accounts:\n List<Account> accounts = client.getAccounts();\n print(accounts);\n if (!accounts.isEmpty()) {\n // find account id:\n Account account = accounts.get(0);\n long accountId = account.id;\n // create order:\n CreateOrderRequest createOrderReq = new CreateOrderRequest();\n createOrderReq.accountId = String.valueOf(accountId);\n createOrderReq.amount = \"0.02\";\n createOrderReq.price = \"1100.99\";\n createOrderReq.symbol = \"ethcny\";\n createOrderReq.type = CreateOrderRequest.OrderType.BUY_LIMIT;\n Long orderId = client.createOrder(createOrderReq);\n print(orderId);\n // place order:\n String r = client.placeOrder(orderId);\n print(r);\n }\n }", "public String getAccessToken () {\n\t\treturn this.accessToken;\n\t}", "public static void OAuthExample() throws SmartsheetException, UnsupportedEncodingException, URISyntaxException,\n NoSuchAlgorithmException {\n\n // Setup the information that is necessary to request an authorization code\n OAuthFlow oauth = new OAuthFlowBuilder()\n .setClientId(\"YOUR_CLIENT_ID\")\n .setClientSecret(\"YOUR_CLIENT_SECRET\")\n .setRedirectURL(\"https://YOUR_DOMAIN.com/\").build();\n\n // Create the URL that the user will go to grant authorization to the application\n String url = oauth.newAuthorizationURL(EnumSet.of(com.smartsheet.api.oauth.AccessScope.CREATE_SHEETS,\n com.smartsheet.api.oauth.AccessScope.WRITE_SHEETS), \"key=YOUR_VALUE\");\n\n // Take the user to the following URL\n System.out.println(url);\n\n // After the user accepts or declines the authorization they are taken to the redirect URL. The URL of the page\n // the user is taken to can be used to generate an authorization Result object.\n String authorizationResponseURL = \"https://yourDomain.com/?code=l4csislal82qi5h&expires_in=239550&state=key%3D12344\";\n\n // On this page pass in the full URL of the page to create an authorizationResult object\n AuthorizationResult authResult = oauth.extractAuthorizationResult(authorizationResponseURL);\n\n // Get the token from the authorization result\n Token token = oauth.obtainNewToken(authResult);\n\n // Save the token or use it.\n }", "public AuthorizationToken retrieveToken(String token);", "public void generateToken(String uri) {\n this.token = \"sandbox\";\n }", "@FormUrlEncoded\n @POST(\"oauth/request_token\")\n Flowable<ResponseBody> requestToken(@Field(\"oauth_callback\") String oauthCallback);", "private static Tuple<Integer, String> getToken() {\n\t\tTuple<Integer, String> result = new Tuple<Integer, String>();\n\t\tresult = GETRequest(AUTH_URL, AUTH_HEADER, \"\", \"\");\n\t\treturn result;\n\t}", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "public String getAccessToken() {\n\t\t\n\t\tString access_token = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\taccess_token = securityContext.getTokenString();\n\t\t}\n\t\t\n\t\treturn access_token;\n\t}", "@ContractFactory(entites = TokenEntity.class)\npublic interface TokenAPI {\n\n void getAccessToken(String userName, String password);\n\n}", "public void getResponseGoogle(String googleToken, final AsyncHandler<lrAccessToken> handler)\n\t {\n\t\t \tMap<String, String> params = new HashMap<String, String>();\n\t\t \tparams.put(\"key\",AKey);\n\t\t \tparams.put(\"google_access_token\",googleToken);\n\t\t \tproviderHandler(Endpoint.API_V2_ACCESS_TOKEN_GOOGLE, params, handler);\n\t }", "@Override\n protected Intent doInBackground(Void... params) {\n\n Bundle data = new Bundle();\n\n try {\n boolean result = ManageAccountsToken.GetTokens(mainActivity, mEmail);\n\n // Try again\n if(!result){\n result = ManageAccountsToken.GetTokens(mainActivity, mEmail);\n }\n\n if(result){\n data.putString(Utility.KEY_ACCESS_TOKEN, \"was get\");\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"GoogleAuthUtil.getToken IOException \" + e.getMessage());\n data.putString(KEY_ERROR_MESSAGE_GET_TOKEN, e.getMessage());\n } catch (UserRecoverableAuthException e) {\n Log.e(LOG_TAG, \"UserRecoverableAuthException: \" + e.getMessage());\n mainActivity.handleException(e);\n data.putString(KEY_ERROR_MESSAGE_GET_TOKEN, e.getMessage());\n } catch (GoogleAuthException e) {\n Log.e(LOG_TAG, \"GoogleAuthException: \" + e.getMessage());\n data.putString(KEY_ERROR_MESSAGE_GET_TOKEN, e.getMessage());\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"GoogleAuthException: \" + e.getMessage());\n data.putString(KEY_ERROR_MESSAGE_GET_TOKEN, e.getMessage());\n }\n\n final Intent res = new Intent();\n res.putExtras(data);\n\n return res;\n }", "void onGetTokenSuccess(AccessTokenData token);", "public void generateAccessToken(OAuthAccessor accessor)\n throws OAuthException {\n\n try {\n // generate oauth_token and oauth_secret\n // generate token and secret based on consumer_key\n String consumer_key = accessor.consumer.consumerKey;\n \n OAuthAccessorRecord record = findByConsumerKey(accessor.consumer.consumerKey);\n \n // for now use md5 of name + current time as token\n String token_data = consumer_key + System.nanoTime();\n String token = Digester.MD5(token_data);\n\n record.setRequestToken(null);\n record.setAccessToken(token);\n em.persist(record);\n\n } catch (Exception ex) {\n throw new OAuthException(\"ERROR: generating access token\", ex);\n }\n }", "RequestToken getOAuthRequestToken(String callbackURL) throws MoefouException;" ]
[ "0.58794874", "0.5821667", "0.5781953", "0.56768256", "0.56768256", "0.5542199", "0.5528275", "0.53846776", "0.5348348", "0.5271173", "0.520914", "0.5145781", "0.5133855", "0.51293325", "0.5098626", "0.508026", "0.50758296", "0.5047527", "0.50324255", "0.49978423", "0.49812046", "0.4947243", "0.49172553", "0.4912254", "0.49109003", "0.49023694", "0.48991314", "0.4897924", "0.48866475", "0.48747185", "0.48746982", "0.48738453", "0.48674378", "0.4866227", "0.4859847", "0.48559338", "0.48545504", "0.48507017", "0.4831903", "0.48292017", "0.4828034", "0.48223805", "0.48145905", "0.48141497", "0.48070252", "0.4805861", "0.48022515", "0.47936484", "0.47878996", "0.47778234", "0.47710738", "0.47459447", "0.4732888", "0.47302967", "0.47296974", "0.471837", "0.47138643", "0.47086346", "0.4705886", "0.47019956", "0.47009557", "0.4677729", "0.46774676", "0.46588856", "0.4655105", "0.4654889", "0.4651922", "0.46493348", "0.46447554", "0.4633795", "0.4619526", "0.46052682", "0.45895743", "0.45878524", "0.45842326", "0.45803285", "0.45803156", "0.45803156", "0.45791185", "0.45745066", "0.4572198", "0.45628825", "0.45615187", "0.45376253", "0.45295337", "0.4522736", "0.45220014", "0.451698", "0.45068678", "0.45067987", "0.4504217", "0.4504217", "0.4504217", "0.44996545", "0.44967222", "0.44955075", "0.44902113", "0.4489842", "0.4489343", "0.44888645" ]
0.62392414
0
First, we're going to get our exchange token based on our ZTS ID token and then request an access token for the given scope as described in the GCP docs:
@Override public ExternalCredentialsResponse getCredentials(Principal principal, DomainDetails domainDetails, String idToken, ExternalCredentialsRequest externalCredentialsRequest) throws ResourceException { // first make sure that our required components are available and configured if (authorizer == null) { throw new ResourceException(ResourceException.FORBIDDEN, "ZTS authorizer not configured"); } Map<String, String> attributes = externalCredentialsRequest.getAttributes(); final String gcpServiceAccount = getRequestAttribute(attributes, GCP_SERVICE_ACCOUNT, null); if (StringUtil.isEmpty(gcpServiceAccount)) { throw new ResourceException(ResourceException.BAD_REQUEST, "missing gcp service account"); } // verify that the given principal is authorized for all scopes requested final String gcpTokenScope = getRequestAttribute(attributes, GCP_TOKEN_SCOPE, GCP_DEFAULT_TOKEN_SCOPE); String[] gcpTokenScopeList = gcpTokenScope.split(" "); for (String scopeItem : gcpTokenScopeList) { final String resource = domainDetails.getName() + ":" + scopeItem; if (!authorizer.access(GCP_SCOPE_ACTION, resource, principal, null)) { throw new ResourceException(ResourceException.FORBIDDEN, "Principal not authorized for configured scope"); } } try { // first we're going to get our exchange token GcpExchangeTokenResponse exchangeTokenResponse = getExchangeToken(domainDetails, idToken, externalCredentialsRequest); final String serviceUrl = String.format("https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s@%s.iam.gserviceaccount.com:generateAccessToken", gcpServiceAccount, domainDetails.getGcpProjectId()); final String authorizationHeader = exchangeTokenResponse.getTokenType() + " " + exchangeTokenResponse.getAccessToken(); GcpAccessTokenRequest accessTokenRequest = new GcpAccessTokenRequest(); accessTokenRequest.setScopeList(gcpTokenScope); int expiryTime = externalCredentialsRequest.getExpiryTime() == null ? 3600 : externalCredentialsRequest.getExpiryTime(); accessTokenRequest.setLifetimeSeconds(expiryTime); HttpPost httpPost = new HttpPost(serviceUrl); httpPost.addHeader(HttpHeaders.AUTHORIZATION, authorizationHeader); httpPost.setEntity(new StringEntity(jsonMapper.writeValueAsString(accessTokenRequest), ContentType.APPLICATION_JSON)); final HttpDriverResponse httpResponse = httpDriver.doPostHttpResponse(httpPost); if (httpResponse.getStatusCode() != HttpStatus.SC_OK) { GcpAccessTokenError error = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenError.class); throw new ResourceException(httpResponse.getStatusCode(), error.getErrorMessage()); } GcpAccessTokenResponse gcpAccessTokenResponse = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenResponse.class); ExternalCredentialsResponse externalCredentialsResponse = new ExternalCredentialsResponse(); attributes = new HashMap<>(); attributes.put(GCP_ACCESS_TOKEN, gcpAccessTokenResponse.getAccessToken()); externalCredentialsResponse.setAttributes(attributes); externalCredentialsResponse.setExpiration(Timestamp.fromString(gcpAccessTokenResponse.getExpireTime())); return externalCredentialsResponse; } catch (Exception ex) { throw new ResourceException(ResourceException.FORBIDDEN, ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getAccessToken() throws IOException {\n\t\t \t\n\t\t GoogleCredential googleCredential = GoogleCredential\n\t .fromStream(new FileInputStream(path))\n\t .createScoped(Arrays.asList(SCOPES));\n\t\t \tgoogleCredential.refreshToken();\n\t\t \treturn googleCredential.getAccessToken();\n\t}", "private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n if (globalKeyFile == null || !globalKeyFile.exists()) {\n CLog.d(\"Unable to fetch the service key because neither environment variable \" +\n \"APE_API_KEY is set nor the key file is dynamically downloaded.\");\n return null;\n }\n keyFilePath = globalKeyFile.getAbsolutePath();\n }\n if (Strings.isNullOrEmpty(mApiScope)) {\n CLog.d(\"API scope not set, use flag --business-logic-api-scope.\");\n return null;\n }\n try {\n Credential credential = GoogleCredential.fromStream(new FileInputStream(keyFilePath))\n .createScoped(Collections.singleton(mApiScope));\n credential.refreshToken();\n return credential.getAccessToken();\n } catch (FileNotFoundException e) {\n CLog.e(String.format(\"Service key file %s doesn't exist.\", keyFilePath));\n } catch (IOException e) {\n CLog.e(String.format(\"Can't read the service key file, %s\", keyFilePath));\n }\n return null;\n }", "String getToken(String scope, String username, String password) throws AuthorizationException;", "@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }", "String getAccessToken();", "String getAccessToken();", "private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"client_id=\" + CONSUMER_KEY + \"&client_secret=\" + CONSUMER_SECRET + \"&grant_type=client_credentials\");\n\t\tRequest request = new Request.Builder().url(\"https://api.yelp.com/oauth2/token\").post(body)\n\t\t\t\t.addHeader(\"cache-control\", \"no-cache\").build();\n\n\t\ttry {\n\t\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\t\tString respbody = response.body().string().trim();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject json = (JSONObject) parser.parse(respbody);\n\t\t\taccessToken = (String) json.get(\"access_token\");\n\t\t} catch (IOException | ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void getGoogleAuthTokensTest() throws ApiException {\n String code = null;\n InlineResponse2003 response = api.getGoogleAuthTokens(code);\n\n // TODO: test validations\n }", "private Drive authentication() throws IOException {\n\t\t// Request a new access token using the refresh token.\n\t\tGoogleCredential credential = new GoogleCredential.Builder()\n\t\t\t\t.setTransport(HTTP_TRANSPORT)\n\t\t\t\t.setJsonFactory(JSON_FACTORY)\n\t\t\t\t.setClientSecrets(CLIENT_ID, CLIENT_SECRET).build()\n\t\t\t\t.setFromTokenResponse(new TokenResponse().setRefreshToken(REFRESH_TOKEN));\n\t\tcredential.refreshToken();\n\t\treturn new Drive.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential)\n\t\t\t\t.setApplicationName(\"tp3\").build();\n\t}", "private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }", "@SuppressWarnings(\"unused\")\n private static String getRefreshToken() throws IOException {\n String client_id = System.getenv(\"PICASSA_CLIENT_ID\");\n String client_secret = System.getenv(\"PICASSA_CLIENT_SECRET\");\n \n // Adapted from http://stackoverflow.com/a/14499390/1447621\n String redirect_uri = \"http://localhost\";\n String scope = \"http://picasaweb.google.com/data/\";\n List<String> scopes;\n HttpTransport transport = new NetHttpTransport();\n JsonFactory jsonFactory = new JacksonFactory();\n\n scopes = new LinkedList<String>();\n scopes.add(scope);\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(transport, jsonFactory, client_id, client_secret, scopes).build();\n GoogleAuthorizationCodeRequestUrl url = flow.newAuthorizationUrl();\n url.setRedirectUri(redirect_uri);\n url.setApprovalPrompt(\"force\");\n url.setAccessType(\"offline\");\n String authorize_url = url.build();\n \n // paste into browser to get code\n System.out.println(\"Put this url into your browser and paste in the access token:\");\n System.out.println(authorize_url);\n \n Scanner scanner = new Scanner(System.in);\n String code = scanner.nextLine();\n scanner.close();\n\n flow = new GoogleAuthorizationCodeFlow.Builder(transport, jsonFactory, client_id, client_secret, scopes).build();\n GoogleTokenResponse res = flow.newTokenRequest(code).setRedirectUri(redirect_uri).execute();\n String refreshToken = res.getRefreshToken();\n String accessToken = res.getAccessToken();\n\n System.out.println(\"refresh:\");\n System.out.println(refreshToken);\n System.out.println(\"access:\");\n System.out.println(accessToken);\n return refreshToken;\n }", "public void retrieveAccessToken(Context context) {\n PBookAuth mPBookAuth = mApplicationPreferences.getPBookAuth();\n if (mPBookAuth == null || TextUtils.isEmpty(mPBookAuth.getClientName())) {\n view.onReturnAccessToken(null, false);\n return;\n }\n Ion.with(context).load(ACCESS_TOKEN_SERVICE_URL).setBodyParameter(\"client\", mPBookAuth.getClientName()).setBodyParameter(\"phoneNumber\", mPBookAuth.getPhoneNumber()).setBodyParameter(\"platform\", PLATFORM_KEY).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null || !TextUtils.isEmpty(accessToken)) {\n mApplicationPreferences.setTwilioToken(accessToken);\n view.onReturnAccessToken(accessToken, true);\n } else {\n view.onReturnAccessToken(accessToken, false);\n }\n }\n });\n }", "public String getAccessToken();", "public SalesforceAccessGrant(final String accessToken, final String scope, final String refreshToken, final Map<String, Object> response) {\n super(accessToken, scope, refreshToken, null);\n this.instanceUrl = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_INSTANCE_URL);\n this.id = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_ID);\n this.signature = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_SIGNATURE);\n this.issuedAt = (String)response.get(SalesforceConstants.AccessTokenResult.PARAM_ISSUED_AT);\n }", "private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "GcpExchangeTokenResponse getExchangeToken(DomainDetails domainDetails, final String idToken,\n ExternalCredentialsRequest externalCredentialsRequest) throws IOException {\n\n Map<String, String> attributes = externalCredentialsRequest.getAttributes();\n final String gcpTokenScope = getRequestAttribute(attributes, GCP_TOKEN_SCOPE, GCP_DEFAULT_TOKEN_SCOPE);\n final String gcpWorkloadPoolName = getRequestAttribute(attributes, GCP_WORKLOAD_POOL_NAME, defaultWorkloadPoolName);\n final String gcpWorkloadProviderName = getRequestAttribute(attributes, GCP_WORKLOAD_PROVIDER_NAME, defaultWorkloadProviderName);\n\n String audience = String.format(\"//iam.googleapis.com/projects/%s/locations/global/workloadIdentityPools/%s/providers/%s\",\n domainDetails.getGcpProjectNumber(), gcpWorkloadPoolName, gcpWorkloadProviderName);\n\n GcpExchangeTokenRequest exchangeTokenRequest = new GcpExchangeTokenRequest();\n exchangeTokenRequest.setGrantType(GCP_GRANT_TYPE);\n exchangeTokenRequest.setAudience(audience);\n exchangeTokenRequest.setScope(gcpTokenScope);\n exchangeTokenRequest.setRequestedTokenType(GCP_ACCESS_TOKEN_TYPE);\n exchangeTokenRequest.setSubjectToken(idToken);\n exchangeTokenRequest.setSubjectTokenType(GCP_ID_TOKEN_TYPE);\n\n HttpPost httpPost = new HttpPost(GCP_STS_TOKEN_URL);\n httpPost.setEntity(new StringEntity(jsonMapper.writeValueAsString(exchangeTokenRequest), ContentType.APPLICATION_JSON));\n\n final HttpDriverResponse httpResponse = httpDriver.doPostHttpResponse(httpPost);\n if (httpResponse.getStatusCode() != HttpStatus.SC_OK) {\n GcpExchangeTokenError error = jsonMapper.readValue(httpResponse.getMessage(), GcpExchangeTokenError.class);\n throw new ResourceException(httpResponse.getStatusCode(), error.getErrorDescription());\n }\n return jsonMapper.readValue(httpResponse.getMessage(), GcpExchangeTokenResponse.class);\n }", "@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 }", "AccessToken getOAuthAccessToken(RequestToken requestToken) throws MoefouException;", "OAuth2Token getToken();", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetAccessTokenFromGoogle(code);\n\t\t\t\t\t}", "@MainThread\n void getAccessToken(Account account, String scope, GetAccessTokenCallback callback) {\n ConnectionRetry.runAuthTask(new AuthTask<AccessTokenData>() {\n @Override\n public AccessTokenData run() throws AuthException {\n return mAccountManagerFacade.getAccessToken(account, scope);\n }\n @Override\n public void onSuccess(AccessTokenData token) {\n callback.onGetTokenSuccess(token);\n }\n @Override\n public void onFailure(boolean isTransientError) {\n callback.onGetTokenFailure(isTransientError);\n }\n });\n }", "private String handleOAuthAuthorizationRequest(String clientId, HttpServletRequest req, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ throws OAuthSystemException, OAuthProblemException\r\n/* */ {\r\n/* 410 */ OAuth2ClientValidationResponseDTO clientDTO = null;\r\n/* 411 */ String redirect_uri = EndpointUtil.getSafeText(req.getParameter(\"redirect_uri\"));\r\n/* 412 */ if ((clientId == null) || (clientId.equals(\"\"))) {\r\n/* 413 */ String msg = \"Client Id is not present in the authorization request\";\r\n/* 414 */ log.debug(msg);\r\n/* 415 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null); }\r\n/* 416 */ if ((redirect_uri == null) || (redirect_uri.equals(\"\"))) {\r\n/* 417 */ String msg = \"Redirect URI is not present in the authorization request\";\r\n/* 418 */ log.debug(msg);\r\n/* 419 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null);\r\n/* */ }\r\n/* 421 */ clientDTO = validateClient(clientId, redirect_uri);\r\n/* */ \r\n/* */ \r\n/* 424 */ if (!clientDTO.isValidClient()) {\r\n/* 425 */ return EndpointUtil.getErrorPageURL(clientDTO.getErrorCode(), clientDTO.getErrorMsg(), null, null);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 429 */ OAuthAuthzRequest oauthRequest = new OAuthAuthzRequest(req);\r\n/* */ \r\n/* 431 */ OAuth2Parameters params = new OAuth2Parameters();\r\n/* 432 */ params.setClientId(clientId);\r\n/* 433 */ params.setRedirectURI(clientDTO.getCallbackURL());\r\n/* 434 */ params.setResponseType(oauthRequest.getResponseType());\r\n/* 435 */ params.setScopes(oauthRequest.getScopes());\r\n/* 436 */ if (params.getScopes() == null) {\r\n/* 437 */ Set<String> scopeSet = new HashSet();\r\n/* 438 */ scopeSet.add(\"\");\r\n/* 439 */ params.setScopes(scopeSet);\r\n/* */ }\r\n/* 441 */ params.setState(oauthRequest.getState());\r\n/* 442 */ params.setApplicationName(clientDTO.getApplicationName());\r\n/* */ \r\n/* */ \r\n/* 445 */ params.setNonce(oauthRequest.getParam(\"nonce\"));\r\n/* 446 */ params.setDisplay(oauthRequest.getParam(\"display\"));\r\n/* 447 */ params.setIDTokenHint(oauthRequest.getParam(\"id_token_hint\"));\r\n/* 448 */ params.setLoginHint(oauthRequest.getParam(\"login_hint\"));\r\n/* 449 */ if ((oauthRequest.getParam(\"acr_values\") != null) && (!oauthRequest.getParam(\"acr_values\").equals(\"null\")) && (!oauthRequest.getParam(\"acr_values\").equals(\"\")))\r\n/* */ {\r\n/* 451 */ String[] acrValues = oauthRequest.getParam(\"acr_values\").split(\" \");\r\n/* 452 */ LinkedHashSet list = new LinkedHashSet();\r\n/* 453 */ for (String acrValue : acrValues) {\r\n/* 454 */ list.add(acrValue);\r\n/* */ }\r\n/* 456 */ params.setACRValues(list);\r\n/* */ }\r\n/* 458 */ String prompt = oauthRequest.getParam(\"prompt\");\r\n/* 459 */ if (prompt == null) {\r\n/* 460 */ prompt = \"consent\";\r\n/* */ }\r\n/* 462 */ params.setPrompt(prompt);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 494 */ boolean forceAuthenticate = false;\r\n/* 495 */ boolean checkAuthentication = false;\r\n/* */ \r\n/* 497 */ if (prompt != null)\r\n/* */ {\r\n/* 499 */ String[] prompts = prompt.trim().split(\"\\\\s\");\r\n/* 500 */ boolean contains_none = prompt.contains(\"none\");\r\n/* 501 */ if ((prompts.length > 1) && (contains_none)) {\r\n/* 502 */ String error = \"Invalid prompt variable combination. The value 'none' cannot be used with others prompts.\";\r\n/* 503 */ log.debug(error + \" \" + \"Prompt: \" + prompt);\r\n/* 504 */ return OAuthASResponse.errorResponse(302).setError(\"invalid_request\").setErrorDescription(error).location(params.getRedirectURI()).setState(params.getState()).buildQueryMessage().getLocationUri();\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 510 */ if (prompt.contains(\"login\")) {\r\n/* 511 */ checkAuthentication = false;\r\n/* 512 */ forceAuthenticate = true;\r\n/* */ }\r\n/* 514 */ else if ((contains_none) || (prompt.contains(\"consent\"))) {\r\n/* 515 */ checkAuthentication = false;\r\n/* 516 */ forceAuthenticate = false;\r\n/* */ }\r\n/* */ }\r\n/* */ \r\n/* 520 */ String sessionDataKey = UUIDGenerator.generateUUID();\r\n/* 521 */ CacheKey cacheKey = new SessionDataCacheKey(sessionDataKey);\r\n/* 522 */ sessionDataCacheEntry = new SessionDataCacheEntry();\r\n/* 523 */ sessionDataCacheEntry.setoAuth2Parameters(params);\r\n/* 524 */ sessionDataCacheEntry.setQueryString(req.getQueryString());\r\n/* */ \r\n/* 526 */ if (req.getParameterMap() != null) {\r\n/* 527 */ sessionDataCacheEntry.setParamMap(new ConcurrentHashMap(req.getParameterMap()));\r\n/* */ }\r\n/* 529 */ SessionDataCache.getInstance().addToCache(cacheKey, sessionDataCacheEntry);\r\n/* */ try\r\n/* */ {\r\n/* 532 */ return EndpointUtil.getLoginPageURL(clientId, sessionDataKey, forceAuthenticate, checkAuthentication, oauthRequest.getScopes(), req.getParameterMap());\r\n/* */ }\r\n/* */ catch (UnsupportedEncodingException e) {\r\n/* 535 */ log.debug(e.getMessage(), e);\r\n/* 536 */ throw new OAuthSystemException(\"Error when encoding login page URL\");\r\n/* */ }\r\n/* */ }", "private String GetAccessToken() {\n final String grantType = \"password\";\n final String resourceId = \"https%3A%2F%2Fgraph.microsoft.com%2F\";\n final String tokenEndpoint = \"https://login.microsoftonline.com/common/oauth2/token\";\n\n try {\n URL url = new URL(tokenEndpoint);\n HttpURLConnection conn;\n if (configuration.isProxyUsed()) {\n Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(configuration.getProxyServer(), configuration.getProxyPort()));\n conn = (HttpURLConnection) url.openConnection(proxy);\n } else {\n conn = (HttpURLConnection) url.openConnection();\n }\n\n String line;\n StringBuilder jsonString = new StringBuilder();\n\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n conn.setRequestMethod(\"POST\");\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setInstanceFollowRedirects(false);\n conn.connect();\n\n try (OutputStreamWriter outputStreamWriter = new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)) {\n String payload = String.format(\"grant_type=%1$s&resource=%2$s&client_id=%3$s&username=%4$s&password=%5$s\",\n grantType,\n resourceId,\n clientId,\n username,\n password);\n outputStreamWriter.write(payload);\n }\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {\n while((line = br.readLine()) != null) {\n jsonString.append(line);\n }\n }\n\n conn.disconnect();\n\n JsonObject res = new GsonBuilder()\n .create()\n .fromJson(jsonString.toString(), JsonObject.class);\n\n return res\n .get(\"access_token\")\n .toString()\n .replaceAll(\"\\\"\", \"\");\n\n } catch (IOException e) {\n throw new IllegalAccessError(\"Unable to read authorization response: \" + e.getLocalizedMessage());\n }\n }", "@Test\n public void testTokenEndPointAnonymousTokenRequestWithInvalidScope() throws Exception {\n String callback = \"Backplane.callback\";\n \n refreshRequestAndResponse();\n \n request.setRequestURI(\"/v2/token\");\n request.setMethod(\"GET\");\n request.setParameter(\"grant_type\", \"client_credentials\");\n setOAuthBasicAuthentication(request, \"anonymous\", \"\");\n request.setParameter(\"scope\",\"channel:notmychannel\");\n request.setParameter(\"callback\", callback);\n \n handlerAdapter.handle(request, response, controller);\n logger.info(\"testTokenEndPointAnonymousTokenRequestWithInvalidScope() => \" + response.getContentAsString());\n assertTrue(response.getContentAsString().contains(ERR_RESPONSE));\n \n refreshRequestAndResponse();\n \n request.setRequestURI(\"/v2/token\");\n request.setMethod(\"GET\");\n request.setParameter(\"grant_type\", \"client_credentials\");\n setOAuthBasicAuthentication(request, \"anonymous\", \"\");\n request.setParameter(\"scope\",\"bus:notmybus\");\n request.setParameter(\"callback\", callback);\n \n handlerAdapter.handle(request, response, controller);\n logger.info(\"testTokenEndPointAnonymousTokenRequestWithInvalidScope() => \" + response.getContentAsString());\n assertTrue(response.getContentAsString().contains(ERR_RESPONSE));\n }", "public GoogleAuthHelper() {\n\t\t\n\t\tLoadType<ClientCredentials> credentials = ofy().load().type(ClientCredentials.class);\n\t\t\n\t\tfor(ClientCredentials credential : credentials) {\n\t\t\t// static ClientCredentials credentials = new ClientCredentials();\n\t\t\tCALLBACK_URI = credential.getCallBackUri();\n\t\t\tCLIENT_ID = credential.getclientId();\n\t\t\tCLIENT_SECRET = credential.getClientSecret();\n\t\t}\n\t\t\n\t\tflow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT,\n\t\t\t\tJSON_FACTORY, CLIENT_ID, CLIENT_SECRET, SCOPE).setAccessType(\n\t\t\t\t\"offline\").build();\n\t\tgenerateStateToken();\n\t}", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "public static void main(String... args) {\n\n OAuthRequest oathReq = new OAuthRequest();\n Gson gson = new Gson();\n String hostname = get(\"ne.url.hostname\");\n String urlOAuth2 = hostname + get(\"ne.url.auth\");\n\n try {\n // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App).\n // 4. Set the grant type to \"password' or 'client_credentials' if you want API Gateway to generate the Access token.\n oathReq.clientId(get(\"ne.client.access.client.id\"));\n oathReq.clientSecret(get(\"ne.client.access.client.secret\"));\n oathReq.grantType(get(\"ne.client.access.client.granttype\"));\n oathReq.userName(get(\"ne.client.access.client.username\"));\n String password = new String(Base64.getDecoder().decode(get(\"ne.client.access.client.base64.password\")), \"UTF-8\");\n oathReq.userPassword(password);\n\n HttpResponse<String> response = Unirest.post(urlOAuth2)\n .header(\"Content-Type\", get(\"ne.client.http.body.contenttype\"))\n .body(gson.toJson(oathReq)).asString();\n OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class);\n\n\n System.out.println(\"OAuth2 Access Token: \" + oauthResponse.getAccessToken());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void performTokenRequest() throws MsalClientException, MsalServiceException {\n throwIfNetworkNotAvailable();\n\n final Oauth2Client oauth2Client = new Oauth2Client(mRequestContext);\n buildRequestParameters(oauth2Client);\n\n final TokenResponse tokenResponse;\n try {\n tokenResponse = oauth2Client.getToken(mAuthRequestParameters.getAuthority());\n } catch (final IOException e) {\n Logger.error(TAG, mRequestContext, \"Token request failed with error: \"\n + e.getMessage(), e);\n throw new MsalClientException(MsalClientException.IO_ERROR, \"Auth failed with the error \" + e.getMessage(), e);\n }\n\n mTokenResponse = tokenResponse;\n }", "Future<String> getAccessToken(OkapiConnectionParams params);", "private static Credential authorize(List<String> scopes) throws Exception {\r\n\r\n\t // Load client secrets.\r\n\t GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(\r\n\t JSON_FACTORY, UploadVideo.class.getResourceAsStream(\"/client_secrets.json\"));\r\n\r\n\t // Checks that the defaults have been replaced (Default = \"Enter X here\").\r\n\t if (clientSecrets.getDetails().getClientId().startsWith(\"Enter\")\r\n\t || clientSecrets.getDetails().getClientSecret().startsWith(\"Enter \")) {\r\n\t System.out.println(\r\n\t \"Enter Client ID and Secret from https://code.google.com/apis/console/?api=youtube\"\r\n\t + \"into youtube-cmdline-uploadvideo-sample/src/main/resources/client_secrets.json\");\r\n\t System.exit(1);\r\n\t }\r\n\r\n\t // Set up file credential store.\r\n\t FileCredentialStore credentialStore = new FileCredentialStore(\r\n\t new File(System.getProperty(\"user.home\"), \".credentials/youtube-api-uploadvideo.json\"),\r\n\t JSON_FACTORY);\r\n\r\n\t // Set up authorization code flow.\r\n\t GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\r\n\t HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, scopes).setCredentialStore(credentialStore)\r\n\t .build();\r\n\r\n\t // Build the local server and bind it to port 9000\r\n\t LocalServerReceiver localReceiver = new LocalServerReceiver.Builder().setPort(8080).build();\r\n\r\n\t // Authorize.\r\n\t return new AuthorizationCodeInstalledApp(flow, localReceiver).authorize(\"user\");\r\n\t }", "String getToken(String username, String password, String grant_type) throws IllegalAccessException{\n\n String URI = serviceUrl + \"/oauth/token\" + \"?\" +\n String.format(\"%s=%s&%s=%s&%s=%s\", \"grant_type\", grant_type, \"username\", username, \"password\", password);\n// String CONTENT_TYPE = \"application/x-www-form-urlencoded\";\n // TODO clientId and clientSecret !!!\n String ENCODING = \"Basic \" +\n Base64.getEncoder().encodeToString(String.format(\"%s:%s\", \"clientId\", \"clientSecret\").getBytes());\n\n// AtomicReference<String> token = null;\n// authorization.subscribe(map -> {\n// token.set((String) map.get(ACCESS_TOKEN));\n// });\n\n String token = null;\n try {\n token = (String)WebClient.create().post()\n .uri(URI)\n .accept(MediaType.APPLICATION_FORM_URLENCODED)\n .contentType(MediaType.APPLICATION_FORM_URLENCODED)\n .header(\"Authorization\", ENCODING)\n .retrieve()\n .bodyToMono(Map.class)\n .block().get(ACCESS_TOKEN);\n } catch (Exception e){\n throw new IllegalAccessException(\"Can't reach access token\");\n }\n\n return token;\n }", "public Object token(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException {\n try {\n OAuthTokenRequest oauthRequest = new OAuthTokenRequest(request);\n String authCode = oauthRequest.getParam(OAuth.OAUTH_CODE);\n\n // get from cache\n OAuthAuthzParameters oAuthAuthzParameters = oAuthService.getOAuthAuthzParameters(authCode);\n if (oAuthAuthzParameters == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CODE))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_AUTHORIZATION_CODE)\n .buildJSONMessage();\n logger.info(\"no cache for {}\", authCode);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!oAuthAuthzParameters.getClientId().equals(oauthRequest.getClientId())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid client id {}, context: {}\", oauthRequest.getClientId(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client id\n Client openOauthClients = oAuthService.getClientByClientId(oauthRequest.getClientId());\n if (openOauthClients == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"can not get client, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!openOauthClients.getGrantTypes().contains(Constants.OAUTH_AUTHORIZATION_CODE)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"no grant type, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client secret\n if (!openOauthClients.getClientSecret().equals(oauthRequest.getClientSecret())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid secret: {}, context: {}\", openOauthClients.getClientSecret(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check redirect url\n if (!oAuthAuthzParameters.getRedirectUri().equals(oauthRequest.getRedirectURI())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_REDIRECT_URI)\n .buildJSONMessage();\n logger.info(\"invalid redirect url {}, context: {}\", oauthRequest.getRedirectURI(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // build response\n OAuthIssuer oauthIssuerImpl = new OAuthIssuerImpl(new UUIDValueGeneratorEx());\n String accessToken = oauthIssuerImpl.accessToken();\n String refreshToken = oauthIssuerImpl.refreshToken();\n\n /**\n * limit client access token number\n */\n int limitNum = openOauthClients.getClientNum();\n limitNum = limitNum > 0 ? limitNum - 1 : limitNum;\n oAuthService.limitAccessToken(oAuthAuthzParameters.getClientId(),\n oAuthAuthzParameters.getUserId(), limitNum);\n\n oAuthService.saveAccessToken(accessToken, oAuthAuthzParameters);\n oAuthService.saveRefreshToken(refreshToken, accessToken, oAuthAuthzParameters);\n\n OAuthResponse response = OAuthASResponseEx\n .tokenResponse(HttpServletResponse.SC_OK)\n .setTokenType(\"uuid\")\n .setAccessToken(accessToken)\n .setRefreshToken(refreshToken)\n .setExpiresIn(String.valueOf(appConfig.tokenAccessExpire))\n\n .setScope(oAuthAuthzParameters.getScope())\n .buildJSONMessage();\n\n //remove the code from cache\n oAuthService.delOAuthAuthzParameters(authCode);\n\n logger.info(\"response access toke {}, context: {}\", accessToken, oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n } catch (OAuthProblemException e) {\n logger.error(\"oauth problem exception\", e);\n OAuthResponse res = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(e.getMessage())\n .buildJSONMessage();\n return new ResponseEntity<String>(res.getBody(), HttpStatus.valueOf(res.getResponseStatus()));\n }\n\n }", "public SalesforceAccessGrant(final String accessToken, final String scope, final String refreshToken, final String instanceUrl, final String id) {\n super(accessToken, scope, refreshToken, null);\n this.instanceUrl = instanceUrl;\n this.id = id;\n this.signature = null;\n this.issuedAt = null;\n }", "GoogleAuthenticatorKey createCredentials();", "private void getAccessToken(final String code, final OperationCallback<User> callback) {\n \n new Thread() {\n @Override\n public void run() {\n Log.i(TAG, \"Getting access token\");\n try {\n String postData = \"client_id=\" + CLIENT_ID + \"&client_secret=\" + CLIENT_SECRET +\n \"&grant_type=authorization_code\" + \"&redirect_uri=\" + CALLBACK_URL + \"&code=\" + code;\n String response = postRequest(TOKEN_URL, postData);\n \n Log.i(TAG, \"response \" + response);\n JSONObject jsonObj = (JSONObject) new JSONTokener(response).nextValue();\n \n mAccessToken = jsonObj.getString(\"access_token\");\n Log.i(TAG, \"Got access token: \" + mAccessToken);\n \n Gson gson = new Gson();\n User user = gson.fromJson(jsonObj.getJSONObject(\"user\").toString(), User.class);\n user.setAccessToken(mAccessToken);\n \n callback.notifyCompleted(user);\n } catch (Exception ex) {\n callback.notifyError(ex);\n Log.e(TAG, \"Error getting access token\", ex);\n }\n \n }\n }.start();\n }", "private void refreshAccessToken() throws IOException {\n\n if (clientId == null) fetchOauthProperties();\n\n URL url = new URL(tokenURI);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"refresh_token\", refreshToken);\n params.put(\"client_id\", clientId);\n params.put(\"client_secret\", clientSecret);\n params.put(\"grant_type\", \"refresh_token\");\n\n String response = HttpUtils.getInstance().doPost(url, params);\n JsonParser parser = new JsonParser();\n JsonObject obj = parser.parse(response).getAsJsonObject();\n\n JsonPrimitive atprim = obj.getAsJsonPrimitive(\"access_token\");\n if (atprim != null) {\n accessToken = obj.getAsJsonPrimitive(\"access_token\").getAsString();\n expirationTime = System.currentTimeMillis() + (obj.getAsJsonPrimitive(\"expires_in\").getAsInt() * 1000);\n fetchUserProfile();\n } else {\n // Refresh token has failed, reauthorize from scratch\n reauthorize();\n }\n\n }", "public int getTokenViaClientCredentials(){\n\t\t//Do we have credentials?\n\t\tif (Is.nullOrEmpty(clientId) || Is.nullOrEmpty(clientSecret)){\n\t\t\treturn 1;\n\t\t}\n\t\ttry{\n\t\t\t//Build auth. header entry\n\t\t\tString authString = \"Basic \" + Base64.getEncoder().encodeToString((clientId + \":\" + clientSecret).getBytes());\n\t\t\t\n\t\t\t//Request headers\n\t\t\tMap<String, String> headers = new HashMap<>();\n\t\t\theaders.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\t\theaders.put(\"Authorization\", authString);\n\t\t\t\n\t\t\t//Request data\n\t\t\tString data = ContentBuilder.postForm(\"grant_type\", \"client_credentials\");\n\t\t\t\n\t\t\t//Call\n\t\t\tlong tic = System.currentTimeMillis();\n\t\t\tthis.lastRefreshTry = tic;\n\t\t\tJSONObject res = Connectors.httpPOST(spotifyAuthUrl, data, headers);\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi getTokenViaClientCredentials\");\n\t\t\tStatistics.addExternalApiTime(\"SpotifyApi getTokenViaClientCredentials\", tic);\n\t\t\t//System.out.println(res.toJSONString()); \t\t//DEBUG\n\t\t\tif (!Connectors.httpSuccess(res)){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tString token = JSON.getString(res, \"access_token\");\n\t\t\tString tokenType = JSON.getString(res, \"token_type\");\n\t\t\tlong expiresIn = JSON.getLongOrDefault(res, \"expires_in\", 0);\n\t\t\tif (Is.nullOrEmpty(token)){\n\t\t\t\treturn 4;\n\t\t\t}else{\n\t\t\t\tthis.token = token;\n\t\t\t\tthis.tokenType = tokenType;\n\t\t\t\tthis.tokenValidUntil = System.currentTimeMillis() + (expiresIn * 1000);\n\t\t\t}\n\t\t\treturn 0;\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi-error getTokenViaClientCredentials\");\n\t\t\treturn 3;\n\t\t}\n\t}", "@Override\n public void onSuccess(AuthorizeResult result) {\n // Your app is now authorized for the requested scopes\n System.out.println(\"Success \" + result);\n getAmazonToken();\n\n }", "private String retrieveToken(String accessCode) throws IOException {\n OAuthApp app = new OAuthApp(asanaCredentials.getClientId(), asanaCredentials.getClientSecret(),\n asanaCredentials.getRedirectUri());\n Client.oauth(app);\n String accessToken = app.fetchToken(accessCode);\n\n //check if user input is valid by testing if accesscode given by user successfully authorises the application\n if (!(app.isAuthorized())) {\n throw new IllegalArgumentException();\n }\n\n return accessToken;\n }", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "RequestToken getOAuthRequestToken(String callbackURL) throws MoefouException;", "private void refreshGoogleCalendarToken() {\n this.getGoogleToken();\n }", "public interface AuthAPIService {\n\n @FormUrlEncoded\n @POST(\"/oauth/token\")\n public Observable<Tokens> getAccessTokensObs(@Field(\"grant_type\") String grantType,\n @Field(\"scope\") String manageProject,\n @Header(\"Authorization\") String authHeader);\n\n}", "String getAuthorizerAccessToken(String appId);", "AccessToken getOAuthAccessToken() throws MoefouException;", "@Test\n public void destiny2AwaGetActionTokenTest() {\n String correlationId = null;\n InlineResponse20059 response = api.destiny2AwaGetActionToken(correlationId);\n\n // TODO: test validations\n }", "GetToken.Req getGetTokenReq();", "public String generateNewAccessToken(String refresh_token) throws SocketTimeoutException, IOException, Exception{\n String newAccessToken = \"\";\n JSONObject jsonReturn = new JSONObject();\n JSONObject tokenRequestParams = new JSONObject();\n tokenRequestParams.element(\"refresh_token\", refresh_token);\n if(currentRefreshToken.equals(\"\")){\n //You must read in the properties first!\n Exception noProps = new Exception(\"You must read in the properties first with init(). There was no refresh token set.\");\n throw noProps;\n }\n else{\n try{\n URL rerum = new URL(Constant.RERUM_ACCESS_TOKEN_URL);\n HttpURLConnection connection = (HttpURLConnection) rerum.openConnection();\n connection.setRequestMethod(\"POST\"); \n connection.setConnectTimeout(5*1000); \n connection.setDoOutput(true);\n connection.setDoInput(true);\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.connect();\n DataOutputStream outStream = new DataOutputStream(connection.getOutputStream());\n //Pass in the user provided JSON for the body \n outStream.writeBytes(tokenRequestParams.toString());\n outStream.flush();\n outStream.close(); \n //Execute rerum server v1 request\n BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(),\"utf-8\"));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null){\n //Gather rerum server v1 response\n sb.append(line);\n }\n reader.close();\n jsonReturn = JSONObject.fromObject(sb.toString());\n newAccessToken = jsonReturn.getString(\"access_token\");\n }\n catch(java.net.SocketTimeoutException e){ //This specifically catches the timeout\n System.out.println(\"The Auth0 token endpoint is taking too long...\");\n jsonReturn = new JSONObject(); //We were never going to get a response, so return an empty object.\n jsonReturn.element(\"error\", \"The Auth0 endpoint took too long\");\n throw e;\n }\n }\n setAccessToken(newAccessToken);\n writeProperty(\"access_token\", newAccessToken);\n return newAccessToken;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(requestCode==request_Code){\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode,data);\n if(response.getType()==AuthenticationResponse.Type.TOKEN){\n accessToken = response.getAccessToken();\n }else{\n }\n }\n new SpotifyNewRelease(accessToken).execute();\n }", "AccessToken getOAuthAccessToken(RequestToken requestToken, String oauthVerifier) throws MoefouException;", "private String getAccessTokenUrl(String identityServer) {\n\t\treturn \"https://accounts.google.com/o/oauth2/token\";\n\t}", "@Override\n\tpublic OauthAccessToken acquireOauthRefreshToken(String refreshToken) \n\t{\n\t\t\n\t\tString url = WeChatConst.WECHATOAUTHURL+WeChatConst.OAUTHREFRESHTOKENURI;\n\t\tMap<String, String> param = new HashMap<String, String>();\n\t\tparam.put(\"appid\", WeChatConst.APPID);\n\t\tparam.put(\"grant_type\", \"refresh_token\");\n\t\tparam.put(\"refresh_token\", refreshToken);\n\t\tString response = HttpClientUtils.doGetWithoutHead(url, param);\n\t\tlog.debug(\" acquireOauthRefreshToken response :\"+response);\n\t\ttry {\n\t\t\tJSONObject responseJson = JSONObject.parseObject(response);\n\t\t\tOauthAccessToken authAccessToken = new OauthAccessToken();\n\t\t\tif(!responseJson.containsKey(\"errcode\"))\n\t\t\t{\n\t\t\t\tauthAccessToken.setAccessToken(responseJson.getString(\"access_token\"));\n\t\t\t\tauthAccessToken.setExpiresIn(responseJson.getString(\"exoires_in\"));\n\t\t\t\tauthAccessToken.setOpenId(responseJson.getString(\"openid\"));\n\t\t\t\tauthAccessToken.setScope(responseJson.getString(\"scope\"));\n\t\t\t\treturn authAccessToken;\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t}\n\t\treturn null;\n\t}", "public static Credential authorize() throws IOException {\n // Load client secrets.\n InputStream in =\n Quickstart2.class.getResourceAsStream(\"/client_secret.json\");\n GoogleClientSecrets clientSecrets =\n GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow =\n new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(DATA_STORE_FACTORY)\n .setAccessType(\"offline\")\n .build();\n \n Credential credential = new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(\"user\");\n \n System.out.println(\"Credentials saved to \" + DATA_STORE_DIR.getAbsolutePath());\n return credential;\n }", "RequestToken getOAuthRequestToken() throws MoefouException;", "@Test\n public void testRefreshToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .refreshToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "public static void main(String[] args) {\n\t\tString apiKey = \"100443832\";\n\t\tString apiSecret = \"82be7260c81c68408e71e46d3da7ed75\";\n\t\tOAuthService service = new ServiceBuilder().provider(QQApi.class)\n\t\t\t\t.apiKey(apiKey).apiSecret(apiSecret).callback(\"http://1.ifeeds.duapp.com/oauth/qq/callback\").build();\n\t\tScanner in = new Scanner(System.in);\n\n\t\tSystem.out.println(\"=== \" + NETWORK_NAME + \"'s OAuth Workflow ===\");\n\t\tSystem.out.println();\n\n\t\t// Obtain the Authorization URL\n\t\tSystem.out.println(\"Fetching the Authorization URL...\");\n\t\tString authorizationUrl = service.getAuthorizationUrl(EMPTY_TOKEN);\n\t\tSystem.out.println(\"Got the Authorization URL!\");\n\t\tSystem.out.println(\"Now go and authorize Scribe here:\");\n\t\tSystem.out.println(authorizationUrl);\n\t\tSystem.out.println(\"And paste the authorization code here\");\n\t\tSystem.out.print(\">>\");\n\t\tVerifier verifier = new Verifier(in.nextLine());\n\t\tSystem.out.println();\n\n\t\t// Trade the Request Token and Verifier for the Access Token\n\t\tSystem.out.println(\"Trading the Request Token for an Access Token...\");\n\t\tToken accessToken = service.getAccessToken(EMPTY_TOKEN, verifier);\n\t\tSystem.out.println(\"Got the Access Token!\");\n\t\tSystem.out.println(\"(if your curious it looks like this: \"\n\t\t\t\t+ accessToken + \" )\");\n\t\tSystem.out.println();\n\n\t\t// Now let's go and ask for a protected resource!\n\t\tSystem.out.println(\"Now we're going to access a protected resource...\");\n\t\tOAuthRequest request = new OAuthRequest(Verb.GET,\n\t\t\t\tPROTECTED_RESOURCE_URL);\n\t\tservice.signRequest(accessToken, request);\n\t\tResponse response = request.send();\n\t\tSystem.out.println(\"Got it! Lets see what we found...\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(response.getCode());\n\t\tSystem.out.println(response.getBody());\n\t\t\n\t\tOAuthRequest request2 = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL_2);\n\t\tservice.signRequest(accessToken, request2);\n\t\trequest2.addQuerystringParameter(\"oauth_consumer_key\", apiKey);\n\t\trequest2.addQuerystringParameter(\"openid\", \"6E2B92E99F8EAF71D016BCA14EB7ED9A\");\n\t\tResponse response2 = request2.send();\n\t\tSystem.out.println(\"Got it! Lets see what we found...\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(response2.getCode());\n\t\tSystem.out.println(response2.getBody());\n\n\t\tSystem.out.println();\n\t\tSystem.out\n\t\t\t\t.println(\"Thats it man! Go and build something awesome with Scribe! :)\");\n\n\t}", "public static Credential authorize() throws IOException \n\t {\n\t // Load client secrets.\n\t InputStream in = YouTubeDownloader.class.getResourceAsStream(\"/youtube/downloader/resources/clients_secrets.json\");\n\t GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader( in ));\n\n\t // Build flow and trigger user authorization request.\n\t GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n\t HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n\t .setDataStoreFactory(DATA_STORE_FACTORY)\n\t .setAccessType(\"offline\")\n\t .build();\n\t Credential credential = new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(\"user\");\n\t System.out.println(\"Credentials saved to \" + DATA_STORE_DIR.getAbsolutePath());\n\t return credential;\n\t }", "public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}", "public AuthorizationToken retrieveToken(String token);", "public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }", "private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGenerateAzureAccessTokenMethod(), getCallOptions()), request);\n }", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "void authorizeApplication(@Nullable String scope, @Nullable ResponseCallback<ApplicationAccessToken> callback);", "public void generateRequestToken(OAuthAccessor accessor)\n throws OAuthException {\n\n // generate oauth_token and oauth_secret\n String consumer_key = accessor.consumer.consumerKey;\n // generate token and secret based on consumer_key\n\n // for now use md5 of name + current time as token\n String token_data = consumer_key + System.nanoTime();\n \n String token = StringPool.BLANK;\n try {\n token = Digester.MD5(token_data);\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(OAuthManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n // for now use md5 of name + current time + token as secret\n String secret_data = consumer_key + System.nanoTime() + token;\n String secret = StringPool.BLANK;\n try {\n secret = Digester.MD5(secret_data);\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(OAuthManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n accessor.requestToken = token;\n accessor.tokenSecret = secret;\n accessor.accessToken = null;\n\n // add to the local cache\n addAccessor(accessor);\n }", "public void getGoogleToken() {\n String googleEmail = sharedpreferences.getString(\"GoogleEmail\", \"\");\n String scopes = sharedpreferences.getString(\"GoogleScopes\", \"\");\n if (!\"\".equals(googleEmail)) {\n MyAsyncTask asyncTask = new MyAsyncTask(googleEmail, scopes, this.getBaseContext());\n asyncTask.delegate = this;\n asyncTask.execute();\n }\n }", "public synchronized void acquireTokenAsync() {\n if (this.mCallback == null) {\n String str = Analytics.LOG_TAG;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Calling token provider=\");\n sb.append(this.mType);\n sb.append(\" callback.\");\n AppCenterLog.debug(str, sb.toString());\n this.mCallback = new AuthenticationCallback() {\n public void onAuthenticationResult(String str, Date date) {\n AuthenticationProvider.this.handleTokenUpdate(str, date, this);\n }\n };\n this.mTokenProvider.acquireToken(this.mTicketKey, this.mCallback);\n }\n }", "private void doNormalAuthzProcess(String requestUri, String redirectUrl, String clientId, String clientSecret) {\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUri);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n assertEquals(state, loginResponse.getState());\n String code = loginResponse.getCode();\n String sessionId =loginResponse.getSessionState();\n\n // Token Request\n oauth.redirectUri(redirectUrl); // get tokens, it needed. https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n\n AccessToken token = oauth.verifyToken(res.getAccessToken());\n String userId = findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId();\n assertEquals(userId, token.getSubject());\n assertEquals(sessionId, token.getSessionState());\n // The following check is not valid anymore since file store does have the same ID, and is redundant due to the previous line\n // Assert.assertNotEquals(TEST_USER_NAME, token.getSubject());\n assertEquals(clientId, token.getIssuedFor());\n\n // Token Refresh\n String refreshTokenString = res.getRefreshToken();\n RefreshToken refreshToken = oauth.parseRefreshToken(refreshTokenString);\n assertEquals(sessionId, refreshToken.getSessionState());\n assertEquals(clientId, refreshToken.getIssuedFor());\n\n OAuthClient.AccessTokenResponse refreshResponse = oauth.doRefreshTokenRequest(refreshTokenString, clientSecret);\n assertEquals(200, refreshResponse.getStatusCode());\n\n AccessToken refreshedToken = oauth.verifyToken(refreshResponse.getAccessToken());\n RefreshToken refreshedRefreshToken = oauth.parseRefreshToken(refreshResponse.getRefreshToken());\n assertEquals(sessionId, refreshedToken.getSessionState());\n assertEquals(sessionId, refreshedRefreshToken.getSessionState());\n assertEquals(findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId(), refreshedToken.getSubject());\n\n // Logout\n oauth.doLogout(refreshResponse.getRefreshToken(), clientSecret);\n refreshResponse = oauth.doRefreshTokenRequest(refreshResponse.getRefreshToken(), clientSecret);\n assertEquals(400, refreshResponse.getStatusCode());\n }", "@Override\n\tprotected Object refreshTokenGrantType(String requestId) {\n\t\treceivedRefreshRequest = true;\n\t\tvalidateRefreshRequest();\n\n\t\t//this must be after EnsureScopeInRefreshRequestContainsNoMoreThanOriginallyGranted is called\n\t\tcallAndStopOnFailure(ExtractScopeFromTokenEndpointRequest.class);\n\n\t\tgenerateAccessToken();\n\n\t\tif(generateIdTokenOnRefreshRequest()) {\n\t\t\tcreateIdTokenForRefreshRequest();\n\t\t}\n\n\t\tcreateRefreshToken(true);\n\n\t\tcallAndStopOnFailure(CreateTokenEndpointResponse.class);\n\n\t\tcall(exec().unmapKey(\"token_endpoint_request\").endBlock());\n\n\t\treturn new ResponseEntity<Object>(env.getObject(\"token_endpoint_response\"), HttpStatus.OK);\n\t}", "default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }", "LastFmAccessGrant exchangeForAccess(String token,\n\t\t\tMultiValueMap<String, String> additionalParameters);", "public static void requestToken(String username, String password, Context context) {\n SharedPreferences preferences = context.getSharedPreferences(token_storage, 0);\n SharedPreferences.Editor editor = preferences.edit();\n Call<Token> call = kedronService.getToken(\"password\", username, password);\n\n try {\n Log.d(\"Service\", \"Using a new token\");\n auth_token = call.execute().body();\n\n Log.d(\"Service\", \"Token received\");\n\n isTokenPresent = true;\n } catch (IOException e) {\n Log.e(\"TOKEN\", \"Failed to retrieve the token\", e);\n }\n\n header_token = \"Bearer \" + auth_token;\n\n editor.putString(\"token\", auth_token.getToken());\n editor.apply();\n\n bindToken();\n }", "private String getTokenV2(TokenRequestBody tokenRequestBody, String tokenEndPoint) throws Exception {\n log.info(\"Entering getTokenV2\");\n String message = null;\n HttpStatus status = null;\n try {\n\n MultiValueMap<String, String> map = new LinkedMultiValueMap<>();\n map.add(GRANT_TYPE, tokenRequestBody.getGrantType());\n map.add(CODE, tokenRequestBody.getCode());\n map.add(CLIENT_ID, tokenRequestBody.getClientId());\n map.add(REDIRECT_URI, tokenRequestBody.getRedirectUri());\n map.add(CLIENT_ASSERTION_TYPE, tokenRequestBody.getClientAssertionType());\n map.add(CLIENT_ASSERTION, tokenRequestBody.getClientAssertion());\n log.info(\"Just created token request map\");\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\n Object loggedHeader = headers.remove(HttpHeaders.AUTHORIZATION);\n\n HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(map, headers);\n log.info(\"User Token v2>>Carrier endpoint: {}\", tokenEndPoint);\n log.info(\"User Token v2>>Carrier Request: {}\", loggedHeader);\n log.info(\"User Token v2>>Carrier Body: {}\", map);\n log.info(\"User Token v2>>Request: {}\", request);\n log.info(\"tokenEndPoint: {}\", tokenEndPoint);\n\n ResponseEntity<String> response = restTemplate.exchange(tokenEndPoint, HttpMethod.POST, request,\n String.class);\n log.info(\"Just made carrier token endpoint REST call\");\n if (!response.getStatusCode().equals(HttpStatus.OK)) {\n throw new OauthException(\"Carrier thrown Exception: \" + response.getStatusCodeValue());\n }\n message = response.getBody();\n log.info(\"User Token2 Response: {}\", message);\n } catch (RestClientResponseException ex) {\n String returnedMessage = \"\";\n if (ex.getRawStatusCode() == 401) {\n returnedMessage = String.format(\"Error getTokenV2: HTTP 401: Unauthorized token: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n if (ex.getResponseBodyAsByteArray().length > 0)\n returnedMessage = new String(ex.getResponseBodyAsByteArray());\n else\n returnedMessage = ex.getMessage();\n status = HttpStatus.BAD_REQUEST;\n log.error(\"HTTP 400: \" + returnedMessage);\n throw new OauthException(returnedMessage, status);\n } catch (Exception ex) {\n String returnedMessage = String.format(\"Error getTokenV2: Error in calling Token end point: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"Leaving getTokenV2\");\n return message;\n }", "Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder();", "@FormUrlEncoded\n @POST(\"oauth/request_token\")\n Flowable<ResponseBody> requestToken(@Field(\"oauth_callback\") String oauthCallback);", "public void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getGenerateAzureAccessTokenMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }", "@Override\n public AccessTokenInfo getAccessTokenByConsumerKey(String consumerKey) throws APIManagementException {\n AccessTokenInfo tokenInfo = new AccessTokenInfo();\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n\n APIKey apiKey;\n try {\n apiKey = apiMgtDAO.getAccessTokenInfoByConsumerKey(consumerKey);\n if (apiKey != null) {\n tokenInfo.setAccessToken(apiKey.getAccessToken()); \n tokenInfo.setConsumerSecret(apiKey.getConsumerSecret());\n tokenInfo.setValidityPeriod(apiKey.getValidityPeriod());\n tokenInfo.setScope(apiKey.getTokenScope().split(\"\\\\s\"));\n } else {\n tokenInfo.setAccessToken(\"\");\n //set default validity period\n tokenInfo.setValidityPeriod(3600);\n }\n tokenInfo.setConsumerKey(consumerKey);\n\n } catch (SQLException e) {\n handleException(\"Cannot retrieve information for the given consumer key : \"\n + consumerKey, e);\n } catch (CryptoException e) {\n handleException(\"Token decryption failed of an access token for the given consumer key : \"\n + consumerKey, e);\n }\n return tokenInfo;\n }", "void setAccessToken(String accessToken);", "private static com.google.api.services.calendar.Calendar getCalendarService() throws IOException\n{\n Credential cred = authorize();\n com.google.api.services.calendar.Calendar.Builder bldr =\n new com.google.api.services.calendar.Calendar.Builder(HTTP_TRANSPORT,JSON_FACTORY,cred);\n bldr.setApplicationName(APPLICATION_NAME);\n\n com.google.api.services.calendar.Calendar cal = bldr.build();\n\n return cal;\n}", "private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public String getAccessToken() {\n return accessToken;\n }", "private OAuth2AuthorizeRespDTO authorize(OAuth2Parameters oauth2Params, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ {\r\n/* 627 */ OAuth2AuthorizeReqDTO authzReqDTO = new OAuth2AuthorizeReqDTO();\r\n/* 628 */ authzReqDTO.setCallbackUrl(oauth2Params.getRedirectURI());\r\n/* 629 */ authzReqDTO.setConsumerKey(oauth2Params.getClientId());\r\n/* 630 */ authzReqDTO.setResponseType(oauth2Params.getResponseType());\r\n/* 631 */ authzReqDTO.setScopes((String[])oauth2Params.getScopes().toArray(new String[oauth2Params.getScopes().size()]));\r\n/* 632 */ authzReqDTO.setUsername(sessionDataCacheEntry.getLoggedInUser());\r\n/* 633 */ authzReqDTO.setACRValues(oauth2Params.getACRValues());\r\n/* 634 */ return EndpointUtil.getOAuth2Service().authorize(authzReqDTO);\r\n/* */ }", "private boolean validateAccessToken(String clientId, String clientSecret) {\n log.info(\"Client Id:{} Client Secret:{}\", clientId, clientSecret);\n\n // Enable the Below code when the Introspection URL is ready to test\n /**\n * String auth = clientId + clientSecret; RestTemplate restTemplate = new RestTemplate();\n * HttpHeaders headers = new HttpHeaders(); headers.add(\"Content-Type\",\n * MediaType.APPLICATION_JSON_VALUE); headers.add(\"Authorization\", \"Basic \" +\n * Base64.getEncoder().encodeToString(auth.getBytes())); HttpEntity<String> request = new\n * HttpEntity<String>(headers);\n *\n * <p>log.info(\"Sending Token Intropsection request to Endpoint::::: {}\",\n * tokenIntrospectionURL); ResponseEntity<String> response =\n * restTemplate.exchange(tokenIntrospectionURL, HttpMethod.POST, request, String.class); *\n */\n return true;\n }", "private static Credential getCredentials(HttpTransport HTTP_TRANSPORT) throws IOException {\r\n // Load client secrets.\r\n InputStream in = SheetsQuickstart.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\r\n if (in == null) {\r\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\r\n }\r\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\r\n\r\n // Build flow and trigger user authorization request.\r\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\r\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\r\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\r\n .setAccessType(\"offline\")\r\n .build();\r\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\r\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\r\n }", "@Test\n public void testTokenEndPointAnonymousTokenRequest() throws Exception {\n String callback = \"Backplane.call_back\";\n \n // should return the form:\n // callback({\n // \"access_token\": \"l5feG0KjdXTpgDAfOvN6pU6YWxNb7qyn\",\n // \"expires_in\":3600,\n // \"token_type\": \"Bearer\",\n // \"backplane_channel\": \"Tm5FUzstWmUOdp0xU5UW83r2q9OXrrxt\"\n // })\n \n refreshRequestAndResponse();\n \n request.setRequestURI(\"/v2/token\");\n request.setMethod(\"GET\");\n request.setParameter(\"grant_type\", \"client_credentials\");\n setOAuthBasicAuthentication(request, \"anonymous\", \"\");\n request.setParameter(\"callback\", callback);\n \n handlerAdapter.handle(request, response, controller);\n logger.info(\"testTokenEndPointAnonymousTokenRequest() => \" + response.getContentAsString());\n \n assertTrue(\"Invalid response: \" + response.getContentAsString(), response.getContentAsString().\n matches(callback + \"[(][{]\\\\s*\\\"access_token\\\":\\\\s*\\\".{22}+\\\",\\\\s*\" +\n \"\\\"expires_in\\\":\\\\s*3600,\\\\s*\" +\n \"\\\"token_type\\\":\\\\s*\\\"Bearer\\\",\\\\s*\" +\n \"\\\"backplane_channel\\\":\\\\s*\\\".{32}+\\\"\\\\s*[}][)]\"));\n \n // cleanup test token\n String result = response.getContentAsString().substring(response.getContentAsString().indexOf(\"{\"), response.getContentAsString().indexOf(\")\"));\n Map<String,Object> returnedBody = new ObjectMapper().readValue(result, new TypeReference<Map<String,Object>>() {});\n daoFactory.getTokenDao().delete((String)returnedBody.get(\"access_token\"));\n \n }", "private String checkAccessToken(UUID xRequestId) {\n try {\n OAuthSession oAuthSession = PersistentOAuthSession.getByXRequestId(xRequestId);\n if (oAuthSession.getAccessToken() != null &&\n oAuthSession.getAccessTokenExpiresAt().before(new Date()) &&\n oAuthSession.getRefreshTokenExpiresAt().after(new Date())) {\n return OAuthService.refreshToken(oAuthSession).getAccessToken();\n } else {\n return oAuthSession.getAccessToken();\n }\n } catch (PersistenceEmptyResultSetException e) {\n return null;\n } catch (OAuthTokenExpiredException e) {\n LOG.error(\"Refresh token expired, cannot refresh access token for xRequestId={}\", xRequestId, e);\n throw new TaskFinalFailureException(\"Refresh token expired\");\n }\n }", "@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }", "AccessPoliciesClient getAccessPolicies();", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT)\n throws IOException {\n // Load client secrets.\n InputStream in = GoogleCalendar.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY,\n new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT,\n JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(\n new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\").build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public void generateAccessToken(OAuthAccessor accessor)\n throws OAuthException {\n\n try {\n // generate oauth_token and oauth_secret\n // generate token and secret based on consumer_key\n String consumer_key = accessor.consumer.consumerKey;\n \n OAuthAccessorRecord record = findByConsumerKey(accessor.consumer.consumerKey);\n \n // for now use md5 of name + current time as token\n String token_data = consumer_key + System.nanoTime();\n String token = Digester.MD5(token_data);\n\n record.setRequestToken(null);\n record.setAccessToken(token);\n em.persist(record);\n\n } catch (Exception ex) {\n throw new OAuthException(\"ERROR: generating access token\", ex);\n }\n }", "void createExposedOAuthCredential(IntegrationClientCredentialsDetailsModel integrationCCD);", "protected void createIdTokenForRefreshRequest() {\n\t\tgenerateIdTokenClaims();\n\n\t\taddAtHashToIdToken();\n\n\t\taddCustomValuesToIdTokenForRefreshResponse();\n\n\t\tsignIdToken();\n\n\t\tcustomizeIdTokenSignatureForRefreshResponse();\n\n\t\tencryptIdTokenIfNecessary();\n\t}", "public void requestToken(View pView){\n mAttestation.fetchApproovToken();\n }", "public String getAccessToken() {\n return accessToken;\n }", "protected AccessToken getAccessToken() \n\t{\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n if (accessToken == null || (System.currentTimeMillis() > (expirationTime - 60 * 1000))) {\n if (refreshToken != null) {\n try {\n this.refreshAccessToken();\n } catch (IOException e) {\n log.error(\"Error fetching access token\", e);\n }\n }\n }\n\n return accessToken;\n }", "@Override\r\n\tpublic String accessToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "@Override\n protected JSONObject doInBackground(Void... params) {\n try {\n String url = \"https://eu.airvantage.net/api/oauth/token?grant_type=refresh_token&refresh_token=\"+refresh_token+\"&client_id=\"+clientId+\"&client_secret=\"+clientSecret;\n\n RequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext());\n\n RequestFuture<JSONObject> future = RequestFuture.newFuture();\n\n JsonObjectRequest request = new JsonObjectRequest(url, new JSONObject(), future, future);\n\n mRequestQueue.add(request);\n\n System.out.println(\"Getting response from request...\");\n JSONObject response = future.get(); // this will block\n System.out.println(\"Response from request: \" + response);\n\n System.out.println(\"Successful to get response from request.\");\n\n return response;\n } catch (InterruptedException e) {\n // exception handling\n System.out.println(\"InterruptedException: \" + e.getMessage());\n e.printStackTrace();\n } catch (ExecutionException e) {\n // exception handling\n System.out.println(\"ExecutionException: \" + e.getMessage());\n e.printStackTrace();\n }\n return null;\n }", "@GetMapping(\"/getaccesstoken1\")\n public Map<String, Object> getAccessToken1(){\n Map<String, Object> mapResponse=new HashMap<String, Object>();\n String accessToken=transAccessService.getAccessToken();\n mapResponse.put(\"key\", \"200\");\n mapResponse.put(\"status\", \"success\");\n mapResponse.put(\"access_token\", accessToken);\n return mapResponse;\n }" ]
[ "0.62671316", "0.60957026", "0.59962845", "0.5994731", "0.59247905", "0.59247905", "0.58724284", "0.58611965", "0.5832384", "0.58090246", "0.58049023", "0.5773218", "0.5768402", "0.57665396", "0.57442844", "0.57141054", "0.5697818", "0.5673181", "0.56301975", "0.56278765", "0.56241196", "0.56051993", "0.5541379", "0.5515273", "0.5499099", "0.54775566", "0.5458949", "0.5453467", "0.54397565", "0.543349", "0.5430103", "0.5429841", "0.53910506", "0.53810537", "0.5323804", "0.52916956", "0.52828234", "0.5272255", "0.52483934", "0.5218458", "0.52022034", "0.520215", "0.5200614", "0.51781577", "0.5172254", "0.51604277", "0.5158657", "0.5158623", "0.5134285", "0.5133913", "0.513365", "0.5119756", "0.5116988", "0.5110277", "0.50787514", "0.5075297", "0.5074434", "0.50682116", "0.50482136", "0.5043945", "0.5040388", "0.5038889", "0.5037631", "0.50366867", "0.5028876", "0.5026907", "0.5009618", "0.5003996", "0.49930942", "0.49923152", "0.49900055", "0.49878234", "0.4983706", "0.49779108", "0.49726233", "0.4959898", "0.49479684", "0.49412698", "0.49352875", "0.49145913", "0.49145272", "0.49136195", "0.4912685", "0.49108505", "0.49098402", "0.48969582", "0.4896264", "0.4894027", "0.48882455", "0.4887189", "0.4881748", "0.48788205", "0.48703384", "0.4869959", "0.48636758", "0.48634025", "0.48540315", "0.4851575", "0.48451734", "0.48378927" ]
0.643587
0
start or stop record
private void onRecord(boolean start) { Log.w(TAG, "Inside on record"); if (start) { startRecording(); } else { stopRecording(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onStartRecord();", "ButEnd getStart();", "public void onRecord(boolean start) {\n if (start) {\n startRecording();\n } else {\n stopRecording();\n }\n }", "public void setStart(long start) { this.start = start; }", "public void streamRecordStart(IBroadcastStream stream);", "public void stop() {\n assert (timeEnd == null);\n timeEnd = System.currentTimeMillis();\n if (recordAt != null) {\n recordAt.record(this);\n }\n }", "public int start() { return _start; }", "public native void nativeStartRecord();", "public void generateImpatedRecords ()\r\n\t{\n\t\tRequest req = table.createRequest();\r\n\t\treq.setXPathFilter(path_to_id.format()+\"='\" + id +\"'\");\r\n\t\tRequestResult res = req.execute();\r\n\t\tshow(\"got results \" + res.getSize() );\r\n\t\tAdaptation ada = res.nextAdaptation();\r\n\t\tshow (\"STARTDATE: \" + startdate + \" ENDDATE: \" + enddate);\r\n\t\tshow(\"________________________________________________\");\r\n\t\twhile (ada!=null)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tDate adaStartDate = ada.getDate(path_to_start);\r\n\t\t\tDate adaEndDate = ada.getDate(path_to_end);\r\n\t\t\t//check im not me!\r\n\t\t\tif (!(ada.getOccurrencePrimaryKey().format().equals(newRecord.getOccurrencePrimaryKey().format())))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t// the record has been updated but date has not changed\r\n\t\t\t\tif (enddate!=null&&adaEndDate!=null&&(adaStartDate.equals(startdate)&&adaEndDate.equals(enddate)))\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t}\r\n\t\t\t\telse if (enddate!=null&&adaEndDate!=null&&(adaStartDate.before(startdate)&&adaEndDate.after(enddate)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t\t\t}\r\n\t\t\t\telse if (adaStartDate == null && adaEndDate == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t}\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate)&& adaEndDate==null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate) && adaEndDate.after(startdate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to move existing end date\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (enddate!=null&&enddate==null&&adaStartDate.after(enddate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to end date new record\");\r\n\t\t\t\t\t\t\tbeforeRecord = newRecord;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(adaStartDate, -1);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\tada = res.nextAdaptation();\r\n\t}\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public BusStopRecord() {\n super(BusStop.BUS_STOP);\n }", "boolean hasStart();", "public void startRecord(Leader leader) {\n this.record = new Record();\n record.add(leader);\n }", "public abstract void endRecord();", "@Override\n public void startRecord() {\n obj = null;\n arr = null;\n inArray = false;\n }", "public void startRecord() {\n\t\tcmd = new StartRecordCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void stopRecord() {\n\t\tcmd = new StopRecordCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void setStart(int start) {\n this.start=start;\n }", "private void startRecording() {\n\n }", "private void stopRecord() {\n /*\n r6 = this;\n r5 = 0;\n r1 = r6.isRecording;\n if (r1 != 0) goto L_0x0006;\n L_0x0005:\n return;\n L_0x0006:\n r1 = com.baidu.navisdk.BNaviModuleManager.getContext();\n com.baidu.navisdk.util.listener.MediaFocuseChangeListener.releaseAudioFocus(r1);\n com.baidu.navisdk.comapi.tts.TTSPlayerControl.resumeVoiceTTSOutput();\n r1 = 0;\n r6.isRecording = r1;\n r1 = r6.recordProcessIView;\n if (r1 == 0) goto L_0x001c;\n L_0x0017:\n r1 = r6.recordProcessIView;\n r1.clearAnimation();\n L_0x001c:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0025;\n L_0x0020:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n r1.cancel();\t Catch:{ Exception -> 0x004d }\n L_0x0025:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0036;\n L_0x0029:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x005c }\n r1.stop();\t Catch:{ Exception -> 0x005c }\n L_0x002e:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n r1.release();\t Catch:{ Exception -> 0x004d }\n r1 = 0;\n r6.mRecorder = r1;\t Catch:{ Exception -> 0x004d }\n L_0x0036:\n r6.mRecorder = r5;\n r6.mTimer = r5;\n L_0x003a:\n r1 = r6.mOnUgcSoundsRecordCallback;\n if (r1 == 0) goto L_0x004a;\n L_0x003e:\n r1 = r6.mOnUgcSoundsRecordCallback;\n r2 = r6.timeCountTime;\n r2 = 20 - r2;\n r3 = r6.filePath;\n r4 = 1;\n r1.onRecordFinish(r2, r3, r4);\n L_0x004a:\n mUgcSoundsRecordDialog = r5;\n goto L_0x0005;\n L_0x004d:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x0056 }\n r6.mRecorder = r5;\n r6.mTimer = r5;\n goto L_0x003a;\n L_0x0056:\n r1 = move-exception;\n r6.mRecorder = r5;\n r6.mTimer = r5;\n throw r1;\n L_0x005c:\n r1 = move-exception;\n goto L_0x002e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.navisdk.module.ugc.dialog.UgcSoundsRecordDialog.stopRecord():void\");\n }", "int getStart();", "public void startRecord() {\n\t\tif (state == State.INITIALIZING) {\n\t\t\taudioRecorder.startRecording();\n\t\t\taudioRecorder.read(buffer, 0, buffer.length);\n\t\t\tstate = State.RECORDING;\n\t\t}\n\t\telse {\n\t\t\tLog.e(TAG, \"start() called on illegal state\");\n\t\t\tstate = State.ERROR;\n\t\t}\n\t}", "public void setStart(int start) {\r\n this.start = start;\r\n }", "Start createStart();", "public void record(){\n\t}", "public abstract void stopRecordSensorData();", "public void testMoveToStart() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.moveToStart();\n assertTrue(test1.getValue().inRange(0));\n }", "public boolean onNextRecord(IDataTableRecord record) throws Exception;", "private void startRecording() {\r\n\t\tThread recordThread = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tisRecording = true;\r\n\t\t\t\t\tbuttonRecord.setText(\"Stop\");\r\n\t\t\t\t\tbuttonRecord.setIcon(iconStop);\r\n\t\t\t\t\tbuttonPlay.setEnabled(false);\r\n\r\n\t\t\t\t\trecorder.start();\r\n\r\n\t\t\t\t} catch (LineUnavailableException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(SwingSoundRecorder.this,\r\n\t\t\t\t\t\t\t\"Error\", \"Could not start recording sound!\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\trecordThread.start();\r\n\t\ttimer = new RecordTimer(labelRecordTime);\r\n\t\ttimer.start();\r\n\t}", "SyncStart createSyncStart();", "public native void nativeStopRecord();", "public interface RecordManager {\n\n void startRecord(String path);\n\n void stopRecord(Runnable endCallback);\n\n void init();\n\n void release();\n\n}", "List<Stopsinlinedb> fetchStopsInLines();", "int insertSelective(SchedulingPlay record);", "private List<String> nextRecord() {\n\t\t\t\t\tList<String> record = new LinkedList<String>();\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tString line = lines.next();\n\t\t\t\t\t\tif (line.startsWith(\"---\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecord.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn record;\n\t\t\t\t}", "public int getStart ()\n {\n\n return this.start;\n\n }", "public void setStart(int start) {\n\t\tthis.start = start;\n\t}", "@Test\n public void testEqualsReturnsFalseOnDifferentStartVal() throws Exception {\n setRecordFieldValue(otherRecord, \"start\", null);\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n\n equals = otherRecord.equals(record);\n\n assertThat(equals, is(false));\n }", "@Override\n\tprotected void onStop() {\n\t\trecordAndBack();// 停止记时\n\t\tsuper.onStop();\n\t}", "void moveToStart();", "@Override\n public void publish(LogRecord record) {\n if (started == false) {\n if (record.getMessage().indexOf(\"Start - \" + message) > -1) {\n started = true;\n finished = false;\n }\n }\n if (started) {\n if (record.getMessage().indexOf(\"End - \" + message) > -1) {\n started = false;\n finished = true;\n }\n }\n }", "boolean isStop();", "private TransmitInfo getTransmitInfoForRange(long recordingStartByte, long recordingEndByte, float rate)\n throws HNStreamingException, HNStreamingRangeException\n {\n try\n {\n RecordedService[] segments = getSegmentedRecordedService().getSegments();\n long recordingSize = 0L;\n for (int i = 0;i<segments.length;i++)\n {\n OcapRecordedServiceExt thisSegment = (OcapRecordedServiceExt) segments[i];\n HNStreamContentDescription thisDescription = recordingItem.getContentDescription(thisSegment);\n\n long thisRecordingSize = HNAPIImpl.nativeServerGetNetworkContentItemSize(contentLocationType, thisDescription,\n protocolInfo.getProfileId(), protocolInfo.getContentFormat(), request.getTransformation());\n final long combinedSize;\n if(thisRecordingSize > 0)\n {\n combinedSize = recordingSize + thisRecordingSize;\n }\n else\n {\n // If the size for this segment is -1, don't accumulate\n combinedSize = recordingSize;\n }\n if (combinedSize >= recordingStartByte)\n {\n //current segment contains needed start byte offset\n long thisStartByteOffset = recordingStartByte - recordingSize;\n if (log.isInfoEnabled())\n {\n log.info(\"getTransmitInfoForRange - recording start byte: \" + recordingStartByte + \", segment index to use: \" + i +\n \", byte offset in to segment: \" + thisStartByteOffset + \", recording end byte: \" + recordingEndByte + \", rate: \" + rate);\n }\n return new TransmitInfo(thisSegment, recordingSize + thisStartByteOffset, thisStartByteOffset,\n recordingEndByte, rate);\n }\n if(thisRecordingSize > 0)\n {\n recordingSize += thisRecordingSize;\n }\n }\n throw new HNStreamingRangeException(\"segment not found for bytes: \" + recordingStartByte + \", recording size: \" + recordingSize);\n }\n catch (MPEMediaError err)\n {\n throw new HNStreamingException(\"Failed to create TransmitInfo for range: \" + recordingStartByte + \" - \" + recordingEndByte + \", rate: \" + rate, err);\n }\n }", "public int getStart()\n {\n return start;\n }", "private void stopRecording() {\n recoTransaction.stopRecording();\n }", "boolean isSetBegin();", "void startAnalysis(long analysis_start, long analysis_stop) {\n start_scan_time.setTime(analysis_start);\r\n stop_scan_time.setTime(analysis_stop);\r\n\r\n // convert the date object of the stop time to a string in standard date time format\r\n scanTime = Utility.standardDateTime(stop_scan_time);\r\n\r\n // check whether networking is possible\r\n networking = Utility.networking(context);\r\n\r\n // TODO OOSO: networking is commented, for logging we need to \"send\" the data.\r\n networking = true;\r\n if (networking) {\r\n // send all the apps, which have been tracked during this scan, to the server\r\n sendDataToServer();\r\n }\r\n // start complete evaluation of this scan\r\n evaluateData();\r\n // store this scans time in local DB for later use\r\n insertCurrentScanTime();\r\n }", "public BusStopRecord(Long timestamp, String lineId, String direction, String journeyPatternId, Timestamp timeFrame, Long vehicleJourneyId, String operator, Boolean congestion, BigDecimal latitude, BigDecimal longitude, Integer delay, Integer blockId, Integer vehicleId, String stopId, Boolean atBusStop) {\n super(BusStop.BUS_STOP);\n\n set(0, timestamp);\n set(1, lineId);\n set(2, direction);\n set(3, journeyPatternId);\n set(4, timeFrame);\n set(5, vehicleJourneyId);\n set(6, operator);\n set(7, congestion);\n set(8, latitude);\n set(9, longitude);\n set(10, delay);\n set(11, blockId);\n set(12, vehicleId);\n set(13, stopId);\n set(14, atBusStop);\n }", "Stop getStopPerID(String id);", "public Object[] startingBatchEmit(int bank, int start, int end, boolean toFile) \n {\n return new Object[0]; \n }", "public void stopRecord() {\n\t\tif (state == State.RECORDING) {\n\t\t\taudioRecorder.stop();\n\t\t\tstate = State.STOPPED;\n\t\t}\n\t\telse {\n\t\t\tLog.e(TAG, \"stop() called on illegal state\");\n\t\t\tstate = State.ERROR;\n\t\t}\n\t\tstate = State.INITIALIZING;\n\t}", "private void rearrangeRestOfDatabase(byte[] startRecord, int start) {\n int totalRecords = Integer.parseInt(getNumberOfRecords(\"normal\"));\n if (start == totalRecords) {\n updateRecords(\"normal\", startRecord, start);\n updateNumRecords(\"normal\", totalRecords + 1);\n } else if (start >= 0 && start <= totalRecords + 1) {\n int i;\n for (i = start; i <= totalRecords; i++) {\n byte [] temp = getRecordBytes(\"normal\", i);\n updateRecords(\"normal\", startRecord, i);\n startRecord = temp;\n }\n totalRecords++;\n updateNumRecords(\"normal\", totalRecords);\n }\n }", "void startRecording() {\n synchronized (serviceConnection) {\n startNewTrackRequested = true;\n serviceConnection.startAndBind();\n \n // Binding was already requested before, it either already happened\n // (in which case running the callback manually triggers the actual recording start)\n // or it will happen in the future\n // (in which case running the callback now will have no effect).\n serviceBindCallback.run();\n }\n }", "ActualStartType getActualStart();", "@Override\r\n\tpublic boolean startIterateSnapShotRecords() {\n\t\tCollection <Record> records = new ArrayList <Record> ();\r\n\t\tErrorAndLogMsg m = clientProxy.getRecordSnapshot(records);\r\n\t\t\r\n\t\tif (m!=null && m.anyError())\r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\titerSnapshot = records.iterator();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public String stopRecord()\n {\n if(!_inRec) return \"\";\n _inRec=false;\n _recorder.stop();\n _recorder.release();\n _recorder = null;\n return _filePath;\n }", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public Object[] stoppingBatchEmit(int bank, int start, int end, boolean toFile) \n {\n return new Object[0]; \n }", "public int getStart() {\r\n return start;\r\n }", "void matchStart();", "private void processStartInsideCase(RatedPeriod rate, RateWrapper rateWrapper) {\n\n }", "public int getStart() {\n return start;\n }", "int insert(SchedulingPlay record);", "public void switchSampling(boolean start_or_dont) {\r\n //save a boolean for the loop's state before changes\r\n boolean weShouldReadold = this.weShouldRead;\r\n this.weShouldRead = start_or_dont;\r\n //if it's switching on from being previously off, start the loop again\r\n }", "public abstract boolean record();", "public void start(){\n //Set pausing to false\n pausing = false;\n next();\n }", "private void record(){\n clear();\n recording = true;\n paused = false;\n playing = false;\n setBtnState();\n recorder = new Recorder(audioFormat);\n new Thread(recorder).start();\n }", "abstract Long getStopTimestamp();", "public int getStart() {\n return start;\n }", "@Override public WALRecord next() throws IgniteCheckedException {\n WALRecord rec = super.next();\n\n if (rec == null)\n return null;\n\n if (rec.type() == CHECKPOINT_RECORD) {\n CheckpointRecord cpRec = (CheckpointRecord)rec;\n\n // We roll memory up until we find a checkpoint start record registered in the status.\n if (F.eq(cpRec.checkpointId(), status.cpStartId)) {\n log.info(\"Found last checkpoint marker [cpId=\" + cpRec.checkpointId() +\n \", pos=\" + rec.position() + ']');\n\n needApplyBinaryUpdates = false;\n }\n else if (!F.eq(cpRec.checkpointId(), status.cpEndId))\n U.warn(log, \"Found unexpected checkpoint marker, skipping [cpId=\" + cpRec.checkpointId() +\n \", expCpId=\" + status.cpStartId + \", pos=\" + rec.position() + ']');\n }\n\n return rec;\n }", "public void getNextRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.getNextRecord(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "void setStartSegment(int startSegment);", "public void markRunStart(){\r\n runStart = stepCount;\r\n }", "IfStart createIfStart();", "@ActionTrigger(action=\"KEY-NXTREC\", function=KeyFunction.NEXT_RECORD)\n\t\tpublic void spriden_NextRecord()\n\t\t{\n\t\t\t\n\t\t\t\tif ( !isInLastRecord(true) )\n\t\t\t\t{\n\t\t\t\t\tnextRecord();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tinfoMessage(GNls.Fget(toStr(\"SOAIDNS-0001\"), toStr(\"FORM\"), toStr(\"At last record.\")));\n\t\t\t\t}\n\t\t\t}", "public int getStart() {\r\n\t\treturn start;\r\n\t}", "public interface StopRecordListener {\n void stop();\n\n void recorderStart();\n\n void volumeChange(float vol);\n}", "default void record(Consumer<Long> f) {\n long id = start();\n try {\n f.accept(id);\n } finally {\n stop(id);\n }\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!myRec.get(index).isBeat()) {\n\n\t\t\t\t\t\tLog.i(\"recstart\",\n\t\t\t\t\t\t\t\t\"about to play note: \"\n\t\t\t\t\t\t\t\t\t\t+ myRec.get(index).getNoteToPlay());\n\t\t\t\t\t\tsp.playNote(myRec.get(index).getNoteToPlay(), 1);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// is beat\n\t\t\t\t\t\tplayBeat(myRec.get(index).getBeat());\n\t\t\t\t\t\tLog.i(\"recstart\", \"is a beat! playing beat: \"\n\t\t\t\t\t\t\t\t+ myRec.get(index).getBeat());\n\t\t\t\t\t}\n\t\t\t\t}", "public boolean getStart(){\n\t\treturn this.isStart;\n\t}", "public boolean getStop() {\n\t\treturn end == 5;\n\t}", "int getStartSegment();", "WhileStart createWhileStart();", "public void endRecord() {\n if (recordHandler != null)\n recordHandler.record(record);\n }", "private void setBeginAndEnd() {\n for (int i=1;i<keyframes.size();i++){\n if (curTime <= ((PointInTime)keyframes.get(i)).time){\n beginPointTime=(PointInTime)keyframes.get(i-1);\n endPointTime=(PointInTime)keyframes.get(i);\n return;\n }\n }\n beginPointTime=(PointInTime)keyframes.get(0);\n if (keyframes.size()==1)\n endPointTime=beginPointTime;\n else\n endPointTime=(PointInTime)keyframes.get(1);\n curTime=((PointInTime)keyframes.get(0)).time;\n }", "@Override\n\tpublic void insertRecordWithTimeRange(LiveInfoEntity liveInfo, long starttime, long endtime) {\n\n\t}", "static void stop(){\n stop=true;\n firstPass=true;\n }", "public void saveStopsInLine(Stopsinlinedb stopsInLine);", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tbilliardDOS.writeBoolean(start);\n\t\t\t\tbilliardDOS.writeBoolean(end);\n\t\t\t\tbilliardDOS.writeBoolean(reset);\n\t\t\t\tbilliardDOS.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "public int getStart() {\n return this.start;\n }", "public int start() {\n return start;\n }", "public void setNextRecord()\n {\n currRecord++;\n if (monitor != null)\n monitor.setPercentComplete(currRecord / maxRecords * 100);\n }", "public void process(Record r);", "@Override\n public synchronized void start() {\n m_startTime = getMsClock();\n m_running = true;\n }", "public void startLog()\n\t{\n\t\tint lastRow = m_records.size() - 1;\n\t\tif(lastRow >= 0)\n\t\t{\n\t\t\tm_records.clear();\n\t\t\tfireTableRowsDeleted(0, lastRow);\n\t\t}\n\t}", "public int getStart() {\n\t\treturn start;\n\t}", "public void start( )\n {\n // Implemented by student.\n }", "private void processStartBeforeCase(RatedPeriod rate, RateWrapper rateWrapper) {\n\n }", "boolean hasTimeRecord();", "public void handleDocumentStart(long startTimeNanos, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"Start of document\");\r\n }", "public void start(){\n\t\tstarted = true;\n\t\tlastTime = System.nanoTime();\n\t}" ]
[ "0.6356236", "0.6177513", "0.6029848", "0.5946047", "0.5858671", "0.5816636", "0.5777537", "0.57527757", "0.5736889", "0.5713229", "0.5654868", "0.5637992", "0.5630687", "0.56184256", "0.56167334", "0.5600909", "0.55994385", "0.55761427", "0.5503128", "0.5473152", "0.5452926", "0.54206264", "0.54185396", "0.5413275", "0.54039294", "0.5400488", "0.53591514", "0.53487134", "0.5329155", "0.5328762", "0.5325993", "0.53188556", "0.530479", "0.5298846", "0.5293076", "0.52831453", "0.5263025", "0.52304786", "0.5212436", "0.5210098", "0.5205181", "0.51869565", "0.5168278", "0.51681197", "0.51622546", "0.5147653", "0.5142357", "0.5138885", "0.51256514", "0.51232994", "0.5119352", "0.51160115", "0.5115917", "0.5114112", "0.5105743", "0.5094425", "0.5093637", "0.5086593", "0.5065446", "0.50440866", "0.5037678", "0.50354904", "0.50304455", "0.5028671", "0.502608", "0.50243014", "0.50172585", "0.5015681", "0.5009792", "0.50050855", "0.50016814", "0.4995147", "0.49901354", "0.49854702", "0.49764505", "0.49759352", "0.49740508", "0.4973348", "0.49728945", "0.49673098", "0.49668154", "0.4961423", "0.4960374", "0.4955448", "0.4953019", "0.495217", "0.49510464", "0.49494448", "0.4919623", "0.49124426", "0.49094835", "0.49082914", "0.49077734", "0.48992696", "0.48984805", "0.48914576", "0.4886593", "0.48855674", "0.4880714", "0.48736277" ]
0.6064958
2
Creates a new instance of CustomerManagedBean
public CustomerManagedBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Customer createCustomer() {\n return new Customer(nameNested, surNameNested, ageNested, streetNested);\n }", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "@Override\r\n\tpublic UserBean createUserBean()\r\n\t{\r\n\t\treturn new UserManagedBean();\r\n\t}", "void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}", "Customer(){}", "public CustomerNew () {\n\t\tsuper();\n\t}", "public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}", "public AfficherEtatManagedBean() {\r\n\r\n }", "Customers createCustomers();", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public ConversorManagedBean() {\r\n }", "public CreateCustomer() {\n initComponents();\n }", "Customer() {\n }", "public Customer(){}", "@Override\n\tpublic void create(Customer t) {\n\n\t}", "public Customer(){\n\t \n }", "@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}", "public NewJSFManagedBean() {\n }", "private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }", "public Customer() {\r\n }", "Customer() \n\t{\n\t}", "public Customer(){\n\n }", "public boolean addCustomer(CustomerBean customer);", "public Customer() {\n\t\tsuper();\n\t}", "public Customer()\n {\n\n }", "public static Customer createEntity(EntityManager em) {\n Customer customer = new Customer()\n .name(DEFAULT_NAME)\n .address(DEFAULT_ADDRESS)\n .licenseid(DEFAULT_LICENSEID);\n return customer;\n }", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "public Customer() {\n }", "public Customer() {\n }", "@DOpt(type = DOpt.Type.ObjectFormConstructor)\n\t@DOpt(type = DOpt.Type.RequiredConstructor)\n\tpublic Customer( @AttrRef(\"name\") String name,\n\t\t\t@AttrRef(\"gender\") Gender gender,\n\t\t\t@AttrRef(\"dob\") Date dob, \n\t\t\t@AttrRef(\"address\") Address address, \n\t\t\t@AttrRef(\"email\") String email,\n\t\t\t@AttrRef(\"phone\") String phone) {\n\t\tthis(null, name, gender,dob, address, email, phone, null);\n\t}", "public Customer() {\n\t}", "public Customer() {\n\t}", "public Customer() { }", "public Customer() {\n\n }", "public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}", "private Customer createCustomerInstance(String name, String email, String phoneNumber) {\n Customer customer = new Customer();\n customer.setName(name);\n customer.setEmail(email);\n customer.setPhoneNumber(phoneNumber);\n return customer;\n }", "public ViewAllMedicalRecordsManagedBean() {\n }", "public static Customer createEntity(EntityManager em) {\n Customer customer = new Customer()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .altPhoneNumber(DEFAULT_ALT_PHONE_NUMBER)\n .email(DEFAULT_EMAIL)\n .address1(DEFAULT_ADDRESS_1)\n .address2(DEFAULT_ADDRESS_2)\n .address3(DEFAULT_ADDRESS_3)\n .city(DEFAULT_CITY)\n .state(DEFAULT_STATE)\n .zip(DEFAULT_ZIP)\n .note(DEFAULT_NOTE);\n return customer;\n }", "public Customer () {\n\t\tsuper();\n\t}", "public CekCustomer() {\n initComponents();\n serviceCekCustomer = new CekCustomerServiceImp();\n setLocationRelativeTo(null);\n this.view();\n }", "public TestManagedBeanFactory() {\n super(\"TestManagedBeanFactory\");\n }", "@GetMapping(\"/new\")\n public String newCustomer(Model model) {\n Customer customer = new Customer();\n Address actualAddress = new Address();\n Address registeredAddress = new Address();\n customer.setActualAddress(actualAddress);\n customer.setRegisteredAddress(registeredAddress);\n model.addAttribute(CUSTOMER, customer);\n return NEW_VIEW;\n }", "public CustomerNew (\n\t\t Long in_id\n ) {\n\t\tthis.setId(in_id);\n }", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "public Customer(String name) {\n this.name=name;\n }", "public void create(Customer customer) {\r\n this.entityManager.persist(customer);\r\n }", "public Customer(String name) {\n this.name = name;\n }", "public TestManagedBeanFactory(String name) {\n \n super(name);\n \n }", "public PnNewCustomer() {\n initComponents();\n }", "public NotificationManagedBean() {\r\n }", "public CustomerController() {\n\t\tsuper();\n\n\t}", "private Customer createCustomerInstanceWithId(String name, String email, String phoneNumber) {\n Customer customer = new Customer();\n customer.setId(1000L);\n customer.setName(name);\n customer.setEmail(email);\n customer.setPhoneNumber(phoneNumber);\n return customer;\n }", "TypicalCustomer() {\n super();\n }", "public Customer build() {\n return new Customer(this);\n }", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "@Override\n\tpublic Customers create(Customers newcust) {\n\t\tif (newcust.getId()!=null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers savecust = CustRepo.save(newcust);\n\t\treturn savecust;\n\t}", "public static Customer createNewCustomer(String fullName, Integer branchID )\n {\n return new Customer(fullName, branchID);\n }", "public UpdateClassManagedBean() {\n }", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public Customer() {\n name = \"N.A.\";\n surname = \"N.A.\";\n address = \"N.A.\";\n email = \"N.A.\";\n }", "public SettlementBean() {\r\n entitymanagerbean = new EntityManagerBean();\r\n }", "public MessageResponseCustomerDto createCustomer(CustomerDto customer);", "private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }", "public static CustomerService getCustomerDetailsServiceImpl() {\n\t\treturn new CustomerServiceImpl();\n\t}", "void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public QuotationDetailProStaffManagedBean() {\n }", "public AddCustomer() {\n initComponents();\n }", "@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }", "public static CustomerDetailsDto getCustomerDetailsDto() {\n\t\treturn new CustomerDetailsDto();\n\t}", "SerialResponse createCustomer(PinCustomerPost pinCustomerPost);", "public MusicManagedBean() {\n }", "public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }", "public synchronized CustomerDAO getCustomerDAO() {\n\t\treturn new CustomerDAO(this);\n\t}", "public ListarInscritosManagedBean() {\n this.member1Service = new Member1Service();\n }", "@Transactional\n\t@Override\n\tpublic Customer createCustomer(String name) {\n\t\t\n\t\tvalidateName(name);\n\t\tLocalDateTime now = LocalDateTime.now();\n\t\tAccount account = new Account(5000.0, now);\n\t\taccountRepository.save(account);\n\t\tSet<Item> set = new HashSet<>();\n\t\tCustomer customer = new Customer(name, account,set);\n\t\tcustRepository.save(customer);\n\t\treturn customer;\n\t\t\n\t}", "public PersonBean() {\n\t}", "private CustomerDetails initCustomerDetails() {\n CustomerDetails mCustomerDetails = new CustomerDetails();\n mCustomerDetails.setPhone(\"085310102020\");\n mCustomerDetails.setFirstName(\"user fullname\");\n mCustomerDetails.setEmail(\"[email protected]\");\n return mCustomerDetails;\n }", "public Customer(String name, String address, String phoneNumber) {\r\n\t\tsuper(name, address, phoneNumber);\r\n\t\tsuper.setId(CUSTOMER_STRING + (IdServer.instance().getId()));\r\n\t}", "public PhoneBill(String customerName) {\n this.customerName = customerName;\n }", "public CustomerDto buildDtoFromEntity(Customer customer) {\n return CustomerDto.builder().serviceType(customer.getServiceType()).existingCustomer(customer.isExistingCustomer())\n .accountNumber(customer.getAccountNumber()).build();\n }", "@PostConstruct\n\tpublic void initializer()\n\t{\n\t\tCustomerDTO customerDTO = new CustomerDTO();\n\t\tcustomerDTO.setFuellid(true);\n\t\tcustomerDTO.setCity(\"DL\"); \n\t}", "public CrudBean() {\n }", "public Customer(int id, String name, int age, String address) {\r\n super(id, name, age, address);\r\n }", "public Customers(){\r\n \r\n }", "public ClienteBean() {\n }", "public Customer(int id) {\n\t\tthis.id = id;\n\t}", "@RequestMapping(value=\"/pizza/custCreate.html\", method = RequestMethod.POST)\r\n public ModelAndView custCreate(\r\n @ModelAttribute(\"customer\")Customer customer,\r\n @CookieValue(value = \"v\", defaultValue = \"\") String visitorId,\r\n HttpServletResponse response) throws Exception {\n visitorManager.setCookieValue(visitorId);\r\n \r\n // Get the current order\r\n Order order = shoppingCart.getOrder();\r\n ModelAndView result = new ModelAndView(\"/pizza/cardEntry\");\r\n result.addObject(\"order\", order);\r\n \r\n // TODO: Is the customer valid?\r\n \r\n // Add the customer to the order\r\n order.setCustomer(customer);\r\n shoppingCart.assignCustomer(customer);\r\n\r\n // Remember the visitor\r\n response.addCookie(new Cookie(\"v\", visitorManager.getCookieValue()));\r\n return result;\r\n }", "public ResponseEntity<?> createCustomer(customer.controller.Customer customer);", "public CustomerDatabase(){\n\t\tlist = new ArrayList<Customer>();\n\t}", "public CustomerListForm() {\n initComponents();\n findAllData();\n }", "public pnlCustomer() {\n initComponents();\n }", "public CustomerManager(DatabaseManager manager) {\r\n\t\tthis.manager = manager;\r\n\t}", "@Override\n\tpublic Object creatBean(BeanEntity beanEntity) {\n\t\treturn null;\n\t}", "public MyCustomer(CustomerAgent cmr, int num){\n\t this.cmr = cmr;\n\t tableNum = num;\n\t state = CustomerState.NO_ACTION;\n\t}", "public static void createCustomer() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER CREATOR]\\n\");\r\n\t\tSystem.out.println(\"Enter the name of the customer you would like to create:\");\r\n\t\t\r\n\t\t// create a new customer with a user-defined name\r\n\t\tCustomer c = new Customer(inputString(false));\r\n\t\t// add the customer to the ArrayList\r\n\t\tcustomers.add(c);\r\n\t\t// display the edit screen for the customer\r\n\t\teditCustomer(c);\r\n\t}", "public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }" ]
[ "0.66145897", "0.65029705", "0.64617133", "0.64617133", "0.64617133", "0.64617133", "0.63691014", "0.63447183", "0.6278844", "0.6205294", "0.6192006", "0.6188611", "0.61814135", "0.6158189", "0.6146828", "0.61356217", "0.61220866", "0.6114438", "0.60895693", "0.60852015", "0.60795194", "0.60719335", "0.6071864", "0.60513437", "0.6046164", "0.60451186", "0.6045105", "0.6032074", "0.6030691", "0.6017142", "0.6013036", "0.60119", "0.60119", "0.6010682", "0.59788513", "0.59788513", "0.597828", "0.5954413", "0.59458613", "0.5942112", "0.5918526", "0.5903245", "0.5876775", "0.58750147", "0.5873394", "0.5871913", "0.58696276", "0.5866605", "0.58647364", "0.5845847", "0.5798275", "0.5783382", "0.5783085", "0.5769269", "0.5753443", "0.5730427", "0.5703829", "0.569983", "0.56609654", "0.56486464", "0.56479776", "0.56469756", "0.5643587", "0.5633686", "0.5622677", "0.5619086", "0.55690545", "0.55636245", "0.55341744", "0.5523348", "0.55199105", "0.5507336", "0.5489039", "0.5469313", "0.54668504", "0.5466675", "0.5445069", "0.54438674", "0.5430809", "0.54251623", "0.5416873", "0.5416426", "0.5402534", "0.53957015", "0.53922176", "0.5389773", "0.5388669", "0.5381832", "0.536276", "0.5356666", "0.53529996", "0.5352459", "0.5347244", "0.53417516", "0.5338591", "0.5335568", "0.5333364", "0.5328875", "0.5327859", "0.5326218" ]
0.81623447
0
TODO Autogenerated method stub
@Override public void onColorChange(int color) { int r = Color.red(color); int g = Color.green(color); int b = Color.blue(color); Log.w("CameraEngineActivity", "R:" + r + " G:" + g + " B:" + b); colorText.setBackgroundColor(color); }
{ "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
on click, start the Map activity startActivity(new Intent(MainActivity.this, MapActivity.class));
public void onClick(View v) { Intent intent = new Intent(MainActivity.this, ShowDetails.class); intent.putExtra("placeReference",placeReference); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickToMap(View view){\n startActivity(new Intent(MainActivity.this, MapsActivity.class));\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MapActivity.class);\n startActivity(intent);\n }", "protected void startMap(){\n Intent activityChangeIntent = new Intent(MainActivity.this, MapActivity.class);\n startActivity(activityChangeIntent);\n }", "public void openMapActivity() {\n Log.d(\"StartActivity\", \"opening map activity\");\n Intent intent = new Intent(this, MapsActivity.class);\n startActivity(intent);\n finish();\n }", "public void map(View view) {\n Intent intent = new Intent(this, MapsActivity.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n\t\t\tIntent in2=new Intent(getApplicationContext(),Map.class);\n\t\t\t\tstartActivity(in2);\n\t\t\n\t\t}", "public void mapsOpen (View view) {\n Intent mapIntent = new Intent(this, MapsActivity.class);\n startActivity(mapIntent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 2);\n\t\t\t\tintent.putExtra(\"latc\", 13.0827);\n\t\t\t\tintent.putExtra(\"lngc\", 80.2707);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0, 0?q=Animal+Shelter+near+me\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 1);\n\t\t\t\tintent.putExtra(\"latb\", 12.9716);\n\t\t\t\tintent.putExtra(\"lngb\", 77.5946);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "public void onClick(View v) {\n double latitude = 51.52;\n double longitude = -13.03;\n Intent intentBundle = new Intent(MainActivity.this, NetMap.class);\n Bundle bundle = new Bundle();\n bundle.putDouble(\"lat\", latitude);\n bundle.putDouble(\"long\", longitude);\n intentBundle.putExtras(bundle);\n startActivity(intentBundle);\n }", "@Override\n public void onClick(View v) {\n Uri gmmIntentUri = Uri.parse(\"geo:37.7749,-122.4194\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent intent = new Intent(MapActivity.this, GameActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "@Override\r\n public void onClick(View v) {\n Intent intent = new Intent(ServicesActivity.this, AmbulanceMapsActivity.class);\r\n\r\n startActivity(intent);\r\n }", "public void toMap(View view) {\n startActivity(new Intent(LaunchingActivity.this, MapsActivity.class));\n }", "@Override\n public void onClick(View view) {\n String geoUri = \"http://maps.google.com/maps?q=loc:\" + 18.5155346 + \",\" + 73.7836165 + \" (\" + \"Manyavar\" + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geoUri));\n mcontext.startActivity(intent);\n\n }", "@OnClick({R.id.address_img, R.id.address})\n void OnClickMap() {\n // Open location on map\n Intent mapIntent=new Intent(Intent.ACTION_VIEW);\n mapIntent.setData(Uri.parse(\"geo:0,0?q=\" + getString(R.string.latitude) + \",\"\n + getString(R.string.longitude)));\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 0);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n String label = response.body().getEventList().get(0).getEventName();\n String strUri = \"http://maps.google.com/maps?q=loc:\" + response.body().getEventList().get(0).getEventLatitude() + \",\" + response.body().getEventList().get(0).getEventLongitude() + \" (\" + label + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(strUri));\n\n intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\n startActivity(intent);\n\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t Uri.parse(\"http://maps.google.com/maps?saddr=\"+slat+\",\"+slong+\"&daddr=\"+dlat+\",\"+dlong));\n\t\t\t\t\tintent.setComponent(new ComponentName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\"));\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\n\t\t\treturn;\n\t\t\t\t}catch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void toNeedymap (View v){\n Intent i = new Intent(Startup_menu_activity.this,web_page.class);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + selected_location);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = null,chooser = null;\n\t\t\t\tintent = new Intent(android.content.Intent.ACTION_VIEW);\n\t \t\t//For any Action\n\t \t\tintent.setData(Uri.parse(\"geo:27.961429,76.402788\"));\n\t \t\tchooser = Intent.createChooser(intent,\"MAPS Launch\");\n\t \t\tstartActivity(chooser);\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent i = new Intent(CreateListingActivity.this, MapActivity.class);\n startActivityForResult(i, 1);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this,WeatherActivity.class);\n intent.putExtra(\"lat\", latitude);\n intent.putExtra(\"long\",longitude);\n startActivity(intent);\n\n }", "@Override\n public void run() {\n startActivity(new Intent(this, MapsActivity.class));\n finish();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLatLng srclatlng = getIntent().getParcelableExtra(\"currentlatlng\");\n\t\t\t\tLatLng destlatlng = getIntent().getParcelableExtra(\"latlng\");\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + srclatlng.latitude + \",\"\n\t\t\t\t\t\t+ srclatlng.longitude + \"&daddr=\" + destlatlng.latitude + \",\" + destlatlng.longitude));\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void run() {\n\n try {\n Intent i = new Intent(getApplicationContext() , MapsActivity.class);\n startActivity(i);\n\n finish();\n } catch (Exception ignored) {\n ignored.printStackTrace();\n }\n }", "@Override\n public void onMapClick(LatLng point) {\n double lati = point.latitude;\n\n\n // Getting longitude of the current location\n double longi = point.longitude;\n\n\n i = new Intent(MapsActivity.this, addtasks.class);\n\n\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", lati);\n b.putDouble(\"longitude\", longi);\n i.putExtras(b);\n\n startActivity(i);\n\n }", "private void onOpenMapButtonClicked() {\n\n // Create a new intent to start an map activity\n Intent mapIntent =\n new Intent(DetailActivity.this, MapsActivity.class);\n if (mMapDestination != null && mMapDestination.getLocation() != null &&\n mMapDestination.getRadius() >= 0) {\n MapDestination mapDestination =\n new MapDestination(mMapDestination.getLatitude(),\n mMapDestination.getLongitude(), mMapDestination.getLocation(),\n mMapDestination.getRadius());\n mapIntent.putExtra(Constants.EXTRA_ALARM_DESTINATION, mapDestination);\n }\n startActivityForResult(mapIntent, MAP_REQUEST_CODE);\n\n }", "private void goToMainActivity(){\n Log.d(TAG, \"goToMainActivity: called\");\n saveUserLogin(login);\n\n Intent intent = new Intent(\"android.intent.action.MapActivity\");\n view.getContext().startActivity(intent);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\n\t\tButton clocation, bangalore, chennai;\n\t\tclocation = (Button) findViewById(R.id.clocation);\n\t\tbangalore = (Button) findViewById(R.id.bangalore);\n\t\tchennai = (Button) findViewById(R.id.chennai);\n\n\t\tclocation.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 0);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}\n\t\t});\n\n\t\tbangalore.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 1);\n\t\t\t\tintent.putExtra(\"latb\", 12.9716);\n\t\t\t\tintent.putExtra(\"lngb\", 77.5946);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}\n\t\t});\n\n\t\tchennai.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 2);\n\t\t\t\tintent.putExtra(\"latc\", 13.0827);\n\t\t\t\tintent.putExtra(\"lngc\", 80.2707);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tString url = \"http://maps.google.com/maps?\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"daddr=\" + place.lat + \",\"\n\t\t\t\t\t\t\t\t\t\t\t+ place.longit;\n\t\t\t\t\t\t\t\t\tIntent mapIntent = new Intent(\n\t\t\t\t\t\t\t\t\t\t\tIntent.ACTION_VIEW, Uri.parse(url));\n\t\t\t\t\t\t\t\t\tstartActivity(mapIntent);\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t.parse(\"http://maps.google.com/maps?f=d&daddr=\"\n\t\t\t\t\t\t\t\t+ lot.getLatitude() + \",\" + lot.getLongitude()\n\t\t\t\t\t\t\t\t+ \" (Lot \" + lot.getName() + \")\"));\n\t\t\t\tintent.setComponent(new ComponentName(\n\t\t\t\t\t\t\"com.google.android.apps.maps\",\n\t\t\t\t\t\t\"com.google.android.maps.MapsActivity\"));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}", "public void bSitio1(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.21999);\n i.putExtra(\"Longitud\", -75.190537);\n i.putExtra(\"destino\", \"Isla Guaca\");\n startActivity(i);\n }", "public void onClick(View v) {\n double latitude = Double.parseDouble(editLat.getText().toString());\n double longitude = Double.parseDouble(editLong.getText().toString());\n Intent intentBundle = new Intent(MainActivity.this, NetMap.class);\n Bundle bundle = new Bundle();\n bundle.putDouble(\"lat\", latitude);\n bundle.putDouble(\"long\", longitude);\n intentBundle.putExtras(bundle);\n startActivity(intentBundle);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + location.get(position).getAddress() + \", Madrid, Spain\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, Tambal_banActivity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, WC_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "public void onClick(View v) {\n\t\t\t\topenMap(v);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\topenMap(v);\r\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\topenMap(v);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(final View v) {\n\t\t\t\tIntent intent = new Intent(mContext, GoogleMapsView.class);\r\n\t\t\t\tBundle b = new Bundle();\r\n\t\t\t\tb.putDouble(\"LATITUDE\", data.getLatitude());\r\n\t\t\t\tb.putDouble(\"LONGITUDE\", data.getLongitude());\r\n\t\t\t\tintent.putExtras(b);\r\n\t\t\t\t((Activity) mContext).startActivityForResult(intent, Globals.ACTIVITY_GOOGLE_MAPS);\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n String id = (String) mapTmp.get(\"id\");\n Intent intent = new Intent(MapActivity.this, ViewMeetingActivity.class);\n intent.putExtra(\"id\", id);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n String label = \"Route for \" + namemark;\n String uriBegin = \"geo:\" + latl + \",\" + long1;\n String query = latl + \",\" + long1 + \"(\" + label + \")\";\n String encodedQuery = Uri.encode(query);\n String uriString = uriBegin + \"?q=\" + encodedQuery + \"&z=16\";\n Uri uri = Uri.parse(uriString);\n try {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);\n startActivity(intent);\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Update Your Google Map\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, ATM_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "private void startMuseek(){\r\n\t\tIntent mainActivity = new Intent(getBaseContext(), MainActivity.class);\r\n\t\tmainActivity.putExtra(\"latitude\", mLocation.getLatitude());\r\n\t\tmainActivity.putExtra(\"longitude\", mLocation.getLongitude());\r\n\t\tstartActivity(mainActivity);\r\n\t}", "@Override\n public void onClick(View v) {\n ((MapActivity) getActivity()).showMenu();\n }", "public void createMapIntent(View view){\n Uri uri = Uri.parse(\"geo:0,0?q=\" + Uri.encode(\"12 Community Rd, Allen, Ikeja, Lagos\"));\n\n //Step 2: Create a mapIntent with action \"Intent.ACTION_VIEW\". Pass the data too\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, uri);\n\n //Step 3: Set the package name of the Map App (i.e the unique name of the app)\n //E.g mapIntent.setPackage(\"com.google.android.apps.maps\");\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n\n //Step 4: Check if the Map app is available to ACCEPT this intent, if Map app is available, start the Map Activity\n if(mapIntent.resolveActivity(getPackageManager()) != null){\n startActivity(mapIntent);\n }\n else{\n Toast.makeText(this, \"No available client\", Toast.LENGTH_LONG).show();\n }\n\n }", "public void onClick(View v) {\n\t\t\t\tstartActivity(new Intent (\"com.timurb.mobsy.MAPTRACKER\"));\n\t\t\t\tmpButtonClick.start();\n\t\t\t}", "public void bSitio2(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.269434 );\n i.putExtra(\"Longitud\", -75.18322);\n i.putExtra(\"destino\", \"Represa Guatapé\");\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n \tIntent intent = new Intent(getApplicationContext(), Gamenine.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(Utils.hasLength(item.getGeoReferencia())){\n \t\t\t\t\tString urlString = \"http://maps.google.com/maps?q=\" + item.getGeoReferencia() + \"&near=Madrid,Espa�a\";\n \t\t\t\t\tIntent browserIntent = new Intent(\"android.intent.action.VIEW\", \n \t\t\t\t\t\t\tUri.parse(urlString ));\n \t\t\t\t\tstartActivity(browserIntent);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}", "@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }", "public void toSetMarker(View v){\n Intent i = new Intent(Startup_menu_activity.this,testing_location.class);\n startActivity(i);\n }", "public void bSitio3(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.223612);\n i.putExtra(\"Longitud\", -75.178183);\n i.putExtra(\"destino\", \"Piedra del Peñol\");\n startActivity(i);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap; //Cargamos el mapa\n miUbicacion(); //Cargamos nuestra ubicacion\n mMap.setInfoWindowAdapter(this);\n\n //START INTENT\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Meteo meteo = (Meteo) marker.getTag();\n Intent secondActivity = new Intent(MapsActivity.this,segAct.class);\n secondActivity.putExtra(\"name\",meteo.getName());\n secondActivity.putExtra(\"temp\",meteo.getMain().getTemp());\n secondActivity.putExtra(\"tempMax\",meteo.getMain().getTemp_max());\n secondActivity.putExtra(\"tempMin\",meteo.getMain().getTemp_min());\n secondActivity.putExtra(\"icon\",meteo.getWeather().get(0).getIcon());\n startActivity(secondActivity);\n }\n });\n }", "public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\tstartActivity(in);\n\t\t\t}", "public void startNavigation(){\n\n Uri gmmIntentUri = Uri.parse(\"google.navigation:q=\"+lat+\",\"+lng);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n\n startActivity(mapIntent);\n\n }\n\n\n\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,MainActivity.class));\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, ViewActivity.class));\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Location.this, Graph.class);\n startActivity(intent);\n Location.this.finish();\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Location.this, Graph.class);\n startActivity(intent);\n Location.this.finish();\n }", "@Override\r\n public void onClick(View view) {\n Intent intent=new Intent(MainActivity.this, CameraActivity.class);\r\n startActivity(intent);\r\n }", "@Override\n public void onClick(View view) {\n Intent indianCenterIntent = new Intent(Sights.this, IndianCenter.class);\n startActivity(indianCenterIntent);\n }", "public void onClick(View v) {\n Intent intent = new Intent(SettingsActivity.this, DistanceSettingsActivity.class);\n startActivity(intent);\n\n // MainActivity.this.startActivity(activityChangeIntent);\n }", "public void onClick(View v) {\n Intent intent = new Intent(SettingsActivity.this, DistanceSettingsActivity.class);\n startActivity(intent);\n\n // MainActivity.this.startActivity(activityChangeIntent);\n }", "@Override\n\t\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\t\tgoogleMap.clear();\n\n\t\t\t\t\t// Creating an instance of MarkerOptions to set position\n\t\t\t\t\t// MarkerOptions markerOptions = new MarkerOptions();\n\n\t\t\t\t\t// Setting position on the MarkerOptions\n\t\t\t\t\tmarker.position(arg0);\n\n\t\t\t\t\t// Animating to the currently touched position\n\t\t\t\t\tgoogleMap.animateCamera(CameraUpdateFactory.newLatLng(arg0));\n\n\t\t\t\t\t// Adding marker on the GoogleMap\n\t\t\t\t\tMarker marker1 = googleMap.addMarker(marker);\n\n\t\t\t\t\t// Showing InfoWindow on the GoogleMap\n\t\t\t\t\tmarker1.showInfoWindow();\n\t\t\t\t}", "void switchToMapSelectActivity();", "@Override\n public void onClick(DialogInterface dialog, int which) {\n try{\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=com.google.android.apps.maps\")));\n } catch (android.content.ActivityNotFoundException anfe) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=com.google.android.apps.maps\")));\n }\n builder.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n\n case android.R.id.home:\n Intent i = new Intent(Activity_MarkerGoogleMaps.this, Activity_Dashboard.class);\n startActivity(i);\n finish();\n\n break;\n\n }\n return super.onOptionsItemSelected(item);\n }", "public void mapIsClicked(View view) {\n Controller.viewMappa();\n }", "private void check_1() {\n\n Intent l = new Intent(MainActivity.this, MapsView.class);\n //l.putExtra(\"kategori\", \"Bank\");\n\n\n startActivity(l);\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent i = new Intent(this,MainActivity.class);\n\t\tstartActivity(i);\n\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.example.thirdapp.LocationActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"4\");\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent light = new Intent(MainActivity.this,Light.class);\n\t\t\t\tstartActivity(light);\n\t\t\t}", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent(MainActivity.this, MainActivity2.class);\n\t\t\tstartActivity(intent);\n\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(MotionSensor.this, MainActivity.class);\n\t\t\t\tMotionSensor.this.startActivity(intent);\n\t\t\t}", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "@Override\n public void onMapReady(GoogleMap googleMap)\n {\n\n\n mMap = googleMap;\n Intent intent = getIntent();\n seisme = (Seisme) intent.getSerializableExtra(\"seisme\");\n String[] split = seisme.getPoint().split(\" \");\n LatLng point = new LatLng(Double.parseDouble(split[0]), Double.parseDouble(split[1]));\n mMap.addMarker(new MarkerOptions().position(point).title(seisme.getTitle()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(point));\n\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener()\n {\n @Override\n public void onInfoWindowClick(Marker marker)\n {\n Context context = getApplicationContext();\n Intent intent = new Intent(MapsActivity.this, infoDetail.class);\n intent.putExtra(\"item\", seisme);\n startActivity(intent);\n }\n });\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(LaunchActivity.this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n /*To find map coordinates for database\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n Log.i(\"MAP\", latLng.latitude + \", \" + latLng.longitude);\n }\n });\n */\n\n\n styleMap();\n populateMap();\n setUpDirectionIntegration();\n\n Intent intent = getIntent();\n String location = intent.getStringExtra(\"Location\");\n if (location != null) {\n showSelectedLocation(location);\n } else {\n //showCurrentLocation();\n showCurrentLocation();\n }\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_inicio, container, false);\n\n botaoMapa = (Button) view.findViewById(R.id.botao_mapa_id);\n\n botaoMapa.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n startActivity(new Intent(getContext(), MapaActivity.class));\n\n }\n });\n\n return view;\n\n\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent(MainActivity.this, MainActivity01.class);\n\t\t\tstartActivity(intent);\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_add) {\n Toast toast = Toast.makeText(getApplicationContext(), \"Please choose attraction's location\", Toast.LENGTH_SHORT);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng position) {\n mMap.addMarker(new MarkerOptions().position(position));\n\n Intent intent = new Intent(MapsActivity.this, AddActivity.class);\n intent.putExtra(\"latitude\", position.latitude);\n intent.putExtra(\"longitude\", position.longitude);\n\n startActivity(intent);\n mMap.setOnMapClickListener(null);\n }\n });\n\n return true;\n }\n\n if (id == R.id.action_list) {\n Intent intent = new Intent(MapsActivity.this, ListActivity.class);\n startActivity(intent);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onMapClick( LatLng latLng ) {\n googleMap.clear();\n Log.d( \"LAT/LONG\", latLng.toString() );\n googleMap.addCircle( new CircleOptions()\n .center( latLng )\n .radius( 10000 )\n .strokeColor( ContextCompat.getColor( Objects.requireNonNull( getContext() ), R.color.colorLightPurple ) )\n .fillColor( ContextCompat.getColor( Objects.requireNonNull( getContext() ), R.color.transparentcolorLightPurple ) ) );\n\n googleMap.addMarker( new MarkerOptions().position( latLng )\n .icon( BitmapDescriptorFactory.defaultMarker( BitmapDescriptorFactory.HUE_VIOLET ) ) );\n googleMap.moveCamera( CameraUpdateFactory.newLatLngZoom( latLng, 10.0f ) );\n cLocate = latLng;\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public void onClick(View v) {\n \tswitch(v.getId()) {\n\t \tcase R.id.infoButton:\n\t \t\tint position = (Integer) v.getTag();\n Intent i = new Intent(getActivity(), SiteActivity.class);\n i.putExtra(Site.PARCEL_NAME, sites.get(position));\n SiteDetails sd = sites.get(position).getDetails();\n if (sd != null) {\n \ti.putExtra(SiteDetails.PARCEL_NAME, sd);\n }\n startActivity(i); \n getActivity().overridePendingTransition(R.anim.zoom_in, 0);\n break;\n/* \n\t \tcase R.id.directionsButton:\n\t \tif (Utils.isNetworkAvailable(getActivity())) {\n\t \t\tposition = (Integer)v.getTag();\n\t \t\tSite s = sites.get(position);\n\t \t\tif (s.getString(Site.LATITUDE) != null) {\n\t \t\t\tString url;\n\t \t\t\t if (position == 0) {\n\t \t\t\t\t url = \"http://maps.google.com/maps?daddr=\"+s.getString(Site.LATITUDE)+ \",\"+s.getString(Site.LONGITUDE);\n\t \t\t\t }\n\t \t\t\t else {\n\t \t\t\t\t Site start = sites.get(position - 1);\n\t \t\t\t\t url = \"http://maps.google.com/maps?saddr=\"+start.getString(Site.LATITUDE)+ \",\"+start.getString(Site.LONGITUDE) + \"?daddr=\"+s.getString(Site.LATITUDE)+ \",\"+s.getString(Site.LONGITUDE);\t\t \t\t\t\t \n\t \t\t\t }\n\t \t\t\t Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(url));\n\t\t\t \t intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\t\t\t \t try {\n\t\t\t \t\t startActivity(intent);\n\t\t\t \t\t getActivity().overridePendingTransition(R.anim.zoom_in, 0);\n\t\t\t \t }\n\t\t\t catch(ActivityNotFoundException innerEx)\n\t\t\t {\n\t\t\t Toast.makeText(getActivity(), getString(R.string.requires_google_apps), Toast.LENGTH_LONG).show();\n\t\t\t }\t \t \n\t\t\t }\n\t\t \t}\n\t\t \telse {\n\t\t \tToast.makeText(getActivity(), getString(R.string.requires_network), Toast.LENGTH_LONG).show();\n\t\t \t}\n\t\t break;\n*/\n\t \tcase R.id.exitHintButton:\n\t \t\tSharedPreferences.Editor editor = mPrefs.edit();\n\t \t\teditor.putBoolean(showHintPref, showHint);\n\t \t\teditor.commit(); // Very important to save the preference \n\t \t\thintDialog.dismiss(); \n\t \t\thintDialog = null;\t \t\t\n\t \t\tbreak;\n\t \t\t\n \t}\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent(MainActivity.this,MyActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }", "public void viewOnMap(View view){\r\n changeToMapActivity();\r\n }", "public void intentForQuestion4 (View view){\n Intent question4 = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"https://www.google.pl/maps/place/Cape+Canaveral+Air+Force+Station/@28.4880013,-80.5730528,1691m/data=!3m1!1e3!4m5!3m4!1s0x88e0a4e74e6a8abb:0x2a16683cb4a44f!8m2!3d28.4886723!4d-80.5728241\"));\n startActivity(question4);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onMapClick(LatLng latLng) {\n }", "@Override\n public void onMapClick(LatLng latLng) {\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAdminMapField.this,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAdminMapField.class);\r\n\t\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t\t\t\t\t\t}", "public void mapIt(View v) {\n final StopData stop = (StopData) ((View) v.getParent()).getTag(R.layout.nearby_stop);\n Uri gmmIntentUri;\n Intent mapIntent = null;\n switch (v.getId()) {\n case R.id.nr_map:\n // Creates an Intent that will load a map of the stop\n gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + stop.stopLat + \",\" + stop.stopLong + \"(\" + stop.stopName + \")\");\n //geo:0,0?q=latitude,longitude(label)\n mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n break;\n case R.id.nr_directions:\n //Uri gmmIntentUri = Uri.parse(\"google.navigation:q=Taronga+Zoo,+Sydney+Australia&mode=b\");\n // Creates an Intent that will load a map of the stop\n gmmIntentUri = Uri.parse(\"google.navigation:q=\" + stop.stopLat + \",\" + stop.stopLong + \"&mode=w\");\n //geo:0,0?q=latitude,longitude(label)\n mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n break;\n }\n\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }" ]
[ "0.9192171", "0.90113074", "0.863221", "0.8415538", "0.8176433", "0.8134589", "0.79646593", "0.79644185", "0.7947858", "0.79112947", "0.7906562", "0.7896397", "0.7889286", "0.7885622", "0.78247386", "0.7812491", "0.7785562", "0.77654463", "0.768561", "0.76718175", "0.76292896", "0.76175654", "0.76118", "0.7556278", "0.7542626", "0.75382394", "0.7468867", "0.7462681", "0.7444303", "0.74442", "0.7421542", "0.7418521", "0.7386422", "0.73262537", "0.7324502", "0.7306526", "0.72965264", "0.7294866", "0.72864115", "0.72711724", "0.725683", "0.725683", "0.725683", "0.72173595", "0.72068137", "0.7184371", "0.7180222", "0.7153845", "0.7137946", "0.7126553", "0.7103646", "0.7047379", "0.7028934", "0.7020387", "0.701382", "0.6986313", "0.6983652", "0.6979801", "0.69770765", "0.69559324", "0.69331706", "0.6912466", "0.68993515", "0.6886803", "0.6864295", "0.6858663", "0.68546206", "0.68538207", "0.68538207", "0.683879", "0.6837822", "0.68368345", "0.6829862", "0.6815143", "0.6811679", "0.6809612", "0.68056756", "0.67959285", "0.67920005", "0.6790227", "0.6770535", "0.67704797", "0.67660135", "0.6763332", "0.67564726", "0.6735408", "0.67321473", "0.6725799", "0.67204356", "0.6712843", "0.67035085", "0.66961867", "0.6695528", "0.6679721", "0.6672956", "0.66667384", "0.66631716", "0.6657006", "0.6657006", "0.66458446", "0.66456616" ]
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.activity_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n 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 public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@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\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\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}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\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\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\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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@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 boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_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\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.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.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\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 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\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\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\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.7249256", "0.72037125", "0.7197713", "0.7180111", "0.71107703", "0.70437056", "0.70412415", "0.7014533", "0.7011124", "0.6983377", "0.69496083", "0.69436663", "0.69371194", "0.69207716", "0.69207716", "0.6893342", "0.6886841", "0.6879545", "0.6877086", "0.68662405", "0.68662405", "0.68662405", "0.68662405", "0.68546635", "0.6850904", "0.68238425", "0.6820094", "0.6817109", "0.6817109", "0.6816499", "0.6809805", "0.68039787", "0.6801761", "0.6795609", "0.6792361", "0.67904586", "0.67863315", "0.67613983", "0.67612505", "0.67518395", "0.6747958", "0.6747958", "0.67444956", "0.674315", "0.672999", "0.67269987", "0.67268807", "0.67268807", "0.67242754", "0.67145765", "0.6708541", "0.6707851", "0.6702594", "0.6702059", "0.6700578", "0.6698895", "0.66905326", "0.6687487", "0.6687487", "0.66857284", "0.66845626", "0.6683136", "0.66816247", "0.66716284", "0.66714823", "0.66655463", "0.6659545", "0.6659545", "0.6659545", "0.6658646", "0.6658646", "0.6658646", "0.6658615", "0.6656098", "0.665457", "0.6653698", "0.66525924", "0.6651066", "0.66510355", "0.6649152", "0.6648921", "0.6648275", "0.6647936", "0.66473657", "0.66471183", "0.6644802", "0.66427094", "0.66391647", "0.66359305", "0.6635502", "0.6635502", "0.6635502", "0.66354305", "0.66325855", "0.66324854", "0.6630521", "0.66282266", "0.66281354", "0.66235965", "0.662218", "0.66216594" ]
0.0
-1
Gets a list of Announcements that the current user hasn't read yet
@RequestMapping(value = "/user/unread") public String getUnreadAnnouncementsForUser(final Model model, Principal principal) { User user = userService.getUserByUsername(principal.getName()); List<Announcement> unreadAnnouncements = announcementService.getUnreadAnnouncementsForUser(user); Collections.sort(unreadAnnouncements,Collections.reverseOrder()); model.addAttribute("announcements", unreadAnnouncements); return ANNOUNCEMENT_VIEW; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Article> getNotReviewed() {\n\t\treturn articleRepository.findArticleForReviewByProfessions();\n\t}", "List<UserContentChanges> getNoChangesPerUser(int months);", "@Override\n\tpublic List<Announcement> getAnnoun() {\n\t\tList<Announcement> announ = announceMapper.getAnnoun();\n\t\treturn announ;\n\t}", "public long getAnnounces() {\n return localAnnounces;\n }", "List<ExamPackage> getListExpired();", "private void getApprovalPendingNotices() {\n noOfRows = appParametersDAO.getIntParameter(MR_APPROVAL_ROWS_PER_PAGE);\n filterAndLoadMarriageNotices();\n }", "public List<User> getDisabledUsers();", "public List<Issue> getUserActiveIssues(User user);", "private List<User> getSynchronizablePacients() {\n List<User> pacients = userRepository.findByRoles_Name(RolesNamesEnum.PATIENT.name());\n\n pacients = pacients.stream().filter(p -> (p.getTreatment() != null && !p.getTreatment().getVitals().isEmpty() && !p.getOauths().isEmpty())).collect(Collectors.toList());\n return pacients;\n }", "List<Receipt> getNotApproved() throws DbException;", "List<NotificationEntity> findUnseenByLogin(String login);", "Cursor getUndeliveredOneToOneChatMessages();", "@SuppressWarnings(\"unchecked\")\n public <O> List<O> inactiveVersions() {\n return (List<O>) journal.journal\n .retrieve(BarbelQueries.allInactive(journal.id), BarbelQueryOptions.sortAscendingByEffectiveFrom())\n .stream().collect(Collectors.toList());\n }", "@Query(\"select a from Appointment a where a.patient.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByPatient(int patientId);", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore getAppointmentsToIgnore();", "public java.util.List getAnalyticalNotes();", "public ArrayList<Announcement> getAllAnnouncementforUpload() {\n\t\tArrayList<Announcement> announcementList = new ArrayList<Announcement>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ANNOUNCEMENT;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tAnnouncement announcement = new Announcement();\n\t\t\tannouncement.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tannouncement.type = cursor.getString(2);\n\t\t\tannouncement.date = cursor.getString(1);\n\t\t\tannouncement.subject_relation_id = cursor.getString(3);\n\t\t\tannouncement.title = cursor.getString(4);\n\t\t\tannouncement.description = cursor.getString(5);\n\t\t\tannouncement.attachment = cursor.getString(6);\n\t\t\tannouncement.file_name = cursor.getString(7);\n\t\t\tannouncementList.add(announcement);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn announcementList;\n\t}", "@Override\r\n\tpublic ArrayList<Activitat> getAllNoSenior() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME + \" WHERE SENIOR = FALSE\";\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n public List<Announcement> onLoadInBackground() {\n return databaseLoader.getChannelDBM().getAnnouncements(channelId);\n }", "java.util.List<proto.Achievement> \n getAchievementsList();", "List<Project> getWithNonResolvedMessages(User user);", "List<Friend> getPendingRequests(String email);", "public List<Refueling> getPendingRefuelings() throws DataAccessException;", "@Override\r\n\tpublic List<UserAttachment> getAllUserAttachment() {\n\t\treturn null;\r\n\t}", "java.util.List<java.lang.String> getUnreachableList();", "public Collection getReceivedNotifications();", "public List<Issue> getUserIssues(User user);", "public static Set<Member> retrieveRecentlyDeprovisionedUsers(final String affiliation) {\n \n //switch over to admin so attributes work\n return (Set<Member>)GrouperSession.internal_callbackRootGrouperSession(new GrouperSessionHandler() {\n \n @Override\n public Object callback(GrouperSession grouperSession) throws GrouperSessionException {\n \n Group deprovisionedGroup = GroupFinder.findByName(grouperSession, retrieveGroupNameWhichHasBeenDeprovisioned(affiliation), true);\n \n Set<Member> members = deprovisionedGroup.getMembers();\n return members;\n }\n });\n\n }", "public List<String> getAvailableAssignees()\n {\n // TODO stefan an Rollen knüpfen\n final Matcher<String> m = new BooleanListRulesFactory<String>().createMatcher(\"admin/user/*\");\n final List<GWikiElementInfo> userInfos = wikiContext.getElementFinder()\n .getPageInfos(new GWikiPageIdMatcher(wikiContext, m));\n\n List<String> users = new ArrayList<String>();\n for (final GWikiElementInfo user : userInfos) {\n users.add(GWikiContext.getNamePartFromPageId(user.getId()));\n }\n return users;\n }", "public NSMutableArray<I_WorkFlowItem> getTachesObligatoiresAbsentes() {\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = new NSMutableArray<I_WorkFlowItem>();\n\n\t\tfor (int i = 0; i < tachesObligatoires().count(); i++) {\n\t\t\tI_WorkFlowItem tache = tachesObligatoires().objectAtIndex(i);\n\t\t\tif (!tachesFaites.containsObject(tache)) {\n\t\t\t\ttachesObligatoiresAbsentes.addObject(tache);\n\t\t\t}\n\t\t}\n\n\t\treturn tachesObligatoiresAbsentes;\n\t}", "public List<Artist> getArtistsWhichHaveNoReleases();", "public void printAnnouncements(){\n\n if (this.announcementLogbook.isEmpty() == false){\n\n for (String log : this.announcementLogbook){\n this.announcementLogs.setText(this.announcementLogs.getText() + log + \"\\n\");\n }\n }\n\n this.announcementLogbook.clear();\n }", "public List<Individual> getListOfInactiveIndividuals(){\n\t \tList<Individual> individualList = new ArrayList<>();\n\t\tList<Individual> inactiveIndividualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (!individual.isActive()) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tinactiveIndividualList.add(individual);\n\n\t\t\t}\n\t\t}\n\n\t\treturn inactiveIndividualList;\n }", "public static java.util.List<com.gleo.plugins.hexiagon.model.Announcement> getAnnouncementsByTypeId(\n long typeId) throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsByTypeId(typeId);\n }", "@Override\n\tpublic List<Notifications> getNotifications(String username) {\n\t\treturn mobileDao.getNotifications(username);\n\t}", "@PreAuthorize(\"hasAnyAuthority(T(com.meetup.utils.Role).ADMIN, \"\n + \"T(com.meetup.utils.Role).SPEAKER, \"\n + \"T(com.meetup.utils.Role).LISTENER)\")\n @GetMapping(value = \"/user/notifications\")\n public ResponseEntity<List<NotificationDTO>> getNotifications(\n @CookieValue(\"token\") final String token) {\n Integer userId = loginValidatorService.extractId(token);\n List<NotificationDTO> notificationDTOs = notificationService\n .findUnread(userId)\n .stream()\n .map(NotificationDTOConverter::convert)\n .collect(Collectors.toList());\n return ok(notificationDTOs);\n }", "public void getFriendRequests() {\n DocumentReference userDocument = dbref.getUserDocument();\n userDocument.collection(\"PendingFriendRequest\").addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot value,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n for (QueryDocumentSnapshot doc : value) {\n\n Users user = doc.toObject(Users.class);\n Instructors.add(user);\n }\n printFriendRequestNames();\n }\n });\n }", "private List<String> getNotificationList(RepositoryItem item, RepositoryActionType action) throws RepositoryException {\n\t\tSubscriptionList singleVersionSubscriptions = getSingleVersionSubscriptions(\n\t\t\t\titem.getBaseNamespace(), item.getLibraryName(), item.getVersion() );\n\t\tSubscriptionList allVersionSubscriptions = getAllVersionsSubscriptions(\n\t\t\t\titem.getBaseNamespace(), item.getLibraryName() );\n\t\tSubscriptionEventType eventType = action.getEventType();\n\t\tList<String> userList = new ArrayList<>();\n\t\t\n\t\taddUsers( userList, singleVersionSubscriptions, eventType );\n\t\taddUsers( userList, allVersionSubscriptions, eventType );\n\t\t\n\t\tfor (String userId : getNotificationList( item.getBaseNamespace(), action )) {\n\t\t\tif (!userList.contains( userId )) {\n\t\t\t\tuserList.add( userId );\n\t\t\t}\n\t\t}\n\t\treturn userList;\n\t}", "@Override\n\tpublic List<BillardAccounts> getBilliardAccounts() {\n\t\treturn announceMapper.getBilliardAccounts();\n\t}", "private void refreshAnnouncements() {\n if (Util.getInstance(getContext()).isOnline()) {\n errorMessage = getString(R.string.general_error_connection_failed);\n errorMessage += getString(R.string.general_error_refresh);\n // Get announcement data. Request new messages only.\n int messageNumber = databaseLoader.getChannelDBM().getMaxMessageNumberAnnouncement(channelId);\n ChannelAPI.getInstance(getActivity()).getAnnouncements(channelId, messageNumber);\n } else {\n if (!isAutoRefresh) {\n errorMessage = getString(R.string.general_error_no_connection);\n errorMessage += getString(R.string.general_error_refresh);\n // Only show error message if refreshing was triggered manually.\n toast.setText(errorMessage);\n toast.show();\n // Reset the auto refresh flag.\n isAutoRefresh = true;\n // Can't refresh. Hide loading animation.\n swipeRefreshLayout.setRefreshing(false);\n }\n }\n }", "@Override\n\tpublic List<User> getFollowingUsers() throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<String> downloadPendingTracking() {\n\t\treturn trackEventsRepository.fetchPendingArticleIDs();\r\n\t}", "public ArrayList<String> getAttendees() {\n return new ArrayList<>(this.usernames);\n }", "public List<Volunteer> getAllVolunteersNotIdle() throws DALException {\n return facadeDAO.getAllVolunteersNotIdle();\n }", "public ArrayList<Notification> getNotifications() { return this.notifications; }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "public List<AnnotatedLinkWrapper> getItemsUnfiltered() {\n return getDelegate().getExtendedItems().stream()\n .map(AnnotatedLinkWrapper::new)\n .filter(al -> al.getTarget() != null)\n .filter(al -> al.getTarget().isInProduction())\n .collect(Collectors.toList());\n }", "public List<LovedTracksEntry> readPendingLoves() {\n return SQLite.select()\n .from(LovedTracksEntry.class)\n .where(LovedTracksEntry_Table.status.in(LastfmClient.TRANSIENT_ERROR_CODES))\n .queryList();\n }", "@Override\r\n\tpublic List<Cita> getAppointmentList() {\r\n\r\n\t\t// find all users\r\n\t\tList<User> users = (List<User>) userService.findAll();\r\n\t\t// create a new arrayList of appointments\r\n\t\tList<Cita> appointments = new ArrayList<>();\r\n\r\n\t\t// iterate over the list of all the users\r\n\t\tfor (Iterator<User> user = users.iterator(); user.hasNext();) {\r\n\t\t\t// get the user from the forEach\r\n\t\t\tUser getUser = user.next();\r\n\r\n\t\t\t// iterate over the AppointmentList\r\n\t\t\tfor (Cita item : getUser.getCitas()) {\r\n\r\n\t\t\t\t// check if the class is not empty\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tappointments.add(item);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn appointments;\r\n\t}", "void noFriendsRetrieved();", "List<String> viewPendingApprovals();", "DomainEventStream getUncommittedEvents();", "Response<List<Achievement>> getAchievements();", "Map<Long, Integer> getUsersWithPendingMeeting();", "ObservableList<Deliverable> getInternalDeliverableList();", "List<UserIssue> findAllUserIssues( Identifiable identifiable );", "public List<Achievement> getAllAchievements() {\n return achievementList;\n }", "List<Appointment> getCurrentlyAppointment();", "@Override\n\tpublic List<Notification> findAll() {\n\t\treturn null;\n\t}", "public static java.util.List<com.gleo.plugins.hexiagon.model.Announcement> getAnnouncementsByCurrencyId(\n long currencyId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsByCurrencyId(currencyId);\n }", "public LiveData<List<DatabaseObject<Event>>> getAttendingEvents() {\n return mCachedEventsLiveData;\n }", "public static ArrayList<Teacher> getLockedDocenti() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_TEACHERS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Teacher> docentiBloccati = (ArrayList<Teacher>) rpp.parameters[0];\n\t\treturn docentiBloccati;\n\t}", "@Override\n\tpublic List<Appointment> getUpcomingAppointments() {\n\t\treturn mobileDao.getUpcomingAppointments();\n\t}", "private void notifyAllUnlockedUsers() {\n LinkedList<Integer> users = new LinkedList<>();\r\n synchronized (mLock) {\r\n for (Map.Entry<Integer, Boolean> entry : mUserUnlockedStatus.entrySet()) {\r\n if (entry.getValue()) {\r\n users.add(entry.getKey());\r\n }\r\n }\r\n }\r\n if (DBG) {\r\n Slog.d(TAG, \"notifyAllUnlockedUsers:\" + users);\r\n }\r\n for (Integer i : users) {\r\n sendSetUserLockStatusBinderCall(i, true);\r\n }\r\n }", "public List getGonePatients() {\n\t\treturn _gonePatients;\n\t}", "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 List<String> getNotificationList() throws Exception {\r\n ArrayList<String> cache = new ArrayList<String>();\r\n for (DOMFace nr : getChildren(\"notification\", DOMFace.class)) {\r\n cache.add(nr.getAttribute(\"pagekey\"));\r\n }\r\n return cache;\r\n }", "List<NotificationEntity> findUnseenRecentByLogin(String login, Date date);", "public void clearInvisible() {\n\n Collection<NotificationPopup> syncList = Collections.synchronizedCollection(this);\n \n synchronized(syncList) {\n Collection del = new LinkedList();\n for (NotificationPopup n : syncList) {\n if (n.isVisible() == false) {\n del.add(n);\n }\n }\n\n syncList.removeAll(del);\n }\n\n }", "public List<String> getUnsentData(){\n\r\n\t}", "public ArrayList<Task> listNotStarted() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 0) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public List<Email> getUnregisteredEmailList(Ram ram);", "public static java.util.List<com.gleo.plugins.hexiagon.model.Announcement> getAnnouncementsByGroupId(\n long groupId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsByGroupId(groupId);\n }", "public List<Story> getLatestChallengesUndertaken() {\n return storyRepository.findTop50ByApprovedIsTrueOrderByLastUpdatedDesc();\n }", "public boolean hasNotifications()\n {\n return !this.notifications.isEmpty();\n }", "public List<UnpausedEventResponse> getUnpausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(UNPAUSED_EVENT, transactionReceipt);\n ArrayList<UnpausedEventResponse> responses = new ArrayList<UnpausedEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n UnpausedEventResponse typedResponse = new UnpausedEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.account = (String) eventValues.getNonIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "@Override\n\tpublic ArrayList<Responsible> getResponsibles() {\n\t\treturn new ArrayList<Responsible>();\n\t}", "public List<AttendanceRecord> getMyAttendance(SystemAccount user, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getStaffId().equalsIgnoreCase(user.getStaff().getStaffId()) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "public List<String> getNotExportedSearchableFields() {\n return Collections.unmodifiableList(notExportedSearchableFields);\n }", "@Override\n\tpublic List<User> getFollowers() throws Exception {\n\t\treturn null;\n\t}", "public void unassignedMembers() {\n \n unassignedMembers.clear();\n PersistenceManager pm = PMF.get().getPersistenceManager();\n Iterator iter = mMemberCurrentLocation.entrySet().iterator();\n while (iter.hasNext()) {\n Entry<Long, Tracking> pairs = (Entry<Long, Tracking>)iter.next();\n if (pairs.getValue().getresponseType().equalsIgnoreCase(\"manuallyAddMember\")) {\n Member m = pm.getObjectById(Member.class, pairs.getKey());\n unassignedMembers.add(m); \n iter.remove();\n }\n }\n System.out.println(\"unassigned members qty: \" + unassignedMembers.size());\n System.out.println(\"Exit: unassignedMembers\");\n \n }", "@Override\n\tpublic List<Cours> listOfNonAssignedCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours c where c.enseignant IS EMPTY\");\n\t\treturn q.getResultList();\n\t}", "@Override\n\tpublic List<DemandeAcquisition> getDemandeAcquisitionNonTraite() {\n\t\treturn demandeacquisitiondao.getDemandeAcquisitionNonTraite();\n\t}", "@Override\n public List<EmailNotification> list() {\n DetachedCriteria criteria = DetachedCriteria.forClass(EmailNotification.class);\n List<EmailNotification> notifications = hibernateTemplate.findByCriteria(criteria);\n return notifications;\n }", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "List<User> getUnapprovedUserList(UserVo userVo);", "Response<List<Achievement>> getEarnedAchievements(String username, String uniqueIdentifier);", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tprivate List<Notification> getAllNotifications() {\n\t\tList<Notification> Notifications = noticontroller.getAllNotifications();\n\n\t\tif (Notifications == null) {\n\t\t\tthrow new NotFoundException();\n\t\t}\n\t\treturn Notifications;\n\t}", "public List<ExoSocialActivity> getUserActivities(Identity owner) throws ActivityStorageException;", "public ArrayList<OverdueNotice> createOverdueNotices(){\n ArrayList<OverdueNotice> overdueList = new ArrayList<OverdueNotice>();\n Set<String> patronNames = this.patron.keySet();\n for (String patronName : patronNames){\n ArrayList<Book> books = this.patron.get(patronName).getBooks();\n for (Book book : books){\n if (book.getDueDate() == (this.calendar.getDate()-1)){\n overdueList.add(new OverdueNotice(this.patron.get(patronName),this.calendar.getDate()));\n break;\n }\n }\n }\n return overdueList;\n }", "public String showAnnouncements() {\n String output = \"\";\n\n // Get\n List<Models.Announcement> fromInstitution = em.createNativeQuery(\"select a.* from announcement a, institution i, institutionparticipant ipa, participant p where a.institutioncode = i.institutioncode and i.institutioncode = ipa.institutioncode and ipa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromProgramme = em.createNativeQuery(\"select a.* from announcement a, programme pg, programmeparticipant ppa, participant p where a.programmecode = pg.programmecode and pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromCourse = em.createNativeQuery(\"select a.* from announcement a, course c, courseparticipant cpa, participant p where a.coursecode = c.coursecode and c.coursecode = cpa.coursecode and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromClass = em.createNativeQuery(\"select a.* from announcement a, class c, classparticipant cpa, participant p where a.classid = c.classid and c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n\n return displayAnnouncements(fromInstitution, fromProgramme, fromCourse, fromClass);\n }", "public ArrayList<String> returnUrgentItems() {\n ArrayList<String> urgentItemNames = new ArrayList<>();\n\n if (toDoList.getItems().isEmpty()) {\n urgentItemNames.add(\"No More Tasks! Yay!!\");\n }\n\n int i = 1;\n for (Item item : toDoList.getItems()) {\n if (Integer.parseInt(item.getDaysBeforeDue()) <= 1) {\n Categories c = item.getCategory();\n urgentItemNames.add(i + \". \" + item.getTitle() + \" due in \" + item.getDaysBeforeDue() + \" days, \" + c);\n i++;\n }\n }\n\n return urgentItemNames;\n }", "void unsetPublicationList();", "@Override\n\tpublic List<Notification> getNotificationList(int idUser) {\n\t\treturn dao.getNotificationList(idUser);\n\t}", "public ArrayList<OrderBillPO> getUnmarkingBills() {\n\t\tArrayList<OrderBillPO> result;\n\t\ttry {\n\t\t\tresult=si.getUnjudged();\n\t\t\treturn result;\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "public static int getAnnouncementsCount()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsCount();\n }", "public List<ExoSocialActivity> getNewerUserActivities(Identity owner, Long sinceTime, int limit);", "ObservableList<Link> getUnfilteredLinkList();", "@Override\n\tpublic List<Session> getUnassignedSession() {\n\t\treturn null;\n\t}" ]
[ "0.587486", "0.58212316", "0.5473642", "0.54656935", "0.5412704", "0.5354357", "0.53471893", "0.5328335", "0.5266825", "0.52289975", "0.52259856", "0.5223571", "0.5214011", "0.52108", "0.5198884", "0.51750946", "0.51577556", "0.515291", "0.5147759", "0.5141855", "0.5133791", "0.51199543", "0.5110085", "0.510437", "0.50999665", "0.5098655", "0.50879794", "0.508607", "0.5079421", "0.5067857", "0.5055386", "0.5027954", "0.5016039", "0.50153273", "0.5013099", "0.50101393", "0.5009675", "0.5007551", "0.49999765", "0.4996989", "0.49894202", "0.49839285", "0.49781805", "0.49604332", "0.49564654", "0.49557498", "0.49360263", "0.4927472", "0.49097964", "0.48996583", "0.48955426", "0.48877558", "0.48726404", "0.4870736", "0.48578572", "0.48571998", "0.4848409", "0.48476872", "0.4845715", "0.48453006", "0.48446223", "0.48410413", "0.4835757", "0.48330337", "0.48327896", "0.48253763", "0.4823173", "0.4817179", "0.48139578", "0.48131004", "0.4813089", "0.47957262", "0.47950336", "0.4791608", "0.47910306", "0.47909278", "0.47845808", "0.47807908", "0.4778023", "0.4773986", "0.47713286", "0.4764651", "0.47646064", "0.4764249", "0.47602898", "0.47540462", "0.47536075", "0.47502682", "0.47488534", "0.47480765", "0.47452396", "0.47448465", "0.47393283", "0.4737568", "0.47324237", "0.4728636", "0.47281033", "0.4727705", "0.47247177", "0.47169104" ]
0.6214845
0
Get the adminaccessible announcement control page
@RequestMapping(value = "/admin") public String getControlCentreAdminPage(final Model model) { List<Announcement> announcements = announcementService.getAllAnnouncements(); logger.trace("Announcements list size: " + announcements.size()); model.addAttribute("announcements", announcements); return ANNOUNCEMENT_ADMIN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAdmin();", "@GET\n\t@RequestMapping(value = \"/admin\")\n\t@Secured(value = { \"ROLE_ADMIN\" })\n\tpublic String openAdminMainPage() {\n\t\t\n\t\treturn \"admin/admin\";\n\t}", "public static String getAdminStatusPage (String accountName, String permaName)\n {\n return BASE + \"admin/user_status.wm?username=\" +\n URL.encodeComponent(permaName == null ? accountName : permaName);\n }", "protected APPAAnnounce() {\n\n url = AppaLounge.BASE_URL + \"announcements/2/\";\n\n }", "@Override\r\n\tpublic String direct() {\n\t\treturn ADM + \"home-contents\";\r\n\t}", "@RequestMapping(value=\"/admin\", method=RequestMethod.GET)\r\n\tpublic String getAdminPage(Model model) {\r\n\t\treturn \"admin\";\r\n\t}", "boolean isAdminDirect() {\n return isAdministrator;\n }", "@RequestMapping(value = \"/adminpanelpage\", method = RequestMethod.GET)\n public String displayAdminPanelPage(Model model) {\n generateNavBar(model);\n return \"adminpanelpage\";\n }", "public static void ShowAdminPreferences() {\n if (Controller.permission.GetUserPermission(\"EditUser\")) {\n ToggleVisibility(UsersPage.adminWindow);\n } else {\n DialogWindow.NoAccessTo(\"Admin options\");\n }\n }", "@Test(priority=1)\n public void adminPage(){\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/nav/a[5]\")).click();\n\t}", "@RequestMapping(value = \"/admin/privatePage\", method = RequestMethod.GET)\n\tpublic String privatePage() {\n\t\treturn \"privatePage\";\n\t}", "public PanelAdminButton getPanelAdminButton() {\n\t\tif(panelAdminButton==null){\n\t\t\tpanelAdminButton = new PanelAdminButton();\n\t\t}\n\t\treturn panelAdminButton;\n\t}", "public PL getAdministerAt() { \r\n\t\tPL retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public PanelAdminConfig getAdminConfig(){\n return adminConfig;\n }", "public java.lang.String getAdministrator () {\n\t\treturn administrator;\n\t}", "@RequestMapping(value = \"/admin\", method = RequestMethod.GET)\n\tpublic ModelAndView adminPage() {\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel.addObject(\"categories\", myService.listGroups());\n\t\tmodel.addObject(\"products\", myService.displayProducts());\n\t\tmodel.setViewName(\"adminmy\");\n\t\treturn model;\n\t}", "public URI getAdminURL() {\n return adminURL;\n }", "AdministrativeControl administrativeControl();", "AdministrativeControl administrativeControl();", "java.lang.String getNewAdmin();", "public PanelInicioAdmin getInicioAdmin(){\n return inicioAdmin;\n }", "public String getIsAdmin() {\n return isAdmin;\n }", "public boolean getIsAdmin() {\n return isAdmin;\n }", "public boolean isAdmin();", "public String getPermissionAdmin() {\n return permissionAdmin;\n }", "static public int getADMIN() {\n return 1;\n }", "public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n admin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getNombreAdministrador() {\n return nombreAdministrador;\n }", "public int getAdmin() {\n return admin;\n }", "boolean isAdmin();", "@java.lang.Override\n public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n admin_ = s;\n return s;\n }\n }", "@RequestMapping(\"/showForm\")\n\t\tpublic String displayDetails(){\n\t\t\treturn \"mngt-page\";\n\t\t}", "public String getAnnouncement();", "@Test\n\tpublic void navigateToAdminPage() throws InterruptedException\n\t{\n\t\tdashboardPage.clickOnDropdownOptionAdmin();\n\t\tThread.sleep(5000);\n\t\t/*\n\t\t * Sleep because selenium does not wait until the webpage is loaded and URL is changed,\n\t\t * Instead it fetches the URL as soon as the command is hit.\n\t\t */\n\t\tString actualURL = commonUtilities.verifyURLMethod();\n\t\tAssert.assertEquals(actualURL, ReadPropertiesFile.getPropertyValue(\"reportsPageUrl\"), \"Validating Admin Page URL\");\n\t}", "public void AdminLink(){\n\t\tAdminLink.click();\n\t}", "public VanishAnnounceManipulator getAnnounceManipulator() {\n return this.announceManipulator;\n }", "@Override\r\n\tpublic Map<String, Action> getAdminActons() {\n\t\treturn null;\r\n\t}", "@RequestMapping(value=\"admin\", method=RequestMethod.GET)\n\tpublic ModelAndView getPageAdmin(ModelAndView model) throws IOException{\n\t\tModelAndView model2 = new ModelAndView();\n\t\tmodel2.setViewName(\"pagina_usuario_main\");\n\t\t\n\t\treturn model2;\n\t}", "public boolean isIsAdmin() {\r\n return isAdmin;\r\n }", "public boolean isAdmin()\n {\n return admin;\n }", "public boolean isAdmin()\n {\n return admin;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminName() {\n return adminName;\n }", "@RequestMapping(value = \"/admin\", method = RequestMethod.GET)\n public ModelAndView adminPage() {\n logger.info(\"Admin GET request\");\n\n String login = authorizationUtils.getCurrentUserLogin();\n String message = MessageFormat.format(\"User login: {0}\", login);\n logger.info(message);\n\n ModelAndView model = new ModelAndView();\n model.addObject(\"search\", new SearchDto());\n model.setViewName(\"admin\");\n return model;\n }", "@RequestMapping(value=\"/admin\" , method= RequestMethod.GET)\n\tpublic String adminPage(ModelMap model) { \n\t\t\n\t\tmodel.addAttribute(\"user\",getUserData());\n\t\treturn\"admin\";\n\t}", "AdminPreference getDefaultAdminPreference();", "public AdminEAO getAdminEAO()\n {\n return adminEAO;\n }", "public Integer getIsadmin() {\r\n return isadmin;\r\n }", "public boolean isAdmin() {\r\n return admin;\r\n }", "public AssignmentPage angelInstructorAssignmentPage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelInstructorAssignmentPage\", driver);\r\n\t\tswitchFrameToContentFrame();\r\n\t\treturn PageFactory.initElements(driver, AssignmentPage.class);\r\n\t}", "public void clickChannelsAdminLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin\");\r\n\t\tUIActions.click(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin\");\r\n\t\t\r\n\t\t// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Admin Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "public String aktif() {\n performAktif();\n //recreatePagination();\n //recreateModel();\n return \"ListAdmin\";\n }", "public PanelCenterAdmin getPanelCenterAdmin() {\n\t\tif(panelCenterAdmin==null){\n\t\t\tpanelCenterAdmin = new PanelCenterAdmin();\n\t\t}\n\t\treturn panelCenterAdmin;\n\t}", "public String getAdminname() {\n return adminname;\n }", "public DashBoardPage NavigateToMittICA()\n{\n\tif(Action.IsVisible(Master_Guest_Mitt_ICA_Link))\n\tAction.Click(Master_Guest_Mitt_ICA_Link);\n\telse\n\t\tAction.Click(Master_SignIN_Mitt_ICA_Link);\n\treturn this;\n}", "@RequestMapping(value = \"/{announcementID}/details\", method = RequestMethod.GET)\n @PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n public String getAnnouncementDetailsPage(@PathVariable long announcementID, Model model) {\n Announcement announcement = announcementService.read(announcementID);\n\n long numberOfReads = announcementService.countReadsForOneAnnouncement(announcement);\n long totalUsers = userService.count();\n\n logger.trace(\"Announcement \" + announcement.getId() + \": \" +\n announcement.getMessage());\n\n model.addAttribute(\"announcement\", announcement);\n model.addAttribute(\"numReads\", numberOfReads);\n model.addAttribute(\"numTotal\", totalUsers);\n\n return ANNOUNCEMENT_DETAILS;\n }", "public String getAdminid() {\r\n return adminid;\r\n }", "@Override\r\n\tpublic boolean getUpdaAdmin(Admins ad) {\n\t\treturn adi.updaAdmin(ad);\r\n\t}", "@GET\n @Path(\"/admin\")\n public String isAdmin() {\n return ResponseUtil.SendSuccess(response, \"\\\"isAdmin\\\":\\\"\" + SessionUtil.isAdmin(request) + \"\\\"\");\n }", "public Integer getAdminStatus() {\n return adminStatus;\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n if (pageBuilder_ == null) {\n return page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }", "public boolean isAdmin() {\n return admin;\n }", "AdminConsolePageType createAdminConsolePageType();", "public String getMainPage() {\n return (String)getAttributeInternal(MAINPAGE);\n }", "String getOssHomepage();", "public boolean asAdmin() {\n\t\treturn asAdmin;\n\t}", "public String getAdminCode(){\n return this.adminCode;\n }", "public boolean getAdminPermission(boolean isAdmin)\n {\n return isAdmin;\n }", "@RequestMapping(value = \"boardingDetailsPage\", method = RequestMethod.GET)\r\n\tpublic String showBoardingDetailsPage() {\r\n\t\treturn WEB_PASSENGER_BOARDING_DETAILS;\r\n\t}", "public java.lang.String getNewAdmin() {\n java.lang.Object ref = newAdmin_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n newAdmin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public PL getRxa27_AdministerAt() { \r\n\t\tPL retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public AdminPage() {\n initComponents();\n }", "public boolean asAdmin() {\n\t\t\treturn asAdmin;\n\t\t}", "public static String getAccountStatusPage ()\n {\n return BASE + \"status.wm?initUsername=\" + URL.encodeComponent(CShell.creds.accountName);\n }", "public Boolean getHasAdminSeen() {\n return hasAdminSeen;\n }", "AdminPreference getAdminPreference(AuthenticationToken admin);", "public void verifyChannelsAdminLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin Link\");\r\n\t\t\t\t\r\n\t\t// Assertion : Check Link is present on page\r\n\t\tString linkText=dataController.getPageDataElements(fileName, \"Channels Admin Link\", \"LinkText\");\r\n\t\tSystem.out.println(linkText);\r\n\t\tUIActions.waitForLinkText(linkText,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "protected String getAdminAccessPageUrl(long userId) {\n return new StringBuilder(getBaseUrl())\n .append(reverseRouter.with(EditAccessController::get)\n .pathParam(\"userId\", userId))\n .toString();\n }", "public String getAdminName() {\n\t\treturn adminName;\n\t}", "public String getAdminId() {\n return adminId;\n }", "public String getAdminId() {\n return adminId;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getAdminBytes() {\n java.lang.Object ref = admin_;\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 admin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getHTMLPage() {\r\n String s = \"<html><body>\" + MySystem.lineBreak;\r\n s += \"<h1>Room Control module</h1>\" + MySystem.lineBreak;\r\n s += \"<p>This module controls any on/off-node connected to ARNE bus.</p>\" + MySystem.lineBreak;\r\n s += \"<h2>Controls:</h2>\";\r\n s += \"<center><p><table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\">\";\r\n Iterator it = roomObjects.keySet().iterator();\r\n while (it.hasNext()) {\r\n GenRoomObject o = (GenRoomObject)roomObjects.get(it.next());\r\n if (o!=null) {\r\n if (o.displHTML) { //if display this object (configured in modGenRoomControl.xml)\r\n s += \"<tr><td>\" + o.name + \"</td><td>[<a href=\\\"toggle:\" + o.name + \"\\\">toggle</a>]</td><td>[<a href=\\\"on:\" + o.name + \"\\\">ON</a>]</td><td>[<a href=\\\"off:\" + o.name + \"\\\">OFF</a>]</td></tr></tr>\";\r\n }\r\n }\r\n }\r\n s += \"</table></center>\";\r\n s += \"</body></html>\";\r\n return s;\r\n }", "public Long getProposalAdminDetailId() {\n return proposalAdminDetailId;\n }", "public com.google.protobuf.ByteString\n getAdminBytes() {\n java.lang.Object ref = admin_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n admin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public CWE getAdministeredDosageForm() { \r\n\t\tCWE retVal = this.getTypedField(8, 0);\r\n\t\treturn retVal;\r\n }", "public void verDatosAdministrador()\r\n\t{\r\n\t\tcrearadmin = new CrearAdministrador(this);\r\n\t\tcrearadmin.setVisible(true);\r\n\t}", "public boolean publicAdmin() {\n try {\n return getConfig().getPublicAdmin();\n } catch (Throwable t) {\n t.printStackTrace();\n return false;\n }\n }", "@Override\r\n\tpublic List<Admin> getAdminDetails() {\n\t\tList<Admin> admin =dao.getAdminDetails();\r\n return admin;\r\n\t}", "@Override\r\n\tpublic boolean getDeleAdmin(int A_id) {\n\t\treturn adi.deleAdmin(A_id);\r\n\t}", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper() {\n if (pageHelperBuilder_ == null) {\n return pageHelper_;\n } else {\n return pageHelperBuilder_.getMessage();\n }\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper() {\n if (pageHelperBuilder_ == null) {\n return pageHelper_;\n } else {\n return pageHelperBuilder_.getMessage();\n }\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper() {\n if (pageHelperBuilder_ == null) {\n return pageHelper_;\n } else {\n return pageHelperBuilder_.getMessage();\n }\n }", "@GetMapping(\"/admin/home\")\n\tpublic ModelAndView goToAdminHome(){\n\t\t\n\t\tModelAndView modelAndView = new ModelAndView(\"admin/home\");\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tUser user = userService.findUserByEmail(auth.getName());\n\t\t\n\t\tmodelAndView.addObject(\"userName\", \"Welcome \" + user.getFirstname() + \" \" + user.getLastname() + \" (\" + user.getEmail() + \")\");\n\t\tmodelAndView.addObject(\"adminMessage\",\"Content Available Only for Users with Admin Role\");\n\t\t\n\t\treturn modelAndView;\n\t}", "String pageDetails();", "@Override\n\tpublic List<MenuItem> getMenuItemListAdmin() {\n\t\treturn this.menuItemList ;\n\t}", "public String getActivationMenu();", "@ZAttr(id=674)\n public String getHelpAdminURL() {\n return getAttr(Provisioning.A_zimbraHelpAdminURL, null);\n }", "public Boolean isModoAdmin() {\r\n\t\treturn this.modoAdmin;\r\n\t}", "PageAgent getPage();" ]
[ "0.6088578", "0.6079797", "0.593089", "0.57542086", "0.57291025", "0.568706", "0.5667676", "0.5651848", "0.55834526", "0.55610096", "0.5558652", "0.55577743", "0.5541921", "0.55410963", "0.5529184", "0.55277336", "0.55055535", "0.54994977", "0.54994977", "0.5497888", "0.5455162", "0.5431508", "0.54163754", "0.5411965", "0.5407687", "0.540269", "0.5400246", "0.5389292", "0.53871554", "0.5381961", "0.53622687", "0.5345135", "0.5334914", "0.5327009", "0.5323949", "0.530733", "0.5303941", "0.5277804", "0.527527", "0.52609634", "0.52609634", "0.5246092", "0.5246092", "0.5243063", "0.5237748", "0.5231879", "0.5231508", "0.52232903", "0.5208365", "0.52077067", "0.51989454", "0.51750827", "0.51688683", "0.51662296", "0.5163552", "0.5160525", "0.5150329", "0.5148641", "0.5145738", "0.5145383", "0.5140495", "0.51386094", "0.51304626", "0.5123007", "0.5122687", "0.5116563", "0.5115228", "0.5091765", "0.5090929", "0.5089113", "0.5081601", "0.5080898", "0.50666547", "0.50597", "0.50567937", "0.5046702", "0.50421995", "0.5039528", "0.5037432", "0.5029645", "0.5029645", "0.5016939", "0.5016266", "0.50119627", "0.5004483", "0.49799883", "0.49775335", "0.49744633", "0.49615967", "0.49565512", "0.49505958", "0.49505958", "0.49505958", "0.49426344", "0.49400473", "0.4937241", "0.49371353", "0.4936313", "0.49292576", "0.49263778" ]
0.7011395
0
Updates an existing announcement object in the database
@RequestMapping(value = "/{announcementID}/details", method = RequestMethod.POST) @PreAuthorize("hasRole('ROLE_ADMIN')") public String submitUpdatedAnnouncement(@PathVariable long announcementID, @RequestParam String title, @RequestParam(required = false) String message, @RequestParam(defaultValue = "false") boolean priority, Model model) { Announcement announcement = announcementService.read(announcementID); announcement.setTitle(title); announcement.setMessage(message); announcement.setPriority(priority); try { announcementService.update(announcement); } catch (Exception e) { model.addAttribute("errors", "Announcement was not updated successfully"); logger.error("Announcement could not be updated or saved to the database.", e.getMessage()); } return "redirect:/admin/announcements"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateByPrimaryKey(AnnouncementDO record);", "public static com.gleo.plugins.hexiagon.model.Announcement updateAnnouncement(\n com.gleo.plugins.hexiagon.model.Announcement announcement)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().updateAnnouncement(announcement);\n }", "int updateByPrimaryKeySelective(AnnouncementDO record);", "@Override\n\tpublic void saveAnnounce(Announcement a) {\n\t\t\n\t}", "public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "public void update(Expence expence)\r\n/* 169: */ {\r\n/* 170:174 */ this.expenceDao.update(expence);\r\n/* 171: */ }", "public void updateAgenda(Agenda agenda){\n Session sessao = HibernateUtil.getSessionFactory().openSession();\n Transaction transaction = sessao.beginTransaction();\n sessao.update(agenda);\n transaction.commit();\n sessao.close();\n }", "int updateByPrimaryKeyWithBLOBs(AnnouncementDO record);", "void updateEntry(BlogEntry entry) throws DAOException;", "int updateByPrimaryKey(News record);", "public void setAnnouncement(String announcement);", "int updateByPrimaryKey(NewsInfo record);", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\r\n\tpublic int updateAdvertisement(AdvertisementDto dto) {\n\t\treturn session.update(\"kdc.advertisement.updateAdvertisement\", dto);\r\n\t}", "E update(E entiry);", "@Override\r\n\t@RequestMapping(value=\"/edit\",method=RequestMethod.POST)\r\n\tpublic Message update(MeetingDetail meetingDetail) {\n\t\treturn new Message(dao.update(meetingDetail));\r\n\t}", "public void update(RelacionConceptoEmbalajePk pk, RelacionConceptoEmbalaje dto) throws RelacionConceptoEmbalajeDaoException;", "void update(EmployeeDetail detail) throws DBException;", "int updateByPrimaryKey(AutoAssessDetail record);", "int updateByPrimaryKey(Article record);", "public void update() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.update(this); // routine now uses leaseDao to get CampLease class\r\n\t}", "private void updateAssessment() {\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n //since we're updating, add the assessmentId to the assessment object\n assessment.setAssessmentId(thisAssessmentId);\n\n\n //add new assessment\n addEditAssessmentViewModel.update(assessment);\n finish();\n }", "int updateByPrimaryKey(WxNews record);", "int updateByPrimaryKey(MemberAdvisoryComment record);", "@Override\r\n\tpublic void update(Botany botany) {\n\t\tdao.update(botany);\r\n\t}", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }", "E update(E entity);", "E update(E entity);", "int updateByPrimaryKey(ExamRoom record);", "int updateByPrimaryKey(PmPost record);", "public void updateByEntity(Paciente paciente) {\n\t\n}", "@Override\n\tpublic void update(Article article) throws Exception {\n\t\t\n\t}", "private static void LessonDAOUpdate() {\n PersonDAO personDAO = new PersonDAOImpl();\n\n Person person = personDAO.getPersonById(7);\n person.setFirstName(\"Teddy\");\n\n if(personDAO.updatePerson(person)) {\n System.out.println(\"Person Update Success!\");\n } else {\n System.out.println(\"Person Update Fail!\");\n }\n }", "int updateByPrimaryKey(Notice record);", "Patient update(Patient patient);", "@Override\n\tpublic void update(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.update(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "public void updatePost(Long id, BlogPost post);", "boolean updateAuthor(Author author) throws PersistenceException, IllegalArgumentException;", "int updateByPrimaryKey(AuthorDO record);", "@Override\r\n\tpublic void update(AssesmentQuestion assesmentQuestion) {\r\n\r\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tTransaction trans = session.beginTransaction();\r\n\r\n\t\ttry {\r\n\t\t\tsession.update(assesmentQuestion);\r\n\t\t\ttrans.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void update(Object obj) throws DAOException {\n\r\n\t}", "int updateByPrimaryKey(PublicDoctorNotice record);", "@Override\n public DiscussionFollower update(DiscussionFollower updatedDiscussionFollower) {\n return discussionFollowerRepository.save(updatedDiscussionFollower);\n }", "@Override\r\n public void update(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement =\r\n \"UPDATE appointments SET \" +\r\n \"Title='\" + a.getTitle() +\r\n \"', Description ='\" + a.getDescription() +\r\n \"', Location ='\" + a.getLocation() +\r\n \"', Type='\" + a.getType() +\r\n \"', Start='\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', End= '\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', Customer_ID =\" + a.getCustomer().getCustomerId() +\r\n \", User_ID=\" + a.getUser().getId() +\r\n \", Contact_ID=\" + a.getContact().getId() +\r\n \" WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "AdPartner updateAdPartner(AdPartner adPartner);", "public void update(NominaPuestoPk pk, NominaPuesto dto) throws NominaPuestoDaoException;", "@Override\n public Paciente update(Paciente paciente) {\n return this.pacienteRepository.save(paciente);\n }", "public void update(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "int updateByPrimaryKey(NewsFile record);", "int updateByPrimaryKey(TbaDeliveryinfo record);", "int updateByPrimaryKey(Depart record);", "public void update(Subject e) {\n\t\tsubjectdao.update(e);\n\t}", "public void update(Employee employee){\n employeeRepository.save(employee);\n }", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "public PtJJdwcy update(PtJJdwcy entity);", "@Override\n public void update(Object object, Object id) throws DAOException {\n\n }", "int updateByPrimaryKey(ReEducation record);", "@Override\n\t@Transactional\n\tpublic void createAndPublishAnnouncement(Announcement announcement)\n\t\t\tthrows BusinessException {\n\t\ttry {\n\t\t\tcommunicationDAOService.createAnnouncement(announcement);\n\t\t\tcommunicationDAOService.publishAnnouncement(announcement.getId(), new Date(),announcement.getCreatedBy(),CommunicationStatusType.PUBLISHED.getId());\n\t\t} catch (Exception e) {\n\t\t\tthrow new BusinessException(\"Exception occured while creating announcement\", e.getMessage(),e);\n\t\t}\n\t}", "int updateByPrimaryKey(KnowledgeComment record);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "public void updateEntity();", "int updateByPrimaryKey(Enfermedad record);", "int updateByPrimaryKey(EcsAd record);", "public void update(BibliographicDetails bibDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n session.update(bibDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "int updateByPrimaryKey(ArticleTag record);", "public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;", "int updateByPrimaryKey(CmsActivity record);", "int updateByPrimaryKey(ComplainNoteDO record);", "@Update({\n \"update NEWS\",\n \"set TITLE = #{title,jdbcType=VARCHAR},\",\n \"BODY = #{body,jdbcType=VARCHAR},\",\n \"IMG_URL = #{imgUrl,jdbcType=VARCHAR},\",\n \"URL = #{url,jdbcType=VARCHAR},\",\n \"CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(News record);", "@Override\r\n public void update(Answer entity) {\n\r\n }", "public void updateAcc(DocumentDetails bibDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n session.update(bibDetails);\n tx.commit();\n } catch (RuntimeException e) {\n\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "int updateByPrimaryKey(Ad record);", "int updateByPrimaryKey(Notifiction record);", "E update(ID id, E entity, RequestContext context);", "@Override\r\npublic int update(Detalle_pedido d) {\n\treturn detalle_pedidoDao.update(d);\r\n}", "@Override\r\n\tpublic void updateAd(EP par) {\n\t\tsession.update(par);//修改 \r\n\t\ttr.commit();//提交事务\r\n\t}", "int updateByPrimaryKey(Subject record);", "@Override\n\tpublic void update(Entry entry) {\n\t\tentryDAO.save(entry);\n\t}", "void update(Student entity);", "@Test\r\n public void testUpdate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(recordDao.findActivityRecord(record.getId()));\r\n\r\n record.setDistance(15);\r\n record.setTime(20L);\r\n recordDao.update(record);\r\n\r\n ActivityRecord recordFound = recordDao.findActivityRecord(record.getId());\r\n assertEquals(recordFound.getDistance(), new Integer(15));\r\n assertEquals(recordFound.getTime(), new Long(20));\r\n }", "public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}", "int updateByPrimaryKey(GirlInfo record);", "void update(Serializable objectId);", "@Override\r\n\tpublic int update(Article article) {\n\t\treturn dao.update(article);\r\n\t}", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "int updateByPrimaryKey(Organization record);", "public void updateInsurance(Insurance insurance) throws DataAccessException;", "int updateByPrimaryKey(Abum record);", "int updateByPrimaryKey(Forumpost record);", "public void update(RutaPk pk, Ruta dto) throws RutaDaoException;", "@Override\n\t@Transactional\n\tpublic void update(MAgama data) {\n\t\tagamaDAO.AgamaUpdate(data);\n\t}", "public void testUpdateExistingAuthor() {\r\n //given\r\n /*System.out.println(\"updateExistingAuthor\");\r\n int authorID = 31;\r\n String newDescription = \"\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n boolean expResult = true;\r\n \r\n //when \r\n boolean result = instance.updateExistingAuthor(authorID, newDescription);\r\n \r\n //then\r\n assertEquals(expResult, result);*/ \r\n }", "public Message updateMessage(Message message){\n Message existeMessage= repo.findById(message.getIdMessage()).orElse(null);\n existeMessage.setMessageText(message.getMessageText());\n return repo.save(existeMessage); \n }", "int updateByPrimaryKey(BusinessRepayment record);", "int updateByPrimaryKey(Tour record);", "int updateByPrimaryKey(Body record);", "int updateByPrimaryKeySelective(News record);", "int updateByPrimaryKey(CommunityInform record);", "int updateByPrimaryKey(Course record);", "int updateByPrimaryKey(Course record);" ]
[ "0.7350503", "0.6715107", "0.64898825", "0.63577026", "0.62602156", "0.6257281", "0.62123495", "0.61434567", "0.61324334", "0.61008996", "0.6094656", "0.6059865", "0.6044588", "0.603968", "0.60230505", "0.5993837", "0.59367716", "0.5911457", "0.59015703", "0.5873618", "0.5853938", "0.5822158", "0.5789153", "0.5787507", "0.5759795", "0.5745452", "0.5736515", "0.5736515", "0.57364637", "0.57294035", "0.5724841", "0.57073563", "0.5704293", "0.5702281", "0.57016045", "0.5671529", "0.56587905", "0.56447047", "0.5629587", "0.5626607", "0.5620704", "0.5604486", "0.5600287", "0.5596939", "0.55950665", "0.55886745", "0.5588588", "0.5584105", "0.55823445", "0.55789214", "0.55780256", "0.55775094", "0.55721706", "0.55710703", "0.5567794", "0.55666476", "0.5563922", "0.5563255", "0.55594134", "0.55502766", "0.5540708", "0.5530906", "0.5525925", "0.5525769", "0.55233663", "0.5513948", "0.55095184", "0.5499321", "0.5493796", "0.5492859", "0.5487978", "0.5482722", "0.54747516", "0.54741", "0.54731286", "0.5466701", "0.5464092", "0.5463446", "0.5463425", "0.54492897", "0.5448705", "0.5447705", "0.5445873", "0.5435534", "0.54318154", "0.54252917", "0.5422585", "0.5422134", "0.54193586", "0.54166615", "0.5415801", "0.5411529", "0.541026", "0.5400345", "0.53991956", "0.5393027", "0.5391444", "0.5385607", "0.5383154", "0.5383154" ]
0.6406182
3
Delete an announcement from the database
@RequestMapping(value = "/{announcementID}/delete") @PreAuthorize("hasRole('ROLE_ADMIN')") public String deleteAnnouncement(final Model model, @PathVariable long announcementID) { try { announcementService.delete(announcementID); } catch (Exception e) { model.addAttribute("errors", "Announcement could not be deleted"); logger.error(e.getMessage()); } return "redirect:/admin/announcements"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByPrimaryKey(Integer announceid);", "public static com.gleo.plugins.hexiagon.model.Announcement deleteAnnouncement(\n com.gleo.plugins.hexiagon.model.Announcement announcement)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().deleteAnnouncement(announcement);\n }", "public void deleteArticle(Article article);", "public void delete(RelacionConceptoEmbalajePk pk) throws RelacionConceptoEmbalajeDaoException;", "public void deleteAgenda(Agenda agenda){\n Session sessao = HibernateUtil.getSessionFactory().openSession();\n Transaction transactio = sessao.beginTransaction(); \n sessao.delete(agenda);\n transactio.commit();\n sessao.close();\n }", "@Test\n\tpublic void deleteAnnouncementTest() {\n\n\t\tSystem.out.println(\"-----Delete announcement test. Positive 0 to 2, Negative 3 to 5.\");\n\n\t\tfinal Object testingData[][] = {\n\t\t\t//Positives test cases\n\t\t\t{\n\t\t\t\t// Positivo 1: Admin deletes an inappropiate announcement\n\t\t\t\t\"P1\", \"admin\", \"rendezvous1\", \"announcement1-1\", null\n\t\t\t}, {\n\t\t\t\t//Positivo 2: Admin deletes announcement from other rendezvous\n\t\t\t\t\"P2\", \"admin\", \"rendezvous2\", \"announcement2-1\", null\n\t\t\t},\n\t\t\t//Negative test cases\n\t\t\t{\n\t\t\t\t// Negativo 1: Anonymous deletes user can create an user\n\t\t\t\t\"N1\", \"\", \"rendezvous1\", \"announcement1-1\", IllegalArgumentException.class\n\t\t\t}, {\n\t\t\t\t//Negativo 2: Admin deletes an inappropiate announcement that doesn't belong to rendezvous\n\t\t\t\t\"N2\", \"admin\", \"rendezvous1\", \"announcement2-1\", IllegalArgumentException.class\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateCreateUser(i, (String) testingData[i][0], //Nº Positive/Negative\n\t\t\t\t(String) testingData[i][1], //Username login\n\t\t\t\t(String) testingData[i][2], //Rendezvous Id\n\t\t\t\t(String) testingData[i][3], //Announcement Id\n\t\t\t\t(Class<?>) testingData[i][4]); //Exception class\n\t}", "int deleteByPrimaryKey(Long articleTagId);", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "public void delete(int id){\n \n SqlSession session = sqlSessionFactory.openSession();\n \n try {\n session.delete(\"Subject.delete\", id);\n } finally {\n session.commit();\n session.close();\n }\n System.out.println(\"delete(\"+id+\")\");\n\n }", "int deleteByPrimaryKey(String noticeId);", "public void delete(NominaPuestoPk pk) throws NominaPuestoDaoException;", "int deleteByPrimaryKey(Integer massageId);", "int deleteByPrimaryKey(Long authorId);", "@Override\n\tpublic void delete(int articleId) throws Exception {\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\"delete from article where article_id = ?\");\n\t\t\n\t\tjdbcTemplate.update(sql.toString(), articleId);\n\t}", "@Override\r\n public void delete(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement = \"DELETE FROM appointments WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void delete(SmsAgendaGrupoPk pk) throws SmsAgendaGrupoDaoException;", "@Test\n\tpublic void deleteTest() throws ParseException {\n\t\t\n\t\tSystem.out.println(\"-----Delete announcement by user test. Positive 0 to 1, Negative 2 to 4.\");\n\t\t\n\t\tObject testingData[][]= {\n\t\t\t\t//Positive cases\n\t\t\t\t{\"announcement1-1\", \"user1\", null},\n\t\t\t\t{\"announcement1-2\", \"user1\", null},\n\t\t\t\t\n\t\t\t\t//Negative cases\n\t\t\t\t//Without announcement\n\t\t\t\t{null, \"user1\", NullPointerException.class},\n\t\t\t\t//Without user\n\t\t\t\t{\"announcement2-1\", null, IllegalArgumentException.class},\n\t\t\t\t//With rendezvous not from the user\n\t\t\t\t{\"announcement2-1\", \"user1\", IllegalArgumentException.class}\n\t\t\t\t};\n\t\t\n\t\t\n\t\tfor (int i = 0; i< testingData.length; i++) {\n\t\t\ttemplateDeleteTest(\n\t\t\t\t\ti,\n\t\t\t\t\t(Integer) this.getEntityIdNullable((String) testingData[i][0]),\n\t\t\t\t\t(String) testingData[i][1],\n\t\t\t\t\t(Class<?>) testingData[i][2]\n\t\t\t\t\t);\n\t\t}\n\t}", "public static int delete(Subject e) {\n int status = 0;\n try {\n Statement stmt = MySQL.getConnection().createStatement();\n String sqlDelete = \"delete from subjects where subject_id=\" + e.getSubjectID();\n status = stmt.executeUpdate(sqlDelete);\n\n } catch (SQLException ex) {\n ex.getMessage();\n }\n return status;\n }", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "public void delete(RutaPk pk) throws RutaDaoException;", "@Delete({\n \"delete from NEWS\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer newsId);", "public void deleteAway(Away a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void delete(FaqPk pk) throws FaqDaoException;", "public void delete(IncomingReport incoming_report) throws DAOException;", "int deleteByPrimaryKey(String postId);", "public static com.gleo.plugins.hexiagon.model.Announcement deleteAnnouncement(\n long announcementId)\n throws com.liferay.portal.kernel.exception.PortalException,\n com.liferay.portal.kernel.exception.SystemException {\n return getService().deleteAnnouncement(announcementId);\n }", "public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "void deleteBlogPost(BlogPost blogPost);", "public void delete(Accomodation accomodation) {\n\t\ttry (Connection conn = newConnection(\"postgresql\", \"localhost\", \"5432\", \"Booking\", \"postgres\", \"portocaliu\");\n\t\t\t\tPreparedStatement stm = conn.prepareStatement(\"DELETE FROM accomodation\");) {\n\n\t\t\tstm.executeUpdate();\n\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t}", "int deleteByExample(AutoAssessDetailExample example);", "int deleteByPrimaryKey(Integer educationid);", "@Override\n\tpublic void deleteAgence(Agence a) {\n\t\t\n\t}", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "boolean deleteInvitation(int invitationId);", "int deleteByExample(ComplainNoteDOExample example);", "int deleteByExample(NewsInfoExample example);", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void delete(int singerId);", "int deleteByPrimaryKey(Integer deliveryid);", "int deleteByPrimaryKey(String detailId);", "public void delete() throws EntityPersistenceException {\n\n }", "boolean deleteAuthor(Author author) throws PersistenceException, IllegalArgumentException;", "@Override\n\tpublic void delete(NewsCollection findOne) {\n\t\tnewsCollectionMapper.delete(findOne);\n\t\t\n\t}", "public static void deleteReminder()\n {\n System.out.print(\"Select event number reminder to delete: \");\n String evNum = CheckInput.getString();\n try\n {\n PreparedStatement pstmt = null;\n String str = \"delete from reminder where eventnumber = ?\";\n pstmt = conn.prepareStatement(str);\n pstmt.setString(1,evNum);\n pstmt.executeUpdate();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }", "public void deleteArticle(View v)\n\t{\n\t\tSavedArticle article = (SavedArticle) v.getTag();\n\t\tdatasource.deleteArticle(article);\n\t\tadapter.delete(article);\n\t}", "public void delete(EvaluationsDegreePk pk) throws EvaluationsDegreeDaoException;", "public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }", "public void deleteById(String id);", "private void deleteNoteOnFirebaseManager(Note note){\n firebase.deleteNoteOnDB(note, unused -> {\n Toast.makeText(this, R.string.note_deletion_success, Toast.LENGTH_LONG).show();\n finish();\n }, e -> {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n });\n }", "public boolean delete(Reminder reminder);", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "@Override\n\tpublic void deleteArticle(int bId) {\n\t\tarticles.remove(bId);\n\t}", "@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "@Override\n public void delete(long id) {\n discussionFollowerRepository.deleteById(id);\n }", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}", "int deleteByPrimaryKey(String debtsId);", "@Delete({\n \"delete from mail_host\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "@Override\r\n\tpublic void deletePost(Post post) {\n\t\tgetHibernateTemplate().delete(post);\r\n\t}", "@Override\r\n\tpublic void deleteAd(int tid) {\n\t\tQuery query = (Query) session.createQuery(\"delete EP where pid=:id\");\r\n\t\tquery.setParameter(\"id\", tid);\r\n\t\tquery.executeUpdate();//删除\r\n\t\ttr.commit();//提交事务\r\n\t}", "public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "int deleteByExample(NewsExample example);", "int deleteByExample(EventDetail eventDetail);", "@Override\r\n\tpublic int deleteAdvertisement(int num) {\n\t\treturn session.delete(\"kdc.advertisement.deleteAdvertisement\", num);\r\n\t}", "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic void deleteSingle(Article article01) {\n\t\tarticleDao.deleteSingle(article01);\r\n\t}", "int deleteByPrimaryKey(Integer deliverid);", "public String deleteByExample(BsNewsExample example) {\n BEGIN();\n DELETE_FROM(\"bs_news\");\n applyWhere(example, false);\n return SQL();\n }", "public int Delbroker(Long broker_id, String firstname, String lastname,\r\n\t\tString address, String gender, String eMail, Long phone,\r\n\t\tString experience) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from broker where broker_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}", "void delete(int commentId);", "void delete(Exam exam);", "public void deleteEvent() {\r\n database.eventDao().delete(event.uid);\r\n finish();\r\n }", "int deleteByPrimaryKey(Short act_id);", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void delete_from_DB() throws CouponSiteMsg\n\t{\n\t\t\n\t}", "int deleteByPrimaryKey(Integer actPrizeId);", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "@Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);", "@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}", "public void deletePatientByPrimaryKey(long id) throws PatientExn;", "void deletePostById(int id);", "int deleteByPrimaryKey(Integer postid);", "int deleteByPrimaryKey(String repaymentId);", "void deleleNews(String id);", "public void deleteForum(Forum forum);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);" ]
[ "0.78967804", "0.69047904", "0.6816221", "0.673487", "0.66899014", "0.66479224", "0.66006076", "0.65651953", "0.6484799", "0.6461", "0.6411595", "0.639905", "0.63565695", "0.6337585", "0.6328471", "0.6319306", "0.6296224", "0.6293381", "0.627312", "0.6257821", "0.6257655", "0.625241", "0.62397075", "0.6219077", "0.6214136", "0.62139845", "0.62119305", "0.6209988", "0.6187624", "0.61720514", "0.6167315", "0.6166754", "0.6165753", "0.6155537", "0.61543787", "0.61443245", "0.61228067", "0.61219037", "0.61217207", "0.61209595", "0.61131465", "0.610265", "0.60952467", "0.60945064", "0.60888743", "0.6078356", "0.6075302", "0.6072877", "0.60673773", "0.6064166", "0.6060537", "0.6054148", "0.6053493", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6048396", "0.6042891", "0.60419154", "0.60415035", "0.6040886", "0.60386616", "0.6037568", "0.60268533", "0.6026439", "0.6023166", "0.6023073", "0.6021054", "0.6009118", "0.6006678", "0.60062885", "0.6006055", "0.59999293", "0.5999285", "0.5996014", "0.5992238", "0.5986376", "0.5985241", "0.5982803", "0.59816176", "0.5981405", "0.5977913", "0.59759796", "0.5971852", "0.5971554", "0.59715354", "0.59709054", "0.59683025", "0.5963146", "0.59609944", "0.59609944", "0.59609944", "0.59609944", "0.59609944" ]
0.6789013
3
Get the details page for a particular announcement
@RequestMapping(value = "/{announcementID}/details", method = RequestMethod.GET) @PreAuthorize("hasRole('ROLE_ADMIN')") public String getAnnouncementDetailsPage(@PathVariable long announcementID, Model model) { Announcement announcement = announcementService.read(announcementID); long numberOfReads = announcementService.countReadsForOneAnnouncement(announcement); long totalUsers = userService.count(); logger.trace("Announcement " + announcement.getId() + ": " + announcement.getMessage()); model.addAttribute("announcement", announcement); model.addAttribute("numReads", numberOfReads); model.addAttribute("numTotal", totalUsers); return ANNOUNCEMENT_DETAILS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAnnouncement();", "public static com.gleo.plugins.hexiagon.model.Announcement getAnnouncement(\n long announcementId)\n throws com.liferay.portal.kernel.exception.PortalException,\n com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncement(announcementId);\n }", "@GetMapping(\"/details\")\n public String goToPersonDetailsPage() {\n return PERSON_DETAILS.getPage();\n }", "String pageDetails();", "public WebElement bookingDetails() {\n\t\treturn findElement(repositoryParser, PAGE_NAME, \"bookingDetails\");\n\t}", "String getIssueDetail();", "@Override\r\n\t@RequestMapping(\"/list\")\r\n\tpublic ResultData getMeetingDetails(MeetingDetail meetingDetail) {\n\t\treturn new ResultData(dao.getMeetingDetails(meetingDetail),\r\n\t\t\t\tdao.getCount(meetingDetail), meetingDetail.getPageSize(), meetingDetail.getPageNo());\r\n\t}", "protected APPAAnnounce() {\n\n url = AppaLounge.BASE_URL + \"announcements/2/\";\n\n }", "public FilingDetailPage(URL url) {\n try (final WebClient webClient = new WebClient()) {\n filing13FPage = webClient.getPage(url);\n System.out.println(filing13FPage);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "PartitionDetailsPage getDetailsPage();", "public String getDetail() {\r\n return detail;\r\n }", "public String getDetail() {\r\n return detail;\r\n }", "public String getAmountOrderDetailPage()\n\t{\n\t\twaitForVisibility(amountOnDetailPage);\n\t\treturn amountOnDetailPage.getText();\n\t}", "public String getDetail()\n {\n return detail;\n }", "public String getDetailsData()\n {\n WebElement element = driver.findElement(By.xpath(\"//app-hero-detail[1]/div[1]/h2[1]\"));\n return element.getText();\n }", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "public String getDetail() {\n return detail;\n }", "public String getDetail() {\n return detail;\n }", "public String getDetail() {\n return detail;\n }", "public String getDetail() {\n return detail;\n }", "@Override\r\n\t@RequestMapping(value=\"/edit\",method=RequestMethod.GET)\r\n\tpublic MeetingDetail getMeetingDetailById(MeetingDetail meetingDetail) {\n\t\treturn dao.getMeetingDetailById(meetingDetail);\r\n\t}", "void displayDetails(String title, String description);", "Achievements getPostDetails();", "public abstract String showDetails();", "@Override\r\n\tpublic String detail() {\n\t\tSystem.out.println(\"detailView.\");\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\trequest.put(\"bean\", bean);\r\n\t\t\t\treturn \"detail\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"detail\";\r\n\t}", "public EventCandidatefordetailpageImpl getEventCandidatefordetailpage1() {\n return (EventCandidatefordetailpageImpl) findViewObject(\"EventCandidatefordetailpage1\");\n }", "public Announcement getAnnouncement(int row_id, int type) {\n\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ANNOUNCEMENT\n\t\t\t\t+ \" WHERE \" + KEY_TYPE + \"=\" + type + \" AND \" + KEY_ROW_ID\n\t\t\t\t+ \"=\" + row_id;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\t\tAnnouncement announcement = new Announcement();\n\t\tannouncement.row_id = Integer.parseInt(cursor.getString(0));\n\t\tannouncement.date = cursor.getString(1);\n\t\tannouncement.subject_relation_id = cursor.getString(2);\n\t\tannouncement.title = cursor.getString(4);\n\t\tannouncement.description = cursor.getString(5);\n\t\tannouncement.attachment = cursor.getString(6);\n\t\tannouncement.file_name = cursor.getString(7);\n\t\tcursor.close();\n\t\treturn announcement;\n\t}", "abstract String getDetails();", "Object getViewDetails();", "public TextView getDetailTextView() {\n return mDetail;\n }", "public String showAnnouncements() {\n String output = \"\";\n\n // Get\n List<Models.Announcement> fromInstitution = em.createNativeQuery(\"select a.* from announcement a, institution i, institutionparticipant ipa, participant p where a.institutioncode = i.institutioncode and i.institutioncode = ipa.institutioncode and ipa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromProgramme = em.createNativeQuery(\"select a.* from announcement a, programme pg, programmeparticipant ppa, participant p where a.programmecode = pg.programmecode and pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromCourse = em.createNativeQuery(\"select a.* from announcement a, course c, courseparticipant cpa, participant p where a.coursecode = c.coursecode and c.coursecode = cpa.coursecode and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromClass = em.createNativeQuery(\"select a.* from announcement a, class c, classparticipant cpa, participant p where a.classid = c.classid and c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n\n return displayAnnouncements(fromInstitution, fromProgramme, fromCourse, fromClass);\n }", "public String getReportDetail () {\n return reportDetail;\n }", "public String wantDetail();", "@RequestMapping(value = \"/detail/{runnerId}\")\n\tpublic ModelAndView ictDetail(@PathVariable int runnerId) throws SQLException, IOException {\n\t\tModelAndView mav = new ModelAndView(\"ict/detail\");\n\t\tmav.addObject(\"rc\", rs.findDetail(runnerId));\n\t\treturn mav;\n\t}", "public String getCartDetailonProductDetailPage()\n\t{\n\t\twaitForVisibility(cartDetailonProductDetailPage);\n\t\treturn cartDetailonProductDetailPage.getText();\n\t}", "java.lang.String getDetails();", "public ViewObjectImpl getEventDetails1() {\n return (ViewObjectImpl) findViewObject(\"EventDetails1\");\n }", "private IncomeDetail obtainIncomeDetail(Integer deliveryDetail) throws ManagerBeanException {\r\n\t\tIManagerBean incomeDetailBean = BeanManager.getManagerBean(IncomeDetail.class);\r\n\t\tCriteria criteria = new Criteria();\r\n\t\tcriteria.addEqualExpression(incomeDetailBean.getFieldName(IWarehouseAlias.INCOME_DETAIL_ID), deliveryDetail);\r\n\t\tIterator iter = incomeDetailBean.getList(criteria).iterator();\r\n\t\tif(iter.hasNext()){\r\n\t\t\treturn (IncomeDetail)iter.next();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getAnotherDetail();", "com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail getNewsindentifydetail(int index);", "String getRemediationDetail();", "public com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail getNewsindentifydetail(int index) {\n return newsindentifydetail_.get(index);\n }", "@RequestMapping(\"/agent/enrollment/details\")\n public ModelAndView getDetails(@RequestParam(\"id\") long ticketId,\n @RequestParam(value = \"print\", required = false) String isPrint) throws PortalServiceException {\n String signature = \"EnrollmentController#getDetails(long id)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\" }, new Object[] { ticketId });\n\n if (\"yes\".equals(isPrint)) {\n ModelAndView mv = new ModelAndView(\"redirect:/provider/enrollment/reviewPrint?id=\" + ticketId);\n return LogUtil.traceExit(getLog(), signature, mv);\n } else {\n ModelAndView mv = new ModelAndView(\"redirect:/provider/enrollment/view?id=\" + ticketId);\n return LogUtil.traceExit(getLog(), signature, mv);\n }\n }", "@RequestMapping(value=\"/detail/{articleId}\", method = RequestMethod.GET, produces=MediaType.APPLICATION_JSON_VALUE)\n\t@ResponseBody\n\tpublic ArticleEntity getDetail(@PathVariable(\"articleId\") int articleId) {\n\t\tArticleVo vo = serviceFactory.getArticleService().find(articleId);\n\t\treturn convertVo2Entity(vo);\n\t}", "Page getFollowingPage();", "public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@RequestMapping(value = \"/details/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Detail> getDetail(@PathVariable Long id) {\n log.debug(\"REST request to get Detail : {}\", id);\n Detail detail = detailRepository.findOne(id);\n return Optional.ofNullable(detail)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail getNewsindentifydetail(int index) {\n return newsindentifydetail_.get(index);\n }", "public void ClickAgentInformationPage() {\r\n\t\tagentinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Agent Information\\\" button on the Birthdays page\");\r\n\t}", "public String getDetails() {\n if(details == null)\n return \"\";\n else return details;\n }", "public String getDetails() {\n return details;\n }", "public String getDetails() {\n return this.details;\n }", "public ShardLinkDetails getDetails(int index) {\n if (index > count) {\n throw new ArrayIndexOutOfBoundsException(index);\n }\n return detailsArray[index];\n }", "public static com.gleo.plugins.hexiagon.model.Announcement createAnnouncement(\n long announcementId) {\n return getService().createAnnouncement(announcementId);\n }", "@RequestMapping(value = \"boardingDetailsPage\", method = RequestMethod.GET)\r\n\tpublic String showBoardingDetailsPage() {\r\n\t\treturn WEB_PASSENGER_BOARDING_DETAILS;\r\n\t}", "public synchronized WebElement productInfomationAccordionDetail() throws Exception {\n\n\t\treturn utils.findElementByLocator(driver, \"PDP_ProductInfomationAccordionDetail\",\n\t\t\t\t\"| PDP:Product Description Accordion Infomation div not present\");\n\t}", "public void getDetail(int id) {\n\t\t\n\t}", "public ViewObjectImpl getEventInterviewerDetails1() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetails1\");\n }", "@Override\n\tpublic Announcement getAnnounceByid(Map map) {\n\t\treturn null;\n\t}", "@Override\n public String getPresentationDetails(String task) {\n try {\n ITaskInstance taskInstance = dataAccessTosca.getTaskInstance(task);\n if (taskInstance != null) {\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", taskInstance.getPresentationName());\n presentation.put(\"subject\", taskInstance.getPresentationSubject());\n presentation.put(\"description\", taskInstance.getPresentationDescription());\n return presentation.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }", "@RequestMapping( value = \"/detail\", method = RequestMethod.GET )\n\t@Transactional\n\tpublic @ResponseBody Map<String, Object> getPublicationDetail( \n\t\t\t@RequestParam( value = \"id\", required = false ) final String id, \n\t\t\t@RequestParam( value = \"uri\", required = false ) final String uri,\n\t\t\t@RequestParam( value = \"section\", required = false ) String section,\n\t\t\tfinal HttpServletResponse response) throws InterruptedException, IOException, ExecutionException\n\t{\n\t\tif ( section == null || ( section != null && section.isEmpty() ) )\n\t\t\tsection = \"all\";\n\t\treturn publicationFeature.getPublicationDetail().getPublicationDetailById( id, section );\n\t}", "private String getDetail(final String dbBookId) {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBObject obj = coll.findOne(QueryCriteria.getById(dbBookId));\n\t\t\n\t\tif (obj != null) {\n\t\t\tobj.put(\"href\", Server.getBaseUrl() +\"/books/\" + dbBookId);\n\t\t\treplaceCollectionUuidsWObjRefs(obj);\n\t\t}\n\n\t\treturn obj != null ? obj.toString() : \"{'notFound':'\" + dbBookId + \"'}\";\n\t}", "public static synchronized NewsDetail getNewsDetail(String newsId) throws NewsException {\n NewsDetail newsDetail;\n try {\n newsDetail = newsdetailHttpService.getNewsDetail(newsId).execute().body();\n } catch (IOException e) {\n throw new NewsException(NewsException.NEWS_ERROR, String.format(NewsException.CONVERT_FROM_STRING_TO_JSON_MESSAGE, \"getNewsDetail\", SERVICE_NAME));\n }\n newsDetail.setFavorite(CacheService.getFavorite(newsId));\n newsDetail.separateImageUrlString();\n newsDetail.injectHyperlink();\n CacheService.storeNewsDetail(newsDetail);\n return newsDetail;\n }", "PageAgent getPage();", "@When(\"Hotels Details page has finished loading\")\n public void detailspage_i_am_on_details_page() {\n detailsPage = new HotelsDetailsPage(driver);\n detailsPage.check_page_title();\n }", "public void setAnnouncement(String announcement);", "public String viewDetail() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (currentUser.getStaffRoot() == null) {\n\t\t\t\treturn PAGE_NOT_PERMISSION;\n\t\t\t}\n\t/*\t\tprivate Boolean isDiscount;\n\t\t\tprivate Boolean isReward*/\n\t\t\tlstTypeCode = apParamMgr.getListApParam(ApParamType.PROMOTION, ActiveType.RUNNING);\n\t\t\tif (promotionId == null || promotionId == 0) {\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t\n\t\t\tpromotionProgram = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (promotionProgram == null) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\");\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t//get promotion newcus config\n\t\t\tpromotionNewcusConfig = promotionNewcusConfigMgr.getPromNewcusConfigByProgramId(promotionId);\n\t\t\t// kiem tra CTKM co het han hay khong\n\t\t\tDate sysDate = commonMgr.getSysDate();\n\t\t\tif (promotionProgram.getToDate() != null) {\n\t\t\t\t//flagStatusExpire\n\t\t\t\tif (DateUtil.compareDateWithoutTime(promotionProgram.getToDate(), sysDate) < 0) {\n\t\t\t\t\tpromotionProgram.setFlagStatusExpire(ActiveType.HET_HAN.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\tApParam apListDist = apParamMgr.getApParamByCode(\"LIST_VISIBLE_DISCOUNT\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listDist;\n\t\t\tif(apListDist != null) {\n\t\t\t\tString strListDist = apListDist.getValue();\n\t\t\t\tstrListDist = strListDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strListDist.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZVDist = \"ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strZVDistRep = strZVDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strZVDistRep.split(\",\");\n\t\t\t}\n\t\t\t\n\t\t\tApParam apListRew = apParamMgr.getApParamByCode(\"LIST_VISIBLE_REWARD\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listRew;\n\t\t\tif(apListRew != null){\n\t\t\t\tString strListRew = apListRew.getValue();\n\t\t\t\tstrListRew = strListRew.replace(\" \", \"\");\n\t\t\t\tlistRew = strListRew.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZV = \"ZV01,ZV02,ZV04,ZV05,ZV07,ZV08,ZV10,ZV11,ZV13,ZV14,ZV16,ZV17,ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strListZV = strZV.replace(\" \", \"\");\n\t\t\t\tlistRew = strListZV.split(\",\");\n\t\t\t}\n\t\t\tisReward = false;\n\t\t\tisDiscount = false;\n\t\t\tif(Arrays.asList(listDist).contains(promotionProgram.getType())){\n//\t\t\t\tif(promotionProgram != null \n//\t\t\t\t\t\t&& (promotionProgram.getDiscountType() == null\n//\t\t\t\t\t\t\t|| promotionProgram.getDiscountType() == 0)){\n\t\t\t\t\tisDiscount = true;\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tisDiscount = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.asList(listRew).contains(promotionProgram.getType())){\n\t\t\t\t/*if(promotionProgram != null\n\t\t\t\t\t\t&& (promotionProgram.getRewardType() == null\n\t\t\t\t\t\t\t|| promotionProgram.getRewardType() == 0)){\n\t\t\t\t\t\n\t\t\t\t}*/\n\t\t\t\tisReward = true;\n\t\t\t}else{\n\t\t\t\tisReward = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tObjectVO<Product> listProductVO = productMgr.getListProduct(null, ActiveType.RUNNING);\n\t\t\tif (listProductVO != null) {\n\t\t\t\tlistProduct = listProductVO.getLstObject();\n\t\t\t} else {\n\t\t\t\tlistProduct = new ArrayList<Product>();\n\t\t\t}\n\n\t\t\tid = promotionId;\n\t\t\tif (promotionProgramMgr.checkExistPromotionShopMapByListShop(getStrListShopId(), promotionId)) {\n\t\t\t\tisViewCustomerTab = 1;\n\t\t\t}\n\t\t\tisShowCompleteDefinePromo = false;\n\t\t\tList<ApParam> lstSendEmail = apParamMgr.getListApParam(ApParamType.COMPLETE_DEFINE_PROMOTION, ActiveType.RUNNING);\n\t\t\tif (lstSendEmail != null && lstSendEmail.size() > 0) {\n\t\t\t\tfor (int i = 0, n = lstSendEmail.size(); i < n; i++) {\n\t\t\t\t\tApParam apParam = lstSendEmail.get(i);\n\t\t\t\t\tif (apParam != null && !StringUtil.isNullOrEmpty(apParam.getApParamCode())) {\n\t\t\t\t\t\tString[] arrApParamCode = apParam.getApParamCode().split(\",\");\n\t\t\t\t\t\tfor (String string : arrApParamCode) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(string) && string.trim().equalsIgnoreCase(currentUser.getStaffRoot().getStaffCode())) {\n\t\t\t\t\t\t\t\tisShowCompleteDefinePromo = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.viewDetail\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn SUCCESS;\n\t\t}\n\t\treturn SUCCESS;\n\t}", "public String printDetails(){\n System.out.println(\"This is the Title of the book:\");\n return title;\n System.out.println(\"This is the Author of the book:\");\n return author;\n System.out.println(\"This is how many pages there are:\");\n return pages;\n System.out.println(\"This is the Ref Number:\");\n return refNumber;\n \n }", "@Override\n public void displayDetailsActivity(CommonPersonObjectClient client, String notificationId, String notificationType) {\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@RequestMapping(\"/{id}\")\n \tpublic String getOne(@PathVariable Long id, ModelMap model) {\n \t\tmodel.addAttribute(\"agent\", agentManagerService.getOne(id));\n \t\treturn \"agent/detail\";\n \t}", "public PageInfo getPageInfo() {\n return pageInfo;\n }", "@RequestMapping(value = \"/news/{id}\" , method = RequestMethod.GET)\n public Optional<News> findOneNews(@PathVariable String id){\n return newsService.findNewsDetails(id);\n }", "public String getDetails() {\n\t\treturn details;\n\t}", "public String getDetails() {\n\t\treturn details;\n\t}", "@RequestMapping(\"/showForm\")\n\t\tpublic String displayDetails(){\n\t\t\treturn \"mngt-page\";\n\t\t}", "@RequestMapping(value = \"/{announcementID}/details\", method = RequestMethod.POST)\n @PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n public String submitUpdatedAnnouncement(@PathVariable long announcementID,\n @RequestParam String title,\n @RequestParam(required = false) String message,\n @RequestParam(defaultValue = \"false\") boolean priority,\n Model model) {\n Announcement announcement = announcementService.read(announcementID);\n announcement.setTitle(title);\n announcement.setMessage(message);\n announcement.setPriority(priority);\n\n try {\n announcementService.update(announcement);\n } catch (Exception e) {\n model.addAttribute(\"errors\", \"Announcement was not updated successfully\");\n logger.error(\"Announcement could not be updated or saved to the database.\", e.getMessage());\n }\n return \"redirect:/admin/announcements\";\n }", "public void viewTaskDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnTaskDetails\"), \"Task Details Button\");\n\n\t}", "public Publication getPublication(long publicationId) throws DAOException {\n\t\treturn getEntityManager().find( Publication.class, publicationId );\n }", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}", "public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}", "public String getDetails() {\n return mDetails;\n }", "public String getDetails() {\n return mDetails;\n }", "@Override\r\n\tpublic BookDto getDetail(int seq) {\n\t\tBookDto bd = sqlSession.selectOne(ns + \"getDetail\", seq);\r\n\t\treturn bd;\r\n\t}", "@GetMapping(\"/directorDetails/{id}\")\n public String showDirectorDetails(@PathVariable(\"id\") long id, Model model) {\n\n model.addAttribute(\"directors\", directorRepo.findOne(id));\n return \"directorDetails\";\n }", "@Override\r\n\tpublic String detailDeal() {\n\t\treturn null;\r\n\t}", "public Report announcement(Announcement announcement) {\n this.announcement = announcement;\n return this;\n }", "public Events getEventDetailsByEventId(int eventId);", "public void viewContactDetails() {\n wd.findElement(By.xpath(\"//tr/td[7]/a\")).click();\n }", "@GetMapping(path = \"/detail/\")\n\tpublic String viewProjectDetail() {\n\t\treturn \"sprint-detail\";\n\t}", "public int getCurrentDetailView() {\n return currentDetailView;\n }", "public void viewDetails(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(roads.get(i).getName());\n System.out.println(roads.get(i).getNorthStatus() + \" - \" + roads.get(i).getNorthAdvisory());\n System.out.println(roads.get(i).getSouthStatus() + \" - \" + roads.get(i).getSouthAdvisory() + \"\\n\");\n }\n }", "public void setPresentationDetails(String details) {\r\n this.details = details;\r\n }", "@Override\n\tpublic Object getDetails() {\n\t\treturn details;\n\t}", "@Override\n\tpublic void detailProcess(Page page) throws RuntimeException{\n\t\tNewsAbstract newsabs = super.thv.getNewsabs();\n\t\tNewsDetails newsdet = super.thv.getNewsdet();\n\t\t\n\t\t// 分页处理 第一页时获取其他页面的url\n\t\tif(thv.getF() == 1){\n\t\t\tList<String> requesturl = getRequestUrl(page.getHtml().getDocument(),page.getRequest().getUrl());\n\t\t\tsuper.addTargetUrls(requesturl, page);\n\t\t}\n\t\t\n\t\t\n\t\t/** 获取新闻正文*/\n\t\tString temcontent = \"\";\n\t\tDocument doc = page.getHtml().getDocument();\n\t\ttemcontent = doc.select(\".TRS_Editor\").get(0).toString().trim();\n\t\t/*模拟获取分页信息,将内容存在静态变量{@code content}中*/\n\t\tthv.setContent(thv.getContent()+temcontent);\n\t\t\n\t\t\n\t\t// if(page.getTargetRequests().size() == 0){// 抓取到的每一个url都是一个不同的page对象,故不能通过此方法判断分页是否为最后一页\n\t\t// 根据{@Scheduler}判断是否还有分页,当没有分页时继续处理,此种方法也有缺陷,因为在处理倒数第二个时,{@Scheduler}的size已经为0了,具体见{@Spider#Run}循环的写法\n\t\tif(super.isLast()){\n\t\t\tnewsdet.setTableName(\"dgnewsdetail\");\n\t\t\tnewsdet.setUrl(newsabs.getUrl());\n\t\t\t// 获取日期\n\t\t\tif(newsabs.getDate() == null){\n\t\t\t\tString oridate = super.getOriginalDateOfNewsDetail(doc.toString());\n\t\t\t\tnewsabs.setOriginalDate(oridate);\n\t\t\t\tnewsabs.setDate(super.getPublishDate(oridate));\n\t\t\t}\n\t\t\tnewsdet.setDate(newsabs.getDate());\n\t\t\t\n\t\t\t// 正文内容与图片的处理\n\t\t\tString content = thv.getContent();\n\t\t\tcontent = this.imgRelativeToAbsolute(page.getRequest().getUrl(), content);\n\t\t\tnewsabs.setImgPath(super.getImgPath(newsdet.getUrl(), content));// 设置网络原图片访问路径\n\t\t\tnewsabs.setImgUuid(NewsUtils.getImgUuid(newsabs));\n\t\t\tnewsdet.setContent(content);\n\t\t\t/**可以由专有的image服务器处理**/\n\t\t\tcontent = super.contentAndImgProc(newsdet,newsabs);\n\t\t\t/**********************/\n\t\t\tnewsdet.setContent(content);\n\t\t\t\n//\t\t\tNewsUtils.checkAndPutNewsDetail(SpiderEntrance.AllNewsDetailList,SpiderEntrance.AllNewsByUrl,SpiderEntrance.AllNewsList,\n//\t\t\t\t\tnewsdet);\n\t\t\t\n\t\t\tsuper.checkAndPutNewsDetail(newsdet);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void ClickCommissionInformationPage() {\r\n\t\tcommissioninfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Commission Information\\\" button on the Birthdays page\");\r\n\t}", "public String getDescInfo() {\n return descInfo;\n }" ]
[ "0.61765814", "0.59223306", "0.5900247", "0.57956785", "0.5711747", "0.569814", "0.55964935", "0.55796206", "0.54357153", "0.5428423", "0.54052967", "0.54052967", "0.53971213", "0.53838736", "0.53681123", "0.5353343", "0.53492934", "0.53492934", "0.53492934", "0.53492934", "0.5347657", "0.53172714", "0.53155625", "0.5270039", "0.5268896", "0.5244845", "0.5240085", "0.5226494", "0.5218621", "0.5214725", "0.51411957", "0.5135224", "0.5119548", "0.5116862", "0.5111324", "0.51091796", "0.5106458", "0.5102655", "0.50938106", "0.50880504", "0.50755614", "0.5064598", "0.50568914", "0.5054611", "0.5034434", "0.50241774", "0.50210845", "0.5009588", "0.500845", "0.50042224", "0.49943158", "0.49797988", "0.4975606", "0.49669954", "0.4965083", "0.49573871", "0.49539915", "0.4948126", "0.49335673", "0.49323535", "0.49240285", "0.4898286", "0.48951286", "0.4885211", "0.48824742", "0.4875836", "0.48653108", "0.4853306", "0.48429623", "0.48413506", "0.4840619", "0.4830102", "0.4823446", "0.4804748", "0.4800552", "0.4798192", "0.4798192", "0.47828484", "0.47765374", "0.47765172", "0.4773584", "0.47696579", "0.4768958", "0.47670886", "0.4758976", "0.4758976", "0.47483146", "0.4739357", "0.47341356", "0.4722227", "0.47212332", "0.4716102", "0.4715595", "0.4710587", "0.47039217", "0.46968246", "0.4689387", "0.46807057", "0.4664777", "0.46603546" ]
0.75356835
0
Adds a team to the database if it is new, otherwise edits existing team.
public static void addTeam(TeamForm tf) { Team team; long id = tf.id; if (!isTeam(id)) { team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl); team.save(); } else { team = getTeam(id); team.setTeamName(tf.teamName); team.setLocation(tf.location); team.setTeamType(tf.teamType); team.setSkillLevel(tf.skillLevel); team.setRoster(tf.roster); team.setDescription(tf.description); team.setImageUrl(tf.imageUrl); team.setWins(tf.wins); team.setLosses(tf.losses); team.setPointsFor(tf.pointsFor); team.setPointsAgainst(tf.pointsAgainst); team.save(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addMyTeam(Team team) throws HasTeamAlreadyException;", "@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}", "@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;", "@PostMapping(path=\"/add/{id}/team\")\n public @ResponseBody Object assignTeamMember(@PathVariable long id, @RequestParam Team team){\n TeamMember tm = teamMemberRepository.getOne(id);\n tm.setTeam(team); // Retrieving the list of team members and adding new team member\n return teamMemberRepository.saveAndFlush(tm);\n }", "@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}", "@Override\n @Transactional\n public Team addTeam(Team team) {\n KeyHolder keyHolder = new GeneratedKeyHolder();\n String sql = \"INSERT INTO Team (teamname, userid) VALUES (?, ?)\";\n\n jdbc.update((Connection connection) -> {\n PreparedStatement prep = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n prep.setString(1, team.getName());\n prep.setInt(2, team.getUser().getId());\n return prep;\n }, keyHolder);\n team.setId(keyHolder.getKey().intValue());\n return team;\n }", "public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(t);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}", "public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}", "public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }", "public void insertTeam(Team team) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date tDate = new java.sql.Date(team.getDateFoundation().getTime());\n\t\t\tString insertTeam_sql = \"INSERT INTO \" + team_table + \" (id, name, coach, city, dateFoundation)\"\n\t\t\t\t\t+ \"VALUES (NULL, '\" + team.getName() + \"' , '\" + team.getCoach() + \"' , '\" + team.getCity()\n\t\t\t\t\t+ \"' , '\" + tDate + \"')\";\n\t\t\tstatement.executeUpdate(insertTeam_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This team is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void newTeam(Team team);", "public Team update(TeamDTO teamForm) throws TeamNotFoundException;", "@Override\n @Transactional\n public boolean updateTeam(Team team) {\n String sql = \"UPDATE Team SET teamname = ? WHERE teamid = ?\";\n return jdbc.update(sql, team.getName(), team.getId()) > 0;\n }", "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 }", "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 }", "void create(Team team);", "private void save() {\n Saver.saveTeam(team);\n }", "@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}", "public void addTeam(final TeamController team) {\r\n\t\tteamList.add(team);\r\n\t}", "@Test\n @Transactional\n public void updateNonExistingTeam() throws Exception {\n int databaseSizeBeforeUpdate = teamRepository.findAll().size();\n\n // Create the Team\n TeamDTO teamDTO = teamMapper.toDto(team);\n\n // If the entity doesn't have an ID, it will be created instead of just\n // being updated\n restTeamMockMvc\n .perform(put(\"/api/teams\").contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(teamDTO)))\n .andExpect(status().isCreated());\n\n // Validate the Team in the database\n List<Team> teamList = teamRepository.findAll();\n assertThat(teamList).hasSize(databaseSizeBeforeUpdate + 1);\n }", "public void addTeams(SoccerTeam team) throws TeamNotFoundException {\n if (teams.contains(team)){\n throw new TeamNotFoundException(\"Team Already added to the Tournament\");\n }\n this.teams.add(team);\n }", "protected boolean addTeam(Team team) {\n\t\t//TODO\n\t\t// input check\n\t\tif (team == null)\n\t\t\treturn false;\n\t\t\n\t\t// checking if team exists already\n\t\tif (teams.contains(team))\n\t\t\treturn false;\n\t\t\t\n\t\treturn teams.add(team);\n\t}", "Team createTeam();", "@Override\n\tpublic TeamInfo saveOrUpdate(TeamInfo teamInfo) {\n\t\treturn repository.save(teamInfo);\n\t}", "public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }", "public void cmdAddTeam(User teller, String teamCode) {\n Team team = tournamentService.findTeam(teamCode);\n if (team != null) {\n command.tell(teller, \"A team with name {0} already exists.\", teamCode);\n return;\n }\n try {\n team = tournamentService.createTeam(teamCode);\n } catch (InvalidNameException e) {\n replyError(teller, e);\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Team {0} has now been created.\", team.getTeamCode());\n command.tell(teller, \"To set the team name, use: \\\"set-team {0} name New York Giants\\\"\", team.getTeamCode());\n cmdShowTeam(teller, team);\n }", "public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}", "public static boolean insert(Team team) throws SQLException\n {\n int ltn = getLongestTeamName();\n\n String update = \"INSERT INTO team (teamId, motto, totalKittiesKlicked) VALUES (?, ?, ?)\";\n PreparedStatement stmt = db.getPreparedStatement(update);\n stmt.setString(1, team.getTeamID());\n stmt.setString(2, team.getMotto());\n stmt.setInt(3, team.getTotalKittiesKlicked());\n db.executeUpdate(stmt);\n\n if (team.getTeamID().length() > ltn)\n {\n awardLongestTeamName(team.getTeamID());\n }\n return false;\n }", "@RequestMapping(value = \"/team/{league}\", method = POST, consumes = MEDIA_JSON)\n @ResponseStatus(CREATED)\n public LobbyTeam createTeamAndEnter(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"league\") LobbyLeagueEnum league)\n throws TeamFullException, TeamNotFoundException {\n log.info(\"user {} creates team\", user.getIdentity());\n LobbyTeam team = lobbyService.createTeam(user.getProfileId(), league);\n return lobbyService.enterIntoTeam(user.getProfileId(), team.getId().toString());\n }", "public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}", "public void setTeam(String team) {\n\t\tthis.team = team;\n\t}", "@Override\r\n\tpublic ResultMessage updateTeam(TeamPO oneTeam) {\n\t\treturn teams.updateTeam(oneTeam);\r\n\t}", "public Teams updateTeamById(UUID id,Teams teams)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if (!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with id \" + id + \" is not available\");\n teams.setTeamId(id);\n return teamRepo.save(teams);\n }", "void update(Team team);", "public void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }", "@Test\n @Transactional\n public void createTeamWithExistingId() throws Exception {\n int databaseSizeBeforeCreate = teamRepository.findAll().size();\n\n // Create the Team with an existing ID\n team.setId(1L);\n TeamDTO teamDTO = teamMapper.toDto(team);\n\n // An entity with an existing ID cannot be created, so this API call\n // must fail\n restTeamMockMvc\n .perform(post(\"/api/teams\").contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(teamDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Team in the database\n List<Team> teamList = teamRepository.findAll();\n assertThat(teamList).hasSize(databaseSizeBeforeCreate);\n }", "@PostMapping(\"/saveTeam\")\n public String saveTeam(@Valid @ModelAttribute(\"team\") Team team) {\n teamService.saveTeam(team);\n return \"redirect:/showFormForUpdateTeam/\"+team.getId();\n }", "@Override\n\tpublic void insertProjectTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "@Override\n\tpublic void insertProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "public team(int teamID, String teamName, String mascot, int games, int wins, int loses) throws SQLException {\n\t\tthis.teamID = teamID;\n\t\tthis.teamName = teamName;\n\t\tthis.mascot = mascot;\n\t\tthis.games = games;\n\t\tthis.wins = wins;\n\t\tthis.loses = loses;\n\t\tconn = DriverManager.getConnection(DB_URL);\n\t\tStatement stmt = conn.createStatement();\n\t\t \n\t\t stmt.executeUpdate(\"INSERT INTO Team VALUES (\" +\n\t this.teamID + \", '\" +\n\t this.teamName + \"', '\" + \n\t this.mascot + \"', \" +\n\t this.games + \", \" +\n\t this.wins + \", \" +\n\t this.loses +\n\t \")\");\n\t\t \n\t\t conn.close();\n\t stmt.close();\n\t}", "public boolean updateTeam(Team t, int id) {\n\t\tboolean update = false;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tjava.sql.Date tDate = new java.sql.Date(t.getDateFoundation().getTime());\n\t\t\tString updateRecords_sql = \"UPDATE \" + team_table + \" SET name='\" + t.getName() + \"', coach='\"\n\t\t\t\t\t+ t.getCoach() + \"', city='\" + t.getCity() + \"', dateFoundation='\" + tDate + \"' WHERE id='\" + id\n\t\t\t\t\t+ \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(updateRecords_sql);\n\t\t\tstatement.executeUpdate();\n\t\t\tupdate = true;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn update;\n\t}", "Team findById(Long id);", "private void addTeam(String teamName, String prefix, String suffix) {\n String trimmedTeamName = trimString(teamName);\n\n // If the team already exists, skip adding it.\n if (teamExist(trimmedTeamName)) return;\n\n // Register the new team\n Team team = scoreboard.registerNewTeam(trimmedTeamName);\n\n // Set the prefix.\n if (prefix != null && !prefix.isEmpty()) {\n team.setPrefix(prefix);\n }\n\n // Set ths suffix.\n if (suffix != null && !suffix.isEmpty()) {\n team.setSuffix(suffix);\n }\n }", "@RequestMapping(value = \"/invite/profile/{profileId}/team/{teamId}\", method = PUT)\n public LobbyTeam inviteToTeam(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"teamId\") String teamId,\n @PathVariable(\"profileId\") String profileId)\n throws TeamNotFoundException {\n log.info(\"user {} invites profile {} into team {}\", user.getIdentity(), profileId, teamId);\n return lobbyService.inviteToTeam(profileId, teamId);\n }", "public void update(String teamID, String teamName, League league, List<Player> playerList, List<Game> gameList, List<Game> gameList1) {\n TeamDB tdb = new TeamDB();\n Team team = get(teamID);\n \n League oldLeague = team.getLeagueID();\n if (!oldLeague.getLeagueID().equals(league.getLeagueID())) {\n oldLeague.getTeamList().remove(team);\n LeagueDB ldb = new LeagueDB();\n ldb.update(oldLeague);\n }\n \n team.setTeamName(teamName);\n team.setPlayerList(playerList);\n team.setLeagueID(league);\n tdb.update(team);\n }", "public void setTeamId(int value) {\n this.teamId = value;\n }", "@Override\n\tpublic void updateTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}", "@Override\n public void addParticipantToTeam(Id teamId, Participant participant) throws AlfredException {\n if (!this.participantList.contains(participant.getId())) {\n throw new ModelValidationException(\"Participant does not exist in participantList\");\n }\n Team targetTeam;\n try {\n targetTeam = this.getTeam(teamId);\n } catch (MissingEntityException e) {\n throw e;\n }\n try {\n boolean isSuccessful = targetTeam.addParticipant(participant);\n if (!isSuccessful) {\n throw new AlfredModelException(\"Participant is already present in team\");\n }\n } catch (Exception e) {\n throw new AlfredModelException(e.getMessage());\n }\n }", "Team findByName(String name);", "int insert(SysTeam record);", "@Override\n public void addMentorToTeam(Id teamId, Mentor mentor) throws AlfredException {\n if (!this.mentorList.contains(mentor.getId())) {\n throw new ModelValidationException(\"Mentor does not exist in mentorList.\");\n }\n Team targetTeam;\n try {\n targetTeam = this.getTeam(teamId);\n } catch (MissingEntityException e) {\n throw e;\n }\n boolean isSuccessful = targetTeam.addMentor(mentor);\n if (!isSuccessful) {\n throw new AlfredModelException(\"Team already has a mentor\");\n }\n }", "public static void changePlayerTeam(Player old, Player addNew, Team team, int place) {\r\n\t\t// TODO Auto-generated block\r\n\t}", "@Override\n public void updateTeam(Id teamId, Team updatedTeam) throws AlfredException {\n this.teamList.update(teamId, updatedTeam);\n }", "public void nodeTeam(String id, String team)\n\t{\n\t\tgetNode(id).team = team;\n\t}", "@Test\r\n\tpublic void saveTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTswacct \r\n\t\tInteger teamId_3 = 0;\r\n\t\tTswacct related_tswacct = new wsdm.domain.Tswacct();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTswacct(teamId_3, related_tswacct);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTswacct\r\n\t}", "public Team create(TeamDTO teamForm);", "public boolean transferTo(Team team) {\n\t\t//TODO\n\t\t// input check\n\t\tif (team == null || (team != null && team.equals(currentTeam)))\n\t\t\treturn false;\n\n\t\t// if the team exists in the teams array, we remove it \n\t\tif (teams.contains(team))\n\t\t\tteams.remove(team);\n\t\t\n\t\t// adding coach to new team and transferring old team to teams' Set\n\t\tif (addTeam(currentTeam) && team.registerCoach(this)) {\n\t\t\tcurrentTeam.setCoach(null);\n\t\t\tcurrentTeam = team;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n public void addToModel() {\n for (final Person person : team.observableTeamMembers()) {\n person.setTeam(team);\n }\n\n // Add team to project\n organisation.getTeams().add(team);\n }", "public void setTeamId(String teamId) {\r\n\t\tthis.teamName = teamId;\r\n\t}", "@Override\n public void addTeamIdentifier(TeamIdentifier teamIdentifier) {\n }", "@Given(\"^I navigate to team page \\\"([^\\\"]*)\\\"$\")\n public void navigate_to_teamPage(String nameTeam){\n addNewTeam = mainPage.clickNewTeam();\n teamPage = addNewTeam.createTeam(nameTeam);\n }", "public Team(String name) {\n this.name = name;\n }", "@Test\r\n\tpublic void saveTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTeamplayerses \r\n\t\tInteger teamId_7 = 0;\r\n\t\tTeamplayers related_teamplayerses = new wsdm.domain.Teamplayers();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTeamplayerses(teamId_7, related_teamplayerses);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTeamplayerses\r\n\t}", "public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }", "int updateByPrimaryKey(SysTeam record);", "@Test\r\n\tpublic void saveTeamProgram() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamProgram \r\n\t\tInteger teamId_1 = 0;\r\n\t\tProgram related_program = new wsdm.domain.Program();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamProgram(teamId_1, related_program);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamProgram\r\n\t}", "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "@Test\n public void toggleTeamStates() {\n Team team = new Team(\"Crvena Zvezda\");\n\n // TODO: open persistence context and create transaction\n\n // TODO: move team to managed state\n\n // TODO: assert that the team is managed (check if contained in session)\n\n // TODO: commit and close persistence context\n\n // TODO: fetch from DB as managed entity\n\n // TODO: assert entity is managed\n\n // TODO: remove entity from session and assert not managed\n\n // TODO: commit and close\n }", "int insertSelective(SysTeam record);", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}", "private void addUsertoTeams(List<Team> teams) {\n \tfor(Team team: teams) {\n \t\tteam.setUser(getUserFromTeam(team));\n \t}\n }", "public void insertPlayer(Player player, int idTeam) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date pDate = new java.sql.Date(player.getDateOfBirth().getTime());\n\t\t\tString insertPlayer_sql = \"INSERT INTO \" + player_table\n\t\t\t\t\t+ \" (id, idTeam, name, lastname, dateOfBirth, height)\" + \"VALUES (NULL, \" + idTeam + \", '\"\n\t\t\t\t\t+ player.getName() + \"' , '\" + player.getLastname() + \"' , '\" + pDate + \"' , '\" + player.getHeight()\n\t\t\t\t\t+ \"')\";\n\t\t\tstatement.executeUpdate(insertPlayer_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This player is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n\tpublic void saveTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamGamesForVisitorTeamFk \r\n\t\tInteger teamId_4 = 0;\r\n\t\tGame related_gamesforvisitorteamfk = new wsdm.domain.Game();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamGamesForVisitorTeamFk(teamId_4, related_gamesforvisitorteamfk);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamGamesForVisitorTeamFk\r\n\t}", "public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public void addEntityToTeam(LivingEntity livingEntity, String teamName) {\n getTeam(teamName).addEntry(livingEntity.getUniqueId().toString());\n }", "public void setTeamId(int teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public final EObject entryRuleTeam() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleTeam = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:997:45: (iv_ruleTeam= ruleTeam EOF )\r\n // InternalEsportDsl.g:998:2: iv_ruleTeam= ruleTeam EOF\r\n {\r\n newCompositeNode(grammarAccess.getTeamRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleTeam=ruleTeam();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleTeam; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public void registerObserver(Team team) {\n\t\tteams.add(team);\n\t}", "public Team get(Long id);", "public void updateUserTeam() {\n\t\tUser user = users.get(userTurn);\n\t\tSystem.out.println(user.getName());\n\t\tSystem.out.println(tmpTeam.size());\n\t\tUserTeam roundTeam = new UserTeam();\n\t\troundTeam.putAll(tmpTeam.getPlayers());\n\t\tSystem.out.println(roundNumber);\n\t\tSystem.out.println(roundTeam.size());\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\tuser.setUserTeam(roundTeam, roundNumber);\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\ttmpTeam = new UserTeam();\n\t}", "@Override\n\tpublic void updateTeam(String name, SuperHuman superHuman) {\n\n\t}", "public static void addTeamLeader(Scanner input, ArrayList<Employee> newEmployee){\n \n TeamLeader newTeamLeader = new TeamLeader();\n \n String empNumber, empHireDate, monthlyBonus, trainingHours, payRate, shift, requiredTrainingHours;\n int shiftNum;\n \n System.out.print(\"Please enter the employee's first and last name: \");\n newTeamLeader.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newTeamLeader.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/XX/XXXX including the slashes\\nwhere I is a 0 or 1 and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newTeamLeader.setDate(verifyHireDate(input, empHireDate));\n System.out.print(\"Please enter the Production Team Leader's shift, 1 for day shift and 2 for night shift: \");\n shift = input.nextLine();\n shiftNum = UtilityMethods.verifyInt(input, shift);\n newTeamLeader.setShift(verifyShift(input, shiftNum));\n System.out.print(\"Please enter the pay rate of the Production Team Leader as a double: \");\n payRate = input.nextLine();\n newTeamLeader.setPayRate(UtilityMethods.verifyDouble(input, payRate));\n System.out.print(\"Please enter the monthly bonus that the Team Leader could receive: \");\n monthlyBonus = input.nextLine();\n newTeamLeader.setMonthlyBonus(UtilityMethods.verifyDouble(input, monthlyBonus));\n System.out.print(\"Please enter the number of training hours that the Team Leader requires as an integer: \");\n requiredTrainingHours = input.nextLine();\n newTeamLeader.setRequiredTrainingHours(UtilityMethods.verifyInt(input, requiredTrainingHours));\n System.out.print(\"Please enter the number of hours that the Team Leader has already acquired: \");\n trainingHours = input.nextLine();\n newTeamLeader.setTrainingHours(UtilityMethods.verifyInt(input, trainingHours));\n \n newEmployee.add(newTeamLeader);\n }", "private static void updateTeamRecord(Team t) {\n ArrayList<Object> records = new ArrayList<>();\n //Get existing team data\n ResultSet teamSet = SqlUtil.getTeamRecord(c, TABLE_NAME, t.getIntValue(Team.NUMBER_KEY));\n try {\n ArrayList<String> matches;\n if (teamSet != null) {\n matches = new ArrayList<>(Arrays.asList(SqlUtil.getArrayFromString(teamSet.getString(\"match_nums\"))));\n } else {\n Main.sendError(\"Cannoy read team data: \" + t.getValue(Team.NUMBER_KEY),false);\n return;\n }\n for (String m: matches) {\n //If the match number already exists\n System.out.println(m);\n if (t.getStringValue(Team.MATCH_KEY).equalsIgnoreCase(m.trim())) {\n return;\n }\n }\n records.add(t.getIntValue(Team.NUMBER_KEY));\n records.add(t.getValue(Team.COLOR_KEY));\n records.add(1+teamSet.getInt(\"num_matches\"));\n matches.add(t.getStringValue(Team.MATCH_KEY));\n records.add(matches.toArray(new String[matches.size()]));\n for(Element e: Main.getElements()){\n switch (e.getType()){\n\n case SEGMENTED_CONTROL:\n for (int i = 0; i<e.getArguments().length;i++){\n if (t.getStringValue(e.getKeys()[0]).equalsIgnoreCase(e.getArguments()[i])){\n records.add(1+teamSet.getInt(e.getColumnValues()[i]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i]));\n }\n }\n break;\n case TEXTFIELD:\n if (e.getArguments()[0].equalsIgnoreCase(\"number\")) {\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n\n } else if (e.getArguments()[0].equalsIgnoreCase(\"decimal\")){\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n }\n break;\n case STEPPER:\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n break;\n case LABEL:\n break;\n case SWITCH:\n for (int i = 0; i<e.getKeys().length;i++){\n if (t.getStringValue(e.getKeys()[i]).equalsIgnoreCase(\"yes\")){\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(teamSet.getInt(e.getColumnValues()[i*2+1]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2+1]));\n }\n }\n break;\n case SPACE:\n break;\n case SLIDER:\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getDouble(e.getColumnValues()[0]));\n break;\n }\n }\n double total = 0.0;\n\n for (Equation e: Main.getEquations()){\n double value = e.evaluate(t) + teamSet.getDouble(e.getColumnValue());\n records.add(value);\n total +=value;\n }\n\n records.add(total);\n\n SqlUtil.updateTeamRecord(c,TABLE_NAME, records.toArray(new Object[records.size()]),t.getStringValue(Team.NUMBER_KEY));\n\n } catch (SQLException e) {\n Main.sendError(\"Problem updating team records\", false, e);\n } catch (NullPointerException e){\n Main.sendError(\"Cannot read team data for team \" + t.getValue(Team.NUMBER_KEY),false,e);\n }\n }", "void remove(Team team);", "@Test(dependsOnMethods = {\"testAddTeam\"})\n\tpublic void testUpdateTeam() {\n\t}", "@Test\r\n\tpublic void saveTeamLevel() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamLevel \r\n\t\tInteger teamId_8 = 0;\r\n\t\tLevel related_level = new wsdm.domain.Level();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamLevel(teamId_8, related_level);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamLevel\r\n\t}", "public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}", "public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}", "public int getTeamId() {\n return teamId;\n }", "public void addTeamMember(String teamMember)\r\n\t{\r\n\t\tteamMembers.add(teamMember);\r\n\t}", "public Team(String name) {\r\n this.name = name;\r\n team = new ArrayList<Hero>();\r\n }", "public static void editTeamName(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Edit Team Name---\");\r\n\t\tSystem.out.println(\"Enter your new team name: (max 32 characters)\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\t\r\n\t\tString teamName;\r\n\t\tdo {\r\n\t\t\tteamName = Input.validString(32, keyboard);\r\n\t\t\tif (teamName.equals(\"0\")) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfor (int y = 0; y < theLeague.getNumTeams(); y++) {\r\n\t\t\t\tif (teamName.equalsIgnoreCase(theLeague.getTeam(y).getTeamName())) {\r\n\t\t\t\t\tSystem.out.println(\"That team name is already being used.\");\r\n\t\t\t\t\tteamName = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (teamName.isEmpty());\r\n\t\ttheTeam.setTeamName(teamName);\r\n\t}", "private void saveTournament(Tournament tournament) {\n System.out.println(\"Saving\");\n TournamentEntity entity = new TournamentEntity();\n entity.setId(tournament.getId());\n entity.setWinnerId(tournament.getFightersRemaining().get(0).getId());\n tournamentRepository.save(entity);\n }", "public Builder setTeam(int value) {\n bitField0_ |= 0x00000004;\n team_ = value;\n onChanged();\n return this;\n }", "public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}", "@RequestMapping(method=RequestMethod.POST)\n public ResponseEntity<Void> insert(@RequestBody TeamDTO objDto) {\n Team obj = this.teamService.fromDTO(objDto);\n this.teamService.insert(obj);\n URI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{id}\").buildAndExpand(obj.getId()).toUri();\n return ResponseEntity.created(uri).build();\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}" ]
[ "0.7504392", "0.7410613", "0.71535873", "0.6935538", "0.6895444", "0.6880424", "0.67968714", "0.678788", "0.6775517", "0.67606074", "0.66590124", "0.6616476", "0.6570365", "0.6459184", "0.6453636", "0.6406517", "0.63933444", "0.6370329", "0.63688964", "0.6359463", "0.634035", "0.6340078", "0.6290185", "0.6266872", "0.61640245", "0.61426556", "0.6108486", "0.60890406", "0.6051377", "0.6019535", "0.601334", "0.6005548", "0.5980169", "0.59475195", "0.5910937", "0.5904965", "0.58443516", "0.58436346", "0.58323276", "0.58236814", "0.5822633", "0.5806906", "0.57864225", "0.5786026", "0.57145464", "0.57072806", "0.5696908", "0.5675865", "0.5670706", "0.5668777", "0.5662876", "0.5634135", "0.56286293", "0.56256044", "0.5600779", "0.5600192", "0.5592906", "0.55770534", "0.5574807", "0.557248", "0.5547193", "0.55469126", "0.550803", "0.5506278", "0.5498866", "0.549153", "0.5474452", "0.5473453", "0.5471019", "0.54631466", "0.54589", "0.5445352", "0.5443607", "0.54218626", "0.5410398", "0.54033023", "0.54033023", "0.53925824", "0.539224", "0.536867", "0.5363166", "0.53570133", "0.53203475", "0.5310165", "0.53054154", "0.5286109", "0.52852005", "0.52827", "0.52798665", "0.5277951", "0.52734035", "0.52543783", "0.5252759", "0.52501816", "0.52331275", "0.52300596", "0.5214091", "0.5204457", "0.52035123", "0.51852673" ]
0.7064743
3
Returns a Java list of teams.
public static List<Team> getTeams() { return find().all(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebMethod public List<Team> getAllTeams();", "public ArrayList<Team> getList(){\n\t\treturn this.teams;\n\t}", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }", "public ArrayList<CollegeFootballTeam> getTeamList();", "public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}", "public List<Team> getListOfTeams(){\n \tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tJSONObject jsonobj = null;\n\t\tList<Team> team = new ArrayList<>();\n\t\tTeamsJsonReader reader = new TeamsJsonReader();\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = null;\n\n\t\ttry {\n\t\t\tobj = parser.parse(new FileReader(\"src/main/resources/db.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tJSONArray jsonarr = (JSONArray) jsonObject.get(\"teams\");\n\t\t\tfor (int size = 0; size < jsonarr.size(); size++) {\n\t\t\t\tList<Individual> individualList = new ArrayList<>();\n\t\t\t\tjsonobj = (JSONObject) jsonarr.get(size);\n\t\t\t\tmyMap.put(\"name\", jsonobj.get(\"name\"));\n\t\t\t\tmyMap.put(\"id\", ((Long) jsonobj.get(\"id\")).intValue());\n\t\t\t\tJSONArray memberArray = (JSONArray) jsonobj.get(\"members\");\n\n\t\t\t\tfor (int index = 0; index < memberArray.size(); index++) {\n\n\t\t\t\t\tindividualList.add(reader.getIndividualById(((Long) memberArray.get(index)).intValue()));\n\n\t\t\t\t}\n\t\t\t\tmyMap.put(\"members\", individualList);\n\t\t\t\t\n\t\t\t\tteam.add(new Team(myMap));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn team;\n }", "public List<Team> getAll() {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAll();\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "@Override\r\n\tpublic ArrayList<TeamPO> getAllTeams() {\n\t\treturn teams.getAllTeams() ;\r\n\t}", "public ArrayList<CollegeFootballTeam> getTeamList()\r\n\t{\r\n\t\treturn teams;\r\n\t}", "@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}", "List<Team> findAll();", "public LinkedList<SoccerTeam> getTeams() {\n return this.teams;\n }", "public ArrayList<Team> getTeamList(){\n\t\treturn this.teamList;\n\t}", "@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}", "List<Team> getTeamsFromApi(List<Long> teamIds);", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }", "@Override\n\tpublic List<ProjectTeamBean> listProjectTeam() {\n\t\treturn null;\n\t}", "public List<Team> getAllOrdered() {\n TeamDB tdb = new TeamDB();\n return tdb.getAllOrdered();\n }", "@Override\n\tpublic List<TeamInfo> findAll() {\n\t\treturn repository.findAll();\n\t}", "TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);", "List<Team> findTeamsByUserId(UserId userId);", "public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser\")\n public JSONArray getAllTeamsForUserPage() {\n return teamService.getAllTeamsForUser();\n }", "public ArrayList<CollegeFootballTeam> rankTeams();", "@GET\n @Path(\"Current/Team\")\n public Response findTeamsByCurrentUser() {\n Response r = Response.noContent().build();\n Collection<Team> teamsToReturn = new ArrayList<>();\n User currentUser = userFacade.getCurrentUser();\n final List<Player> players = currentUser.getPlayers();\n for (Player p : players) {\n teamsToReturn.add(p.getTeam());\n }\n if (!teamsToReturn.isEmpty()) {\n r = Response.ok().entity(teamsToReturn).build();\n }\n\n return r;\n }", "public ArrayList<Team> populateDefaultTeams() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tArrayList<Team> result = new ArrayList<Team>();\t// holds the resulting list of teams\n\n\t\tString query; \t\t\t\t\t\t\t\t\t// holds query string\n\t\tPreparedStatement stmt; \t\t\t\t\t\t// holds Prepared Statement to execute on the database\n\t\tResultSet rs; \t\t\t\t\t\t\t\t\t// holds the result from the database\n\t\t\n\t\ttry {\n\t\t\n\t\t\t// concatenate select query\n\t\t\tquery = \"SELECT * FROM \" + tableDefaultTeams + \" WHERE \" + columnTeamGender + \" = \" + \"?;\";\n\t\n\t\t\t// initialize the prepare statement, execute it, and\n\t\t\t// store the result\n\t\t\tstmt = conn.prepareStatement(query);\n\t\t\tstmt.setString(1, \"F\");\t\t// TODO: REMOVE HARDCODED GENDER IN SPRINT 2\n\t\t\trs = stmt.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tTeam team = new Team();\n\t\t\t\t// store the result from the database in the team object\n\t\t\t\tteam.setTeamId(rs.getInt(columnTeamId));\n\t\t\t\tteam.setName(rs.getString(columnTeamName));\n\t\t\t\tteam.setAddress(rs.getString(columnTeamAdress));\n\t\t\t\tteam.setCity(rs.getString(columnTeamCity));\n\t\t\t\tteam.setState(rs.getString(columnTeamState));\n\t\t\t\tteam.setZip(rs.getString(columnTeamZip));\n\t\t\t\tteam.setGender(rs.getString(columnTeamGender));\n\t\t\t\tteam.setLat(rs.getString(columnTeamLat));\n\t\t\t\tteam.setLng(rs.getString(columnTeamLng));\n\t\t\t\tresult.add(team);\n\t\t\t}\n\t\t\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.out.println(sqle.getMessage());\n\t\t}\n\t\t\n\t\t// return the list of teams\n\t\treturn result;\n\t\t\n\t}", "@Override\n\tpublic HashSet<String> getTeams() {\n return new HashSet<String>();\n\t}", "@Override\n public List<Team> getTeamsOfUser(int userid){\n\t\tfinal String select_teams_of_user = \"SELECT * FROM Team WHERE userid = ?\";\n\t\tList<Team> teams = jdbc.query(select_teams_of_user, new TeamMapper(), userid);\n\t\taddUsertoTeams(teams);\n\t\treturn teams;\n\t}", "public PageResult<Team> getAll() {\n\t\t\n\t\treturn null;\n\t}", "@RequestMapping(method=RequestMethod.GET)\n public ResponseEntity<List<TeamDTO>> findAll() {\n List<Team> list = this.teamService.findAll();\n List<TeamDTO> listDto = list.stream().map(obj -> new TeamDTO(obj)).collect(Collectors.toList());\n\n return ResponseEntity.ok().body(listDto);\n }", "@GetMapping(\"/leaderboard\")\n @Timed\n @PermitAll\n public ResponseEntity<Leaderboard> getAllTeams() {\n log.debug(\"REST request to get a leaderboard\");\n\n return ResponseEntity.ok().body(this.leaderboardService.findAll());\n }", "public ResultSet getTeams() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "@Override\n\tpublic List<ProjectTeamBean> selectProjectTeamList() {\n\t\treturn null;\n\t}", "public List<Team> getAllByLeague(League leagueID) {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAllByLeague(leagueID);\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "public List<Hero> getTeam() {\r\n return team;\r\n }", "@RequestMapping(\"/teams/{id}\")\n public ArrayList<Team> readTeam(@PathVariable Integer id) {\n return teamService.getTeam(id);\n }", "public List<VwTeams> browse(String[] params)\n\t{\n\t\tList<VwTeams> results\t= new ArrayList<VwTeams>();\n\t\tVwTeams[] array\t\t\t= null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif (params == null)\n\t\t\t{\n\t\t\t\tarray = dao.findAll();\n\t\t\t}\n\t\t\telse \n\t\t\t{\t\t\t\t\n\t\t\t\t//like filter\n\t\t\t\tparams[0] = GeneralUtils.addLikeFormat(params[0]);\n\t\t\t\t\n\t\t\t\tString sql = \"\";\n\t\t\t\t\n\t\t\t\tsql = \"\tteam_name LIKE ? \";\n\t\t\t\tsql += \"\t\tevent_id = ? \";\n\t\t\t\t\t\t\t\t\n\t\t\t\tarray = dao.findByDynamicWhere(sql, params);\n\t\t\t}\n\t\t\t\n\t\t\t// convert array to list\n\t\t\tresults = Arrays.asList(array);\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results;\n\t}", "@Override\n\tpublic List<String> getTeamNames(Integer id) {\n\t\treturn null;\n\t}", "public ArrayList<CollegeFootballTeam> rankTeams()\r\n\t{\r\n\t\tArrayList<CollegeFootballTeam> rankedTeams = new ArrayList<>();\r\n\t\t\r\n\t\t// Calls the selection sort method, which ranks the teams from lower to higher scores based on the sum of their votes.\r\n\t\t// The teams are placed into a new ArrayList. \r\n\t\trankedTeams = selectionSort(teams);\r\n\t\t\r\n\t\treturn rankedTeams;\r\n\t}", "public Team get(Long id);", "public static List<String> typeOfTeam() {\n String[] types = { \"Mens\", \"Womens\", \"Co-ed\" };\n return java.util.Arrays.asList(types);\n }", "public JSONObject getCompetitionTeams() {\r\n\t\t\r\n\t\tString api = this.url + \"competition/\" + idCompetition + \"/teams\";\r\n\t\tJSONObject jo = null;\r\n\t\tString line = \"\";\r\n\t\tString dataFilter = \"\";\r\n\t\ttry{\r\n\t\t\tHttpURLConnection openConnection = (HttpURLConnection) new URL(api).openConnection();\r\n\t\t\topenConnection.setRequestProperty(\"X-Auth-Token\", token);\r\n\t\t\tInputStream in = openConnection.getInputStream();\r\n\r\n\t\t\tInputStreamReader input = new InputStreamReader( in );\r\n\t\t\tBufferedReader buf = new BufferedReader( input );\r\n\t\t\t\r\n\t\t\twhile ( ( line = buf.readLine() ) != null ) {\r\n\t\t\t\tdataFilter += line;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tin.close();\r\n\t\t\tjo = (JSONObject) JSONValue.parseWithException(dataFilter);\r\n\t\t}\r\n\t\tcatch(ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn jo;\r\n\t}", "public List<String> getTeamMembers() {\r\n\t\treturn teamMembers;\r\n\t}", "public String[] getTeamNames()\r\n\t{\r\n\t\t\r\n\t\tString[] names = new String[NUM_TEAMS];\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i++)\r\n\t\t{\r\n\t\t\tnames[i] = teams.get(i).getName();\t\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public void getTeams(ServiceHandler sh) {\n String jsonStr = sh.makeServiceCall(url, ServiceHandler.GET);\n\n Log.d(\"Response: \", \"> \" + jsonStr);\n\n if (jsonStr != null) {\n try {\n JSONObject jsonObj = new JSONObject(jsonStr);\n\n // Getting JSON Array node\n jsonArray = jsonObj.getJSONArray(TAG_TABLE_TEAMS);\n resultList = new ArrayList<String>();\n\n // looping through All results\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject c = jsonArray.getJSONObject(i);\n\n String teamName = c.getString(TAG_TEAMNAME);\n String teamColor = c.getString(TAG_TEAMCOLOR);\n\n\n resultList.add(teamName);\n resultList.add(teamColor);\n\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n Log.e(\"ServiceHandler\", \"Couldn't get any data from the url\");\n }\n }", "@Test\r\n\tpublic void loadTeams() {\r\n\t\tSet<Team> response = null;\r\n\t\tresponse = service.loadTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadTeams\r\n\t}", "public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }", "public String[] getTeamNames() throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT teamName FROM Team\");\n\t \n\t\t// Get the number of rows\n\t\tresultSet.last(); \t\t// Move to the last row\n\t\tint numRows = resultSet.getRow(); \t// Get the current row number\n\t\tresultSet.first(); \t// Move back to the first row\n\t\n\t\t// Create an array for the team names.\n\t\tString[] names = new String[numRows];\n\t \n\t\t// Populate the array with team names.\n\t\tfor (int index = 0; index < numRows; index++)\n\t\t{\n\t\t\t// Store the team name in the array.\n\t\t\tnames[index] = resultSet.getString(1);\n\t\t\tSystem.out.println(names[index]);\n\t\t\t// Go to the next row in the result set.\n\t\t\tresultSet.next();\n\t\t}\n\t \n\t\t// Close the statement object.\n\t\tstmt.close();\n\t \n\t\treturn names;\n\t}", "public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }", "@SuppressWarnings(\"unchecked\")\n private List createTeamList() {\n\n ArrayList result = new ArrayList();\n for( int i = 0 ; i < leagues_array.size() ; ++i ) {\n /* each group need each HashMap-Here for each group we have 3 subgroups */\n ArrayList secList = new ArrayList();\n for( int n = 0 ; n < SplashScreen.full_teams_array.get(i).size() ; n++ ) {\n HashMap child = new HashMap();\n child.put( \"Team\", SplashScreen.full_teams_array.get(i).get(n) );\n boolean favorite_found = false;\n for(int j=0; j<SplashScreen.new_favorites_array.size(); j++) {\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(SplashScreen.new_favorites_array.get(j)[1]) &&\n leagues_array.get(i).equals(SplashScreen.new_favorites_array.get(j)[0]) ) {\n favorite_found = true;\n }\n }\n if(favorite_found) { child.put( \"Favorite\", \"1\" ); }\n else { child.put( \"Favorite\", \"0\" ); }/*\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(favorite_team) &&\n leagues_array.get(i).equals(favorite_league) ) {\n child.put( \"Favorite\", \"1\" );\n } else {\n }\n child.put( \"Favorite\", \"0\" );/*\n }*/\n secList.add( child );\n }\n result.add( secList );\n }\n return result;\n }", "public List<VwTeams> getByEvent(int eventId)\n\t{\n\t\tList<VwTeams> results = new ArrayList<VwTeams>();\n\t\tVwTeams[] array = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tarray = dao.findWhereEventIdEquals(eventId);\n\t\t\t\n\t\t\tresults = Arrays.asList(array);\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results;\n\t}", "private void populateTeams() {\n\n // TODO: Can't get teams assigned to judges for now. Instead, getting all teams in an event\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + this.user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"events/\" + currEvent.getId() + \"/teams\",\n new BaseJsonHttpResponseHandler<Team[]>() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, String rawJsonResponse,\n Team[] response) {\n teams_lv = (ListView) findViewById(R.id.teams_lv);\n teamsArr = response;\n\n // \"All\" will be the default category\n displayedTeams = teamsArr;\n\n // Make an \"empty\" Event in the case that there are no Events.\n if (teamsArr.length == 0) {\n teamsArr = new Team[1];\n teamsArr[0] = new Team(-1, -1, \"(No teams. Please see an admin for help.)\",\n null);\n teams_lv.setAdapter(new TeamAdapter(SelectionActivity.this,\n teamsArr));\n } else {\n teams_lv.setAdapter(new TeamAdapter(SelectionActivity.this,\n teamsArr));\n teams_lv.setOnItemClickListener(new TeamClickListener());\n }\n Log.d(\"GET TEAMS\", \"success\");\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable error,\n String rawJsonData, Team[] errorResponse) {\n Log.d(\"GET TEAMS\", \"failure\");\n }\n\n @Override\n protected Team[] parseResponse(String rawJsonData, boolean isFailure)\n throws Throwable {\n\n if (!isFailure) {\n // Need to extract array from the first/outer JSON object\n JSONArray teamsJSONArr = new JSONObject(rawJsonData)\n .getJSONArray(\"event_teams\");\n return new Gson().fromJson(teamsJSONArr.toString(), Team[].class);\n } else return null;\n }\n });\n }", "Team getMyTeam();", "public interface TeamService {\n Teams getAllTeams();\n Team getTeamById(int id);\n Teams getSelectedTeams(int[] teamList);\n}", "TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);", "private void fetchTeams() {\n String url = Teams.TEAMS_URL;\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(final JSONObject response) {\n Gson gson = new Gson();\n //Deserialize\n mTeams = gson.fromJson(response.toString(), Teams.class);\n for (Team team : mTeams.getTeams()) {\n //Add each team to the nav drawer with the appropriate icon\n mNavigationView.getMenu().add(team.getName()).setIcon(Utils.getDrawableForTeam(team));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(final VolleyError error) {\n error.printStackTrace();\n }\n });\n //Singleton instance of Volley as per the documentation\n RequestQueue.getInstance(this).addToRequestQueue(request);\n }", "public List<TicketSite> getTicketSitesOfATeam(String teamId);", "public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}", "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}", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "private JSONArray teamToJson() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Hero h: team) {\r\n jsonArray.put(h.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }", "@ManyToMany(targetEntity = Team.class)\r\n @JoinTable(name = \"team_product\", joinColumns = { @JoinColumn(name = \"Product_id\") }, inverseJoinColumns = { @JoinColumn(name = \"Team_id\") })\r\n @BatchSize(size = 5)\r\n @JSON(include = false)\r\n @NotAudited\r\n public Collection<Team> getTeams() {\r\n return teams;\r\n }", "public String getTeam(int id){\r\n\t\treturn teamList.get(id);\r\n\t}", "List<Player> getPlayers();", "Set<String> getTeamSet(String userName) throws RemoteException, InterruptedException;", "List<SysTeam> selectByExample(SysTeamExample example);", "public Team getTeam() {\n return team;\n }", "public String[] getAvailableTeams() {\n\n int team1 = 0;\n int team2 = 0;\n if (activePlayers > 0) {\n for (int i = 0; i < activePlayers; i++) {\n if (players[i].getTeam() == teams[0]) {\n team1++;\n continue;\n }\n team2++;\n }\n\n String[] team = new String[2];\n if ((activePlayers == numMaxPlayers - 1) && (team1 == 0 || team2 == 0)) {\n if (team1 == 0) {\n team[0] = teams[0].toString();\n return team;\n }\n team[0] = teams[1].toString();\n return team;\n }\n }\n return new String[]{teams[0].toString(), teams[1].toString(), null};\n }", "public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }", "TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);", "public String getTeam() {\n return team;\n }", "private void displayTeams() {\n SwapTeamMembersController.calculateTeamConstraints();\n System.out.println(\"\\nTeams formed are:\");\n for (Team team: Team.allTeams) {\n System.out.println(Constraint.ANSI_GREEN + \"\\nThe team ID\\t\\t\\t\\t: \" + team.getTeamID() + Constraint.ANSI_RESET +\n \"\\nThe Project Assigned\\t: \" + team.getProjectAssigned().getProjectId() + \": \" + team.getProjectAssigned().getProjectTitle() +\n \"\\nThe team's fitness is\\t: \" + team.getTeamFitness());\n System.out.print(\"\\nThe Students IDs of students in this team are: \\n\");\n for (Student student: team.getStudentsInTeam()) {\n System.out.print(student.getId() + \"\\tName: \" + student.getFirstName() + \"\\t\\tGender : \" + student.getGender() + \"\\t\\tExperience : \" + student.getExperience() + \" years\\n\");\n }\n int j = 1;\n System.out.println(\"\\nConstraints met are (with weightage):\");\n for (Constraint c: team.getConstraintsMet()) {\n System.out.println(j + \". \" + c.getConstraintDescription() + \"\\t: \" + c.getWeightAge());\n j++;\n }\n }\n }", "private List<Team> extractTeamNamesFromFixtures(List<Fixture> fixtures) {\r\n\r\n\t\tList<Team> teams = new ArrayList<>();\r\n\r\n\t\tfor (Fixture fixture : fixtures) {\r\n\r\n\t\t\tOptional<Team> homeTeam = teams.stream().filter(t -> t.getName().equals(fixture.getHomeTeamName()))\r\n\t\t\t\t\t.findAny();\r\n\r\n\t\t\tif (!homeTeam.isPresent()) {\r\n\t\t\t\tTeam teamToAdd = new Team();\r\n\t\t\t\tteamToAdd.setName(fixture.getHomeTeamName());\r\n\t\t\t\tteamToAdd.setResourceId(((Number) fixture.getHomeTeamResourceId()).longValue());\r\n\t\t\t\tteamToAdd.setLogo(fixture.getHomeTeamBadge());\r\n\r\n\t\t\t\tteams.add(teamToAdd);\r\n\t\t\t}\r\n\r\n\t\t\tOptional<Team> awayTeam = teams.stream().filter(t -> t.getName().equals(fixture.getAwayTeamName()))\r\n\t\t\t\t\t.findAny();\r\n\r\n\t\t\tif (!awayTeam.isPresent()) {\r\n\t\t\t\tTeam teamToAdd = new Team();\r\n\t\t\t\tteamToAdd.setName(fixture.getAwayTeamName());\r\n\t\t\t\tteamToAdd.setResourceId(((Number) fixture.getAwayTeamResourceId()).longValue());\r\n\t\t\t\tteamToAdd.setLogo(fixture.getAwayTeamBadge());\r\n\r\n\t\t\t\tteams.add(teamToAdd);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn teams;\r\n\t}", "@Override\n public void onResponse(String response) {\n listTeams(response);\n\n }", "List<Player> listPlayers();", "public FightTeam team();", "public String getTeam() {\r\n\t\treturn Team;\r\n\t}", "public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@GetMapping (Constants.PATH_FETCH_TEAM_INFO)\n public ResponseEntity<ApiResponse> fetchTeams(Authentication authentication) {\n return ResponseEntity.ok(enterpriseService.getLoggedInUserTeams(Utility.getUserFromAuthentication(authentication)));\n }", "public String getHomeTeam();", "public Team getTeam() {\r\n\t\treturn team;\r\n\t}", "public ArrayList<Student> getTeamListFromTeamId(int teamId){\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE students.team_id = \" + teamId);\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 id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamid \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamid, prefRole);\r\n\t\t\tstudents.add(student);\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(students, new Comparator<Student>() {\r\n\t @Override public int compare(Student s1, Student s2) {\r\n\t \treturn s1.getRole() - s2.getRole();\r\n\t }\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\treturn students;\r\n\t}", "@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}", "Set<String> getMemberSet(String teamName) throws RemoteException, InterruptedException;", "int getTeam();", "public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }", "@Override\n public String getTeam(){\n return this.team;\n }", "public Person[] getTeamOf(Person actor);", "public List<Team> getTeams(Integer pageNum, String ifModifiedSince) throws ApiException {\n ApiResponse<List<Team>> localVarResp = getTeamsWithHttpInfo(pageNum, ifModifiedSince);\n return localVarResp.getData();\n }", "public String getAwayTeam();", "public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}", "public String getTeam() {\n\t\treturn team;\n\t}", "@Test\n @Transactional\n public void getAllTeams() throws Exception {\n // Initialize the database\n teamRepository.saveAndFlush(team);\n\n // Get all the teamList\n restTeamMockMvc.perform(get(\"/api/teams?sort=id,desc\")).andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(team.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].name\").value(hasItem(DEFAULT_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].description\")\n .value(hasItem(DEFAULT_DESCRIPTION.toString())))\n .andExpect(jsonPath(\"$.[*].level\").value(hasItem(DEFAULT_LEVEL)))\n .andExpect(jsonPath(\"$.[*].totalMember\").value(hasItem(DEFAULT_TOTAL_MEMBER)))\n .andExpect(jsonPath(\"$.[*].extraGroupName\")\n .value(hasItem(DEFAULT_EXTRA_GROUP_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].extraGroupDescription\")\n .value(hasItem(DEFAULT_EXTRA_GROUP_DESCRIPTION.toString())))\n .andExpect(jsonPath(\"$.[*].extraGroupTotalMember\")\n .value(hasItem(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER)));\n }", "private static ArrayList<Team> jsontoTeam(ArrayList<File> fileList, String path){\n ArrayList<Team> teamArray = new ArrayList<Team>();\r\n int count = 0;\r\n\r\n for(File file: fileList){\r\n try {\r\n //reads the file as a JsonElement\r\n JsonElement fileElement = JsonParser.parseReader(new FileReader(file));\r\n //converts the jsonElement into as jsonObject\r\n JsonObject fileObject = fileElement.getAsJsonObject();\r\n //reads team array and stores as a JsonArray\r\n JsonArray jsonArrayTeam = fileObject.get(\"team\").getAsJsonArray();\r\n\r\n String extra_comments = fileObject.get(\"extra_comments\").getAsString();\r\n teamArray.add(new Team(extra_comments,file.toString()));\r\n\r\n //searches through all JSON files converts to a team\r\n for(JsonElement tokimonElement: jsonArrayTeam){\r\n JsonObject tokimonJsonObject = tokimonElement.getAsJsonObject();\r\n try {\r\n String name = tokimonJsonObject.get(\"name\").getAsString();\r\n String id = tokimonJsonObject.get(\"id\").getAsString();\r\n\r\n JsonObject compatibilityObject = tokimonJsonObject.get(\"compatibility\").getAsJsonObject();\r\n Double score = compatibilityObject.get(\"score\").getAsDouble();\r\n if(score<0){\r\n System.out.println(\"Score less than 0\");\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n String comment = compatibilityObject.get(\"comment\").getAsString();\r\n teamArray.get(count).addToki(new Tokimon(name, id, new Compatibility(score, comment)));\r\n } catch(Exception e){\r\n e.printStackTrace();\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n count++;\r\n }\r\n return teamArray;\r\n }", "public List<TeamMember> findByUser(int userId) {\n return select().where(\"user_id\", userId).execute();\n }", "Team findByName(String name);", "public ResultSet getTeamInfo(String teamsname) throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT * FROM Team WHERE teamName = '\" + teamsname + \"'\");\n\t\t\n\t\treturn resultSet;\n\t\n\t}", "Team findById(Long id);", "public ApiResponse<List<Team>> getTeamsWithHttpInfo(Integer pageNum, String ifModifiedSince) throws ApiException {\n okhttp3.Call localVarCall = getTeamsValidateBeforeCall(pageNum, ifModifiedSince, null);\n Type localVarReturnType = new TypeToken<List<Team>>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public String getTeamName() {\r\n return teamName;\r\n }" ]
[ "0.8169899", "0.7543482", "0.75430626", "0.75279135", "0.73969823", "0.73935926", "0.73736906", "0.70983607", "0.70970535", "0.70303285", "0.6967513", "0.6943751", "0.68690974", "0.6816406", "0.6786953", "0.6776468", "0.66892236", "0.66285765", "0.659373", "0.65759325", "0.6551474", "0.6516578", "0.651282", "0.6464008", "0.6459231", "0.64017016", "0.63880366", "0.6318921", "0.6291231", "0.6275", "0.62668633", "0.6265504", "0.62563425", "0.62301505", "0.6190837", "0.6160077", "0.6155382", "0.61311823", "0.61245465", "0.61191815", "0.6116705", "0.6070231", "0.60213166", "0.5993674", "0.5945217", "0.59416693", "0.59389186", "0.59308654", "0.5930589", "0.59240043", "0.5913311", "0.5902494", "0.5901117", "0.5878128", "0.5877245", "0.58630687", "0.5859886", "0.58569396", "0.58550864", "0.5816801", "0.5749232", "0.57422096", "0.57375026", "0.5734148", "0.5718751", "0.5715701", "0.5692244", "0.5667731", "0.5644372", "0.56330496", "0.56310153", "0.5626723", "0.56097066", "0.56079894", "0.558224", "0.5568877", "0.5561095", "0.5531661", "0.55302817", "0.5465384", "0.54553825", "0.5443687", "0.54391015", "0.5431195", "0.5429121", "0.541327", "0.54116374", "0.540404", "0.5397433", "0.53951603", "0.53811264", "0.5374176", "0.53328836", "0.5323346", "0.53186435", "0.531273", "0.53124326", "0.53065044", "0.53028166", "0.5300242" ]
0.79425746
1
Returns the team associated with the name.
public static Team getTeam(long id) { return find().where().eq("id", id).findUnique(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}", "private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }", "Team findByName(String name);", "public SoccerTeam getTeam(String teamName) throws TeamNotFoundException {\n\n for (int i = 0; i < this.teams.size(); i++) {\n SoccerTeam team = this.teams.get(i);\n\n if (team.getName().equals(teamName)){\n return team;\n }\n }\n throw new TeamNotFoundException(\"Team that you are searching for is not found\");\n }", "public String getTeamName() {\r\n return teamName;\r\n }", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "public Team(String name) {\n this.name = name;\n }", "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "public String getTeamId() {\r\n\t\treturn teamName;\r\n\t}", "public String getTeam() {\n return team;\n }", "public Team get(Long id);", "public Team getTeam() {\n Team team = new Team();\n team.setTeamName(this.getTeamNameDataLabel().getText());\n team.setCaptain(this.getCaptainDataLabel().getText());\n if (this.getCoachDataLabel().equals(\"\")) {\n team.setCoach(null);\n } else {\n team.setCoach(this.getCoachDataLabel().getText());\n }\n if (this.getAchievementsDataLabel().equals(\"\")) {\n team.setAchievements(null);\n } else {\n team.setAchievements(this.getAchievementsDataLabel().getText());\n }\n return team;\n }", "@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}", "public String getTeam() {\n\t\treturn team;\n\t}", "public String getTeam() {\r\n\t\treturn Team;\r\n\t}", "public Team get(String teamID) {\n TeamDB tdb = new TeamDB();\n return tdb.get(teamID);\n }", "public String getTeam(int id){\r\n\t\treturn teamList.get(id);\r\n\t}", "Team getMyTeam();", "Team findById(Long id);", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "public Teams getTeamById(UUID id)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if(!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with \" + id + \" is not available\");\n return teamRepo.findById(id).get();\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser/{name}\")\n public JSONObject getTeamForUserPage(@PathVariable String name) {\n JSONArray teamJsonArray = getAllTeamsForUserPage();\n JSONObject jsonObject = new JSONObject();\n\n for (int i = 0; i < teamJsonArray.size(); i++) {\n if (teamJsonArray.get(i).toString().contains(name)) {\n return (JSONObject) teamJsonArray.get(i);\n }\n }\n return jsonObject;\n }", "public Team getTeam() {\r\n\t\treturn team;\r\n\t}", "public Team getTeam() {\n return team;\n }", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "@Override\n public String getTeam(){\n return this.team;\n }", "public Team(String name) {\r\n this.name = name;\r\n team = new ArrayList<Hero>();\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public int getTeam() {\n return team_;\n }", "public int getTeam() {\n return team_;\n }", "public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }", "public int getTeamIdByName(String name) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdByNameRecords_sql = \"SELECT id FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdByNameRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "public String getTeamNameById(int id) {\n\t\tString t = \"\";\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT name FROM \" + team_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tt = rs.getString(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}", "public void setTeamName(String teamName) {\n\t\tthis.teamName = teamName;\n\t}", "public ResultSet getTeamInfo(String teamsname) throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT * FROM Team WHERE teamName = '\" + teamsname + \"'\");\n\t\t\n\t\treturn resultSet;\n\t\n\t}", "@Override\r\n\tpublic String getTeam() {\n\t\treturn null;\r\n\t}", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public Team(String name) {\n\t\tthis(name, Color.BLACK);\n\t}", "public int getTeam() {\n return team;\n }", "public int getTeamIdByPlayerName(String pName) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdByPlayerNameRecords_sql = \"SELECT idTeam FROM \" + player_table + \" WHERE name='\" + pName + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdByPlayerNameRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "public static Team getSecondPlace() {\n\t\tif (matches != null && matches.length > 0 && matches[0] != null)\n\t\t\treturn matches[0].getLoser();\n\t\treturn null;\n\t}", "public SoccerTeam getTeamOne() {\n return teamOne;\n }", "public static int findByName(String teamName) throws DALException {\n\n\t\t\t\t\tConnection cnx = null;\n\t\t\t\t\tPreparedStatement pstmt = null;\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\tint idTeam = 0;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Connection DB\n\t\t\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_NAME_TEAM);\n\t\t\t\t\t\tpstmt.setString(1, teamName);\n\t\t\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\t\tidTeam = rs.getInt(\"idTeams\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tthrow new DALException(\"Problem - search teams By Name - TeamDAO - Request : \"+pstmt+ \" \" + e.getMessage());\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\t\t\tcnx.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn idTeam;\n\n\t\t\t\t}", "int getTeam();", "public Team getTeam1 () {\n return team1;\n }", "public PublicSummoner getSummonerByName(String name) {\n return client.sendRpcAndWait(SERVICE, \"getSummonerByName\", name);\n }", "public FightTeam team();", "public boolean findTeam(String teamName) throws SQLException {\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:users\");\n\t\tStatement stmt = conn.createStatement();\n\t\tString SQL = \"select * from leaguestandings where TeamName = '\" + teamName + \"';\";\n\n\t\tResultSet rset = stmt.executeQuery(SQL);\n\n\t\tif (rset.next()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public Team getTeam() throws PlayerHasNoTeamException {\r\n\t\tif (team == null) {\r\n\t\t\tthrow new PlayerHasNoTeamException(this);\r\n\t\t}\r\n\t\treturn team;\r\n\t}", "public Team selectTeam() {\r\n \r\n String[] list = new String[controller.getTeams().size()];\r\n for (int i = 0; i < controller.getTeams().size(); i++) {\r\n list[i] = controller.getTeams().get(i).getName();\r\n }\r\n\r\n JComboBox cmbOption = new JComboBox(list);\r\n int input = JOptionPane.showOptionDialog(null, cmbOption, \"Select Team that your like Delete\",JOptionPane.DEFAULT_OPTION,JOptionPane.QUESTION_MESSAGE, null, null, null);\r\n if(input==-1){\r\n return null;\r\n }\r\n Team teamAux = controller.searchTeam((String) cmbOption.getSelectedItem());\r\n return teamAux;\r\n }", "public String nodeTeam(String id)\n\t{\n\t\treturn getNode(id).team;\n\t}", "public String getHomeTeam();", "public short getTeam() {\n\n return m_team;\n }", "public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public League getLeagueName() {\n return leagueName;\n }", "public String getName(){\n\t\treturn this.tournamentName;\n\t}", "public VwTeams get(int teamId)\n\t{\n\t\tVwTeams [] results = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresults = dao.findWhereTeamIdEquals(teamId);\t\t\t\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results.length == 0 ? null : results[0];\n\t}", "String getWonTeam() {\r\n return this.teamName;\r\n }", "public Player getTeam(Player player) {\n if (teams.containsKey(player)) {\n return player;\n }\n for (Player p : teams.keySet()) {\n if (teams.get(p).contains(player)) {\n return p;\n }\n }\n return null;\n }", "public String[] getTeamNames()\r\n\t{\r\n\t\t\r\n\t\tString[] names = new String[NUM_TEAMS];\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i++)\r\n\t\t{\r\n\t\t\tnames[i] = teams.get(i).getName();\t\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public static Team whoWonGameTeam() {\r\n\t\tint highest = Main.winScoreNumb;\r\n\t\tTeam winner = null;\r\n\t\t\r\n\t\t//Winner is team one.\r\n\t\tif (Utils.stringToInt(Main.team1Score) >= highest) {\r\n\t\t\thighest = Utils.stringToInt(Main.team1Score);\r\n\t\t\twinner = Main.teamOne;\r\n\t\t}\r\n\t\t//Winner is team two.\r\n\t\tif (Utils.stringToInt(Main.team2Score) >= highest) {\r\n\t\t\thighest = Utils.stringToInt(Main.team2Score);\r\n\t\t\twinner = Main.teamTwo;\r\n\t\t}\r\n\t\t\r\n\t\treturn winner;\r\n\t}", "public Player getTeamMate(){\n\t\tif(team == null) return null;\n\t\tCollection<Player> players = team.getPlayers();\n\t\tfor(Player p : players){\n\t\t\tif(!p.equals(this))return p; \n\t\t}\n\t\treturn null;\n\t}", "public int getTeamId() {\n\t\treturn teamId;\n\t}", "public String getHomeTeam(){\n\t\treturn _homeTeam.getTeamName();\n\t}", "TeamMember(String _name, String _title) {\r\n this.name = _name;\r\n this.title = _title;\r\n }", "public String getAwayName(String team) {\n\n return getGameInfo(team, \"away_team_name\");\n }", "TeamDTO findOne(Long id);", "public static Team getWinner() {\n\t\tif (matches != null && matches.length > 0 && matches[0] != null)\n\t\t\treturn matches[0].getWinner();\n\t\treturn null;\n\t}", "public static Team find(String id) throws SQLException\n {\n String query = \"SELECT * FROM team WHERE teamID = ?\";\n PreparedStatement stmt = db.getPreparedStatement(query);\n stmt.setString(1, id);\n Team team = null;\n ResultSet r = db.executeQuery(stmt);\n if (r.next())\n {\n team = new Team(r.getString(\"teamID\"), r.getString(\"motto\"), r.getInt(\"totalKittiesKlicked\"));\n }\n\n return team;\n }", "public String getAwayTeam();", "@Given(\"^I navigate to team page \\\"([^\\\"]*)\\\"$\")\n public void navigate_to_teamPage(String nameTeam){\n addNewTeam = mainPage.clickNewTeam();\n teamPage = addNewTeam.createTeam(nameTeam);\n }", "Match getTeam1LooserOfMatch();", "public int getTeamId() {\n return teamId;\n }", "public List<Hero> getTeam() {\r\n return team;\r\n }", "public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }", "public static List<Team> getTeams() {\n return find().all();\n }", "public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }", "public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}", "public Player getPlayerinTable(String name) {\r\n for (Player player : this.players) {\r\n if (player.getName().equals(name)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "@Override\n\tpublic int getTeam() {\n\t\treturn 0;\n\t}", "public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }", "@Override\n\tpublic List<ProjectTeamBean> selectProjectTeamName(String word) {\n\t\treturn null;\n\t}", "@Override\n\tpublic TeamInfo findById(String id) {\n\t\treturn repository.findOne(id);\n\t}", "private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }", "public String getSummonerInternalNameByName(String name) {\n return client.sendRpcAndWait(SERVICE, \"getSummonerInternalNameByName\", name);\n }", "public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }", "public League getLeagueDetails(String leagueName) {\n return League.getLeagueByName(leagueName);\n }", "TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);", "private boolean teamExist(String teamName) {\n boolean doesExist = false;\n for (Team team : scoreboard.getTeams()) if (team.getName().equals(teamName)) doesExist = true;\n return doesExist;\n }", "public int getTeamID() {\n\t\treturn teamID;\n\t}", "public static Team findById(int id) throws DALException {\n\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tTeam team = new Team();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_ID_TEAM);\n\t\t\t\tpstmt.setInt(1, id);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\tif (rs.next()) {\n\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"idTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"name\"));\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new DALException(\"Problem - search teams By Id - TeamDAO - Request :\"+ pstmt+ \" Team: \" + team + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn team;\n\n\t\t}", "public static Team readCurrentTeamData(String t) {\n\t\t//FORMAT: Name, Region, Seed\n\t\tString[] teamData = t.split(\",\");\n\t\treturn new Team(teamData[0], teamData[1], Integer.parseInt(teamData[2]));\n\t}", "public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }", "@GET\n @Path(\"Current/Team/{teamId}\")\n public Response getTeamByCurrentUser(@PathParam(\"teamId\") Long teamId) {\n Response r = Response.noContent().build();\n User currentUser = userFacade.getCurrentUser();\n final Collection<Game> playedGames = gameFacade.findRegisteredGames(currentUser.getId());\n for (Game g : playedGames) {\n Collection<Team> teams = g.getTeams();\n for (Team t : teams) {\n if (teamId.equals(t.getId())) {\n for (Player p : t.getPlayers()) {\n if (p.getUserId().equals(currentUser.getId())) {\n r = Response.ok().entity(t).build();\n }\n }\n }\n }\n }\n return r;\n }", "public String getProjectTeamName(){\n return \"The name of the project of this researcher is \"+\n name_of_project_team +\n \"\\n*******\\n\";\n }" ]
[ "0.8124412", "0.80340236", "0.79963064", "0.7884689", "0.7661304", "0.7533698", "0.73021835", "0.72842056", "0.72842056", "0.71917963", "0.7070747", "0.70351726", "0.6744629", "0.67437416", "0.67312056", "0.6729789", "0.6708215", "0.6668017", "0.6647252", "0.6635226", "0.6620405", "0.6584613", "0.6526338", "0.65078455", "0.65066373", "0.6480748", "0.64692384", "0.6458918", "0.63926446", "0.63815445", "0.63370854", "0.63203955", "0.6311102", "0.63033193", "0.62925607", "0.6250341", "0.6200639", "0.6192716", "0.61923265", "0.61523676", "0.60911125", "0.60911125", "0.6044553", "0.6037523", "0.6026186", "0.6015719", "0.6006275", "0.6000092", "0.5999807", "0.5984181", "0.59814334", "0.59752774", "0.595963", "0.59463894", "0.5941061", "0.5938301", "0.59374994", "0.5927573", "0.59015715", "0.58982325", "0.5897362", "0.5876546", "0.58546066", "0.58504045", "0.58451927", "0.58423644", "0.58391166", "0.5826588", "0.58260643", "0.5825792", "0.5815619", "0.5778804", "0.5777696", "0.57715225", "0.57570624", "0.574066", "0.5727194", "0.57181424", "0.5713488", "0.5704686", "0.56888056", "0.5677467", "0.5674406", "0.5671134", "0.5658914", "0.5650705", "0.5650672", "0.5613359", "0.5603452", "0.5598895", "0.5587524", "0.55790335", "0.5575023", "0.5559387", "0.5548142", "0.5544105", "0.55371475", "0.55262506", "0.55250835", "0.55179316" ]
0.64196664
28
Searches the Team database with the terms.
public static Page<Team> find(String term, String sort, int page) { term = "%" + term + "%"; Query<Team> q = Ebean.createQuery(Team.class); q.where().disjunction().add(Expr.ilike("teamName", term)).add(Expr.ilike("location", term)) .add(Expr.ilike("skillLevel", term)); return q.orderBy(sort).findPagingList(50).setFetchAhead(false).getPage(page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (double) 1 + Math.log((double) matches.getPositionList().size()) *\n Math.log((double) N / (double) postingLists.size());\n resultsCollector.add(new DocCollector(matches.getDocId(), score));\n }\n }\n }\n }", "List<DataTerm> search(String searchTerm);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Test\n public void term() throws AtlasBaseException {\n SearchParameters params = new SearchParameters();\n params.setTermName(SALES_TERM+\"@\"+SALES_GLOSSARY);\n\n List<AtlasEntityHeader> entityHeaders = discoveryService.searchWithParameters(params).getEntities();\n\n Assert.assertTrue(CollectionUtils.isNotEmpty(entityHeaders));\n assertEquals(entityHeaders.size(), 10);\n }", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "protected void searchByIssue(LinkedList<Ticket> ticketQueue) {\n LinkedList<Ticket> searchstring = new LinkedList<Ticket>();\n printAllTickets();\n if (ticketQueue.size() == 0)\n {\n System.out.println(\"No tickets to search for, please try again.\");\n return;\n }\n String search = Input.getStringInput(\"Enter keyword of ticket to issue.\");\n for (Ticket tx : ticketQueue)\n {\n if (tx.getDescription().contains(search))\n {\n searchstring.add(tx);\n }\n }\n System.out.println(\"List of possible tickets.\" + searchstring);\n if (searchstring.size() == 0)\n {\n System.out.println(\"No tickets matching that description.\");\n searchByIssue(ticketQueue);\n }\n // Ask user for search term\n // Use searchDescription() method to get list of matching Tickets\n // display list\n }", "@Test (dataProvider = \"searchTerms\")\n public void searchForKeyword (String searchTerms, String expectedContainedTerm) {\n SearchPage searchPage = homePage.clickForAdvansedSearchLink();\n searchPage.searchByKeywordAndSubmit(searchTerms);\n Assert.assertEquals(searchPage.getSearchResultsOnPageCount(), 10, \"Actual results on page number is wrong\");\n Assert.assertTrue(searchPage.Title(expectedContainedTerm), \"Expected search term is not found in result list\");\n }", "SearchResultCompany search(String keywords);", "private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }", "public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}", "public static ArrayList<Result> findMatches(Query query, DataManager myVocab){\n\n\t\t//Uncomment this for logging in this class\t\n//\t\tmyLogger.setLevel(Level.INFO); \n\n\t\t// get the term we're going to search for and\n\t\t// take out any leading or trailing whitespaces\n\t\tString querystr = query.getQuery();\n\t\tquerystr = querystr.trim();\n\t\tString uncleaned = querystr;\n\t\t\n\t\t// This is in case of numeric entries. Google Refine doesn't seem\n\t\t// to have int cell types, instead it adds an invisible .0 to all\n\t\t// numbers. This fixes that issue, as it sometimes causes false negatives.\n\t\tif (querystr.endsWith(\".0\")){\n\t\t Pattern p = Pattern.compile(\"[^0-9\\\\.]+\");\n\t\t Matcher m = p.matcher(querystr);\n\t\t boolean result = m.find();\n\t\t if (!result){\n\t\t \t querystr = querystr.substring(0, querystr.length()-2);\n\t\t }\n\t\t}\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\n\t\tif (myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\t\t\n\t\t// Clean up the query string if it isn't case/punctuation sensitive\n\t\tif (!myVocab.capsSensitive()){\t\t\n\t\t\tquerystr = querystr.toLowerCase();\n\t\t}\n\t\tif (! myVocab.punctSensitive()){\t\t\n\t\t\tquerystr = querystr.replaceAll(\"[\\\\W_]\", \"\");\n\t\t}\n\t\t\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\t\tif(myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\n\t\tString type = query.getType();\n\n\t\t// This ArrayList is the results that are going to be returned. \n\t\tArrayList<Result> results = getDirectMatches(myVocab, querystr, uncleaned, type);\n\t\t\n\t\t// If there's a perfect match return it.\n\t\tif (results.size() == 1 && results.get(0).match){\n\t\t\treturn results;\n\t\t}else{\n\t\t\t// Otherwise, add the initial ones and try matching\n\t\t\t// based on distance to vocabulary terms.\n\t\t\tresults.addAll(distanceMatching(query, myVocab));\n\t\t\t\n\t\t\t// Split the original query term by space and non-alphanumeric characters \n\t\t\t// to find how many words there are.\n\t\t\t//querystr = query.getQuery().replaceAll(\"[\\\\W_]\", \" \");\n\t\t\tString [] termList = querystr.split(\" \");\n\t\t\t\n\t\t\t// if there's more than one, run bagOfWords\n\t\t\t// which tries to find a match for each of the words.\n\t\t\tif (termList.length > 1){\n\t\t\t\tresults.addAll(bagOfWords(query, myVocab));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Clean the results: no duplicates\n\t\t// no extra results to return, and sorted\n\t\t// them by score before returning them\n\t\tresults = removeDuplicates(results);\n\t\t\n\t\t// They do not need to be reduced in \n\t\t// number if there are fewer than \n\t\t// the max results.\n\t\t// The pruneResults sorts them\n\t\t// by score already.\n\t\tif(query.getLimit()!=null){\n\t\t\tresults = pruneResults(results,Integer.parseInt(query.getLimit()));\n\t\t}else{\n\t\t\tresults = pruneResults(results,MAX_RESULTS);\n\t\t}\n\t\t\t\n\t\tresults = sortByScore(results);\n\t\tfor (int i = 0; i< results.size(); i++){\n//\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+ \" is bigger than 100?\");\n\t\t\tif(results.get(i).getScore() > (double)100){\n\t\t\t\tresults.get(i).setScore((double)100 - (results.get(i).getScore()-(double)100));\n//\t\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+\" is bigger than 100! and was set to \"+\n//\t\t\t\t\t\t((double)100 - (results.get(i).getScore()-(double)100)));\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "public void SearchTutor() {\n\t\t\n\t}", "public static void searchJobs(String searchTerm) {\n\n for (int i = 0; i > PostJob.allJobs.size(); i++) {\n\n\n if (PostJob.allJobs.contains(searchTerm)) {\n int itemIndx = PostJob.allJobs.indexOf(searchTerm);\n String output = PostJob.allJobs.get(itemIndx);\n System.out.print(\"Available jobs within your search terms\" + output);\n\n }\n }\n }", "@Test\n public void testFullTextSearch_on_a_field() {\n ReadResponse resp = factual.fetch(TABLE,\n new Query().field(\"name\").search(\"Fried Chicken\"));\n\n for (String name : resp.mapStrings(\"name\")) {\n assertTrue(name.toLowerCase().contains(\"frie\")\n || name.toLowerCase().contains(\"fry\")\n || name.toLowerCase().contains(\"chicken\"));\n }\n }", "@In String search();", "public void search() {\r\n \t\r\n }", "public FindCommand(String searchTerms) {\n super(false);\n this.searchTerms = searchTerms;\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "void search();", "void search();", "public static void search(Connection connection) throws SQLException {\r\n\r\n //search for toy by giving only the name of the toy\r\n System.out.println(\"SEARCH FOR ITEM\\nFormat (Toy) example: Barbie\");\r\n Scanner scan = new Scanner(System.in);\r\n Statement statement = connection.createStatement();\r\n\r\n //store toy from user as a string\r\n String toy = scan.nextLine();\r\n\r\n //result is where the toy is = to the same name in MySQL database\r\n ResultSet results = statement.executeQuery(\"SELECT id, toy, company, qty FROM toy_stock WHERE toy='\" + toy + \"'\");\r\n\r\n //print the entry of that given toy from the MySQL database\r\n if (results.next()) {\r\n System.out.println(results.getInt(\"id\") + \", \"\r\n + results.getString(\"toy\") + \", \"\r\n + results.getString(\"company\") + \", \"\r\n + results.getInt(\"qty\"));\r\n } else {\r\n //else the toy the user search for is not in the database\r\n System.out.println(\"'\" + toy + \"' unfortunately doesn't exist in the Database\\n\");\r\n }\r\n //return to main menu\r\n menu(connection);\r\n }", "public void onSearchResults(String term, List<WikiPage> results);", "@Test\n public void term_tag() throws AtlasBaseException {\n SearchParameters params = new SearchParameters();\n params.setTermName(SALES_TERM+\"@\"+SALES_GLOSSARY);\n params.setClassification(METRIC_CLASSIFICATION);\n\n List<AtlasEntityHeader> entityHeaders = discoveryService.searchWithParameters(params).getEntities();\n\n Assert.assertTrue(CollectionUtils.isNotEmpty(entityHeaders));\n for(AtlasEntityHeader e : entityHeaders){\n System.out.println(e.toString());\n }\n assertEquals(entityHeaders.size(), 4);\n }", "public void setSearchTerms(String searchTerms) {\r\n this.searchTerms = searchTerms;\r\n }", "protected static LinkedList<Ticket> searchDescriptions(LinkedList<Ticket> tickets)\n {\n LinkedList<Ticket> matchingTickets = new LinkedList<>();\n Scanner scan = new Scanner(System.in);\n String searchTerm = scan.nextLine();\n\n // Loop through all unresolved tickets and add all containing the search term in their description.\n for (Ticket t : tickets)\n {\n if (t.getDescription().contains(searchTerm))\n {\n matchingTickets.add(t);\n }\n }\n\n return matchingTickets;\n }", "@Override\n\tpublic List<Product> findByName(String term) {\n\t\treturn productDAO.findByNameLikeIgnoreCase(\"%\" + term + \"%\");\n\t}", "public void actionPerformed(ActionEvent e) {\n displayInfoText(\" \");\n // Turn the search string into a Query\n String queryString = queryWindow.getText().toLowerCase().trim();\n query = new Query(queryString);\n // Take relevance feedback from the user into account (assignment 3)\n // Check which documents the user has marked as relevant.\n if (box != null) {\n boolean[] relevant = new boolean[box.length];\n for (int i = 0; i < box.length; i++) {\n if (box[i] != null)\n relevant[i] = box[i].isSelected();\n }\n query.relevanceFeedback(results, relevant, engine);\n }\n // Search and print results. Access to the index is synchronized since\n // we don't want to search at the same time we're indexing new files\n // (this might corrupt the index).\n long startTime = System.currentTimeMillis();\n synchronized (engine.indexLock) {\n results = engine.searcher.search(query, queryType, rankingType);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n // Display the first few results + a button to see all results.\n //\n // We don't want to show all results directly since the displaying itself\n // might take a long time, if there are many results.\n if (results != null) {\n displayResults(MAX_RESULTS, elapsedTime / 1000.0);\n } else {\n displayInfoText(\"Found 0 matching document(s)\");\n\n if (engine.speller != null) {\n startTime = System.currentTimeMillis();\n SpellingOptionsDialog dialog = new SpellingOptionsDialog(50);\n String[] corrections = engine.speller.check(query, 10);\n elapsedTime = System.currentTimeMillis() - startTime;\n System.err.println(\"It took \" + elapsedTime / 1000.0 + \"s to check spelling\");\n if (corrections != null && corrections.length > 0) {\n String choice = dialog.show(corrections, corrections[0]);\n if (choice != null) {\n queryWindow.setText(choice);\n queryWindow.grabFocus();\n\n this.actionPerformed(e);\n }\n }\n }\n }\n }", "public void busqueda() {\r\n\r\n try {\r\n\r\n String preg = JOptionPane.showInputDialog(\"Buscar:\");\r\n Query query = new Query(preg);\r\n QueryResult result = twitter.search(query);\r\n for (Status status : result.getTweets()) {\r\n System.out.println(\"@\" + status.getUser().getScreenName() + \":\" + status.getText());\r\n }\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void search() {\n }", "private boolean searchOntology(String term) {\n boolean found;\n if (ontologyOwlClassVocabulary.containsKey(term)\n || ontologyOWLDataPropertyVocabulary.containsKey(term)\n || ontologyOWLNamedIndividualVocabulary.containsKey(term)\n || ontologyOWLObjectPropertylVocabulary.containsKey(term)) {\n found = true;\n } else {\n found = false;\n }\n return found;\n }", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "protected static LinkedList<Ticket> searchByName(LinkedList<Ticket> tickets)\n {\n LinkedList<Ticket> matchingTickets = new LinkedList<>();\n Scanner scan = new Scanner(System.in);\n String searchTerm = scan.nextLine();\n\n\n for (Ticket t : tickets)\n {\n if (t.getReporter().contains(searchTerm))\n {\n matchingTickets.add(t);\n }\n }\n\n return matchingTickets;\n }", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public interface DocumentRelatedTermsSearcher {\n List<ScoredTerm> getDocumentRelatedTerms(int docId, String term) throws SearchException;\n}", "List<Cemetery> search(String query);", "public void searchFlights();", "public void doSearch(String searchText){\n }", "List<Corretor> search(String query);", "private void search() {\n if (dateFind.getValue() == null) {\n dateFind.setValue(LocalDate.now().minusDays(DEFAULT_PERIOD));\n }\n Long days = ChronoUnit.DAYS.between(dateFind.getValue(), LocalDate.now());\n final List<Project> findProject = ServiceFactory.getProjectService().getFindProject(days, comboProject.getValue());\n observableProjects.clear();\n observableProjects.addAll(findProject);\n table.setItems(observableProjects);\n }", "public static ArrayList<Movie> getMoviesBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<Movie> movieList = gson.fromJson(\n moviesJson.get(\"movies\"),\n new TypeToken<ArrayList<Movie>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }", "public static void search(String word){\n if(index.containsKey(word)){\n System.out.println(\"word \" + word + \" displays in :\");\n HashSet<String> list = index.get(word);\n for(String str:list){\n System.out.println(str);\n }\n }\n else{\n System.out.println(\"word \" + word + \" doesn't found!\");\n }\n }", "@Override\n protected void query(CompletionResultSet completionRS, Document doc, int caretOffset) {\n // First, we retrieve the filters defined for the hAtom microformat completion\n String strFilter = Filter.EMPRTY_STRING;\n Filter filter = Filter.getFilter();\n \n try {\n StyledDocument styledDoc = (StyledDocument) doc; \n // Get the filter's text based on actual carte position.\n strFilter = filter.getText(styledDoc, caretOffset);\n \n } catch (Exception ex) {\n ex.printStackTrace();\n // if an error occurs, an empty filter is set, so that the completion popup \n // will be filled with all the hAtom keywords.\n strFilter = Filter.EMPRTY_STRING;\n }\n\n // Lista completa dei tag/parole chiave hAtom\n List<String> hatomTags = TagCache.getCache().getTagList();\n\n // Gets the hAtom keywords that match the given filter value.\n for (String tag : hatomTags) {\n boolean startWithFilter = tag.startsWith(strFilter); \n if (!tag.equals(Filter.EMPRTY_STRING) && startWithFilter) {\n completionRS.addItem(new HatomCompletionItem(tag, filter.getFilterOffset(), caretOffset));\n }\n }\n\n // This is required by the Netbeans API docs.\n // After finish() is invoked, no further modifications to the result set are allowed.\n completionRS.finish();\n\n }", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "public void search() throws SQLException;", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}", "public SearchResults search(String queryString) {\n\n Timer.Context ctx = m_searchTimer.time();\n\n SearchResults searchResults = new SearchResults();\n\n for (String term : s_tokenSplitter.splitToList(queryString)) {\n\n Term t = Term.parse(term);\n\n Statement searchQuery = select(Constants.Schema.C_TERMS_RESOURCE).from(Constants.Schema.T_TERMS)\n .where(eq(Constants.Schema.C_TERMS_CONTEXT, Context.DEFAULT_CONTEXT.getId()))\n .and( eq(Constants.Schema.C_TERMS_FIELD, t.getField()))\n .and( eq(Constants.Schema.C_TERMS_VALUE, t.getValue()));\n\n // TODO: Use async DB calls; Get attrs and metrics concurrently\n for (Row row : m_session.execute(searchQuery.toString())) { // FIXME: toString()?\n String id = row.getString(Constants.Schema.C_TERMS_RESOURCE);\n Optional<Map<String, String>> attrs = fetchResourceAttributes(Context.DEFAULT_CONTEXT, id);\n Collection<String> metrics = fetchMetricNames(Context.DEFAULT_CONTEXT, id);\n\n searchResults.addResult(new Resource(id, attrs), metrics);\n }\n }\n\n try {\n return searchResults;\n }\n finally {\n ctx.stop();\n }\n }", "abstract public void search();", "public void onSearchSubmit(String queryTerm);", "public void setTerms(Term[] terms) { this.terms = terms; }", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);", "private void search(String product) {\n // ..\n }", "@Override\r\n\tpublic List<QnAVO> searchQnA(String searchOption, String keyword, int boardNum) {\n\t\treturn QnARepository.searchQnA(searchOption, keyword, boardNum);\r\n\t}", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "static QueryVariant getTermsQuery(Map<String, ?> terms, boolean mustMatchAll) {\n\t\tBoolQuery.Builder fb = QueryBuilders.bool();\n\t\tint addedTerms = 0;\n\t\tboolean noop = true;\n\t\tQueryVariant bfb = null;\n\n\t\tfor (Map.Entry<String, ?> term : terms.entrySet()) {\n\t\t\tObject val = term.getValue();\n\t\t\tif (!StringUtils.isBlank(term.getKey()) && val != null && Utils.isBasicType(val.getClass())) {\n\t\t\t\tString stringValue = val.toString();\n\t\t\t\tif (StringUtils.isBlank(stringValue)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tMatcher matcher = Pattern.compile(\".*(<|>|<=|>=)$\").matcher(term.getKey().trim());\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tbfb = range(matcher.group(1), term.getKey(), stringValue);\n\t\t\t\t} else {\n\t\t\t\t\tif (nestedMode()) {\n\t\t\t\t\t\tbfb = (QueryVariant) term(new org.apache.lucene.search.\n\t\t\t\t\t\t\t\tTermQuery(new Term(term.getKey(), stringValue))).build();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbfb = QueryBuilders.term().field(term.getKey()).value(v -> v.stringValue(stringValue)).build();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (mustMatchAll) {\n\t\t\t\t\tfb.must(bfb._toQuery());\n\t\t\t\t} else {\n\t\t\t\t\tfb.should(bfb._toQuery());\n\t\t\t\t}\n\t\t\t\taddedTerms++;\n\t\t\t\tnoop = false;\n\t\t\t}\n\t\t}\n\t\tif (addedTerms == 1 && bfb != null) {\n\t\t\treturn bfb;\n\t\t}\n\t\treturn noop ? null : fb.build();\n\t}", "public abstract Set<String> getTerms(Document doc);", "public List searchProduct(String searchTerms) {\n ResultSet rsType = database.searchProduct(searchTerms);\n List<Product> searchedProducts = new ArrayList<>();\n try {\n while (rsType.next()) {\n searchedProducts.add(loadProductFromId(rsType.getInt(\"productid\")));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n if (searchedProducts.isEmpty()) {\n throw new NoSuchProductException();\n }\n\n return searchedProducts;\n }", "List<PilotContainer> Search(String cas, String word);", "public void verifySearchResultsContainsItem(String... terms) {\r\n\t\tString noOfPagesContainer = getDriver()\r\n\t\t\t\t.findElement(\r\n\t\t\t\t\t\tBy.cssSelector(\"div.page-links > span.aui-paginator-current-page-report.aui-paginator-total\"))\r\n\t\t\t\t.getText().trim();\r\n\t\tSystem.out.println(noOfPagesContainer);\r\n\t\tint noOfPages = tools.StringUtils.getAllIntegerNumbersFromString(\r\n\t\t\t\tnoOfPagesContainer).get(1);\r\n\t\tSystem.out.println(noOfPages);\r\n\t\tfor (int i = 0; i < noOfPages; i++) {\r\n\r\n\t\t\tList<WebElement> searchResults1 = getDriver().findElements(\r\n\t\t\t\t\tBy.cssSelector(\".portlet-section-body.results-row\"));\r\n\t\t\tList<WebElement> searchResults3 = getDriver()\r\n\t\t\t\t\t.findElements(\r\n\t\t\t\t\t\t\tBy.cssSelector(\".portlet-section-alternate.results-row.alt\"));\r\n\r\n\t\t\tList<WebElement> searchResults = new ArrayList<WebElement>();\r\n\r\n\t\t\tsearchResults.addAll(searchResults1);\r\n\t\t\tsearchResults.addAll(searchResults3);\r\n\t\t\tsearchResults.remove(0);\r\n\r\n\t\t\tSystem.out.println(\"size: \" + searchResults.size());\r\n\r\n\t\t\tfor (WebElement searchResult : searchResults) {\r\n\r\n\t\t\t\t// boolean found = false;\r\n\r\n\t\t\t\tSystem.out.println(\"element text: \" + searchResult.getText());\r\n\r\n\t\t\t\tfor (String term : terms) {\r\n\t\t\t\t\tSystem.out.println(term);\r\n\r\n\t\t\t\t\tif (term.contains(\"-\")) {\r\n\t\t\t\t\t\tString daysRange = term;\r\n\t\t\t\t\t\tSystem.out.println(daysRange);\r\n\t\t\t\t\t\tdaysRange.trim();\r\n\r\n\t\t\t\t\t\tint lowLimit = tools.StringUtils\r\n\t\t\t\t\t\t\t\t.getAllIntegerNumbersFromString(daysRange).get(\r\n\t\t\t\t\t\t\t\t\t\t0);\r\n\t\t\t\t\t\tSystem.out.println(\"lowLimit = \" + lowLimit);\r\n\t\t\t\t\t\tint highLimit = tools.StringUtils\r\n\t\t\t\t\t\t\t\t.getAllIntegerNumbersFromString(daysRange).get(\r\n\t\t\t\t\t\t\t\t\t\t1);\r\n\t\t\t\t\t\tSystem.out.println(\"highLimit = \" + highLimit);\r\n\t\t\t\t\t\tString days = searchResult.findElement(\r\n\t\t\t\t\t\t\t\tBy.cssSelector(\"td:nth-child(3)\")).getText();\r\n\t\t\t\t\t\tint dayNo = Integer.parseInt(days);\r\n\t\t\t\t\t\tSystem.out.println(dayNo);\r\n\t\t\t\t\t\tif (!(dayNo >= lowLimit && dayNo <= highLimit)) {\r\n\t\t\t\t\t\t\tAssert.fail(String\r\n\t\t\t\t\t\t\t\t\t.format(\"The list doesn't contain the correct data according to the applied filter\"));\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tif (!searchResult.getText().toLowerCase()\r\n\r\n\t\t\t\t\t\t.contains(term.toLowerCase())) {\r\n\t\t\t\t\t\t\tAssert.fail(String\r\n\t\t\t\t\t\t\t\t\t.format(\"The '%s' search result item does not contain '%s'!\",\r\n\t\t\t\t\t\t\t\t\t\t\tsearchResult.getText(), term));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (i < noOfPages - 1) {\r\n\t\t\t\t\tgetDriver()\r\n\t\t\t\t\t\t\t.findElement(\r\n\t\t\t\t\t\t\t\t\tBy.cssSelector(\"div.page-links > a.aui-paginator-link.aui-paginator-next-link\"))\r\n\t\t\t\t\t\t\t.click();\r\n\r\n\t\t\t\t\twaitABit(2000);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static ArrayList<MovieList> getMovieListsBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_LISTS_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_LISTS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<MovieList> movieList = gson.fromJson(\n moviesJson.get(\"lists\"),\n new TypeToken<ArrayList<MovieList>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }", "private Object queryDatabase(String searchType, String searchTerm) {\n Connection connection = null;\n PreparedStatement statement = null;\n Search search = new Search();\n ResultSet resultSet = null;\n String queryString = null;\n\n try {\n connection = getConnection(connection);\n\n queryString = getQueryString(searchType);\n\n statement = connection.prepareStatement(queryString);\n \n if (searchType.equals(\"employeeId\")) {\n statement.setString(1, searchTerm);\n } else {\n statement.setString(1, searchTerm + \"%\");\n }\n\n resultSet = statement.executeQuery();\n\n buildEmployeeList(resultSet, search);\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n System.err.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n\n\n if (statement != null) {\n statement.close();\n }\n\n\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }\n return search;\n }", "public void submitSearch(String word) {\n\n\t\tJSONArray definitions = this.controller.searchWord(word);\n\n\t\tif (definitions == null) {\n\t\t\tthis.result.setText(\"Error: Something went wrong (check the console).\");\n\t\t} else if (definitions.get(0).equals(\"NOT_FOUND\")) {\n\t\t\tthis.result.setText(\"Error: this word does not exist in the dictionary.\");\n\t\t} else {\n\t\t\tenterEditMode(word, definitions);\n\t\t}\n\n\t}", "public void search(String word)\r\n\t{\r\n\t\tHashtable<String, Integer> hashtable = new Hashtable<String, Integer>();\r\n\t\tFile dir = new File(\"C:\\\\Users\\\\jayad\\\\eclipse-workspace\\\\Search Engine\\\\src\\\\Webpages\\\\Text\\\\\");\r\n\t\tFile[] fileArray = dir.listFiles();\r\n\t\tint repeats = 0; // No. of times the searched word repeated in a same file\r\n\t\tint numofFiles = 0; // No. of files that contains the Searched word\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdouble startTime = System.nanoTime();\r\n\t\t\tdouble startTimesearch = System.nanoTime();\r\n\t\t\tfor (int i = 1; i < fileArray.length; i++)\r\n\t\t\t{\r\n\t\t\t\trepeats = searchWord(fileArray[i], word);\r\n\t\t\t\thashtable.put(fileArray[i].getName(), repeats);\r\n\t\t\t\tif (repeats != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnumofFiles++;\r\n\t\t\t\t\tif (fileArray[i].getName().toString().substring(0, 3) == \"null\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfileArray[i].getName().toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\nNumber of files containing the word '\" + word + \"' is = \" + numofFiles);\r\n\t\t\tlong endTimesearch = System.nanoTime();\r\n\t\t\tdouble srchtime = endTimesearch - startTimesearch;\r\n\t\t\tSystem.out.println(\"\\nSeacrh Result execution time: \" + srchtime/1000000 + \" Milli Seconds\");\r\n\t\t\tif (numofFiles == 0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\\nSearching closely related words\");\r\n\t\t\t\tsuggestword(word);\r\n\t\t\t}\r\n//\t\t\tSystem.out.println(\"\\nFor Synonyms of the word \"+ p+\" enter yes or no\");\r\n//\t\t\tString o =s1.nextLine();\r\n//\t\t\tif(o.equals(\"yes\")) {\r\n//\t\t\t\t\r\n//\t\t System.out.println(\"\\nSearching synonyms\");\r\n//\t\t \r\n//\t\t\t\twebsearch.suggestions(word);\t\r\n//\t\t\t\t\r\n//\t\t\t}\r\n\t\t\t\tdouble rankstart = System.nanoTime();\r\n\t\t\t\t\trank(hashtable, numofFiles);\r\n\t\t\t\tdouble rankend = System.nanoTime();\r\n\t\t\t\tdouble rankingTime = rankend - rankstart;\r\n\t\t\tSystem.out.println(\"\\nRanking Algorithm time: \" + rankingTime + \" nano Seconds\");\r\n\t\t\t\r\n\t\t\tdouble endTime = System.nanoTime();\r\n\t\t\tSystem.out.println(\"\\nTotal Execution Time: \" + (endTime - startTime)/1000000 + \" Milli Seconds\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception:\" + e);\r\n\t\t}\r\n\t}", "public void testSearchRules() throws Exception {\n Project project = new Project();\r\n \r\n DateFormatSymbols symbols = new DateFormatSymbols(Locale.US);\r\n \r\n for (int i = 0; i < 12; i++) {\r\n \r\n String month = symbols.getMonths()[i];\r\n String shortMonth = symbols.getShortMonths()[i];\r\n \r\n // Basic project info\r\n project.setId(i);\r\n project.setCategoryId(1);\r\n project.setAllowGuests(true);\r\n project.setMembershipRequired(false);\r\n project.setApproved(true);\r\n project.setClosed(false);\r\n project.setPortal(false);\r\n \r\n // Unique Title\r\n project.setTitle(month + \" test project\");\r\n project.setShortDescription(month + \" description word\");\r\n project.setKeywords(shortMonth);\r\n \r\n // Unique Location\r\n project.setCity(\"Virginia Beach\");\r\n project.setState(\"VA\");\r\n project.setPostalCode(\"234\" + String.valueOf(50 + i));\r\n \r\n // Random Rating for now\r\n project.setRatingCount(i + 1);\r\n project.setRatingValue(project.getRatingCount() * StringUtils.rand(1, 5));\r\n project.setRatingAverage(project.getRatingValue() / project.getRatingCount());\r\n \r\n // Index it\r\n ProjectIndexer indexer = new ProjectIndexer();\r\n indexer.add(snowballWriter, project, true);\r\n }\r\n \r\n QueryParser parser = new QueryParser(\"contents\", snowballAnalyzer);\r\n \r\n {\r\n // Make sure a single matching term yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january\"^20 OR january^15 OR january*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure a single matching term stem yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \"'s\");\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january's\"^20 OR january's^15 OR january's*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure multiple matching words yield two hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \" \" + symbols.getMonths()[1]);\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january february\"^20 OR january^15 OR february^14 OR january*^4 OR february*^3) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 2);\r\n }\r\n \r\n {\r\n // Make sure wilcards yield multiple hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"j\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n // Look for data with a \"j\" for comparison\r\n int jCount = 0;\r\n for (int i = 0; i < symbols.getMonths().length; i++) {\r\n if (symbols.getMonths()[i].toLowerCase().indexOf(\"j\") > -1 ||\r\n symbols.getShortMonths()[i].toLowerCase().indexOf(\"j\") > -1) {\r\n ++jCount;\r\n }\r\n }\r\n assertTrue(jCount > 0);\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"j\"^20 OR j^15 OR j*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == jCount);\r\n }\r\n \r\n {\r\n // Make sure alternate locations do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Norfolk\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n \r\n {\r\n // Make sure locations as query terms do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"Virginia Beach\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n }", "public static ArrayList<Friend> getFriendsBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n JsonObject friendsJson = getWebService(params, FRIENDS_SEARCH_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"FRIENDS RESULT: \" + friendsJson.toString());\n if (friendsJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<Friend> FriendsList = gson.fromJson(\n friendsJson.get(\"friends\"),\n new TypeToken<ArrayList<Friend>>() {\n }.getType());\n return FriendsList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching friends - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching friends\", e);\n return null;\n } // end try-catch\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public Autocomplete(Term[] terms) {\r\n if (terms == null) {\r\n throw new java.lang.NullPointerException();\r\n }\r\n this.queries = terms;\r\n Arrays.sort(queries);\r\n }", "private boolean isTermAppearInQuery(String term) {\n boolean isTermAppear = false;\n query thisQuery = listDocumentRetrievedForThisQuery.getQuery();\n StringTokenizer token = new StringTokenizer(thisQuery.getQueryContent(), \" %&\\\"*#@$^_<>|`+=-1234567890'(){}[]/.:;?!,\\n\");\n while (token.hasMoreTokens()) {\n String keyTerm = token.nextToken();\n if (invertedFile.isStemmingApplied()) {\n keyTerm = StemmingPorter.stripAffixes(keyTerm);\n }\n if (term.equals(keyTerm.toLowerCase())) {\n isTermAppear = true;\n break;\n }\n }\n return isTermAppear;\n }", "public Object searchEmployeeDatabase(String searchTerm, String searchType) {\n\n Object completedSearch = null;\n\n completedSearch = queryDatabase(searchType, searchTerm);\n\n return completedSearch;\n }", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "void search( RealLocalizable reference );", "public static List<Term> filterFindByG_T(long groupId, long termId) {\n\t\treturn getPersistence().filterFindByG_T(groupId, termId);\n\t}", "@Test\n public void keywordSearchTest() throws InterruptedException {\n SearchNavigation.gotoSearchResultsPage(index,\"\\\"\"+exact_searchTerm+\"\\\"\");\n System.out.println(AssistanceListingSearchPage.title());\n assertEquals(\"Assistance Title does not match with Search term\",AssistanceListingSearchPage.title(), exact_searchTerm);\n }", "Search getSearch();", "@Override\n public List<SearchResult> search(String queryString, int k) {\n // TODO: YOUR CODE HERE\n\n // Tokenize the query and put it into a Set\n HashSet<String> tokenSet = new HashSet<>(Searcher.tokenize(queryString));\n\n /*\n * Section 1: FETCHING termId, termFreq and relevant docId from the Query\n */\n\n // Init a set to store Relevant Document Id\n HashSet<Integer> relevantDocIdSet = new HashSet<>();\n for (String token : tokenSet) { // Iterates thru all query tokens\n int termId;\n try {\n termId = indexer.getTermDict().get(token);\n } catch (NullPointerException e) { // In case current token is not in the termDict\n continue; // Skip this one\n }\n // Get the Posting associate to the termId\n HashSet<Integer> posting = indexer.getPostingLists().get(termId);\n relevantDocIdSet.addAll(posting); // Add them all to the Relevant Document Id set\n }\n\n /*\n * Section 2: Calculate Jaccard Coefficient between the Query and all POTENTIAL DOCUMENTS\n */\n\n // ArrayList for the Final Result\n ArrayList<SearchResult> searchResults = new ArrayList<>();\n for (Document doc : documents) { // Iterates thru all documents\n if (!relevantDocIdSet.contains(doc.getId())) { // If the document is relevant\n searchResults.add(new SearchResult(doc, 0)); // Add the document as a SearchResult with zero score\n } else {\n HashSet<String> termIdSet = new HashSet<>(doc.getTokens()); // Get the token set from the document\n\n // Calculate Jaccard Coefficient of the document\n double jaccardScore = JaccardMathHelper.calculateJaccardSimilarity(tokenSet, termIdSet);\n\n // Add the SearchResult with the computed Jaccard Score\n searchResults.add(new SearchResult(doc, jaccardScore));\n }\n }\n\n return TFIDFSearcher.finalizeSearchResult(searchResults, k);\n }", "public void runSearch(View view) {\n\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(word.getWindowToken(), 0);\n\n String searchTerm = word.getText().toString();\n final Search search = new Search(dictionary);\n Search.Option option;\n if (searchTerm.length() > 0) {\n if (full.isChecked()) {\n option = Search.Option.FULL;\n } else if (start.isChecked()) {\n option = Search.Option.BEGINNING;\n } else if (end.isChecked()) {\n option = Search.Option.END;\n } else {\n option = Search.Option.NORMAL;\n }\n results.setText(search.findWord(option, searchTerm));\n }\n }", "List<SearchResult> search(SearchQuery searchQuery);", "@Override\n public void doIT() throws RepositoryException {\n Repository repo = taskData.getRepository();\n\n if (repo instanceof RemoteRepository && taskData.getSubject() != null) {\n RemoteRepository rr = (RemoteRepository) repo;\n NamedEntity entity = (NamedEntity) taskData.getSubject().getTL();\n boolean includeIndirect = true;\n\n repoResults = new ArrayList<>();\n rr.getEntityWhereExtended( entity ).forEach( e -> repoResults.add( e ) );\n repoResults.addAll( rr.getEntityWhereUsed( entity, includeIndirect ) );\n // Returns list of repo items\n // RepositoryItem item = null;\n // rr.getItemWhereUsed( item, includeIndirect );\n log.debug( \"Found \" + repoResults.size() + \" entities.\" );\n } else {\n // Run full-text search\n // Result list contains both entity and library result items\n repoResults = repo.search( taskData.getQuery(), taskData.getIncludeStatus(),\n taskData.isLatestVersionsOnly(), taskData.getItemType() );\n log.debug( \"Found \" + repoResults.size() + \" items in repo.\" );\n }\n }", "public YahooSearch(List<String> terms) {\n \tquery = StringHelper.join(terms, \" \");\n }", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "private String[] computeSearchTerms(Control c) {\n \t\tComposite parent = c.getParent();\n \t\tList searchTerms = new ArrayList();\n \t\twhile (parent != null) {\n \t\t\tObject data = parent.getData();\n \t\t\tif (data instanceof IWizardContainer) {\n \t\t\t\tIWizardContainer wc = (IWizardContainer) data;\n \t\t\t\tsearchTerms.add(wc.getCurrentPage().getTitle());\n \t\t\t\tsearchTerms.add(wc.getCurrentPage().getWizard().getWindowTitle());\n \t\t\t\tbreak;\n \t\t\t} else if (data instanceof IWorkbenchWindow) {\n \t\t\t\tIWorkbenchWindow window = (IWorkbenchWindow) data;\n \t\t\t\tIWorkbenchPage page = window.getActivePage();\n \t\t\t\tif (page != null) {\n \t\t\t\t\tIWorkbenchPart part = lastPart;\n \t\t\t\t\tif (part != null) {\n\t\t\t\t\t\tif (part instanceof IViewPart)\n \t\t\t\t\t\t\tsearchTerms.add(NLS.bind(\n \t\t\t\t\t\t\t\t\tMessages.ContextHelpPart_query_view, part\n \t\t\t\t\t\t\t\t\t\t\t.getSite().getRegisteredName()));\n \t\t\t\t\t}\n \t\t\t\t\t/*\n // Searching by perspective seems counterproductive - CG\n \t\t\t\t\tIPerspectiveDescriptor persp = page.getPerspective();\n \t\t\t\t\tif (persp != null) {\n \t\t\t\t\t\tsearchTerms.add(NLS.bind(\n \t\t\t\t\t\t\t\tMessages.ContextHelpPart_query_perspective,\n \t\t\t\t\t\t\t\tpersp.getLabel()));\n \t\t\t\t\t}\n \t\t\t\t\t*/\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\t} else if (data instanceof Window) {\n \t\t\t\tWindow w = (Window) data;\n \t\t\t\tif (w instanceof IPageChangeProvider) {\n \t\t\t\t\tObject page = ((IPageChangeProvider) w).getSelectedPage();\n \t\t\t\t\tString pageName = getPageName(c, page);\n \t\t\t\t\tif (pageName != null) {\n \t\t\t\t\t\tsearchTerms.add(pageName);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tsearchTerms.add(w.getShell().getText());\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tparent = parent.getParent();\n \t\t}\n \t\treturn (String[]) searchTerms.toArray(new String[searchTerms.size()]);\n \t}", "public void testadvancedSearchTitleAndBody(){\n\t\t\n//\t\tmanager.advancedSearchTitleAndBody(ElasticIndex.analyzed, \"List of international tennis player \",\" Andre Agassi\" );\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 }", "List<Revenue> search(String query);", "@Test\n\tpublic void testKeywordQuery(){\n\t\t//manager.getResponse(\"american football \"); //match multiple keywords\n//\t\tmanager.getResponse(\"list of Bond 007 movies\");\n//\tmanager.getResponse(\"Disney movies\");\n\t\t//manager.keywordQuery(\"Paul Brown Stadium location\");\n\t\t//manager.keywordQuery(\"0Francesco\");\n System.out.println(\"******* keyword query *******\");\n\t\t//manager.keywordQuery(\"sportspeople in tennis\");\n\t\t//manager.keywordSearch(\"list of movies starring Sean Connery\",ElasticIndex.analyzed,100 );\n//\t\tmanager.keywordSearch(\"movies starring Sean Connery\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"musical movies tony award\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"United states professional sports teams\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"movies academy award nominations\",ElasticIndex.notStemmed,100 );\n System.out.println(SearchResultUtil.toSummary(manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.notLowercased,20 )));\n //manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notAnalyzed,100 );\n //(better than analyzed) manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notStemmed,100 );\n System.out.println(\"*****************************\");\n\n\t\t//manager.keywordQuery(\"Disney movies\");\n\t}", "List<String> searchTweets(String keywords) throws TwitterException;", "List<User> searchUsers(String searchTerm) {\n return null;\n }", "public static void main(String[] args) {\n\t\tString[] words = {\"at\",\"\",\"\",\"\",\"ball\",\"\",\"\",\"\",\"car\",\"\",\"\",\"\"};\n\t\tString searchWord = \"at\";\n\n\t\tsearch(words,searchWord,0,words.length-1);\n\n\t}", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}" ]
[ "0.63753605", "0.6269777", "0.59958726", "0.59931743", "0.5896208", "0.5858082", "0.5853634", "0.5818719", "0.5803225", "0.5778245", "0.576533", "0.57635564", "0.5737136", "0.5709723", "0.5688329", "0.566643", "0.5623134", "0.5620943", "0.5614767", "0.5593001", "0.5592962", "0.5551149", "0.55349976", "0.5526305", "0.5520749", "0.5520749", "0.55047834", "0.5501133", "0.5485093", "0.5466796", "0.5465375", "0.54593956", "0.5446937", "0.5418635", "0.5409556", "0.5405773", "0.54033595", "0.5401573", "0.53835577", "0.5379038", "0.53673863", "0.5362103", "0.5354346", "0.5350272", "0.53299373", "0.53292376", "0.5322369", "0.53182286", "0.5315464", "0.53074044", "0.5295013", "0.527994", "0.5270879", "0.5269303", "0.5269186", "0.5253204", "0.52388114", "0.5231939", "0.5227727", "0.5227711", "0.5220712", "0.5216928", "0.52090085", "0.5192379", "0.51916385", "0.51894885", "0.5187165", "0.5186114", "0.5179973", "0.5179437", "0.5174103", "0.51605934", "0.5157729", "0.51500165", "0.51431316", "0.5131862", "0.51263666", "0.5118921", "0.51184106", "0.5105426", "0.5102809", "0.5100253", "0.50968254", "0.5095207", "0.50940907", "0.50886655", "0.50862324", "0.50856876", "0.5085133", "0.5084902", "0.508409", "0.5074736", "0.5069272", "0.5061369", "0.5059744", "0.50538176", "0.50512904", "0.5050205", "0.50366074", "0.5036247" ]
0.5291454
51
Checks if teamName belongs to a team.
public static boolean isTeam(long id) { Team team = getTeam(id); return !(team == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean teamExist(String teamName) {\n boolean doesExist = false;\n for (Team team : scoreboard.getTeams()) if (team.getName().equals(teamName)) doesExist = true;\n return doesExist;\n }", "public boolean teamExist(Team t) {\n return getTeam(t.getName()) != null;\n }", "public boolean isSetTeamName() {\n return this.teamName != null;\n }", "public boolean findTeam(String teamName) throws SQLException {\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:users\");\n\t\tStatement stmt = conn.createStatement();\n\t\tString SQL = \"select * from leaguestandings where TeamName = '\" + teamName + \"';\";\n\n\t\tResultSet rset = stmt.executeQuery(SQL);\n\n\t\tif (rset.next()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "public void setTeamName(String teamName) {\n\t\tthis.teamName = teamName;\n\t}", "boolean hasTeam();", "public Team(String name) {\n this.name = name;\n }", "public void setTeamId(String teamId) {\r\n\t\tthis.teamName = teamId;\r\n\t}", "public boolean hasTeam() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }", "@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}", "Team findByName(String name);", "public boolean hasTeam() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isActiveTeam(int teamId) {\n\t\treturn (teamId == getActiveTeam().id);\n\t}", "@Override\n\tpublic boolean isIsTeamMatch() {\n\t\treturn _esfTournament.isIsTeamMatch();\n\t}", "public SoccerTeam getTeam(String teamName) throws TeamNotFoundException {\n\n for (int i = 0; i < this.teams.size(); i++) {\n SoccerTeam team = this.teams.get(i);\n\n if (team.getName().equals(teamName)){\n return team;\n }\n }\n throw new TeamNotFoundException(\"Team that you are searching for is not found\");\n }", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }", "public String getTeamName() {\r\n return teamName;\r\n }", "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}", "public String getTeamId() {\r\n\t\treturn teamName;\r\n\t}", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "private boolean exist(List<PlayerTeam> l, String name) {\n boolean ex = false;\n PlayerTeam curr = l.first();\n while (curr != null) {\n if (curr.getName().equals(name))\n return true;\n curr = l.next();\n }\n return ex;\n }", "@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;", "public static int findByName(String teamName) throws DALException {\n\n\t\t\t\t\tConnection cnx = null;\n\t\t\t\t\tPreparedStatement pstmt = null;\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\tint idTeam = 0;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Connection DB\n\t\t\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_NAME_TEAM);\n\t\t\t\t\t\tpstmt.setString(1, teamName);\n\t\t\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\t\tidTeam = rs.getInt(\"idTeams\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tthrow new DALException(\"Problem - search teams By Name - TeamDAO - Request : \"+pstmt+ \" \" + e.getMessage());\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\t\t\tcnx.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn idTeam;\n\n\t\t\t\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TeamDTO)) {\n return false;\n }\n TeamDTO other = (TeamDTO) object;\n if ((this.teamID == null && other.teamID != null) || (this.teamID != null && !this.teamID.equals(other.teamID))) {\n return false;\n }\n return true;\n }", "public Team(String name) {\r\n this.name = name;\r\n team = new ArrayList<Hero>();\r\n }", "public boolean checkName(String employeeName) {\r\n\t\tif(this.employeeName == employeeName)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "@Given(\"^I navigate to team page \\\"([^\\\"]*)\\\"$\")\n public void navigate_to_teamPage(String nameTeam){\n addNewTeam = mainPage.clickNewTeam();\n teamPage = addNewTeam.createTeam(nameTeam);\n }", "public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }", "@Override\n\tpublic int compareTo(Team other) {\n\t\treturn this.getmTeamName().compareTo(other.getmTeamName());\n\t}", "public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}", "public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public boolean isSetTeam_id() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TEAM_ID_ISSET_ID);\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser/{name}\")\n public JSONObject getTeamForUserPage(@PathVariable String name) {\n JSONArray teamJsonArray = getAllTeamsForUserPage();\n JSONObject jsonObject = new JSONObject();\n\n for (int i = 0; i < teamJsonArray.size(); i++) {\n if (teamJsonArray.get(i).toString().contains(name)) {\n return (JSONObject) teamJsonArray.get(i);\n }\n }\n return jsonObject;\n }", "TeamMember(String _name, String _title) {\r\n this.name = _name;\r\n this.title = _title;\r\n }", "public boolean isInTeam(Fighter fighter) {\n\t\treturn fighters.contains(fighter);\n\t}", "protected boolean addTeam(Team team) {\n\t\t//TODO\n\t\t// input check\n\t\tif (team == null)\n\t\t\treturn false;\n\t\t\n\t\t// checking if team exists already\n\t\tif (teams.contains(team))\n\t\t\treturn false;\n\t\t\t\n\t\treturn teams.add(team);\n\t}", "public Team(String name) {\n\t\tthis(name, Color.BLACK);\n\t}", "private void removeTeam(String teamName) {\n getTeam(teamName).unregister();\n }", "@Override\n public int compareTo(Team other) {\n if(equals(other)) {\n return 0;\n } \n int coachNameCmp = this.teamName.compareTo(other.teamName);\n if (coachNameCmp == 0) {\n return this.coachName.compareTo(other.coachName);\n }\n \n return coachNameCmp;\n }", "public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}", "public void setTeam(String team) {\n\t\tthis.team = team;\n\t}", "protected boolean removeTeam(Team team) {\n\t\t//TODO\n\t\t// input check\n\t\tif (team == null)\n\t\t\treturn false;\n\t\t\n\t\t// checking if team exists already\n\t\tif (!teams.contains(team))\n\t\t\treturn false;\n\t\t\n\t\treturn teams.remove(team);\n\t}", "public boolean isSetTeamId() {\n return EncodingUtils.testBit(__isset_bitfield, __TEAMID_ISSET_ID);\n }", "void addMyTeam(Team team) throws HasTeamAlreadyException;", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public boolean transferTo(Team team) {\n\t\t//TODO\n\t\t// input check\n\t\tif (team == null || (team != null && team.equals(currentTeam)))\n\t\t\treturn false;\n\n\t\t// if the team exists in the teams array, we remove it \n\t\tif (teams.contains(team))\n\t\t\tteams.remove(team);\n\t\t\n\t\t// adding coach to new team and transferring old team to teams' Set\n\t\tif (addTeam(currentTeam) && team.registerCoach(this)) {\n\t\t\tcurrentTeam.setCoach(null);\n\t\t\tcurrentTeam = team;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n @Transactional\n public boolean updateTeam(Team team) {\n String sql = \"UPDATE Team SET teamname = ? WHERE teamid = ?\";\n return jdbc.update(sql, team.getName(), team.getId()) > 0;\n }", "public Boolean isTeamMember(final Artifact artifact);", "String getWonTeam() {\r\n return this.teamName;\r\n }", "public void setTeamId(int teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public boolean isEliminated(String team) {\n\n return false;\n }", "public boolean match(String name) {\n\t\t\treturn (this.equals(directions.get(name.toUpperCase())));\n\t\t}", "public boolean checkContain(Hero h) {\r\n return team.contains(h);\r\n }", "public TeamObject(String name) {\n\t\tthis();\t\t//call the first constructor to build the lock buttons\n\t\tteamName = name;\n\t}", "public boolean isValidName(String proposedName);", "public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}", "public static void editTeamName(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Edit Team Name---\");\r\n\t\tSystem.out.println(\"Enter your new team name: (max 32 characters)\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\t\r\n\t\tString teamName;\r\n\t\tdo {\r\n\t\t\tteamName = Input.validString(32, keyboard);\r\n\t\t\tif (teamName.equals(\"0\")) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfor (int y = 0; y < theLeague.getNumTeams(); y++) {\r\n\t\t\t\tif (teamName.equalsIgnoreCase(theLeague.getTeam(y).getTeamName())) {\r\n\t\t\t\t\tSystem.out.println(\"That team name is already being used.\");\r\n\t\t\t\t\tteamName = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (teamName.isEmpty());\r\n\t\ttheTeam.setTeamName(teamName);\r\n\t}", "public boolean checkName(String name)\n\t{\n\t\treturn (robotHM.containsKey(name));\n\t}", "@Override\n\tpublic boolean getIsTeamMatch() {\n\t\treturn _esfTournament.getIsTeamMatch();\n\t}", "Team findById(Long id);", "public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }", "public boolean isNamed(String n) {\n return name.equals(n);\n }", "public static boolean checkName(String name) {\n\t\tMatcher matcher = NAME_PATTERN.matcher(name);\n\t\treturn matcher.find();\n\t}", "public String getTeam() {\r\n\t\treturn Team;\r\n\t}", "boolean hasTargetPlayerName();", "public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "public String getTeam() {\n return team;\n }", "public String getTeam() {\n\t\treturn team;\n\t}", "public boolean checkName(String name)\n {\n return true;\n }", "@Override\n public boolean hasWonGame( int team ) {\n boolean canReach = false;\n if(team == 1){\n for(Dot sDot:board.getStartNodes1()){\n for(Dot eDot:board.getEndNodes1()){\n if(canReachDFS(sDot,eDot)){\n canReach = true;\n }\n }\n }\n }\n else if(team ==2){\n for(Dot sDot:board.getStartNodes2()){\n for(Dot eDot:board.getEndNodes2()){\n if(canReachDFS(sDot,eDot)){\n canReach = true;\n }\n }\n }\n }\n return canReach;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\t//check if object is null\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\t//check if object is from difference class\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\t//check if name is different\n\t\tSport other = (Sport) obj;\n\t\tif (sport != other.sport)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "boolean hasAttackerRoleName();", "public int getTeamIdByPlayerName(String pName) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdByPlayerNameRecords_sql = \"SELECT idTeam FROM \" + player_table + \" WHERE name='\" + pName + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdByPlayerNameRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "default public boolean isTeamLeader() {\n return equals(team().leader());\n }", "public boolean checkName(final String name) {\n\t\treturn channelName.equals(name);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public int getTeamId() {\n\t\treturn teamId;\n\t}", "public boolean equalsName(String otherName) {\n return name.equals(otherName);\n }", "public boolean isEliminated(String team) {\n if (!Teams.contains(team))\n throw new IllegalArgumentException(\"NU E BINE\");\n if (trivEl[Teams.indexOf(team)] == 1)\n return true;\n if (isEl[Teams.indexOf(team)] == 1)\n return true;\n return false;\n }", "public void setTeamId(int value) {\n this.teamId = value;\n }", "public boolean checkFacName(String facultyName) {\n\t\tfor(String facName: facultyNameList) {\n\t\t\tif (facultyName.equals(facName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void verifyTheTileIsPresent(String tileName) {\n\t for(WebElement tile:tileNames) {\n\t\t if(tile.getText().equalsIgnoreCase(tileName)) {\n\t\t\t Assert.assertTrue(true);\n\t\t }\n\t }\n\t \t\tAssert.assertFalse(true);\n }", "public boolean hasGame(String gameName)\n {\n \treturn games.containsKey(gameName);\n }", "public boolean isNameEquals(String name) {\n\n return (_name.equalsIgnoreCase(name));//Checks not case sensitive\n }", "public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }", "public boolean isEliminated(String team) {\n return certificateOfElimination(team) != null;\n }", "public boolean areOnSameTeam(Player p1, Player p2) {\n\t\treturn areOnSameTeam(p1.getUniqueId(), p2.getUniqueId());\n\n\t}", "public static void oneTeam(String[] name, int[] team)\n {\n int a=0;\n System.out.println(\"The following players played with one team for their entire NHL careers:\");\n for(int i=0;i<team.length;i++)\n { \n if(team[i]==1)\n {\n System.out.println(name[i]);\n }//end of if statement\n }//end of for loop\n }", "public int getTeamIdByName(String name) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdByNameRecords_sql = \"SELECT id FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdByNameRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }", "private boolean isValid() throws InvalidStateException{\n if (this.homeTeam == null || this.visitingTeam == null){\n return false;\n }else{\n return true;\n }\n }", "@GET\n @Path(\"Current/Team/{teamId}\")\n public Response getTeamByCurrentUser(@PathParam(\"teamId\") Long teamId) {\n Response r = Response.noContent().build();\n User currentUser = userFacade.getCurrentUser();\n final Collection<Game> playedGames = gameFacade.findRegisteredGames(currentUser.getId());\n for (Game g : playedGames) {\n Collection<Team> teams = g.getTeams();\n for (Team t : teams) {\n if (teamId.equals(t.getId())) {\n for (Player p : t.getPlayers()) {\n if (p.getUserId().equals(currentUser.getId())) {\n r = Response.ok().entity(t).build();\n }\n }\n }\n }\n }\n return r;\n }", "@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}", "public boolean isEliminated(String team) {\n return certificateOfElimination(team) != null;\r\n }" ]
[ "0.7706797", "0.7077964", "0.6900572", "0.67732257", "0.67406315", "0.6686737", "0.6501452", "0.6441663", "0.63222307", "0.61816746", "0.614906", "0.60900867", "0.60886014", "0.6047623", "0.6047604", "0.5990788", "0.59888667", "0.595653", "0.5924846", "0.5875964", "0.5856371", "0.58530366", "0.5815536", "0.5815536", "0.5787455", "0.5726277", "0.56985533", "0.5645046", "0.5601263", "0.558528", "0.5573066", "0.5529224", "0.55263054", "0.55106395", "0.5498256", "0.5498256", "0.5459644", "0.5450923", "0.5444833", "0.54093117", "0.5405189", "0.5399285", "0.5384866", "0.5384832", "0.53629315", "0.5341056", "0.53389966", "0.5294148", "0.5289994", "0.5284236", "0.5284236", "0.52732605", "0.5255101", "0.52539957", "0.52526546", "0.5245029", "0.52436566", "0.5230832", "0.5225427", "0.51963115", "0.5188782", "0.5169573", "0.51603574", "0.5151456", "0.5148703", "0.5129538", "0.51252425", "0.51201737", "0.5102605", "0.50991565", "0.5090099", "0.5086782", "0.50824445", "0.50734216", "0.5068283", "0.5068228", "0.5064644", "0.504916", "0.50445366", "0.5042003", "0.50250274", "0.5022253", "0.5020143", "0.5019349", "0.5017034", "0.50102603", "0.5004611", "0.49984655", "0.49983695", "0.49970242", "0.49902022", "0.49824107", "0.49733132", "0.4953406", "0.49532032", "0.4951261", "0.4946694", "0.49464488", "0.49454224", "0.49403596" ]
0.6197107
9
Returns a list of types associated with a team.
public static List<String> typeOfTeam() { String[] types = { "Mens", "Womens", "Co-ed" }; return java.util.Arrays.asList(types); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Team> getTeams() {\n return find().all();\n }", "@WebMethod public List<Team> getAllTeams();", "List<ReportType> findTypes();", "public List<SecTyp> getAllTypes();", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }", "@Override\n\tpublic List<TeamInfo> findAll() {\n\t\treturn repository.findAll();\n\t}", "List<Team> findAll();", "@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}", "List<Type> getAllTypeList();", "public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}", "public ArrayList<Team> getList(){\n\t\treturn this.teams;\n\t}", "public ArrayList<CollegeFootballTeam> getTeamList();", "ResponseEntity<List<Type>> findTaskTypes();", "List<Type> getTypeList(String type);", "public List<TicketSite> getTicketSitesOfATeam(String teamId);", "@Override\r\n\tpublic ArrayList<TeamPO> getAllTeams() {\n\t\treturn teams.getAllTeams() ;\r\n\t}", "public ArrayList<Team> getTeamList(){\n\t\treturn this.teamList;\n\t}", "@Override\n\tpublic List<ProjectTeamBean> listProjectTeam() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "public List getResourceTypes(ResourceType resourceType);", "List<AccountTypeDTO> lookupAccountTypes();", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}", "TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);", "public List<Team> getAll() {\n TeamDB tdb = new TeamDB();\n List<Team> teams = tdb.getAll();\n for (Team t : teams) {\n String teamName = t.getTeamName();\n teamName = teamName.replace(\"'\", \"\\\\\\'\");\n t.setTeamName(teamName);\n System.out.println(t.getTeamName());\n }\n return teams;\n }", "public List<Type> getAll();", "List<Team> findTeamsByUserId(UserId userId);", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }", "public List<Type> getTypeList() {\n\t\treturn sm.selectList(\"com.lanzhou.entity.Longpay.getTypeList\");\n\t}", "UsedTypes getTypes();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "@Override\n\tpublic HashSet<String> getTeams() {\n return new HashSet<String>();\n\t}", "public List<Team> getListOfTeams(){\n \tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tJSONObject jsonobj = null;\n\t\tList<Team> team = new ArrayList<>();\n\t\tTeamsJsonReader reader = new TeamsJsonReader();\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = null;\n\n\t\ttry {\n\t\t\tobj = parser.parse(new FileReader(\"src/main/resources/db.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tJSONArray jsonarr = (JSONArray) jsonObject.get(\"teams\");\n\t\t\tfor (int size = 0; size < jsonarr.size(); size++) {\n\t\t\t\tList<Individual> individualList = new ArrayList<>();\n\t\t\t\tjsonobj = (JSONObject) jsonarr.get(size);\n\t\t\t\tmyMap.put(\"name\", jsonobj.get(\"name\"));\n\t\t\t\tmyMap.put(\"id\", ((Long) jsonobj.get(\"id\")).intValue());\n\t\t\t\tJSONArray memberArray = (JSONArray) jsonobj.get(\"members\");\n\n\t\t\t\tfor (int index = 0; index < memberArray.size(); index++) {\n\n\t\t\t\t\tindividualList.add(reader.getIndividualById(((Long) memberArray.get(index)).intValue()));\n\n\t\t\t\t}\n\t\t\t\tmyMap.put(\"members\", individualList);\n\t\t\t\t\n\t\t\t\tteam.add(new Team(myMap));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn team;\n }", "public LinkedList<SoccerTeam> getTeams() {\n return this.teams;\n }", "@RequestMapping(method=RequestMethod.GET)\n public ResponseEntity<List<TeamDTO>> findAll() {\n List<Team> list = this.teamService.findAll();\n List<TeamDTO> listDto = list.stream().map(obj -> new TeamDTO(obj)).collect(Collectors.toList());\n\n return ResponseEntity.ok().body(listDto);\n }", "List<SpawnType> getSpawnTypes(EntityType entityType);", "@Override\n\tpublic List<String> getTeamNames(Integer id) {\n\t\treturn null;\n\t}", "@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}", "public ArrayList<CollegeFootballTeam> getTeamList()\r\n\t{\r\n\t\treturn teams;\r\n\t}", "public ArrayList<String> getTypes(){\n return this.types;\n }", "List<ResourceType> resourceTypes();", "public List<TypeInfo> getTypes() {\r\n return types;\r\n }", "List<SpawnType> getSpawnTypes();", "public ArrayList<GameType> getGameTypes()\r\n {\r\n\treturn new ArrayList<GameType>(gameTypes);\r\n }", "public Type[] types();", "java.util.List<UserType>\n getUserTypesList();", "List<Team> getTeamsFromApi(List<Long> teamIds);", "public List<Hero> getTeam() {\r\n return team;\r\n }", "@RequestMapping(value = Constants.REQMAP_GET_VIDEOTYPES, method= RequestMethod.GET)\n\tpublic List<VideoTypes> getAllActiveVideoTypes(){\n\t\treturn videoTypeService.getAllActiveVideoTypes();\n\t}", "public List findMatchingTypes(\n String typeField, String toMatch, DatasetItem dataset, boolean matchAny) {\n\n String query = null;\n if (typeField.equals(\"transactionTypeTool\")) {\n query = FIND_TOOL_TYPES;\n } else if (typeField.equals(\"transactionTypeTutor\")) {\n query = FIND_TUTOR_TYPES;\n } else if (typeField.equals(\"transactionSubtypeTool\")) {\n query = FIND_TOOL_SUBTYPES;\n } else if (typeField.equals(\"transactionSubtypeTutor\")) {\n query = FIND_TUTOR_SUBTYPES;\n } else {\n throw new IllegalArgumentException(\"typeField does not match any expected values. \"\n + \"'\" + typeField + \"'\");\n }\n\n toMatch = matchAny ? \"%\" + toMatch.toUpperCase() + \"%\" : toMatch.toUpperCase() + \"%\";\n\n Object[] paramArray = new Object[2];\n paramArray[0] = dataset.getId();\n paramArray[1] = toMatch;\n\n return getHibernateTemplate().find(\n query, paramArray);\n }", "public PageResult<Team> getAll() {\n\t\t\n\t\treturn null;\n\t}", "public String[] getTeamNames()\r\n\t{\r\n\t\t\r\n\t\tString[] names = new String[NUM_TEAMS];\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i++)\r\n\t\t{\r\n\t\t\tnames[i] = teams.get(i).getName();\t\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "@Override\n\tpublic List<Facilities_type> getAllFacilitiesType() {\n\t\treturn this.facilitiesDao.getAllFacilitiesType();\n\t}", "List<CardTypeDTO> lookupCardTypes();", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "public List<CWLType> getTypes() {\n return types;\n }", "private Collection<String> getTypes(final Collection<Passenger> passengers)\r\n {\r\n final List<String> types = new ArrayList<String>();\r\n for (final Passenger passenger : passengers)\r\n {\r\n types.add(passenger.getType().toString());\r\n }\r\n return types;\r\n }", "public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}", "@GET\n @Path(\"/typesByPlugin\")\n public Map<Long, List<PluginType>> getTypesByPlugin() {\n return definitionsService.getTypesByPlugin();\n }", "public List getScoreTypes() throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getScoreTypes();\r\n }", "@Override\n\tpublic List<Type> listType() {\n\t\treturn goodsDao.listType();\n\t}", "Set<ShipmentType> getShipmentTypes();", "static Object[] genGenericInvs(Collection<MatchTeam> teams) {\n Set<UUID> members = teams.stream()\n .flatMap(t -> t.getAllMembers().stream())\n .collect(Collectors.toSet());\n\n return new Object[] {\n PARTICIPANTS,\n clickToViewLine(members),\n };\n }", "UserType[] getUserTypes();", "private List<Type> getTypes(final String name) {\n\t\tfinal List<String> baseTypes = new ArrayList<>();\n\t\tfinal String typeOrTypes = bundleConstants.getString(name + SEPERATOR + TYPES);\n\t\tif (typeOrTypes.contains(\" \")) {\n\t\t\t// has more then one type!\n\t\t\tbaseTypes.addAll(Arrays.asList(typeOrTypes.split(\" \")));\n\t\t} else {\n\t\t\t// has only one type\n\t\t\tbaseTypes.add(typeOrTypes);\n\t\t}\n\n\t\t// Convert type as String to type as Type\n\t\treturn baseTypes.stream().map(typeName -> Type.valueOf(typeName.toUpperCase())).collect(Collectors.toList());\n\t}", "@Override\n\tpublic List<ProjectTeamBean> selectProjectTeamList() {\n\t\treturn null;\n\t}", "TypeManager getTypeManager() {\n return types;\n }", "public List<ResourceBase> listTypes() throws ResourceException;", "public Collection<DasType> getTypes() throws DataSourceException {\n Collection<DasType> types = new ArrayList<DasType>(5);\n types.add(new DasType(\"gene\", \"gene\", \"Gene description\"));\n types.add(new DasType(\"efv\", \"efv\", \"Experiment factor value\"));\n types.add(new DasType(\"exp\", \"exp\", \"Experiment\"));\n return types;\n }", "public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "Team getMyTeam();", "@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser\")\n public JSONArray getAllTeamsForUserPage() {\n return teamService.getAllTeamsForUser();\n }", "public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }", "@RequestMapping(\"/teams/{id}\")\n public ArrayList<Team> readTeam(@PathVariable Integer id) {\n return teamService.getTeam(id);\n }", "public List<Team> getAllOrdered() {\n TeamDB tdb = new TeamDB();\n return tdb.getAllOrdered();\n }", "Set<TokenType> tokenTypes();", "public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "public Team get(Long id);", "public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}", "public String[] getTypes() {\n return impl.getTypes();\n }", "@Override\n public List<LoanTypes> getLoanTypes(){\n AbstractFactory aFactory = ProducerFactory.getProducer();\n LoanTypes aLoanType = aFactory.getLoaType();\n\n loanTypesRepository.findAll().forEach((x) -> {\n aLoanType.type = x.type;\n });\n\n List<LoanTypes> result = new ArrayList<>();\n result.add(aLoanType);\n return result;\n }", "@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TeamStudent.class;\r\n\t}", "public List getParticipationTypes(Integer groupPk) \n { \n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n List result = new LinkedList();\n \n try {\n \n //retrieve all the Participation Types for a Group\n con = DBUtil.getConnection();\n ps = con.prepareStatement(SQL_SELECT_PARTICIPATION_TYPES_BY_GROUP);\n ps.setInt(1, groupPk.intValue()); \n rs = ps.executeQuery();\n\n //put the results into a list of ParticipationTypeData objects\n while (rs.next()) {\n ParticipationTypeData type = new ParticipationTypeData();\n type.setGroupPk(groupPk);\n type.setTypePk(new Integer(rs.getInt(\"particip_type_pk\")));\n type.setName(rs.getString(\"particip_type_nm\"));\n type.setDescription(rs.getString(\"particip_type_desc\"));\n result.add(type);\n } \n } catch (SQLException e) {\n throw new EJBException(\"Error retrieving Participation Types in MaintainParticipationGroupsBean.getParticipationTypes()\", e);\n } finally {\n DBUtil.cleanup(con, ps, rs);\n }\n \n //return the list of objects\n return result;\n }", "public void testTeamEventType() throws Exception {\n\n UnitTestData data = new UnitTestData();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(data.getContest());\n\n String elist = EventFeedJSON.SUBMISSION_KEY + \",\" + //\n EventFeedJSON.TEAM_KEY;\n\n eventFeedJSON.setEventTypeList(elist);\n String json = eventFeedJSON.createJSON(data.getContest(), null, null);\n assertNotNull(json);\n \n // editFile(writeFile(new File(\"/tmp/stuf.\" + System.currentTimeMillis() + \".json\"), json));\n\n assertCountEvent(0, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(0, EventFeedJSON.CLARIFICATIONS_KEY, json);\n assertCountEvent(0, EventFeedJSON.TEAM_MEMBERS_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertCountEvent(0, EventFeedJSON.JUDGEMENT_TYPE_KEY, json);\n \n /**\n * Run test of filter a second time.\n */\n \n json = eventFeedJSON.createJSON(data.getContest(), null, null);\n assertNotNull(json);\n \n assertCountEvent(0, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(0, EventFeedJSON.CLARIFICATIONS_KEY, json);\n assertCountEvent(0, EventFeedJSON.TEAM_MEMBERS_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertCountEvent(0, EventFeedJSON.JUDGEMENT_TYPE_KEY, json);\n \n }", "@External(readonly = true)\n\tpublic List<String> get_game_type(){\n\t\t\n\t\treturn this.GAME_TYPE;\n\t}", "public ArrayList<Team> populateDefaultTeams() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tArrayList<Team> result = new ArrayList<Team>();\t// holds the resulting list of teams\n\n\t\tString query; \t\t\t\t\t\t\t\t\t// holds query string\n\t\tPreparedStatement stmt; \t\t\t\t\t\t// holds Prepared Statement to execute on the database\n\t\tResultSet rs; \t\t\t\t\t\t\t\t\t// holds the result from the database\n\t\t\n\t\ttry {\n\t\t\n\t\t\t// concatenate select query\n\t\t\tquery = \"SELECT * FROM \" + tableDefaultTeams + \" WHERE \" + columnTeamGender + \" = \" + \"?;\";\n\t\n\t\t\t// initialize the prepare statement, execute it, and\n\t\t\t// store the result\n\t\t\tstmt = conn.prepareStatement(query);\n\t\t\tstmt.setString(1, \"F\");\t\t// TODO: REMOVE HARDCODED GENDER IN SPRINT 2\n\t\t\trs = stmt.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tTeam team = new Team();\n\t\t\t\t// store the result from the database in the team object\n\t\t\t\tteam.setTeamId(rs.getInt(columnTeamId));\n\t\t\t\tteam.setName(rs.getString(columnTeamName));\n\t\t\t\tteam.setAddress(rs.getString(columnTeamAdress));\n\t\t\t\tteam.setCity(rs.getString(columnTeamCity));\n\t\t\t\tteam.setState(rs.getString(columnTeamState));\n\t\t\t\tteam.setZip(rs.getString(columnTeamZip));\n\t\t\t\tteam.setGender(rs.getString(columnTeamGender));\n\t\t\t\tteam.setLat(rs.getString(columnTeamLat));\n\t\t\t\tteam.setLng(rs.getString(columnTeamLng));\n\t\t\t\tresult.add(team);\n\t\t\t}\n\t\t\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.out.println(sqle.getMessage());\n\t\t}\n\t\t\n\t\t// return the list of teams\n\t\treturn result;\n\t\t\n\t}", "private JSONArray teamToJson() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Hero h: team) {\r\n jsonArray.put(h.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }", "@ManyToMany(targetEntity = Team.class)\r\n @JoinTable(name = \"team_product\", joinColumns = { @JoinColumn(name = \"Product_id\") }, inverseJoinColumns = { @JoinColumn(name = \"Team_id\") })\r\n @BatchSize(size = 5)\r\n @JSON(include = false)\r\n @NotAudited\r\n public Collection<Team> getTeams() {\r\n return teams;\r\n }", "public Person[] getTeamOf(Person actor);", "public List<TypeObjet> getTypesObjets() {\n\t\treturn null;\n\t}", "private List<Germplasm> getGermplasmByType(int typeid) {\n\t\tBrowseGermplasmManagerImpl mgr = new BrowseGermplasmManagerImpl();\n\t\treturn (List<Germplasm>) mgr.getGermplasmByType(typeid);\n\t}", "public List<PlayerWon> findByTeamId(int teamId);", "public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }", "public List getTypes(String attrName) {\n String typeDef = getAttrTypeDef(attrName); // does toLower()\n return AttrType.attrTypeListForTypeDef(typeDef);\n }", "public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}", "private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }", "@GetMapping(\"/company-types\")\n @Timed\n public List<CompanyType> getAllCompanyTypes() {\n log.debug(\"REST request to get all CompanyTypes\");\n List<CompanyType> companyTypes = companyTypeRepository.findAll();\n return companyTypes;\n }", "java.util.List<? extends UserTypeOrBuilder>\n getUserTypesOrBuilderList();" ]
[ "0.6695476", "0.6602442", "0.6308446", "0.62860537", "0.6233198", "0.61948997", "0.60783577", "0.6002078", "0.59502095", "0.5919565", "0.5864794", "0.58226204", "0.57868534", "0.5778318", "0.5776851", "0.5710043", "0.5656047", "0.56560385", "0.56151", "0.5610011", "0.56068295", "0.55791855", "0.5569033", "0.5547699", "0.5543744", "0.55399257", "0.5525304", "0.55187297", "0.55083156", "0.550611", "0.55035836", "0.547071", "0.54538983", "0.5450387", "0.5448511", "0.5438451", "0.5435181", "0.54279965", "0.5427666", "0.5421888", "0.54140955", "0.54027677", "0.53911245", "0.5377765", "0.5340726", "0.5334283", "0.5299267", "0.52868307", "0.52791256", "0.52734226", "0.5243838", "0.52389276", "0.52371985", "0.5235111", "0.52198887", "0.52180904", "0.5216545", "0.52115864", "0.52103865", "0.5206587", "0.52028525", "0.51806676", "0.5141188", "0.5139849", "0.5139639", "0.51309544", "0.5122304", "0.51220536", "0.5121921", "0.5119044", "0.5112698", "0.5099749", "0.5096626", "0.50881386", "0.5084421", "0.507837", "0.5076731", "0.5076038", "0.50664324", "0.5065192", "0.5064447", "0.5060363", "0.50596404", "0.50594956", "0.5045394", "0.504475", "0.50442827", "0.50409573", "0.50355756", "0.5023465", "0.50214285", "0.5020383", "0.5016443", "0.50117165", "0.50108933", "0.49982566", "0.49903074", "0.49735862", "0.4972815", "0.49643517" ]
0.7645183
0
Returns the roster as a java list.
public List<String> getRosterList() { // TODO check if player name is related to a player profile List<String> rosterList = java.util.Arrays.asList(roster.split("\\s*,\\s*")); return rosterList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<List<DutyRosterItem>> getRosterAsList() {\n return new ArrayList<>(new TreeMap<>(roster).values());\n }", "public String[][] getRoster(){\r\n\t\treturn roster;\r\n\t}", "java.lang.String getRaceList();", "public LinkedList getList() {\n\treturn this.roomList;\n}", "public ArrayList<Richiesta> getListaRichieste() {\n\t\treturn listaRichieste;\n\t}", "java.util.List<com.rpg.framework.database.Protocol.Monster> \n getMonstersList();", "java.util.List<com.rpg.framework.database.Protocol.Monster> \n getMonstersList();", "public List<Node> toList() {\n return tree.toList();\n }", "public List<Robot> getRobots();", "@Override\n public String toString() {\n return list.toString();\n }", "java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();", "@Override\n\tpublic String toString() {\n\t\treturn rodada.toString();\n\t}", "Object getTolist();", "@Override\n public String toString() {\n return this.toList().toString();\n }", "public List<Rectangulo> getLista() {\n return (lista);\n }", "public String toString()\r\n\t{\r\n\t\tString teamRoster = \"\";\r\n\t\t\r\n\t\tfor(int i = 0; i < teams.size(); i ++)\r\n\t\t{\r\n\t\t\tteamRoster += teams.get(i) + \" \";\r\n\t\t}\t\r\n\t\treturn teamRoster;\r\n\t}", "public LinkedList<String> getList(){\n return phoneNums;\n }", "public List getList() {\n return Arrays.asList(toJavaArray()); \n }", "public String toString() {\n\t\treturn list.toString();\n\t}", "public List<R> getAll();", "public String toListString() {\n\t\treturn head.toListString(); \n\t}", "public List<Person> getListRegisseure() {\n\t\treturn this.listRegisseure;\n\t}", "public List<LocalDate> getRosterDatesAsList() {\n ArrayList<LocalDate> localDates = new ArrayList<>(roster.keySet());\n Collections.sort(localDates);\n return localDates;\n }", "abstract List<T> getReuslt();", "public List<String> lore()\n\t{\n\t\treturn lore;\n\t}", "public ListaResponse<G> listar();", "@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return builder.toString();\n }", "public List getList();", "public static void print_all() {\n for (int i = 0; i < roster.size(); i++)\n System.out.println(roster.get(i).print());\n\n System.out.println();\n }", "public JList obtenirList() {\r\n\t\treturn list;\r\n\t}", "public java.util.List getList() {\n\t\treturn list;\n\t}", "List<GameCode> getGameCodeList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@GET\r\n @Produces(\"text/plain\")\r\n public Response getResearchObjectList() {\r\n UserProfile user = (UserProfile) request.getAttribute(Constants.USER);\r\n \r\n Set<URI> list;\r\n if (user.getRole() == Role.PUBLIC) {\r\n list = ROSRService.SMS.get().findResearchObjects();\r\n } else {\r\n list = ROSRService.SMS.get().findResearchObjectsByCreator(user.getUri());\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (URI id : list) {\r\n sb.append(id.toString());\r\n sb.append(\"\\r\\n\");\r\n }\r\n \r\n ContentDisposition cd = ContentDisposition.type(\"text/plain\").fileName(\"ROs.txt\").build();\r\n \r\n return Response.ok().entity(sb.toString()).header(\"Content-disposition\", cd).build();\r\n }", "public ArrayList getRooms();", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "public List<String> getRouteList();", "public List<Node> getPillList();", "public String returnList() {\n\n String str = \"\";\n Node<T> currentNode = head;\n\n while (currentNode.next != null) {\n\n str += currentNode.data + \" \";\n currentNode = currentNode.next;\n\n }\n\n str = str + currentNode.data;\n return str;\n\n }", "public void viewRoads(){\n for(int i = 0; i < roads.size(); i++)\n System.out.println(\"[\" + (i+1) + \"] \" + roads.get(i).getName());\n }", "public List<Jogador> getListaJogadores() {\n terminarAVez();\n return this.listaJogadores;\n }", "@Override\n public List<E> asList() {\n ArrayList<E> result = null;\n\n while (top.next != null) {\n top = top.next;\n result.add(top.data);\n }\n return result;\n }", "java.util.List<org.landxml.schema.landXML11.LanesDocument.Lanes> getLanesList();", "public List<TipoComprobanteSRI> getListaTipoComprobanteSRI()\r\n/* 351: */ {\r\n/* 352:341 */ return this.listaTipoComprobanteSRI;\r\n/* 353: */ }", "com.unitedtote.schema.totelink.totedatatypes._2008._04.CompressedList xgetRaceList();", "java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();", "public Roster getListofFriends(){\n\n\t\treturn friendsList;\n\t}", "public ArrayList<rubro> obtenerTodoslosRubros() {\n ArrayList<rubro> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement pr = conn.prepareStatement(\"select id_rubro , nombre, descripcion, estado, ruta \\n\"\n + \" from rubros \");\n\n ResultSet rs = pr.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(1);\n String nombre = rs.getString(2);\n String descripcion = rs.getString(3);\n boolean estado = rs.getBoolean(4);\n String ruta = rs.getString(5);\n\n rubro r = new rubro(id, nombre, estado, descripcion, ruta);\n\n lista.add(r);\n }\n\n rs.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n\n }", "public final Map<L2Character, AggroInfoHolder> getAggroListRP()\n\t{\n\t\treturn aggroList;\n\t}", "public List<String> getGroceries()\n {\n List<String> groceryList=new ArrayList<String>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_GROCERIES;\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 groceryList.add(cursor.getString(0));\n } while (cursor.moveToNext());\n }\n\n return groceryList;\n }", "java.util.List<protocol.Data.Friend.FriendItem> \n getFriendList();", "java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult> \n getReaultList();", "public List<Road> getRoads() {\n\t\treturn new ArrayList<Road>(roadsByUri.values());\n\t}", "@Override\n\tpublic String toString() {\n\t\tString string = \"\";\n\t\tfor (int i = list.size() - 1; i >= 0; i--) {\n\t\t\tstring += list.get(i) + \" \";\n\t\t}\n\t\treturn string;\n\t}", "public List<Person> getListDarsteller() {\n\t\treturn this.listDarsteller;\n\t}", "java.util.List<Score>\n getScoresList();", "public String toString()\n {\n if(this.head == null)\n return \"Lista je prazna!\";\n\n Vaspitac v = this.head;\n\n String str = \"[ \";\n while(v != null)\n {\n str += \"\\n\" + v.ime + \"\\n\\t\" + v + \"\\n\";\n v = v.next;\n }\n str += \"]\";\n return str;\n }", "java.util.List<People>\n getUserList();", "List<String> getTrees();", "@Override\n public String toString() {\n return list.toString().replace(\"[\",\"\").replace(\"]\",\"\");\n }", "public static List<String> getJavaList() {\n return javaList;\n }", "@Override\n\tpublic List<Resident> getResidentList() {\n\t\tQuery query = getSession().createQuery(\"select residents from RESIDENT_HMS residents\");\n\t\tList<Resident> residentlist=query.list();\n\t\treturn residentlist;\n\t}", "private ArrayList<String> convertToStringArrayList() {\r\n\t\tArrayList<String> strList = new ArrayList<String>();\r\n\t\tStringBuilder strBuilder = new StringBuilder();\r\n\t\tfor (int i = 0; i < gameBoard.getmBoard().length; i++) {\r\n\t\t\tfor (int j = 0; j < gameBoard.getmBoard()[0].length; j++) {\r\n\t\t\t\tstrBuilder.append(gameBoard.getIdValue(gameBoard.genId(i, j)));\r\n\t\t\t}\r\n\t\t\tstrList.add(strBuilder.toString());\r\n\t\t\tstrBuilder.setLength(0);\r\n\t\t}\r\n\r\n\t\tif (gameBoard.isPlayerBlackTurn()) {\r\n\t\t\tstrList.add(\"t\");\r\n\t\t} else {\r\n\t\t\tstrList.add(\"f\");\r\n\t\t}\r\n\r\n\t\tstrList.add(((Integer) gameBoard.getBlackScore()).toString());\r\n\t\tstrList.add(((Integer) gameBoard.getRedScore()).toString());\r\n\t\treturn strList;\r\n\t}", "@Override\n public String[] listAll() {\n return list();\n }", "public List<User> getUserList();", "public List<String> getListe()\n\t\t\t{\n\t\t\t\treturn personnes;\n\t\t\t}", "@Override\r\n public String toString() {\r\n String ans = this.nom + \"\\n\" + this.coordBase.toString() + \" \\n Robots : \\n\";\r\n for (Robot ro : this.robots) {\r\n ans += ro.toString() + \"\\n\";\r\n }\r\n return ans;\r\n }", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "java.util.List<org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement> getBridgeElementList();", "public String listResearchers();", "public List<User> list();", "public List<Restaurant> restaurantList(){\r\n\t\treturn DataDAO.getRestaurantList();\r\n\t}", "public List<Resep> getReseps() {\r\n return sessionFactory.getCurrentSession().createCriteria(Resep.class).list();\r\n }", "private String[] getGamesList() {\n\n\t\tGames games = new Games();\n\n\t\tint maxRecords = games.count();\n\t\tArrayList<Game> records = games.findAll(maxRecords, 0);\n\t\tIterator<Game> it = records.iterator();\n\n\t\tString[] output = new String[maxRecords];\n\t\tint i = 0;\n\n\t\twhile (it.hasNext()) {\n\n\t\t\tGame game = it.next();\n\t\t\toutput[i] = \"[\" + game.getId() + \"] \" + game.getName();\n\t\t\ti++;\n\n\t\t}\n\n\t\treturn output;\n\n\t}", "public List<String> getRunLogAsList();", "public List<String> read()\n\t{\n\t\treturn null;\n\t}", "public String toString()\n {\n return ll.toString();\n }", "public abstract List<UIReader> getReaderList();", "@Override\r\n public List<String> getStudenti() {\r\n List<Studente> listaStudenti = studenteFacade.findAll();\r\n List<String> result = new ArrayList<>();\r\n\r\n for (Studente s : listaStudenti) {\r\n result.add(s.toString());\r\n }\r\n return result;\r\n }", "public IAstRlsString[] getRlsStrings();", "public List<Object> getList() {\n List<Object> returnList = new ArrayList<Object>();\n ListNode<String, Object> n = front;\n while(n != null) {\n returnList.add(n.value);\n n = n.next;\n }\n Collections.reverse(returnList);\n return returnList;\n }", "public ArrayList<Ruta> getListaRuta() {\n\t\treturn listaRuta;\n\t}", "public List<User> list();", "@Override\n public List<UserRoom> getUserRoomList() {\n logger.info(\"Start getUserRoomList\");\n List<UserRoom> userRoomList = new ArrayList<>();\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_FROM_USER_ROOM);\n rs = preparedStatement.executeQuery();\n while (rs.next()) {\n userRoomList.add(myResultSet(rs));\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomList\");\n return userRoomList;\n }", "public String getListaGrupos () {\n String nomesGruposList = \"\";\n if(this.conversas != null && this.conversas.size() > 0){\n for(int i = 0; i < this.conversas.size(); i++){\n //nomesGruposList += conversas.get(i).nomeGrupo + \" \";\n }\n }\n return nomesGruposList;\n }", "public UserList list();", "java.util.List<People>\n getFriendListList();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TypeRia> touslesTypeRIA() {\n\t\tList<TypeRia> T = em.createQuery(\"from TypeRia t\").getResultList();\n\t\treturn T;\n\t}", "@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (Opdracht o : opdrachten){\n\t\t\tresult += o.toString() + \"\\n\";\n\t\t}\n\t\treturn result;\n\t}", "public LobbyList getLobbyList()\r\n\t{\r\n\t\treturn receiver.getList();\r\n\t}", "public COSArray toList() \n {\n return array;\n }", "public List<String> getStudents();", "public List<Colour> getPlayerList();", "public List<String> recordedDateList();", "public GermplasmList getGermPlasmList(String fileName) throws Exception;", "Object getROIs();", "@Override\n public String toString() {\n return rol;\n }", "java.util.List<java.lang.String> getContentsList();", "public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }" ]
[ "0.68492705", "0.65211", "0.65018696", "0.6264839", "0.6189367", "0.6091538", "0.609071", "0.6056717", "0.6055787", "0.60361725", "0.5979796", "0.5970445", "0.59682715", "0.59619087", "0.59079075", "0.5894206", "0.588263", "0.5875202", "0.5863027", "0.58537817", "0.5847069", "0.5833878", "0.58301044", "0.5800538", "0.579808", "0.5781609", "0.5768138", "0.57614815", "0.5760386", "0.5757628", "0.573769", "0.5734928", "0.57329386", "0.573255", "0.57296", "0.5712252", "0.5711145", "0.57048434", "0.5703821", "0.5679971", "0.56752926", "0.56648666", "0.5662614", "0.5660489", "0.5630497", "0.5628163", "0.56216717", "0.5621587", "0.56176215", "0.5614032", "0.55976856", "0.5591114", "0.5590893", "0.5586825", "0.55836195", "0.55826586", "0.5569703", "0.55680406", "0.55677027", "0.5566248", "0.5559462", "0.5550518", "0.5542936", "0.55369884", "0.5531511", "0.55307436", "0.55157894", "0.55072933", "0.55067325", "0.5492102", "0.54852617", "0.54852015", "0.54829097", "0.5481242", "0.54812086", "0.54797673", "0.54723775", "0.54695886", "0.54655325", "0.54648644", "0.5461088", "0.5456195", "0.5454945", "0.5439044", "0.543636", "0.54353005", "0.54332805", "0.5432411", "0.54311216", "0.5413781", "0.5412504", "0.54063416", "0.540529", "0.5401717", "0.53978574", "0.5397765", "0.53960997", "0.5389186", "0.53891534", "0.5387678" ]
0.6928213
0
Returns a list of the player names that don't have a profile within the site.
public List<String> getNoProfile() { return noProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getOnlinePlayerNames() {\n Iterable<User> onlineUsers = SlapPlugin.getInstance().getEssentials().getOnlineUsers();\n return StreamSupport.stream(onlineUsers.spliterator(), false)\n .map(user -> StringUtils.isEmpty(user.getNickname()) ? user.getName() : user.getNickname())\n .collect(Collectors.toList());\n }", "public List<String> getProfilesToSkip()\n {\n return profilesToSkip;\n }", "public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}", "static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}", "public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }", "public ArrayList<Player> checkToEliminate() {\n ArrayList<Player> eliminated = new ArrayList<Player>();\n\n // Check which players are to be eliminated\n for (Player player : playersInGame) {\n if (player.peekCard() == null) {\n eliminated.add(player);\n }\n }\n\n // Eliminate players from model\n for (Player eliminatedPlayer : eliminated) {\n playersInGame.remove(eliminatedPlayer);\n }\n\n return eliminated;\n }", "public static ArrayList<Player> getOtherPlayers() {\n ArrayList<Player> all = getAllPlayingPlayers();\n all.remove(getCurrentPlayer());\n\n return all;\n }", "private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }", "public ArrayList<Player> getOtherPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\toutput.addAll(players);\r\n\t\toutput.remove(getWhoseTurn() - 1);\r\n\t\treturn output;\r\n\t}", "public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}", "public String[] getPlayersUsername(){\n String[] usernames = new String[players.size()];\n Iterator it = players.entrySet().iterator();\n int i = 0;\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n usernames[i] = (String)pair.getKey();\n i++;\n }\n return usernames;\n }", "public List<String> listPlayerNames() {\n return this.playersNames;\n }", "Set<String> getPlayers();", "public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}", "default Set<UUID> getOpponents(UUID playerId, boolean excludeDeadPlayers) {\n Player player = getPlayer(playerId);\n if (player == null) {\n return new HashSet<>();\n }\n\n return player.getInRange().stream()\n .filter(opponentId -> !opponentId.equals(playerId))\n .filter(opponentId -> !excludeDeadPlayers || !getPlayer(opponentId).hasLost())\n .collect(Collectors.toSet());\n }", "public static void clearPlayerNames() {\r\n\t\tif (GameSetup.choiceBoxPlayer1.isEnabled()) {\r\n\t\t\tGameSetup.choiceBoxPlayer1.select(0);\r\n\t\t\tMain.player1 = \"\";\r\n\t\t}\r\n\r\n\t\tif (GameSetup.choiceBoxPlayer2.isEnabled()) {\r\n\t\t\tGameSetup.choiceBoxPlayer2.select(0);\r\n\t\t\tMain.player2 = \"\";\r\n\t\t}\r\n\r\n\t\tif (GameSetup.choiceBoxPlayer3.isEnabled()) {\r\n\t\t\tGameSetup.choiceBoxPlayer3.select(0);\r\n\t\t\tMain.player3 = \"\";\r\n\t\t}\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (GameSetup.choiceBoxPlayer4.isEnabled()) {\r\n\t\t\t\tGameSetup.choiceBoxPlayer4.select(0);\r\n\t\t\t\tMain.player4 = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void showWaitingPlayerList(List<String> waitingPlayerUsernames);", "public ArrayList<Entity> getAllOtherEntities(Player player)\n {\n ArrayList<Entity> entitiesWithoutPlayer = new ArrayList<>();\n for (Entity entity : entityList) {\n if (!entity.equals(player)) {\n entitiesWithoutPlayer.add(entity);\n }\n }\n return entitiesWithoutPlayer;\n }", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}", "public List<String> loadProfiles() {\n List<String> profileNames = new ArrayList<>();\n profilesMap.clear();\n\n ProfilesWrapper profiles = (ProfilesWrapper) XMLFileManager.loadXML(\"profiles.xml\", ProfilesWrapper.class);\n if (profiles != null && profiles.getProfiles() != null) {\n for (Profiles prof : profiles.getProfiles()) {\n profileNames.add(prof.getFileName());\n profilesMap.put(prof.getFileName(), new Profiles(prof.getFileName(), prof.getFilePath()));\n }\n }\n return profileNames;\n }", "public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}", "public String getPlayerListName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getPlayerListName ).orElse ( name );\n\t}", "public List<Player> getPassengers() {\n\t\tList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\tfor (Player p : Bukkit.getOnlinePlayers()) {\n\t\t\tif (isPassenger(p))\n\t\t\t\tret.add(p);\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n\tpublic List<Nature> findNaturesNotIn() {\n\t\treturn natureRepository.findNaturesNotIn();\n\t}", "public final List<String> findMissing(Player player, Collection<ItemStack> items)\n\t{\n\t\tList<String> list = new LinkedList<String>();\n\t\tif (items == null || items.size() == 0)\n\t\t\treturn list;\n\n\t\tList<ItemStack> missingItems = InventoryHelper.findMissing(player, items);\n\t\tif (missingItems.size() > 0)\n\t\t{\n\t\t\tfor (ItemStack item : missingItems)\n\t\t\t{\n\t\t\t\tString name = InventoryHelper.getItemName(item);\n\t\t\t\tif (name == null)\n\t\t\t\t\tname = StringHelper.toTitleCase(item.getType().toString().replaceAll(\"_\", \" \"));\n\t\t\t\tlist.add(item.getAmount() + \" * \" + name);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public ArrayList<String> deadPersonsTrueGuess(Guess currGuess) {\n ArrayList<String> deadPerson = new ArrayList<String>();\n for (Person person : config.personList) {\n for (HashMap.Entry<String, String> entry : person.getPersonAttValSet().entrySet()) {\n if (entry.getKey().equals(currGuess.getAttribute()) && !entry.getValue().equals(currGuess.getValue())) {\n deadPerson.add(person.getName());\n }\n }\n }\n\n return deadPerson;\n }", "public Component playerHasNotSlept(String name) {\n return MiniMessage.get().parse(MessageFormat.format(playerHasNotSlept, name));\n }", "private boolean checkProfileNameUniquessLocal() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < parsedProfiles.size(); j++) {\r\n\t\t\t\tif (parsedProfiles.get(i).getName()\r\n\t\t\t\t\t\t.compareTo(parsedProfiles.get(j).getName()) == 0) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }", "@Override\n\tpublic List<Profile> getAllProfiles() {\n\t\treturn null;\n\t}", "private void removeProfiles()\r\n\t{\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tps.setValue(i + PROFILE, \"\");\r\n\t\t}\r\n\t\t\r\n\t\tcount = 0;\r\n\t\tps.setValue(PROFILE_COUNT, count);\r\n\t\t\r\n\t}", "public ArrayList<String> alwaysLessPopular(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (NameRecord n : list){\n\t\t\tif (n.lessPop()){\n\t\t\t\tresult.add(n.getName());\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }", "public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }", "public Set<Character> players(){\r\n\t\tSet<Character> players = new HashSet<Character>();\r\n\t\tfor(Character character: characters()){\r\n\t\t\tif(character.isPlayer())\r\n\t\t\t\tplayers.add(character);\r\n\t\t}\r\n\t\treturn players;\r\n\t}", "public List<Player> getAttackedPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\tfor(Player p : getOtherPlayers()) {\r\n\t\t\tif(!(p.deck.hand.contains(new Moat()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Lighthouse()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Champion()) \r\n\t\t\t\t\t|| p.getPlayerNum() == getWhoseTurn())) {\r\n\t\t\t\toutput.add(p);\r\n\t\t\t}\r\n\t\t\tArrayList<Card> reactions = new ArrayList<Card>();\r\n\t\t\tfor(Card c : p.deck.hand) {\r\n\t\t\t\tif(c.isReaction()) reactions.add(c);\r\n\t\t\t}\r\n\t\t\tfor(Card c : reactions) {\r\n\t\t\t\tc.reactAttack();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "List<Player> getPlayers();", "public List<MemberData> findPastPlayers(Long playerId) {\r\n\t\tPlayer master = lookupPlayer(playerId);\r\n\t\tSet<Member> memberSet = new HashSet<Member>();\r\n\t\tfor (Player thisPlayer : playerDao.findByMember(master.getMember())) {\r\n\t\t\tfor (Player otherPlayer : thisPlayer.getGame().getPlayers()) {\r\n\t\t\t\tmemberSet.add(otherPlayer.getMember());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// remove all players currently invited\r\n\t\tfor (Invite i : master.getGame().getInvites()) {\r\n\t\t\tmemberSet.remove(i.getMember());\r\n\t\t}\r\n\t\t// remove self!\r\n\t\tmemberSet.remove(master.getMember());\r\n\t\t\r\n\t\t// sort by first name\r\n\t\tList<Member> sortedMembers = new ArrayList<Member>(memberSet);\r\n\t\tCollections.sort(sortedMembers, new Comparator<Member>() {\r\n\t\t public int compare(Member o1, Member o2) {\r\n\t\t return o1.getName().compareTo(o2.getName());\r\n\t\t }});\r\n\t\t\r\n\t\tArrayList<MemberData> membersData = new ArrayList<MemberData>();\r\n\t\tfor (Member m : sortedMembers) {\r\n\t\t\tmembersData.add(new MemberData(m));\r\n\t\t}\r\n\t\treturn membersData;\r\n\t}", "public void setProfilesToSkip(List<String> profilesToSkip)\n {\n this.profilesToSkip = profilesToSkip;\n }", "private static ArrayList<String> getPlayerFileNames() {\n\n ArrayList<String> fileNames = new ArrayList<String>();\n\n File folder = new File(\"otterbein/pig/player\");\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n if (listOfFiles[i].getName().endsWith(\".class\")) {\n fileNames.add(listOfFiles[i].getName());\n }\n }\n }\n\n return fileNames;\n }", "public static ArrayList<SkillName> getValuesWithoutGlobal() {\n return new ArrayList<>(Arrays.asList(SkillName.valuesWithoutGlobal()));\n }", "public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}", "public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}", "public static Collection<? extends Player> getOnlinePlayers() {\n return Bukkit.getServer().getOnlinePlayers();\n }", "@SuppressWarnings(\"unused\")\n public static List<String> getDiscordChatMutedPlayers() {\n return DiscordListener.chatMuted;\n }", "public Player getOppositePlayer();", "public Set<String> getOnlinePlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayersWhereOnline(true))\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}", "public static SkillName[] valuesWithoutGlobal() {\n return new SkillName[] {\n DIGGING,\n WOODCUTTING,\n MINING,\n FARMING,\n FISHING,\n ARCHERY,\n BEAST_MASTERY,\n SWORDSMANSHIP,\n DEFENSE,\n AXE_MASTERY,\n REPAIR,\n AGILITY,\n ALCHEMY,\n SMELTING,\n ENCHANTING,\n };\n }", "public List<String> getRosterList() {\n // TODO check if player name is related to a player profile\n List<String> rosterList = java.util.Arrays.asList(roster.split(\"\\\\s*,\\\\s*\"));\n return rosterList;\n }", "public static ArrayList<Player> getAccountOnlineUsers(String accountno) {\n\t\tArrayList<String> allUsers = getAccountUsers(accountno);\n\t\tArrayList<Player> onlineUsers = new ArrayList<Player>();\n\t\tif (!allUsers.isEmpty()) {\n\t\t\tfor (int i=0; i < allUsers.size(); i++) {\n\t\t\t\tPlayer player = GPP.server.getPlayerExact(allUsers.get(i));\n\t\t\t\tif (player!=null) onlineUsers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn onlineUsers;\n\t}", "public static ArrayList<Player> getAllPlayingPlayers() {\n // Anton fix: Would copy the list itself, we want just the items.\n // Remove/add manipulations would affect original list\n /*\n * ArrayList<Player> all = players; for (Player player: all) { if\n * (!player.isPlaying()) { all.remove(player); } }\n */\n\n ArrayList<Player> all = new ArrayList<Player>();\n for (Player player : players) {\n if (player.isPlaying()) all.add(player);\n }\n\n return all;\n }", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}", "List<Player> listPlayers();", "public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public abstract List<String> getRequiredProfiles();", "void skipNextPlayer() {\n endTurn();\n }", "public void removePlayerFromPlayerListForPlayerName(String playerName) {\n\n for (Player P : fliegeScore.getPlayers()) {\n if (P.getPlayerName().compareTo(playerName) == 0) {\n fliegeScore.getPlayers().remove(P);\n }\n }\n\n }", "java.util.List<org.beangle.security.session.protobuf.Model.Profile>\n getProfilesList();", "void updateOnlinePlayers(String skipone) { \r\n DynmapPlayer[] players = server.getOnlinePlayers();\r\n DynmapPlayer[] pl = new DynmapPlayer[players.length];\r\n System.arraycopy(players, 0, pl, 0, pl.length);\r\n if(skipone != null) {\r\n for(int i = 0; i < pl.length; i++)\r\n if(pl[i].getName().equals(skipone))\r\n pl[i] = null;\r\n }\r\n online = pl;\r\n }", "public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }", "public ArrayList<String> deadPersonsFalseGuess(Guess currGuess) {\n ArrayList<String> deadPerson = new ArrayList<String>();\n\n for (Person person : config.personList) {\n for (HashMap.Entry<String, String> entry : person.getPersonAttValSet().entrySet()) {\n if (entry.getKey().equals(currGuess.getAttribute()) && entry.getValue().equals(currGuess.getValue())) {\n deadPerson.add(person.getName());\n }\n }\n }\n\n return deadPerson;\n\n }", "Collection<User> players();", "public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }", "public String[] getPlayers() {\r\n return playerIds;\r\n }", "public Vector getSubProfilesNames(long profileId) throws Exception\n {\n Vector results = new Vector();\n Vector ids = getSubProfiles(profileId);\n for (int i = 0; i != ids.size(); i++)\n {\n Long idL = (Long) ids.get(i);\n if (idL != null)\n {\n long id = idL.longValue();\n WikiProfile profile = getProfile(id);\n if (profile != null)\n {\n results.add(profile.getName());\n }\n }\n }\n return results;\n }", "public synchronized List<String> getRemovedUsernameList() {\n List<String> removedUsernameList = new ArrayList<>();\n final ConcurrentMap<String, UserContext> cacheMap = tokenCache.asMap();\n // add user name to removedUsernameList which not in current cache, and in oldTokenUsernameMap\n oldTokenUsernameMap.forEach((token, oldUsername) -> {\n if (!cacheMap.containsKey(token)) {\n // Expired or logout user.\n removedUsernameList.add(oldUsername);\n // remove from old map.\n oldTokenUsernameMap.remove(token);\n }\n });\n\n // add new user name to oldTokenUsernameMap\n cacheMap.forEach((token, userContext) -> {\n if (!oldTokenUsernameMap.containsKey(token)) {\n oldTokenUsernameMap.put(token, userContext.getName());\n }\n });\n return removedUsernameList;\n }", "public synchronized void emptyField(){\n List<Player> pList = Arrays.asList(players);\r\n \r\n Iterator<Player> pIter = pList.iterator();\r\n while(pIter.hasNext()){\r\n //for(Player player: players){\r\n Player player = pIter.next();\r\n \r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(\"NUMBER OF CARDS: \" + player.getCardsInHand().size());\r\n \r\n Iterator<Card> cardIter = player.getCardsInHand().iterator();\r\n \r\n while(cardIter.hasNext()){\r\n try{\r\n collectCard(cardIter.next());\r\n }catch(Exception ex){\r\n }\r\n \r\n }\r\n }\r\n }", "public Vector<String> getProfiledirs()\r\n {\r\n Vector<String> profiles = new Vector<String>();\r\n\r\n for (int i = 0; i < _profileDir.length; i++)\r\n {\r\n File dir = new File(_profileDir[i]);\r\n String aux[] = dir.list();\r\n\r\n if (aux != null)\r\n {\r\n for (int j = 0; j < aux.length; j++)\r\n {\r\n dir = new File(_profileDir[i] + aux[j]);\r\n if (dir.isDirectory())\r\n {\r\n profiles.add(_profileDir[i] + aux[j]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return profiles;\r\n }", "public ArrayList<String> alwaysPopular(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (NameRecord n : list){\n\t\t\tif (n.topRankDecs()>=2){\n\t\t\t\tresult.add(n.getName());\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public synchronized TreeMap getProfileNames()\n {\n if (profileNames == null)\n {\n synchronized (this)\n {\n JOTLogger.log(JOTLogger.DEBUG_LEVEL, this, \"Caching profile names\");\n profileNames = new TreeMap();\n try\n {\n Vector v = JOTQueryBuilder.findAll(null, WikiProfile.class).getAllResults();\n for (int i = 0; i != v.size(); i++)\n {\n WikiProfile profile = (WikiProfile) v.get(i);\n profileNames.put(profile.getName(), new Long(profile.getId()));\n }\n } catch (Exception e)\n {\n JOTLogger.logException(JOTLogger.ERROR_LEVEL, this, \"Failed to read profile names from DB, not initialized yet ?\", e);\n\n }\n }\n }\n return profileNames;\n }", "@Override\n\tpublic String getInspected(Player p) {\n\t\treturn null;\n\t}", "public static List<String> getNearbyPlayers(Location loc, double radius) {\n\t\tList<String> playerNames = new ArrayList<String>();\n\t\tfor (Player player : Bukkit.getOnlinePlayers()) {\n\t\t\tif (player.getLocation().getWorld().equals(loc.getWorld())) {\n\t\t\t\tif (loc.distanceSquared(player.getLocation()) < Math.pow(radius, 2)) {\n\t\t\t\t\tplayerNames.add(player.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn playerNames;\n\t}", "public Player lookForWinner(){\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tif(this.players.get(i).numCards() == 0)\n\t\t\t\treturn this.players.get(i);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}", "private boolean isPlayerNameFreeToUse(String clientName){\n\t\tfor (Player p : getPlayerMap().values()) {\n\t\t\tif(p.getName().equals(clientName)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public List<String> onTabComplete(CommandSender commandSender, org.bukkit.command.Command command, String label, String[] args) {\n // We currently don't want to tab-completion here\n // Return a new List so it isn't a list of online players\n return Collections.emptyList();\n }", "private List<String> receiveConnectedPlayers(@NotNull String data) {\n ConnectedPlayersDto result = GameGraphics.gson.fromJson(data, ConnectedPlayersDto.class);\n if (result.players != null) {\n players = result.players.stream()\n .filter(Objects::nonNull)\n .map(player -> player.name)\n .collect(Collectors.toList());\n return players;\n }\n return null;\n }", "private List<String> validatePlayer(String playerName, CommandSender sender) {\n\n\t\tList<Player> players = new ArrayList<Player>();\n\t\tList<String> match = new ArrayList<String>();\n\n\t\tplayers = this.getServer().matchPlayer(playerName);\n\t\tif (players.isEmpty()) {\n\t\t\t// Check for an offline player (exact match).\n\t\t\tfor (OfflinePlayer player : Bukkit.getOfflinePlayers()) {\n\t\t\t\tif (player.getName().equals(playerName)) {\n\t\t\t\t\tmatch.add(player.getUniqueId().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\tif (Arrays.asList(this.getServer().getOfflinePlayers()).contains(Bukkit.getOfflinePlayer(playerName))) {\n\t\t\t\tmatch.add(Bukkit.getOfflinePlayer(playerName).getName()); //.getUniqueId().toString());\n\t\t\t\t//match.add(Bukkit.getOfflinePlayer(Bukkit.getPlayer(playerName).getUniqueId()).getName()); //.getUniqueId().toString());\n\t\t\t} else {\n\t\t\t\t// look for partial matches\n\t\t\t\tfor (OfflinePlayer offline : this.getServer().getOfflinePlayers()) {\n\t\t\t\t\tif (offline.getName().toLowerCase().startsWith(playerName.toLowerCase()))\n\t\t\t\t\t\tmatch.add(offline.getName()); //.getUniqueId().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n\n\t\t} else {\n\t\t\tfor (Player player : players) {\n\t\t\t\tmatch.add(player.getUniqueId().toString());\n\t\t\t}\n\t\t}\n\n\t\tif (match.isEmpty()) {\n\t\t\tsender.sendMessage(ChatColor.RED + \"Player not found!\");\n\t\t\treturn null;\n\t\t} else if (match.size() > 1) {\n\t\t\tsender.sendMessage(ChatColor.RED + \"Too many matches found! (\" + match.toString() + \")\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn match;\n\n\t}", "public List<SkungeePlayer> getPlayers(String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\treturn japson.sendPacket(packet);\n\t}", "public static void showPreviousPlayerNames() {\r\n\t\tGameSetup.choiceBoxPlayer1.select(Main.player1);\r\n\t\tGameSetup.choiceBoxPlayer2.select(Main.player2);\r\n\t\tGameSetup.choiceBoxPlayer3.select(Main.player3);\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tGameSetup.choiceBoxPlayer4.select(Main.player4);\r\n\t\t}\r\n\t}", "@Test\n void removePlayersFromScoreBoardDoesNothingIfNoPlayerMarkedForRemoval(){\n assertEquals(4, scoreboard.getScore().size());\n //do not add players to the list of players that should be removed\n List<String> usersToBeRemoved=new ArrayList<>();\n //remove players in list\n scoreboard.removePlayersFromScoreBoard(usersToBeRemoved);\n //check that players were removed\n assertEquals(4, scoreboard.getScore().size());\n assertEquals(4,scoreboard.getCorrectlyGuessedMysteryWordsPerPlayer().size());\n }", "@Override\r\n public String toString(){\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(player.toString());\r\n }\r\n return \"\";\r\n }", "public int nrOfPlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null) {\n playerCount++;\n }\n }\n\n return playerCount;\n }", "public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}", "@Override\n public List<Course> getNonEnrolledCourses(String username) {\n Optional<User> student = userRepository.findById(username);\n if (!student.isPresent()){\n return null;\n }\n\n return courseRepository.findAllByStudentsNotContaining(student.get());\n }", "@Override\n\tpublic String getPlayer() {\n\t\treturn null;\n\t}", "public String[] getProfiles();", "public void removePlayer(String p) {\n this.playersNames.remove(p);\n }", "public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }", "public Set<Player> getParticipants() { //TODO: not sure the validation needs to happend here\n\t\t// Run through the results and make sure all players have been pushed into the participants set.\n\t\tfor ( Result result : results ) {\n\t\t\tparticipants.add(result.getWinner());\n\t\t\tparticipants.add(result.getLoser());\n\t\t}\n\n\t\treturn participants;\n\t}", "public ArrayList<String> alwaysMorePopular(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (NameRecord n : list){\n\t\t\tif (n.morePop()){\n\t\t\t\tresult.add(n.getName());\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "private List<String> GetWarps(IPlayer owner)\r\n\t{\r\n\t\tif (owner == null)\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=1\");\r\n\t\telse\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=0 AND creator=?\", owner);\r\n\t}", "public List<String> getRankingPlayer() throws IOException, ClassNotFoundException {\r\n return ctrlDomain.getRankingPlayer();\r\n }", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }", "public Vector<String> getWSSecurityProfileNames(){\n\t\tVector<String> names = new Vector<String>();\n\t\tnames.addAll(wsSecurityProfileNames_SystemDefined);\n\t\tnames.addAll(wsSecurityProfileNames_UserDefined);\n\t\treturn names;\n\t}", "public void setSkipProfileNamePage( boolean skippable )\n\t{\n\t mSkipProfileNamePage = skippable;\t \n\t doSkipProfileNamePage( skippable );\n\t}", "public List<String> nicknames();" ]
[ "0.6754081", "0.63030005", "0.6236239", "0.6046707", "0.59871525", "0.5960642", "0.5867456", "0.567574", "0.5657716", "0.5630177", "0.56132436", "0.5466744", "0.5433197", "0.54284763", "0.5427151", "0.5420538", "0.54160374", "0.5374336", "0.5335254", "0.5317623", "0.529224", "0.52655536", "0.5257433", "0.52530307", "0.5248189", "0.5227304", "0.52265465", "0.5210979", "0.5207509", "0.5206722", "0.52044857", "0.52013916", "0.51998967", "0.5198805", "0.5194443", "0.5187985", "0.5182152", "0.51762205", "0.5163009", "0.51586384", "0.51576316", "0.5150661", "0.5150606", "0.51472324", "0.5136016", "0.51354194", "0.51297617", "0.51229876", "0.5116976", "0.5102987", "0.5092272", "0.5083769", "0.5083694", "0.50833154", "0.50831413", "0.50824", "0.5077742", "0.5075197", "0.50705457", "0.5069199", "0.5063381", "0.50591576", "0.5055672", "0.50520766", "0.50446945", "0.5040545", "0.50223094", "0.50164336", "0.50131345", "0.5010144", "0.5009361", "0.50031394", "0.49962756", "0.49899027", "0.49805024", "0.49767157", "0.49740535", "0.4972294", "0.4971702", "0.4961546", "0.49614176", "0.49562323", "0.4945552", "0.49443242", "0.49422985", "0.49366152", "0.4936478", "0.4933219", "0.49318647", "0.49234304", "0.49224174", "0.49203584", "0.49194315", "0.49139473", "0.49135962", "0.49075556", "0.49001643", "0.48969388", "0.48906523", "0.48896724" ]
0.6285921
2
Adds a comment to the team's list.
public void addComment(Comment comment) { this.comments.add(comment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addComment(CommentInfo comment) {\n \tcomments.add(comment);\n }", "public void addComment(CommentDTO comment) {\n\t\tif (comments == null)\n\t\t\tcomments = new ArrayList<CommentDTO>();\n\t\tcomments.add(comment);\n\t}", "@Override\n\tpublic void add(CommentModel comment) {\n\t\tcomments.add(comment);\n\t}", "public void addComment(String c) {\n comments.add(c);\n }", "public void addComment(Comment comment) {\n if (this.comments == null) {\n this.comments = new ArrayList<>();\n }\n this.comments.add(comment);\n }", "public void addToCommentsList(Object newValue);", "public void addToCommentsList(Object newValue);", "public void addComment(final CommitComment comment) {\n addItem(TYPE_COMMENT, comment);\n }", "public void addComment(Comment comment){\n commentRepository.createComments(comment);\n }", "public void addComment(Comment comment) {\n if (!isInComments(comment)) {\n this.comments.add(0, comment);\n }\n }", "public void addComment(Comment comment) {\n \t\tcomment.setId(commentIdCounter);\n \t\tcomments.add(comment);\n \t\tcommentIdCounter++;\n \t}", "public void addComment(BlogEntry blog, CommentForm comment);", "Builder addComment(Comment value);", "void addComment(long mediaId, String text);", "private void addCommentsToIssue(String comment) {\n\t\tApplicationUser currentUser = ComponentAccessor.getUserManager().getUser(\"NoFails\");\n\t\t// Get access to the Jira comment and component manager\n\t\tCommentManager commentManager = ComponentAccessor.getCommentManager();\n\t\t// Get the last comment entered in on the issue to a String\n\t\tcommentManager.create(issue, currentUser, comment, true);\n\t}", "public void addComments(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "public ThreeDSecureRequest addComment(String comment) {\n //create new comments array list if null\n if (null == this.comments) {\n this.comments = new ArrayList<Comment>();\n }\n\n int size = comments.size();\n this.comments.add(new Comment().addComment(comment).addId(++size));\n return this;\n }", "public void addComment(String comment) {\n checkNotNull(comment);\n addLine(\"// \" + comment);\n }", "void addNewComment(BlogComment comment) throws DAOException;", "public void addComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "private void addComment() {\r\n Editor classEditor = null;\r\n try {\r\n classEditor = curClass.getEditor();\r\n } catch (Exception e) {\r\n }\r\n if (classEditor == null) {\r\n System.out.println(\"Can't create Editor for \" + curClass);\r\n return;\r\n }\r\n\r\n int textLen = classEditor.getTextLength();\r\n TextLocation lastLine = classEditor.getTextLocationFromOffset(textLen);\r\n lastLine.setColumn(0);\r\n // The TextLocation now points before the first character of the last line of the current text\r\n // which we'll assume contains the closing } bracket for the class\r\n classEditor.setText(lastLine, lastLine, \"// Comment added by SimpleExtension\\n\");\r\n }", "@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E addComment(CtComment comment);", "@Override\r\n\tpublic int addComment(Comment comment) {\n\t\treturn commentDAO.addComment(comment);\r\n\t}", "public void addComment(Long arrivalTime, Long userID)\n {\n commenters.add(userID);\n latestCommentTime = arrivalTime;\n totalScore += 10;\n }", "public boolean addNewCommentToWallItem(WallItemComment wallItemComment);", "Builder addComment(String value);", "public void addCommentField(String comment) {\n addCommentField(comment, false);\n }", "@Test\n public void testAddComment() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // get item id\n\n String id = \"\";\n\n Filter filter = new FilterByName(name);\n Item[] result = tracker.findBy(filter);\n for (Item item : result) {\n if (item !=null && item.getName().equals(name)) {\n id = item.getId();\n break;\n }\n }\n\n // add comment to item\n\n String action2 = \"3\";\n String comment = \"new comment\";\n\n Input input2 = new StubInput(new String[]{action2, comment, yes});\n new StartUI(input2).init(tracker);\n\n for (Comment nextComment : tracker.findById(id).getComments()) {\n if(nextComment != null) {\n Assert.assertEquals(nextComment.getText(), comment);\n break;\n }\n }\n }", "@Override\n\tpublic void addArComment(ArComment ac) throws Exception {\n\t\tarCommentDao.add(ac);\n\t}", "public int addComment(Comment comment) {\n\t\treturn cdi.addComment(comment);\n\t}", "public void addComment(String spid, Comment comment) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tsuper.addComment(PERFORMERS_COMMENTS_NEW, spid, comment);\n\t}", "public void addComment(String key, String comment)\n {\n if (!comments.containsKey(key)) comments.put(key, new ArrayList<String>());\n comments.get(key).add(comment);\n if (!keys.contains(key)) keys.add(key);\n }", "public static void addComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, COMMENTS, value);\r\n\t}", "public void addComment(View v) {\n\t\tIntent i = new Intent(ReadComments.this, AddComment.class);\n\t\tstartActivity(i);\n\t}", "public static void addComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, COMMENTS, value);\r\n\t}", "public boolean addComment(BlogEntry blogEntry, String user, String text) {\n try {\n Comment comment = new Comment(blogEntry, user, text);\n comments.add(comment);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }", "private void addCommentToPost(Comment comment, Post post) {\n\t\tList<Comment> comments = post.getComments();\n\t\tcomments.add(comment);\n\t\tpost.setComments(comments);\n\t}", "@Override\n public void onComment(Comment newComment) {\n addComment(mPostRef, newComment)\n .addOnSuccessListener(this, new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(LOG_VAL, \"Comment added\");\n\n //Hide keyboard and scroll to top\n hideKeyboard();\n mCommentRecycler.smoothScrollToPosition(0);\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(LOG_VAL, \"Add comment failed\", e);\n\n //show failure message and hide keyboard\n hideKeyboard();\n Snackbar.make(findViewById(android.R.id.content), \"Failed to add comment\",\n Snackbar.LENGTH_SHORT).show();\n }\n });\n }", "@RequestMapping(value = \"/flood/addComment\", method = RequestMethod.POST)\n public String addCommentPost(@ModelAttribute(\"newComment\") Comment comment,\n HttpServletRequest request,\n Model model) {\n comment.setUserId(1L);\n model.addAttribute(\"newComment\", commentService.addComment(comment));\n return \"floodLine\";\n }", "public Comment addComent(long messageId, Comment comment) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\tcomment.setId(comments.size() + 1);\r\n\t\tcomments.put(comment.getId(), comment);\r\n\t\treturn comment;\r\n\t}", "@PostMapping(value= \"/comments/\")\n\tpublic String createComments(@RequestBody List<Comment> comment) {\n\t\tlogger.debug(\"Saving comments.\");\n\t\tservice.createComments(comment);\n\t\treturn \"Comment records created.\";\n\t}", "org.hl7.fhir.String addNewComments();", "private void enterComment(String comment) {\n delegationDefaultCreationScreen.commentField.sendKeys(comment);\n }", "void createForAllDevelopers(Comment comment);", "public void addAll(ArrayList<CommentModel> listcomment ) {\n\t\tcomments.addAll(listcomment);\n\t}", "public String doCreateComment() {\r\n Users commenter = ui.getUser();\r\n try {\r\n this.newComment.setRecipe(this.recipe);\r\n this.newComment.setCommenter(commenter);\r\n this.newComment.setDateCommented(new Date().getTime());\r\n List<Comment> c = recipe.getComments();\r\n c.add(newComment);\r\n this.recipe.setComments(c);\r\n recipesEJB.editRecipe(recipe);\r\n } catch (javax.ejb.EJBAccessException ejbae) {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Only registered users can post comments.\"));\r\n }\r\n return \"/recipe.xhtml?recipe=\" + qm.get(\"recipe\");\r\n }", "public void addTeam(final TeamController team) {\r\n\t\tteamList.add(team);\r\n\t}", "public void addComment(String content, String screenName) {\n ParseObject comment = new ParseObject(\"comment\");\n comment.put(\"content\", content);\n comment.put(\"screenName\", screenName);\n comment.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error creating comment in Parse: \" + e);\n }\n\n }\n });\n\n add(\"comments\", comment);\n saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error saving comment to photo in Parse: \" + e);\n }\n }\n });\n }", "public void insert(Comment com){\n //@todo implement method\n }", "public static void addCommentToPR(ApprovalRequest ar,\r\n\t\t\tLongString commentText, String commentTitle, Date commentDate,\r\n\t\t\tUser commentUser) {\r\n\t\tComment comment = new Comment(ar.getPartition());\r\n\t\tcomment.setType(Comment.TypeGeneral);\r\n\t\tcomment.setText(commentText);\r\n\t\tcomment.setTitle(commentTitle);\r\n\t\tcomment.setDate(commentDate);\r\n\t\tcomment.setUser(commentUser);\r\n\t\tcomment.setExternalComment(true);\r\n\t\tcomment.setParent(ar);\r\n\t\tar.getApprovable().getComments().add(comment);\r\n\r\n\t}", "public void setComment(String comment);", "public void setComment(String comment);", "public boolean addComment (Message comment) {\n Logger.write(\"VERBOSE\", \"DB\", \"addComment(...)\");\n \n try {\n execute(DBStrings.addComment.replace(\"__sig__\", comment.getSig())\n .replace(\"__msgText__\", comment.CMNTgetText())\n .replace(\"__parent__\", comment.CMNTgetItemID())\n .replace(\"__commenterKey__\", Crypto.encodeKey(getSignatory(comment)))\n .replace(\"__senderKey__\", Crypto.encodeKey(getSignatory(comment)))\n .replace(\"__creationTime__\", Long.toString(comment.getTimestamp())));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }", "@Override\n public void addParticipant(Participant participant) throws AlfredException {\n this.participantList.add(participant);\n }", "public static void addComment(String handle, long problemID, String commentBody) {\n Comment comment = new Comment(handle, problemID, commentBody, new Date());\n commentColl.save(comment);\n }", "public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}", "@Test\n public void testAddComment()\n {\n SalesItem salesIte1 = new SalesItem(\"Java for complete Idiots\", 21998);\n assertEquals(true, salesIte1.addComment(\"James Duckling\", \"This book is great. I learned all my Java from it.\", 4));\n assertEquals(1, salesIte1.getNumberOfComments());\n }", "public void addComment(Comment com){\n final Comment com2=com;\n new AsyncTask<Void, Void, Void>() {\n\n @Override\n protected Void doInBackground(Void... params) {\n try {\n mCommentTable.insert(com2);\n } catch (Exception exception) {\n Log.i(\"add comment error: \",exception.getMessage());\n }\n return null;\n }\n }.execute();\n }", "public int addCommentForMeeting(Meeting meeting, Comment comment)\n throws Exception\n {\n CommentManager commentManager = new CommentManager();\n return commentManager.addComment(meeting, comment);\n }", "public void setComment(String comment){\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/appendComment\")\n public void appendComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n if (belongTo == null || content == null || createdBy == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.publish(createdBy, belongTo, content));\n renderJson(mResult);\n }", "public void setComments(String comment) {\n\t\tthis.comments = comment;\n\t}", "Comment createComment();", "public void setComment(String comment) {\n this.comment = comment;\n }", "void create(Comment comment);", "Builder addComment(Comment.Builder value);", "@Transactional\r\n\t@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.POST)\r\n\tpublic ResponseEntity<Comment> add(Comment comment) {\r\n\r\n\t\tcomment.setCommentState(CommentState.PENDING);\r\n\t\treturn new ResponseEntity(commentRepository.save(comment), HttpStatus.OK);\r\n\t}", "private void addComment(Question q)\n\t{\n\t\tQuestion q_comm = new Question(q);\n\t\tq_comm.setQid(q_comm.getQid().concat(\"comment\"));\n\t\tq_comm.setQuestion(q_comm.getQuestion().concat(\" comment\"));\n\t\tq_comm.setType(\"T\");\n\t\t/*\tCond: SE-StudyEventOID/F-FormOID[RepeatKey]/IG-ItemGroupOID/I-ItemOID == \"-oth-\"\n\t\t */\n\t\tString cond_oid = q.getQid().concat(prop.getProperty(\"ext.cond\"));\n\t\tString cond_str = \"$(SE-\" + prop.getProperty(\"dummy.study_event_oid\") + \"/F-\" + survey.getId() + \"/IG-\" + q.getGid() + \"/I-\" + q.getQid() + \")==NULL\";\n\t\tsurvey.addCondition(new Condition(prop.getProperty(\"imi.syntax_name\"), cond_oid, cond_str));\n\t\tq_comm.setCond(cond_oid);\n\t\tsurvey.addQuestion(q_comm);\n\t}", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setCommentList(List<FreeTextType> list) {\n commentList = list;\n }", "public void setComment(String comment)\n {\n this.comment = comment;\n }", "@RequestMapping(value=\"/addComment\", method=RequestMethod.POST)\r\n\tpublic ModelAndView addComment(HttpServletRequest request,\r\n\t\t\t@ModelAttribute(value=\"newComment\") Comment newComment) {\r\n\t\tModelAndView result = new ModelAndView(\"redirect:/getAllComments\"); \r\n\t\t\r\n\t\tLOGGER.info(\"/addComment: \" + newComment);\r\n\t\tthis.commentDAO.addComment(newComment);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "@RequestMapping(value = \"/comment/project/add/{projectId}\", method = RequestMethod.POST)\r\n public String projectComment(@PathVariable(\"projectId\") String projectId, @ModelAttribute(\"projectComment\")\r\n @Valid Comment projectComment, BindingResult result) {\r\n if (!result.hasErrors()) {\r\n int pid;\r\n try {\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User u = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n pid = Integer.parseInt(projectId);\r\n\r\n persistComment(projectComment, u, pid,\r\n 1);\r\n return \"redirect:/project/\" + projectId;\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n }\r\n return \"redirect:/project/\" + projectId;\r\n }", "public void setCommentsList(EList newValue);", "public void setCommentsList(EList newValue);", "@Override\r\n\tpublic boolean gbCommentInsert(GroupBoardDto dto) {\n\t\treturn false;\r\n\t}", "public void insert(Comment comment) {\n if (comment.getParentId() == null || comment.getParentId() == 0) {\n throw new CustomException(CustomErrorCode.TARGET_PARAM_NOT_FOUND);\n }\n if (comment.getType() == null || !CommentTypeEnum.isExist(comment.getType())) {\n throw new CustomException(CustomErrorCode.TYPE_PARAM_ERROR);\n }\n //comment question or comment comment\n if (comment.getType() == CommentTypeEnum.QUESTION.getType()) {\n //comment question\n Question question = questionMapper.selectByPrimaryKey(comment.getParentId());\n if (question == null) {\n throw new CustomException(CustomErrorCode.QUESTION_NOT_FOUNT);\n }\n commentMapper.insert(comment);\n question.setCommentCount(1);\n questionExtMapper.incCommentCount(question);\n //add notification\n CreateNotification(comment, question.getCreator(), question.getId(), NotificationTypeEnum.QUESTION);\n } else {\n //comment comment\n Comment dbComment = commentMapper.selectByPrimaryKey(comment.getParentId()); //dbComment=parentComment\n if (dbComment == null) {\n throw new CustomException(CustomErrorCode.COMMENT_NOT_FOUND);\n }\n commentMapper.insert(comment);\n Comment parentComment = new Comment();\n parentComment.setId(comment.getParentId());\n parentComment.setCommentCount(1L);\n commentExtMapper.incCommentCount(parentComment);\n //add notification\n CreateNotification(comment, comment.getCommentator(), dbComment.getParentId(), NotificationTypeEnum.COMMENT);\n }\n }", "public void add(String text) {\n list.add(text);\n }", "public void setCommentId(int commentId);", "public final void editComment() {\n EditDialog newInstance = EditDialog.newInstance(this.mAlbumItem);\n newInstance.setViewModel(this.viewModel);\n newInstance.show(this.mFragmentManager, (String) null);\n }", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "@Override\n public void add(ChatMessage object) {\n chatMessageList.add(object);\n super.add(object);\n }", "public void addCommentValidator(CommentValidator val) {\n validators.add(val);\n }", "@Test\n public void testAddComment() throws Exception {\n // Save the nurse and login as that person\n hp1.save();\n assert (PermissionsController.getInstance().logon(\"pro1\", \"pass1\"));\n assert (PermissionsController.getInstance().currentUserPermissions() ==\n Permissions.NURSE);\n\n // Save patient 1 and add a HealthRecord to them\n pat1.save();\n HealthRecord hr = HealthRecordController.getInstance().addRecord(pat1.getPatientID(), new Date(), 1, 1, 1, 1);\n\n HealthRecordController hrc = HealthRecordController.getInstance();\n\n // Add the patient to the nurse\n hp1.addPatient(pat1.getPatientID());\n hp1.save();\n\n // Add the comments to the created HealthRecord\n hrc.addComment(hr.getRecordID(), \"Hi There!\");\n hrc.addComment(hr.getRecordID(), \"Second!\");\n\n // The HealthRecord associated with pat1 should have 2 comments\n assert (((HealthProfessional)PermissionsController.getInstance().getCurrentUser()).getPatients()[0].getHealthRecords()[0].getComments().size() == 2);\n }", "public void setCreatedComments(List<Comment> createdComments) {\n this.createdComments = createdComments;\n }", "@Override\n public boolean createComment(NutricionistComment comment) {\n return nutricionistCommentDAO.createComment(comment);\n }", "public void addNewToDo(String description) {\n Todo todo = new Todo(description);\n taskList.add(todo);\n printSuccessfulAddMessage(todo.toString());\n }", "public void setComments(String comments) {\n this.comments = comments;\n }", "public void setComments(String newValue);", "public void addPostComment(final String name, final String email, final String body,\n final String permalink) {\n\n // XXX HW 3.3, Work Here\n // Hints:\n // - email is optional and may come in NULL. Check for that.\n // - best solution uses an update command to the database and a suitable\n // operator to append the comment on to any existing list of comments\n\n// DBObject comment = new BasicDBObject()\n Document comment = new Document()\n .append(\"author\", name)\n .append(\"email\", email)\n .append(\"body\", body);\n\n // Need to identify the post that the comments will be added in to\n Document thePost =new Document(\"permalink\", permalink);\n\n // Specify the update. Push in a \"comment\" document in to the \"comments\" array in the post\n Document theUpdt =new Document(\"$push\", new Document(\"comments\",comment));\n\n // Specify the post to change and how to change it\n postsCollection.updateOne(thePost,theUpdt);\n\n }", "public void setComments(String comments) {\n _comments = comments;\n }", "public void setComments(String comments) {\r\n this.comments = comments;\r\n }", "public void setComment(String c) {\n comment = c ;\n }", "public void comment(String data);", "void createSingleFileComment(ChangedFile file, Integer line, String comment);", "void addParticipant(Participant participant);" ]
[ "0.71701926", "0.6912942", "0.6843259", "0.6787953", "0.66694045", "0.6550417", "0.6550417", "0.6549024", "0.6543746", "0.6404498", "0.6372144", "0.63188934", "0.62962", "0.6288043", "0.6190817", "0.6167625", "0.6088042", "0.6087935", "0.60257196", "0.601392", "0.59237796", "0.59102154", "0.5904051", "0.58527136", "0.5828378", "0.5772743", "0.5757336", "0.57050073", "0.56556636", "0.5609443", "0.56054837", "0.5586735", "0.5580247", "0.5552044", "0.55346143", "0.5529456", "0.55203736", "0.5514335", "0.55051357", "0.55039716", "0.54884166", "0.54836875", "0.5469342", "0.54535526", "0.54213107", "0.5393113", "0.53874457", "0.53809124", "0.53752935", "0.5363547", "0.53516704", "0.53516704", "0.5342308", "0.53378904", "0.5297504", "0.52842766", "0.5281524", "0.5242791", "0.52362037", "0.5212937", "0.5193014", "0.51681733", "0.51663095", "0.5164324", "0.51624584", "0.51613975", "0.51551974", "0.5154618", "0.5145872", "0.5137447", "0.5135847", "0.5135847", "0.5125283", "0.51218957", "0.51099247", "0.50687", "0.50512886", "0.50512886", "0.5014427", "0.5007053", "0.4996179", "0.49854654", "0.4980395", "0.49758554", "0.49758554", "0.49737817", "0.49684173", "0.49658635", "0.4959796", "0.49427858", "0.4940406", "0.4934517", "0.49318844", "0.49215728", "0.4920434", "0.49177313", "0.49162006", "0.49158612", "0.49147797", "0.49094468" ]
0.69866353
1
Returns a java list of comments related to the team.
public List<Comment> getComments() { return this.comments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Comment> getComments() {\n fetchComments();\n return Collections.unmodifiableList(comments);\n }", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "public List<CommentDTO> getComments() {\n\t\treturn comments;\n\t}", "public List<CommentInfo> getComments() {\n \treturn this.comments;\n }", "@Override\n public List<NutricionistComment> findAllComments() {\n return nutricionistCommentDAO.findAllComments();\n }", "public List<CommentsEntity> getAllComments(){\n\t\tfinal List<CommentsEntity> comments = entityManager.createQuery(\"SELECT comments FROM CommentsEntity comments\", CommentsEntity.class)\n\t\t\t\t.getResultList();\n\t\tSystem.out.println(\"[REPO] Found comments query success\");\n\t\treturn comments;\n\t}", "public ListaEnlazada<Comment> getComments() {\r\n return comments;\r\n }", "public List<ReturnComment> getComments() {\n return (List<ReturnComment>) get(\"comments\");\n }", "public List<String> getComments() {\n return comments;\n }", "@Override\r\n\tpublic List<Comment> findAllComment() {\n\t\treturn commentDao.findAllComment();\r\n\t}", "@PropertyGetter(role = COMMENT)\n\tList<CtComment> getComments();", "public String[] getComments() {\n return comments;\n }", "public String[] getComments() {\n return comments;\n }", "List<Comment> getComments(long mediaId);", "public List<Comment> showComment() {\n\t\treturn cdi.showComment();\n\t}", "List<Comment> findAll();", "@Override\n\tpublic Collection<SummonerComments> getAllSummonerComments() {\n\t\treturn summonerCommentMap.values();\n\t}", "TrackerComments getTrackerComments(final Integer id);", "java.lang.String getComments();", "public List<Bugcomment> getComments(int userId) {\n\t\t\t\t\treturn null;\n\t\t\t\t}", "@Override\n\tpublic Collection<Comment> getAll(String summonerCommentId) {\n\t\treturn getSummonerComments(summonerCommentId).getComments();\n\t}", "@Override\n public List<Comments> getAllComments() throws Exception {\n Query query = entityManager.createQuery(\"SELECT c FROM Comments c\", Comments.class);\n return query.getResultList();\n }", "public ReactorResult<java.lang.String> getAllComments_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), COMMENTS, java.lang.String.class);\r\n\t}", "@GetMapping(value= \"/comment/\")\n\tpublic List<Comment> getAll() {\n\t\tlogger.debug(\"Getting all comments.\");\n\t\treturn service.getAllComments();\n\t}", "public List<BlogComment> getCommentsByPost(Long id);", "@Override\n\tpublic List<CommentDTO> findAll() {\n\t\tList<Comment> comments = commentRepository.findAllByOrderByDateDesc();\n\t\tif(comments != null) {\n\t\t\tList<CommentDTO> commentsDTO = new ArrayList<>();\n\t\t\tfor(Comment comment : comments) {\n\t\t\t\tCommentDTO commentDTO = new CommentDTO(comment);\n\t\t\t\tUserDTO userDTO = new UserDTO(comment.getUser());\n\t\t\t\tcommentDTO.setUserDTO(userDTO);\n\t\t\t\tcommentsDTO.add(commentDTO);\n\t\t\t}\n\t\t\treturn commentsDTO;\n\t\t}\n\t\treturn null;\n\t}", "public List<Comment> getCreatedComments() {\n return createdComments;\n }", "@RequestMapping(\"/comments\")\n public List<CommentDTO> getAllComments() {\n return commentService.getAllComments();\n }", "ImmutableList<SchemaOrgType> getCommentList();", "@RequestMapping(\"/comment\")\n public List<Comment> gettAllComments() {\n return commentService.getAllComments();\n }", "public String getComments() {\n return comments;\n }", "@Override\n public List<Comment> getCommentsByUser(Long userId ) {\n return userDao.getCommentByUser(userId);\n }", "@Override\n\tpublic Collection<Comment> getAllComments() {\n\t\treturn commentMap.values();\n\t}", "public String getAllComments() {\n\t\tString concatinatedComments = \"\";\n\t\tfor (CommentModel comment : comments) {\n\t\t\tString commentContent = comment.getContent();\n\t\t\tconcatinatedComments = concatinatedComments.concat(\" \"\n\t\t\t\t\t+ commentContent);\n\t\t}\n\t\treturn concatinatedComments;\n\t}", "public String getComments() {\n return _comments;\n }", "public String getComments() {\n return this.comments;\n }", "@Override\r\n\tpublic List<BoardQaComments> getBoardQaCommentsList(\r\n\t\t\tHttpServletRequest request, Integer pageNo, Integer bdNoQa) throws Throwable {\n\t\treturn this.boardQaCommentsDao.findAll(request, pageNo, bdNoQa);\t// 모든 댓글 불러오기\r\n\t}", "public List<Comment> getAllComments(int postID) {\n \n List<Comment> comments = new ArrayList<>();\n\n try {\n \n //Sorted in desc order of postID to make the most recent comment come to the top\n PreparedStatement statement = connection.prepareStatement(\"SELECT * FROM Comment WHERE postID = ? ORDER BY commentID DESC;\");\n statement.setInt(1, postID);\n ResultSet results = statement.executeQuery();\n\n while (results.next()) {\n\n // For all results create a new comment object and add into list to be returned\n Comment comment = new Comment();\n comment.setCommentBody(results.getString(\"commentBody\"));\n comment.setCommentID(results.getInt(\"commentID\"));\n comment.setPostID(postID);\n comment.setUserEmail(results.getString(\"email\"));\n \n\n PreparedStatement newStatement = connection.prepareStatement(\"SELECT * FROM user WHERE email = ?;\");\n newStatement.setString(1, comment.getUserEmail());\n ResultSet newResults = newStatement.executeQuery();\n\n while (newResults.next()) {\n comment.setOwnerProfileImage(newResults.getString(\"profileImageURL\"));\n comment.setOwner(newResults.getString(\"firstName\") + \" \" + newResults.getString(\"lastName\"));\n }\n\n comments.add(comment);\n\n }\n\n } catch (SQLException e) {\n System.out.println(e);\n }\n\n return comments;\n }", "List<Comments> selectAll();", "@Security.Authenticated(Authenticators.Admin.class)\n public Result reportedComments() {\n List<Report.ReportHelper> list = Report.getAllReports();\n return ok(reportedcommentslist.render(list));\n }", "public String getComments() {\r\n return this.comments;\r\n }", "public String getComments() {\n\t\treturn comments;\n\t}", "@Transactional\n\tpublic List<Comment> getListForQuiz(int quiz) {\n\t\ttry {\n\t List<Comment> comments =new ArrayList<Comment>();\n\t Set<Comment> commentsByUser=commentDao.getCommentsListForQuiz(quiz);\n\t \tfor (Iterator<Comment> it = commentsByUser.iterator(); it\n\t\t\t\t\t.hasNext();) {\n\t \t\tComment f = it.next();\n\t \t\tcomments.add(f);\n\t \t}\n\t if(comments==null || comments.size()==0) {\n\t return null;\n\t }\n\t return comments;\n\t\t} catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Object> commentList(int boardNo) {\n\t\treturn template.selectList(\"comment.commentList\",boardNo);\n\t}", "public String getComments() {\n\t\treturn this.comments;\n\t}", "@Override\r\n\tpublic List<?> commentList(Integer id) {\n\t\treturn commentDAO.commentList(id);\r\n\t}", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "public java.lang.String getComments () {\r\n\t\treturn comments;\r\n\t}", "public List<CommentBean> process(String url) {\n \t \t\n \tList<CommentBean> comments = new ArrayList<>();\n \t\n \ttry {\n \n\t YouTube youtubeService = getService();\n\t YouTube.CommentThreads.List request = youtubeService.commentThreads().list(\"snippet,replies\");\n\t String video_id = getVideoId(url);\n\t if(video_id == null) {\n\t \treturn null;\n\t }\n\t CommentThreadListResponse response = request.setKey(DEVELOPER_KEY).setVideoId(video_id).setOrder(\"time\").execute(); \n\t \n\t String nextpage = response.getNextPageToken();\n\t \t \t \n\t for(CommentThread t: response.getItems()) {\n\t \tCommentBean cb = new CommentBean();\n\t \tString name = t.getSnippet().getTopLevelComment().getSnippet().getAuthorDisplayName();\n\t \tString comment = utilities.cleanHTML(t.getSnippet().getTopLevelComment().getSnippet().getTextDisplay()); \n\t \tString date = t.getSnippet().getTopLevelComment().getSnippet().getUpdatedAt().toString(); \n\t \tLong rating = t.getSnippet().getTopLevelComment().getSnippet().getLikeCount();\n\t \tcb.setName(name);\n\t \tcb.setComment(comment);\n\t \tcb.setDate(date);\n\t \tcb.setRating(rating.toString());\n\t \tcomments.add(cb); \t\n\t \t \t\n\t \t \t\n\t }\n\t while(nextpage != null) {\n\t \trequest = youtubeService.commentThreads().list(\"snippet,replies\");\n\t \tresponse = request.setKey(DEVELOPER_KEY).setVideoId(getVideoId(url)).setPageToken(nextpage).execute();\n\t \t\n\t \tnextpage = response.getNextPageToken();\n\t \t for(CommentThread t: response.getItems()) {\n\t \t\tCommentBean cb = new CommentBean();\n\t \t\tString name = t.getSnippet().getTopLevelComment().getSnippet().getAuthorDisplayName();\n\t \tString comment = utilities.cleanHTML(t.getSnippet().getTopLevelComment().getSnippet().getTextDisplay()); \n\t \tString date = t.getSnippet().getTopLevelComment().getSnippet().getUpdatedAt().toString();\n\t \tString rating = String.valueOf(t.getSnippet().getTopLevelComment().getSnippet().getLikeCount()); \n\t \tcb.setName(name);\n\t \tcb.setComment(comment);\n\t \tcb.setDate(date);\n\t \tcb.setRating(rating.toString());\n\t \tSystem.out.println(\"comments: \" + comment);\n\t \tcomments.add(cb);\n\t \t\n//\t \tif(comments.size() == 500) {\n//\t \t\tnextpage = null;\n//\t \t}\n\t \t\t \t\n\t }\n\t \t\n\t \t\n\t }\n \t}\n \tcatch(Exception e) { \t\t\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n \tSystem.out.println(\"task completed!\");\n \n \treturn comments;\n \t\n }", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "public java.lang.String getComments () {\n\t\treturn comments;\n\t}", "private void getComments()\n\t{\n\t\tfinalHttp.get(RequestAddress.GET_SINGLE_FOOTPRINT_COMMENTS + footprintId,\n\t\t\t\tnew AjaxCallBack<String>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable t, int errorNo, String strMsg)\n\t\t\t{\n\t\t\t\tcommentListView.setRefreshFail();\n\t\t\t\tif (strMsg != null)\n\t\t\t\t{\n\t\t\t\t\tLog.v(\"GET_DEFAULT_SHIRT:failure\", strMsg);\n\t\t\t\t\tToastHelper.showToast(CommentActivity.this, \"加载失败,错误代码:\" \n\t\t\t\t\t\t\t+ errorNo + \"\\n错误信息:\" + strMsg, Toast.LENGTH_SHORT);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onLoading(long count, long current) //每1秒钟自动被回调一次\n\t\t\t{\n\t\t\t\tLog.v(\"GET_DEFAULT_SHIRT:onLoading\", current+\"/\"+count);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result)\n\t\t\t{\n\t\t\t\tLog.v(\"GET_DEFAULT_SHIRT:success\", result);\n\t\t\t\tType type = new TypeToken<ArrayList<FootprintComment>>(){ }.getType();\n\t\t\t\tGson gson = new Gson();\n//\t\t\t\tJsonParser jsonParser = new JsonParser();\n//\t\t\t\tJsonObject jsonObject = (JsonObject) jsonParser.parse(result);\n//\t\t\t\tif ( !jsonObject.get(\"result\").getAsBoolean())\n//\t\t\t\t{\n//\t\t\t\t\tToastHelper.showToast(CommentActivity.this, \"加载失败,错误信息:\\n\" + \n//\t\t\t\t\t\t\tjsonObject.get(\"data\").getAsString(), Toast.LENGTH_SHORT);\n//\t\t\t\t\tcommentListView.setRefreshFail();\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\telse {\n\t\t\t\t\tcommentListView.setRefreshSuccess();\n\t\t\t\t\tcomments = gson.fromJson(result, type);\n\t\t\t\t\tcommentAdapter.setComments(comments);\n\t\t\t\t\tcommentAdapter.notifyDataSetChanged();\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public List<ExoSocialActivity> getComments(ExoSocialActivity existingActivity, int offset, int limit);", "List<KnowledgeComment> selectAll();", "public Comments getComments(Long id) {\r\n\t\treturn comDao.findById(id);\r\n\t}", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comments_ = s;\n }\n return s;\n }\n }", "public static List<Comment> getAllComments(long problemID) {\n List<Comment> comments = commentColl.find(DBQuery.is(\"problem.$id\", problemID)).toArray();\n Collections.sort(comments, sortBy);\n return comments;\n }", "public List<Board> getCommentList(String boardUpper) throws SQLException {\n\t\treturn dao.getCommentList(boardUpper);\n\t}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllComments_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), COMMENTS);\r\n\t}", "@Override\n public CommentThreadListResponse commentResponse(String videoID)\n throws GeneralSecurityException, IOException {\n YouTube ctService = getService();\n\n YouTube.CommentThreads.List req =\n ctService.commentThreads()\n .list(\"snippet, replies\")\n .setKey(DEVELOPER_KEY)\n .setVideoId(videoID)\n .setMaxResults(100L)\n .setModerationStatus(\"published\")\n .setTextFormat(\"plainText\");\n return req.execute();\n }", "public List<Comment> getAllComments(long messageId) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\treturn new ArrayList<Comment>(comments.values());\r\n\t}", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "List<Comment> findAllForDeveloper(int userId) ;", "public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy, boolean excludeOwner);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@JsonProperty(\"taskComments\")\n @Override\n public Collection<TaskCommentRepresentationModel> getContent() {\n return super.getContent();\n }", "public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy);", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\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 comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public List<FreeTextType> getCommentList() {\n return commentList;\n }", "com.google.protobuf.ByteString\n getCommentsBytes();", "public List getOwnerComments(Agent owner, CommentSortBy sortBy);", "@ApiModelProperty(example = \"null\", value = \"The comments of the reporting task.\")\n public String getComments() {\n return comments;\n }", "public List<Comment> getAllCommentsForQuiz(Integer quizId)\n\t{\n\t\tList<Comment> allComments = commentDao.getAllCommentsForQuiz(quizId);\n\t\t\n\t\tif(allComments==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn allComments;\n\t\t\n\t}", "@Override\n\tpublic List<Comment> findCommentbyuserId(String userId) {\n\t\treturn commentDao.findCommentbyuserId(userId);\n\t}", "private List<ApartmentReviewBean> getReviewComments(String query, int id) {\n\t\tResultSet rs=null;\n\t\tList<ApartmentReviewBean> apartmentReviews = new ArrayList<ApartmentReviewBean>();\n\t\ttry {\n\t\t\t\n\t\t\t//pstmt = con.prepareStatement(query);\n\t\t\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setInt(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tApartmentReviewBean review = new ApartmentReviewBean();\n\t\t\t\treview.setComments(rs.getString(\"comments\"));\n\t\t\t\treview.setRating(rs.getInt(\"rating\"));\n\t\t\t\tapartmentReviews.add(review);\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn apartmentReviews;\n\t\n\t}", "public List<CapComments> getCapComments() {\n \t\t\t\tList<CapComments> cap=(List<CapComments>) commentRepo.findAll();\r\n \t\t\t\tCollections.reverse(cap);\r\n \t\t\t\treturn cap;\r\n \t\t\t}", "void displayAllComments();", "public int getComments() {\n return comments;\n }", "public int getComments() {\n return comments;\n }", "public static List<Comment> getCommentsByUserId(int userId) throws SQLException {\n try (\n PreparedStatementContainer container = PreparedStatementContainer.of(\n DatabaseConnector.getConnection(),\n \"select * from comment where userID = ?\",\n userId\n );\n ResultSet resultSet = container.query()\n ) {\n List<Comment> comments = new ArrayList<>();\n while (resultSet.next()) {\n comments.add(getComment(resultSet));\n }\n return comments;\n }\n }", "public java.util.List<VcmsDiscussion> findAll();", "org.hl7.fhir.String getComments();", "@Override\n\tpublic List<Comment> searchComments(List<User> users) {\n List<MarkedUpText> texts = getDescendantTexts();\n \n List<Comment> comments = new LinkedList<Comment>();\n for(MarkedUpText t: texts) {\n comments.addAll(t.searchComments(users));\n }\n return comments;\n\t}", "public Set<Commento> getCommento() {\n return commento;\n }", "public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}", "@Override\n\tpublic List<CommentVnEntity> GetCommentByMotel(Integer motel_id) {\n\t\treturn commentDao.ListCommentByMotel(motel_id);\n\t}", "@Override\n\tpublic SummonerComments getSummonerComments(String summonerCommentsId) {\n\t\treturn summonerCommentMap.get(summonerCommentsId);\n\n\t}", "@Override\r\n\tpublic List<Comment> getAllComment(Integer page, Integer limit) {\n\t\treturn commentDao.getAllComment(page,limit);\r\n\t}", "public Message[] getComments (String sig) {\n Vector<Message> comments = new Vector<Message>();\n Logger.write(\"VERBOSE\", \"DB\", \"getComments(...)\");\n \n try {\n ResultSet commentSet = query(DBStrings.getComments.replace(\"__PARENT__\", sig));\n while (commentSet.next()) {\n Message cmnt = new MessageFactory().newCMNT(sig, commentSet.getString(\"msgText\"));\n cmnt.timestamp = Long.parseLong(commentSet.getString(\"creationTime\"));\n cmnt.signature = commentSet.getString(\"sig\");\n comments.add(cmnt);\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return comments.toArray(new Message[0]); \n }", "@Override\n\tpublic List<ProjectTeamBean> listProjectTeam() {\n\t\treturn null;\n\t}", "@Security.Authenticated(Authenticators.Admin.class)\n public Result commentsList(){\n return ok(commentslist.render(Comment.findAll()));\n }", "public List<Comment> getComments(String query) throws UnsupportedEncodingException, SSOException{\n String fields = \"name,description,content,cat,source,title,relid,reltype,state,createdby,updateddate,rating\";\n\t\t\n List<AssetInfo> assetinfoList = search(wcs.getCsSiteName(), \"FW_Comment\", query, fields, null, null, null, null).getAssetinfos();\n List<Comment> assets = null;\n \n \n if(assetinfoList!= null && assetinfoList.size()>0){\n \tassets = new ArrayList<Comment>();\n\t for(AssetInfo info : assetinfoList){\n\t \t\n\t \t\t\n\t \t\n\t \tString relid = Mapper.getField(\"relid\",info.getFieldinfos());\n\t \tString reltype = Mapper.getField(\"reltype\",info.getFieldinfos());\n\n\n\t \tComment a = new Comment();\n\t \ta.setId(info.getId().split(\":\")[1]);\n\t \ta.setDescription(Mapper.getField(\"description\",info.getFieldinfos()) );\n\t \ta.setName(Mapper.getField(\"name\",info.getFieldinfos()) );\n\t \ta.setTitle(Mapper.getField(\"title\",info.getFieldinfos()) );\n\t \ta.setContent(Mapper.getField(\"content\",info.getFieldinfos()) );\n\t \ta.setState(Mapper.getField(\"state\",info.getFieldinfos()) );\n\t \ta.setRating(Mapper.getField(\"rating\",info.getFieldinfos()) );\t\t \t\n\t \ta.setRelid(relid);\n\t \ta.setReltype(reltype);\n\n\t \ta.setCreatedby(Mapper.getField(\"createdby\",info.getFieldinfos()) );\n\t \ta.setCreateddate(Mapper.getField(\"updateddate\",info.getFieldinfos()) );\n\n\n\t \tassets.add(a);\n\t }\n }\n \n return assets;\t\t\n\t}", "@GetMapping(\"getcomment/{id}\")\n public ResponseEntity<List<Comment>> getComment(@PathVariable Long id) {\n\n List<Comment> c = this.userServices.getComment(id);\n\n if (c.size() <= 0) {\n\n return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n }\n\n return ResponseEntity.status(HttpStatus.CREATED).body(c);\n\n }", "@RestReturn(value=JComment.class, entity=JComment.class, code={\n @RestCode(code=200, message=\"OK\", description=\"All comments for user\")\n })\n @RequestMapping(value=\"\", method= RequestMethod.GET, params=\"username\")\n public ResponseEntity<Collection<JComment>> getMyComments(HttpServletRequest request,\n HttpServletResponse response,\n @RequestParam(required=true) String username) {\n\n final Iterable<DComment> dCommentIterable = rnrService.getMyComments(username);\n\n return new ResponseEntity<Collection<JComment>>((Collection<JComment>)CONVERTER.convert(dCommentIterable), HttpStatus.OK);\n }", "public List getCreatorComments(Agent creator, String toolId, CommentSortBy sortBy);", "public List<UserComment> getSchoolComments(int school_id) {\n\t\treturn dao.getSchoolComments(school_id);\r\n\t}", "public ArrayList<CollegeFootballTeam> getTeamList();", "public void getCommentList(){\n Retrofit retrofit = ApiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n\n final SharedPreferences sharedPref = getSharedPreferences(\"TOKENSHARED\", Context.MODE_PRIVATE);\n final String token = sharedPref.getString(\"TOKEN\", null);\n\n Call<List<JsonResponseComment>> call = apiInterface.getComments(heritageId, \"Token \" + token);\n call.enqueue(new Callback<List<JsonResponseComment>>() {\n @Override\n public void onResponse(Call<List<JsonResponseComment>> call, Response<List<JsonResponseComment>> response) {\n if (response.isSuccessful()) {\n final ArrayList<JsonResponseComment> heritageList = (ArrayList<JsonResponseComment>) response.body();\n //Log.d(\"RESPONSE\", response.body());\n setCommentRecyclerView(heritageList);\n } else {\n Toast.makeText(getApplicationContext(), \"Sorry for inconvince server is down\" + response.code(), Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<JsonResponseComment>> call, Throwable t) {\n Toast.makeText(getApplicationContext(), \"Sorry for inconvince server is down\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public java.lang.String getComments() {\n return _entityCustomer.getComments();\n }" ]
[ "0.686245", "0.6853968", "0.67043895", "0.66034836", "0.65490025", "0.6470317", "0.6464087", "0.64389914", "0.6419223", "0.63555044", "0.6304133", "0.6284083", "0.6284083", "0.6265973", "0.61607057", "0.6151804", "0.61508274", "0.614011", "0.60877633", "0.6081025", "0.60612226", "0.60387284", "0.6008878", "0.59919655", "0.5972384", "0.5962558", "0.59618485", "0.5948669", "0.5939154", "0.5929412", "0.59240514", "0.5909534", "0.59038", "0.59026504", "0.58236694", "0.58107024", "0.5810364", "0.58037174", "0.580266", "0.580167", "0.579982", "0.5779216", "0.5772513", "0.5758708", "0.57489914", "0.57440835", "0.5743974", "0.57322055", "0.5728017", "0.57048714", "0.56968695", "0.5667706", "0.5660487", "0.5657841", "0.5650231", "0.56500834", "0.5638882", "0.5627327", "0.5622895", "0.56134266", "0.55593085", "0.5530253", "0.5505955", "0.55051076", "0.54894876", "0.5482818", "0.5482781", "0.54810673", "0.5478263", "0.54778105", "0.54697555", "0.54546887", "0.543022", "0.536583", "0.5354828", "0.53511393", "0.53450966", "0.5342921", "0.5322662", "0.5322662", "0.5314449", "0.52784973", "0.5271335", "0.5266258", "0.52631915", "0.52295953", "0.52279586", "0.522092", "0.52087224", "0.52066934", "0.5198297", "0.5192546", "0.5189496", "0.5162181", "0.51533663", "0.5144586", "0.5137075", "0.51322454", "0.5121742", "0.5117598" ]
0.66803044
3
Activity that is a result of MedicineInfoActivity, will enable the user to register certain meds to his/her account in dosage and frequency along with the option to get notifications from the app when it's time to take medication
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register_medicine); drug = getIntent().getParcelableExtra("SelectedDrug"); drugName = (TextView) findViewById(R.id.drug_name); drugName.setText(drug.getName()); drugDosage = (EditText) findViewById(R.id.drug_dosage_input); drugFrequency = (Spinner) findViewById(R.id.drug_frequency_input); drugReminder = (Spinner) findViewById(R.id.drug_reminder_input); reminderTimeHour = (Spinner) findViewById(R.id.time_hour_input); reminderTimeMinutes = (Spinner) findViewById(R.id.time_minute_input); registerDrug = (Button) findViewById(R.id.button_drug_registration_finished); registerDrug.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //TODO: save to database Toast.makeText(v.getContext(), "Registration success", Toast.LENGTH_LONG).show(); finish(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onReceive(Context context, Intent intent) {\n\n NotificationChannel notificationChannel = new NotificationChannel(\"CHANNELID\", \"name\", NotificationManager.IMPORTANCE_HIGH );\n NotificationManager notificationManager = context.getSystemService(NotificationManager.class);\n\n notificationManager.createNotificationChannel(notificationChannel);\n\n Intent i = new Intent(context, DisplayMedication.class);\n\n // FIXME - hardcoded values\n i.putExtra(\"MedicationName\",\"Vicodin\" + \"\");\n i.putExtra(\"DoseAmount\",\"1\" + \"\");\n i.putExtra(\"HourlyFrequency\",\"2\" + \"\");\n i.putExtra(\"DaysBetweenDose\",\"7\" + \"\");\n /* <--- above this line ---> */\n\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context, \"CHANNELID\")\n .setSmallIcon(R.drawable.icon)\n .setContentTitle(\"Medication Time\")\n .setContentText(\"Time to take a medication\")\n .setPriority(NotificationManager.IMPORTANCE_HIGH)\n .setContentIntent(pendingIntent);\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);\n notificationManagerCompat.notify(0, builder.build());\n\n\n }", "public abstract void onMedInfoLoaded(Medication med);", "@Override\n public void onClick(View v) {\n Intent returnToPressHelp = new Intent(getApplicationContext(), PressHelp.class);\n startActivity(returnToPressHelp);\n\n\n //Tell the phone that the medication was taken.\n\n }", "public void btn_medical_information_On_click(View v) {\n Intent i = new Intent(MainActivity.this, Medical_information.class);\n startActivity(i);\n }", "private void sendMetoMain(){\n Intent sendUserUI = new Intent(RegistrationActivity.this, MainActivity.class);\n sendUserUI.putExtra(KeyUserType, actualUserType);\n // unique id\n sendUserUI.putExtra(SenderKey, \"Register\");\n startActivity(sendUserUI);\n }", "protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}", "public void addMed(SQLiteDatabase db, Medication med) {\n ContentValues values = new ContentValues();\n //delete the med if it exists already\n deleteMedID(med.getDbID());\n values.put(\"medname\", med.getMedName());\n values.put(\"mednotes\", med.getMedNotes());\n values.put(\"dose\", med.getDose());\n values.put(\"freq\", med.getFreq());\n values.put(\"startdate\", med.getMedStart());\n values.put(\"enddate\", med.getMedEnd());\n values.put(\"image\", med.getImageRes());\n values.put(\"alert1\", med.getAlert1());\n values.put(\"alert2\", med.getAlert2());\n values.put(\"alert3\", med.getAlert3());\n values.put(\"alert4\", med.getAlert4());\n values.put(\"alert5\", med.getAlert5());\n values.put(\"alert6\", med.getAlert6());\n values.put(\"alertson\", med.getAlertsOn());\n //returns long ID of the med in the database. Allocate this to the card to track cards between the DB\n // and the application/list. Cast to int.\n\n med.setDbID((int) db.insert(\"Med\", \"null\", values));\n addDoseMaps(db, med);\n db.close();\n\n }", "public void updatePatient(View view) {\r\n\t\tboolean seenByDoctor;\r\n\t\t\r\n\t\tIntent intent = getIntent();\r\n\r\n\t\t// Get the staff member from AccessRecordActivity.\r\n\t StaffMember staff = (StaffMember) intent.getSerializableExtra(\"staff\");\r\n\t \r\n\t // Get Record from AccessRecordActivity\r\n\t Record record = (Record) intent.getSerializableExtra(\"record\");\r\n\t \r\n\t // Sets patient's new blood pressure measurement . \r\n\t EditText pressure = (EditText) findViewById(R.id.blood_pressure);\r\n\t String bloodPressureString = pressure.getText().toString();\r\n\t int bloodPressure = Integer.parseInt(bloodPressureString);\r\n\t \r\n\t // Sets patient's new heart rate measurement .\r\n\t EditText rate = (EditText) findViewById(R.id.heart_rate);\r\n\t String heartRateString = rate.getText().toString();\r\n\t int heartRate = Integer.parseInt(heartRateString);\r\n\t \r\n\t // Sets patient's new blood pressure measurement .\r\n\t EditText seenBy = (EditText) findViewById(R.id.prescription_name);\r\n\t String seenByDoctorString = seenBy.getText().toString();\r\n\t \r\n\t //Sets in the record whether this patient has seen a doctor yet. \r\n\t seenByDoctor = seenByDoctorString.equalsIgnoreCase(\"Yes\");\r\n\t \r\n\t // Sets the new patient's symptoms.\r\n\t EditText symptom = \r\n\t \t\t(EditText) findViewById(R.id.prescription_instructions);\r\n\t String symptoms = symptom.getText().toString();\r\n\t \r\n\t // Sets the new patient's temperature. \r\n\t EditText temp = (EditText) findViewById(R.id.temperature);\r\n\t String temperatureString = temp.getText().toString();\r\n\t double temperature = Double.parseDouble(temperatureString);\r\n\t \r\n\t try {\r\n\t \t//This patient's record exists add to it.\r\n\t \tstaff.setTemperature(record, temperature);\r\n\t \tstaff.setBloodPressure(record, bloodPressure);\r\n\t\t staff.setHeartRate(record, heartRate);\r\n\t\t staff.setSeenByDoctor(record, seenByDoctor,\r\n\t\t \t\tthis.getApplicationContext());\r\n\t\t staff.setSymptoms(record, symptoms);\r\n\t\t staff.updateUrgency(record);\r\n\t\t \r\n\t\t} catch (Exception e) {\r\n\t\t\t// prompt for a record\r\n\t\t\t Intent reenter = new Intent(this, RetryUpdateInfo.class);\r\n\t\t\t reenter.putExtra(\"staff\", staff);\r\n\t\t\t startActivity(reenter);\r\n\t\t}\r\n\t \r\n\t\ttry {\r\n\t\t\tif (StaffMember.getRecords().getUrgencyRecords().\r\n\t\t\t\t\tcontains(record.getHealthCardNum())){\r\n\t\t\t StaffMember.getRecords().removePatientFromUrgency(record);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tStaffMember.getRecords().removePatient(record.getHealthCardNum());\r\n\t\t\tStaffMember.getRecords().add(record);\r\n\t\t\tStaffMember.getRecords().saveRecordsToFile(\"PatientsAndRecords\", \r\n\t\t\t\t\topenFileOutput(\"PatientsAndRecords\",\r\n\t\t\t\t\t\t\tContext.MODE_PRIVATE));\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t //With this patient dealt with the previous activity is returned too.\r\n\t Intent intent1 = new Intent(this, UpdatePatientActivity.class);\r\n\t intent1.putExtra(\"staff\", staff);\r\n\t intent1.putExtra(\"record\", record);\r\n\t startActivity(intent1);\t \r\n\t}", "@Override\n protected void onNewIntent(Intent intent) {\n\n Bundle bundle=intent.getExtras();\n int uniqueFlagID=1;\n if(bundle!=null && (bundle.getInt(\"uniqueAppId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"), bundle.getInt(\"uniqueAppId\"), \"1\");\n String AppointmentMessage1 = bundle.getString(AlarmReceiver.APPOINTMENT_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Appointment Alert\", AppointmentMessage1, \"App\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getInt(\"presUniqueId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"),bundle.getInt(\"presUniqueId\"),\"1\");\n String RenewalMessage = bundle.getString(AlarmReceiver.PRESCRIPTION_RENEWAL_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Prescription Renewal Alert\", RenewalMessage, \"PRES\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"MED_TIT\"))) {\n String TitrationMessage = bundle.getString(AlarmReceiver.MEICATION_TITRATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Medication Titration Alert\", TitrationMessage, \"MED_TIT\", uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"EME\"))) {\n DBAdapter adapter= new DBAdapter(getApplicationContext());\n adapter.getUpdateReminderFlag(bundle.getString(\"type\"), bundle.getInt(\"id\"),\"1\");\n String EmergencyMedicationMessage = bundle.getString(AlarmReceiver.EMERGENCY_MEDICATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Emergency Medication Alert\", EmergencyMedicationMessage, \"EME\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n\n }\n\n\n }", "public void doPermissionGrantedStuffs() {\n TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n //Get IMEI Number of Phone //////////////// for this example i only need the IMEI\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n IMEINumber = tm.getDeviceId();\n SharedPreferences settings = getSharedPreferences(\"prefs\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"IMEI\", IMEINumber);\n editor.apply();\n\n IMEI = settings.getString(\"IMEI\", null);\n if (accessToken == null) {\n\n\n goToLogin(true);\n }\n\n }", "public void saveMedicine(Medicine medicine);", "private void m6597N() {\n C0938a.m5002a(\"SR/SoundRecorder\", \"<popClearDialogBox>\");\n String lowerCase = this.f5399S.mo6173f().getAbsolutePath().toLowerCase();\n if (this.f5419h) {\n C1492b.m7431a((Context) this, (CharSequence) getResources().getString(R.string.phone_mtp_space_expired_smartkey), 1).show();\n this.f5419h = false;\n }\n Intent intent = new Intent(\"com.iqoo.secure.LOW_MEMORY_WARNING\");\n intent.addFlags(268435456);\n intent.putExtra(\"require_size\", 5242880);\n intent.putExtra(\"pkg_name\", getPackageName());\n intent.putExtra(\"extra_loc\", 1);\n intent.putExtra(\"tips_title\", getResources().getString(R.string.manager_title));\n intent.putExtra(\"tips_title_all\", getResources().getString(R.string.unable_to_record));\n try {\n startActivity(intent);\n } catch (Exception unused) {\n Intent intent2 = new Intent();\n intent2.putExtra(\"BBKPhoneCardName\", lowerCase);\n intent2.setComponent(new ComponentName(\"com.android.filemanager\", \"com.android.filemanager.FileManagerActivity\"));\n startActivity(intent2);\n }\n }", "private void retrieveNotification() { =====================================================\n // Creating Notification Model\n // =====================================================\n\n// Bitmap patientAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_18);\n// Bitmap patientAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_19);\n// Bitmap patientAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_20);\n//\n// Patient patient1 = new Patient(\"Garry\", \"Reese\", \"123AB456\", patientAvatar1);\n// Patient patient2 = new Patient(\"Lillian\", \"Wade\", \"987CD654\", patientAvatar2);\n// Patient patient3 = new Patient(\"Laura\", \"Freeman\", \"AV12G64\", patientAvatar3);\n//\n// Bitmap caregiverAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_01);\n// Bitmap caregiverAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_02);\n// Bitmap caregiverAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_03);\n// Bitmap caregiverAvatar4 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_04);\n// Bitmap caregiverAvatar5 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_05);\n//\n// DateTime date1 = DateTime.now();\n// DateTime date2 = DateTime.now().minusDays(2).minusHours(2);\n// DateTime date3 = DateTime.now().minusDays(5).plusHours(1);\n// DateTime date4 = DateTime.now().minusDays(4).minusHours(2);\n// DateTime date5 = DateTime.now().minusDays(1).plusHours(1);\n// DateTime date6 = DateTime.now().minusDays(3).plusHours(5);\n//\n// String caregiverName1 = \"John Doe\";\n// String caregiverName2 = \"Jane Doe\";\n// String caregiverName3 = \"Tracy Lee\";\n// String caregiverName4 = \"Apple Tan\";\n// String caregiverName5 = \"Bethany Mandler\";\n//\n// String summary1 = \"Updated information of patient Garry Reese\";\n// String summary2 = \"Log new problem for patient Lilian Wade\";\n// String summary3 = \"Create new patient Laura Freeman\";\n// String summary4 = \"Recommended the game category memory to patient Garry Reese\";\n// String summary5 = \"Updated the milk allergy of patient Lillian Wade\";\n// String summary6 = \"Log new problem for patient Garry Reese\";\n//\n// Notification notification1 = new Notification(date1, caregiverName1, caregiverAvatar1, summary1, patient1, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_FIELD);\n// Notification notification2 = new Notification(date2, caregiverName2, caregiverAvatar2, summary2, patient2, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n// Notification notification3 = new Notification(date3, caregiverName3, caregiverAvatar3, summary3, patient3, Notification.STATUS_NONE, Notification.TYPE_NEW_PATIENT);\n// Notification notification4 = new Notification(date4, caregiverName4, caregiverAvatar4, summary4, patient1, Notification.STATUS_NONE, Notification.TYPE_GAME_RECOMMENDATION);\n// Notification notification5 = new Notification(date5, caregiverName5, caregiverAvatar5, summary5, patient2, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_OBJECT);\n// Notification notification6 = new Notification(date6, caregiverName3, caregiverAvatar3, summary6, patient1, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n//\n ArrayList<Notification> notificationList = new ArrayList<>();\n//// notificationList.add(notification1);\n//// notificationList.add(notification2);\n//// notificationList.add(notification3);\n//// notificationList.add(notification4);\n//// notificationList.add(notification5);\n//// notificationList.add(notification6);\n\n dbfile db = new dbfile();\n notificationList = db.prepareNotificationList(getApplicationContext());\n Log.v(\"WHY LIKE THAT\", String.valueOf(notificationList.size()));\n // =====================================================\n // Building the Notification Group based on the notification\n // =====================================================\n\n HashMap patientAndNotificationGroupMap = new HashMap();\n\n for(Notification notification:notificationList) {\n Patient currentPatient = notification.getAffectedPatient();\n String patientNric = currentPatient.getNric();\n\n if (patientAndNotificationGroupMap.containsKey(patientNric)) {\n NotificationGroup notifGroup = (NotificationGroup) patientAndNotificationGroupMap.get(patientNric);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n notifGroup.getUnprocessedNotif().add(notification);\n } else {\n notifGroup.getProcessedNotif().add(notification);\n }\n } else {\n NotificationGroup newNotifGroup = new NotificationGroup();\n newNotifGroup.setAffectedPatient(currentPatient);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n newNotifGroup.getUnprocessedNotif().add(notification);\n } else {\n newNotifGroup.getProcessedNotif().add(notification);\n }\n patientAndNotificationGroupMap.put(patientNric, newNotifGroup);\n }\n }\n\n ArrayList<NotificationGroup> notificationGroupList = new ArrayList<>();\n NotificationComparator comparator = new NotificationComparator();\n for (Object obj : patientAndNotificationGroupMap.values()) {\n NotificationGroup notificationGroup = (NotificationGroup) obj;\n\n // Set notification status\n UtilsUi.setNotificationGroupStatus(this, notificationGroup);\n\n // Sort the notifications by date\n Collections.sort(notificationGroup.getProcessedNotif(), comparator);\n Collections.sort(notificationGroup.getUnprocessedNotif(), comparator);\n\n // Set the summary\n UtilsUi.setNotificationGroupSummary(this, notificationGroup);\n\n notificationGroupList.add(notificationGroup);\n }\n\n DataHolder.setNotificationGroupList(notificationGroupList);\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ADD_NEW_COFFEEMAKER) {\r\n // Make sure the request was successful\r\n if (resultCode == RESULT_OK) {\r\n Bundle MBuddle = data.getExtras();\r\n String identity = MBuddle .getString(\"identity\");\r\n int minutes = MBuddle.getInt(\"minutes\");\r\n int seconds = MBuddle.getInt(\"seconds\");\r\n\r\n AddItem(identity,minutes,seconds);\r\n }\r\n }\r\n }", "public void allinfo()\n\t\t{\n\t\t\tsendBroadcast(new Intent(\"android.provider.Telephony.SECRET_CODE\", Uri.parse(\"android_secret_code://4636\")));\n\n\n\t\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_alarm);\n\t\t\n\t\tBundle bundle = getIntent().getExtras();\n\t\t\n\t\tif (bundle != null) {\n\t\t\tString extra = bundle.getString(Constants.KEY_INTENT);\n\t\t\tif ( extra != null && !extra.isEmpty() && extra.equals(Constants.INTENT_FROM_ALARM) ) {\n\t\t\t\tfromAlarm = true;\n\t\t\t} else {\n\t\t\t\tfromAlarm = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tAdBuddiz.setPublisherKey(\"9a1dff09-5892-4c38-ab19-4c7a475b1329\");\n\t\tAdBuddiz.setLogLevel(AdBuddizLogLevel.Info);\n\t\tAdBuddiz.cacheAds(this); // this = current Activity\n\t\t\n\t\tgetInformation();\n\n\t\ttextViewDate = (TextView) findViewById(R.id.alert_medicine_date);\n\t\ttextViewTime = (TextView) findViewById(R.id.alert_medicine_time);\n\t\ttextViewPatient = (TextView) findViewById(R.id.alert_patient_name);\n\t\ttextViewMedicine = (TextView) findViewById(R.id.alert_medicine_name);\n\t\tpostIt = (View) findViewById(R.id.image);\n\t\talarmSettingsContainer = (LinearLayout) findViewById(R.id.alarm_settings_container);\n\t\tnoAlarmContainer = (LinearLayout) findViewById(R.id.no_alarm_container);\n\t\tbtnEdit = (Button) findViewById(R.id.button_edit_alarm);\n\t\tbtnMethods = (Button) findViewById(R.id.button_methods);\n\t\tbtnCreateAlarm = (Button) findViewById(R.id.button_create_alarm);\n\t\tbtnCancelAlarm = (Button) findViewById(R.id.button_cancel_alarm);\n\t\tbtnAbout = (Button) findViewById(R.id.button_about);\n\t\t\n\t\tbtnAbout.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityAbout.class);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t}\n\t\t});\n\n\t\tbtnEdit.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityRegister.class);\n\t\t\t\tactvityConfirmation.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t\tif (AdBuddiz.isReadyToShowAd(ActivityShowAlert.this)) { \n\t\t\t\t\tAdBuddiz.showAd(ActivityShowAlert.this);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tbtnCreateAlarm.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityRegister.class);\n\t\t\t\tactvityConfirmation.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t}\n\t\t});\n\n\t\tbtnMethods.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent actvityConfirmation = new Intent();\n\t\t\t\tactvityConfirmation.setClass(ActivityShowAlert.this,\n\t\t\t\t\t\tActivityMethods.class);\n\t\t\t\tactvityConfirmation.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(actvityConfirmation);\n\t\t\t\tif (AdBuddiz.isReadyToShowAd(ActivityShowAlert.this)) { \n\t\t\t\t\tAdBuddiz.showAd(ActivityShowAlert.this);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnCancelAlarm.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (isAlarmSetted) {\n\t\t\t\t\tcleanInformation();\n\t\t\t\t\tcancelAlarm();\n\t\t\t\t\tfromAlarm = false;\n\t\t\t\t\tnoAlarmContainer.setVisibility(View.VISIBLE);\n\t\t\t\t\talarmSettingsContainer.setVisibility(View.GONE);\n\t\t\t\t\tbtnEdit.setVisibility(View.INVISIBLE);\n\t\t\t\t\tsetViewColor(color);\n\t\t\t\t\ttextViewPatient.setVisibility(View.INVISIBLE);\n\t\t\t\t\tbtnCancelAlarm.setVisibility(View.INVISIBLE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (isAlarmSetted) {\n\t\t\tnoAlarmContainer.setVisibility(View.GONE);\n\t\t\talarmSettingsContainer.setVisibility(View.VISIBLE);\n\t\t\tbtnEdit.setVisibility(View.VISIBLE);\n\t\t\tbtnCancelAlarm.setVisibility(View.VISIBLE);\n\t\t\ttextViewDate.setText(formatDate(getCurrentDate()));\n\t\t\ttextViewMedicine.setText(medicine);\n\t\t\ttextViewPatient.setText(patient);\n\t\t\ttextViewTime.setText(formatTime(atHour));\n\t\t\ttextViewPatient.setVisibility(View.VISIBLE);\n\t\t\tsetViewColor(color);\n\t\t} else {\n\t\t\tnoAlarmContainer.setVisibility(View.VISIBLE);\n\t\t\talarmSettingsContainer.setVisibility(View.GONE);\n\t\t\tbtnEdit.setVisibility(View.INVISIBLE);\n\t\t\tbtnCancelAlarm.setVisibility(View.INVISIBLE);\n\t\t\tsetViewColor(color);\n\t\t\ttextViewPatient.setVisibility(View.INVISIBLE);\n\t\t}\n\n\t\tthis.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\tsoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);\n\t\tsoundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onLoadComplete(SoundPool soundPool, int sampleId,\n\t\t\t\t\tint status) {\n\t\t\t\tloaded = true;\n\t\t\t}\n\t\t});\n\t\tsoundID = soundPool.load(this, R.raw.alarm_sound, 1);\n\t}", "public void run() {\n Intent intent = new Intent(MainActivity.this, Summit.class);\n String description = woeid.getWoeid();\n intent.putExtra(EXTRA_MESSAGE, description);\n // Log.d(\"Long\", description);\n startActivity(intent);\n }", "public void insertarMedico(Medico medico)\n {\n ContentValues valores = new ContentValues();\n valores.put(\"prefijo\",medico.getPrefijo());\n valores.put(\"nombre\",medico.getNombre());\n valores.put(\"apellido\",medico.getApellido());\n valores.put(\"email\",medico.getEmail());\n valores.put(\"ubicacion\",medico.getUbicacion());\n valores.put(\"telefonoContacto1\",medico.getNumeroTelefonoOpcion1());\n valores.put(\"telefonoContacto2\",medico.getNumeroTelefonoOpcion2());\n db.insert(\"medico\",null,valores);\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n SharedPreferences preferences = context.getSharedPreferences(SettingsActivity.prefFile,\n Context.MODE_PRIVATE);\n if (!preferences.getBoolean(SettingsActivity.notificationSetting, false))\n return;\n\n // Get intent data\n this.name = intent.getStringExtra(\"name\");\n this.dose = intent.getStringExtra(\"dose\");\n this.time = intent.getStringExtra(\"time\");\n\n //\n DBHelper db = new DBHelper(context);\n Map<String, String> idTimeMap = db.getIDTimeMap(this.name);\n\n // Medication notifications will have sound\n Uri sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n // Setting up intent, ad building the notification\n NotificationManager mNM = (NotificationManager) context.getSystemService(\n Context.NOTIFICATION_SERVICE);\n Intent intent1 = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(\n context, NewMedActivity.pendingId++, intent1, 0);\n\n Notification notification = new Notification.Builder(context)\n .setContentTitle(this.time)\n .setContentText(String.format(\"%s %s.\",\n context.getText(R.string.nt_txt), this.name))\n .setSmallIcon(R.mipmap.fmn_app_icon_round)\n .setContentIntent(pendingIntent)\n .setAutoCancel(true)\n .build();\n\n // Sending the notification\n mNM.notify(NotifyService.notificationTag, Integer.parseInt(idTimeMap.get(this.time)),\n notification);\n }", "public void recordNewMed(String name, boolean generic) {\n Medication medication = new Medication(name, generic);\n medications.add(medication);\n }", "@Subscribe\n public void onDeviceInfo(final DeviceInformation event) {\n\n apiService.onSendDeviceInfo(event, new Callback<DeviceInfoSuccess>() {\n\n @Override\n public void success(DeviceInfoSuccess retroResponse, Response response) {\n\n if(retroResponse != null) {\n bus.post(new DeviceInfoSuccess(retroResponse));\n //ealmObjectController.cachedResult(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse));\n RealmObjectController.cachedResultWithType(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse),\"SplashInfo\");\n\n }else{\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n });\n }", "private void showNotification() {\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.food_icon2)\n .setContentTitle(\"Let's eat\")\n .setContentText(\"Good morning, It's time to take your Breakfast :)\");\n\n int mNotificationId = 001;\n\n\n Intent contentIntent = new Intent(this, RecommendationActivity.class);\n contentIntent.putExtra(\"dePagi\", \"pagigan\");\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(RecommendationActivity.class);\n stackBuilder.addNextIntent(contentIntent);\n\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n\n mBuilder.setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 });\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n\n mBuilder.setAutoCancel(true);\n\n mNM =(NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n mNM.notify(mNotificationId, mBuilder.build());\n\n stopSelf();\n\n }", "private void getRegisterDetails() {\n String android_id = Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Log.d(\"androidId\", android_id);\n\n int loginDeviceType = 1;\n\n APIHelper.init_connection(getApplicationContext(), android_id, loginDeviceType, new Callback() {\n @Override\n public void onSuccess(JSONObject response) {\n try {\n AppController.user_id = response.getString(\"user_id\");\n AppController.user_device_id = response.getString(\"user_device_id\");\n mProgressBar.setProgress(60);\n startApp();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFail(String error) {\n }\n });\n }", "public void setMedicalid(Integer medicalid) {\n this.medicalid = medicalid;\n }", "public void doPermissionGrantedStuffs() {\n TelephonyManager tm =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);\n //Get IMEI Number of Phone //////////////// for this example i only need the IMEI\n String IMEINumber=tm.getDeviceId();\n\n // Now read the desired content to a textview.\n addImeiCard.setVisibility(View.GONE);\n asset_serial.setText(IMEINumber);\n }", "protected void startRegActivity() {\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }", "public Medication(String name, String sg, LocalDate fd, int cp){\n medName = name;\n sig = sg;\n fillDate = fd;\n copay = cp;\n }", "public X837Ins_2320_MOA_MedicareOutpatientAdjudicationInformation() {}", "private void populatePatientData() {\n\n // Set the activity title\n setTitle(mPatient.getName());\n\n int urgency = mPatient.getUrgency();\n String urgencyFormat;\n if (urgency <= 1)\n urgencyFormat = \"Non-urgent (%d)\";\n else if (urgency == 2)\n urgencyFormat = \"Less urgent (%d)\";\n else\n urgencyFormat = \"Urgent (%d)\";\n setText(mUrgencyView, getString(R.string.urgency), String.format(urgencyFormat, urgency));\n\n // Populate the Vital Signs section with the patient's temperature, blood pressure, and heart rate.\n String[] patientVitalSignsLabels = getResources().getStringArray(R.array.patient_vital_signs_labels);\n\n VitalSigns vitalSigns = mPatient.getLatestVitalSigns();\n String temperature, bloodPressure, heartRate;\n if (vitalSigns != null) {\n temperature = String.format(\"%.1f\", vitalSigns.getTemperature());\n bloodPressure = String.format(\"%.0f / %.0f\", vitalSigns.getSystolicBloodPressure(), vitalSigns.getDiastolicBloodPressure());\n heartRate = String.format(\"%.0f\", vitalSigns.getHeartRate());\n } else {\n temperature = getString(R.string.none_recorded);\n bloodPressure = getString(R.string.none_recorded);\n heartRate = getString(R.string.none_recorded);\n }\n\n setText(mTemperatureView, patientVitalSignsLabels[0], temperature);\n setText(mBloodPressureView, patientVitalSignsLabels[1], bloodPressure);\n setText(mHeartRateView, patientVitalSignsLabels[2], heartRate);\n\n // Populate the Info section with the patient's name, birth date, health card number, arrival time and symptoms.\n String[] patientInfoLabels = getResources().getStringArray(R.array.patient_info_labels);\n\n String formattedBirthDate = dateFormat.format(mPatient.getBirthDate().getTime());\n String formattedArrivalTime = dateTimeFormat.format(mPatient.getArrivalTime().getTime());\n\n setText(mNameView, patientInfoLabels[0], mPatient.getName());\n setText(mBirthDateView, patientInfoLabels[1], formattedBirthDate);\n setText(mHealthCardNumberView, patientInfoLabels[2], mPatient.getHealthCardNumber());\n setText(mArrivalTimeView, patientInfoLabels[3], formattedArrivalTime);\n\n // Populate the Symptoms section\n String symptoms = mPatient.getLatestSymptoms();\n TextView symptomsTextView = (TextView) mSymptomsView.findViewById(android.R.id.text1);\n if (symptoms != null)\n symptomsTextView.setText(symptoms);\n else\n symptomsTextView.setText(getString(R.string.none_recorded));\n\n // Populate the prescriptions section\n List<String> prescription = mPatient.getLatestPrescription();\n if (prescription != null)\n setText(mPrescriptionsView, prescription.get(0), prescription.get(1));\n else {\n String placeholder = getString(R.string.none_recorded);\n setText(mPrescriptionsView, placeholder, placeholder);\n }\n\n SimpleDateFormat timeDateFormat = new SimpleDateFormat(\"h:mma, EEE, MMM d, yyyy\");\n String fLastSeenByDoctor;\n if (mPatient.hasBeenSeenByDoctor()) {\n Calendar lastSeenByDoctor = mPatient.getLastSeenByDoctor();\n fLastSeenByDoctor = timeDateFormat.format(lastSeenByDoctor.getTime());\n } else\n fLastSeenByDoctor = getString(R.string.none_recorded);\n TextView doctorTextView = (TextView) mDoctorView.findViewById(android.R.id.text1);\n doctorTextView.setText(fLastSeenByDoctor);\n }", "@Override\n public void onClick (View v)\n {\n if (v == register)\n {\n // Validate matching passwords.\n if (password.getText().toString().equals(rpassword.getText().toString()))\n {\n if (!genderSelected.equals(\"Select\"))\n {\n String AUTHORITY = getResources().getString(R.string.authority);\n Bundle extras = new Bundle();\n // pack bundle with user extras\n extras.putString(\"request_type\", \"0\");\n extras.putString(\"user\", user.getText().toString());\n extras.putString(\"password\", password.getText().toString());\n extras.putString(\"birthday\",\n datePicker.getYear() + \"-\" + (datePicker.getMonth() + 1) + \"-\" +\n datePicker.getDay());\n extras.putString(\"gender\", genderSelected);\n extras.putString(\"name\", name.getText().toString());\n // Attempt to create a sync account\n Account account = FriendFinder\n .createSyncAccount(this, user.getText().toString(),\n password.getText().toString());\n // Allow synchronization.\n ContentResolver.setSyncAutomatically(account, AUTHORITY, true);\n // Attempt to synchronize.\n extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n extras.putBoolean(ContentResolver.SYNC_EXTRAS_FORCE, true);\n extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n ContentResolver.requestSync(account, AUTHORITY, extras);\n spinnerDialog.show(getFragmentManager(), \"Registering User\");\n receiver = new RegistrationReceiver();\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"registration\");\n registerReceiver(receiver, intentFilter);\n }\n else\n {\n Toast.makeText(this, \"Please select a gender.\", Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n Toast.makeText(this, \"Passwords do not match.\", Toast.LENGTH_LONG).show();\n }\n }\n else if (v == date)\n {\n // display datepicker.\n datePicker.show(getFragmentManager(), \"Date Picker\");\n }\n }", "public void d() {\n MiTalkiApp.n().postDelayed(new Runnable() {\n public void run() {\n SetMyOtherInfoActivity.this.k();\n }\n }, 500);\n }", "public void sendSMS() {\n //http://www.mkyong.com/android/how-to-send-sms-message-in-android/\n\n Intent intent = getIntent();\n String userName = intent.getStringExtra(LoginActivity.USER_NAME);\n String userDOB = intent.getStringExtra(LoginActivity.DOB);\n String doctorName = intent.getStringExtra(LoginActivity.DOCTOR_NAME);\n String doctorNumber = intent.getStringExtra(LoginActivity.DOCTOR_NUMBER);\n String sms = \"Hello Dr. \" + doctorName + \", your patient \" + userName + \" \" +\n \"whose date of birth is \" + userDOB + \" is suspected of having dementia \" +\n \"based on the anomalous behavior tracked on the Early Detection Dementia App.\";\n\n\n try {\n SmsManager smsManager = SmsManager.getDefault();\n smsManager.sendTextMessage(doctorNumber, null, sms, null, null);\n Toast.makeText(getApplicationContext(), \"SMS Sent!\",\n Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(),\n \"SMS faild, please try again later!\",\n Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n }", "public String showInfoMedi(){\n\t\tString msg = \"\";\n\n\t\tmsg += \"NOMBRE DE LA MEDICINA: \"+name+\"\\n\";\n\t\tmsg += \"LA DOSIS: \"+dose+\"\\n\";\n\t\tmsg += \"COSTO POR DOSIS: \"+doseCost+\"\\n\";\n\t\tmsg += \"FRECUENCIA QUE ESTA DEBE SER APLICADA: \"+frecuency+\"\\n\";\n\n\t\treturn msg;\n\t}", "@POST\n @Produces(value = {MediaType.APPLICATION_JSON,})\n public Response registerMedic(\n @Valid @NotNull MedicPostDto medicDto\n ) {\n User loggedUser = getLoggedUser();\n\n if (loggedUser == null) {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build();\n }\n\n ImageDto identification = medicDto.getIdentification();\n\n String name = medicDto.getName();\n String telephone = medicDto.getTelephone();\n String contentType = identification.getContentType();\n byte[] image = identification.getImageAsByteArray();\n Collection<MedicalField> knownFields = medicDto.getMedicalFieldCollection();\n String licenceNumber = medicDto.getLicenceNumber();\n\n if (image == null || image.length == 0)\n return Response.status(Response.Status.BAD_REQUEST).build();\n\n Medic medic = medicService.register(\n loggedUser,\n name,\n telephone,\n contentType,\n image,\n licenceNumber,\n knownFields\n );\n\n URI uri = uriInfo.getAbsolutePathBuilder().path(String.valueOf(medic.getUser().getId())).build();\n\n return Response.created(uri).build();\n }", "public void addPatientPersoanlRecords(String pat_id, String doctor_id, String doc_membership_id, String patient_info_type_form,\n String pat_first_name, String pat_middle_name, String pat_last_name, String pat_gender,\n String pat_date_of_birth, String pat_age, String pat_mobile_no, String pat_address,\n String pat_city_town, String pat_pincode, String pat_district, String pref_lang,\n String photo_name, String consent, String special_instruction, String added_by,\n String added_on, String addedTime, String modified_by, String modified_on,\n String is_disabled, String disabled_by, String disabled_on, String is_deleted,\n String deleted_by, String deleted_on, String flag, String status, String email, String phoneType, String isdCode, String alternateNumber, String alternatePhoneType, String uid, String uidType, String alternateNoIsd) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n ContentValues contentValue = new ContentValues();\n\n contentValue.put(KEY_PATIENT_ID, pat_id);\n contentValue.put(DOCTOR_ID, doctor_id);\n contentValue.put(DOCTOR_MEMBERSHIP_ID, doc_membership_id);\n contentValue.put(PATIENT_INFO_TYPE_FORM, patient_info_type_form);\n contentValue.put(FIRST_NAME, pat_first_name);\n contentValue.put(MIDDLE_NAME, pat_middle_name);\n contentValue.put(LAST_NAME, pat_last_name);\n\n contentValue.put(GENDER, pat_gender);\n contentValue.put(DOB, pat_date_of_birth);\n contentValue.put(AGE, pat_age);\n contentValue.put(PHONE_NUMBER, pat_mobile_no);\n contentValue.put(PATIENT_ADDRESS, pat_address);\n contentValue.put(PATIENT_CIT_CITY_TOWN, pat_city_town);\n\n contentValue.put(PIN_CODE, pat_pincode);\n contentValue.put(DISTRICT, pat_district);\n contentValue.put(LANGUAGE, pref_lang);\n contentValue.put(PHOTO, photo_name);\n contentValue.put(CONSENT, consent);\n contentValue.put(SPECIAL_INSTRUCTION, special_instruction);\n\n contentValue.put(ADDED_BY, added_by);\n contentValue.put(ADDED_ON, added_on);\n contentValue.put(ADDED_TIME, addedTime);\n contentValue.put(MODIFIED_BY, modified_by);\n contentValue.put(MODIFIED_ON, modified_on);\n contentValue.put(IS_DISABLED, is_disabled);\n contentValue.put(DISABLED_BY, disabled_by);\n\n contentValue.put(DISABLED_ON, disabled_on);\n contentValue.put(IS_DELETED, is_deleted);\n contentValue.put(DELETED_BY, deleted_by);\n contentValue.put(DELETED_ON, deleted_on);\n contentValue.put(SYCHRONIZED, flag);\n\n contentValue.put(KEY_EMAIL, email);\n contentValue.put(PHONE_TYPE, phoneType);\n contentValue.put(ISD_CODE, isdCode);\n contentValue.put(ALTERNATE_PHONE_NO, alternateNumber);\n contentValue.put(ALTERNATE_PHONE_TYPE, alternatePhoneType);\n contentValue.put(ATERNATE_NO_ISD_CODE, alternateNoIsd);\n contentValue.put(UID, uid);\n contentValue.put(UIDTYPE, uidType);\n contentValue.put(STATUS, status);\n\n db.delete(TABLE_PATIENT, KEY_PATIENT_ID + \" = ?\" + \" AND \" + DOB + \" = ? \" + \" AND \" + PHONE_NUMBER + \" = ? \" + \" AND \" + ADDED_ON + \" = ? \", new String[]{pat_id, pat_date_of_birth, pat_mobile_no, added_on});\n // Inserting Row\n db.insert(TABLE_PATIENT, null, contentValue);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }", "public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }", "private void startPersonalActivity(String user_id) {\n }", "public void storeGlucose(){\n String HBA1C = hba1c.getText().toString();\n String date = glucose_date.getText().toString();\n String medication = String.valueOf(medication_spinner.getSelectedItem());\n UserData userdata = new UserData(\"rjgalleg\", date, glucose_number, tag, medication, HBA1C);\n Log.i(\"Authorize\", \"date: \"+date +\", medication: \"+medication+\", HBA1C: \"+HBA1C+\", glucose number: \"+glucose_number +\"tag: \"+tag);\n ServerRequests serverRequests = new ServerRequests(this);\n serverRequests.storeUserGlucoseInBackground(userdata, new GetUserCallback() {\n @Override\n public void done(User returnedUser) {\n startActivity(new Intent(GlucoseActivity.this, GlucoseActivity.class));\n }\n });\n\n\n }", "public void addHistoryPatientRecords(int visit_id, int patient_id, String usersellectedDate, String daysSel, String fowSel, String monthSel, String prescriptionImgPath, String clinical_note, String added_on_date, String visit_date, String doc_id, String doc_mem_id, String flag, String addedTime, String patientInfoType, String added_by, String action,\n String weight, String pulse, String bphigh, String bplow, String temparature, String symptoms, String dignosis, String strHeight, String bmi, String referedBy, String referedto, String rec_source, String strSpo2, String strRespirationRate, String obesity) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate);\n\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n\n values.put(MONTHS, monthSel);\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(ADDED_ON, added_on_date);\n values.put(VISIT_DATE, visit_date);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_TIME, addedTime);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ACTION, action);\n values.put(ADDED_BY, added_by);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n\n values.put(HEIGHT, strHeight);\n values.put(BMI, bmi);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedto);\n values.put(RECORD_SOURCE, rec_source);\n values.put(SPO2, strSpo2);\n values.put(RESPIRATION, strRespirationRate);\n values.put(OBESITY, obesity);\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public void addPatientHistoryRecords(String visit_id, String pat_id, String ailment, String visit_date, String follow_up_date,\n String follow_up_days, String follow_up_weeks, String follow_up_months,\n String act_follow_up_date, String notes, String added_by, String added_on, String addedTime,\n String modified_by, String modified_on, String is_disabled, String disabled_by,\n String disabled_on, String is_deleted, String deleted_by, String deleted_on, String flag, String patient_info_type_form,\n String precription, String weight, String pulse, String bphigh, String bplow, String temparature, String sugar, String symptoms, String dignosis, String tests, String drugs, String doc_mem_id, String doc_id,\n String height, String bmi, String recordSource, String sugarFast, String referredBy, String referredTo) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues contentValue = new ContentValues();\n\n contentValue.put(KEY_VISIT_ID, visit_id);\n contentValue.put(KEY_PATIENT_ID, pat_id);\n contentValue.put(AILMENT, ailment);\n contentValue.put(VISIT_DATE, visit_date);\n contentValue.put(FOLLOW_UP_DATE, follow_up_date);\n contentValue.put(DAYS, follow_up_days);\n contentValue.put(WEEKS, follow_up_weeks);\n contentValue.put(MONTHS, follow_up_months);\n contentValue.put(ACTUAL_FOLLOW_UP_DATE, act_follow_up_date);\n contentValue.put(CLINICAL_NOTES, notes);\n contentValue.put(ADDED_BY, added_by);\n contentValue.put(ADDED_ON, added_on);\n contentValue.put(ADDED_TIME, addedTime);\n contentValue.put(MODIFIED_BY, modified_by);\n contentValue.put(MODIFIED_ON, modified_on);\n contentValue.put(IS_DISABLED, is_disabled);\n contentValue.put(DISABLED_BY, disabled_by);\n\n contentValue.put(DISABLED_ON, disabled_on);\n contentValue.put(IS_DELETED, is_deleted);\n contentValue.put(DELETED_BY, deleted_by);\n contentValue.put(DELETED_ON, deleted_on);\n contentValue.put(SYCHRONIZED, flag);\n contentValue.put(PATIENT_INFO_TYPE_FORM, patient_info_type_form);\n contentValue.put(WEIGHT, weight);\n contentValue.put(PRESCRIPTION, precription);\n contentValue.put(PULSE, pulse);\n contentValue.put(BP, bphigh);\n contentValue.put(BP_LOW, bplow);\n contentValue.put(TEMP, temparature);\n contentValue.put(SUGAR, sugar);\n contentValue.put(SYMPTOMS, symptoms);\n contentValue.put(DIGNOSIS, dignosis);\n contentValue.put(TESTS, tests);\n contentValue.put(DRUGS, drugs);\n contentValue.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n contentValue.put(DOCTOR_ID, doc_id);\n\n contentValue.put(HEIGHT, height);\n contentValue.put(BMI, bmi);\n contentValue.put(RECORD_SOURCE, recordSource);\n contentValue.put(SUGAR_FASTING, sugarFast);\n contentValue.put(REFERED_BY, referredBy);\n contentValue.put(REFERED_TO, referredTo);\n\n db.delete(TABLE_PATIENT_HISTORY, KEY_PATIENT_ID + \" = ?\" + \" AND \" + KEY_VISIT_ID + \" = ? \", new String[]{pat_id, visit_id});\n // Inserting Row\n db.insert(TABLE_PATIENT_HISTORY, null, contentValue);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public void addPatientNextVisitRecord(@NonNull String visit_id, @NonNull String strPatientId, String actualFod, String daysSel, String fowSel, String monthSel, String clinical_note, String prescriptionimgPath, String visit_date, String doc_id, String doc_mem_id, String addedOnDate, String addedTime, String flag, String added_by, String action, String patInfoType,\n String weight, String pulse, String bp, String mmhg, String temparature, String symptoms, String dignosis, String strHeight, String strbmi, String referedBy, String referedTo, String strFollowUpStatus, String rec_source, String strSpo2, String strRespirationRate, String strObesity) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, strPatientId);\n values.put(ACTUAL_FOLLOW_UP_DATE, actualFod);\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n values.put(MONTHS, monthSel); // Created At\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(PRESCRIPTION, prescriptionimgPath);\n values.put(VISIT_DATE, visit_date);\n values.put(ADDED_ON, addedOnDate);\n values.put(ADDED_TIME, addedTime);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_BY, added_by);\n values.put(ACTION, action);\n values.put(PATIENT_INFO_TYPE_FORM, patInfoType);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bp);\n values.put(BP_LOW, mmhg);\n values.put(TEMP, temparature);\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n values.put(HEIGHT, strHeight);\n values.put(BMI, strbmi);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedTo);\n values.put(RECORD_SOURCE, rec_source);\n values.put(FOLLOW_UP_STATUS, strFollowUpStatus);\n values.put(SPO2, strSpo2);\n values.put(RESPIRATION, strRespirationRate);\n values.put(OBESITY, strObesity);\n\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public void clickOnMedication() {\n\t\tscrollDown(element(\"link_medications\"));\n\t\telement(\"link_medications\").click();\n\t\tlogMessage(\"User clicks on Medications on left navigation bar at Physician End\");\n\t}", "private void getDataReturnDetails() {\n Bundle bundle = getArguments();\n if (bundle != null) {\n returnResult = bundle.getInt(\"returnResult\");\n if (returnResult == 0) {\n // get change is read Notification and get data notify\n getAllDonationDisplay(bundle.getInt(\"getId\"));\n\n } else if (returnResult == 1) {\n // get data Notification Requests Adapter Recycler\n getDonationRequestId = bundle.getString(\"getDonationRequestId\");\n // get change is read Notification and get data notify\n assert getDonationRequestId != null;\n getAllDonationDisplay(Integer.parseInt(getDonationRequestId));\n\n }\n }\n\n fragmentContentDonationCallBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n try {\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.CALL_PHONE)\n == PackageManager.PERMISSION_GRANTED) {\n\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + getPhone));\n startActivity(callIntent);\n\n } else {\n AslForPermission(CALL);\n }\n\n } catch (Exception e) {\n Log.e(\"Demo application\", \"Failed to invoke call\" + e.getMessage());\n }\n }\n });\n\n\n }", "private void calculateMediem(){\r\n int mediemNum = accountInTotal/2;\r\n Account mediemAccount = theAccounts.get(mediemNum);\r\n System.out.println(mediemAccount.toString());\r\n }", "private void StartNotifyActivity()\r\n\t{\n \tIntent intent = new Intent();\r\n\t\tintent.setClass(this, NotifyDateActivity.class);\r\n\t\t// Set time\r\n\t\tBundle Parameters = new Bundle();\r\n\t\tParameters.putString(OneNote.KEY_NOTIFYTIME, HelperFunctions.Calendar2String(AddOneNote.NotifyTime));\r\n\t\tParameters.putInt(OneNote.KEY_NOTIFYDURA, AddOneNote.NotifyDura);\r\n\t\tParameters.putString(OneNote.KEY_RINGMUSIC, AddOneNote.RingMusic);\r\n\t\tParameters.putInt(OneNote.KEY_NOTIFYMETHOD, AddOneNote.NotifyMethod);\r\n // Pass it to next activity \r\n\t\tintent.putExtras(Parameters);\r\n\t\t// Go to next activity(set note's notify time activity)\r\n\t\tstartActivityForResult(intent, ProjectConst.ACTIVITY_SET_NOTIFYTIME);\t\t\r\n\t}", "public void showInfo(){\n DisplayMetrics displaymetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);\n int height = displaymetrics.heightPixels;\n int width = displaymetrics.widthPixels;\n int colorDep = getWindowManager().getDefaultDisplay().getPixelFormat();\n //String android_id = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);\n TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);\n\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String now = df.format(c.getTime());\n\n String text = \"手机分辨率是:\"+width+\"*\"+height+\" 手机色深是:\"+colorDep+\" IMEI是:\"+telephonyManager.getDeviceId()+\" Time: \"+now;\n Toast.makeText(getApplicationContext(),text,Toast.LENGTH_SHORT).show();\n }", "public void run() {\n handler.post(new Runnable() {\n public void run() {\n\n Intent intent = new Intent(context, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);\n\n NotificationCompat.Builder var = makeNotification(pendingIntent);\n\n GoogleSignInAccount lastSignedInAccount = GoogleSignIn.getLastSignedInAccount(context);\n\n if (lastSignedInAccount == null)\n return;\n\n Calendar cal = Calendar.getInstance();\n //Find the end of the day\n cal.setTimeInMillis(Calendar.getInstance().getTimeInMillis());\n cal.set(Calendar.HOUR_OF_DAY, 23);\n cal.set(Calendar.MINUTE, 59);\n cal.set(Calendar.SECOND, 59);\n cal.set(Calendar.MILLISECOND, 59);\n long endTime = cal.getTimeInMillis();\n //Find the start of the day\n cal.set(Calendar.HOUR_OF_DAY, 0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n long startTime = cal.getTimeInMillis();\n\n DataReadRequest readRequest =\n new DataReadRequest.Builder()\n .read(DataType.TYPE_STEP_COUNT_DELTA)\n .setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)\n .build();\n\n Fitness.getHistoryClient(context, lastSignedInAccount)\n .readData(readRequest)\n .addOnSuccessListener(\n new OnSuccessListener<DataReadResponse>() {\n @Override\n public void onSuccess(DataReadResponse dataReadResponse) {\n int steps = GoogleFitAdapter.getSteps(dataReadResponse);\n int goal = sharedPreferences.getInt(\"goal\", 5000);\n boolean bool = sharedPreferences.getBoolean(\"goalNotification\", false);\n Log.i(\"Notification\", \"Checking if user has met goal\");\n if (steps > goal && !bool) {\n Log.i(\"Notification\", \"Notified User that goal achieved\");\n sendNotification(var);\n }\n }\n });\n\n }\n });\n\n }", "public void orderMedicine(MedicineOrder order)\n {\n OrderRequestSingleton orderRequests = OrderRequestSingleton.getInstance();\n orderRequests.processRequest(order);\n }", "private void sendInfo() {\n Log.v(TAG, \"sendInfo() contentListSize \"+this.contentList.size()+\" interestListSize \"+this.interestList.size());\n\n D2DAddContentNotificationEvent addContentEvent = new D2DAddContentNotificationEvent(false);\n addContentEvent.contentList = this.contentList;\n this.sendEvent(addContentEvent);\n\n D2DAddInterestNotificationEvent addInterestEvent = new D2DAddInterestNotificationEvent(false);\n addInterestEvent.interestList = this.interestList;\n this.sendEvent(addInterestEvent);\n }", "public void getMedicationsWithCompletion(\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n final String endPoint =\n String.format(GET_MEDICATIONS_ENDPOINT, mSharecareToken.accountID);\n this.beginRequest(endPoint, ServiceMethod.GET, headers, null,\n (String)null, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (result.success)\n {\n final JsonElement response = getResponseFromJson(json);\n if (checkResultFromDataService(json))\n {\n if (response != null && response.isJsonArray())\n {\n final ArrayList<Medication> medications =\n new ArrayList<Medication>();\n for (final JsonElement element : response\n .getAsJsonArray())\n {\n if (element.isJsonObject())\n {\n final JsonObject medicationJson =\n element.getAsJsonObject();\n final String identifier =\n getStringFromJson(medicationJson,\n ID);\n final String name =\n getStringFromJson(medicationJson,\n NAME);\n if (!StringHelper\n .isNullOrEmpty(identifier)\n && !StringHelper\n .isNullOrEmpty(name))\n {\n final Medication medication =\n new Medication(identifier, name);\n medications.add(medication);\n }\n }\n }\n final HashMap<String, Object> parameters =\n new HashMap<String, Object>(1);\n parameters.put(\"medications\", medications);\n result.parameters = parameters;\n }\n else if (response != null)\n {\n try\n {\n result.errorMessage =\n response.getAsString();\n }\n catch (final ClassCastException e)\n {\n// Crashlytics.logException(e);\n }\n result.success = false;\n result.responseCode =\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_SERVER_ERROR;\n }\n }\n else if (response != null)\n {\n try\n {\n result.errorMessage = response.getAsString();\n }\n catch (final ClassCastException e)\n {\n// Crashlytics.logException(e);\n }\n result.success = false;\n result.responseCode =\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_SERVER_ERROR;\n }\n }\n LogError(\"getMedicationsWithCompletion\", result);\n return result;\n }\n }, completion);\n }", "@Override\n public void addMedicationToDb(Medication medication, SQLiteDatabase db) {\n medication.dbRowId = MedicationDao.addMedication(medication, db);\n view.onMedicationInsertedToDb(medication);\n }", "@Override\n\tpublic void takeAppointment() {\n\t\tsearchByMobile();\n\t\tif (count == 0) {\n\t\t\tnew ManagerServiceImplementation().addPatient();\n\t\t}\n\t\tnew DoctorServiceImplementation().showDoctorDetails();\n\t\tSystem.out.println(\"Enter doctor's ID:\");\n\t\tString dID = UtilityClinic.readString();\n\t\tfor (int i = 0; i < UtilityClinic.docJson.size(); i++) {\n\t\t\tJSONObject obj = (JSONObject) UtilityClinic.docJson.get(i);\n\t\t\tif (obj.get(\"Doctor's ID\").toString().equals(dID)) {\n\t\t\t\tif (UtilityClinic.docWisePatCounter.isEmpty()) {\n\t\t\t\t\tfor (int j = 0; j < UtilityClinic.docJson.size(); j++) {\n\t\t\t\t\t\tUtilityClinic.docWisePatCounter.add(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (UtilityClinic.docWisePatCounter.get(i) < 5) {\n\t\t\t\t\tnew Appointment(obj.get(\"Doctor's name\").toString(), dID, pName, pId,\n\t\t\t\t\t\t\tobj.get(\"Availibility time\").toString());\n\t\t\t\t\tUtilityClinic.docWisePatCounter.add(i, UtilityClinic.docWisePatCounter.get(i) + 1);\n\n\t\t\t\t\tif (UtilityClinic.appFile == null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tutil.accessExistingAppJson();\n\t\t\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t\t\tutil.createAppJson();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tutil.readFromAppJson(util.appFile);\n\t\t\t\t\tJSONObject appObject = new JSONObject();\n\t\t\t\t\tAppointment app = new Appointment(obj.get(\"Doctor's name\").toString(), dID, pName, pId,\n\t\t\t\t\t\t\tobj.get(\"Availibility time\").toString());\n\t\t\t\t\tappObject.put(\"Patient's name\", app.getPatientName());\n\t\t\t\t\tappObject.put(\"Patient's ID\", app.getPatientId());\n\t\t\t\t\tappObject.put(\"Doctor's name\", app.getDoctorName());\n\t\t\t\t\tappObject.put(\"Doctor's ID\", app.getDoctorId());\n\t\t\t\t\tappObject.put(\"Time stamp\", app.getTime());\n\t\t\t\t\tUtilityClinic.appJson.add(appObject);\n\t\t\t\t\tutil.writetoJson(UtilityClinic.appJson, util.getAppFileName());\n\t\t\t\t\tutil.readFromAppJson(util.getAppFileName());\n\t\t\t\t\tSystem.out.println(\"Appointment done.....\\n\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Sorry!!! Doctor is not available....Please try on next day.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void m4566a() {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.facebook.ads.interstitial.impression.logged:\" + this.f4211a);\n intentFilter.addAction(\"com.facebook.ads.interstitial.displayed:\" + this.f4211a);\n intentFilter.addAction(\"com.facebook.ads.interstitial.dismissed:\" + this.f4211a);\n intentFilter.addAction(\"com.facebook.ads.interstitial.clicked:\" + this.f4211a);\n intentFilter.addAction(\"com.facebook.ads.interstitial.error:\" + this.f4211a);\n intentFilter.addAction(\"com.facebook.ads.interstitial.activity_destroyed:\" + this.f4211a);\n LocalBroadcastManager.getInstance(this.f4212b).registerReceiver(this, intentFilter);\n }", "private void m5312e() {\n Intent intent = new Intent(\"data.receiver\");\n intent.putExtra(\"isReLoginHK\", true);\n BaseApplication.m4925a().sendBroadcast(intent);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n session = new Session(getActivity());\n sessionManager = SessionManager.getInstance(getActivity());\n userInfoSession = new UserInfoSession(getActivity());\n\n mCurrentUserId = sessionManager.getCurrentUserID();\n\n Bundle getBundle = getArguments();\n muteUserList = (ArrayList<MuteUserPojo>) getBundle.getSerializable(\"MuteUserList\");\n\n rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (rb1.isChecked()) {\n muteDuration = \"8 Hours\";\n } else if (rb2.isChecked()) {\n muteDuration = \"1 Week\";\n } else if (rb3.isChecked()) {\n muteDuration = \"1 Year\";\n }\n }\n });\n\n if (muteUserList != null && muteUserList.size() == 1) {\n MuteUserPojo muteUserItem = muteUserList.get(0);\n String toUserId = muteUserItem.getReceiverId();\n ContactDB_Sqlite contactDB_sqlite = CoreController.getContactSqliteDBintstance(getActivity());\n\n MuteStatusPojo muteData = null;\n\n if (muteUserItem.getChatType().equalsIgnoreCase(\"group\")) {\n muteData = contactDB_sqlite.getMuteStatus(mCurrentUserId, null, toUserId, false);\n } else {\n String docId = mCurrentUserId + \"-\" + toUserId;\n String convId = userInfoSession.getChatConvId(docId);\n muteData = contactDB_sqlite.getMuteStatus(mCurrentUserId, toUserId, convId, false);\n Log.e(\"DataBase-->\", muteData + \"\");\n// muteData = contactsDB.getMuteStatus(mCurrentUserId, toUserId, convId, false);\n }\n\n\n if (muteData != null && muteData.getMuteStatus().equals(\"1\")) {\n if (muteData.getDuration().equalsIgnoreCase(\"8 Hours\")) {\n rb1.setChecked(true);\n } else if (muteData.getDuration().equalsIgnoreCase(\"1 Week\")) {\n rb2.setChecked(true);\n } else if (muteData.getDuration().equalsIgnoreCase(\"1 Year\")) {\n rb3.setChecked(true);\n }\n if (muteData.getNotifyStatus().equals(\"1\")) {\n check.setChecked(true);\n }\n }\n } else {\n rb1.setChecked(true);\n }\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (ConnectivityInfo.isInternetConnected(getActivity())) {\n listener.onMuteDialogClosed(false);\n getDialog().dismiss();\n } else {\n Toast.makeText(getActivity(), \"Check Your Network Connection\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (ConnectivityInfo.isInternetConnected(getActivity())) {\n if (muteDuration == null || muteDuration.equals(\"\")) {\n Toast.makeText(getActivity(), \"Please choose duration\", Toast.LENGTH_SHORT).show();\n } else {\n for (MuteUserPojo muteUserItem : muteUserList) {\n String receiverId = muteUserItem.getReceiverId();\n String chatType = muteUserItem.getChatType();\n String secretType = muteUserItem.getSecretType();\n mLastMuteUserId = receiverId;\n\n String locDbDocId = getLocDBDocId(muteUserItem);\n// session.setMuteDuration(locDbDocId, muteDuration);\n\n String convId = null;\n if (chatType.equalsIgnoreCase(MessageFactory.CHAT_TYPE_SINGLE)) {\n if (userInfoSession.hasChatConvId(locDbDocId)) {\n convId = userInfoSession.getChatConvId(locDbDocId);\n }\n } else {\n // For group --- Group id and conversation id are same\n convId = receiverId;\n }\n\n if (!muteDuration.equals(\"\")) {\n int notifyStatus = 0;\n String value = getString(R.string.Default_ringtone);\n session.putTone(value);\n session.putgroupTone(value);\n if (check.isChecked()) {\n notifyStatus = 1;\n session.putTone(\"None\");\n session.putgroupTone(\"None\");\n }\n\n MuteUnmute.muteUnmute(EventBus.getDefault(), mCurrentUserId, receiverId, convId,\n chatType, secretType, 1, muteDuration, notifyStatus);\n\n } else {\n listener.onMuteDialogClosed(false);\n }\n\n /*if (!check.isChecked()) {\n session.setNotificationOnMute(locDbDocId, true);\n\n } else {\n session.setNotificationOnMute(locDbDocId, false);\n }*/\n\n mActivity.showProgressDialog();\n }\n }\n } else {\n Toast.makeText(getActivity(), \"Check Your Network Connection\", Toast.LENGTH_SHORT).show();\n }\n }\n\n });\n }", "@RequestMapping(value = \"/medication/{id}\")\n public String medicationDetection(@PathVariable(\"id\") Integer visitId,Model model) {\n // Getting List of All diagnosis in System \n List<Medication> signedMedications=medicationService.getSignedMedications();\n List<Medication> unSignedMedications=medicationService.getUnSignedMedications();\n //// Model Attributes \n model.addAttribute(\"signedMedications\", signedMedications);\n model.addAttribute(\"unSignedMedications\", unSignedMedications);\n model.addAttribute(\"visitId\",visitId);\n // return View\n return PACKAGE_ROOT+\"prescriptions\";\n }", "public void startToNormalFlow() {\n new AppController().setConnectivityListener(this);\r\n\r\n try {\r\n objLocationDetails = new LocationDetails(LoginActivity.this);\r\n objLocationDetails.startTracking();\r\n } catch (NullPointerException ne) {\r\n ne.printStackTrace();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n arrPermission = Arrays.asList(\"public_profile\", \"email\", \"user_friends\");\r\n\r\n objSharedPreferences = getSharedPreferences(Constants.PROFILE_PREFERENCES, MODE_PRIVATE);\r\n\r\n try {\r\n PackageInfo info = getPackageManager().getPackageInfo(\"com.shout.shout_test\", PackageManager.GET_SIGNATURES);\r\n for (Signature signature : info.signatures) {\r\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\r\n md.update(signature.toByteArray());\r\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\r\n }\r\n } catch (PackageManager.NameNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n// LoginManager.getInstance().logOut();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n\r\n /*mRegistrationBroadcastReceiver = new BroadcastReceiver() {\r\n @Override\r\n public void onReceive(Context context, Intent intent) {\r\n boolean sentToken = objSharedPreferences.getBoolean(Constants.SENT_TOKEN_TO_SERVER, false);\r\n if (sentToken) {\r\n // Get sentToken\r\n //setResultCode(Activity.RESULT_OK);\r\n } else {\r\n // Token Error\r\n }\r\n }\r\n };*/\r\n\r\n Intent intent = new Intent(this, MyInstanceIDListenerService.class);\r\n startService(intent);\r\n\r\n /*if (Utils.checkPlayServices(LoginActivity.this)) {\r\n // Start IntentService to register this application with GCM.\r\n Intent intent = new Intent(this, MyInstanceIDListenerService.class);\r\n startService(intent);\r\n }*/\r\n init();\r\n\r\n\r\n arrIntroPagerModel = new ArrayList<IntroPagerModel>();\r\n\r\n for (int index = 0; index < 5; index++) {\r\n IntroPagerModel objIntroPagerModel = null;\r\n switch (index) {\r\n case 0:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide1, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 1:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide3, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 2:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide4, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 3:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide5, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 4:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide6, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n }\r\n }\r\n objIntroPagerAdapter = new IntroPagerAdapter(LoginActivity.this, arrIntroPagerModel);\r\n viewPagerIntroSlider.setAdapter(objIntroPagerAdapter);\r\n if (arrIntroPagerModel.size() > 0) {\r\n relativeIntroBackground.setBackgroundResource(R.drawable.slide2);\r\n objViewPagerIndicator.setUnSelectedColor(getResources().getColor(R.color.color_unselected_indicator));\r\n objViewPagerIndicator.setSelectedColor(getResources().getColor(R.color.color_selected_indicator));\r\n objViewPagerIndicator.build(arrIntroPagerModel.size());\r\n objViewPagerIndicator.showIndicator(0);\r\n }\r\n viewPagerIntroSlider.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\r\n @Override\r\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\r\n\r\n }\r\n\r\n @Override\r\n public void onPageSelected(int position) {\r\n objViewPagerIndicator.showIndicator(position);\r\n }\r\n\r\n @Override\r\n public void onPageScrollStateChanged(int state) {\r\n\r\n }\r\n });\r\n\r\n viewPagerIntroSlider.setPageTransformer(true, new ViewPager.PageTransformer() {\r\n @Override\r\n public void transformPage(View view, float position) {\r\n System.out.print(\"SCROLLED POSITION : \" + position);\r\n\r\n if (position <= -1.0F || position >= 1.0F) {\r\n view.setTranslationX(view.getWidth() * position);\r\n view.setAlpha(0.0F);\r\n } else if (position == 0.0F) {\r\n view.setTranslationX(view.getWidth() * position);\r\n view.setAlpha(1.0F);\r\n } else {\r\n // position is between -1.0F & 0.0F OR 0.0F & 1.0F\r\n view.setTranslationX(view.getWidth() * -position);\r\n view.setAlpha(1.0F - Math.abs(position));\r\n }\r\n /* view.setAlpha(1 - Math.abs(position));\r\n if (position < 0) {\r\n view.setScrollX((int) ((float) (view.getWidth()) * position));\r\n } else if (position > 0) {\r\n view.setScrollX(-(int) ((float) (view.getWidth()) * -position));\r\n } else {\r\n view.setScrollX(0);\r\n }*/\r\n }\r\n });\r\n }", "public void getDetails() {\n presenter = new SkillPresenter(this, this);\n try {\n if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notification\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notificationAdapter\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else {\n presenter.getSkills(this);\n }\n }catch (Exception e){\n e.printStackTrace();\n presenter.getSkills(this);\n }\n }", "public void registerMaid(Integer key, MyMaid maid){\n //register Maid\n mMaidStaff.setMaid(maid, key);\n }", "public Integer getMedicalid() {\n return medicalid;\n }", "private void update_medplan(final Context context) {\n SharedPreferences pref = getSharedPreferences(\"user_key\", MODE_PRIVATE);\n String url = \"https://mobsysbackend.herokuapp.com/request.json\";\n\n RequestQueue queue = Volley.newRequestQueue(this);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"uat\", pref.getString(\"user_key\", \"missing\"));\n JSONObject parameters = new JSONObject(params);\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.POST,\n url, parameters,\n new Response.Listener() {\n @Override\n public void onResponse(Object response) {\n if (Meds.listAll(Meds.class).size() > 0) {\n for (Meds m : Meds.listAll(Meds.class)) {\n if (!m.getDays().equals(\"\")) {\n cancelAlarm(m.getId());\n }\n }\n }\n JSONObject json = (JSONObject) response;\n Gson g = new Gson();\n medplan = g.fromJson(json.toString(), MedPlan.class);\n Log.i(\"JSONtoString\", \"onResponse: \" + json.toString());\n tvarzt.setText(\"Austellender Arzt: \" + medplan.getDoctor());\n tvpatient.setText(\"Ausgestellt für: \" + medplan.getPatient());\n\n List<Meds> medlist = medplan.getMeds();\n MedicineListAdapter adapter = new MedicineListAdapter(context, R.layout.adapter_view_layout, medlist);\n listView.setAdapter(adapter);\n\n for (Meds m : Meds.listAll(Meds.class)) {\n if (!m.getDays().equals(\"\")) {\n createAlarm(m.getDays(), m.getTime(), m.getId());\n }\n }\n //doing some databse stuff\n //remember record indexes start with 1\n Medplaninfo check = Medplaninfo.findById(Medplaninfo.class, (long) 1);\n\n if (check == null) {\n Log.e(\"CHECK\", \"No empty object was found. something must have went wrong\");\n } else {\n check.setDoctor(medplan.getDoctor());\n check.setMedcount(medplan.getMedcount());\n check.setPatient(medplan.getPatient());\n //delete old meds\n Meds.deleteAll(Meds.class);\n //save new meds\n for (Meds _med : medplan.meds) {\n _med.save();\n }\n check.save();\n }\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n Log.i(\"TAG\", \"onErrorResponse: Something went wrong during the updateing\");\n\n }\n }\n );\n requestQueue.add(jsonObjReq);\n }", "public final void collectInfo() {\n LinearLayout linearLayout = (LinearLayout) _$_findCachedViewById(R.id.llName);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout, \"llName\");\n boolean z = false;\n if (linearLayout.getVisibility() == 0) {\n EditText editText = (EditText) _$_findCachedViewById(R.id.etName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etName\");\n CharSequence text = editText.getText();\n if (text == null || text.length() == 0) {\n showMsg(\"请输入姓名\");\n return;\n }\n }\n LinearLayout linearLayout2 = (LinearLayout) _$_findCachedViewById(R.id.llPsptId);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout2, \"llPsptId\");\n if (linearLayout2.getVisibility() == 0) {\n EditText editText2 = (EditText) _$_findCachedViewById(R.id.etPsptId);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPsptId\");\n CharSequence text2 = editText2.getText();\n if (text2 == null || text2.length() == 0) {\n showMsg(\"请输入身份证号\");\n return;\n }\n EditText editText3 = (EditText) _$_findCachedViewById(R.id.etPsptId);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etPsptId\");\n if (!IDCardUtil.checkIDCard(editText3.getText().toString())) {\n showMsg(\"请输入正确的身份证号\");\n return;\n }\n }\n if (checkPhoneNum()) {\n EditText editText4 = (EditText) _$_findCachedViewById(R.id.etVerityCode);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etVerityCode\");\n CharSequence text3 = editText4.getText();\n if (text3 == null || text3.length() == 0) {\n z = true;\n }\n if (z) {\n showMsg(\"请输入验证码\");\n return;\n }\n AgreementBar agreementBar = (AgreementBar) _$_findCachedViewById(R.id.agreementBar);\n Intrinsics.checkExpressionValueIsNotNull(agreementBar, \"agreementBar\");\n if (!agreementBar.isCheck()) {\n showMsg(\"请同意协议\");\n return;\n }\n DataMap dataMap = new DataMap();\n EditText editText5 = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText5, \"etPhoneNum\");\n DataMap dataMap2 = dataMap.set(K.phoneNum, editText5.getText().toString());\n EditText editText6 = (EditText) _$_findCachedViewById(R.id.etVerityCode);\n Intrinsics.checkExpressionValueIsNotNull(editText6, \"etVerityCode\");\n dataMap2.set(K.verifyCode, editText6.getText().toString()).set(K.couponId, this.couponId).set(K.campId, this.campId);\n LinearLayout linearLayout3 = (LinearLayout) _$_findCachedViewById(R.id.llPsptId);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout3, \"llPsptId\");\n if (linearLayout3.getVisibility() == 0) {\n EditText editText7 = (EditText) _$_findCachedViewById(R.id.etPsptId);\n Intrinsics.checkExpressionValueIsNotNull(editText7, \"etPsptId\");\n dataMap.set(K.psptId, editText7.getText().toString());\n }\n LinearLayout linearLayout4 = (LinearLayout) _$_findCachedViewById(R.id.llName);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout4, \"llName\");\n if (linearLayout4.getVisibility() == 0) {\n EditText editText8 = (EditText) _$_findCachedViewById(R.id.etName);\n Intrinsics.checkExpressionValueIsNotNull(editText8, \"etName\");\n dataMap.set(K.custName, editText8.getText().toString());\n }\n CouponGetPresenter couponGetPresenter = (CouponGetPresenter) getPresenter();\n if (couponGetPresenter != null) {\n couponGetPresenter.checkVerify(dataMap);\n }\n }\n }", "@Override\n public void onDeviceRegistered(NotificareDevice device) {\n try {\n NotificareEventEmitter.getInstance().sendEvent(\"deviceRegistered\", NotificareUtils.mapDevice(device), true);\n } catch (JSONException e) {\n // ignore\n }\n }", "protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\r\n\tsetContentView(R.layout.input_med);\r\n\tButton submit=(Button)findViewById(R.id.button1);\r\n\t\r\n\t//Toast.makeText(getApplicationContext(), \r\n // a, Toast.LENGTH_LONG).show();\r\n\tsubmit.setOnClickListener(new View.OnClickListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onClick(View v) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n}", "private void loadDataInListView() {\n list_med = myMedicationDB.getAllData();\n list_schedule = myMedicationDB.getAllDataSchedule();\n myAdapterMedication = new myAdapterMedication(context, list_med, list_schedule);\n allMedList.setAdapter(myAdapterMedication);\n myAdapterMedication.notifyDataSetChanged();\n\n }", "private void showDetails() {\n ContentValues values = new ContentValues();\n\n values.put(MyProvider.FDLP,dateStr+\"\");\n values.put(MyProvider.DeliveryDate,deliveryDateStr+\"\");\n values.put(MyProvider.PregnancyDuration,pregnancyDuration+\"\");\n values.put(MyProvider.SelectedDay,date+\"\");\n values.put(MyProvider.SelectedAngle,angle+\"\");\n\n Uri uri = getContentResolver().insert(\n MyProvider.CONTENT_URI, values);\n\n Toast.makeText(getBaseContext(),\n uri.toString(), Toast.LENGTH_LONG).show();\n\n\n\n /*SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putString(FDLP, dateStr);\n editor.putString(DeliveryDate, deliveryDateStr);\n editor.putInt(PregnancyDuration, pregnancyDuration);\n editor.putInt(SelectedDay, date);\n editor.putFloat(SelectedAngle, angle);\n editor.commit();*/\n\n Intent myIntent = new Intent(MainActivity.this, DetailsActivity.class);\n //myIntent.putExtra(\"key\", value); //Optional parameters\n MainActivity.this.startActivity(myIntent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, viewUpdateDeleteAMedicine.class);\n\n int mID= medData.get(position).getMedID();\n String medid = String.valueOf(mID);\n\n int uID= medData.get(position).getMedID();\n String userid = String.valueOf(uID);\n\n intent.putExtra(\"MedID\", medid);\n intent.putExtra(\"UserID\",medData.get(position).getUserID());\n intent.putExtra(\"MedName\", medData.get(position).getMedName());\n intent.putExtra(\"MedType\",medData.get(position).getMedType());\n intent.putExtra(\"MedFrequency\", medData.get(position).getMedFreq());\n intent.putExtra(\"MedDose\", medData.get(position).getMedDose());\n intent.putExtra(\"MedTime\", medData.get(position).getMedTime());\n intent.putExtra(\"MedDuration\", medData.get(position).getMedDuration());\n intent.putExtra(\"MedStart\", medData.get(position).getMedStartdate());\n intent.putExtra(\"MedDescript\", medData.get(position).getMedDescrip());\n\n mContext.startActivity(intent);\n\n }", "public void setMedicineName(String Medicine) {\n this.MedicineName = Medicine;\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(DoctorTodaysAppointment.this,DoctorTodaysAppointmentsForPatient.class);\n intent.putExtra(\"mobile\",doctorMobile);\n intent.putExtra(\"userId\",doctorId);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n Intent intent;\n switch (view.getId()) {\n case R.id.record_vital_signs:\n intent = new Intent(this, PatientRecordVitalSignsActivity.class);\n intent.putExtra(PatientRecordVitalSignsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_vital_signs:\n intent = new Intent(this, PatientVitalSignsActivity.class);\n intent.putExtra(PatientVitalSignsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.record_symptoms:\n intent = new Intent(this, PatientRecordSymptomsActivity.class);\n intent.putExtra(PatientRecordSymptomsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_symptoms:\n intent = new Intent(this, PatientSymptomsActivity.class);\n intent.putExtra(PatientSymptomsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.add_prescription:\n intent = new Intent(this, PatientAddPrescriptionActivity.class);\n intent.putExtra(PatientAddPrescriptionActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_prescriptions:\n intent = new Intent(this, PatientPrescriptionsActivity.class);\n intent.putExtra(PatientPrescriptionsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.edit_info:\n \tintent = new Intent(this, PatientEditActivity.class);\n \tintent.putExtra(PatientEditActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n \tstartActivity(intent);\n break;\n case R.id.patient_detail_doctor:\n intent = new Intent(this, PatientDoctorActivity.class);\n intent.putExtra(PatientDoctorActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.add_seen_by_doctor:\n mPatient.addSeenByDoctor();\n populatePatientData();\n break;\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 0 && resultCode == 0) {\n Toast.makeText(context, \"Activity Created!\", Toast.LENGTH_SHORT).show();\n getActivitySessions(3);\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode==RESULT_OK&&requestCode==ACTIVITY_DOS){\n\n String nom=data.getExtras().getString(\"nombreIntent\");\n String loc=data.getExtras().getString(\"localidadIntent\");\n String pro=data.getExtras().getString(\"provinciaIntent\");\n boolean bueno = data.getExtras().getBoolean(\"eleccionIntent\");\n if(bueno==true) {\n notificationExtendida(nom, \"De \" + loc + \", (\"+pro+\")\",nom,loc,pro,1);\n }else{\n msg1.setText(nom);\n msg2.setText(loc);\n msg3.setText(pro);\n }\n }\n else{\n Toast.makeText(getApplicationContext(),\"ERROR EN LA APLICACION\", Toast.LENGTH_SHORT).show();\n }\n }", "public interface ApplicationMetadata {\n float MAP_ZOOM_VALUE = 16.0f;\n String DEVICE_ID = \"device_id\";\n String DEVICE_TOKEN = \"device_token\";\n String APP_LANGUAGE = \"app_language\";\n int SUCCESS_RESPONSE_STATUS = 0;\n int FAILURE_RESPONSE_STATUS = 1;\n\n String RESPONSE_MSG = \"response_msg\";\n String RESPONSE_DATA = \"response_data\";\n String USER_NAME = \"name\";\n String USER_EMAIL = \"email\";\n String USER_MOBILE = \"mobile\";\n String USER_IMAGE = \"profile_pic\";\n String LOGIN = \"login\";\n String USER_ID = \"customer_id\";\n String BOOKING_STATUS = \"booking_status\";\n String VEHICLE_TYPE = \"type\";\n String VEHICLE_MESSAGE = \"msg\";\n String SESSION_TOKEN = \"session_token\";\n String LOGOUT = \"logout\";\n String LATITUDE = \"latitude\";\n String LONGITUDE = \"longitude\";\n\n\n String ADDRESS = \"address\";\n String HOURLY_CHARGES = \"hourly_charges\";\n String PASSWORD = \"password\";\n String PERSONAL_DESC = \"personal_desc\";\n String SERVICE_TYPE = \"service_type\";\n String STRIPE_ID = \"stripe_id\";\n String STRIPE_TOKEN = \"stripe_token\";\n String USER_LATITUDE = \"user_latitude\";\n String USER_LONGITUDE = \"user_longitude\";\n String USER_ADD_DATE = \"user_add_date\";\n String USER_MOD_DATE = \"user_mod_date\";\n String IMAGE_BASE_URL = \"http://fairrepair.onsisdev.info/public/media/mechanic/\";\n String CUSTOMER_IMAGE_BASE_URL = \"http://fairrepair.onsisdev.info/public/media/customer/\";\n String LANG_ENGLISH = \"en\";\n String LANGUAGE = \"language\" ;\n String PAGE_IDENTIFIER = \"page_identifier\";\n String ABOUT_MECH = \"aboutusmechanic\";\n String TNC_MECH = \"termofservicesmechanic\";\n String PRIVACY_POLICY_MECH = \"privecypolicymechanic\";\n String TEST_SELECT_TYPES = \"test_select_type\";\n String AVAILABLE = \"1\";\n String NOT_AVAILABLE = \"0\";\n\n String APP_STATUS = \"app_status\";\n String NOTIFICATION_DATA = \"notification_data\";\n\n String REQUEST_ID = \"request_id\";\n String APP_CUSTOMER_ID = \"app_customer_id\";\n String OFFER_PRICE = \"offer_price\";\n int NOTIFICATION_NEW_OFFER = 1;\n int NOTIFICATION_REQ_ACCEPTED = 2;\n int NOTIFICATION_OFFER_ACCEPTED = 3;\n int NOTIFICATION_REQ_COMPLETED = 5;\n String NOTIFICATION_TYPE = \"notification_type\";\n String BILLING_PRICE = \"billing_price\";\n String SERVICE_DETAIL = \"service_detail\";\n String APP_PROVIDER_ID = \"app_provider_id\";\n String CUSTOMER_ID = \"customer_id\";\n String MESSAGE = \"message\";\n String LOCATION = \"location\";\n String SERVICE_CHARGE = \"service_charge\";\n String TOTAL_PRICE = \"total_price\";\n String SERVICE_CHARGE_PRICE = \"service_charge_price\";\n int NOTIFICATION_REQ_CANCELED = 4;\n int SHOW_ALL_MECH = 100;\n int SHOW_MECH_REQUEST = 110;\n int PIC_CROP_REQUEST_ID = 232;\n @Nullable\n String RATE_REVIEW = \"rate_review\";\n}", "public Builder setIdMedication(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n idMedication_ = value;\n onChanged();\n return this;\n }", "static void showPromotion(final Activity currentActivity){\n if(showingPromotion.get()){\n return;\n }\n long lastShown = getSharedPreferenceValueByKey(Constants.KEY_IN_APP_LAST_SHOWN_TIME);\n long nowMS = System.currentTimeMillis();\n if(lastShown>0&&(nowMS-lastShown<Constants.Z_TIMEOUT_BETWEEN_IN_APP)){\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Too soon to show In App campaign, will not try to show any In App campaign, please wait for sometime\");\n }\n return;\n }\n String screen_id =currentActivityLabel ;\n if(screen_id==null){\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Somehow could not get Activity identifier, hence could not show In App campaign\");\n }\n return;\n }\n //Log.i(\"ActivityDetails: \", currentActivityLabel + \", \" + currentActivityName);\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Lets check db if we have any In App Campaign for Screen:\"+screen_id);\n }\n\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeSeenPromotions();\n JSONObject promotionForScreen = dbHelper.getPromotionforScreen(screen_id);\n JSONObject defaultPromotions = dbHelper.getPromotionforScreen(Constants.DEFAULT_SCREEN);\n JSONObject probablePromotion;\n if(promotionForScreen == null||promotionForScreen.length() == 0){\n probablePromotion = defaultPromotions;\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Did not find any In App Campaign for Screen:\"+screen_id+\"\");\n if(defaultPromotions == null || defaultPromotions.length() == 0){\n Log.d(TAG, \"Did not find any In App Campaign for Any Screen\");\n }\n }\n }else{\n probablePromotion = promotionForScreen;\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Found one In App Campaign for Screen:\"+screen_id);\n }\n }\n\n final JSONObject promotion = probablePromotion;\n\n if(promotion == null || promotion.length() == 0 ){\n if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"No InApp Campaigns found for the user at this point of time\");\n }\n return;\n }\n\n try {\n\n final String campaignId = promotion.getString(\"campaignId\");\n final JSONObject template = promotion.getJSONObject(\"template\");\n int maximumNumberOfTimesToShow = -1, minimumDurationInMinutesBeforeReshow = -1;\n if(promotion.has(\"suppressionLogic\")) {\n JSONObject suppressionLogic = promotion.getJSONObject(\"suppressionLogic\");\n if(suppressionLogic.has(\"maximumNumberOfTimesToShow\")) {\n maximumNumberOfTimesToShow = suppressionLogic.getInt(\"maximumNumberOfTimesToShow\");\n }\n if(suppressionLogic.has(\"minimumDurationInMinutesBeforeReshow\")) {\n minimumDurationInMinutesBeforeReshow = suppressionLogic.getInt(\"minimumDurationInMinutesBeforeReshow\");\n }\n }\n long currentTime = System.currentTimeMillis();\n if(minimumDurationInMinutesBeforeReshow!=-1) {\n if (currentTime < dbHelper.getLastShownTime(campaignId) + minimumDurationInMinutesBeforeReshow * 60 * 1000) {\n if (ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Not so soon, this campaign can be shown again after \" +minimumDurationInMinutesBeforeReshow+\" minutes \"+ campaignId);\n }\n return;\n }\n }// In case the minimumDurationInMinutes value is not found, then the campaign will be shown only once.\n else{\n if(dbHelper.getNumberOfTimesShown(campaignId)>=1) {\n dbHelper.markPromotionAsSeen(campaignId);\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Found one already shown In App campaign, cannot show it again\");\n }\n return;\n }\n }\n if(maximumNumberOfTimesToShow!=-1) {\n if (dbHelper.getNumberOfTimesShown(campaignId) >= maximumNumberOfTimesToShow) {\n if (ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Already shown too many times \" + campaignId);\n }\n dbHelper.markPromotionAsSeen(campaignId);\n return;\n }\n }// In case the maximumNumberOfTimesToShow value is not found, then the campaign will be shown only once.\n else{\n if(dbHelper.getNumberOfTimesShown(campaignId)>=1) {\n dbHelper.markPromotionAsSeen(campaignId);\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Found one already shown In App campaign, cannot show it again\");\n }\n return;\n }\n }\n\n currentActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n FragmentTransaction ft = ZeTarget.currentActivity.getFragmentManager().beginTransaction();\n Fragment prev = ZeTarget.currentActivity.getFragmentManager().findFragmentByTag(\"dialog\");\n if (prev != null) {\n ft.remove(prev);\n }\n ft.addToBackStack(null);\n ZeTargetInAppNotification newNotification = null;\n if(customDialogFragment!=null){\n newNotification = customDialogFragment;\n }\n else if(classNameOfCustomDialogFragment!=null){\n try {\n newNotification = (ZeTargetInAppNotification) Class.forName(classNameOfCustomDialogFragment).newInstance();\n } catch (InstantiationException e) {\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Error in instantiating Custom DialogFragment class \", e);\n }\n } catch (IllegalAccessException e){\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Unable to call newInstance() on Custom DialogFragment class \", e);\n }\n } catch (ClassNotFoundException e){\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Custom DialogFragment class not found \", e);\n }\n }\n }\n else{\n try {\n newNotification = (ZeTargetInAppNotification) Class.forName(classNameOfDefaultDialogFragment).newInstance();\n } catch (InstantiationException e) {\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Error in instantiating Custom DialogFragment class \", e);\n }\n } catch (IllegalAccessException e){\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Unable to call newInstance() on Custom DialogFragment class \", e);\n }\n } catch (ClassNotFoundException e){\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Custom DialogFragment class not found \", e);\n }\n }\n }\n newNotification.customize(context, campaignId, template);\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Preparing the campaign to show...\");\n }\n if(ZeTarget.currentActivity==currentActivity) {\n //Log.i(TAG, \"same Activity before In App Promotion launched\");\n// long lastShown = getSharedPreferenceValueByKey(Constants.KEY_IN_APP_LAST_SHOWN_TIME);\n// long nowMS = System.currentTimeMillis();\n// if(lastShown>0&&(nowMS-lastShown<Constants.Z_TIMEOUT_BETWEEN_IN_APP)){\n// return;\n// }\n\n //showingPromotion.set(true);\n if(ZeTarget.isDebuggingOn()) {\n Log.d(TAG, \"Found one In App Campaign, lets show it if there is not already being shown\");\n }\n if(!showingPromotion.getAndSet(true)){\n if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"Showing In App campaign...\");\n }\n newNotification.show(ft, \"dialog\");\n }\n\n }else{\n if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"Activity changed so could not show In App Campaign\");\n }\n //Log.i(TAG,\"Activity changed so dropping from launching In App Promotion\");\n }\n }\n });\n }\n catch (Exception e){\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Error while showing promotion \",e);\n }\n }\n\n }", "public Medication(){\n medName = \"\";\n }", "public void addHistoryPatientRecords(int visit_id, int patient_id, String usersellectedDate, String follow_up_dates, String daysSel, String fowSel, String monthSel, String prescriptionImgPath, String clinical_note, String added_on_date, String visit_date, String doc_id, String doc_mem_id, String flag, String addedTime, String patientInfoType, String added_by, String action,\n String weight, String pulse, String bphigh, String bplow, String temparature, String sugar, String symptoms, String dignosis, String tests, String drugs, String strHeight, String bmi, String strSugarFasting, String referedBy, String referedto, String rec_source) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate);\n values.put(FOLLOW_UP_DATE, follow_up_dates);\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n\n values.put(MONTHS, monthSel);\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(ADDED_ON, added_on_date);\n values.put(VISIT_DATE, visit_date);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_TIME, addedTime);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ACTION, action);\n values.put(ADDED_BY, added_by);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n values.put(SUGAR, sugar);\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n values.put(TESTS, tests);\n values.put(DRUGS, drugs);\n values.put(HEIGHT, strHeight);\n values.put(BMI, bmi);\n values.put(SUGAR_FASTING, strSugarFasting);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedto);\n values.put(RECORD_SOURCE, rec_source);\n\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n // Log.e(\"id\",\" \"+id);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "@Override\n public void onActionClicked(View view, Card card) {\n AlertDialog.Builder mbuilder=new AlertDialog.Builder(EventHandler.this);\n View mView=getLayoutInflater().inflate(R.layout.event_registerinflate,null);\n final EditText mContact=(EditText)mView.findViewById(R.id.editContact);\n Button btnEvent=(Button)mView.findViewById(R.id.btnregisterEvent);\n\n final int PERMISSION_REQUEST_CODE = 1;\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n\n if (checkSelfPermission(Manifest.permission.SEND_SMS)\n == PackageManager.PERMISSION_DENIED) {\n\n Log.d(\"permission\", \"permission denied to SEND_SMS - requesting it\");\n String[] permissions = {Manifest.permission.SEND_SMS};\n\n requestPermissions(permissions, PERMISSION_REQUEST_CODE);\n\n }\n }\n\n\n btnEvent.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String myNum=mContact.getText().toString().trim();\n String myMsg= \"You successfully registered to \" +eh.getName()+\" which is to be conducted on\"+\" \"+eh.getDate();\n if(myNum==null || myNum.equals(\"\")){\n Toast.makeText(EventHandler.this, \"Field cant be Empty\", Toast.LENGTH_SHORT).show();\n }\n else if(TextUtils.isDigitsOnly(myNum)){\n SmsManager smsManager=SmsManager.getDefault();\n smsManager.sendTextMessage(myNum,null,myMsg,null,null);\n Toast.makeText(EventHandler.this, \"Registration message Sent\", Toast.LENGTH_SHORT).show();\n\n }\n else{\n Toast.makeText(EventHandler.this, \"Please Enter Integer only\", Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n mbuilder.setView(mView);\n AlertDialog dialog=mbuilder.create();\n dialog.show();\n\n\n }", "@Override\r\n\tpublic void patientDisease() {\n\t\t\r\n\t\tSystem.out.println(\"Here I have attached the patients information\");\r\n\t\t\r\n\t}", "private void createNotification() {\n\t\tIntent notifyIntent = new Intent(this, BirthdayActivity.class);\r\n\t\t// Sets the Activity to start in a new, empty task\r\n\t\tnotifyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t// Creates the PendingIntent\r\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(this,\r\n\t\t\t\t(int) System.currentTimeMillis(), notifyIntent,\r\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tNotificationManagerUtil notificationManagerUtil = NotificationManagerUtil\r\n\t\t\t\t.getInstance();\r\n\t\tnotificationManagerUtil.createNotifications(this, 1, \"Message\",\r\n\t\t\t\tpendingIntent);\r\n\t}", "private void getDonationData() {\n\n if (UserManager.getToken(this) != null) {\n\n RequestManager.getDonationData(UserManager.getToken(this)).subscribe(new Observer<Result<DonationData>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<DonationData> donationDataResult) {\n\n Gson gson = new Gson();\n String donationDataGson = gson.toJson(donationDataResult.getData());\n UserManager.setDonationData(donationDataGson, SignInActivity.this);\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n }\n\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n ml = getSharedPreferences(\"musicList\", Context.MODE_PRIVATE);\n Intent receivem = getIntent();\n\n received = receivem.getIntExtra(\"MUS\",0);\n\n if(received==1)\n {\n MusKey=\"MUSICONE\";\n\n }\n\n if(received==2)\n {\n MusKey=\"MUSICTWO\";\n Toast.makeText(getApplicationContext(), \"Its shit\",\n Toast.LENGTH_SHORT).show();\n\n }\n if(received==3)\n {\n MusKey=\"MUSICTHREE\";\n }\n if(received==4)\n {\n MusKey=\"MUSICFOUR\";\n }\n\n if(received==9)\n {\n MusKey=\"EASYMUSIC\";\n }\n init_phone_music_grid();\n }", "public static void AddMedicineRequest( Medicine medicine) throws IOException\n {\n try (FileWriter writer = new FileWriter(\"MedicineRequest.txt\", true)) {\n \n writer.write(medicine.getMedicine() );\n writer.write(System.getProperty(\"line.separator\"));\n writer.close();\n } \n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n gerarNotificacaoTomarRemedio(context, new Intent(context , MainActivity.class));\n }", "public com.google.protobuf.ByteString\n getIdMedicationBytes() {\n java.lang.Object ref = idMedication_;\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 idMedication_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void gatherData(View v) {\n\tfinal Dialog dialog = new Dialog(this);\n\tdialog.setContentView(R.layout.dialog_data);\n\tdialog.setTitle(\"Patient Data Input\");\n\n\tfinal DatePicker datePicker = (DatePicker) dialog\n\t\t.findViewById(R.id.datePicker1);\n\tdatePicker.init(Calendar.getInstance().get(Calendar.YEAR), Calendar\n\t\t.getInstance().get(Calendar.MONTH),\n\t\tCalendar.getInstance().get(Calendar.DAY_OF_MONTH), null);\n\n\tButton dialogButton = (Button) dialog.findViewById(R.id.done_button);\n\tdialogButton.setOnClickListener(new OnClickListener() {\n\t @Override\n\t public void onClick(View v) {\n\t\tif (((EditText) dialog.findViewById(R.id.patient_name_field))\n\t\t\t.getText().toString() == null\n\t\t\t& ((EditText) dialog.findViewById(R.id.heathcard_field))\n\t\t\t\t.getText().toString() == null) {\n\t\t ((EditText) dialog.findViewById(R.id.patient_name_field))\n\t\t\t .setHint(\"Name missing\");\n\t\t ((EditText) dialog.findViewById(R.id.heathcard_field))\n\t\t\t .setHint(\"Health card number missing\");\n\t\t personalData = null;\n\t\t} else {\n\t\t Date date;\n\t\t try {\n\t\t\tdate = new SimpleDateFormat(\"yyyy-MM-dd\",\n\t\t\t\tLocale.ENGLISH).parse(datePicker.getYear()\n\t\t\t\t+ \"-\" + datePicker.getMonth() + \"-\"\n\t\t\t\t+ datePicker.getDayOfMonth());\n\t\t\tpersonalData = new Data(((EditText) dialog\n\t\t\t\t.findViewById(R.id.patient_name_field))\n\t\t\t\t.getText().toString(), date, ((EditText) dialog\n\t\t\t\t.findViewById(R.id.heathcard_field)).getText()\n\t\t\t\t.toString());\n\t\t } catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t }\n\n\t\t}\n\t\tdialog.dismiss();\n\t }\n\t});\n\tdialog.show();\n\n }", "private void setSaveDesignationInformation(){\n designationName=tvDesignationName.getText().toString();\n specialization=tvSpecialization.getText().toString();\n Log.d(TAG,\"PRINTED DESIGNATION INFO >>> \" + designationName + \" \" + specialization);\n\n //show loader\n PrescriptionUtils.showProgressDialog(context);\n Call<MessegeCollection> getInfo = prescriptionApi.insertDocDesignation(doctor_id, designationName, specialization);\n getInfo.enqueue(new Callback<MessegeCollection>() {\n @Override\n public void onResponse(Call<MessegeCollection> call, Response<MessegeCollection> response) {\n try {\n List<Message> info = response.body().data;\n Log.d(TAG, \"DESIGNATION INFO >>: \" + info);\n if (info.get(0).getMsgString().equals(\"1\")){\n Log.d(TAG,\"It's Working!!!\");\n Intent intent = new Intent(context, DoctorProfileActivity.class);\n intent.putExtra(\"tab\",\"2\");\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }else {\n Toast.makeText(context, \"Data Not Save!!!\", Toast.LENGTH_SHORT).show();\n }\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n }catch (Exception e){\n Log.d(TAG,\"list is null\");\n e.printStackTrace();\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n AlartFactory.showAPInotResponseWarn(context);\n }\n }\n\n @Override\n public void onFailure(Call<MessegeCollection> call, Throwable t) {\n //Toast.makeText(context, t.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(TAG,t.getMessage());\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n AlartFactory.showWebServieErrorDialog(context, \"Sorry !!!!\", \"Web Service is not running please contract with development team\", false);\n }\n });\n }", "private static void createNotification(Activity a, CustomFBProfile prof) {\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(a)\n .setSmallIcon(R.drawable.acba)\n .setContentTitle(\"New Message\")\n .setTicker(\"New Message!!\");\n NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();\n mBuilder.setStyle(inboxStyle);\n mBuilder.setVibrate(new long[]{2000, 500, 500, 250});\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n mBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));\n mBuilder.setAutoCancel(true);\n\n// Creates an explicit intent for an Activity in your app\n Intent resultIntent = new Intent(a, LoginActivity.class);\n\n// The stack builder object will contain an artificial back stack for the\n// started Activity.\n// This ensures that navigating backward from the Activity leads out of\n// your application to the Home screen.\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(a);\n// Adds the back stack for the Intent (but not the Intent itself)\n stackBuilder.addParentStack(LoginActivity.class);\n// Adds the Intent that starts the Activity to the top of the stack\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager =\n (NotificationManager) a.getSystemService(Context.NOTIFICATION_SERVICE);\n// mId allows you to update the notification later on.\n mNotificationManager.notify(1, mBuilder.build());\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n String payload = null;\n if (intent != null && NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {\n Parcelable[] rawMessages = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n if (rawMessages != null) {\n NdefMessage[] messages = new NdefMessage[rawMessages.length];\n messages[0] = (NdefMessage) rawMessages[0];\n NdefRecord rec = messages[0].getRecords()[0];\n payload = new String(rec.getPayload());\n //Toast.makeText(getApplicationContext(),payload,Toast.LENGTH_LONG).show();\n ServerComm serverComm = new ServerComm();\n String result=\"\";\n try {\n result = serverComm.execute(\"1\", MainActivity.user.getUserId(), MainActivity.user.getPassword(), payload).get();\n }catch (InterruptedException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }catch (ExecutionException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(result==null){\n Toast.makeText(getApplicationContext(),\"Check your Internet Connection\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(result.equalsIgnoreCase(\"successful\")){\n Toast.makeText(getApplicationContext(),\"Attendance Registered successfully!\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }", "public void dailog_son() {\n\n\n LayoutInflater inflater = (LayoutInflater) getSystemService(MainActivity.this.LAYOUT_INFLATER_SERVICE);\n final View formElementsView = inflater.inflate(R.layout.dailog,\n null, false);\n\n // You have to list down your form elements\n\n\n final RadioGroup genderRadioGroup = (RadioGroup) formElementsView\n .findViewById(R.id.genderRadioGroup);\n\n final EditText number = (EditText) formElementsView\n .findViewById(R.id.radioedit);\n\n // the alert dialog\n new AlertDialog.Builder(MainActivity.this).setView(formElementsView)\n .setTitle(\"Select slot And Give Number\")\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n\n }\n\n\n })\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @TargetApi(11)\n public void onClick(DialogInterface dialog, int id) {\n\n String slot = \"\";\n\n /*\n * Detecting whether the checkbox is checked or not.\n */\n\n\n /*\n * Getting the value of selected RadioButton.\n */\n // get selected radio button from radioGroup\n int selectedId = genderRadioGroup\n .getCheckedRadioButtonId();\n\n // find the radiobutton by returned id\n RadioButton selectedRadioButton = (RadioButton) formElementsView\n .findViewById(selectedId);\n\n String mobile_no = number.getText().toString();\n try {\n\n slot = selectedRadioButton.getText().toString();\n } catch (NullPointerException e) {\n e.printStackTrace();\n Toast.makeText(MainActivity.this, \"select radio button\", Toast.LENGTH_SHORT).show();\n }\n\n if (mobile_no.length() == 10 && slot != null && slot.length() > 0) {\n db.opendb();\n String mnoo = db.get_Mobileno();\n String passs = db.get_PASS();\n if (mnoo != null && mnoo.length() > 0 && passs != null && passs.length() > 0) {\n sendSMS(mnoo, \"SN\" + slot + \" \" + passs + \" \" + mobile_no);\n Toast.makeText(MainActivity.this, mnoo + \" SN\" + slot + \" \" + passs + \" \" + mobile_no, Toast.LENGTH_LONG).show();\n }\n //Toast.makeText(MainActivity.this, slot + \" \" + mobile_no, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(MainActivity.this, \"give 10 digit mobile no\", Toast.LENGTH_SHORT).show();\n }\n\n /*\n * Getting the value of an EditText.\n */\n\n\n //showToast(toastString);\n\n dialog.cancel();\n }\n\n }).show();\n\n\n /* AlertDialog.Builder alertdialogbuilder = new AlertDialog.Builder(MainActivity.this);\n\n\n alertdialogbuilder.setTitle(\"Select A slot \");\n\n\n alertdialogbuilder.setItems(value, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n slot = Arrays.asList(value).get(which);\n //slot=liii.get(which);\n\n db.opendb();\n String mnoo = db.get_Mobileno();\n String passs = db.get_PASS();\n if (mnoo != null && mnoo.length() > 0 && passs != null && passs.length() > 0) {\n\n\n // sendSMS(mnoo, \"SN\" + slot + \" \" + passs);\n // Toast.makeText(getApplicationContext(), no, Toast.LENGTH_LONG).show();\n }\n // textview.setText(selectedText);\n\n }\n });\n\n AlertDialog dialog = alertdialogbuilder.create();\n dialog.setMessage(\"Enter Password\");\n final EditText input = new EditText(MainActivity.this);\n dialog.show();*/\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void requestPermissionMicrofono() {\n //shouldShowRequestPermissionRationale es verdadero solamente si ya se había mostrado\n //anteriormente el dialogo de permisos y el usuario lo negó\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.RECORD_AUDIO)) {\n } else {\n //si es la primera vez se solicita el permiso directamente\n requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO},\n MY_WRITE_EXTERNAL_STORAGE);\n }\n }", "private void cargarRegistroMedicamentos() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/registro_medicamentos.zul\", \"REGISTRO DE MEDICAMENTOS\",\r\n\t\t\t\tparametros);\r\n\t}", "public void loadIMEI() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE)\n != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_PHONE_STATE)) {\n// get_imei_data();\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE},\n MY_PERMISSIONS_REQUEST_READ_PHONE_STATE);\n }\n } else {\n\n TelephonyManager mngr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n mImei.setText(mngr.getDeviceId());\n }\n }", "@Override\n public void onSuccess(String message) {\n Toast.makeText(getApplicationContext(), \"Successfully shared with \" + message , Toast.LENGTH_LONG).show();\n //TODO SET THE DATA FOR SHARED FRAGMENT - READ FROM FB HERE AND ONSUCCESS SET THE DATA.\n\n\n\n }", "public void mo5976m() {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.android.activity.SoundRecorder.MARKRECEIVER\");\n registerReceiver(this.f5430ma, intentFilter);\n }", "public void mo5977n() {\n this.f5394N.postDelayed(new C1273Qa(this, new String[]{\"android.permission.RECORD_AUDIO\", \"android.permission.WRITE_EXTERNAL_STORAGE\"}), 300);\n }", "@Override\r\n\tpublic void OnMicTakeNotify(cmdNotifyTakeMic micinfo) {\n\t\tif(micinfo != null)\r\n\t\t\tMicTakeNotify(String.valueOf(micinfo.getTempid()),micinfo.getUniqueid());\r\n\t}", "protected void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \tsetContentView(R.layout.activity_new_patient);\n\tsymptoms = new HashMap<Date, String>();\n\tvitalSigns = new HashMap<Date, VitalSigns>();\n }", "private void showResults() {\n verifyFCMToken(this);\n progressDialog.cancel();\n Toast.makeText(RegisterActivity.this, \"Welcome!\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }" ]
[ "0.6026738", "0.58189374", "0.5540429", "0.55242425", "0.5464016", "0.5383283", "0.53355926", "0.5295995", "0.5181638", "0.51697415", "0.5167282", "0.5165625", "0.51652324", "0.5163774", "0.5158421", "0.5138063", "0.5089824", "0.50667524", "0.5065284", "0.5061617", "0.50614846", "0.5052241", "0.5036575", "0.50217843", "0.5013168", "0.50098586", "0.5008526", "0.5001329", "0.49966002", "0.49901518", "0.49785703", "0.49759716", "0.49603713", "0.49582323", "0.4949409", "0.49392965", "0.49366847", "0.49352044", "0.4926087", "0.49235868", "0.49219397", "0.49155256", "0.49154907", "0.48965207", "0.4893596", "0.48924097", "0.48782143", "0.48768842", "0.48730135", "0.48679718", "0.4866801", "0.4851029", "0.4846626", "0.4838466", "0.48381063", "0.4832429", "0.4823997", "0.48202404", "0.48196247", "0.48178762", "0.4810097", "0.4792179", "0.47887325", "0.47880545", "0.47844926", "0.47670454", "0.47667477", "0.47641718", "0.4760068", "0.4755104", "0.4751619", "0.47416127", "0.4739826", "0.47325367", "0.47250167", "0.4724326", "0.47228467", "0.47225055", "0.4719068", "0.47151366", "0.47138765", "0.471162", "0.4711004", "0.47096908", "0.47028202", "0.46979192", "0.4695863", "0.46954817", "0.46935245", "0.46929887", "0.46929058", "0.469172", "0.46908227", "0.46905667", "0.46883553", "0.4683886", "0.4682973", "0.46817032", "0.46732363", "0.4672836" ]
0.54415756
5
TODO: save to database
@Override public void onClick(View v) { Toast.makeText(v.getContext(), "Registration success", Toast.LENGTH_LONG).show(); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void save()\n {\n \n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\n public void Save() {\n\t \n }", "@Override\n public void save() {\n\n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "public void save() {\t\n\t\n\t\n\t}", "@Override\n public void saveValues() {\n \n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "private void saveData() {\n }", "void save();", "void save();", "void save();", "public void save();", "public void save();", "public void save();", "public void save();", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public void save() {\n }", "@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "@Override\n public boolean save()\n {\n return false;\n }", "public void saveToDB() {\n \twipeDB();\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tfor (int i = 0; i < wallpapers.size(); i++) {\n\t\t\tvalues.put(EventDataSQLHelper.NODE, nodeToString(wallpapers.get(i)));\n\t\t\ttry {\t\t\t\t\n\t\t\t\tdb.insertOrThrow(EventDataSQLHelper.TABLE, null, values);\n\t\t\t\tLog.d(\"AddToDB\", nodeToString(wallpapers.get(i)));\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLog.d(\"AddToDB\", \"\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\tdb.close();\n }", "@Override\r\n\tpublic void persist() {\n\t}", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "@Override\n public void persist() {\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "private void saveAT() \n {\n // get DatabaseConnector to interact with the SQLite database\n\t AnimalDatabase db = new AnimalDatabase(this);\n\t AnimalList al = new AnimalList (db);\n\t \n // insert the contact information into the database\n al.Update(id, amount, comments);\n\n }", "@Override\n public int save( Mention obj ) {\n return 0;\n }", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void saveExtraData() {}", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "private void updateDB() {\n }", "@Override\n String save() {\n return \"\";\n }", "private void save() {\n Saver.saveTeam(team);\n }", "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "public void save() {\n\t\tList<EmbeddedEntity> embeddedEntities = new ArrayList<>();\n\t\tfor (FeedItem item : items)\n\t\t\tembeddedEntities.add(item.getEntity());\n\t\tEntity feed = new Entity(getKey());\n\t\tfeed.setUnindexedProperty(\"items\", embeddedEntities); //NOI18N\n\t\tdatastore.put(feed);\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "private void saveFunction() {\n }", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "public int save() {\n\t\treturn 0;\n\t}", "public static void save()\n\t{\n writeMap();\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "protected abstract void doSave();", "public boolean save();", "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "@Override\n\tpublic String save() throws Exception {\n\t\treturn null;\n\t}", "void save(Bill bill);", "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n MaplePet a2;\n if (!a2.a) {\n return;\n }\n try {\n druidPooledConnection2 = DBConPool.getInstance().getDataSource().getConnection();\n try {\n preparedStatement = druidPooledConnection2.prepareStatement(ConcurrentEnumMap.ALLATORIxDEMO(\";\\t*\\u0018:\\u001cN)\\u000b-\\u001dy=\\u001c:y\\u00008\\u0003<NdNfBy\\u0002<\\u0018<\\u0002ySyQuN:\\u00026\\u001d<\\u0000<\\u001d*NdNfBy\\b,\\u00025\\u0000<\\u001d*NdNfBy\\u001d<\\r6\\u0000=\\u001dySyQuN?\\u00028\\t*NdNfBy\\u000b!\\r5\\u001b=\\u000b=NdNfNuN*\\u001e<\\u000b=NdNfBy\\f,\\b?\\u001d2\\u00075\\u00020\\nySyQuN:\\u000f7>0\\r2;)NdNfBy\\u001d2\\u00075\\u00020\\nySyQy9\\u0011+\\u000b+y\\u001e<\\u001a0\\nySyQ\"));\n try {\n int n2;\n PreparedStatement preparedStatement2 = preparedStatement;\n PreparedStatement preparedStatement3 = preparedStatement;\n preparedStatement.setString(1, a2.h);\n preparedStatement3.setByte(2, a2.e);\n preparedStatement3.setShort(3, a2.B);\n preparedStatement2.setByte(4, a2.H);\n preparedStatement2.setInt(5, a2.J);\n preparedStatement.setShort(6, a2.k);\n stringBuilder = new StringBuilder();\n int n3 = n2 = 0;\n while (n3 < a2.d.length) {\n stringBuilder.append(a2.d[n2]);\n stringBuilder.append(KoreanDateUtil.ALLATORIxDEMO(\"V\"));\n n3 = ++n2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable2;\n if (preparedStatement != null) {\n try {\n preparedStatement.close();\n throwable2 = throwable;\n throw throwable2;\n }\n catch (Throwable throwable3) {\n throwable.addSuppressed(throwable3);\n }\n }\n throwable2 = throwable;\n throw throwable2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable4;\n if (druidPooledConnection2 != null) {\n try {\n druidPooledConnection2.close();\n throwable4 = throwable;\n throw throwable4;\n }\n catch (Throwable throwable5) {\n throwable.addSuppressed(throwable5);\n }\n }\n throwable4 = throwable;\n throw throwable4;\n }\n }\n catch (SQLException sQLException) {\n FilePrinter.printError(ConcurrentEnumMap.ALLATORIxDEMO(\"\\u0014\\u000f)\\u0002<><\\u001aw\\u001a!\\u001a\"), sQLException, KoreanDateUtil.ALLATORIxDEMO(\"e\\u001b`\\u001fB\\u0015R\\u0018\"));\n return;\n }\n {\n String string = stringBuilder.toString();\n PreparedStatement preparedStatement4 = preparedStatement;\n PreparedStatement preparedStatement5 = preparedStatement;\n PreparedStatement preparedStatement6 = preparedStatement;\n String string2 = string;\n preparedStatement6.setString(7, string2.substring(0, string2.length() - 1));\n preparedStatement6.setInt(8, a2.ALLATORIxDEMO);\n preparedStatement5.setInt(9, a2.I);\n preparedStatement5.setShort(10, a2.K);\n preparedStatement4.setInt(11, a2.M);\n preparedStatement4.setInt(12, a2.D);\n preparedStatement4.executeUpdate();\n a2.a = false;\n if (preparedStatement == null) break block17;\n druidPooledConnection = druidPooledConnection2;\n }\n preparedStatement.close();\n break block18;\n }\n druidPooledConnection = druidPooledConnection2;\n }\n if (druidPooledConnection == null) return;\n druidPooledConnection2.close();\n }", "private void saveGame(){\n\t\t\n\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveInformation(){\n market.saveInformationOfMarket();\n deckProductionCardOneBlu.saveInformationOfProductionDeck();\n deckProductionCardOneGreen.saveInformationOfProductionDeck();\n deckProductionCardOneViolet.saveInformationOfProductionDeck();\n deckProductionCardOneYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeBlu.saveInformationOfProductionDeck();\n deckProductionCardThreeGreen.saveInformationOfProductionDeck();\n deckProductionCardThreeYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoBlu.saveInformationOfProductionDeck();\n deckProductionCardTwoGreen.saveInformationOfProductionDeck();\n deckProductionCardTwoViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoYellow.saveInformationOfProductionDeck();\n\n\n }", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "public void save()\n\t{\n\t\tfor(PlayerData pd : dataMap.values())\n\t\t\tpd.save();\n\t}", "@Override\n public ContentValues db_save(ContentValues values) {\n return null;\n }", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "@Override\n\tpublic int save(CursoAsignatura ca) {\n\t\treturn 0;\n\t}", "public boolean save() {\n return false;\n }", "@Override\r\n\tpublic int save() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }", "void setDataFromDBContent() {\n\n }", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "public void saveBorrowings() {\n\t}", "@Override\n public void saveChildrenData() {\n boats.forEach(boatDAO::save);\n }", "@Override\n\tpublic void doSaveAs() {\n\n\t}", "public Saving() {\n super();\n }", "private Boolean persistRecords() {\n\t\t//Declarations\n\t\tBoolean persisted = false;\n\t\t\n\t\ttry{\t\t\t\t\t\n\t\t\t//Create the DB Handler\n\t\t\tDBHandler dbHandler = new DBHandler();\t\t\t\n\t\t\tDate date = new Date();\n\t\t\t\t\t\t\n\t\t\t//Set the updated time\n\t\t\t_medicalData.setUpdatedOn(date.toString());\n\t\t\t\n\t\t\t//Store the data to data store\n\t\t\tpersisted = dbHandler.storeData(_medicalData);\t\t\t\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tpersisted = false;\n\t\t}\n\t\t\n\t\treturn persisted;\t\t\n\t}", "private void saveCurrentObject() {\n\t}", "public boolean saveDatabase() {\n\t\ttry {\n\t\t\txmlp.writeToXMLFile(db, totalMembers);\n\t\t\treturn reloadDatabase(); \n\t\t} catch (ParserConfigurationException | TransformerException e) {\n\t\t\tSystem.err.println(e.toString());\n\t\t\treturn false;\n\t\t}\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "public void saveResults();", "private void persistTable() {\n\n final EditText edit = findViewById(editId);\n final EditText edit2 = findViewById(editId2);\n String fileName = tableId;\n try {\n FileOutputStream fos = getBaseContext().openFileOutput(fileName, Context.MODE_PRIVATE);\n ObjectOutputStream os = new ObjectOutputStream(fos);\n os.writeObject(table);\n os.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n edit.setText(table.getSerializedProducts());\n if (lastProductAdded != null)\n edit2.setText(lastProductAdded.getName());\n else\n edit2.setText(\"\");\n\n productNames = table.getProductNames();\n currentlySelectedProduct=0;\n\n refreshPrice();\n\n if (table.map.size() == 0) {\n deleteFile(tableId);\n return;\n }\n }", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}", "@Override\n public void save(ArrayList<League> leagues) {\n\n }", "public void saveState() { }", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "@Override\n\tpublic void commit() {\n\n\t}", "private void saveDBValues() {\r\n this.pl_DB.setParam(\"Hostname\", this.rhostfield.getText());\r\n this.pl_DB.setParam(\"Port\", this.rportfield.getText());\r\n this.pl_DB.setParam(\"Username\", this.ruserfield.getText());\r\n\r\n String pw = \"\";\r\n for (int i = 0; i < this.rpasswdfield.getPassword().length; i++) {\r\n pw += this.rpasswdfield.getPassword()[i];\r\n }\r\n this.pl_DB.setParam(\"Password\", pw);\r\n this.pl_DB.setParam(\"Database\", this.rdatabasefield.getText());\r\n this.pl_DB.setParam(\"nodeTableName\", this.rtablename1efield.getText());\r\n this.pl_DB.setParam(\"nodeColIDName\", this.colnodeIdfield.getText());\r\n this.pl_DB.setParam(\"nodeColLabelName\", this.colnodeLabelfield.getText());\r\n this.pl_DB.setParam(\"edgeTableName\", this.rtablename2efield.getText());\r\n this.pl_DB.setParam(\"edgeCol1Name\", this.coledge1field.getText());\r\n this.pl_DB.setParam(\"edgeCol2Name\", this.coledge2field.getText());\r\n this.pl_DB.setParam(\"edgeColWeightName\", this.colweightfield.getText());\r\n this.pl_DB.setParam(\"resultTableName\", this.otablenamefield.getText());\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }", "@Override\n\t\tpublic void finishIteration() {\n\t\t\trailroad.save();\n\t\t\tSystem.out.println(\"SAVING!\");\n\t\t\tsuper.finishIteration();\n\t\t}", "public void save() {\n ProductData.saveData(tree);\n }", "protected void saveRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Guarda objecto\r\n\t\tobjectDao.save(object);\r\n\t\t// Guarda registros de relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\t// Asigna Id padre\r\n\t\t\trelco.getId().setDconsecnk(object.getDconsecnk());\r\n\t\t\tsedrelcoDao.save(relco);\r\n\t\t}\r\n\t}", "private boolean savingData(Track track){\n return sqLiteController.SAVE_TRACK_DATA(track);\n }", "private synchronized void zzlx() {\n try {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"castSessionId\", this.zzTp);\n jSONObject.put(\"playerTokenMap\", new JSONObject(this.zzTn));\n this.zztB.edit().putString(\"save_data\", jSONObject.toString()).commit();\n } catch (JSONException e) {\n zzQW.zzf(\"Error while saving data: %s\", e.getMessage());\n }\n return;\n }", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "private static List<Exam> readWriteData() throws Exception \r\n\t{\n\t\t\r\n\t\tList<Exam> exams = examDao.queryForAll();\r\n\t\treturn exams;\r\n\t}", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }" ]
[ "0.6876499", "0.68601084", "0.68601084", "0.6818979", "0.669026", "0.669026", "0.66315985", "0.6603755", "0.6579247", "0.6544743", "0.6520846", "0.6390849", "0.6255686", "0.6227085", "0.6227085", "0.6227085", "0.62170774", "0.62170774", "0.62170774", "0.62170774", "0.6201236", "0.60028636", "0.59911126", "0.58897126", "0.5871094", "0.58595824", "0.5832455", "0.5800267", "0.5792955", "0.5769418", "0.5768926", "0.576768", "0.576768", "0.57377595", "0.57136065", "0.5710713", "0.5701943", "0.5698295", "0.56843424", "0.567739", "0.5675428", "0.5662543", "0.5661868", "0.56604606", "0.56368506", "0.5629124", "0.56249845", "0.5622622", "0.5620426", "0.5618743", "0.5597285", "0.5581116", "0.55639344", "0.55566245", "0.5554055", "0.55488604", "0.5538152", "0.55309135", "0.5522803", "0.55121285", "0.5511154", "0.5506495", "0.55058116", "0.5504848", "0.5503552", "0.54900175", "0.5474354", "0.54680157", "0.54640967", "0.5456908", "0.54546666", "0.54526603", "0.5448046", "0.54467666", "0.54458106", "0.54382366", "0.5436147", "0.5436131", "0.5432552", "0.54231286", "0.5421138", "0.5418001", "0.54039836", "0.54019547", "0.5401583", "0.5397507", "0.53940845", "0.53858733", "0.53691894", "0.5366542", "0.5364518", "0.5364242", "0.53631073", "0.53613794", "0.5360658", "0.53596187", "0.5354917", "0.53535527", "0.53502357", "0.5346311", "0.5333159" ]
0.0
-1
/logic is like this here: if our number is any odd number, sum of each element of this number is even!!!(13 = 1+3(4); 15 = 1+5(6); if out number is any even number , sum of each elemant of this number is even also!! 20 = 2+0(2); 26 =2+6(8) and so on it is gonna continue: because of having limit 200000(not inclusive like( <=) just <) our loop(for) is gonna till this; and you can check any number(as a limit) to find final number by using program below: :)
public static void main(String[] args) { int n = 0; for(int i=0; i<100; i++){ if(i%2==1){ n =i; } else n =i; } System.out.println(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\t\tfor (int i = 15; i <= 35; i++) {\n\n\t\t\tif (i % 6 == 0) {\n\n\t\t\t\tcontinue;\n\n\t\t\t}\n\t\t\tSystem.out.print(i + \" \");\n\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int a = 15; a < 36; a++) {\n\t\t\tif (a % 2 == 0 && a % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.print(a + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int x = 0; x <= 10; x++) {\n\t\t\tif (x == 4) {\n\t\t\t\tSystem.out.println(\"I am stopping the loop\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(x + \" \");\n\t\t}\n\t\tSystem.out.print(\" \");\n\t\tfor (int y = 1; y <= 10; y++) {\n\t\t\tif (y == 4) {\n\t\t\t\tSystem.out.println(\"i am skipping the loop\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.print(y+\"-)\");\n\t\t\tSystem.out.println(\" i am inside the loop\");\n\t\t}\n\t\t/*\n\t\t * write a program that needs a range of integers(start and end point)\n\t\t * provided by a user and then from that range prints the sum of the even\n\t\t */\n\t\tSystem.out.println(\" \");\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"please write a min number\");\n\t\tint min=scan.nextInt();\n\t\tSystem.out.println(\"please write a max number\");\n\t\tint max=scan.nextInt();\n\t\t\n\t\tint sumEven=0;\n\t\tint sumOdd=0;\n\t\tfor(int n=min; n<max+1; n++) {\n\t\t\tif(n%2==0) {\n\t\t\t\tsumEven=sumEven+n;\n\t\t\t}else if(n%2!=0) {sumOdd=sumOdd+n;\n\t\t\t\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(sumEven+\" is sum of even numbers\");\n\t\tSystem.out.println(sumOdd+\" is sum of odd numbers\");\n\n}", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\nint n=s.nextInt();\nint a[]=new int[n];\nint x=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%2!=0)\n\t{\n\t\ta[x++]=i;\n\t}\n}\nint sum=0;\nsum=a[0];\nfor(int i=0;i<x;i++)\n{\n\tif((i+1)<x)\n\t{\n\tif(i%2==0)\n\t\tsum=sum+a[i+1];\n\telse\n\t\tsum=sum-a[i+1];\n\t}\n}\nSystem.out.println(sum);\n\t}", "public static void main(String[] args) {\r\n\tint a=1;\r\n\twhile(a>=1 && a<10) {\r\n\t\ta+=1;\r\n\t\tif(a%2==0) {\r\n\t\t\tSystem.out.println(\"\"+a);\r\n\t\t}\r\n\t}\r\n\tint max = 50;\r\n\tint add =0;\r\n\tfor(int s =0;s<=max;s+=1) {\r\n\t\tadd+= s;\r\n\t}\r\n\tSystem.out.println(\"\"+add);\r\n\t/*Adding up odd numbers 1-25\r\n\t * \r\n\t */\r\n\tint sum = 0;\r\n\tint c = 25;\r\n\tfor(int b=1 ;b<=c;b+=2) {\r\n\t\tsum+=b;\r\n\t\tSystem.out.println(\"\"+sum);\r\n\t}\r\n\t\r\n}", "private static long calc2(int max)\n {\n long sum = 1; // \"1\" is valid (1 + 1/1 = 2)\n boolean[] primes = PrimeUtils.isPrimeSoE(max + 1);\n\n // we skip odd values (1 + n/1 is even if n is odd)\n for (int n = 2; n <= max; n = n + 2) {\n // test special case: 1\n if (!primes[n + 1]) {\n continue;\n }\n int sqrt = (int) Math.sqrt(n);\n // skip squares\n if (sqrt * sqrt == n) {\n continue;\n }\n boolean flag = true;\n for (int d = 2; d <= sqrt; d++) {\n if (n % d != 0) {\n continue;\n }\n int e = n / d;\n if (!primes[d + e]) {\n flag = false;\n break;\n }\n }\n if (flag) {\n sum += n;\n // System.out.println(n);\n }\n }\n return sum;\n }", "public static int sumOfDoubleEvenPlace(long number){\r\n String numberLength = \"\"+number;\r\n int sum = 0;\r\n int check;\r\n for (int i = numberLength.length() -2; i >= 0 ; i = i-2) {\r\n String character = numberLength.substring(i,i+1);\r\n int subNumber = Integer.parseInt(character);\r\n check = subNumber * 2;\r\n int res = 0;\r\n if (check >= 10 ){\r\n res = getDigit(check);\r\n sum += res;\r\n }\r\n else\r\n sum += check;\r\n }\r\n return sum;\r\n }", "public static int sumOfDoubleEvenPlace(long number)\n\t{\n\t\tint sum = 0;\n\t\t//keep track of even places\n\t\tint evenPlace = 0;\n\t\twhile(number > 0)\n\t\t{\n\t\t\tevenPlace = (int) (number % 100);\n\t\t\tsum += getDigit((evenPlace / 10) * 2);\n\t\t\tnumber /= 100; \n\t\t}\n\t\tSystem.out.println(\"even sum is\" + sum);\n\t\treturn sum;\n\t}", "int main()\n{\n int a,t,sum1=0,sum2=0;\n cin>>a;\n while(a>0)\n {\n t=a%10;\n if(t%2!=0)\n {\n sum1=sum1+t;\n }\n else\n {\n sum2=sum2+t;\n }\n a=a/10;\n }\n (sum1==sum2)?cout<<\"Yes\":cout<<\"No\";\n return 0;\n}", "public static void main (String [] args) {\n \n // numbers that user input \n int number;\n\n // counters for odd and even numbers\n int oddCount = 0;\n int evenCount = 0;\n\n int totalNum = 0;\n\n // initialize largest odd and second largest odd number\n int largestOddNum = Integer.MIN_VALUE;\n int secondLargestOdd = Integer.MIN_VALUE;\n\n // initialize smallest even and second smallest even number\n int smallestEvenNum = Integer.MAX_VALUE;\n int secondSmallestEven = Integer.MAX_VALUE;\n \n // print out instructions\n System.out.println(\"Enter a series of integers; EOF to Quit.\");\n\n // Construct a Scanner that produces values scanned from standard input.\n Scanner input = new Scanner(System.in);\n \n //while there is more input(user has not hit EOF)\n while (input.hasNext()) {\n\n // read next integer\n number = input.nextInt(); \n \n // To find out whether this is a even number.\n if ( number % oddEvenDef == 0 ) { \n \n // Keeping track of how many even numbers have been encountered.\n evenCount++;\n\n /* To find out whether the even number input by user is less than\n default smallest even number.*/\n if ( number < smallestEvenNum) {\n\n secondSmallestEven = smallestEvenNum;\n smallestEvenNum = number;\n \n }\n\n /* To check whether number less than second smallest even number and\n not equal to smallest even number */\n else if(number < secondSmallestEven && number != smallestEvenNum) {\n secondSmallestEven = number;\n }\n \n }\n \n // To find out whether this is a odd number.\n if ( number % oddEvenDef != 0) {\n \n // Keeping track of how many even numbeers have been encountered.\n oddCount++;\n \n /* To find out whether the odd number input by user is bigger than\n default largest odd number. */ \n if ( number >largestOddNum ) {\n \n secondLargestOdd = largestOddNum;\n largestOddNum = number;\n }\n\n /* To check whether number bigger than second largest odd number\n and not equal to largest odd number.*/\n else if ( number > secondLargestOdd && number != largestOddNum) {\n secondLargestOdd = number;\n }\n }\n }\n\n // To make sure that user entered even number.\n if ( evenCount > 0 ) {\n\n System.out.println(\"Smallest distinct even number entered was \"\n + smallestEvenNum );\n \n }\n\n // To check whether second smallest even equal to MAX VALUE.\n if ( secondSmallestEven != Integer.MAX_VALUE) {\n System.out.println(\"Second smallest distinct even number entered was \"\n + secondSmallestEven);\n }\n \n // To make sure that user entered odd number.\n if ( oddCount > 0 ) {\n System.out.println(\"Largest distinct odd number entered was \" + largestOddNum );\n }\n \n // To check whether second largest odd equal to MIN VALUE.\n if ( secondLargestOdd != Integer.MIN_VALUE ) {\n System.out.println(\"Second largest distinct odd number entered was \"\n + secondLargestOdd);\n }\n\n // To find out how many numbers that user entered.\n totalNum = oddCount + evenCount;\n \n // To track if there is no numbers has been entered.\n if (totalNum == 0 ) {\n\n System.out.println(\"No numbers entered\");\n }\n }", "public static int sumOfOddPlace(long number)\n\t{\n\t\tint sum = 0;\n\t\twhile(number > 0)\n\t\t\t\n\t\t{\n\t\t\tsum += number % 10;\n\t\t\tnumber /= 100;\n\t\t}\n\t\tSystem.out.println(\"odd sum is\" + sum);\n\t\treturn sum;\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n \n boolean[] isNotPrime = new boolean[(N - 1 - 1) / 2 + 1];\n List<Integer> list = new ArrayList<Integer>();\n HashSet<Integer> primes = new HashSet<Integer>();\n \n list.add(2);\n primes.add(2);\n long sum = 0;\n for (int i = 1; i < isNotPrime.length; i++) {\n if (isNotPrime[i]) {\n continue;\n }\n list.add(2 * i + 1);\n primes.add(2 * i + 1);\n long nextIndex = (((long) 2 * i + 1) * (2 * i + 1) - 1) / 2;\n if (nextIndex >= isNotPrime.length) {\n continue;\n }\n for (int j = ((2 * i + 1) * (2 * i + 1) - 1) / 2; j < isNotPrime.length; j += 2 * i + 1) {\n isNotPrime[j] = true;\n }\n }\n int index = 0;\n while (index < list.size()) {\n int curPrime = list.get(index);\n index++;\n if (curPrime < 10) {\n continue;\n }\n int base = 1;\n while (curPrime / base > 9) {\n base *= 10;\n }\n int leftTruncate = curPrime;\n int rightTruncate = curPrime;\n boolean isValid = true;\n while (base != 1) {\n leftTruncate = leftTruncate - leftTruncate / base * base;\n rightTruncate = rightTruncate / 10;\n base /= 10;\n if (primes.contains(leftTruncate) == false || primes.contains(rightTruncate) == false) {\n isValid = false;\n break;\n }\n }\n if (isValid) {\n sum += curPrime;\n }\n }\n System.out.println(sum);\n scanner.close();\n }", "public int sumOfEvenNumbers()\n {\n // TODO: Return the sum of all the numbers which are even\n int sum = 0;\n for (int i =0; i< matrix.length; i++){\n for (int j = 0; j< matrix[0].length; j++){\n if(matrix[i][j]%2==0){\n sum+= matrix[i][j];\n }\n }\n }\n return sum;\n }", "public static void main(String[] args) {\n\tint array[]=new int[]{10,20,30,40,50};\t\r\n\t\tint sum=0;\r\n\t\t\r\n\t\tfor(int i=0;i<array.length;i++)\r\n\t\t{\r\n\t\t\tif(array[i]%2==0) //if(array[i]%2==1)\r\n\t\t\tsum=sum+array[i];\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(sum);\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n\t\r\n\t\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int T = scanner.nextInt();\n assert T >=1;\n assert T<=100000;\n long []numArr = new long[T];\n for(int i=0; i<T; i++) {\n numArr[i] = scanner.nextLong ();\n assert numArr[i]>=1;\n assert numArr[i]<=1000000000;\n }\n\n for (long num : numArr) {\n int i=1;\n long sum=0;\n while(i*3<num) {\n sum +=i*3;\n if(i*5<num && i%3!=0)\n sum +=i*5;\n i++;\n }\n System.out.println(sum);\n }\n }", "public long evenFiboSum()\n\t{\n\t\tlong a=1;\n\t\tlong b=1;\n\t\tlong c=a+b;\n\t\tlong sum=0;\n\t\twhile(c<N)\n\t\t{\n\t\t\t/**\n\t\t\t * Norml Fibonacci series\n\t\t\t * \n\t\t\tSystem.out.println(c);\n\t\t\ta=b;\n\t\t\tb=c;\n\t\t\tc=a+b;\n\t\t\t*/\n\t\t\tsum+=c;//adding the even values\n\t\t\ta=b+c;//finding next fibonacci\n\t\t\tb=a+c;//finding next fibonacci\n\t\t\tc=a+b;//finding next fibonacci ie., even\n\t\t}\n\t\treturn sum;\n\t}", "public static void calculateSum(List<Integer> numbers){\n int sum = 0;\n for(int i = 0; i < numbers.size(); i++){\n if(numbers.get(i) % 2 == 0){\n sum += numbers.get(i) * numbers.get(i);\n }\n }\n System.out.println(sum);\n\n }", "public static int Main()\n\t {\n\t\t int x;\n\t\t int j;\n\t\t int[] a = new int[16];\n\t\t x = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t int i = 1;\n\t\t int k = 0;\n\t\t while (x != -1)\n\t\t {\n\t\t\ta[i] = x;\n\t\t\ti++;\n\t\t if (x != 0)\n\t\t {\n\t\t\t k = i;\n\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\tint sum = 0;\n\t\t\t for (i = 1;i <= k;i++)\n\t\t\t {\n\t\t\t\t for (j = 1;j <= k ;j++)\n\t\t\t\t {\n\t\t\t\t if (a[i] == 2 * a[j])\n\t\t\t\t {\n\t\t\t\t\t sum++;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t\tSystem.out.print((sum - 1));\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\ti = 1;\n\t\t\t }\n\t\t\tx = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t }\n\t\t\treturn 0;\n\t }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nint n=sc.nextInt();\r\n\r\nList<Integer> l=new ArrayList<Integer>();\r\nfor(int i=1;i<=n;i++){\r\n\tif(i%2!=0)\r\n\t{\r\n\t\tl.add(i);\r\n\t}\r\n}\r\n\tSystem.out.println(l);\r\n\tint n1=l.get(0);\r\n\tfor(int i=0;i<l.size();i++){\r\n\tif(i%2==0)\r\n\t\r\n\t\tn1=n1-l.get(i);\r\n\t//System.out.println(s);\r\n\telse\r\n\t\tn1=n1+l.get(i);\r\n\t}\r\n\tSystem.out.println(n1+1);\r\n\t}", "public static void main(String[] args) {\n\n int sum = 0;\n int n = 5;\n\n for (int i = 0; i < n; i++) {\n sum = sum + (2 * i);\n }\n System.out.println(sum);\n // prints 20 which is sum of 1st 5 even numbers (0,2,4,6,8)\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] nums = {input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt()};\n\n //TODO: Write your code below\n int countEven = 0;\n for(int each : nums){\n if(each % 2 != 0){\n continue;\n }\n countEven++;\n }\n System.out.println(countEven);\n\n\n\n }", "private static int calculate(int limit) {\n\t\tPrimeGenerator primeGenerator = new PrimeGenerator((int) Math.floor(Math.sqrt(limit)) + 10);\n\n\t\t// BitSet is used to set a given number/index if it can be produced as p1^2 + p2^3 + p4^4\n\t\t// because there are numbers that can be produced more than once\n\t\tBitSet numbers = new BitSet(limit);\n\t\tnumbers.set(0, limit, false);\n\n\t\tList<Integer> list = primeGenerator.getPrimeList();\n\n\t\tfor (int a : list) {\n\t\t\tint powera = a * a;\n\t\t\tsearchB: for (int b : list) {\n\t\t\t\tint powerb = b * b * b;\n\t\t\t\tif (powera + powerb > limit) {\n\t\t\t\t\tbreak searchB;\n\t\t\t\t}\n\n\t\t\t\tsearchC: for (int c : list) {\n\t\t\t\t\tint powerc = c * c * c * c;\n\t\t\t\t\tint sum = powera + powerb + powerc;\n\t\t\t\t\tif (sum > limit) {\n\t\t\t\t\t\tbreak searchC;\n\t\t\t\t\t}\n\t\t\t\t\t// Set the index - the number is passed\n\t\t\t\t\tnumbers.set(sum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Set the number of set bit - the solution\n\t\treturn numbers.cardinality();\n\t}", "public static int sumOfOddPlace(long number){\r\n String numberLength = \"\"+number;\r\n\r\n int sum = 0;\r\n int check;\r\n for (int i = numberLength.length() -1; i >= 0 ; i = i-2) {\r\n String character = numberLength.substring(i, i + 1);\r\n int subNumber = Integer.parseInt(character);\r\n sum += subNumber;\r\n }\r\n return sum;\r\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint sum = 0;\n\t\tint count=1;\n\t\t\n\t\twhile(count<20) {\n\t\t\t\n\t\t\tsum= sum+count;\n\t\t\tSystem.out.println(\"current sum is: \" + sum + \"and\"+ \"count is: \" +count);\n\t\t\t//System.out.println(count);\n\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(\"total sum is: \"+sum);\n\t\t\n\t\t/*Birinin:\n\t\t * int firstNumber = 0;\n int secondNumber = 0;\n int total = 0;\n int tempNumber = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter first number: \");\n firstNumber = scan.nextInt();\n System.out.println(\"Enter second number: \");\n secondNumber = scan.nextInt();\n \n if ( firstNumber > secondNumber) {\n tempNumber = firstNumber;\n firstNumber = secondNumber;\n secondNumber = tempNumber;\n }\n int x = firstNumber;\n while (x <=secondNumber) {\n total = total + x++;\n }\n System.out.println(\"The total :\"+total);\n\t\t */\n\t\t\n\t\t\n\t\t// how do you get the the sum of number \n\t\t\t\t// starting from one till desiged number \n\t\t\t\t// user input 5 --> 1+2+3+4+5 = 15 ; \n\t\t\t\t\n\t\t\t//\tint sum = 0 ; \n\t\t\t\t// 1 + 0 = 1 \n\t\t\t\t// 2 + 1 = 3 \n\t\t\t\t// 3 + 3 = 6 \n\t\t\t\t// ..... \n\t\t\t\t//int count = 1 ; \n\t\t\t\t\n\t\t\t\t//while(count <=100) {\n\t\t\t\t\t\n\t\t\t\t//\tsum = sum + count ; \n\t\t\t\t//\tSystem.out.println(\"current sum :\"+sum + \" count is \"+ count );\n\t\t\t\t\t//System.out.println(count);\n\t\t\t\t\t//count++;\n\t\t\t\t//}\n\t\t\t\t\n\t\t\t\t//System.out.println(sum);\n\n\t\t\n\t}", "public static void main (String[] args){\n int a,no,sum=0;\nScanner s=new Scanner(System.in);\n//System.out.println(\"Enter any number: \");\nno=s.nextInt();\nwhile(no>0)\n{\na=no%10;\nno=no/10;\nsum=sum+a;\n}\nSystem.out.println(sum);\n}", "public static void main(String[] args) {\nint sum=0,a=0;\r\n\t\t\r\n\t\tfor(int i=2;i<=8;i++){\r\n\t\t\tif(i%2==0){\r\n\t\t\tsum=sum+i;\r\n\t\t\t\r\n\t\t\tSystem.out.println(sum);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint num,i=0,ch,sum=0,sum2=0,count=0,last=0;\n\t\tbutton = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter number \");\n\t\tnum= button.nextInt();\n\t\tSystem.out.println(\"1/Even number: \");\n\t\tSystem.out.println(\"2/Odd Number : \");\n\t\tSystem.out.println(\"3/print five of even\");\n\t\tSystem.out.println(\"4/The first 25% of numbers\");\n\t\tSystem.out.println(\"5/The last 75% of numbers\");\n\t\tch = button.nextInt();\n\t\tswitch(ch){\n\t\tcase 1: \n\t\t\ti=1;\n\t\t\tSystem.out.println(\"even\");\n\t\t\twhile(i<=num){\n\t\t\t\t\n\t\t\t\tif(i%2==0){\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\ti++;\n\t\t\t\t\tsum+=i;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The sum of even \" + sum);\n\t\t\t\tbreak;\n\t\tcase 2: \n\t\t\t\tSystem.out.println(\"The odd\");\n\t\t\t\twhile(i<=num){\n\t\t\t\t\tif(i%2!=0){\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\ti++;\n\t\t\t\t\tsum2+=i;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The sum of odd \" + sum2);\n\t\t\t\tbreak;\n\t\tcase 3: System.out.println(\"The last five of even \");\n\t\t\t\ti =1;\n\t\t\t\twhile(i<=num){\n\t\t\t\t\tif(count<5){\n\t\t\t\t\tif(i%2==0){\n\t\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tlast+=i;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The sum even last five \" + last);\n\t\t\t\tbreak;\n\t\tcase 4: System.out.println(\"The last 25% of numbers \");\n\t\t\t\tint n;\n\t\t\t\ti=1;\n\t\t\t\tn = (int) ((int) num * 0.25);\n\t\t\t\tSystem.out.println(n);\n\t\t\t\twhile(i<=n){\n\t\t\t\t\tif(i%2==0){\n\t\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\t//TV IS HARMING\n\t\t\t\tbreak;\n\t\tcase 5: \n\t\t\t\tn = 25;\n\t\t\t\t\tfor(int k = num - n; k<=num;k++){\n\t\t\t\t\t\tif(k%2==0){\n\t\t\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\tdefault : break;\n\t\t}\n\t\t\n\t}", "private void calcSum() {\n String numberVal = number.getText().toString();\n if (numberVal.isEmpty()) {\n numberVal = \"0\";\n }\n\n int count = Integer.parseInt(numberVal);\n\n if (count > 1e5) {\n Toast.makeText(\n this,\n \"The given number is too large for product of even items!\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n // array initialization\n int[] arr = new int[count];\n for (int i = 0; i < count; i++) {\n arr[i] = i + 1;\n }\n\n // calculate sum\n long sum = 0;\n for (int i = 0; i < count; i++) {\n sum += arr[i];\n }\n\n result.setText(String.format(\"The sum is %d\", sum)); ;\n }", "public void fibonacci()\n {\n int x = 1;\n int y = 2;\n\n final int LASTNUM = 4000000;\n int totalEven = 0;\n\n while(x < LASTNUM)\n {\n if(x % 2==0)\n {\n totalEven += x;\n }\n\n int z = x + y;\n x = y;\n y = z;\n }\n System.out.println(totalEven);\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tboolean[] primes = new boolean[1000000];\r\n\t\tArrayList<Integer> consecutivePrimeSums = new ArrayList<>();\r\n\t\tfor (int i = 0; i < primes.length; i++) {\r\n\t\t\tprimes[i] = true;\r\n\t\t}\r\n\t\tprimes[0] = false;//1 is not prime number\r\n\t\tfor (int p = 2; p*p <= 1000000; p++) {\r\n\t\t\tif (primes[p-1] == true) {\r\n\t\t\t\tfor (int q = p*p; q <= 1000000; q += p) {\r\n\t\t\t\t\tprimes[q-1] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Store the consecutive prime sums as we iterate through the boolean array\r\n\t\tconsecutivePrimeSums.add(0);\r\n\t\tint currentIndex = 1;\r\n\t\tfor (int j = 0; j < primes.length; j++) {\r\n\t\t\tif (primes[j] == true) {\r\n\t\t\t\tconsecutivePrimeSums.add(consecutivePrimeSums.get(currentIndex-1) + (j+1));\r\n\t\t\t\tcurrentIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Now we use 2 nested for loops to loop through all possible consecutive prime sums\r\n\t\tint maxLength = 0;\r\n\t\tint ans = 0;\r\n\t\tfor (int k = consecutivePrimeSums.size()-1; k >= 2; k--) {\r\n\t\t\tfor (int m = k-2; m >= 0; m--) {\r\n\t\t\t\tint currentSum = consecutivePrimeSums.get(k) - consecutivePrimeSums.get(m);\r\n\t\t\t\tif (currentSum >= 1000000)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif (primes[currentSum-1] == true && (k-m) > maxLength) {\r\n\t\t\t\t\tans = currentSum;\r\n\t\t\t\t\tmaxLength = k-m;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(ans);\r\n\t\t/*long endTime = System.nanoTime();\r\n\t\tlong timeElapsed = endTime - startTime;\r\n\t\tSystem.out.println(timeElapsed/1000000 + \" ms\");*/\r\n\t}", "public static int findSumOfTwoNumbers(int[] input, int numToFind)\n {\n return 0;\n }", "public static int Main()\n\t{\n\t\tint[] num = new int[16];\n\t\tint i;\n\t\tint k;\n\t\tint j;\n\t\tint count;\n\t\tfor (;;) //????\n\t\t{\n\t\t\ti = -1; //?????i?count\n\t\t\tcount = 0;\n\t\t\tdo\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tnum[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\t\tif (num[0] == -1) //?????????-1???\n\t\t\t\t{\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t} while (num[i] != 0); //????0??\n\t\t\tfor (j = 0 ; j <= i - 1 ; j++)\n\t\t\t{\n\t\t\t\tfor (k = j ; k <= i - 1 ; k++)\n\t\t\t\t{\n\t\t\t\t\tif ((num[j] == 2 * num[k]) || (num[j] * 2 == num[k])) //????\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++; //??\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(count);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "static public int evenCalc (int[] a){\n int counter = 0;\n for (int i = 0; i < a.length; i++){\n if(a[i] % 2 == 0)\n counter ++;\n }\n return counter;\n }", "public static int sumOfDoubleEvenPlace(long number) { \n\t\t\t\tint sum = 0; \n\t\t\t\tString num = number + \"\"; \n\t\t\t\tfor (int i = numberOfDigits(number) - 2; i >= 0; i -= 2) \n\t\t\t\t\tsum += returnDigit(Integer.parseInt(num.charAt(i) + \"\") * 2); \n\t\t\t\t \n\t\t\t\treturn sum; \n\t\t\t}", "public static void main(String[] args) {\n\t\tint start,end;\r\n\t\tint sum=0;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"enter the start number\");\r\n\t\tstart = scan.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"enter the end number\");\r\n\t\tend = scan.nextInt();\r\nfor(int i=start;i<=end;i++)\r\n\t{\r\n\t\tfor(int j=1;j<i;j++)\r\n\t\t{\r\n\t\tsum = sum+j;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\tif (sum==start)\r\n\t\r\n\t\tSystem.out.println(sum);\r\n\t\r\n\t\r\n}", "public static void main(String[] args) {\n\t\r\n\t\tSystem.out.print(\"How many numbers?\");\r\n\t\tScanner console = new Scanner(System.in);\r\n\t\tint totalN = console.nextInt();\r\n\t\tSystem.out.print(\"Enter the string of numbers\");\r\n\r\n\t\t// String numbers = console.nextLine().toString();\r\n\t\t\r\n\t\tint largestN = -999999;\r\n\t\tint sum = 0;\r\n\t\tint smallestN = console.nextInt();\r\n\t\t/*if(smallestN %2 == 0) {\r\n\t\t*\tsum += smallestN;\r\n\t\t}*/\r\n\t\tint greatestEvenNumber = -999999;\r\n\t\tint next = smallestN;\r\n\t\tfor (int i = 1; i < totalN; i++) {\r\n\t\t\t\r\n\t\t\tif(next %2 == 0) {\r\n\t\t\t\tsum += next;\r\n\t\t\t\tif(next > greatestEvenNumber) {\r\n\t\t\t\t\tgreatestEvenNumber = next;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (next > largestN) {\r\n\t\t\t\tlargestN = next;\r\n\t\t\t} else if (next < smallestN) {\r\n\t\t\t\tsmallestN = next;\r\n\t\t\t}\r\n\t\t\tnext = console.nextInt(); \r\n\t\t}\r\n\t\tSystem.out.println(\"The smallest number supplied is: \" + smallestN);\r\n\t\tSystem.out.println(\"The largest number supplied is: \" + largestN);\r\n\t\t\r\n\t\tSystem.out.println(\"The sum of all the even numbers is: \" + sum);\r\n\t\t//doesn't consider the first number inputted, how to fix?\r\n\t\tSystem.out.println(\"The greatest even number is: \" + greatestEvenNumber);\r\n\t\t\r\n\t\t\r\n\t}", "private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Number is even and greater than 20...!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Number is odd...!!\");\n\t\t}\n\t}", "int main()\n\n{\n\n int n,t,e,o;\n\n cin>>n;\n\n while(n>0)\n\n {\n\n t=n%10;\n\n if(t%2==0)\n\n {\n\n e=e+t;\n\n }\n\n else\n\n {\n\n o=o+t;\n\n }\n\n n=n/10;\n\n }\n\n if(e==o)\n\n {\n\n cout<<\"Yes\";\n\n }\n\n else\n\n {\n\n cout<<\"No\";\n\n }\n\n \n\n}", "public static long compute(long limit) {\n return Stream.iterate(new long[]{1, 2}, p -> new long[]{p[1], p[0] + p[1]})\n .limit(100)\n .filter(e -> e[0] < limit && e[0] > 0)\n .mapToLong(e -> e[0])\n .filter(e -> e % 2 == 0)\n .sum();\n }", "public static int sumOfOddFactorial(int limit, int n)\n\t{\n\t\tif(limit == 1 || n == limit + 2)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\treturn 1+n*(n-1)*sumOfOddFactorial(limit, n + 2);\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t\tint n = sc.nextInt();\r\n\t\tint[] a = new int[n];\r\n\t\tfor(int i = 0; i < n; i++){\r\n\t\t\ta[i] = sc.nextInt();\r\n\t\t}\r\n\t\tint res = 0, p = 0, t = 0;\r\n\t\twhile(true){\r\n\t\t\tp = 0; t = 0;\r\n\t\t\tfor(int i = 0; i < a.length; i++){\r\n\t\t\t\t\r\n\t\t\t\tif(i == a.length-1){\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t\ta[0] += p;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\tint temp = a[0];\r\n\t\t\tfor(int j = 1; j < a.length; j++){\r\n\t\t\t\tif(a[j] != temp){\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag){\r\n\t\t\t\tSystem.out.println(res);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfor(int j = 0; j < a.length; j++){\r\n\t\t\t\tif(a[j] % 2 != 0){\r\n\t\t\t\t\ta[j] += 1;\r\n\t\t\t\t\tres++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}", "public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}", "public int find(List<Integer> numbers) {\n int count = 0;\n for (Integer n : numbers) {\n int x = 1;\n do {\n if (x * (x + 1) == n) {\n count++;\n }\n x++;\n } while (x < Math.sqrt(n));\n }\n return count;\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n for(int arr_i=0; arr_i < n; arr_i++){\n int integer = in.nextInt();\n list.add(new Integer(integer));\n }\n in.close();\n\n\n\n if(k == 1){\n System.out.println(k);\n return;\n }\n\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i) % k;\n list.set(i, x);\n }\n\n int[] kx = new int[k];\n for(int i = 0;i < k;i ++){\n kx[i] = 0;\n }\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i);\n kx[x] ++;\n }\n\n\n int num = 0;\n int A = 0;\n if(k % 2 == 0){\n A = k / 2 - 1;\n }else{\n A = k / 2;\n }\n if(kx[0] != 0){\n num += 2;\n }\n for(int i = 1; i <= A;i ++){\n if(kx[i] >= kx[k - i]){\n num += kx[i];\n }else {\n\n num += kx[k - i];\n }\n\n }\n System.out.println(num);\n }", "public static void main(String[] args) {\n System.out.println(\"your number?\");\n Scanner s = new Scanner(System.in);\n int i1 = s.nextInt();\n int i2 = s.nextInt();\n int i3 = s.nextInt();\n int i4 = s.nextInt();\n int i5 = s.nextInt();\n int sum = i1 + i2 + i3 + i4 + i5;\n if (sum % 2 == 0) {\n System.out.println(sum);\n }\n }", "public static void main(String[] args) {\n\n\t\tint sumEven = 0;\n\t\tint sumOdd = 0;\n\t\tint num1,num2=0;\n\t\tScanner kevin = new Scanner(System.in);\n\t\tSystem.out.println(\"enter start num\");\n\t\tnum1 = kevin.nextInt();\n\t\tSystem.out.println(\"enter end num\");\n\t\tnum2 = kevin.nextInt();\n\n\t\tfor (int x = num1; x < num2; x++) {\n\t\t\tif (x%2==0) {\n\t\t\t\tsumEven+=x;\n\t\t\t\n\t\t\t}else {\n\t\t\t\tsumOdd+=x;\n\t\t\t\n\t\t\t}\n\t\t}\nSystem.out.println(\"sum of odd : \"+sumOdd);\nSystem.out.println(\"sum of even : \"+sumEven);\n\t}", "public static int calculateSum(int n)\n {\n int sum =0 ;\n for(int i = 3;i <= n; i++ )\n {\n if(i%3 == 0 || i%5 == 0)\n {\n sum += i;\n }\n }\n return sum;\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t// input = 123;\r\n\t\t// Problem statement : sum of all the digits\r\n\t\t// 1 + 2 + 3 = 6\r\n\r\n\t\tint number = 1238768;\r\n\t\tint sum = 0;\r\n\t\t\r\n\t\t// 123 --> reminder = 3\r\n\t\t// --> quotient = 12\r\n\t\t// --> sum = 0 + 3 sum = 3\r\n\t\t// --> number = 12\r\n\t\t\r\n\t\t\r\n\t\t// 12 --> reminder = 2\r\n\t\t\t\t// --> quotient = 1\r\n\t\t\t\t// --> sum = 3 + 2 sum = 5\r\n\t\t\t\t// --> number = 1\r\n\t\t\r\n\t\t// 1 --> 1 > 0 ( true)\r\n\t\t // --> reminder = 1\r\n\t\t // --> quotient = 1/10 == 0.1 = 0\r\n\t\t// --> sum = 5+ 1 sum = 6\r\n\t\t// --> number = 0\r\n\t\t\r\n\t\t// 0 --> 0 > 0 (false)\r\n\t\t// --> comes out of the loop\r\n\t\t\r\n\r\n\t\twhile (number > 0) {\r\n\t\t\tint reminder = number % 10;\r\n\t\t\tint quotient = number / 10;\r\n\t\t\tsum = sum + reminder;\r\n\t\t\tnumber = quotient;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"reminder:\"+ reminder);\r\n\t\t\tSystem.out.println(\"quotient:\"+ quotient);\r\n\t\t\tSystem.out.println(\"sum:\"+ sum);\r\n\t\t\tSystem.out.println(\"number:\"+ number);\r\n\t\t\tSystem.out.println(\"*************\");\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t\t\r\n\t\t\r\n\t/*\tdo {\r\n\t\t\tint reminder = number % 10;\r\n\t\t\tint quotient = number / 10;\r\n\t\t\tsum = sum + reminder;\r\n\t\t\tnumber = quotient;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"reminder:\"+ reminder);\r\n\t\t\tSystem.out.println(\"quotient:\"+ quotient);\r\n\t\t\tSystem.out.println(\"sum:\"+ sum);\r\n\t\t\tSystem.out.println(\"number:\"+ number);\r\n\t\t\tSystem.out.println(\"*************\");\r\n\t\t}while(number > 0); */\r\n\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"Enter the number of elements in the array\");\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] array = new int[n];\n for (int i = 0; i < n; i++) {\n array[i] = scanner.nextInt();\n }\n System.out.println(\"Enter the sum to be found\");\n int sum = scanner.nextInt();\n\n Arrays.sort(array);\n int forwardPointer = 0;\n int backwardPointer = array.length - 1;\n int tempSum = array[forwardPointer] + array[backwardPointer];\n while (! isEqual(sum, tempSum)) {\n //System.out.println(array[forwardPointer]);\n //System.out.println(array[backwardPointer]);\n if (sum > tempSum) {\n // means we need to add bigger numbers\n forwardPointer++;\n } else {\n // means we have to add smaller numbers\n backwardPointer--;\n }\n\n if (forwardPointer >= backwardPointer) {\n // means we couldnt find anything\n System.out.println(\"Couldnt find the numbers in the given array\");\n break;\n }\n tempSum = array[forwardPointer] + array[backwardPointer];\n }\n\n if (forwardPointer < backwardPointer) {\n System.out.printf(\"The numbers are %d and %d\\n\", array[forwardPointer], array[backwardPointer]);\n }\n\n }", "public static void main(String[] args) {\n\t\tint evensum=0;\n\t\tint oddsum=0;\n\t\tfor( int num=1; num<=99; num++) {\n\t\t\t\n\t\t\tif(num%2==0) {\n\t\t\tevensum=evensum+num;\n\t\t\t\t\n\t\t\t}else {oddsum=oddsum+num;}\n\t\t}\n\t\tSystem.out.println(evensum+\" \"+ oddsum);\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int t=scan.nextInt();\n int n,i,sum,x;\n while(t!=0)\n {\n sum=0;\n n=scan.nextInt();\n t--;\n for(i=3;i<=n-2;i+=2)\n {\n if(prime(i))\n {\n x=n-i;\n if(square(x/2))\n sum+=1;\n }\n }\n System.out.println(sum);\n }\n \n }", "public static int solve() {\n FactorizationSieve sieve = new FactorizationSieve(LIMIT + 1);\n int[] abundants = new int[LIMIT + 1];\n int k = 0;\n\n for (int n = 1; n <= LIMIT; n++)\n if (sieve.sigma(1, n) > n + n)\n abundants[k++] = n;\n\n // Sum pair of abundant numbers\n BitSet absums = new BitSet(LIMIT + 1);\n for (int i = 0; i < k; i++) {\n for (int j = i; j < k; j++) {\n int n = abundants[i] + abundants[j];\n if (n > LIMIT)\n break;\n absums.set(n);\n }\n }\n\n // Find all numbers that cannot be written as the sum of two abundant numbers\n int res = 0;\n for (int n = 1; n <= LIMIT; n++)\n if (!absums.get(n))\n res += n;\n return res;\n }", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tsum += in.nextInt();\n\t\tn++;\n\t\t\n\t\tint res = 0;\n\t\tfor(int i = 1; i <= 5; i++)\n\t\t\tif((sum+i)%n != 1)\n\t\t\t\tres++;\n\t\tSystem.out.println(res);\n\t}", "public static void main(String[] args) {\n int number = 1;\n do{\n if ( (number%2 == 0) && (number%7 == 0) ){\n System.out.print(number + \" \");\n }\n number++;\n }while(number<=1000);\n\n\n\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "public static int sumOfDoubleEvenPlace(long number) {\r\n\t\tString num = Long.toString(number);\r\n\t\tint sum = 0;\r\n\t\tfor (int i = num.length() - 2; i >= 0; i--, i--) {\t\t\t\t\t// petlja ce brojati unazad, krenuvsi od predzadnjeg broja\r\n\t\t\tsum += getDigit((Character.getNumericValue(num.charAt(i))) * 2);\t// suma svih cifri na parnim mjestima\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "public int sumSubarrayMins2(int[] nums) \n {\n if (nums == null || nums.length == 0)\n {\n return 0;\n }\n \n int size = nums.length;\n int result = 0;\n int mod = 1_000_000_000 + 7;\n \n for (int i = 0; i < size; i++)\n {\n int min = Integer.MAX_VALUE;\n \n for (int j = i; j < size; j++)\n {\n min = Math.min(min, nums[j]);\n result = (result + min) % mod;\n result %= mod;\n }\n }\n \n return result;\n }", "protected int oddLengthSumofSubArray(int []arr) {\n\t \n\t int sum = 0;\n\t int l = arr.length;\n\t \n\t for(int i = 0; i < l; i++) { \n\t sum += (((i + 1) * (l - i) + 1) / 2) * arr[i];\n\t }\n\t \n\t return sum;\n\t}", "private static int findNextPrimeAfter(int n) {\n n += (n % 2 == 0) ? 1 : 2; // next odd\n foundFactor: for (;; n += 2) { //TODO labels??!!\n int sri = (int) (Math.sqrt(n));\n for (int primeIndex = 0; primeIndex < N_PRIMES; primeIndex++) {\n int p = primes[primeIndex];\n if (p > sri) {\n return n;\n }\n if (n % p == 0) {\n continue foundFactor;\n }\n }\n for (int p = primes[N_PRIMES - 1] + 2;; p += 2) {\n if (p > sri) {\n return n;\n }\n if (n % p == 0) {\n continue foundFactor;\n }\n }\n }\n }", "int main()\n{\n int n,p=0,n2=2;\n cin>>n;\n if(n>0)\n cout<<p<<\" \";\n for(int i=1;i<n;i++)\n {\n p=p+n2;\n cout<<p<<\" \";\n if(i%2==1)\n \tn2=n2+4;\n }\n \n}", "public static void main (String[] args){\n Scanner in = new Scanner (System.in);\n int num = in.nextInt();\n int sum=1,sum1=0,n,check=num;\n for(;num!=0;)\n {\n n=num%10;\n sum=1;\n for( int i=n;i>0;i--){\n sum=sum*i;\n }\n sum1 = sum1+sum;\n num=num/10;\n \n }\n if(check==sum1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n\n\t}", "public static int RepetidorFor(int numero){\n\t\tint suma=0;\n\t\tint resultado=0;\n\t\tfor(int i=1;i<numero;i++){\n\t\t\tresultado=(numero%i);\n\t\t\tif(resultado==0){\n\t\t\t\tsuma=suma+i;\n\t\t\t}\n\t\t}\n\t\treturn suma;\n\t}", "public static void main(String[] args) {\n Long prime = 2L;\n Long sum = 0L;\n \n do {\n sum += prime;\n prime = _7_10001Prime.nextPrime(prime);\n \n \n } while (prime < 2000000);\n \n System.out.println(sum);\n }", "public static void main(String [] args){\n\t\tArrayList<Integer> allNums = new ArrayList<>();\n\t\tfor(int i = 0; i < 10; i++){\n\t\t\tallNums.add(i);\n\t\t}\n\t\t//Make into one big number\n\t\t//Proceed to divide it to knock bits off the right hand side\n\t\tboolean miracleFound = false;\n\t\tString tempNum;\n\t\tlong miracleNum = 0;\n\t\twhile(!miracleFound){\n\t\t\t//Make A String from the List And analyse it\n\t\t\ttempNum = \"\";\n\t\t\tfor(int i = 0; i < allNums.size(); i++){\n\t\t\t\ttempNum = tempNum + allNums.get(i);\n\t\t\t\t//System.out.println(\"Tempnum is \" + tempNum + \" and i is \" + i);\n\t\t\t\tif(i > 0){\n\t\t\t\t\tmiracleNum = Long.valueOf(tempNum).longValue();\n\t\t\t\t\tif(miracleNum % (i+1) == 0){ //If it is divisible without remainders\n\t\t\t\t\t\tif((i+1) == 10){\n\t\t\t\t\t\t\tmiracleFound = true;\n\t\t\t\t\t\t\tSystem.out.println(\"Number \" + miracleNum + \" was a miracle number.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(miracleNum + \" % \" + (i+1) + \" is 0.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tCollections.shuffle(allNums);\n\t\t\t\t\t\ti = allNums.size();\n\t\t\t\t\t\tSystem.out.println(\"Number \" + miracleNum + \" was not a miracle number.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static int solution(int number) {\n int result = 0;\n if (number == 3 || number == 5) {\n return number;\n }\n for (int i = 3; i < number; i++) {\n result += i % 3 == 0 || i % 5 == 0 ? i : 0;\n }\n return result;\n }", "public static int findTotal(int number) {\n int num = 0;\n for (int i = 1; i < number; i++) {\n num += i*(number/i);\n }\n return num;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint arr[]= {12,50,2,5,25};\n\t\tint sum=0,sume=0,sumo=0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tsum=sum+arr[i];\n\t\t\t}\n\t\tSystem.out.println(\"Sum = \"+sum);\n\t\t\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(arr[i]%2==0) {\n\t\t\t\tsume=sume+arr[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsumo=sumo+arr[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Sum of even = \"+sume);\n\t\tSystem.out.println(\"Sum of odd= \"+sumo);\n\t}", "public boolean checkPerfectNumber(int num) {\n //num == 1 is special case.\n if(num == 1) return false;\n int sum = 1;\n for(int i = 2; i <= Math.sqrt(num); i++){\n if(num%i == 0){\n if(i == num/i) sum+=i;\n else sum = sum+i+num/i;\n }\n }\n return sum == num;\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t int a = 0;\n\t\t a=scan.nextInt();\n\t\t int [] arr=new int[a+1];\n\t\t arr[1]=arr[2]=1;\n\t\t for(int i=3;i<arr.length;i++){\n\t\t arr[i]=(arr[i-1]+arr[i-2])%10007;//对每一个斐波那契数列进行取余数\n\t\t }\n\t\t System.out.println(arr[a]);\n\t\t }", "public static void main(String[] args) {\n\n int y = 1, sum = 0;\n\n while (y <= 100) {\n sum = sum + y;\n y++;\n }\n System.out.println(\"Summation: \" + sum);\n\n int sum1 = 0;\n for (int j = 1; j <=100;j++){\n sum1 = j + sum1;\n }\n System.out.println(sum);\n // Count all the even numbers from 1 to 100\n // Apelare la metoda din Logic countEvenNumbers\n\nLogic logic = new Logic();\nlogic.countEvenNumbers();\n\n // Count all the odd numbers from 1 to 100\n// Apelare la metoda din Logic countOddNumbers\n logic.countOddNumbers();\n\n // Apelare la metoda printToHundred\n\n\n logic.printToHundred();\n// Apelare la metoda getSum\n logic.getSum(1,100);\n\n // Apelare metoda printFromHighToLow\n\n logic.printFromHighToLow(100,10);\n\n //Apelare prinString\n\n logic.printString();\n\n\n\n\n\n // Apelare printCozaLozaWoza\nlogic.printLinesCozaLozaWoza();\n\n// Apelare displayFibonacci primele 20 numere\nlogic.displayFibonacci();\n\n\n }", "public int reachNumber(int target) {\n target = Math.abs(target);\n int sum = 0;\n int i = 0;\n while(sum < target){\n i++;\n sum += i;\n }\n while((sum - target) % 2 != 0){\n i++;\n sum += i;\n }\n return i;\n }", "public static void main(String[] args) {\n \n\t\tfor (int i=1;i<=100; i++){\n\t System.out.print(i+\" \");\n }System.out.println();\n\t\tSystem.out.println(\"----------------2-------------\");\n\t\tfor(int b=100; b>=1;b--) {\n\t\t\tSystem.out.print(b+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"----------------3---------------\");\n\t\t\n\t\tfor (int c=20; c>=1;c-=2) {\n\t\t\tSystem.out.print(c+ \" \");\n\t\t}System.out.println();\n\t\t\n\t\t\n\t\tSystem.out.println(\"----------------4---------------\");\n\t\tfor (int d=21; d<=50;d+=2) {\n\t\t\tSystem.out.print(d+ \" \");\n\t\t\n\t}System.out.println();\n\tSystem.out.println(\"----------------2(even)-------------\");\n\tfor(int z=20; z>=1; z-=2) {\n\t\tif (z%2==0) {\n\t\t\tSystem.out.print(z+ \" \");\t\n\t\t}\n\t}System.out.println();\nSystem.out.println(\"What is the ouptut\");\n\tint sum=0;\n\t\tfor(int i=1;i<=5; i++) {\n\t\t\tsum=sum+i;\n\t\t}\tSystem.out.println(sum);\n\t\tSystem.out.println(\" -------------------What is the otput-------------\");\n\t\tint result =0;\n\t\tfor(int i=2;i<10;i+=2) {\n\t\t\tresult+=i;\n\t\t\t}System.out.println(result);\n\t\t}", "@Override\n public String run() {\n long sum = 0;\n int limit = 2000000;\n for (int num = 2; num < limit; num++){\n if(isPrime(num)){\n sum += num;\n }\n }\n return Long.toString(sum);\n }", "static int sumOf1To100nos() {\r\n\t\t \r\n\t\t int sum =0;\r\n\t\t \r\n\t\t for(int i=1; i<=100;i++) {\r\n\t\t\t sum+=i;\r\n\t\t }\r\n\t\t \r\n\t\t return sum;\r\n\t }", "public static double getSum(long num) {\r\n double total = 0;\r\n for(int i = 0; i < digitBit.length; i ++){\r\n double sum = 0;\r\n Bucket bkt = digitBit[i].bucket;\r\n //find sum of buckets of size (j+1)\r\n while(bkt.endTimestamp >= (currentTimeStamp - num + 1)){\r\n sum += bkt.size;\r\n if(bkt.next != null){\r\n bkt = bkt.next;\r\n }else{\r\n break;\r\n }\r\n }\r\n if(bkt.startTimeStamp >= (currentTimeStamp - num + 1)){\r\n sum += (bkt.size)/2;\r\n }\r\n //add the contribution of ith position bits to the total\r\n total += sum * Math.pow(2, i);\r\n }\r\n return total;\r\n }", "public static void main(String[] args) {\n\n\t int even=20;\n\t do {\n\t\tSystem.out.println(even);\n\t even+=2;\n\t }while (even<=50);\n//2. way\n\t int even1=20;\n\t do {\n\t\t if (even1%2==0) {\n\t\t\t System.out.println(even1);\n\t\t }\n\t even1++;\n\t }while (even1<=50);\n}", "public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}", "public void exercise_4_31()\n {\n int index = 0;\n int sum = 0;\n \n while (index < 10) {\n index++;\n sum += index;\n }\n System.out.println(sum);\n }", "public static int evenFibSum(int maxVal) {\n int firstVal = 2; //Equivalent to F(n-2)\n int secondVal = 8; //Equivalent to 4F(n-1)\n int functionVal = 34; //Equivalent to F(n)\n int sum = 10;\n while (functionVal < maxVal) {\n sum += functionVal;\n firstVal = secondVal; //Swapping values to continue the recursion\n secondVal = functionVal;\n functionVal = 4 * secondVal + firstVal; //Using the formula\n }\n return sum;\n }", "public static int sumOfOddPlace(long number) { \n\t\t\t\tint sum = 0; \n\t\t\t\tString num = number + \"\"; \n\t\t\t\tfor (int i = numberOfDigits(number) - 1; i >= 0; i -= 2) \n\t\t\t\t\tsum += Integer.parseInt(num.charAt(i) + \"\"); \n\t\t\t\treturn sum; \n\t\t\t}", "static boolean sumChecker( int[] arrayOfNumbers) {\n\t\tint intArraySum = 0; \n\t\tfor (int i : arrayOfNumbers) { \n\t\t\tintArraySum += arrayOfNumbers[i];\n\t\t}\n\t\tif (intArraySum >= 100) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t\t \n\t\t}\n\t}", "public static void calculate(int[] array) {\n\tfor (int i = 0; i > array.length - 1; i++) {\n\t\t// i will be second number\n\t\tfor (int j = i + 1; j < array.length; j++) {\n\n\t\t\t// take a number from array\n\t\t\t// add it to the next\n\t\t\tint sum = array[i] + array[j];\n\n\t\t\tif (sum == 100) {\n\t\t\t\t// i will print those two numbers\n\t\t\t\tSystem.out.println(array[i] + \", \" + array[j]);\n\t\t\t}\n\t\t}\n\n\t}\n}", "public static void main(String[] args) {\nint array[]= {13, 25, 9,56,54,89,17};\r\nint sum =0;\r\n\r\nfor (int i=0; i<=6; i++) {\r\n\tsum = sum + array[i];\r\n}\r\nSystem.out.println(\"the sume of the numbers is \" +sum);\r\n\t}", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public static void sumNum() {\n\t\tint result = 0;\n\t\tfor(int i = 1; i<=112; i = i + 3) {\n\t\t\tresult = result + i;\t\n\t\t}\n\tSystem.out.println(\"Sum = \" + result);\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter a number to get prime numbers below that number\");\nint givenum = sc.nextInt();\nint i,number,count;\nfor(number=1;number<=givenum;number++)\n{\n\tcount=0;\n\tfor(i=2;i<=number/2;i++)\n\t{\n\t\tif(number%i==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tbreak;\n\t\t}\n\t}\nif(count==0 && number !=1)\n{\n\tSystem.out.println(number);\n}\n}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint num=1;\n\t\tint sumOdd=0;\n\t\tint sumEven=0;\n\t\t\n\t\twhile(num<=50) {\n\t\t\tif(num%2==0) {\n\t\t\t\tsumEven+=num;\n\t\t\t}else {\n\t\t\t\tsumOdd+=num;\n\t\t\t\t\n\t\t\t}\n\t\t\tnum++;\t\t\n\t\t}\n\t\tSystem.out.println(\"sumodd is \"+ sumOdd);\n\t\tSystem.out.println(\"sumEven is \"+ sumEven);\n\t\t\n\n\n\t}", "public static int sumOfTwoLargestElements(int[] a) {\n int firstNum = Integer.MIN_VALUE;\n int secondNum = Integer.MIN_VALUE;\n\n\n for (int i = 0; i < a.length; i++) {\n if(firstNum==a[i])continue;\n if (firstNum < a[i]) {\n secondNum = firstNum;\n firstNum = a[i];\n } else if (secondNum < a[i]) {\n secondNum = a[i];\n }\n }\n return firstNum + secondNum;\n }", "private static int sumOddLengthSubarrays( int[] arr ) {\n Deque<Integer> q = new LinkedList<>();\n\n int sum = 0;\n for (int i = 0; i < arr.length; i++) {\n sum += arr[i];\n //System.out.println(sum);\n\n q.offer(arr[i]);\n\n if (q.size() == 3) {\n List<Integer> list = new ArrayList<>();\n int n = q.size();\n while (n-- > 0) {\n sum += q.peek();\n\n //System.out.println(sum);\n\n list.add(q.poll());\n }\n q = new LinkedList<>(list);\n q.poll();\n }\n }\n\n while (!q.isEmpty())\n sum += q.poll();\n\n return sum;\n }", "public static void main (String[] args){\n Scanner sc=new Scanner(System.in);\n int num=sc.nextInt();int sum=1;\n int lol=String.valueOf(num).length();\n while(num>0)\n {\n int h=num%10;\n sum=sum+fact(h);\n num=num/10;\n }\n int len=String.valueOf(sum).length();\n if(len==lol)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\t}", "private void hailstoneSeq() {\r\n\t\tint evenCount = 0; //number of times the even operation is used\r\n\t\tint oddCount = 0; //number of times the of operation is used\r\n\t\t\r\n\t\tint num = readInt(\"Enter a number:\");\r\n\t\t\r\n\t\twhile(num != 1) {\r\n\t\t\t//even numbers\r\n\t\t\tif(num % 2 == 0) { \r\n\t\t\t\tprintln(num + \" is even, so I take half: \" + (num/2));\r\n\t\t\t\tnum = num / 2;\r\n\t\t\t\tevenCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) { \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t//odd numbers\r\n\t\t\tif(num % 2 != 0) { \r\n\t\t\t\tprintln(num + \" is odd, so I make 3n + 1: \" + (3 * num + 1));\r\n\t\t\t\tnum = 3 * num + 1;\r\n\t\t\t\toddCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//determining the number of steps to reach number 1\r\n\t\tint totalCount = evenCount + oddCount;\r\n\t\tprintln(\"It took \" + totalCount + \" steps to reach 1.\");\r\n\t}", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "private static void sumOfSquaresfromList(List<Integer> numbers) {\n\t\tint sum = numbers.stream().map(number -> number * number).reduce(0, Integer::sum);\n\t\tSystem.out.println(\"Sum of Squres : \" + sum);\n\n\t\t// Whenever we want to verify the conditions and do the operation, then use\n\t\t// filters\n\t\tint sumOfOddNumbers = numbers.stream().filter(number -> number % 2 != 0).reduce(0, Integer::sum);\n\t\tSystem.out.println(\"Sum of Odd Numbers : \" + sumOfOddNumbers);\n\n\t}", "private static int maxSum(int arr[]) {\n int sum = 0;\n Arrays.sort(arr);\n\n // Subtracting a1, a2, a3,....., a(n/2)-1,\n // an/2 twice and adding a(n/2)+1, a(n/2)+2,\n // a(n/2)+3,....., an - 1, an twice.\n for (int i = 0; i < arr.length / 2; i++) {\n sum -= (2 * arr[i]);\n sum += (2 * arr[arr.length - i - 1]);\n }\n\n return sum;\n }", "protected long bruteForce(long endingNumber) {\n StringBuffer buffer = new StringBuffer();\n for (int index = 1; index <= endingNumber; ++index) {\n buffer.append(index);\n }\n String digits = buffer.toString();\n int matches = 0, offset = 0;\n while ((offset = digits.indexOf('2', offset)) != -1) {\n matches++;\n offset++;\n }\n return matches;\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in); // object creation of Scanner class\r\n\t\tSystem.out.print(\"Enter the size of the array : \");\r\n\t\tint size=sc.nextInt(); // input size for first array\r\n\t\tint array[]=new int[size];\r\n\t\tint oddsum=0,evensum=0;\r\n\t\tfor(int i=0;i<size;i++) {\r\n\t\t\tSystem.out.print(\"Enter Element \"+(i+1)+\" : \"); // input elements of array\r\n\t\t\tarray[i]=sc.nextInt();\r\n\t\t}\r\n\t\tfor(int i=0;i<size;i++) {\r\n\t\t\tif((i+1)%2==0) // determining whether index is odd or even\r\n\t\t\t\tevensum+=array[i];\r\n\t\t\telse\r\n\t\t\t\toddsum+=array[i];\r\n\t\t}\r\n\t\tSystem.out.println(\"Sum of elements of even index = \"+evensum);\r\n\t\tSystem.out.println(\"Sum of elements of odd index = \"+oddsum);\r\n\t\t\r\n\t\tsc.close();\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint sum=0;\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a num:\");\r\n\t\tint n=s.nextInt();\r\n\t\tfor (int i=1;i<=n ;i++ )\r\n\t\t{\r\n\t\t\tif(n%i==0)\r\n\t\t\t{\r\n\t\t\t\tsum=sum+i;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public static void main(String[] args){\n int n;int k;\n Scanner sc=new Scanner(System.in);\n n=sc.nextInt();\n k=sc.nextInt();\n int[] a=new int[n];\n int[] reMain=new int[k];\n int num=0;\n for(int i=0;i<k;i++){\n reMain[i]=0;\n }\n for(int i=0;i<n;i++){\n int d=sc.nextInt()%k;\n reMain[d]++;\n }\n int p=0;\n if(k%2==0)\n p=k/2;\n else p=(k+1)/2;\n for(int i=1;i<p;i++){\n if(reMain[i]>reMain[k-i])\n num+=reMain[i];\n else\n num+=reMain[k-i];\n \n }\n if(reMain[p]%2==1 && k%2==0)\n num++;\n if(k==2)\n num=reMain[1];\n \n \n System.out.println(num);\n\t}", "private static int findSpecialPrimesSum() {\n // holds whether a prime number has invalid digits\n boolean invalidDigits;\n // holds whether a number is prime or not\n boolean[] notPrime = new boolean[UPPER_BOUND];\n // number of special primes found\n int numOfSpecialPrimes = 0;\n // sum of the special primes\n int sum = 0;\n // temp variable for a number\n int tempNum;\n\n // set all non prime numbers to true\n for (int index = SMALLEST_PRIME; index < notPrime.length; index++) {\n for (int counter = index * SMALLEST_PRIME; counter < notPrime.length; counter += index) {\n notPrime[counter] = true;\n }\n }\n\n // loop through all possible values\n for (int num = DIV_10; num < notPrime.length; num++) {\n // only run if the number is prime\n if (notPrime[num] == false) {\n // check if the number ends with a 3 or 7\n if (END_DIGITS[num % DIV_10] == true) {\n tempNum = num;\n // strip the number until we get the first digit\n invalidDigits = false;\n while (tempNum >= DIV_10) {\n // check if the prime has even digits that are not 2\n if ((tempNum % DIV_10) % SMALLEST_PRIME == 0 && tempNum % DIV_10 != SMALLEST_PRIME) {\n invalidDigits = true;\n break;\n }\n tempNum /= DIV_10;\n }\n // check if the prime has invalid digits\n if (invalidDigits == true) {\n continue;\n }\n // check if the number starts with 2,3,5,7\n if (START_DIGITS[tempNum] == true) {\n // check if the number is left and right truncatable\n if (leftTruncatablePrime(num, notPrime) == true\n && rightTruncatablePrime(num, notPrime) == true) {\n numOfSpecialPrimes++;\n sum += num;\n }\n }\n }\n }\n // if all 11 primes are found, exit loop\n if (numOfSpecialPrimes == NUM_OF_PRIMES) {\n break;\n }\n }\n\n return sum;\n }", "public static void main (String[] args){\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n \n int temp = n;\n int copy = n;\n int sum = 0;\n int count = 0;\n int rem = 0;\n while(n!=0)\n {\n rem = n%10;\n count++;\n n = n/10;\n }\n while(temp!=0)\n {\n rem = temp%10;\n int count2 = 0;\n int expo = 1;\n int base = rem;\n \n while(count>count2)\n {\n expo = base * expo;\n count2++;\n }\n sum = sum+ expo;\n temp = temp/10;\n }\n if(sum == copy)\n {\n System.out.println(\"Armstrong Number\");\n }\n else\n {\n System.out.println(\"Not a Armstrong Number\");\n }\n\t}" ]
[ "0.7001154", "0.69122285", "0.69000477", "0.6769295", "0.673746", "0.6639282", "0.6596492", "0.6565432", "0.6536551", "0.6473299", "0.64606214", "0.6421133", "0.6384926", "0.6366847", "0.63370967", "0.6318837", "0.6313202", "0.6303094", "0.62978643", "0.6293718", "0.62765205", "0.6260567", "0.6242482", "0.622008", "0.62188435", "0.62111485", "0.6206594", "0.62032914", "0.6180684", "0.6171372", "0.6155551", "0.61544603", "0.6122035", "0.6097185", "0.6090243", "0.60842913", "0.60736746", "0.6064482", "0.60627955", "0.60574484", "0.60494465", "0.6040413", "0.6037912", "0.60239995", "0.60208684", "0.6020687", "0.6019956", "0.601648", "0.60140425", "0.60020405", "0.59758425", "0.59758174", "0.5974179", "0.5973092", "0.5960991", "0.59467554", "0.5946697", "0.5944136", "0.5940388", "0.5937517", "0.5936242", "0.59296495", "0.592906", "0.5924581", "0.5910283", "0.59019935", "0.58944684", "0.58943236", "0.58828306", "0.5873496", "0.5865271", "0.5853112", "0.5850696", "0.58494765", "0.58493954", "0.5845187", "0.58354765", "0.5834356", "0.58339536", "0.5827491", "0.5827114", "0.58258516", "0.58212614", "0.58197355", "0.5807063", "0.5804232", "0.5803873", "0.5798584", "0.5787817", "0.578602", "0.5785558", "0.57809603", "0.57768565", "0.5770238", "0.5767683", "0.57593864", "0.57480216", "0.5744625", "0.574337", "0.5742686", "0.5742524" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public WkBscCoreDAOImpl() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public void insert(WkBscCore record) {\r\n getSqlMapClientTemplate().insert(\"WK_BSC_CORE.ibatorgenerated_insert\", record);\r\n }", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) {\r\n WkBscCore key = new WkBscCore();\r\n key.setBscid(bscid);\r\n key.setWeek(week);\r\n key.setYear(year);\r\n WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject(\"WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public abstract String getDB2ProductTypeTestSql();", "public String getBKA001() {\n return BKA001;\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public int getC_BPartner_ID();", "public Integer getBcId() {\n return bcId;\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public String getSclb() {\n return sclb;\n }", "public abstract void mo9244b(C0620bi biVar);", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public String getDatabaseProduct();", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "SQLBinary()\n\t{\n\t}", "int getBouncesNumber() throws SQLException;", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "public String getBKC098() {\n return BKC098;\n }", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "B database(S database);", "public int getBSCA_PriceChangePrev_ID();", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "Table getBaseTable();", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(40, \"_G\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"_G\", defaultDBTable0, dBDataType0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"_G(2)\", stringBuilder0.toString());\n }" ]
[ "0.53606534", "0.5273242", "0.52709705", "0.5210963", "0.5152298", "0.5119404", "0.51055884", "0.50820315", "0.5069529", "0.5067419", "0.50531805", "0.50469756", "0.50437504", "0.50348353", "0.5033258", "0.49965456", "0.4990416", "0.49870643", "0.49402338", "0.49369815", "0.4933746", "0.4912793", "0.49055406", "0.49029958", "0.49005008", "0.48899394", "0.4883798", "0.487131", "0.48698434", "0.48659235", "0.48649466", "0.48649466", "0.4863115", "0.48536313", "0.48519593", "0.48470387", "0.4835061", "0.48319447", "0.48183694", "0.48183694", "0.47974744", "0.47967905", "0.47950152", "0.47947696", "0.4792844", "0.47915927", "0.47738853", "0.4764372", "0.47630396", "0.47614494", "0.47585267", "0.47444606", "0.47444606", "0.47400782", "0.47368425", "0.47364178", "0.4734422", "0.47323292", "0.4730373", "0.47253013", "0.47250444", "0.47165412", "0.47126555", "0.47035488", "0.47029826", "0.46962762", "0.46962762", "0.46950972", "0.468807", "0.46826172", "0.4674122", "0.46649706", "0.46649706", "0.466071", "0.4653519", "0.4648422", "0.46404594", "0.46360335", "0.46304575", "0.46194604", "0.46163195", "0.46160105", "0.45924363", "0.45917314", "0.45842654", "0.45837966", "0.45798075", "0.45779163", "0.45778695", "0.45718855", "0.456921", "0.45687383", "0.4567749", "0.45667282", "0.45664322", "0.45662817", "0.45642018", "0.45624894", "0.4560192", "0.45577058" ]
0.5303755
1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public int deleteByPrimaryKey(String bscid, Integer week, Integer year) { WkBscCore key = new WkBscCore(); key.setBscid(bscid); key.setWeek(week); key.setYear(year); int rows = getSqlMapClientTemplate().delete("WK_BSC_CORE.ibatorgenerated_deleteByPrimaryKey", key); return rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public void insert(WkBscCore record) {\r\n getSqlMapClientTemplate().insert(\"WK_BSC_CORE.ibatorgenerated_insert\", record);\r\n }", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) {\r\n WkBscCore key = new WkBscCore();\r\n key.setBscid(bscid);\r\n key.setWeek(week);\r\n key.setYear(year);\r\n WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject(\"WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public String getBKA001() {\n return BKA001;\n }", "public abstract String getDB2ProductTypeTestSql();", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public Integer getBcId() {\n return bcId;\n }", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public int getC_BPartner_ID();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public abstract void mo9244b(C0620bi biVar);", "public String getSclb() {\n return sclb;\n }", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public String getDatabaseProduct();", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "SQLBinary()\n\t{\n\t}", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "int getBouncesNumber() throws SQLException;", "B database(S database);", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "public String getBKC098() {\n return BKC098;\n }", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "public int getBSCA_PriceChangePrev_ID();", "Table getBaseTable();", "public int getBId() {\n return instance.getBId();\n }" ]
[ "0.5358734", "0.53030777", "0.52737594", "0.52691156", "0.5210498", "0.51496553", "0.5120017", "0.51011074", "0.5079821", "0.50658935", "0.50647366", "0.5054387", "0.5046013", "0.50408804", "0.50369257", "0.503305", "0.4996893", "0.49857834", "0.4983073", "0.494213", "0.49358967", "0.49346575", "0.49079335", "0.49053633", "0.49042177", "0.48996937", "0.48900464", "0.48844287", "0.48698837", "0.4868409", "0.4867537", "0.4867537", "0.48662615", "0.48615277", "0.48528144", "0.48485145", "0.48457596", "0.4835665", "0.48302403", "0.48209596", "0.48209596", "0.4797577", "0.4796466", "0.4793587", "0.4793573", "0.47908455", "0.47898453", "0.47729957", "0.47631732", "0.4760905", "0.47599486", "0.4759919", "0.47456637", "0.47456637", "0.47394797", "0.47389647", "0.4734585", "0.47333655", "0.4732554", "0.47307703", "0.47229618", "0.4721406", "0.47181815", "0.47153", "0.47026828", "0.4701248", "0.46993148", "0.46993148", "0.46941465", "0.4687578", "0.46858874", "0.46744856", "0.4668031", "0.4668031", "0.4660607", "0.46517867", "0.46509862", "0.46375632", "0.46365684", "0.46263885", "0.46168447", "0.46144712", "0.46142757", "0.4590702", "0.45898122", "0.4583195", "0.4582281", "0.4578721", "0.4576197", "0.45756927", "0.4570022", "0.45686674", "0.45680183", "0.4567721", "0.456724", "0.4566765", "0.4565787", "0.45627636", "0.45608157", "0.45594987", "0.45571867" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public void insert(WkBscCore record) { getSqlMapClientTemplate().insert("WK_BSC_CORE.ibatorgenerated_insert", record); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) {\r\n WkBscCore key = new WkBscCore();\r\n key.setBscid(bscid);\r\n key.setWeek(week);\r\n key.setYear(year);\r\n WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject(\"WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public String getBKA001() {\n return BKA001;\n }", "public abstract String getDB2ProductTypeTestSql();", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public int getC_BPartner_ID();", "public Integer getBcId() {\n return bcId;\n }", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public String getSclb() {\n return sclb;\n }", "public abstract void mo9244b(C0620bi biVar);", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "public String getDatabaseProduct();", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "SQLBinary()\n\t{\n\t}", "int getBouncesNumber() throws SQLException;", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "public String getBKC098() {\n return BKC098;\n }", "B database(S database);", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "public int getBSCA_PriceChangePrev_ID();", "Table getBaseTable();", "public int getBId() {\n return instance.getBId();\n }" ]
[ "0.5359187", "0.5302035", "0.5274904", "0.52697295", "0.52107364", "0.5149667", "0.5120205", "0.5103196", "0.50807923", "0.5067874", "0.5066653", "0.5054995", "0.5047335", "0.50418675", "0.5037026", "0.49980548", "0.49880207", "0.49839315", "0.49407482", "0.49353442", "0.49341533", "0.49102435", "0.4904572", "0.49042407", "0.4900859", "0.48909295", "0.48854232", "0.4870205", "0.48695022", "0.4868354", "0.4868354", "0.48669755", "0.48626778", "0.48521882", "0.48489067", "0.48459083", "0.48366544", "0.4830046", "0.48217636", "0.48217636", "0.4797089", "0.47962543", "0.47955814", "0.4794464", "0.47913992", "0.4790693", "0.47748256", "0.47632423", "0.47617236", "0.47613856", "0.4760547", "0.47458163", "0.47458163", "0.47398254", "0.47390306", "0.47355196", "0.4734321", "0.4732959", "0.47306743", "0.4723401", "0.47228697", "0.4717134", "0.47160393", "0.47032773", "0.47017264", "0.47006568", "0.47006568", "0.46956748", "0.4687494", "0.46852195", "0.4674706", "0.46693525", "0.46693525", "0.4660428", "0.4652804", "0.46512866", "0.46376696", "0.4636666", "0.4627343", "0.46192408", "0.4616324", "0.46154946", "0.45904824", "0.45902455", "0.45834363", "0.45823497", "0.4579371", "0.45776105", "0.4575677", "0.45711303", "0.45698887", "0.45692652", "0.45686257", "0.45667243", "0.456665", "0.4566539", "0.456302", "0.45626956", "0.45605582", "0.45575902" ]
0.50318813
15
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public void insertSelective(WkBscCore record) { getSqlMapClientTemplate().insert("WK_BSC_CORE.ibatorgenerated_insertSelective", record); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public void insert(WkBscCore record) {\r\n getSqlMapClientTemplate().insert(\"WK_BSC_CORE.ibatorgenerated_insert\", record);\r\n }", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) {\r\n WkBscCore key = new WkBscCore();\r\n key.setBscid(bscid);\r\n key.setWeek(week);\r\n key.setYear(year);\r\n WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject(\"WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public String getBKA001() {\n return BKA001;\n }", "public abstract String getDB2ProductTypeTestSql();", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public int getC_BPartner_ID();", "public Integer getBcId() {\n return bcId;\n }", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public abstract void mo9244b(C0620bi biVar);", "public String getSclb() {\n return sclb;\n }", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "public String getDatabaseProduct();", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "int getBouncesNumber() throws SQLException;", "SQLBinary()\n\t{\n\t}", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "B database(S database);", "public String getBKC098() {\n return BKC098;\n }", "public int getBSCA_PriceChangePrev_ID();", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "Table getBaseTable();", "public int getBId() {\n return instance.getBId();\n }" ]
[ "0.5359718", "0.5302503", "0.5276327", "0.5271529", "0.52113056", "0.5151795", "0.51212895", "0.51038235", "0.5081521", "0.5068188", "0.5067125", "0.5056341", "0.50469667", "0.5043276", "0.5038923", "0.50328445", "0.4997268", "0.4988621", "0.4985194", "0.4940498", "0.49361214", "0.49360827", "0.49103123", "0.49048233", "0.49040532", "0.49004823", "0.48918596", "0.48864907", "0.4872193", "0.48709485", "0.48685482", "0.48685482", "0.48671147", "0.48637274", "0.48525596", "0.4848352", "0.48451376", "0.48358703", "0.48310366", "0.482194", "0.482194", "0.47974247", "0.47971752", "0.47951224", "0.47948867", "0.47927058", "0.47924986", "0.47752172", "0.4765123", "0.4762425", "0.47620714", "0.47608918", "0.47465044", "0.47465044", "0.4739541", "0.47390783", "0.47359234", "0.4735882", "0.47341284", "0.47311065", "0.4725293", "0.47238663", "0.4718154", "0.47167826", "0.470466", "0.47021672", "0.46993715", "0.46993715", "0.4695431", "0.4688406", "0.46862358", "0.46760017", "0.466799", "0.466799", "0.46605834", "0.4652949", "0.46525708", "0.46393156", "0.46376514", "0.4627879", "0.46185967", "0.46164837", "0.4615976", "0.45907128", "0.45906687", "0.45841014", "0.45831367", "0.4579915", "0.45795396", "0.45774472", "0.4570976", "0.4569551", "0.45694727", "0.45692238", "0.4567909", "0.45674577", "0.4567205", "0.45633167", "0.45631754", "0.45605555", "0.45578036" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) { WkBscCore key = new WkBscCore(); key.setBscid(bscid); key.setWeek(week); key.setYear(year); WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject("WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey", key); return record; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public void insert(WkBscCore record) {\r\n getSqlMapClientTemplate().insert(\"WK_BSC_CORE.ibatorgenerated_insert\", record);\r\n }", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public abstract String getDB2ProductTypeTestSql();", "public String getBKA001() {\n return BKA001;\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public int getC_BPartner_ID();", "public Integer getBcId() {\n return bcId;\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public String getSclb() {\n return sclb;\n }", "public abstract void mo9244b(C0620bi biVar);", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public String getDatabaseProduct();", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "SQLBinary()\n\t{\n\t}", "int getBouncesNumber() throws SQLException;", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "public String getBKC098() {\n return BKC098;\n }", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "B database(S database);", "public int getBSCA_PriceChangePrev_ID();", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "Table getBaseTable();", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(40, \"_G\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"_G\", defaultDBTable0, dBDataType0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"_G(2)\", stringBuilder0.toString());\n }" ]
[ "0.53606534", "0.5303755", "0.5273242", "0.52709705", "0.5210963", "0.5152298", "0.5119404", "0.51055884", "0.50820315", "0.5069529", "0.5067419", "0.50531805", "0.50469756", "0.50437504", "0.50348353", "0.5033258", "0.49965456", "0.4990416", "0.49870643", "0.49369815", "0.4933746", "0.4912793", "0.49055406", "0.49029958", "0.49005008", "0.48899394", "0.4883798", "0.487131", "0.48698434", "0.48659235", "0.48649466", "0.48649466", "0.4863115", "0.48536313", "0.48519593", "0.48470387", "0.4835061", "0.48319447", "0.48183694", "0.48183694", "0.47974744", "0.47967905", "0.47950152", "0.47947696", "0.4792844", "0.47915927", "0.47738853", "0.4764372", "0.47630396", "0.47614494", "0.47585267", "0.47444606", "0.47444606", "0.47400782", "0.47368425", "0.47364178", "0.4734422", "0.47323292", "0.4730373", "0.47253013", "0.47250444", "0.47165412", "0.47126555", "0.47035488", "0.47029826", "0.46962762", "0.46962762", "0.46950972", "0.468807", "0.46826172", "0.4674122", "0.46649706", "0.46649706", "0.466071", "0.4653519", "0.4648422", "0.46404594", "0.46360335", "0.46304575", "0.46194604", "0.46163195", "0.46160105", "0.45924363", "0.45917314", "0.45842654", "0.45837966", "0.45798075", "0.45779163", "0.45778695", "0.45718855", "0.456921", "0.45687383", "0.4567749", "0.45667282", "0.45664322", "0.45662817", "0.45642018", "0.45624894", "0.4560192", "0.45577058" ]
0.49402338
19
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public int updateByPrimaryKeySelective(WkBscCore record) { int rows = getSqlMapClientTemplate().update("WK_BSC_CORE.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public void insert(WkBscCore record) {\r\n getSqlMapClientTemplate().insert(\"WK_BSC_CORE.ibatorgenerated_insert\", record);\r\n }", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) {\r\n WkBscCore key = new WkBscCore();\r\n key.setBscid(bscid);\r\n key.setWeek(week);\r\n key.setYear(year);\r\n WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject(\"WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public String getBKA001() {\n return BKA001;\n }", "public abstract String getDB2ProductTypeTestSql();", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public Integer getBcId() {\n return bcId;\n }", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public int getC_BPartner_ID();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public abstract void mo9244b(C0620bi biVar);", "public String getSclb() {\n return sclb;\n }", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public String getDatabaseProduct();", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "SQLBinary()\n\t{\n\t}", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "int getBouncesNumber() throws SQLException;", "B database(S database);", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "public String getBKC098() {\n return BKC098;\n }", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "public int getBSCA_PriceChangePrev_ID();", "Table getBaseTable();", "public int getBId() {\n return instance.getBId();\n }" ]
[ "0.5358734", "0.53030777", "0.52737594", "0.52691156", "0.5210498", "0.51496553", "0.5120017", "0.51011074", "0.5079821", "0.50658935", "0.50647366", "0.5054387", "0.5046013", "0.50408804", "0.50369257", "0.503305", "0.4996893", "0.49857834", "0.4983073", "0.494213", "0.49358967", "0.49346575", "0.49079335", "0.49053633", "0.49042177", "0.48996937", "0.48900464", "0.48844287", "0.48698837", "0.4868409", "0.4867537", "0.4867537", "0.48662615", "0.48615277", "0.48528144", "0.48485145", "0.48457596", "0.4835665", "0.48302403", "0.48209596", "0.48209596", "0.4797577", "0.4796466", "0.4793587", "0.4793573", "0.47908455", "0.47898453", "0.47729957", "0.47631732", "0.4760905", "0.47599486", "0.4759919", "0.47456637", "0.47456637", "0.47394797", "0.47389647", "0.4734585", "0.47333655", "0.4732554", "0.47307703", "0.47229618", "0.4721406", "0.47181815", "0.47153", "0.47026828", "0.4701248", "0.46993148", "0.46993148", "0.46941465", "0.4687578", "0.46858874", "0.46744856", "0.4668031", "0.4668031", "0.4660607", "0.46517867", "0.46509862", "0.46375632", "0.46365684", "0.46263885", "0.46168447", "0.46144712", "0.46142757", "0.4590702", "0.45898122", "0.4583195", "0.4582281", "0.4578721", "0.4576197", "0.45756927", "0.4570022", "0.45686674", "0.45680183", "0.4567721", "0.456724", "0.4566765", "0.4565787", "0.45627636", "0.45608157", "0.45594987", "0.45571867" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public int updateByPrimaryKey(WkBscCore record) { int rows = getSqlMapClientTemplate().update("WK_BSC_CORE.ibatorgenerated_updateByPrimaryKey", record); return rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\");\r\n\r\n\t\tfor(SybaseTableResult info : measurement.getTableResult())\r\n\t\t\tres.add(new SybaseTableIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public int getNumberOfBCs() { return numberOfBCs; }", "@SuppressWarnings(\"all\")\npublic interface I_BSCA_PriceChange \n{\n\n /** TableName=BSCA_PriceChange */\n public static final String Table_Name = \"BSCA_PriceChange\";\n\n /** AD_Table_ID=1000276 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name BSCA_CompletedBy_ID */\n public static final String COLUMNNAME_BSCA_CompletedBy_ID = \"BSCA_CompletedBy_ID\";\n\n\t/** Set BSCA_CompletedBy_ID\t */\n\tpublic void setBSCA_CompletedBy_ID (int BSCA_CompletedBy_ID);\n\n\t/** Get BSCA_CompletedBy_ID\t */\n\tpublic int getBSCA_CompletedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_CompletedBy() throws RuntimeException;\n\n /** Column name BSCA_PreparedBy_ID */\n public static final String COLUMNNAME_BSCA_PreparedBy_ID = \"BSCA_PreparedBy_ID\";\n\n\t/** Set BSCA_PreparedBy_ID\t */\n\tpublic void setBSCA_PreparedBy_ID (int BSCA_PreparedBy_ID);\n\n\t/** Get BSCA_PreparedBy_ID\t */\n\tpublic int getBSCA_PreparedBy_ID();\n\n\tpublic org.compiere.model.I_AD_User getBSCA_PreparedBy() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_ID */\n public static final String COLUMNNAME_BSCA_PriceChange_ID = \"BSCA_PriceChange_ID\";\n\n\t/** Set Price Change\t */\n\tpublic void setBSCA_PriceChange_ID (int BSCA_PriceChange_ID);\n\n\t/** Get Price Change\t */\n\tpublic int getBSCA_PriceChange_ID();\n\n /** Column name BSCA_PriceChangePrev_ID */\n public static final String COLUMNNAME_BSCA_PriceChangePrev_ID = \"BSCA_PriceChangePrev_ID\";\n\n\t/** Set Price Change Previus\t */\n\tpublic void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);\n\n\t/** Get Price Change Previus\t */\n\tpublic int getBSCA_PriceChangePrev_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_PriceChange getBSCA_PriceChangePrev() throws RuntimeException;\n\n /** Column name BSCA_PriceChange_UU */\n public static final String COLUMNNAME_BSCA_PriceChange_UU = \"BSCA_PriceChange_UU\";\n\n\t/** Set BSCA_PriceChange_UU\t */\n\tpublic void setBSCA_PriceChange_UU (String BSCA_PriceChange_UU);\n\n\t/** Get BSCA_PriceChange_UU\t */\n\tpublic String getBSCA_PriceChange_UU();\n\n /** Column name BSCA_PrintPrice */\n public static final String COLUMNNAME_BSCA_PrintPrice = \"BSCA_PrintPrice\";\n\n\t/** Set Print Price\t */\n\tpublic void setBSCA_PrintPrice (String BSCA_PrintPrice);\n\n\t/** Get Print Price\t */\n\tpublic String getBSCA_PrintPrice();\n\n /** Column name BSCA_PrintPrice2 */\n public static final String COLUMNNAME_BSCA_PrintPrice2 = \"BSCA_PrintPrice2\";\n\n\t/** Set Print Price 2\t */\n\tpublic void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);\n\n\t/** Get Print Price 2\t */\n\tpublic String getBSCA_PrintPrice2();\n\n /** Column name BSCA_ProductValue_ID */\n public static final String COLUMNNAME_BSCA_ProductValue_ID = \"BSCA_ProductValue_ID\";\n\n\t/** Set BSCA_ProductValue\t */\n\tpublic void setBSCA_ProductValue_ID (int BSCA_ProductValue_ID);\n\n\t/** Get BSCA_ProductValue\t */\n\tpublic int getBSCA_ProductValue_ID();\n\n\tpublic com.bucaresystems.model.I_BSCA_ProductValue getBSCA_ProductValue() throws RuntimeException;\n\n /** Column name BSCA_ProfitPriceLimit */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimit = \"BSCA_ProfitPriceLimit\";\n\n\t/** Set Profit Price Limit\t */\n\tpublic void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);\n\n\t/** Get Profit Price Limit\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimit();\n\n /** Column name BSCA_ProfitPriceLimitEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceLimitEntered = \"BSCA_ProfitPriceLimitEntered\";\n\n\t/** Set Profit Price Limit Entered\t */\n\tpublic void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);\n\n\t/** Get Profit Price Limit Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceLimitEntered();\n\n /** Column name BSCA_ProfitPriceList */\n public static final String COLUMNNAME_BSCA_ProfitPriceList = \"BSCA_ProfitPriceList\";\n\n\t/** Set Profit Price List\t */\n\tpublic void setBSCA_ProfitPriceList (BigDecimal BSCA_ProfitPriceList);\n\n\t/** Get Profit Price List\t */\n\tpublic BigDecimal getBSCA_ProfitPriceList();\n\n /** Column name BSCA_ProfitPriceListEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceListEntered = \"BSCA_ProfitPriceListEntered\";\n\n\t/** Set Profit Price List Entered\t */\n\tpublic void setBSCA_ProfitPriceListEntered (BigDecimal BSCA_ProfitPriceListEntered);\n\n\t/** Get Profit Price List Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceListEntered();\n\n /** Column name BSCA_ProfitPriceStd */\n public static final String COLUMNNAME_BSCA_ProfitPriceStd = \"BSCA_ProfitPriceStd\";\n\n\t/** Set Profit Price Std\t */\n\tpublic void setBSCA_ProfitPriceStd (BigDecimal BSCA_ProfitPriceStd);\n\n\t/** Get Profit Price Std\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStd();\n\n /** Column name BSCA_ProfitPriceStdEntered */\n public static final String COLUMNNAME_BSCA_ProfitPriceStdEntered = \"BSCA_ProfitPriceStdEntered\";\n\n\t/** Set Profit Price Std Entered\t */\n\tpublic void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);\n\n\t/** Get Profit Price Std Entered\t */\n\tpublic BigDecimal getBSCA_ProfitPriceStdEntered();\n\n /** Column name BSCA_QtyCurrent */\n public static final String COLUMNNAME_BSCA_QtyCurrent = \"BSCA_QtyCurrent\";\n\n\t/** Set Qty Current\t */\n\tpublic void setBSCA_QtyCurrent (BigDecimal BSCA_QtyCurrent);\n\n\t/** Get Qty Current\t */\n\tpublic BigDecimal getBSCA_QtyCurrent();\n\n /** Column name BSCA_SendTxtScale */\n public static final String COLUMNNAME_BSCA_SendTxtScale = \"BSCA_SendTxtScale\";\n\n\t/** Set Send Txt Scale\t */\n\tpublic void setBSCA_SendTxtScale (String BSCA_SendTxtScale);\n\n\t/** Get Send Txt Scale\t */\n\tpublic String getBSCA_SendTxtScale();\n\n /** Column name C_DocType_ID */\n public static final String COLUMNNAME_C_DocType_ID = \"C_DocType_ID\";\n\n\t/** Set Document Type.\n\t * Document type or rules\n\t */\n\tpublic void setC_DocType_ID (int C_DocType_ID);\n\n\t/** Get Document Type.\n\t * Document type or rules\n\t */\n\tpublic int getC_DocType_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;\n\n /** Column name C_DocTypeTarget_ID */\n public static final String COLUMNNAME_C_DocTypeTarget_ID = \"C_DocTypeTarget_ID\";\n\n\t/** Set Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);\n\n\t/** Get Target Document Type.\n\t * Target document type for conversing documents\n\t */\n\tpublic int getC_DocTypeTarget_ID();\n\n\tpublic org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name DateCompleted */\n public static final String COLUMNNAME_DateCompleted = \"DateCompleted\";\n\n\t/** Set Date Completed\t */\n\tpublic void setDateCompleted (Timestamp DateCompleted);\n\n\t/** Get Date Completed\t */\n\tpublic Timestamp getDateCompleted();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DateOrdered */\n public static final String COLUMNNAME_DateOrdered = \"DateOrdered\";\n\n\t/** Set Date Ordered.\n\t * Date of Order\n\t */\n\tpublic void setDateOrdered (Timestamp DateOrdered);\n\n\t/** Get Date Ordered.\n\t * Date of Order\n\t */\n\tpublic Timestamp getDateOrdered();\n\n /** Column name DatePrepared */\n public static final String COLUMNNAME_DatePrepared = \"DatePrepared\";\n\n\t/** Set Date Prepared\t */\n\tpublic void setDatePrepared (Timestamp DatePrepared);\n\n\t/** Get Date Prepared\t */\n\tpublic Timestamp getDatePrepared();\n\n /** Column name DocAction */\n public static final String COLUMNNAME_DocAction = \"DocAction\";\n\n\t/** Set Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic void setDocAction (String DocAction);\n\n\t/** Get Document Action.\n\t * The targeted status of the document\n\t */\n\tpublic String getDocAction();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsApproved */\n public static final String COLUMNNAME_IsApproved = \"IsApproved\";\n\n\t/** Set Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic void setIsApproved (boolean IsApproved);\n\n\t/** Get Approved.\n\t * Indicates if this document requires approval\n\t */\n\tpublic boolean isApproved();\n\n /** Column name IsFixPrice */\n public static final String COLUMNNAME_IsFixPrice = \"IsFixPrice\";\n\n\t/** Set Is Fix Price\t */\n\tpublic void setIsFixPrice (String IsFixPrice);\n\n\t/** Get Is Fix Price\t */\n\tpublic String getIsFixPrice();\n\n /** Column name IsFromMassUpdate */\n public static final String COLUMNNAME_IsFromMassUpdate = \"IsFromMassUpdate\";\n\n\t/** Set Is From Mass Update\t */\n\tpublic void setIsFromMassUpdate (boolean IsFromMassUpdate);\n\n\t/** Get Is From Mass Update\t */\n\tpublic boolean isFromMassUpdate();\n\n /** Column name IsSetPriceLimit */\n public static final String COLUMNNAME_IsSetPriceLimit = \"IsSetPriceLimit\";\n\n\t/** Set Is Set Price Limit\t */\n\tpublic void setIsSetPriceLimit (boolean IsSetPriceLimit);\n\n\t/** Get Is Set Price Limit\t */\n\tpublic boolean isSetPriceLimit();\n\n /** Column name IsSetPriceList */\n public static final String COLUMNNAME_IsSetPriceList = \"IsSetPriceList\";\n\n\t/** Set Is Set Price List\t */\n\tpublic void setIsSetPriceList (boolean IsSetPriceList);\n\n\t/** Get Is Set Price List\t */\n\tpublic boolean isSetPriceList();\n\n /** Column name IsSetPriceStd */\n public static final String COLUMNNAME_IsSetPriceStd = \"IsSetPriceStd\";\n\n\t/** Set Is Set Price Std\t */\n\tpublic void setIsSetPriceStd (boolean IsSetPriceStd);\n\n\t/** Get Is Set Price Std\t */\n\tpublic boolean isSetPriceStd();\n\n /** Column name IsVoidPrevDocs */\n public static final String COLUMNNAME_IsVoidPrevDocs = \"IsVoidPrevDocs\";\n\n\t/** Set Is Void Previous Documents\t */\n\tpublic void setIsVoidPrevDocs (boolean IsVoidPrevDocs);\n\n\t/** Get Is Void Previous Documents\t */\n\tpublic boolean isVoidPrevDocs();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name M_InOut_ID */\n public static final String COLUMNNAME_M_InOut_ID = \"M_InOut_ID\";\n\n\t/** Set Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic void setM_InOut_ID (int M_InOut_ID);\n\n\t/** Get Shipment/Receipt.\n\t * Material Shipment Document\n\t */\n\tpublic int getM_InOut_ID();\n\n\tpublic org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;\n\n /** Column name M_MovementConfirm_ID */\n public static final String COLUMNNAME_M_MovementConfirm_ID = \"M_MovementConfirm_ID\";\n\n\t/** Set Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic void setM_MovementConfirm_ID (int M_MovementConfirm_ID);\n\n\t/** Get Move Confirm.\n\t * Inventory Move Confirmation\n\t */\n\tpublic int getM_MovementConfirm_ID();\n\n\tpublic org.compiere.model.I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException;\n\n /** Column name MovementDate */\n public static final String COLUMNNAME_MovementDate = \"MovementDate\";\n\n\t/** Set Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic void setMovementDate (Timestamp MovementDate);\n\n\t/** Get Movement Date.\n\t * Date a product was moved in or out of inventory\n\t */\n\tpublic Timestamp getMovementDate();\n\n /** Column name M_PriceList_Version_ID */\n public static final String COLUMNNAME_M_PriceList_Version_ID = \"M_PriceList_Version_ID\";\n\n\t/** Set Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic void setM_PriceList_Version_ID (int M_PriceList_Version_ID);\n\n\t/** Get Price List Version.\n\t * Identifies a unique instance of a Price List\n\t */\n\tpublic int getM_PriceList_Version_ID();\n\n\tpublic org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_Production_ID */\n public static final String COLUMNNAME_M_Production_ID = \"M_Production_ID\";\n\n\t/** Set Production.\n\t * Plan for producing a product\n\t */\n\tpublic void setM_Production_ID (int M_Production_ID);\n\n\t/** Get Production.\n\t * Plan for producing a product\n\t */\n\tpublic int getM_Production_ID();\n\n\tpublic org.compiere.model.I_M_Production getM_Production() throws RuntimeException;\n\n /** Column name PercentageProfitPLimit */\n public static final String COLUMNNAME_PercentageProfitPLimit = \"PercentageProfitPLimit\";\n\n\t/** Set Percentage Profit Price Limit\t */\n\tpublic void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);\n\n\t/** Get Percentage Profit Price Limit\t */\n\tpublic BigDecimal getPercentageProfitPLimit();\n\n /** Column name PercentageProfitPList */\n public static final String COLUMNNAME_PercentageProfitPList = \"PercentageProfitPList\";\n\n\t/** Set Percentage Profit Price List\t */\n\tpublic void setPercentageProfitPList (BigDecimal PercentageProfitPList);\n\n\t/** Get Percentage Profit Price List\t */\n\tpublic BigDecimal getPercentageProfitPList();\n\n /** Column name PercentageProfitPStd */\n public static final String COLUMNNAME_PercentageProfitPStd = \"PercentageProfitPStd\";\n\n\t/** Set Percentage Profit Price Standart\t */\n\tpublic void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);\n\n\t/** Get Percentage Profit Price Standart\t */\n\tpublic BigDecimal getPercentageProfitPStd();\n\n /** Column name PriceActual */\n public static final String COLUMNNAME_PriceActual = \"PriceActual\";\n\n\t/** Set Unit Price.\n\t * Actual Price \n\t */\n\tpublic void setPriceActual (BigDecimal PriceActual);\n\n\t/** Get Unit Price.\n\t * Actual Price \n\t */\n\tpublic BigDecimal getPriceActual();\n\n /** Column name PriceLastInv */\n public static final String COLUMNNAME_PriceLastInv = \"PriceLastInv\";\n\n\t/** Set Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic void setPriceLastInv (BigDecimal PriceLastInv);\n\n\t/** Get Last Invoice Price.\n\t * Price of the last invoice for the product\n\t */\n\tpublic BigDecimal getPriceLastInv();\n\n /** Column name PriceLastOrd */\n public static final String COLUMNNAME_PriceLastOrd = \"PriceLastOrd\";\n\n\t/** Set Price Last Order\t */\n\tpublic void setPriceLastOrd (BigDecimal PriceLastOrd);\n\n\t/** Get Price Last Order\t */\n\tpublic BigDecimal getPriceLastOrd();\n\n /** Column name PriceLastProduction */\n public static final String COLUMNNAME_PriceLastProduction = \"PriceLastProduction\";\n\n\t/** Set PriceLastProduction\t */\n\tpublic void setPriceLastProduction (BigDecimal PriceLastProduction);\n\n\t/** Get PriceLastProduction\t */\n\tpublic BigDecimal getPriceLastProduction();\n\n /** Column name PriceLimit */\n public static final String COLUMNNAME_PriceLimit = \"PriceLimit\";\n\n\t/** Set Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic void setPriceLimit (BigDecimal PriceLimit);\n\n\t/** Get Limit Price.\n\t * Lowest price for a product\n\t */\n\tpublic BigDecimal getPriceLimit();\n\n /** Column name PriceLimitEntered */\n public static final String COLUMNNAME_PriceLimitEntered = \"PriceLimitEntered\";\n\n\t/** Set Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic void setPriceLimitEntered (BigDecimal PriceLimitEntered);\n\n\t/** Get Limit Price.\n\t * Entered Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitEntered();\n\n /** Column name PriceLimitOld */\n public static final String COLUMNNAME_PriceLimitOld = \"PriceLimitOld\";\n\n\t/** Set Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic void setPriceLimitOld (BigDecimal PriceLimitOld);\n\n\t/** Get Limit Price Old.\n\t * Old Limit Price\n\t */\n\tpublic BigDecimal getPriceLimitOld();\n\n /** Column name PriceLimitWTax */\n public static final String COLUMNNAME_PriceLimitWTax = \"PriceLimitWTax\";\n\n\t/** Set Price Limit With Tax\t */\n\tpublic void setPriceLimitWTax (BigDecimal PriceLimitWTax);\n\n\t/** Get Price Limit With Tax\t */\n\tpublic BigDecimal getPriceLimitWTax();\n\n /** Column name PriceList */\n public static final String COLUMNNAME_PriceList = \"PriceList\";\n\n\t/** Set List Price.\n\t * List Price\n\t */\n\tpublic void setPriceList (BigDecimal PriceList);\n\n\t/** Get List Price.\n\t * List Price\n\t */\n\tpublic BigDecimal getPriceList();\n\n /** Column name PriceListEntered */\n public static final String COLUMNNAME_PriceListEntered = \"PriceListEntered\";\n\n\t/** Set List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic void setPriceListEntered (BigDecimal PriceListEntered);\n\n\t/** Get List Price Entered.\n\t * Entered List Price\n\t */\n\tpublic BigDecimal getPriceListEntered();\n\n /** Column name PriceListOld */\n public static final String COLUMNNAME_PriceListOld = \"PriceListOld\";\n\n\t/** Set List Price Old.\n\t * Old List Price\n\t */\n\tpublic void setPriceListOld (BigDecimal PriceListOld);\n\n\t/** Get List Price Old.\n\t * Old List Price\n\t */\n\tpublic BigDecimal getPriceListOld();\n\n /** Column name PriceListWTax */\n public static final String COLUMNNAME_PriceListWTax = \"PriceListWTax\";\n\n\t/** Set PriceList With Tax\t */\n\tpublic void setPriceListWTax (BigDecimal PriceListWTax);\n\n\t/** Get PriceList With Tax\t */\n\tpublic BigDecimal getPriceListWTax();\n\n /** Column name PriceStd */\n public static final String COLUMNNAME_PriceStd = \"PriceStd\";\n\n\t/** Set Standard Price.\n\t * Standard Price\n\t */\n\tpublic void setPriceStd (BigDecimal PriceStd);\n\n\t/** Get Standard Price.\n\t * Standard Price\n\t */\n\tpublic BigDecimal getPriceStd();\n\n /** Column name PriceStdEntered */\n public static final String COLUMNNAME_PriceStdEntered = \"PriceStdEntered\";\n\n\t/** Set Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic void setPriceStdEntered (BigDecimal PriceStdEntered);\n\n\t/** Get Standart Price.\n\t * Entered Standart Price\n\t */\n\tpublic BigDecimal getPriceStdEntered();\n\n /** Column name PriceStdOld */\n public static final String COLUMNNAME_PriceStdOld = \"PriceStdOld\";\n\n\t/** Set Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic void setPriceStdOld (BigDecimal PriceStdOld);\n\n\t/** Get Standart Price Old.\n\t * Old Standart Price\n\t */\n\tpublic BigDecimal getPriceStdOld();\n\n /** Column name PriceStdWTax */\n public static final String COLUMNNAME_PriceStdWTax = \"PriceStdWTax\";\n\n\t/** Set Price Standard With Tax\t */\n\tpublic void setPriceStdWTax (BigDecimal PriceStdWTax);\n\n\t/** Get Price Standard With Tax\t */\n\tpublic BigDecimal getPriceStdWTax();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name ProcessedOn */\n public static final String COLUMNNAME_ProcessedOn = \"ProcessedOn\";\n\n\t/** Set Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic void setProcessedOn (BigDecimal ProcessedOn);\n\n\t/** Get Processed On.\n\t * The date+time (expressed in decimal format) when the document has been processed\n\t */\n\tpublic BigDecimal getProcessedOn();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Product */\n public static final String COLUMNNAME_Product = \"Product\";\n\n\t/** Set Product\t */\n\tpublic void setProduct (String Product);\n\n\t/** Get Product\t */\n\tpublic String getProduct();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name TaxAmtPriceLimit */\n public static final String COLUMNNAME_TaxAmtPriceLimit = \"TaxAmtPriceLimit\";\n\n\t/** Set Tax Amt Price Limit\t */\n\tpublic void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);\n\n\t/** Get Tax Amt Price Limit\t */\n\tpublic BigDecimal getTaxAmtPriceLimit();\n\n /** Column name TaxAmtPriceList */\n public static final String COLUMNNAME_TaxAmtPriceList = \"TaxAmtPriceList\";\n\n\t/** Set Tax Amt Price List\t */\n\tpublic void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);\n\n\t/** Get Tax Amt Price List\t */\n\tpublic BigDecimal getTaxAmtPriceList();\n\n /** Column name TaxAmtPriceStd */\n public static final String COLUMNNAME_TaxAmtPriceStd = \"TaxAmtPriceStd\";\n\n\t/** Set Tax Amt Price Standard\t */\n\tpublic void setTaxAmtPriceStd (BigDecimal TaxAmtPriceStd);\n\n\t/** Get Tax Amt Price Standard\t */\n\tpublic BigDecimal getTaxAmtPriceStd();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User Element List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException;\n\n /** Column name User1W_ID */\n public static final String COLUMNNAME_User1W_ID = \"User1W_ID\";\n\n\t/** Set User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1W_ID (int User1W_ID);\n\n\t/** Get User Element List 1 W.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1W_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1W() throws RuntimeException;\n\n /** Column name User1X_ID */\n public static final String COLUMNNAME_User1X_ID = \"User1X_ID\";\n\n\t/** Set User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1X_ID (int User1X_ID);\n\n\t/** Get User Element List 1 X.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1X_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1X() throws RuntimeException;\n\n /** Column name User1Y_ID */\n public static final String COLUMNNAME_User1Y_ID = \"User1Y_ID\";\n\n\t/** Set User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Y_ID (int User1Y_ID);\n\n\t/** Get User Element List 1 Y.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Y_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Y() throws RuntimeException;\n\n /** Column name User1Z_ID */\n public static final String COLUMNNAME_User1Z_ID = \"User1Z_ID\";\n\n\t/** Set User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1Z_ID (int User1Z_ID);\n\n\t/** Get User Element List 1 Z.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1Z_ID();\n\n\tpublic org.compiere.model.I_C_ElementValue getUser1Z() throws RuntimeException;\n}", "public Double getTableBase() {\r\n return tableBase;\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_Collection_Default \n{\n\n /** TableName=LBR_Collection_Default */\n public static final String Table_Name = \"LBR_Collection_Default\";\n\n /** AD_Table_ID=1000052 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LBR_Accepted */\n public static final String COLUMNNAME_LBR_Accepted = \"LBR_Accepted\";\n\n\t/** Set Accepted\t */\n\tpublic void setLBR_Accepted (String LBR_Accepted);\n\n\t/** Get Accepted\t */\n\tpublic String getLBR_Accepted();\n\n /** Column name LBR_CNAB240DocType */\n public static final String COLUMNNAME_LBR_CNAB240DocType = \"LBR_CNAB240DocType\";\n\n\t/** Set Febraban Document Type\t */\n\tpublic void setLBR_CNAB240DocType (String LBR_CNAB240DocType);\n\n\t/** Get Febraban Document Type\t */\n\tpublic String getLBR_CNAB240DocType();\n\n /** Column name LBR_Collection_Default_ID */\n public static final String COLUMNNAME_LBR_Collection_Default_ID = \"LBR_Collection_Default_ID\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic int getLBR_Collection_Default_ID();\n\n /** Column name LBR_Collection_Default_UU */\n public static final String COLUMNNAME_LBR_Collection_Default_UU = \"LBR_Collection_Default_UU\";\n\n\t/** Set Bank Collection Defaults\t */\n\tpublic void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);\n\n\t/** Get Bank Collection Defaults\t */\n\tpublic String getLBR_Collection_Default_UU();\n\n /** Column name LBR_CollectionRegType */\n public static final String COLUMNNAME_LBR_CollectionRegType = \"LBR_CollectionRegType\";\n\n\t/** Set Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic void setLBR_CollectionRegType (String LBR_CollectionRegType);\n\n\t/** Get Registration Type.\n\t * Collection Registration Type\n\t */\n\tpublic String getLBR_CollectionRegType();\n\n /** Column name LBR_CollectionReturnCode */\n public static final String COLUMNNAME_LBR_CollectionReturnCode = \"LBR_CollectionReturnCode\";\n\n\t/** Set Collection Return Code\t */\n\tpublic void setLBR_CollectionReturnCode (String LBR_CollectionReturnCode);\n\n\t/** Get Collection Return Code\t */\n\tpublic String getLBR_CollectionReturnCode();\n\n /** Column name LBR_CollectionReturnDays */\n public static final String COLUMNNAME_LBR_CollectionReturnDays = \"LBR_CollectionReturnDays\";\n\n\t/** Set Collection Return Days\t */\n\tpublic void setLBR_CollectionReturnDays (int LBR_CollectionReturnDays);\n\n\t/** Get Collection Return Days\t */\n\tpublic int getLBR_CollectionReturnDays();\n\n /** Column name LBR_CollectionType */\n public static final String COLUMNNAME_LBR_CollectionType = \"LBR_CollectionType\";\n\n\t/** Set Collection Type\t */\n\tpublic void setLBR_CollectionType (String LBR_CollectionType);\n\n\t/** Get Collection Type\t */\n\tpublic String getLBR_CollectionType();\n\n /** Column name LBR_DirectDebitNotice */\n public static final String COLUMNNAME_LBR_DirectDebitNotice = \"LBR_DirectDebitNotice\";\n\n\t/** Set Direct Debit Notice\t */\n\tpublic void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);\n\n\t/** Get Direct Debit Notice\t */\n\tpublic String getLBR_DirectDebitNotice();\n\n /** Column name LBR_InterestAP */\n public static final String COLUMNNAME_LBR_InterestAP = \"LBR_InterestAP\";\n\n\t/** Set Interest Amount/Percentage\t */\n\tpublic void setLBR_InterestAP (BigDecimal LBR_InterestAP);\n\n\t/** Get Interest Amount/Percentage\t */\n\tpublic BigDecimal getLBR_InterestAP();\n\n /** Column name LBR_InterestCharge_ID */\n public static final String COLUMNNAME_LBR_InterestCharge_ID = \"LBR_InterestCharge_ID\";\n\n\t/** Set Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);\n\n\t/** Get Interest Charge.\n\t * Charge to allocate interests\n\t */\n\tpublic int getLBR_InterestCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_InterestCharge() throws RuntimeException;\n\n /** Column name LBR_InterestCode */\n public static final String COLUMNNAME_LBR_InterestCode = \"LBR_InterestCode\";\n\n\t/** Set Late Payment Interest Code\t */\n\tpublic void setLBR_InterestCode (String LBR_InterestCode);\n\n\t/** Get Late Payment Interest Code\t */\n\tpublic String getLBR_InterestCode();\n\n /** Column name LBR_InterestDays */\n public static final String COLUMNNAME_LBR_InterestDays = \"LBR_InterestDays\";\n\n\t/** Set Interest Days\t */\n\tpublic void setLBR_InterestDays (int LBR_InterestDays);\n\n\t/** Get Interest Days\t */\n\tpublic int getLBR_InterestDays();\n\n /** Column name LBR_LatePaymentPenaltyAP */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyAP = \"LBR_LatePaymentPenaltyAP\";\n\n\t/** Set Late Payment Penaulty Amount/Percentage\t */\n\tpublic void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);\n\n\t/** Get Late Payment Penaulty Amount/Percentage\t */\n\tpublic BigDecimal getLBR_LatePaymentPenaltyAP();\n\n /** Column name LBR_LatePaymentPenaltyCode */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyCode = \"LBR_LatePaymentPenaltyCode\";\n\n\t/** Set Late Payment Penaulty Code\t */\n\tpublic void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);\n\n\t/** Get Late Payment Penaulty Code\t */\n\tpublic String getLBR_LatePaymentPenaltyCode();\n\n /** Column name LBR_LatePaymentPenaltyDays */\n public static final String COLUMNNAME_LBR_LatePaymentPenaltyDays = \"LBR_LatePaymentPenaltyDays\";\n\n\t/** Set Late Payment Penaulty Days\t */\n\tpublic void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);\n\n\t/** Get Late Payment Penaulty Days\t */\n\tpublic int getLBR_LatePaymentPenaltyDays();\n\n /** Column name LBR_Message1 */\n public static final String COLUMNNAME_LBR_Message1 = \"LBR_Message1\";\n\n\t/** Set Message 1\t */\n\tpublic void setLBR_Message1 (String LBR_Message1);\n\n\t/** Get Message 1\t */\n\tpublic String getLBR_Message1();\n\n /** Column name LBR_Message2 */\n public static final String COLUMNNAME_LBR_Message2 = \"LBR_Message2\";\n\n\t/** Set Message 2\t */\n\tpublic void setLBR_Message2 (String LBR_Message2);\n\n\t/** Get Message 2\t */\n\tpublic String getLBR_Message2();\n\n /** Column name LBR_PartialPayment */\n public static final String COLUMNNAME_LBR_PartialPayment = \"LBR_PartialPayment\";\n\n\t/** Set Authorize Partial Payment\t */\n\tpublic void setLBR_PartialPayment (String LBR_PartialPayment);\n\n\t/** Get Authorize Partial Payment\t */\n\tpublic String getLBR_PartialPayment();\n\n /** Column name LBR_PaymentAllocationPriority */\n public static final String COLUMNNAME_LBR_PaymentAllocationPriority = \"LBR_PaymentAllocationPriority\";\n\n\t/** Set Payment Allocation Priority\t */\n\tpublic void setLBR_PaymentAllocationPriority (String LBR_PaymentAllocationPriority);\n\n\t/** Get Payment Allocation Priority\t */\n\tpublic String getLBR_PaymentAllocationPriority();\n\n /** Column name LBR_PenaltyCharge_ID */\n public static final String COLUMNNAME_LBR_PenaltyCharge_ID = \"LBR_PenaltyCharge_ID\";\n\n\t/** Set Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);\n\n\t/** Get Penalty Charge.\n\t * Charge to allocate penalty payments\n\t */\n\tpublic int getLBR_PenaltyCharge_ID();\n\n\tpublic org.compiere.model.I_C_Charge getLBR_PenaltyCharge() throws RuntimeException;\n\n /** Column name LBR_ProtestCode */\n public static final String COLUMNNAME_LBR_ProtestCode = \"LBR_ProtestCode\";\n\n\t/** Set Protest Code.\n\t * Protest Code\n\t */\n\tpublic void setLBR_ProtestCode (String LBR_ProtestCode);\n\n\t/** Get Protest Code.\n\t * Protest Code\n\t */\n\tpublic String getLBR_ProtestCode();\n\n /** Column name LBR_ProtestDays */\n public static final String COLUMNNAME_LBR_ProtestDays = \"LBR_ProtestDays\";\n\n\t/** Set Protest Days.\n\t * Protest Days\n\t */\n\tpublic void setLBR_ProtestDays (int LBR_ProtestDays);\n\n\t/** Get Protest Days.\n\t * Protest Days\n\t */\n\tpublic int getLBR_ProtestDays();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public String getBackEnd() {\n if (_avTable.get(ATTR_BE_NAME) == null\n || _avTable.get(ATTR_BE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_BE_NAME, \"acsis\", 0);\n }\n\n return _avTable.get(ATTR_BE_NAME);\n }", "float getCPC() throws SQLException;", "public List<IkrInstanceData> fetchDBMS_SYBASE_PROCESS()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseProcessMeasurement measurement = (SybaseProcessMeasurement)client.getMeasurement(\"DBMS_SYBASE_PROCESS\");\r\n\r\n\t\tfor(SybaseProcessResult info : measurement.getProcessResult())\r\n\t\t\tres.add(new SybaseProcessIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\t\r\n\t\treturn res;\t\r\n\t}", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "String getBaseTable();", "BTable createBTable();", "@Override\n public String getBaseTable() {\n Object ref = baseTable_;\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 baseTable_ = s;\n return s;\n }\n }", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public void insert(WkBscCore record) {\r\n getSqlMapClientTemplate().insert(\"WK_BSC_CORE.ibatorgenerated_insert\", record);\r\n }", "@Override\n public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_DocLine_ICMS \n{\n\n /** TableName=LBR_DocLine_ICMS */\n public static final String Table_Name = \"LBR_DocLine_ICMS\";\n\n /** AD_Table_ID=1000027 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsTaxIncluded */\n public static final String COLUMNNAME_IsTaxIncluded = \"IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setIsTaxIncluded (boolean IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isTaxIncluded();\n\n /** Column name LBR_CEST_ID */\n public static final String COLUMNNAME_LBR_CEST_ID = \"LBR_CEST_ID\";\n\n\t/** Set CEST\t */\n\tpublic void setLBR_CEST_ID (int LBR_CEST_ID);\n\n\t/** Get CEST\t */\n\tpublic int getLBR_CEST_ID();\n\n\tpublic I_LBR_CEST getLBR_CEST() throws RuntimeException;\n\n /** Column name LBR_DIFAL_RateICMSInterPart */\n public static final String COLUMNNAME_LBR_DIFAL_RateICMSInterPart = \"LBR_DIFAL_RateICMSInterPart\";\n\n\t/** Set DIFAL Share Rate (%)\t */\n\tpublic void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);\n\n\t/** Get DIFAL Share Rate (%)\t */\n\tpublic BigDecimal getLBR_DIFAL_RateICMSInterPart();\n\n /** Column name LBR_DIFAL_TaxAmtFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtFCPUFDest = \"LBR_DIFAL_TaxAmtFCPUFDest\";\n\n\t/** Set DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);\n\n\t/** Get DIFAL Tax Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFDest = \"LBR_DIFAL_TaxAmtICMSUFDest\";\n\n\t/** Set DIFAL Tax Amt in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);\n\n\t/** Get DIFAL Tax Amt in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();\n\n /** Column name LBR_DIFAL_TaxAmtICMSUFRemet */\n public static final String COLUMNNAME_LBR_DIFAL_TaxAmtICMSUFRemet = \"LBR_DIFAL_TaxAmtICMSUFRemet\";\n\n\t/** Set DIFAL Tax Amt in Sender UF\t */\n\tpublic void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);\n\n\t/** Get DIFAL Tax Amt in Sender UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxAmtICMSUFRemet();\n\n /** Column name LBR_DIFAL_TaxBaseFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxBaseFCPUFDest = \"LBR_DIFAL_TaxBaseFCPUFDest\";\n\n\t/** Set DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);\n\n\t/** Get DIFAL Tax Base Amt of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateFCPUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateFCPUFDest = \"LBR_DIFAL_TaxRateFCPUFDest\";\n\n\t/** Set DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);\n\n\t/** Get DIFAL Tax Rate of \"Fundo de Combate a Pobreza\"\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();\n\n /** Column name LBR_DIFAL_TaxRateICMSUFDest */\n public static final String COLUMNNAME_LBR_DIFAL_TaxRateICMSUFDest = \"LBR_DIFAL_TaxRateICMSUFDest\";\n\n\t/** Set DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);\n\n\t/** Get DIFAL Internal Tax Rate in Receiver UF\t */\n\tpublic BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();\n\n /** Column name LBR_DocLine_Details_ID */\n public static final String COLUMNNAME_LBR_DocLine_Details_ID = \"LBR_DocLine_Details_ID\";\n\n\t/** Set Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);\n\n\t/** Get Doc Line Details.\n\t * Doc Line Details\n\t */\n\tpublic int getLBR_DocLine_Details_ID();\n\n\tpublic I_LBR_DocLine_Details getLBR_DocLine_Details() throws RuntimeException;\n\n /** Column name LBR_DocLine_ICMS_ID */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_ID = \"LBR_DocLine_ICMS_ID\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic int getLBR_DocLine_ICMS_ID();\n\n /** Column name LBR_DocLine_ICMS_UU */\n public static final String COLUMNNAME_LBR_DocLine_ICMS_UU = \"LBR_DocLine_ICMS_UU\";\n\n\t/** Set Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);\n\n\t/** Get Doc Line ICMS.\n\t * Doc Line ICMS\n\t */\n\tpublic String getLBR_DocLine_ICMS_UU();\n\n /** Column name LBR_ICMS_OwnTaxStatus */\n public static final String COLUMNNAME_LBR_ICMS_OwnTaxStatus = \"LBR_ICMS_OwnTaxStatus\";\n\n\t/** Set Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);\n\n\t/** Get Declarant ICMS Tax Status.\n\t * ICMS tax status from the point of view of the declarant\n\t */\n\tpublic String getLBR_ICMS_OwnTaxStatus();\n\n /** Column name LBR_ICMS_TaxAmtOp */\n public static final String COLUMNNAME_LBR_ICMS_TaxAmtOp = \"LBR_ICMS_TaxAmtOp\";\n\n\t/** Set ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);\n\n\t/** Get ICMS Tax Operation Amount.\n\t * Identifies the ICMS Tax Operation Amount\n\t */\n\tpublic BigDecimal getLBR_ICMS_TaxAmtOp();\n\n /** Column name LBR_ICMS_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMS_TaxBaseType = \"LBR_ICMS_TaxBaseType\";\n\n\t/** Set ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);\n\n\t/** Get ICMS Tax Base Type.\n\t * Identifies a ICMS Tax Base Type\n\t */\n\tpublic String getLBR_ICMS_TaxBaseType();\n\n /** Column name LBR_ICMS_TaxReliefType */\n public static final String COLUMNNAME_LBR_ICMS_TaxReliefType = \"LBR_ICMS_TaxReliefType\";\n\n\t/** Set ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);\n\n\t/** Get ICMS Tax Relief Type.\n\t * Identifies the ICMS Tax Relief Type\n\t */\n\tpublic String getLBR_ICMS_TaxReliefType();\n\n /** Column name LBR_ICMS_TaxStatusSN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusSN = \"LBR_ICMS_TaxStatusSN\";\n\n\t/** Set ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);\n\n\t/** Get ICMS Tax Status (Simple).\n\t * Identifies a ICMS Tax Status in a simple taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusSN();\n\n /** Column name LBR_ICMS_TaxStatusTN */\n public static final String COLUMNNAME_LBR_ICMS_TaxStatusTN = \"LBR_ICMS_TaxStatusTN\";\n\n\t/** Set ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);\n\n\t/** Get ICMS Tax Status (Standard Taxation).\n\t * Identifies a ICMS Tax Status in a standard taxation\n\t */\n\tpublic String getLBR_ICMS_TaxStatusTN();\n\n /** Column name LBR_ICMSRegime */\n public static final String COLUMNNAME_LBR_ICMSRegime = \"LBR_ICMSRegime\";\n\n\t/** Set ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic void setLBR_ICMSRegime (String LBR_ICMSRegime);\n\n\t/** Get ICMS Regime.\n\t * Identifies a ICMS Regime for taxes\n\t */\n\tpublic String getLBR_ICMSRegime();\n\n /** Column name LBR_ICMSST_IsTaxIncluded */\n public static final String COLUMNNAME_LBR_ICMSST_IsTaxIncluded = \"LBR_ICMSST_IsTaxIncluded\";\n\n\t/** Set Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic void setLBR_ICMSST_IsTaxIncluded (boolean LBR_ICMSST_IsTaxIncluded);\n\n\t/** Get Price includes Tax.\n\t * Tax is included in the price \n\t */\n\tpublic boolean isLBR_ICMSST_IsTaxIncluded();\n\n /** Column name LBR_ICMSST_TaxAdded */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAdded = \"LBR_ICMSST_TaxAdded\";\n\n\t/** Set ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic void setLBR_ICMSST_TaxAdded (BigDecimal LBR_ICMSST_TaxAdded);\n\n\t/** Get ICMS-ST Added Amount Margin (%).\n\t * Identifies the ICMS-ST Added Amount Margin in percentage\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAdded();\n\n /** Column name LBR_ICMSST_TaxAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmt = \"LBR_ICMSST_TaxAmt\";\n\n\t/** Set ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmt (BigDecimal LBR_ICMSST_TaxAmt);\n\n\t/** Get ICMS-ST Tax Amount.\n\t * Defines the ICMS-ST Tax Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmt();\n\n /** Column name LBR_ICMSST_TaxAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFDes = \"LBR_ICMSST_TaxAmtUFDes\";\n\n\t/** Set ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);\n\n\t/** Get ICMS-ST Amount in Receiver UF.\n\t * Identifies the ICMS-ST Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtUFSen = \"LBR_ICMSST_TaxAmtUFSen\";\n\n\t/** Set ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);\n\n\t/** Get ICMS-ST Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxAmtWhd = \"LBR_ICMSST_TaxAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxAmtWhd (BigDecimal LBR_ICMSST_TaxAmtWhd);\n\n\t/** Get ICMS-ST Withheld Amount.\n\t * Identifies the ICMS-ST Withheld Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBAmtUFDes */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFDes = \"LBR_ICMSST_TaxBAmtUFDes\";\n\n\t/** Set ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);\n\n\t/** Get ICMS-ST Base Amount in Receiver UF.\n\t * Identifies the ICMS-ST Base Amount in Receiver UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFDes();\n\n /** Column name LBR_ICMSST_TaxBAmtUFSen */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtUFSen = \"LBR_ICMSST_TaxBAmtUFSen\";\n\n\t/** Set ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);\n\n\t/** Get ICMS-ST Base Amount withheld in Sender UF.\n\t * Identifies the ICMS-ST Base Amount withheld in Sender UF\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtUFSen();\n\n /** Column name LBR_ICMSST_TaxBAmtWhd */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBAmtWhd = \"LBR_ICMSST_TaxBAmtWhd\";\n\n\t/** Set ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);\n\n\t/** Get ICMS-ST Withheld Base Amount.\n\t * Identifies the ICMS-ST Withheld Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBAmtWhd();\n\n /** Column name LBR_ICMSST_TaxBase */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBase = \"LBR_ICMSST_TaxBase\";\n\n\t/** Set ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);\n\n\t/** Get ICMS-ST Tax Base.\n\t * Indicates the ICMS-ST Tax Base\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBase();\n\n /** Column name LBR_ICMSST_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseAmt = \"LBR_ICMSST_TaxBaseAmt\";\n\n\t/** Set ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);\n\n\t/** Get ICMS-ST Tax Base Amount.\n\t * Defines the ICMS-ST Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxBaseAmt();\n\n /** Column name LBR_ICMSST_TaxBaseType */\n public static final String COLUMNNAME_LBR_ICMSST_TaxBaseType = \"LBR_ICMSST_TaxBaseType\";\n\n\t/** Set ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);\n\n\t/** Get ICMS-ST Tax Base Type.\n\t * Identifies a ICMS-ST Tax Base Type\n\t */\n\tpublic String getLBR_ICMSST_TaxBaseType();\n\n /** Column name LBR_ICMSST_TaxRate */\n public static final String COLUMNNAME_LBR_ICMSST_TaxRate = \"LBR_ICMSST_TaxRate\";\n\n\t/** Set ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic void setLBR_ICMSST_TaxRate (BigDecimal LBR_ICMSST_TaxRate);\n\n\t/** Get ICMS-ST Tax Rate.\n\t * Indicates the ICMS-ST Tax Rate\n\t */\n\tpublic BigDecimal getLBR_ICMSST_TaxRate();\n\n /** Column name LBR_ICMSST_TaxUFDue_ID */\n public static final String COLUMNNAME_LBR_ICMSST_TaxUFDue_ID = \"LBR_ICMSST_TaxUFDue_ID\";\n\n\t/** Set ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic void setLBR_ICMSST_TaxUFDue_ID (int LBR_ICMSST_TaxUFDue_ID);\n\n\t/** Get ICMS-ST UF Due.\n\t * Identifies the ICMS-ST UF Due\n\t */\n\tpublic int getLBR_ICMSST_TaxUFDue_ID();\n\n\tpublic org.compiere.model.I_C_Region getLBR_ICMSST_TaxUFDue() throws RuntimeException;\n\n /** Column name LBR_ProductSource */\n public static final String COLUMNNAME_LBR_ProductSource = \"LBR_ProductSource\";\n\n\t/** Set Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic void setLBR_ProductSource (String LBR_ProductSource);\n\n\t/** Get Product Source.\n\t * Identifies a Product Source\n\t */\n\tpublic String getLBR_ProductSource();\n\n /** Column name LBR_TaxAmt */\n public static final String COLUMNNAME_LBR_TaxAmt = \"LBR_TaxAmt\";\n\n\t/** Set Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);\n\n\t/** Get Tax Amount.\n\t * Defines the Tax Amount\n\t */\n\tpublic BigDecimal getLBR_TaxAmt();\n\n /** Column name LBR_TaxAmtCredit */\n public static final String COLUMNNAME_LBR_TaxAmtCredit = \"LBR_TaxAmtCredit\";\n\n\t/** Set Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);\n\n\t/** Get Tax Amount Credit.\n\t * Identifies the Tax Amount Credit\n\t */\n\tpublic BigDecimal getLBR_TaxAmtCredit();\n\n /** Column name LBR_TaxBase */\n public static final String COLUMNNAME_LBR_TaxBase = \"LBR_TaxBase\";\n\n\t/** Set Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic void setLBR_TaxBase (BigDecimal LBR_TaxBase);\n\n\t/** Get Tax Base.\n\t * Indicates the Tax Base\n\t */\n\tpublic BigDecimal getLBR_TaxBase();\n\n /** Column name LBR_TaxBaseAmt */\n public static final String COLUMNNAME_LBR_TaxBaseAmt = \"LBR_TaxBaseAmt\";\n\n\t/** Set Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);\n\n\t/** Get Tax Base Amount.\n\t * Defines the Tax Base Amount\n\t */\n\tpublic BigDecimal getLBR_TaxBaseAmt();\n\n /** Column name LBR_TaxBaseOwnOperation */\n public static final String COLUMNNAME_LBR_TaxBaseOwnOperation = \"LBR_TaxBaseOwnOperation\";\n\n\t/** Set Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);\n\n\t/** Get Tax Base Own Operation (%).\n\t * Identifies the Tax Base Own Operation in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxBaseOwnOperation();\n\n /** Column name LBR_TaxDeferralAmt */\n public static final String COLUMNNAME_LBR_TaxDeferralAmt = \"LBR_TaxDeferralAmt\";\n\n\t/** Set Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);\n\n\t/** Get Tax Deferral Amount.\n\t * Identifies the Tax Deferral Amount\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralAmt();\n\n /** Column name LBR_TaxDeferralRate */\n public static final String COLUMNNAME_LBR_TaxDeferralRate = \"LBR_TaxDeferralRate\";\n\n\t/** Set Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);\n\n\t/** Get Tax Deferral Rate (%).\n\t * Identifies the Tax Deferral Rate (%)\n\t */\n\tpublic BigDecimal getLBR_TaxDeferralRate();\n\n /** Column name LBR_TaxRate */\n public static final String COLUMNNAME_LBR_TaxRate = \"LBR_TaxRate\";\n\n\t/** Set Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic void setLBR_TaxRate (BigDecimal LBR_TaxRate);\n\n\t/** Get Tax Rate.\n\t * Indicates the Tax Rate\n\t */\n\tpublic BigDecimal getLBR_TaxRate();\n\n /** Column name LBR_TaxRateCredit */\n public static final String COLUMNNAME_LBR_TaxRateCredit = \"LBR_TaxRateCredit\";\n\n\t/** Set Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);\n\n\t/** Get Tax Rate Credit (%).\n\t * Identifies the Tax Rate Credit in percentage\n\t */\n\tpublic BigDecimal getLBR_TaxRateCredit();\n\n /** Column name LBR_TaxReliefAmt */\n public static final String COLUMNNAME_LBR_TaxReliefAmt = \"LBR_TaxReliefAmt\";\n\n\t/** Set Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);\n\n\t/** Get Tax Relief Amount.\n\t * Identifies the Tax Relief Amount\n\t */\n\tpublic BigDecimal getLBR_TaxReliefAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) {\r\n WkBscCore key = new WkBscCore();\r\n key.setBscid(bscid);\r\n key.setWeek(week);\r\n key.setYear(year);\r\n WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject(\"WK_BSC_CORE.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "public LFIBTRBOLogic(Map<String, String> table) throws WTException {\n\n\t\t// fetch and store the table.\n\t\tthis.requesttable = table;\n\n\t\t// get the oid from the request table.\n\t\tif (FormatHelper.hasContent(this.requesttable.get(\"oid\"))) {\n\t\t\t// set the season to the global variable\n\t\t\tthis.season = (LCSSeason) LCSQuery.findObjectById(this.requesttable\n\t\t\t\t\t.get(\"oid\"));\n\t\t\t// set the seasonVersionId global variable\n\t\t\tif (season != null) {\n\t\t\t\tthis.seasonVersionId = FormatHelper\n\t\t\t\t\t\t.getNumericVersionIdFromObject(this.season);\n\t\t\t}\n\t\t}\n\t\tthis.masterRevEntity = this.getSAPMaterialMasterForSeason();\n\t\tif (this.masterRevEntity == null) {\n\t\t\tLCSLog.debug(\"masterRevEntity NOT FOUND. Creating masterRevEntity\");\n\t\t\tthis.masterRevEntity = createMasterRevisableEntity();\n\n\t\t}\n\t}", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "public List<IkrInstanceData> fetchDBMS_SYBASE_DEVICE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseDeviceMeasurement measurement = (SybaseDeviceMeasurement)client.getMeasurement(\"DBMS_SYBASE_DEVICE\");\r\n\r\n\t\tfor(SybaseDeviceIOResult info : measurement.getDeviceIOResult())\r\n\t\t\tres.add(new SybaseDeviceIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t info, \r\n\t\t\t\t\t\t\t\t\t\t\t\t fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getBaseTable() {\n Object ref = baseTable_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n baseTable_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public String getBKA001() {\n return BKA001;\n }", "public abstract String getDB2ProductTypeTestSql();", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "abstract public int dbVersion();", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "@Override\n public int getDatabaseMajorVersion() {\n return 1;\n }", "public com.google.protobuf.ByteString\n getBaseTableBytes() {\n Object ref = baseTable_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n baseTable_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_ENGINE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseEngineMeasurement measurement = (SybaseEngineMeasurement)client.getMeasurement(\"DBMS_SYBASE_ENGINE\");\r\n\t\t\r\n\t\tfor(SybaseEngineResult info : measurement.getEngineResult())\r\n\t\t\tres.add(new SybaseEngineIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\t\r\n\t\treturn res;\r\n\t}", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "public BusinessSql getObjBusinessSql() {\n return objBusinessSql;\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public VRpDyCellGprsCsBhDAOImpl() {\r\n super();\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "private bildeBaseColumns() {\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public int getC_BPartner_ID();", "public Integer getBcId() {\n return bcId;\n }", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public Builder setBaseTableBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public String getSclb() {\n return sclb;\n }", "public abstract void mo9244b(C0620bi biVar);", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "public String getDbTable() {return dbTable;}", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"all\")\npublic interface I_C_Decoris_PreOrderLine \n{\n\n /** TableName=C_Decoris_PreOrderLine */\n public static final String Table_Name = \"C_Decoris_PreOrderLine\";\n\n /** AD_Table_ID=1000199 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Decoris_PreOrder_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrder_ID = \"C_Decoris_PreOrder_ID\";\n\n\t/** Set C_Decoris_PreOrder\t */\n\tpublic void setC_Decoris_PreOrder_ID (int C_Decoris_PreOrder_ID);\n\n\t/** Get C_Decoris_PreOrder\t */\n\tpublic int getC_Decoris_PreOrder_ID();\n\n\tpublic I_C_Decoris_PreOrder getC_Decoris_PreOrder() throws RuntimeException;\n\n /** Column name C_Decoris_PreOrderLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_ID = \"C_Decoris_PreOrderLine_ID\";\n\n\t/** Set C_Decoris_PreOrderLine\t */\n\tpublic void setC_Decoris_PreOrderLine_ID (int C_Decoris_PreOrderLine_ID);\n\n\t/** Get C_Decoris_PreOrderLine\t */\n\tpublic int getC_Decoris_PreOrderLine_ID();\n\n /** Column name C_Decoris_PreOrderLine_UU */\n public static final String COLUMNNAME_C_Decoris_PreOrderLine_UU = \"C_Decoris_PreOrderLine_UU\";\n\n\t/** Set C_Decoris_PreOrderLine_UU\t */\n\tpublic void setC_Decoris_PreOrderLine_UU (String C_Decoris_PreOrderLine_UU);\n\n\t/** Get C_Decoris_PreOrderLine_UU\t */\n\tpublic String getC_Decoris_PreOrderLine_UU();\n\n /** Column name C_Decoris_PreSalesLine_ID */\n public static final String COLUMNNAME_C_Decoris_PreSalesLine_ID = \"C_Decoris_PreSalesLine_ID\";\n\n\t/** Set Decoris Presales Line\t */\n\tpublic void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);\n\n\t/** Get Decoris Presales Line\t */\n\tpublic int getC_Decoris_PreSalesLine_ID();\n\n\tpublic I_C_Decoris_PreSalesLine getC_Decoris_PreSalesLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LineNetAmt */\n public static final String COLUMNNAME_LineNetAmt = \"LineNetAmt\";\n\n\t/** Set Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic void setLineNetAmt (BigDecimal LineNetAmt);\n\n\t/** Get Line Amount.\n\t * Line Extended Amount (Quantity * Actual Price) without Freight and Charges\n\t */\n\tpublic BigDecimal getLineNetAmt();\n\n /** Column name LineNo */\n public static final String COLUMNNAME_LineNo = \"LineNo\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLineNo (int LineNo);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLineNo();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Set Instance.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Fifapps_Objcodes_ID */\n public static final String COLUMNNAME_M_Fifapps_Objcodes_ID = \"M_Fifapps_Objcodes_ID\";\n\n\t/** Set M_Fifapps_Objcodes\t */\n\tpublic void setM_Fifapps_Objcodes_ID (int M_Fifapps_Objcodes_ID);\n\n\t/** Get M_Fifapps_Objcodes\t */\n\tpublic int getM_Fifapps_Objcodes_ID();\n\n\tpublic I_M_Fifapps_Objcodes getM_Fifapps_Objcodes() throws RuntimeException;\n\n /** Column name M_Fifapps_Supplier_ID */\n public static final String COLUMNNAME_M_Fifapps_Supplier_ID = \"M_Fifapps_Supplier_ID\";\n\n\t/** Set M_Fifapps_Supplier\t */\n\tpublic void setM_Fifapps_Supplier_ID (int M_Fifapps_Supplier_ID);\n\n\t/** Get M_Fifapps_Supplier\t */\n\tpublic int getM_Fifapps_Supplier_ID();\n\n\tpublic I_M_Fifapps_Supplier getM_Fifapps_Supplier() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceEntered */\n public static final String COLUMNNAME_PriceEntered = \"PriceEntered\";\n\n\t/** Set Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic void setPriceEntered (BigDecimal PriceEntered);\n\n\t/** Get Price.\n\t * Price Entered - the price based on the selected/base UoM\n\t */\n\tpublic BigDecimal getPriceEntered();\n\n /** Column name QtyEntered */\n public static final String COLUMNNAME_QtyEntered = \"QtyEntered\";\n\n\t/** Set Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic void setQtyEntered (BigDecimal QtyEntered);\n\n\t/** Get Quantity.\n\t * The Quantity Entered is based on the selected UoM\n\t */\n\tpublic BigDecimal getQtyEntered();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void boostingIBK() {\n\t\talgo.boostingIBK();\n\t}", "public String getBSB() {\n\t\tthis.setBSB(this.bsb);\n\t\treturn this.bsb;\n\t}", "public void getIBMTone() throws SQLException {\n\t\tfor (List<PageExtract> splitList : CommonFunctions.split(getList(), 30)) {\n\t\t\tgetIBMToneThreadList(splitList);\n\t\t}\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "public void setBscid(String bscid) {\r\n this.bscid = bscid;\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "public String getBversion() {\n return bversion;\n }", "public String getCHEQUE_BANK() {\r\n return CHEQUE_BANK;\r\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "public void setBscid(String bscid) {\n this.bscid = bscid;\n }", "@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public TblSells() throws ClassNotFoundException, SQLException {\n initComponents();\n updateTable();\n }", "public List equPartSub(String conid, String sxValue){\r\n\t\tString sql = \"select e.sb_id, l.sb_mc, e.ggxh, e.dw, e.zs, e.dhsl, \"\r\n\t\t\t\t\t+\"e.sccj, e.dj, e.zj, e.jzh, g.gg_date \"\r\n\t\t\t\t\t+\"from equ_sbdh e, equ_list l, equ_get_goods g \"\r\n\t\t\t\t\t+\"where e.dh_id = g.ggid and e.sb_id = l.sb_id and \"\r\n\t\t\t\t\t+\"e.conid = '\" + conid + \"' and e.sx = '\" + sxValue + \"'\";\r\n\t\tSystem.out.println(\"sql = \"+sql);\r\n\t\tJdbcTemplate jdbc = JdbcUtil.getJdbcTemplate();\r\n\t\tList list = jdbc.queryForList(sql);\r\n\t\treturn list;\r\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_NETWORK()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\t\r\n\t\t\r\n\t\tSybaseNetworkMeasurement measurement = (SybaseNetworkMeasurement)client.getMeasurement(\"DBMS_SYBASE_NETWORK\");\r\n\r\n\t\tres.add(new SybaseNetworkIkrInstanceData(client.getDatabaseInstance(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tmeasurement.getNetworkResult(), \r\n\t\t\t\t\t\t\t\t\t\t\t\tfetchDate));\t\t\r\n\t\treturn res;\r\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"scarab\");\n\n dbMap.addTable(\"SCARAB_MODULE\");\n TableMap tMap = dbMap.getTable(\"SCARAB_MODULE\");\n\n tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);\n\n tMap.setPrimaryKeyMethodInfo(tMap.getName());\n\n tMap.addPrimaryKey(\"SCARAB_MODULE.MODULE_ID\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.MODULE_NAME\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.DOMAIN\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_CODE\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_DESCRIPTION\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.MODULE_URL\", \"\");\n tMap.addColumn(\"SCARAB_MODULE.ARCHIVE_EMAIL\", \"\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.PARENT_ID\", new Integer(0) , \"SCARAB_MODULE\" ,\n \"MODULE_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.OWNER_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addForeignKey(\n \"SCARAB_MODULE.QA_CONTACT_ID\", new Integer(0) , \"TURBINE_USER\" ,\n \"USER_ID\");\n tMap.addColumn(\"SCARAB_MODULE.DELETED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.LOCKED\", new Integer(0));\n tMap.addColumn(\"SCARAB_MODULE.CLASS_KEY\", new Integer(0));\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public biletSayfasi() throws SQLException {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2,size.height/2 - getHeight()/2);\n \n veritabani_baglanti vb = new veritabani_baglanti();\n vb.baglan();\n updateCombo();\n \n }", "public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}", "public String getDatabaseProduct();", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "SQLBinary()\n\t{\n\t}", "int getBouncesNumber() throws SQLException;", "@SuppressWarnings(\"unchecked\")\n public Integer SaveBHC(RecepcionBHC details) throws Exception {\n try {\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(details);\n return 1;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return 0;\n }\n }", "public String getBKC098() {\n return BKC098;\n }", "B database(S database);", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "public int getBSCA_PriceChangePrev_ID();", "Table getBaseTable();", "public int getBId() {\n return instance.getBId();\n }" ]
[ "0.5359187", "0.5302035", "0.5274904", "0.52697295", "0.52107364", "0.5149667", "0.5120205", "0.5103196", "0.50807923", "0.5067874", "0.5066653", "0.5054995", "0.5047335", "0.50418675", "0.5037026", "0.50318813", "0.49980548", "0.49880207", "0.49839315", "0.49407482", "0.49353442", "0.49341533", "0.49102435", "0.4904572", "0.49042407", "0.4900859", "0.48909295", "0.48854232", "0.4870205", "0.48695022", "0.4868354", "0.4868354", "0.48669755", "0.48626778", "0.48521882", "0.48489067", "0.48459083", "0.48366544", "0.4830046", "0.48217636", "0.48217636", "0.4797089", "0.47962543", "0.47955814", "0.4794464", "0.47913992", "0.4790693", "0.47748256", "0.47632423", "0.47617236", "0.47613856", "0.4760547", "0.47458163", "0.47458163", "0.47398254", "0.47390306", "0.47355196", "0.4734321", "0.4732959", "0.47306743", "0.4723401", "0.47228697", "0.4717134", "0.47160393", "0.47032773", "0.47017264", "0.47006568", "0.47006568", "0.46956748", "0.4687494", "0.46852195", "0.4674706", "0.46693525", "0.46693525", "0.4660428", "0.4652804", "0.46512866", "0.46376696", "0.4636666", "0.4627343", "0.46192408", "0.4616324", "0.46154946", "0.45904824", "0.45902455", "0.45834363", "0.45823497", "0.4579371", "0.45776105", "0.4575677", "0.45711303", "0.45698887", "0.45692652", "0.45686257", "0.45667243", "0.456665", "0.4566539", "0.456302", "0.45626956", "0.45605582", "0.45575902" ]
0.0
-1
constructors Construct an XmlElementAdapter.
public XmlElementAdapter(XmlBean.BeanInfo infoBean, Class clzType, String sName, String sXml, XmlElement xml) { super(infoBean, clzType, sName, sXml, xml); azzert(XmlElement.class.isAssignableFrom(clzType)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XmlElement() {\n }", "@VisibleForTesting\n ElementAdapterFactory(AdapterFactory<CustomElementAdapter, CustomElement> customElementFactory,\n AdapterFactory<ChunkedTextElementAdapter, Element> chunkedTextElementFactory,\n AdapterFactory<ParameterizedTextElementAdapter, Element>\n parameterizedTextElementFactory,\n AdapterFactory<ImageElementAdapter, ImageElement> imageElementFactory,\n AdapterFactory<GridRowAdapter, GridRow> gridRowFactory,\n AdapterFactory<ElementListAdapter, ElementList> elementListFactory,\n AdapterFactory<ElementStackAdapter, ElementStack> elementStackFactory,\n KeyedRecyclerPool<ElementAdapter<? extends View, ?>> templateRecyclerPool) {\n this.mCustomElementFactory = customElementFactory;\n this.mChunkedTextElementFactory = chunkedTextElementFactory;\n this.mParameterizedTextElementFactory = parameterizedTextElementFactory;\n this.mImageElementFactory = imageElementFactory;\n this.mGridRowFactory = gridRowFactory;\n this.mElementListFactory = elementListFactory;\n this.mElementStackFactory = elementStackFactory;\n mFactories = Collections.unmodifiableList(Arrays.asList(customElementFactory,\n chunkedTextElementFactory, parameterizedTextElementFactory, imageElementFactory,\n gridRowFactory, elementListFactory, elementStackFactory));\n this.mTemplateRecyclerPool = templateRecyclerPool;\n }", "public XmlAdaptedPerson() {}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public AbstractElement() {\n }", "public JAXBConverter() {\n\t}", "private XmlHelper() {}", "public GenericElement() {\n\t}", "Element() {\n\t}", "public XmlAdaptedDistributor() {}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "public BasicElementList() {\n\t}", "protected abstract ArrayList<Element> _toXml_();", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public BaseElement() {\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public XmlAdaptedTask() {}", "public XmlAdaptedTask() {}", "public Adapter createEObjectAdapter() {\n return null;\n }", "public Adapter createEObjectAdapter() {\n return null;\n }", "private void initializeAdapter() {\n }", "public Element(Element element) {\n\t\tElement src = element.clone();\n\n\t\tthis.attributes = src.attributes;\n\t\tthis.name = src.name;\n\t\tthis.defxmlns = src.defxmlns;\n\t\tthis.xmlns = src.xmlns;\n\t\tthis.children = src.children;\n\t}", "public ElementBean(ElementView elementView) {\n super(elementView);\n dao = new ElementDAO();\n this.elementView = elementView;\n }", "public XmlElementDefinition(String elementName, XmlFieldSerializer serializer) {\r\n super();\r\n this.elementName = elementName;\r\n this.serializer = serializer;\r\n }", "public Adapter createEObjectAdapter() {\r\n return null;\r\n }", "public XmlAdaptedReminder() {}", "public DataAdapter() {\n }", "@Override\n public abstract void addToXmlElement(Element element);", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "protected abstract SingleTypeAdapter<E> createAdapter( final List<E> items );", "public ElementServiceImpl() {\n\t\tsuper();\n\t}", "public DeclarationAdapterFactory() {\n\t\t// Raise visibility\n\t}", "Element toXML();", "protected Element toXmlElementInternal(Document doc, String a_strXmlElementName)\n\t{\n\t\tElement listenerInterfaceNode = doc.createElement(a_strXmlElementName);\n\t\t/* Create the child nodes of ListenerInterface (Type, Port, Host) */\n\t\tElement typeNode = doc.createElement(\"Type\");\n\t\tElement hostNode;\n\t\tElement portNode = null;\n\t\tXMLUtil.setValue(typeNode, getProtocolAsString());\n\t\tif (getProtocol() == PROTOCOL_TYPE_RAW_UNIX)\n\t\t{\n\t\t\thostNode = doc.createElement(XML_ELEM_FILE);\n\t\t\tXMLUtil.setValue(hostNode, m_strHostname);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tportNode = doc.createElement(XML_ELEM_PORT);\n\t\t\tXMLUtil.setValue(portNode, m_iInetPort);\n\t\t\thostNode = doc.createElement(XML_ELEM_HOST);\n\t\t\tXMLUtil.setValue(hostNode, m_strHostname);\n\t\t}\n\t\t/*String ipString = null;\n\t\t try\n\t\t {\n\t\t InetAddress interfaceAddress = InetAddress.getByName(m_strHostname);\n\t\t ipString = interfaceAddress.getHostAddress();\n\t\t }\n\t\t catch (Exception e)\n\t\t {\n\t\t // maybe inetHost is a hostname and no IP, but this solution is better than nothing\n\t\t ipString = m_strHostname;\n\t\t }\n\t\t Element ipNode = doc.createElement(\"IP\");\n\t\t ipNode.appendChild(doc.createTextNode(ipString));\n\t\t */\n\t\tif (m_bHidden)\n\t\t{\n\t\t\tXMLUtil.setAttribute(listenerInterfaceNode, XML_ATTR_HIDDEN, m_bHidden);\n\t\t}\n\t\telse if (m_bVirtual)\n\t\t{\n\t\t\tXMLUtil.setAttribute(listenerInterfaceNode, XML_ATTR_VIRTUAL, m_bVirtual);\n\t\t}\n\n\t\tlistenerInterfaceNode.appendChild(typeNode);\n\t\tif (portNode != null)\n\t\t{\n\t\t\tlistenerInterfaceNode.appendChild(portNode);\n\t\t}\n\t\tlistenerInterfaceNode.appendChild(hostNode);\n\t\t//listenerInterfaceNode.appendChild(ipNode);\n\t\treturn listenerInterfaceNode;\n\t}", "public BreweriesAdapter() {\n }", "public XMLUtils() {\r\n\t\tsuper();\r\n\t}", "BElement createBElement();", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "public ItemsAdapter() {\n\n\n }", "protected abstract Element toXmlEx(Document doc);", "public NetworkAdapter() {\n }", "public XmlAdaptedTask() {\n\t}", "private XmlUtil() {\n }", "public LibraryAdapterFactory() {\r\n\t}", "public XmlAdaptedRule() {}", "public WalkerDocument newDocument(DocumentTag adapter) { return newDocument(adapter, null); }", "private XMLUtil()\n {\n }", "public ElementSerializer() {\n _lock = new Object();\n }", "public ElementObjectSupport(ContainerI c, Element element) {\r\n\t\tthis(c, null, element);\r\n\t}", "Element createElement();", "public Element(String name) {\n\t\tsetName(name);\n\t}", "public NetworkMonitorAdapter( Adapter adapter )\r\n {\r\n super( adapter );\r\n }", "public CAccountElement() {\n }", "public XMLOutputFactoryImpl() {\n }" ]
[ "0.67933124", "0.63111824", "0.6188116", "0.59580165", "0.5948149", "0.59195083", "0.58048826", "0.5787029", "0.56868076", "0.5667657", "0.5657254", "0.557276", "0.5561593", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55520725", "0.55465776", "0.55028236", "0.55028236", "0.55028236", "0.55028236", "0.55028236", "0.55028236", "0.55028236", "0.55028236", "0.5491597", "0.5491597", "0.5491597", "0.5491597", "0.5491597", "0.5491597", "0.5491511", "0.5491511", "0.5468168", "0.5468168", "0.54644847", "0.54264283", "0.5423997", "0.54207283", "0.5409183", "0.53977716", "0.53519946", "0.5347367", "0.53335965", "0.5321426", "0.52856165", "0.52797556", "0.52715594", "0.5247954", "0.5246919", "0.5238435", "0.52335817", "0.52324575", "0.5226248", "0.5212379", "0.52091163", "0.5201466", "0.51971966", "0.51917416", "0.5187838", "0.51739407", "0.5168037", "0.5163269", "0.5143811", "0.5107716", "0.51046056", "0.50998724", "0.5096739", "0.5085474", "0.50827336" ]
0.55503017
46
XmlSerializable helpers Deserialize an object from an XML element.
public Object fromXml(XmlElement xml) { // TODO: copy the relevant namespaces declared by the parent // should that be done by clone? return xml == null ? null : xml.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Object objectFromXmlElement(XmlElement element) throws XmlParseException\n {\n return PLIST.parseObject(element);\n }", "private Object parseElement(XmlElement element) throws XmlParseException\n {\n try\n {\n return parseElementRaw(element);\n }\n catch (Exception e)\n {\n throw new XmlParseException(\"Failed to parse: \" + element.toXml(), e);\n }\n }", "public abstract Object deserialize(Object object);", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "public void deserialize() {\n\t\t\n\t}", "public Object fromXML(Reader input) throws XMLUtilityException {\r\n\t\tObject beanObject;\r\n\t\tbeanObject = unmarshaller.fromXML(input);\r\n\t\treturn beanObject;\r\n\t}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}", "private Object parseElementRaw(XmlElement element) throws Exception\n {\n ElementType type = ElementType.valueOf(element.getName().toUpperCase());\n switch (type)\n {\n case INTEGER:\n return parseInt(element.getValue());\n case REAL:\n return Double.valueOf(element.getValue());\n case STRING:\n return element.getValue();\n case DATE:\n return m_dateFormat.parse(element.getValue());\n case DATA:\n return base64decode(element.getValue());\n case ARRAY:\n return parseArray(element);\n case TRUE:\n return Boolean.TRUE;\n case FALSE:\n return Boolean.FALSE;\n case DICT:\n return parseDict(element);\n default:\n throw new RuntimeException(\"Unexpected type: \" + element.getName());\n }\n }", "DataObject loadObject(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;", "@Override\n\tpublic Object fromXMLString(String arg0) {\n\t\treturn null;\n\t}", "@Test\n public void serialSimpleTest(){\n\n byte b = 1;\n Object obj = new SimpleObject(1, 1.0, 1f, b);\n Document document = Serializer.serialize(obj);\n assertNotNull(document);\n\n assertNotNull(document.getRootElement());\n Element rootElement = document.getRootElement();\n assertTrue(rootElement.getName().equals(\"serialized\"));\n assertNotNull(rootElement.getChildren());\n\n List objList = rootElement.getChildren();\n assertNotNull(objList);\n assertNotNull(objList.get(0));\n\n Element objElement = (Element) objList.get(0);\n assertTrue(objElement.getName().equals(\"object\"));\n assertNotNull(objElement.getAttribute(\"class\"));\n assertNotNull(objElement.getAttribute(\"id\"));\n assertNull(objElement.getAttribute(\"length\"));\n assertEquals(\"0\", objElement.getAttributeValue(\"id\"));\n assertNotNull(objElement.getChildren());\n\n\n List objContents = objElement.getChildren();\n for (int i =0; i < objContents.size(); i++){\n Element contentElement = (Element) objContents.get(i);\n assertEquals(null, contentElement.getAttributeValue(\"declaringclass\"));\n assertNotNull(contentElement.getValue());\n\n if(contentElement.getName().equals(\"simpleInt\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleDouble\")))\n assertEquals(\"1.0\", contentElement.getValue());\n if(contentElement.getName().equals(\"simpleFloat\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleByte\")))\n assertEquals(\"1\", contentElement.getValue());\n }\n }", "Object parseObject(XmlElement element) throws XmlParseException\n {\n if (!\"plist\".equalsIgnoreCase(element.getName()))\n throw new XmlParseException(\"Expected plist top element, was: \" + element.getName());\n\n // Assure that the top element is a dict and the single child element.\n if (element.size() != 1) throw new XmlParseException(\"Expected single child element.\");\n return parseElement(element.getFirst());\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T extends ImogBean> T deSerialize(InputStream xml) throws ImogSerializationException {\n\t\treturn (T) xstream.fromXML(xml);\n\t}", "InputStream deserialize(InputStream toDeserialize);", "T deserialize(InputStream stream) throws IOException;", "public interface Parser {\n Object getObject(String name, Class c) throws JAXBException;\n\n void saveObject(String name, Object o) throws JAXBException;\n}", "public static Object objectFromXml(String xml) throws XmlParseException\n {\n return objectFromXmlElement(Xmlwise.createXml(xml));\n }", "public abstract T deserialize(String serial);", "void readObject(InputSerializer in) throws java.io.IOException;", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "public ElementSerializer() {\n _lock = new Object();\n }", "public static int unserializeElement(byte[] arr, int offset, Element e) {\n\t\tint len;\n\t\tint i;\n\t\tbyte[] e_byte;\n\n\t\tlen = unserializeUint32(arr, offset);\n\t\te_byte = new byte[(int) len];\n\t\toffset += 4;\n\t\t//offset += 8;\n\t\tfor (i = 0; i < len; i++)\n\t\t\te_byte[i] = arr[offset + i];\n\t\te.setFromBytes(e_byte);\n\n\t\treturn (int) (offset + len);\n\t}", "public void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException {\n super.readAttributes(in);\n \n // Remove this when the 0.9.x save hack (in Game.java) is gone.\n ownerId = in.getAttributeValue(null, \"owner\");\n \n messageType = Enum.valueOf(MessageType.class, getAttribute(in, \"messageType\", MessageType.DEFAULT.toString()));\n beenDisplayed = Boolean.parseBoolean(in.getAttributeValue(null, \"hasBeenDisplayed\"));\n sourceId = in.getAttributeValue(null, \"source\");\n displayId = in.getAttributeValue(null, \"display\");\n \n super.readChildren(in);\n }", "ObjectElement createObjectElement();", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Serializable> T deserializeObject(final byte[] str) {\n\t\tfinal ObjectInputStream in;\n\t\tfinal ByteArrayInputStream inputStream = new ByteArrayInputStream(str);\n\t\tfinal T ret;\n\n\t\ttry {\n\t\t\tin = new ObjectInputStream(inputStream);\n\n\t\t\tret = (T) in.readObject();\n\t\t} catch (final Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn ret;\n\t}", "public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;", "private static Object getObject(byte[] byteArr) throws IOException, ClassNotFoundException {\n\t\tObject object = SerializationUtils.deserialize(byteArr);\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArr);\n\t\tObjectInput in = new ObjectInputStream(bis);\n\t\t//return in.readObject();\n\t\treturn object;\n\t}", "public interface XMLizable {\n\n /**\n * Write this element as an XML DOM element.\n */\n Element toXML();\n\n /**\n * Read this element as the content of the given element.\n */\n void readXML(Element elem) throws XMLSyntaxError;\n}", "Object deserialize(Writable blob) throws SerDeException;", "public XmlElement() {\n }", "private static <T> T readObjectAsXmlFrom(Reader reader, Class<T> c) throws Exception\n {\n JAXBContext jaxb = JAXBContext.newInstance(c);\n \n XMLStreamReader xmlReader =\n XMLInputFactory.newInstance().createXMLStreamReader(reader);\n \n Unmarshaller xmlInterpreter = jaxb.createUnmarshaller();\n \n return xmlInterpreter.unmarshal(xmlReader, c).getValue();\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "public abstract OMElement serialize();", "public interface XMLObject {\n public XMLObject getXMLObject();\n}", "Holder deser(String s) throws Exception {\n return (Holder)(new XStreamSerializer().deserialize(new StringReader(s)));\n }", "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}", "public static Obj fromString(String xml) \n { \n try\n {\n ByteArrayInputStream in = new ByteArrayInputStream(xml.getBytes(\"UTF-8\"));\n ObixDecoder decoder = new ObixDecoder(in);\n return decoder.decodeDocument(); \n }\n catch(Exception e)\n {\n throw new RuntimeException(e.toString());\n }\n }", "private static void testFromXmlToObj() {\n String xml2 = \"<xml.mapping.xstream.MappingTestBean> <stringParam>aaa</stringParam> <integerParam>9</integerParam> <arrayStringParam> <string>ggg</string> <string>hhh</string> <string>222</string> </arrayStringParam> <listStringParam> <string>bbb</string> <string>ccc</string> <string>111</string> </listStringParam> <mapStringParam> <entry> <string>f</string> <string>fff</string> </entry> <entry> <string>e</string> <string>eee</string> </entry> </mapStringParam> </xml.mapping.xstream.MappingTestBean>\";\n String xml3 = \"<MappingTestBean> <stringParam>aaa</stringParam> <integerParam>9</integerParam> <arrayStringParam> <string>ggg</string> <string>hhh</string> <string>222</string> </arrayStringParam> <listStringParam> <string>bbb</string> <string>ccc</string> <string>111</string> </listStringParam> <mapStringParam> <entry> <string>f</string> <string>fff</string> </entry> <entry> <string>e</string> <string>eee</string> </entry> </mapStringParam> </MappingTestBean>\";\n MappingTestBean mtb2 = (MappingTestBean) xstream.fromXML(xml2);\n MappingTestBean mtb3 = (MappingTestBean) xstream.fromXML(xml3);\n System.out.println(ReflectionToStringBuilder.toString(mtb2));\n System.out.println(ReflectionToStringBuilder.toString(mtb3));\n }", "public Object fromXML(Class klazz, File xmlFile) throws XMLUtilityException {\r\n\r\n\t\tif (!(unmarshaller instanceof JAXBUnmarshaller)){\r\n\t\t\tthrow new XMLUtilityException(\"Invalid method invocation. This method is only valid when the unmarshaller is a JAXBUnmarshaller instance\");\r\n\t\t}\r\n\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = ((JAXBUnmarshaller)unmarshaller).fromXML(klazz,xmlFile);\r\n\t\treturn beanObject;\r\n\t}", "abstract org.apache.xmlbeans.XmlObject getXmlObject();", "public GongDomObject(Element object) throws InvalidTagException {\r\n super(object);\r\n }", "public Object readObject() throws ClassNotFoundException, IOException;", "@Override\n\tpublic Object deserialize(byte[] bytes) throws SerializationException {\n\t\tif(bytes==null || bytes.length==0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn deserializingConverter.convert(bytes);\n\t}", "GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n Schema schema = new Schema.Parser().parse((String) in.readObject());\n DatumReader<T> reader = new GenericDatumReader<>(schema);\n Decoder decoder = DecoderFactory.get().binaryDecoder(in, null);\n avroObject = reader.read(avroObject, decoder);\n }", "UmlElement getUmlElement();", "public static Serializable deserialize(byte[] data) throws ClassNotFoundException, IOException {\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(data);\n\t\tObjectInputStream ois;\n\t\tois = new ObjectInputStream(bis);\n\t\treturn (Serializable) ois.readObject();\n\t}", "protected void readFromXMLImpl(XMLStreamReader in)\n throws XMLStreamException {\n aiObjects.clear();\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name, got: \" + in.getLocalName());\n }\n final String nextIDStr = in.getAttributeValue(null, \"nextID\");\n if (nextIDStr != null) {\n nextID = Integer.parseInt(nextIDStr);\n }\n \n String lastTag = \"\";\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n final String tagName = in.getLocalName();\n final String oid = in.getAttributeValue(null, ID_ATTRIBUTE);\n try {\n if (oid != null && aiObjects.containsKey(oid)) {\n getAIObject(oid).readFromXML(in);\n } else if (tagName.equals(AIUnit.getXMLElementTagName())) {\n new AIUnit(this, in);\n } else if (tagName.equals(AIPlayer.getXMLElementTagName())) {\n Player p = (Player) getGame().getFreeColGameObject(oid);\n if (p != null) {\n if (p.isIndian()) {\n new NativeAIPlayer(this, in);\n } else if (p.isREF()) {\n new REFAIPlayer(this, in);\n } else if (p.isEuropean()) {\n new EuropeanAIPlayer(this, in);\n } else {\n logger.warning(\"Bogus AIPlayer: \" + p);\n in.nextTag();\n }\n }\n } else if (tagName.equals(\"colonialAIPlayer\")) {\n // TODO: remove 0.10.1 compatibility code\n new EuropeanAIPlayer(this, in);\n // end TODO\n } else if (tagName.equals(AIColony.getXMLElementTagName())) {\n new AIColony(this, in);\n } else if (tagName.equals(AIGoods.getXMLElementTagName())) {\n new AIGoods(this, in);\n } else if (tagName.equals(WorkerWish.getXMLElementTagName())) {\n new WorkerWish(this, in);\n } else if (tagName.equals(GoodsWish.getXMLElementTagName())) {\n new GoodsWish(this, in);\n } else if (tagName.equals(TileImprovementPlan.getXMLElementTagName())) {\n new TileImprovementPlan(this, in);\n } else {\n logger.warning(\"Unknown AI-object read: \" + tagName + \"(\" + lastTag + \")\");\n }\n lastTag = in.getLocalName();\n } catch (Exception e) {\n StringWriter sw = new StringWriter();\n e.printStackTrace(new PrintWriter(sw));\n logger.warning(\"Exception while reading an AIObject(\" + tagName\n + \", \" + oid + \"): \" + sw.toString());\n while (!in.getLocalName().equals(tagName) && !in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n if (!in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n }\n }\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name (2), got: \" + in.getLocalName());\n }\n \n // This should not be necessary - but just in case:\n findNewObjects(false);\n }", "public static Object fromXML(String xml, Class className) {\r\n\t\tByteArrayInputStream xmlData = new ByteArrayInputStream(xml.getBytes());\r\n\t\tJOXBeanInputStream joxIn = new JOXBeanInputStream(xmlData);\r\n\t\ttry {\r\n\t\t\treturn (Object) joxIn.readObject(className);\r\n\t\t} catch (IOException exc) {\r\n\t\t\tlog.info(\"从xml转换成bean失败\" + exc.toString());\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\txmlData.close();\r\n\t\t\t\tjoxIn.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.info(\"从xml转换成bean失败\" + e.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface SerializableDataStructure {\n /**\n * Returns the serialized data as string\n * @return the string that represents the data\n */\n String serialize();\n\n /**\n * Take in a string and parse it back to the data\n * return null if the input is misformatted\n * @param inputString the string to be parsed\n * @return The data structure\n */\n boolean deserialize(String inputString);\n}", "public void readXML(org.dom4j.Element el) throws Exception {\n String name,value;\n org.dom4j.Element node=el;\n\n if (el.attribute(\"type\") != null)\n setType(el.attribute(\"type\").getText());\n if (el.attribute(\"action\") != null)\n setAction(ActionList.valueOf(el.attribute(\"action\").getText()));\n if (el.attribute(\"direction\") != null)\n setDirection(DirectionList.valueOf(el.attribute(\"direction\").getText()));\n if (el.attribute(\"content\") != null)\n setContent(el.attribute(\"content\").getText());\n if (el.attribute(\"iterations\") != null)\n setIterations(org.jbrain.xml.binding._TypeConverter.parseInteger(el.attribute(\"iterations\").getText(), sObjName, \"Iterations\"));\n if (el.attribute(\"asynchronous\") != null)\n setAsynchronous(org.jbrain.xml.binding._TypeConverter.parseBoolean(el.attribute(\"asynchronous\").getText(), sObjName, \"Asynchronous\"));\n }", "public interface Serializable {\n\n\t/**\n\t * Method to convert the object into a stream\n\t *\n\t * @param out OutputSerializer to write the object to\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid writeObject(OutputSerializer out) throws java.io.IOException;\n\n\t/** \n\t * Method to build the object from a stream of bytes\n\t *\n\t * @param in InputSerializer to read from\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid readObject(InputSerializer in) throws java.io.IOException;\n}", "@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readObject(super.readObject());\r\n\t}", "public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }", "public static UnsignedByte parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n UnsignedByte object = new UnsignedByte();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"unsignedByte\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setUnsignedByte(org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedByte(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private void readObject(ObjectInputStream in)\n\tthrows IOException, ClassNotFoundException\n {\n\tin.defaultReadObject();\n\tservID = new ServiceID(in);\n }", "public interface ITagAdapter extends Serializable{\r\n}", "Element asElement();", "public interface IsChild extends XmlSerializable {\r\n\tObject findPrimaryKey();\r\n}", "public Object decode( Element element, Resolver resolver ) throws DecodingException\r\n {\r\n String tag = element.getTagName();\r\n if( \"application\".equals( tag ) )\r\n {\r\n return buildApplicationDescriptor( element, resolver );\r\n }\r\n else if( \"registry\".equals( tag ) )\r\n {\r\n return buildRegistryDescriptor( element, resolver );\r\n }\r\n else\r\n {\r\n final String error = \r\n \"Document element name [\" + tag + \"] not recognized.\";\r\n throw new DecodingException( element, error );\r\n }\r\n }", "public interface Serializable {\n /** Convert object into byte sequence. */\n void serialize(@NotNull OutputStream out) throws IOException;\n /** Replace object with one converted from byte sequence. */\n void deserialize(@NotNull InputStream in) throws IOException;\n}", "public static Object loadObject(String filename) throws XmlParseException, IOException\n {\n return loadObject(new File(filename));\n }", "@Override\n public Object parseFromXml(String path, TypeXml type) {\n try {\n Object object = new Object();\n switch (type) {\n case PERSON:\n object = parseFromXmlPerson(path);\n break;\n case USER:\n object = parseFormXmlUser(path);\n break;\n default:\n break;\n }\n return object;\n }catch (Exception e){\n AppLogger.getLogger().error(e.getMessage());\n return null;\n }\n }", "public interface Deserializer extends SerDe {\n\n /**\n * Deserialize an object out of a Writable blob. In most cases, the return\n * value of this function will be constant since the function will reuse the\n * returned object. If the client wants to keep a copy of the object, the\n * client needs to clone the returned deserialized value by calling\n * ObjectInspectorUtils.getStandardObject().\n *\n * @param blob\n * The Writable object containing a serialized object\n * @return A Java object representing the contents in the blob.\n */\n Object deserialize(Writable blob) throws SerDeException;\n\n /**\n * Get the object inspector that can be used to navigate through the internal\n * structure of the Object returned from deserialize(...).\n */\n ObjectInspector getObjectInspector() throws SerDeException;\n\n}", "public XmlAdaptedPerson() {}", "public Object getPayload(JAXBContext context);", "public void fromXML ( Element element )\r\n {\n String name = element.getAttribute( \"name\" );\r\n if ( name.compareTo( gadgetclass.getName() ) == 0 )\r\n {\r\n // load each user preference\r\n NodeList userPrefs = element.getElementsByTagName( \"UserPref\" );\r\n for ( int i = 0; i < userPrefs.getLength(); i++ )\r\n {\r\n Element prefElement = (Element) userPrefs.item( i );\r\n String prefName = prefElement.getAttribute( \"name\" );\r\n Text prefValue = (Text) prefElement.getChildNodes().item( 0 );\r\n for ( int j = 0; j < gadgetclass.getUserPrefsCount(); j++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n if ( prefName.compareTo( up.getName() ) == 0 )\r\n {\r\n setUserPrefValue( up, prefValue.getNodeValue() );\r\n j = gadgetclass.getUserPrefsCount();\r\n }\r\n }\r\n }\r\n }\r\n }", "public static Object unserialize(String asString) {\n\t\treturn null;\n\t}", "public Object fromXML(File xmlFile) throws XMLUtilityException {\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = unmarshaller.fromXML(xmlFile);\r\n\t\treturn beanObject;\r\n\t}", "public String serialize(Element element)\n throws IllegalArgumentException {\n\n synchronized (_lock) {\n\n // Make sure this serializer is not yet in use\n if (_inUse) {\n String detail = \"ElementSerializer instance already in use.\";\n throw Utils.logProgrammingError(detail);\n }\n\n // Lock this serializer\n _inUse = true;\n }\n\n // Check argument\n MandatoryArgumentChecker.check(\"element\", element);\n\n // Create an XMLOutputter\n Writer fsw = new StringWriter(512);\n XMLOutputter out;\n final String ENCODING = \"UTF-8\";\n try {\n out = new XMLOutputter(fsw, ENCODING);\n } catch (UnsupportedEncodingException uee) {\n String message = \"Expected XMLOutputter to support encoding \\\"\" + ENCODING + \"\\\".\";\n throw Utils.logProgrammingError(message, uee);\n }\n\n // XXX: Allow output of declaration to be configured?\n\n // Output the XML that represents the Element\n try {\n output(out, element);\n\n // I/O errors should not happen on a StringWriter\n } catch (IOException exception) {\n throw Utils.logProgrammingError(exception);\n\n } finally {\n _inUse = false;\n }\n\n String xml = fsw.toString();\n\n return xml;\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n throw new NotSerializableException();\n }", "public interface Serializer {\n /**\n * Serializes given serializable object into the byte array.\n *\n * @param object object that will be serialized\n * @return serialized byte array\n */\n byte[] serialize(Serializable object);\n\n /**\n * Deserializes byte array that serialized by {@link #serialize(Serializable)} method.\n *\n * @param bytes byte array that will be deserialized\n * @return deserialized object\n */\n Object deserialize(byte[] bytes);\n}", "void readXML(Element elem) throws XMLSyntaxError;", "Object element();", "Object element();", "public void readXML(org.dom4j.Element el) throws Exception {\n String name,value;\n org.dom4j.Element node=el;\n\n if (el.attribute(\"port\") != null)\n setPort(org.jbrain.xml.binding._TypeConverter.parseInteger(el.attribute(\"port\").getText(), sObjName, \"Port\"));\n }", "<T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass);", "Element toXML();", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T deserializeFromXML(Class<T> clazz, String xml, XStream deserializer) {\n\t\ttry {\n\t\t\treturn (T) deserializer.fromXML(xml);\n\t\t} catch (XStreamException e) {\n\t\t\tPikaterDBLogger.logThrowable(String.format(\"Could not deserialize the following XML to the '%s' class.\", clazz.getSimpleName()), e);\n\t\t\treturn null;\n\t\t}\n\t}", "private void readObject(ObjectInputStream in) throws IOException,\n \t\t\tClassNotFoundException {\n \t\tin.defaultReadObject();\n \t\tlog.debug(\"GalleryFeed has been deserialized.\");\n \t}", "public void restoreFromXml(Element root) {\n\t\t//do nothing\n\t}", "void assertDeserialized(Serializable initial, Serializable deserialized);", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "private XMLObject resolve(byte[] xml) {\n\t\tXMLObject parsed = parse(xml);\n\t\tif (parsed != null) {\n\t\t\treturn parsed;\n\t\t}\n\t\tthrow new Saml2Exception(\"Deserialization not supported for given data set\");\n\t}", "public NotificationBo parseSerializedNotificationXml(byte[] xmlAsBytes) throws Exception;", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "@Override\n\tpublic Element toElement() {\n\t\treturn null;\n\t}", "public static Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\treturn ois.readObject();\n\t}", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "public interface ICalendarEntryPayloadType\n{\n\t\n\t/**\n\t * Returns the unique ID of this payload type.\n\t * @return\n\t */\n\tpublic int getTypeId();\n\t\n\t/**\n\t * Deserialize payload from XML.\n\t * @param element\n\t * @return\n\t * @throws ParseException \n\t */\n\tpublic ICalendarEntryPayload parsePayload( Element element ) throws ParseException ;\n\t\n\t/**\n\t * Serialize payload to XML.\n\t * \n\t * @param parent\n\t * @param entry\n\t */\n\tpublic void storePayload( Document document , Element parent , ICalendarEntry entry );\n\t\n}", "public Serializable readObject(){\n Serializable loadedObject = null;\n try {\n FileInputStream fileIn = new FileInputStream(name);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n loadedObject = (Serializable) in.readObject();\n in.close();\n fileIn.close();\n System.out.println(\"Data loaded from: \"+ name);\n } \n catch (IOException i) {\n System.out.println(\"File not found.\");\n } \n catch (ClassNotFoundException c) {\n System.out.println(\"Class not found\");\n }\n return loadedObject;\n }", "public Object getElement();", "protected void unpack(int uolId, String xmlBlob) throws\n PropertyException {\n\n try {\n\n Node root = null;\n \n //changed 2004-02-24: synchronized the parser in order to \n //avoid \"parse may not be called while parsing\" error that occasionally occured\n synchronized(\"unpack_property\") {\n //note that we use the inputSourceFromString to avoid problems with Xerces and UTF-8 BOMs\n root = getBuilder().parse(Parser.inputSourceFromString(xmlBlob));\n } \n\n //now starting parsing the XML blob\n this.processElements(root, uolId);\n\n }\n catch (IOException ex) {\n //fatal we can not recover\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n\n catch (SAXException ex) {\n //a parsing error occured\n //fatal we can not recover\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex.getMessage(), ex);\n throw new ComponentDataException(ex);\n }\n }", "public static Object deserializeObject(byte[] data) throws IOException {\n\t\tif (data == null || data.length < 1) {\n\t\t\treturn null;\n\t\t}\n\t\tObject object = null;\n\t\ttry {\n\t\t\tObjectInputStream objectStream = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\t\tobject = objectStream.readObject();\n\t\t\tobjectStream.close();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn object;\n\t}", "public XmlElementDefinition(String elementName, XmlFieldSerializer serializer) {\r\n super();\r\n this.elementName = elementName;\r\n this.serializer = serializer;\r\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "public abstract T readFromXml(XmlPullParser parser, int version, Context context)\n throws IOException, XmlPullParserException;", "public static Object getObjectWithXML(Class<?> c, String xml) throws JAXBException {\n Unmarshaller unmarsh = JAXBContext.newInstance(c).createUnmarshaller();\n return unmarsh.unmarshal(new StringReader(xml.trim()));\n }", "public interface IMailData extends IXMLSerializable\r\n{\r\n /**\r\n * Holds the name of the tag 'disposition'.\r\n */\r\n String TAG_CONTENT_DISPOSITION = \"contentdisposition\";\r\n /**\r\n * Holds the name of the tag 'contenttype'.\r\n */\r\n String TAG_CONTENT_TYPE = \"contenttype\";\r\n /**\r\n * Holds the name of the tag 'detail';\r\n */\r\n String TAG_DETAIL = \"detail\";\r\n /**\r\n * Holds the name of the tag 'source';\r\n */\r\n String TAG_SOURCE = \"source\";\r\n\r\n /**\r\n * This method gets the content disposition.\r\n *\r\n * @return The content disposition.\r\n */\r\n String getContentDisposition();\r\n\r\n /**\r\n * This method gets the content type.\r\n *\r\n * @return The content type.\r\n */\r\n String getContentType();\r\n\r\n /**\r\n * This method gets the data for this mime part.\r\n *\r\n * @return The data for this mime part.\r\n */\r\n byte[] getData();\r\n\r\n /**\r\n * This method gets the type of data.\r\n *\r\n * @return The type of data.\r\n */\r\n EDataSourceType getDataSource();\r\n\r\n /**\r\n * This method returns a stream to the data for this part. The data could be either character or\r\n * binary data. If the data is character data the UTF-8 encoding is used.\r\n *\r\n * @return The data stream.\r\n */\r\n InputStream getDataStream();\r\n}" ]
[ "0.6415213", "0.6125468", "0.5767841", "0.56715953", "0.56161505", "0.5601276", "0.55964524", "0.5596338", "0.5573023", "0.5548238", "0.5518874", "0.5511254", "0.54754984", "0.54550034", "0.54349923", "0.53198403", "0.5284938", "0.5278224", "0.52651805", "0.52466714", "0.52440834", "0.52389467", "0.5234066", "0.5209885", "0.51820064", "0.51711833", "0.5155948", "0.51544565", "0.5144868", "0.5142485", "0.51226556", "0.51138324", "0.5113437", "0.51062804", "0.509126", "0.5075235", "0.50709385", "0.5046558", "0.5030165", "0.5016482", "0.50158376", "0.500557", "0.5004695", "0.50000155", "0.49750665", "0.49725032", "0.4969274", "0.49685982", "0.4952041", "0.49480164", "0.49425256", "0.49355304", "0.4931677", "0.49271375", "0.49172783", "0.48963782", "0.48899087", "0.48763886", "0.48437974", "0.4827541", "0.48269144", "0.48206905", "0.48124042", "0.48114133", "0.48093385", "0.4807472", "0.4807243", "0.48064244", "0.4805608", "0.48047617", "0.47996897", "0.4788545", "0.47843054", "0.478062", "0.47796202", "0.47796202", "0.47793913", "0.47740522", "0.47717854", "0.47708908", "0.4764792", "0.47639808", "0.4761833", "0.4749315", "0.4741729", "0.4730834", "0.47298735", "0.47257167", "0.4718275", "0.4716409", "0.47039655", "0.46979633", "0.46921468", "0.46900716", "0.46845546", "0.46810246", "0.46655262", "0.466376", "0.46624205", "0.4659714" ]
0.5299676
16
Serialize an object into an XML element.
public XmlElement toXml(Object o) { if (o == null) { return null; } return (XmlElement) ((XmlElement) o).clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element toXML();", "private void jaxbObjectToXML(Object object, Writer outputWriter) throws JAXBException {\r\n \r\n JAXBContext context = JAXBContext.newInstance(object.getClass());\r\n Marshaller marshaller = context.createMarshaller();\r\n \r\n // for pretty-print XML in JAXB\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\r\n // Marshaller.JAXB_ENCODING exemplo: \"ISO-8859-1\" apenas para referência\r\n marshaller.setProperty(Marshaller.JAXB_ENCODING, CHAR_ENCODING);\r\n \r\n // write to System.out for debugging (TODO: REMOVE THIS LINE IN THE FUTURE)\r\n //marshaller.marshal(object, System.out);\r\n \r\n // write to file\r\n marshaller.marshal(object, outputWriter);\r\n \r\n }", "@SuppressWarnings( { \"incomplete-switch\", \"rawtypes\", \"unchecked\" } )\n XmlElement objectToXml(Object o)\n {\n ElementType type = m_simpleTypes.get(o.getClass());\n if (type != null)\n {\n switch (type)\n {\n case REAL:\n return new XmlElement(\"real\", o.toString());\n case INTEGER:\n return new XmlElement(\"integer\", o.toString());\n case TRUE:\n return new XmlElement(((Boolean) o).booleanValue() ? \"true\" : \"false\");\n case DATE:\n return new XmlElement(\"date\", m_dateFormat.format((Date) o));\n case STRING:\n return new XmlElement(\"string\", (String) o);\n case DATA:\n return new XmlElement(\"data\", base64encode((byte[]) o));\n }\n }\n if (o instanceof Map)\n {\n return toXmlDict((Map) o);\n }\n else if (o instanceof List)\n {\n return toXmlArray((List) o);\n }\n else throw new RuntimeException(\"Cannot use \" + o.getClass() + \" in plist.\");\n }", "public static <T> String toXML(T object, String alias) {\r\n\t\tif (object == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Object cannot be null\");\r\n\t\t}\r\n\t\tif (alias == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Alais cannot be null\");\r\n\t\t}\r\n\t\tXStream xStream = new XStream();\r\n\t\txStream.alias(alias, object.getClass());\r\n\t\tStringWriter writer = new StringWriter();\r\n\t\txStream.toXML(object, writer);\r\n\t\treturn writer.toString();\r\n\t}", "ObjectElement createObjectElement();", "public <T> String SerializeXml(T obj, String pathToRoot){\n this.lastPath = pathToRoot + obj.getClass().getSimpleName().toLowerCase() + \"_object-\" + Math.abs(new Random().nextLong()) + \".xml\";\n\n XmlMapper xmlMapper = new XmlMapper();\n xmlMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n xmlMapper.registerModule(new JavaTimeModule());\n xmlMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);\n\n File file = new File(this.lastPath);\n\n try {\n file.createNewFile();\n xmlMapper.writeValue(file, obj);\n System.out.println(xmlMapper.writerWithDefaultPrettyPrinter().writeValueAsString(obj));\n return xmlMapper.writeValueAsString(obj);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String toXML(Object beanObject) throws XMLUtilityException {\r\n\t\tStringWriter strWriter = new StringWriter();\r\n\t\ttoXML(beanObject, strWriter);\r\n\t\treturn strWriter.toString();\r\n\t}", "public static String xmlMarshall(Object obj) throws Exception {\n\t\tStringWriter writer = null;\n\t\ttry {\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(obj.getClass());\n\t\t\tMarshaller marshaller = jaxbContext.createMarshaller();\n\t\t\twriter = new StringWriter();\n\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_ENCODING, \"UTF-8\");\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(obj, writer);\n\t\t\tString result = writer.toString();\n\t\t\treturn result;\t\t\n\t\t}finally {\n\t\t\tif (writer != null)\n\t\t\t\twriter.close();\n\t\t}\t\t\n\t}", "@Override\n public void marshal(T object, XMLStreamWriter output,\n AttachmentMarshaller am) throws JAXBException {\n try {\n output.flush();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SAX2StaxContentHandler handler = new SAX2StaxContentHandler(output);\n if (object instanceof DataObject) {\n serializeDataObject((DataObject) object, new SAXResult(handler),\n am);\n return;\n }\n\n try {\n String value = serializePrimitive(object, javaType);\n String prefix = output.getPrefix(xmlTag.getNamespaceURI());\n //TODO, this is a hack, seems to be wrong. why should namespace returned is \"\"?\n if (xmlTag.getNamespaceURI().equals(\"\")) {\n output.writeStartElement(\"\", xmlTag.getLocalPart(), xmlTag.getNamespaceURI());\n// } else if (prefix == null) {\n// output.writeStartElement(xmlTag.getNamespaceURI(), xmlTag.getLocalPart());\n } else {\n output.writeStartElement(prefix, xmlTag.getLocalPart(), xmlTag.getNamespaceURI());\n output.writeNamespace(prefix, xmlTag.getNamespaceURI());\n }\n output.writeCharacters(value);\n output.writeEndElement();\n } catch (XMLStreamException e) {\n throw new SDODatabindingException(e);\n }\n }", "public static String toXMLString(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n\r\n String pkgName = obj.getClass().getPackage().getName();\r\n try {\r\n if (!entityMarshallers.containsKey(pkgName)) {\r\n JAXBContext jc = JAXBContext.newInstance(pkgName);\r\n entityMarshallers.put(pkgName, jc.createMarshaller());\r\n entityMarshallerLock.put(pkgName, new Object());\r\n }\r\n\r\n StringWriter sw = new StringWriter();\r\n Marshaller marshaller = entityMarshallers.get(pkgName);\r\n Object locker = entityMarshallerLock.get(pkgName);\r\n\r\n synchronized (locker) {\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Configuration.getBoolean(Constant.CONFIG_KEY.PCM_XML_PRETTY_PRINT));\r\n marshaller.marshal(obj, sw);\r\n }\r\n\r\n return sw.toString();\r\n\r\n } catch (Exception e) {\r\n Logger.defaultLogger.error(e.getMessage(), e);\r\n }\r\n return \"\";\r\n }", "public abstract void writeToXml(T o, XmlSerializer serializer, Context context)\n throws IOException;", "private static void writeAsXml(Object o, Writer writer) throws Exception\n {\n JAXBContext jaxb = JAXBContext.newInstance(o.getClass());\n \n Marshaller xmlConverter = jaxb.createMarshaller();\n xmlConverter.setProperty(\"jaxb.formatted.output\", true);\n xmlConverter.marshal(o, writer);\n }", "public org.dom4j.Element writeXML() throws Exception {\n return writeXML(sObjName);\n }", "public org.dom4j.Element writeXML() throws Exception {\n return writeXML(sObjName);\n }", "public String setObject(String objName, Object objValue) {\n return new String(\"A \" + XML_TAG + \" cannot contain an Element (\"\n + objName + \").\");\n }", "static <T> T printLogAndReturn(Object obj) throws JAXBException {\n StringWriter writer = new StringWriter();\n // create JAXBContext which will be used to update writer\n JAXBContext context = JAXBContext.newInstance(obj.getClass());\n // marshall or convert jaxbElement containing student to xml format\n context.createMarshaller().marshal(obj, writer);\n // print XML string representation of Student object\n System.out.println(writer.toString());\n return (T) obj;\n }", "private Element createXmlElementForObject(ObjectExtValue object, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_OBJECT);\n\t\t\n\t\tArrayList<NameValuePair> pairs = new ArrayList<NameValuePair>();\n\t\tfor (Iterator<Map.Entry<Value,Value>> iter = ((EntrySet) object.entrySet()).iterator(); iter.hasNext(); ) {\n\t\t\tMap.Entry<Value, Value> pair = iter.next();\n\t\t\tpairs.add(new NameValuePair(pair.getKey(), pair.getValue()));\n\t\t}\n\t\t\t\n\t\tCollections.sort(pairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : pairs) {\n\t\t\tElement childElement = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (childElement != null)\n\t\t\t\telement.appendChild(childElement);\n\t\t}\n\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}", "public abstract OMElement serialize();", "public String serialize(Element element)\n throws IllegalArgumentException {\n\n synchronized (_lock) {\n\n // Make sure this serializer is not yet in use\n if (_inUse) {\n String detail = \"ElementSerializer instance already in use.\";\n throw Utils.logProgrammingError(detail);\n }\n\n // Lock this serializer\n _inUse = true;\n }\n\n // Check argument\n MandatoryArgumentChecker.check(\"element\", element);\n\n // Create an XMLOutputter\n Writer fsw = new StringWriter(512);\n XMLOutputter out;\n final String ENCODING = \"UTF-8\";\n try {\n out = new XMLOutputter(fsw, ENCODING);\n } catch (UnsupportedEncodingException uee) {\n String message = \"Expected XMLOutputter to support encoding \\\"\" + ENCODING + \"\\\".\";\n throw Utils.logProgrammingError(message, uee);\n }\n\n // XXX: Allow output of declaration to be configured?\n\n // Output the XML that represents the Element\n try {\n output(out, element);\n\n // I/O errors should not happen on a StringWriter\n } catch (IOException exception) {\n throw Utils.logProgrammingError(exception);\n\n } finally {\n _inUse = false;\n }\n\n String xml = fsw.toString();\n\n return xml;\n }", "public void addElement(Object obj);", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "public synchronized void addElement(WModelObject object)\n\t{\n\t\tm_elements.addElement(object);\n\t}", "void serialize(Object obj, OutputStream stream) throws IOException;", "void writeObj(MyAllTypesFirst myFirst, StrategyI xmlStrat);", "@Override\n\tpublic String toXMLString(Object arg0) {\n\t\treturn null;\n\t}", "public String serialize(Object object) {\n\t\treturn serialize(object, false);\n\t}", "public String setObject(String objName, Object objValue) {\r\n String resultMsg = new String(\"A \" + XML_TAG + \" cannot contain an Element (\"\r\n + objName + \").\");\r\n return resultMsg;\r\n }", "public String toXML(final XStream xstream, final Object obj) throws ObjectStreamException {\n final Writer writer = new StringWriter();\n try {\n toXML(xstream, obj, writer);\n } catch (final ObjectStreamException e) {\n throw e;\n } catch (final IOException e) {\n throw new StreamException(\"Unexpected IO error from a StringWriter\", e);\n }\n return writer.toString();\n }", "protected abstract ArrayList<Element> _toXml_();", "public static String toXml(@SuppressWarnings(\"rawtypes\") Class jaxbClass, Object element) throws JAXBException {\n\t\tMarshaller marshaller = JAXBContext.newInstance(jaxbClass).createMarshaller();\n\t\tmarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tmarshaller.marshal(element, baos);\n\t\treturn baos.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "public GongDomObject(Element object) throws InvalidTagException {\r\n super(object);\r\n }", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n out.writeAttribute(\"id\", getId());\n out.writeAttribute(\"accelerator\", getKeyStrokeText(getAccelerator()));\n\n out.writeEndElement();\n }", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "void writeObject(OutputSerializer out) throws java.io.IOException;", "public Element toXMLElement() {\n return null;\n }", "public String toXML() {\n return null;\n }", "public String toXML() {\n return null;\n }", "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "public String toXml() {\n\t\treturn(toString());\n\t}", "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "public String marshal (Object obj) throws Exception {\n Class thisClass = obj.getClass();\n XmlDescriptor desc = (XmlDescriptor)classList.get(thisClass.getName());\n if (desc == null) {\n\t\t\t//Debugger.trace (\"Class \" + thisClass.getName () + \" not found..\"\n\t\t\t//\t\t\t\t, Debugger.SHORT);\n return reflectMarshal (obj); // if no descriptor class - try to use relection to marshal.\n\t\t}\n return this.marshal(obj, new MarshalContext (outFormat), desc.xmlName);\n }", "private void serializeObject(final Object object, final StringBuffer buffer)\n {\n serializeObject(object, buffer, true);\n }", "abstract org.apache.xmlbeans.XmlObject getXmlObject();", "public String serialize(final Object object)\n {\n StringBuffer buffer;\n\n buffer = new StringBuffer();\n serializeObject(object, buffer);\n return buffer.toString();\n }", "String objectWrite();", "@Test\n public void serialSimpleTest(){\n\n byte b = 1;\n Object obj = new SimpleObject(1, 1.0, 1f, b);\n Document document = Serializer.serialize(obj);\n assertNotNull(document);\n\n assertNotNull(document.getRootElement());\n Element rootElement = document.getRootElement();\n assertTrue(rootElement.getName().equals(\"serialized\"));\n assertNotNull(rootElement.getChildren());\n\n List objList = rootElement.getChildren();\n assertNotNull(objList);\n assertNotNull(objList.get(0));\n\n Element objElement = (Element) objList.get(0);\n assertTrue(objElement.getName().equals(\"object\"));\n assertNotNull(objElement.getAttribute(\"class\"));\n assertNotNull(objElement.getAttribute(\"id\"));\n assertNull(objElement.getAttribute(\"length\"));\n assertEquals(\"0\", objElement.getAttributeValue(\"id\"));\n assertNotNull(objElement.getChildren());\n\n\n List objContents = objElement.getChildren();\n for (int i =0; i < objContents.size(); i++){\n Element contentElement = (Element) objContents.get(i);\n assertEquals(null, contentElement.getAttributeValue(\"declaringclass\"));\n assertNotNull(contentElement.getValue());\n\n if(contentElement.getName().equals(\"simpleInt\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleDouble\")))\n assertEquals(\"1.0\", contentElement.getValue());\n if(contentElement.getName().equals(\"simpleFloat\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleByte\")))\n assertEquals(\"1\", contentElement.getValue());\n }\n }", "public void toXML(XMLWriter xmlWriter, int indent, boolean relative)\n throws IOException {\n xmlWriter.printXMLStartTag(objectXMLTag, indent, relative, true);\n xmlWriter.print(stringApiValue());\n xmlWriter.printXMLEndTag(objectXMLTag, -indent, true);\n }", "public abstract void serialize(OutputStream stream, T object) throws IOException;", "public String createObjectElement(String indent, String elementName, String id, String name) {\r\n StringBuilder sbuf = new StringBuilder(indent);\r\n sbuf.append(\"<\\\" id=\\\"\").append(id).append(\"\\\" \");\r\n sbuf.append(\"name=\\\"\").append(name).append(\"\\\" />\");\r\n return sbuf.toString();\r\n }", "public abstract StringBuffer toXML();", "public void setObject(XSerial obj);", "protected abstract Element toXmlEx(Document doc);", "void saveObject(DataObject sdo, XMLStreamWriter writer) throws XMLStreamException;", "public void write(Object o)\r\n throws IOException, XmlPullParserException\r\n {\n if(o instanceof XmlNode) {\r\n\t writeNode((XmlNode)o);\r\n } else if(o instanceof XmlStartTag) {\r\n\t writeStartTag((XmlStartTag)o);\r\n } else if(o instanceof XmlEndTag) {\r\n\t writeEndTag((XmlEndTag)o);\r\n } else if(o instanceof XmlWritable) {\r\n\t ((XmlWritable)o).writeXml(out);\r\n } else {\r\n\t if(o != null) {\r\n\t\twriteContent(o.toString());\r\n\t } else {\r\n\t\t//silenty ignore null values\r\n\t }\r\n\t}\r\n }", "void writeObj(MyAllTypesSecond aRecord, StrategyI xmlStrat);", "private byte[] serialize(RealDecisionTree object){\n try{\n // Serialize data object to a file\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"MyObject.ser\"));\n out.writeObject(object);\n out.close();\n\n // Serialize data object to a byte array\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n out = new ObjectOutputStream(bos) ;\n out.writeObject(object);\n out.close();\n\n // Get the bytes of the serialized object\n byte[] buf = bos.toByteArray();\n return buf;\n } catch (IOException e) {\n System.exit(1);\n }\n\n return null;\n }", "@Override\n public void toXml(XmlContext xc) {\n\n }", "public abstract <T> SerializationStream writeObject(T t);", "@Override\n\tpublic Element toElement() {\n\t\treturn null;\n\t}", "public interface XMLObject {\n public XMLObject getXMLObject();\n}", "@Override\n public String toXML() {\n if (_xml == null)\n _xml = String.format(XML, getStanzaId(), to);\n return _xml;\n }", "public abstract StringBuffer toXML ();", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }", "public void dump( Result out ) throws JAXBException;", "@Override\n public void serializeAsElement(Object object, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws Exception {\n JsonSerializer<Object> jsonSerializer;\n Object object2 = this._accessorMethod == null ? this._field.get(object) : this._accessorMethod.invoke(object, new Object[0]);\n if (object2 == null) {\n if (this._nullSerializer == null) {\n jsonGenerator.writeNull();\n return;\n }\n this._nullSerializer.serialize(null, jsonGenerator, serializerProvider);\n return;\n }\n JsonSerializer<Object> jsonSerializer2 = jsonSerializer = this._serializer;\n if (jsonSerializer == null) {\n Class class_ = object2.getClass();\n PropertySerializerMap propertySerializerMap = this._dynamicSerializers;\n jsonSerializer2 = jsonSerializer = propertySerializerMap.serializerFor(class_);\n if (jsonSerializer == null) {\n jsonSerializer2 = this._findAndAddDynamic(propertySerializerMap, class_, serializerProvider);\n }\n }\n if (this._suppressableValue != null) {\n if (MARKER_FOR_EMPTY == this._suppressableValue) {\n if (jsonSerializer2.isEmpty(object2)) {\n this.serializeAsPlaceholder(object, jsonGenerator, serializerProvider);\n return;\n }\n } else if (this._suppressableValue.equals(object2)) {\n this.serializeAsPlaceholder(object, jsonGenerator, serializerProvider);\n return;\n }\n }\n if (object2 == object && this._handleSelfReference(object, jsonGenerator, serializerProvider, jsonSerializer2)) return;\n {\n if (this._typeSerializer == null) {\n jsonSerializer2.serialize(object2, jsonGenerator, serializerProvider);\n return;\n }\n }\n jsonSerializer2.serializeWithType(object2, jsonGenerator, serializerProvider, this._typeSerializer);\n }", "public void writeObject(Object obj) throws IOException;", "void marshal(Object obj);", "public void writeObject ();", "@Override\n\tpublic byte[] serialize(Object obj) throws SerializationException {\n\t\tif(obj==null) \n\t\t{\n\t\t\treturn EMPTY_BYTE_ARRAY;\n\t\t}\n\t\treturn serializingConverter.convert(obj);\n\t}", "public void writeObject(OutputStream stream, Object object, int format) throws IOException;", "public Element marshall()\n {\n Element element = new Element(getQualifiedName(), Namespaces.NS_ATOM);\n if( type != null )\n {\n Attribute typeAttribute = new Attribute(\"type\", type.toString());\n element.addAttribute(typeAttribute);\n }\n \n if( content != null )\n\t {\n\t\t element.appendChild(content);\n\t }\n\t return element;\n }", "@Override\r\n public boolean save(Object object, String fileName)\r\n throws FileAlreadyExistsException, IOException, JAXBException {\n File outputFile = new File(fileName);\r\n FileWriter fstream = new FileWriter(outputFile);\r\n BufferedWriter xmlOutputWriter = new BufferedWriter(fstream);\r\n \r\n if(!this.enableOverwrite && outputFile.exists()) {\r\n throw new FileAlreadyExistsException(fileName);\r\n }\r\n \r\n try {\r\n this.jaxbObjectToXML(object, xmlOutputWriter);\r\n } finally {\r\n xmlOutputWriter.close();\r\n } \r\n \r\n return (outputFile.length() > 0);\r\n }", "public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;", "public static native String serializeToString(JavaScriptObject node) /*-{\n\t\treturn Titanium.XML.serializeToString(node);\n\t}-*/;", "@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;", "public static Element serialize( SerializationPosition state) {\n Element doc = state.doc;\n DefaultMutableTreeNode treeNode = state.currPos;\n \n Object value = treeNode.getUserObject();\n Element parentElement = null; \n \n parentElement = doc.getOwnerDocument().createElement(\"directory\");\n\n \n // Apply properties to root element...\n Attr attrName = doc.getOwnerDocument().createAttribute(\"name\");\n attrName.setNodeValue(state.currPos.toString());\n parentElement.getAttributes().setNamedItem(attrName);\n \n return parentElement;\n }", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "public String toXml() throws JAXBException {\n JAXBContext jc = JAXBContext.newInstance(TimeModel.class);\n Marshaller marshaller = jc.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n StringWriter out = new StringWriter();\n marshaller.marshal(this, out);\n return out.toString();\n }", "@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n super.toXML(out, getXMLElementTagName());\n }", "public static String toString(final Element element) {\n\t\treturn new XMLSerializer(true).serialize(element); //serialize the element to a string, formatting the XML output\n\t}", "public static String toString(final Object object, final String tagName) throws JSONException {\n StringBuilder sb = new StringBuilder();\n JSONArray ja;\n JSONObject jo;\n String string;\n\n if (object instanceof JSONObject) {\n\n // Prepend with tagName.\n if (tagName != null) {\n sb.append('<');\n sb.append(tagName);\n sb.append('>');\n }\n\n // Loop through the keys.\n jo = (JSONObject) object;\n for (final String key : jo.keySet()) {\n // Sanitize the key using restricted version of the XML spec.\n final String sanitizedKey = key.replaceFirst(invalidFirstCharacterRegex, \"\").replaceAll(invalidCharacterRegex, \"\");\n\n // Get the value; convert if not JSONObject.\n Object value = jo.get(key);\n if (value == null) {\n value = \"\";\n } else if (value.getClass().isArray()) {\n value = new JSONArray(value);\n }\n\n // Emit content in body.\n if (\"content\".equals(key)) {\n if (value instanceof JSONArray) {\n ja = (JSONArray) value;\n int i = 0;\n for (Object val : ja) {\n if (i > 0) {\n sb.append('\\n');\n }\n sb.append(escape(val.toString()));\n i++;\n }\n } else {\n sb.append(escape(value.toString()));\n }\n\n // Emit an array of similar keys.\n } else if (value instanceof JSONArray) {\n ja = (JSONArray) value;\n for (Object val : ja) {\n if (val instanceof JSONArray) {\n sb.append('<');\n sb.append(sanitizedKey);\n sb.append('>');\n sb.append(toString(val));\n sb.append(\"</\");\n sb.append(sanitizedKey);\n sb.append('>');\n } else {\n sb.append(toString(val, sanitizedKey));\n }\n }\n // Give us a />'d version of the tag if the value is empty.\n } else if (\"\".equals(value)) {\n sb.append('<');\n sb.append(sanitizedKey);\n sb.append(\"/>\");\n\n // Emit a new tag using the sanitized key.\n } else {\n sb.append(toString(value, sanitizedKey));\n }\n }\n\n // Close the tag if we must.\n if (tagName != null) {\n sb.append(\"</\");\n sb.append(tagName);\n sb.append('>');\n }\n\n // Return the XML string we've built.\n return sb.toString();\n }\n\n // If this is a JSONArray, create an array of elements.\n if (object != null && (object instanceof JSONArray || object.getClass().isArray())) {\n if (object.getClass().isArray()) {\n ja = new JSONArray(object);\n } else {\n ja = (JSONArray) object;\n }\n for (Object val : ja) {\n // XML does not have good support for arrays. If an array\n // appears in a place where XML is lacking, synthesize an\n // <array> element.\n sb.append(toString(val, tagName == null ? \"array\" : tagName));\n }\n // Return the XML string we've built.\n return sb.toString();\n }\n\n // If this is just a string, we've hit the bottom of the iterator and can\n // just write an element.\n string = (object == null) ? \"null\" : escape(object.toString());\n return (tagName == null) ? \"\\\"\" + string + \"\\\"\"\n : (string.length() == 0) ? \"<\" + tagName + \"/>\" : \"<\" + tagName\n + \">\" + string + \"</\" + tagName + \">\";\n }", "private String toXML(){\n\tString buffer = \"<xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\">\\n\";\n\tfor(Room[] r : rooms)\n\t for(Room s : r)\n\t\tif(s != null)\n\t\t buffer += s.toXML();\n\tbuffer += \"</xml>\";\n\treturn buffer;\n }", "String ser(LockssSerializable o) throws Exception {\n File tf = getTempFile(\"ser\", \".xml\");\n new XStreamSerializer().serialize(tf, o);\n return StringUtil.fromFile(tf);\n }", "public interface XMLizable {\n\n /**\n * Write this element as an XML DOM element.\n */\n Element toXML();\n\n /**\n * Read this element as the content of the given element.\n */\n void readXML(Element elem) throws XMLSyntaxError;\n}", "public String toString(){\n return XMLParser.parseObject(this);\n }", "private String makeElementString (Object value, JField jf, MarshalContext context) throws Exception {\n\t\tString result;\n if (jf instanceof JCompositeField) {\n\t\t\tcontext.addDepth ();\n\t\t\tresult = marshal (value, context, jf.getJavaName(),\n\t\t\t\t\t\t\t jf.getObjectType ());\n\t\t\tcontext.removeDepth ();\n\t\t} else\n\t\t\tresult = context.getIndent () + \"\\t<\" + jf.getJavaName() + \">\" + objectOut (jf, value, context)\n\t\t\t\t+ \"</\" + jf.getJavaName() + \">\\n\";\n\t\treturn result;\n }", "public Element serialiseToElement(final Element element)\n {\n Document document = element.getOwnerDocument();\n // copy the context structure into the document\n Element context = document.createElement(_context.getTagName());\n context.appendChild(document.createTextNode(_context.getTextContent()));\n element.appendChild(context);\n return context;\n }", "public String serialize(Object object) {\n\t\tboolean collectionRoot = object instanceof Collection;\n\t\toutputStack = new Stack<StringBuilder>();\n\t\toutputStack.push(new StringBuilder());\n\t\tinputStack = new Stack<Object>();\n\t\tinputStack.push(object);\n\t\tpathStack = new Stack<Map<String, Object>>();\n\t\tpathStack.push(includePaths);\n\n\t\tif (collectionRoot) {\n\t\t\tCollection col = (Collection) object;\n\n\t\t\tif (isSimpleCollection(col)) {\n\t\t\t\taddKVPCollection(null, col);\n\t\t\t} else {\n\t\t\t\tIterator iterator = col.iterator();\n\t\t\t\tStringBuilder currentOutput = outputStack.peek();\n\t\t\t\tboolean first = true;\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\tObject obj = iterator.next();\n\t\t\t\t\trecursiveSerialize(obj, pathStack.peek());\n\t\t\t\t\tcurrentOutput.append(first ? \"{\" : \",{\").append(outputStack.pop()).append('}');\n\t\t\t\t\tfirst = false;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn finish(true);\n\t\t} else {\n\t\t\tfor (String includePath : includePaths.keySet()) {\n\t\t\t\tserializeProperty(includePath);\n\t\t\t}\n\t\t\treturn finish(false);\n\t\t}\n\t}", "@Override\n public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) {\n EnumValue enumValue = (EnumValue) object;\n writer.startNode(\"enumValue\");\n net.ssehub.easy.varModel.model.datatypes.Enum e = \n (net.ssehub.easy.varModel.model.datatypes.Enum) enumValue.getDatatype();\n writer.addAttribute(\"project\", String.valueOf(e.getTopLevelParent().getName()));\n writer.addAttribute(\"type\", enumValue.getDatatype().getName());\n writer.addAttribute(\"enum\", enumValue.getQualifiedName());\n writer.endNode();\n }", "public String toXml() throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tMarshaller m = jc.createMarshaller();\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tm.marshal(this, sw);\r\n\t\treturn sw.toString();\r\n\t}", "public Node encode(Object obj) {\n Node node = null;\n\n if (obj != null) {\n String name = mxCodecRegistry.getName(obj);\n mxObjectCodec enc = mxCodecRegistry.getCodec(name);\n\n if (enc != null) {\n node = enc.encode(this, obj);\n }\n else {\n if (obj instanceof Node) {\n node = ((Node)obj).cloneNode(true);\n }\n else {\n System.err.println(\"No codec for \" + name);\n }\n }\n }\n\n return node;\n }", "public String serialize(Object obj) throws PdfFillerAPIException {\n try {\n if (obj != null)\n return mapper.toJson(obj);\n else\n return null;\n } catch (Exception e) {\n throw new PdfFillerAPIException(400, e.getMessage());\n }\n }" ]
[ "0.668396", "0.6537591", "0.6502446", "0.6385279", "0.6317034", "0.63007945", "0.62820977", "0.6259097", "0.6235107", "0.61730313", "0.6150733", "0.61334014", "0.6085385", "0.6085385", "0.6054681", "0.6014805", "0.6009433", "0.59618086", "0.5916805", "0.5838792", "0.58255845", "0.58255845", "0.58255845", "0.5823538", "0.57904947", "0.5702929", "0.5681494", "0.56770337", "0.5675123", "0.56391615", "0.5626145", "0.5624607", "0.56068957", "0.55973333", "0.55703115", "0.55596536", "0.55492675", "0.55422807", "0.553344", "0.55328315", "0.5517641", "0.55152595", "0.55091166", "0.54986423", "0.548089", "0.54744256", "0.54527384", "0.5440874", "0.5420979", "0.5412027", "0.5407815", "0.5380597", "0.53761256", "0.5357008", "0.5337753", "0.53350383", "0.5315529", "0.531176", "0.52985674", "0.52981424", "0.5280348", "0.52662987", "0.52622443", "0.5252692", "0.52526623", "0.5246582", "0.5246582", "0.5235165", "0.522524", "0.5211819", "0.51911", "0.5173137", "0.51669246", "0.51426727", "0.5140009", "0.5131161", "0.5124027", "0.5117334", "0.5113286", "0.5111507", "0.5103627", "0.51015735", "0.50876576", "0.50793535", "0.5077178", "0.50770056", "0.5063744", "0.5063625", "0.5062841", "0.5055963", "0.5039151", "0.5029727", "0.50206643", "0.5011354", "0.50090176", "0.5004147", "0.49991444", "0.49988285", "0.49888453", "0.49839625" ]
0.5992746
17
ExternalizableLite helpers Read a value from the passed DataInput object.
public Object readExternal(DataInput in) throws IOException { return readObject(in, getBeanInfo().getType().getClassLoader()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object readValue();", "protected abstract ContentValues getDataFromInput();", "public abstract void read(DataInput input) throws IOException;", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "public void readExternal(ObjectInput in) throws IOException, FileNotFoundException, ClassNotFoundException{\n\t\tSystem.out.println(\"Inside readExternal()\");\n\t\tthis.age = in.readInt();\n\t\tthis.name = (String) in.readObject();\n\t\tthis.address = (String) in.readObject();\n\t\tthis.job = (String) in.readObject();\n\t}", "public void readExternal(ObjectInput in) throws IOException\n \t{\n \t\tint lenInBits;\n \t\tint lenInBytes;\n \n \t\tlenInBits = in.readInt();\n \n \t\tlenInBytes = FormatableBitSet.numBytesFromBits(lenInBits);\n \n \n \t\t/*\n \t\t** How can lenInBytes be zero? The implication is\n \t\t** that lenInBits is zero. Well, the reason this can\n \t\t** happen is that the store will reset our stream\n \t\t** out from underneath us if we are a Bit column that\n \t\t** overflows onto another page because it assumes that\n \t\t** we want to stream it in specially. Because of this warped\n \t\t** API, our readInt() will return 0 even though our\n \t\t** writeExternal() did a writeInt(xxx). The upshot\n \t\t** is that you should leave the following alone.\n \t\t*/\n \n \t\t\tvalue = new byte[lenInBytes];\n \n \t\t\tin.readFully(value);\n \n \t\t\tbitsInLastByte = numBitsInLastByte(lenInBits);\n \n \t\t\tlengthAsBits = lenInBits;\n \t}", "protected void readData(DataInput input) throws IOException {\n try {\n operationStatus = input.readByte();\n\n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n exception = input.readByte();\n } else {\n // We have already readed operation for the manual reflection\n int length = input.readInt();\n \n byte[] data = new byte[length];\n input.readFully(data);\n\n ByteArrayInputStream bin = new ByteArrayInputStream(data);\n ObjectInputStream oin = new ObjectInputStream(bin);\n returnValue = (KSNSerializableInterface) oin.readObject();\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "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 static ValueMember read(InputStream paramInputStream) {\n/* 138 */ ValueMember valueMember = new ValueMember();\n/* 139 */ valueMember.name = paramInputStream.read_string();\n/* 140 */ valueMember.id = paramInputStream.read_string();\n/* 141 */ valueMember.defined_in = paramInputStream.read_string();\n/* 142 */ valueMember.version = paramInputStream.read_string();\n/* 143 */ valueMember.type = paramInputStream.read_TypeCode();\n/* 144 */ valueMember.type_def = IDLTypeHelper.read(paramInputStream);\n/* 145 */ valueMember.access = paramInputStream.read_short();\n/* 146 */ return valueMember;\n/* */ }", "Object read(Object inputObject, Settings settings);", "public abstract void readData(DataInput din) throws IOException;", "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in.readByte(); // version\n type = in.readUTF();\n subType = in.readUTF();\n // allow for more data from future version\n int extra = in.readShort();\n if (extra > 0) {\n byte[] extraBytes = new byte[extra];\n in.read(extraBytes, 0, extra);\n }\n }", "@Override\n\tpublic void readExternal(ObjectInput in) throws IOException,\n\t\t\tClassNotFoundException {\n\t\t\n\t\tname = (String) in.readObject();\n\t\ti = in.readInt();\n\t\t\n\t}", "@Override\n public T getData() {\n Scanner scanner = new Scanner(System.in);\n return (T) scanner.next();\n }", "public <T> T readValue() {\n return readObject();\n }", "public void read(NetInput in)\r\n/* 35: */ throws IOException\r\n/* 36: */ {\r\n/* 37:35 */ this.entityId = in.readInt();\r\n/* 38:36 */ this.metadata = NetUtil.readEntityMetadata(in);\r\n/* 39: */ }", "public void readExternal\n\t(ObjectInput in)\n\t\t\tthrows IOException\n\t\t\t{\n\t\tmyQueryId = in.readLong();\n\t\tmySubjectId = in.readLong();\n\t\tmyQueryLength = in.readInt();\n\t\tmySubjectLength = in.readInt();\n\t\tmyScore = in.readInt();\n\t\tmyQueryStart = in.readInt();\n\t\tmySubjectStart = in.readInt();\n\t\tmyQueryFinish = in.readInt();\n\t\tmySubjectFinish = in.readInt();\n\t\t\t}", "protected abstract Object read ();", "public Object read();", "@Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }", "public Object readData(CodedInputByteBufferNano codedInputByteBufferNano) {\n try {\n return codedInputByteBufferNano.readPrimitiveField(this.type);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Error reading extension field\", e);\n }\n }", "public abstract <T> void read(String path, ValueCallback<T> callback) throws ValueReadingException;", "public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = PropositionHelper.read(istream);\r\n }", "public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n\t}", "public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = NiveauEtudeHelper.read(istream);\r\n }", "boolean shouldReadValue();", "public abstract void readDataItem(BDTuple tuple) throws RollbackException;", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "private ClothingItem readItem() {\n System.out.println(\"Read item {id,name,designer,price}\");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n String name = bufferRead.readLine();\n String designer = bufferRead.readLine();\n int price = Integer.parseInt(bufferRead.readLine());\n ClothingItem item = new ClothingItem(name, designer, price);\n item.setId(id);\n\n return item;\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public InputData getData() throws IOException {\n\n ObjectMapper mapper = new ObjectMapper();\n return mapper.readValue(Paths.get(inFile).toFile(), InputData.class);\n }", "public void _read(org.omg.CORBA.portable.InputStream istream)\n {\n value = autorisationCollabInterditeHelper.read(istream);\n }", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "@Nullable ExpDataRunInput getDataInput(int dataId, int targetProtocolApplicationId);", "private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }", "protected String readString(DataInput in) throws IOException {\n if (in.readBoolean())\n return (in.readUTF());\n return null;\n }", "public void read(ArrayDataInput in) throws FitsException, IOException;", "private String getOutputDataValue(String inputData) {\n\t\tString outputDataValue = inputData;\n\t\tif (!outputDataValue.isEmpty() && modificationRequired) {\n\t\t\toutputDataValue = modify(outputDataValue);\n\t\t}\n\t\tif (!outputDataValue.isEmpty() && translationRequired) {\n\t\t\toutputDataValue = translate(outputDataValue);\n\t\t}\n\t\tif (outputDataValue.isEmpty() && !defaultValue.isEmpty()) {\n\t\t\toutputDataValue = defaultValue;\n\t\t}\n\t\tif (!outputDataValue.isEmpty() && replaceNonPrintableCharacters) {\n\t\t\toutputDataValue = replaceNonPrintableCharacters(outputDataValue);\n\t\t}\n\t\t//System.out.println(\"Output data value for \" + dataItemName + \" is \" + outputDataValue);\t\n\t\treturn outputDataValue;\n\t}", "public String readInput() {\n\t\treturn null;\n\t}", "public void read(DBTableField pdxTableField, InputStream inputStream) throws Exception {\n try {\n /*\n * get the data\n */\n final byte[] data = new byte[pdxTableField.getLength()];\n inputStream.read(data);\n /*\n * convert to type\n */\n switch (pdxTableField.getFieldType()) {\n case A:\n value = StringUtil.readString(data);\n break;\n case D:\n final long d = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getShort();\n value = Long.toString(d);\n break;\n case S:\n final long s = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getShort();\n value = Long.toString(s);\n break;\n case I:\n data[0] = (byte) (data[0] & 0x7f); // handle unsigned integers\n final long i = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN).getInt();\n value = Long.toString(i);\n break;\n case $:\n final double dollars = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN).getDouble();\n value = Double.toString(dollars);\n break;\n case M:\n value = StringUtil.ByteArrayToString(data);\n case N:\n final long n = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getLong();\n value = Double.toString(n);\n break;\n case B:\n value = StringUtil.ByteArrayToString(data);\n break;\n case TS:\n // milliseconds since Jan 1, 1 AD, convert to UTC time\n data[0] = (byte) (data[0] & 0x7f); // handle unsigned number\n double dt = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN).getDouble();\n long dateTime = (long) dt;\n if (dateTime == 0) {\n value = null;\n } else {\n dateTime -= 86400000; // millis in 1 day\n dateTime -= 62135607600000l; // millis from 01.01.1970\n value = Long.toString(dateTime);\n }\n break;\n case Auto:\n final short auto = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getShort();\n value = Short.toString(auto);\n }\n } catch (final Exception e) {\n throw new Exception(\"Exception in read\", e);\n }\n }", "@Override\r\n protected void readImpl() {\r\n _recipeId = readD();\r\n }", "public Object read() throws IOException, RecordIOException;", "void readObject(InputSerializer in) throws java.io.IOException;", "public FFileInputDO findById(long inputId) throws DataAccessException;", "abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;", "@Override\n public Value64 read() {\n int s = input0.read().intValue();\n int t = input1.read().intValue();\n long d = 0;\n switch (mduOp.read().byteValue()) {\n case AluOp.Multiply:\n d = s * t;\n break;\n case AluOp.Divide:\n d = s / t;\n break;\n }\n return new Value64(d);\n }", "public interface IObjectInput {\r\n\r\n\t/**\r\n\t * Reads a boolean.\r\n\t *\r\n\t * @return The next boolean.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic boolean readBoolean() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a char.\r\n\t *\r\n\t * @return The next char.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic char readChar() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 32 bit integer.\r\n\t *\r\n\t * @return The next 32 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic int readInt() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 64 bit integer.\r\n\t *\r\n\t * @return The next 64 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic long readLong() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 16 bit integer.\r\n\t *\r\n\t * @return The next 16 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic short readShort() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a utf encoded string.\r\n\t *\r\n\t * @return The next utf encoded string.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic String readUTF() throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a byte.\r\n\t *\r\n\t * @return The next byte.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic byte readByte() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer.\r\n\t * The number of bytes read is defined by the lenght of the\r\n\t * buffer.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer) throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer\r\n\t * starting from the specified offset. The number of bytes\r\n\t * read is defined by the length parameter.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @param offset The offset to start from.\r\n\t * @param length The number of bytes to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer, int offset, int length) throws IOException;\r\n\r\n\t/**\r\n\t * Reads an object.\r\n\t * \r\n\t * @return The object that has been read.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic Object readObject() throws IOException;\r\n\r\n}", "abstract int read(TextInput ti) throws IOException;", "public abstract void readFields(DataInput in) throws IOException;", "public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}", "@Override\n public T readData(InputStream in) throws IOException\n {\n String doc = _read(in, \"UTF-8\");\n return _deserializer.deserialize(doc, _itemClass);\n }", "@Override\r\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tthis.id = WritableUtils.readVInt(in);\r\n\t}", "public void my_readFromParcel(Parcel in) {\n x = in.readFloat();\n y = in.readFloat();\n }", "T read(String identifier) throws IOException;", "public abstract <T> void read(String path, ValueCollector<T> collector) throws ValueReadingException;", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tText writableCandidate = new Text();\n\t\tDoubleWritable doubleWritable = new DoubleWritable();\n\t\t\n\t\twritableCandidate.readFields(in);\n\t\t\n\t\t//extract the candidate\n\t\tcandidate = (T)StringUtils.fromString(writableCandidate.toString());\n\t\t\n\t\t//extract the fitness value\n\t\tdoubleWritable.readFields(in);\n\t\tfitness = doubleWritable.get();\n\t}", "@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tthis.id=in.readInt();\n\t\tthis.date=in.readUTF();\n\t\tthis.pid=in.readUTF();\n\t\tthis.amount=in.readInt();\n\t\tthis.name=in.readUTF();\n\t\tthis.category_id=in.readUTF();\n\t\tthis.price=in.readInt();\n\t\tthis.flag=in.readUTF();\n\t\t\t\t\n\t\t\t\t\n\t\t\n\t}", "public <T> T getInputValue(String key) {\n if (activity==null || activity.activityType==null || activity.activityType.getInputs()==null) {\n return null;\n }\n InputParameterImpl parameter = (InputParameterImpl) activity.activityType.getInputs().get(key);\n TypedValueImpl typedValue = getInputTypedValue(parameter);\n return (T) (typedValue!=null ? typedValue.value : null);\n }", "public void readExternal( ObjectInput in )\n\t\tthrows IOException, ClassNotFoundException\n\t{\n\t\tid\t\t\t\t\t= (Long)in.readObject();\n\t\ttitle\t\t\t\t= (String)in.readObject();\n\t\tdescription\t\t\t= (String)in.readObject();\n\t\twebPageURL\t\t\t= (String)in.readObject();\n\t\tcreationTime\t\t= (Date)in.readObject();\n\t\tmodificationTime\t= (Date)in.readObject();\n\t\towner\t\t\t\t= (String)in.readObject();\n\t\tisPublic \t\t= in.readBoolean();\n\t\tisActive = in.readBoolean();\n\t\tisActive\t\t\t= true;\n\t\t\n\t\tcategory = (AnnotationCategory)in.readObject();\n\t\tbody\t\t\t\t= (String)in.readObject();\n\t\tresetText(body);\n\t\ttarget\t\t\t\t= (TextRange)in.readObject();\n\t\tauthor\t\t\t\t= (String)in.readObject();\n\t\tannotates\t\t\t= (String)in.readObject();\n\t\tworkPart = WorkUtils.getWorkPartByTag(annotates);\n\t}", "public ReadData(String pathname, String userInput)\n\t{\n\t\tUser = userInput;\n\t\tfilename = pathname; //Records the path filename.\n\t}", "Object getValueFrom();", "E read(K id);", "@Override\n public DataAttributes process(InputStream input) throws Ex {\n return null;\n }", "public void readExternal(ObjectInput in)\n\t\tthrows IOException, ClassNotFoundException\n\t{\n\t\tarray = new Object[ArrayUtil.readArrayLength(in)];\n\t\tArrayUtil.readArrayItems(in, array);\n\t}", "@Override\n public void setValue(InputStream value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "T read(int id);", "T read(int id);", "private StackManipulation loadFieldValue(int fieldId) {\n if (fieldId != -1) {\n // If a field id was specified, then load it.\n return getCurrentRowFieldValue(fieldId);\n } else {\n // If not specified, then assume it was stored in this member variable.\n return localVariables.readVariable(fieldValueArg);\n }\n }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "@Override\n public Ini read(InputStream in) throws IOException {\n return read(new InputStreamReader(in));\n }", "static String read ()\r\n \t{\r\n \t\tString sinput;\r\n \r\n \t\ttry\r\n \t\t{\r\n \t\t\tsinput = br.readLine();\r\n \t\t}\r\n \t\tcatch (IOException e)\r\n \t\t{\r\n \t\t\tErrorLog.addError(\"Input exception occured in command line interface!\");\r\n \t\t\treturn null; //Menu will exit when fed a null\r\n \t\t}\r\n \t\treturn sinput;\r\n \t}", "@Override\n\tpublic void readExternal(ObjectInput in) throws IOException,\n\t\t\tClassNotFoundException {\n\t}", "public interface ObjectInput extends DataInput {\n /**\n * Indicates the number of bytes of primitive data that can be read without\n * blocking.\n *\n * @return the number of bytes available.\n * @throws IOException\n * if an I/O error occurs.\n */\n public int available() throws IOException;\n\n /**\n * Closes this stream. Implementations of this method should free any\n * resources used by the stream.\n *\n * @throws IOException\n * if an I/O error occurs while closing the input stream.\n */\n public void close() throws IOException;\n\n /**\n * Reads a single byte from this stream and returns it as an integer in the\n * range from 0 to 255. Returns -1 if the end of this stream has been\n * reached. Blocks if no input is available.\n *\n * @return the byte read or -1 if the end of this stream has been reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read() throws IOException;\n\n /**\n * Reads bytes from this stream into the byte array {@code buffer}. Blocks\n * while waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer) throws IOException;\n\n /**\n * Reads at most {@code count} bytes from this stream and stores them in\n * byte array {@code buffer} starting at offset {@code count}. Blocks while\n * waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @param offset\n * the initial position in {@code buffer} to store the bytes read\n * from this stream.\n * @param count\n * the maximum number of bytes to store in {@code buffer}.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer, int offset, int count) throws IOException;\n\n /**\n * Reads the next object from this stream.\n *\n * @return the object read.\n *\n * @throws ClassNotFoundException\n * if the object's class cannot be found.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public Object readObject() throws ClassNotFoundException, IOException;\n\n /**\n * Skips {@code toSkip} bytes on this stream. Less than {@code toSkip} byte are\n * skipped if the end of this stream is reached before the operation\n * completes.\n *\n * @param toSkip\n * the number of bytes to skip.\n * @return the number of bytes actually skipped.\n *\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public long skip(long toSkip) throws IOException;\n}", "public void readFields(DataInput dataInput) throws IOException {\n }", "InputValueDefinition createInputValueDefinition();", "public Serializable read_value( InputStream is ){\r\n\t return is.read_value( new UtcTBase() );\r\n }", "org.apache.calcite.avatica.proto.Common.TypedValue getValue();", "public Object read() throws IOException {\n int code = 1;\n try {\n code = in.readUnsignedByte();\n } catch (EOFException eof) {\n return null;\n }\n if (code == Type.BYTES.code) {\n return new Buffer(readBytes());\n } else if (code == Type.BYTE.code) {\n return readByte();\n } else if (code == Type.BOOL.code) {\n return readBool();\n } else if (code == Type.INT.code) {\n return readInt();\n } else if (code == Type.LONG.code) {\n return readLong();\n } else if (code == Type.FLOAT.code) {\n return readFloat();\n } else if (code == Type.DOUBLE.code) {\n return readDouble();\n } else if (code == Type.STRING.code) {\n return readString();\n } else if (code == Type.VECTOR.code) {\n return readVector();\n } else if (code == Type.LIST.code) {\n return readList();\n } else if (code == Type.MAP.code) {\n return readMap();\n } else if (code == Type.MARKER.code) {\n return null;\n } else if (50 <= code && code <= 200) { // application-specific typecodes\n return new Buffer(readBytes());\n } else {\n throw new RuntimeException(\"unknown type\");\n }\n }", "public String read();", "public void _read( org.omg.CORBA.portable.InputStream is )\r\n {\r\n super._read( is );\r\n try\r\n {\r\n m_params = ParameterSequenceHelper.read(is);\r\n\t m_default = is.read_string( );\r\n }\r\n catch( Throwable _input_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error reading input stream for '\"\r\n + \"net.osm.factory.FactoryValue', due to: \" \r\n + _input_read_exception_.toString() );\r\n }\r\n }", "public void readExternal( ObjectInput in )\n throws IOException, ClassNotFoundException\n {\n unqualifiedName = in.readUTF();\n\n //\n // If the name begins with a quote, then it is just the first part\n // of the type name, viz., the schema that the type lives in.\n // Strip the quotes from around the name and then read the\n // following unqualified name.\n //\n if ( unqualifiedName.charAt( 0 ) == '\"' )\n {\n schemaName = stripQuotes( unqualifiedName );\n unqualifiedName = in.readUTF();\n }\n }", "public void setInput(SVIResource in) throws Exception;", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "protected void writeRead ()\n {\n stream.println (\" public void _read (org.omg.CORBA.portable.InputStream i)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((ValueBoxEntry) entry).state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n if (mType instanceof StringEntry)\n stream.println (\" value = i.read_string ();\");\n\n else if (mType instanceof PrimitiveEntry)\n stream.println (\" value = \" + helperClass + \".read (i).value;\");\n\n else\n stream.println (\" value = \" + helperClass + \".read (i);\");\n }\n else\n stream.println (\" value = \" + helperClass + \".read (i);\");\n stream.println (\" }\");\n stream.println ();\n }", "public void ownRead();", "@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tword = in.readUTF();\n\t\ttitle = in.readUTF();\n\t}", "@Override\n\tpublic Object read(String name) {\n\t\treturn null;\n\t}", "public void readFields(DataInput in) throws IOException {\n\t\trating = in.readInt();\n\t\tproductTitle = in.readUTF();\n\t}", "InputStream getDataStream();", "@Override\n\tpublic void readFields(DataInput din) throws IOException {\n\t\tthis.time = din.readLong();\n\t\tthis.intVal = din.readInt();\n\t}", "public java.lang.String getInputData() {\n return inputData;\n }", "public static int readInt() {\n return Integer.parseInt(readString());\n }", "public void read(DataInputStream in) throws IOException;", "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}", "protected abstract RMItem readData( int id, String key );", "public void setInputData(java.lang.String inputData) {\n this.inputData = inputData;\n }", "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n\n\n }", "public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}", "public void readExternal(ObjectInput objectInput)\n throws IOException, ClassNotFoundException\n {\n Long version = objectInput.readLong();\n \n if(version != serialVersionUID)\n {\n throw new InvalidClassException(\"Classes are not compatible. Received serialVersionUID = \" + version + \", local serialVersionUID = \"+ serialVersionUID);\n }\n\n _wrapped = (FacesMessage)objectInput.readObject();\n _label = objectInput.readObject();\n }", "public static String readString(){\n\t\tstringInput = readInput();\n\t\treturn stringInput; \n\t}", "public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }" ]
[ "0.68585086", "0.6339319", "0.62346554", "0.605002", "0.60288095", "0.5874311", "0.58369887", "0.5835868", "0.58308566", "0.57677895", "0.57499325", "0.5739193", "0.5732985", "0.571443", "0.57062376", "0.5698333", "0.56901014", "0.5689363", "0.5646086", "0.56326663", "0.5628404", "0.5605039", "0.5592672", "0.55918056", "0.55560863", "0.5553698", "0.5539007", "0.5516042", "0.5513545", "0.54962677", "0.54794794", "0.54676175", "0.5463036", "0.5462063", "0.5458233", "0.54421777", "0.54370815", "0.5385797", "0.53800577", "0.5352354", "0.5350288", "0.53464496", "0.5342877", "0.5338759", "0.5337561", "0.53371316", "0.53357846", "0.53333145", "0.53285897", "0.53280073", "0.5320235", "0.5318422", "0.52981985", "0.5279433", "0.5275897", "0.525489", "0.5254107", "0.52479535", "0.52448165", "0.523324", "0.52296793", "0.5206508", "0.51909375", "0.51893127", "0.51844823", "0.51844823", "0.51820904", "0.5170079", "0.51670885", "0.5164957", "0.5161657", "0.51563656", "0.51492393", "0.5134931", "0.513246", "0.513049", "0.51178527", "0.51121813", "0.510604", "0.5097065", "0.50966513", "0.5094549", "0.50821364", "0.5080276", "0.50781167", "0.50682354", "0.5054043", "0.50513816", "0.5048051", "0.5047895", "0.50460494", "0.5037096", "0.5035607", "0.50333375", "0.5025759", "0.5024273", "0.5023852", "0.5020104", "0.501933", "0.5019237" ]
0.6289348
2
Write the specified data to the passed DataOutput object.
public void writeExternal(DataOutput out, Object o) throws IOException { writeObject(out, o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(DataOutput dataOutput) throws IOException {\n }", "public abstract void writeData(DataOutput dout) throws IOException;", "@Override\n public int writeData(OutputStream out, T data) throws Exception\n {\n OutputStreamWriter w = new OutputStreamWriter(out, \"UTF-8\");\n w.write(_serializer.deepSerialize(data));\n w.close();\n return -1;\n }", "protected synchronized void writeOut(String data) {\n\t\t\n\t\tif(output != null)\n\t\t\toutput.println(data);\n\t\telse\n\t\t\tSystem.out.println(this.name + \" output not initialized\");\n\t}", "protected void writeData(DataOutput output) throws IOException {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bout);\n oos.writeObject(returnValue);\n\n output.write(getOperationStatus());\n \n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n output.write(getException());\n } else {\n output.writeInt(bout.size());\n output.write(bout.toByteArray());\n }\n }", "private void writeData(String data) throws IOException\n {\n this.writer.println(data);\n this.writer.flush();\n }", "@Override\n public void write(DataOutput dataOutput) throws IOException {\n dataOutput.writeUTF(logTimestamp);\n dataOutput.writeUTF(logID);\n dataOutput.writeUTF(userNumber);\n dataOutput.writeUTF(menuName);\n }", "public void write(DataOutput output) throws IOException {\n output.writeUTF(this.data);\n }", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public abstract void writeToStream(DataOutputStream dataOutputStream);", "public static void write(@Nullable final byte[] data, final OutputStream output)\n throws IOException {\n if (data != null) {\n output.write(data);\n }\n }", "public void write(DataOutputStream out) throws IOException;", "protected abstract void _write(DataOutput output) throws IOException;", "@Override\n\tpublic void write(DataOutputStream dataOutStream) throws IOException {\n\t\tdataOutStream.writeLong(id);\n\t\tsuper.write(dataOutStream);\n\t}", "@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }", "public abstract void write(DataOutput out) throws IOException;", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "public static void write(@Nullable final CharSequence data, final Writer output) throws IOException {\n if (data != null) {\n write(data.toString(), output);\n }\n }", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "@Override\n\tpublic void write(DataOutput dataout) throws IOException {\n\t\tsports.write(dataout);\n\t\tcountry.write(dataout);\n\t\t\n\t\t\n\t}", "public void write(ArrayDataOutput out) throws FitsException, IOException;", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "public static void write(@Nullable final String data, final Writer output) throws IOException {\n if (data != null) {\n output.write(data);\n }\n }", "@Override\n\t\tpublic void write(DataOutput arg0) throws IOException {\n\t\t\tk.write(arg0);\n\t\t\tv.write(arg0);\n\t\t}", "public void write(byte[] data, long offset);", "public static void write(@Nullable final StringBuffer data, final Writer output)\n throws IOException {\n if (data != null) {\n output.write(data.toString());\n }\n }", "public void writeData(DataOutputStream dataOutputStream) throws IOException {\n dataOutputStream.writeUTF(subChannel);\n }", "public abstract void write (DataOutputStream outStream)\r\n throws IOException;", "private static void writeDATA(int data) {\n writeByte(true,data);\n }", "private void toFile(OutputData data) {\n if(data == null) {\r\n JOptionPane.showMessageDialog(this, \"Dane wynikowe nie zostały jeszcze umieszczone w pamieci\");\r\n return;\r\n }\r\n\r\n // Sprawdzenie sciezki zapisu\r\n String filePath = this.outputFileSelector.getPath();\r\n if(filePath.length() <= 5) {\r\n JOptionPane.showMessageDialog(this, \"Nie można zapisać wyniku w wybranej lokacji!\");\r\n return;\r\n }\r\n\r\n // Zapisujemy plik na dysk\r\n try{\r\n PrintWriter writer = new PrintWriter(filePath, \"UTF-8\");\r\n OutputDataFormatter odf = new OutputDataFormatter(this.outputData);\r\n\r\n String userPattern = this.outputFormatPanel.getPattern();\r\n writer.write(odf.getParsedString(userPattern.length() < 2 ? defaultFormatting : userPattern));\r\n\r\n writer.close();\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(this, \"Wystąpił błąd IO podczas zapisu.\");\r\n }\r\n\r\n }", "@Override\n public void write(Data dataPacket) throws IOException {\n }", "public void write(DataOutput out) throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n TIOStreamTransport trans = new TIOStreamTransport(baos);\n TBinaryProtocol oprot = new TBinaryProtocol(trans);\n try {\n v.write(oprot);\n byte[] array = baos.toByteArray();\n out.writeInt(array.length);\n out.write(array);\n } catch (TException e) {\n throw new IOException(e.toString());\n }\n }", "public void serialize(RevisionDataOutput dataOutput, T object) throws IOException {\n serialize(dataOutput.getBaseStream(), object);\n }", "public static void write(@Nullable final char[] data, final Writer output) throws IOException {\n if (data != null) {\n output.write(data);\n }\n }", "public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void write(T dataElement);", "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}", "protected void writeData(OutputStream out) throws IOException {\r\n out.write(content);\r\n }", "void writeTo(DataSink dataSink) throws IOException;", "@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }", "private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }", "public void save(DataOutputStream dataOut) {\n int i;\n int j;\n for (i = 0; i < nr_of_segments; i++) {\n for (j = 0; j < points_per_segment; j++) {\n try {\n dataOut.writeDouble(points[i][j].x);\n dataOut.writeDouble(points[i][j].y);\n dataOut.writeDouble(points[i][j].z);\n } catch (IOException e) {\n System.out.println(\"Problem creating file\");\n }\n\n }\n }\n }", "@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}", "public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(first);\n\t\targ0.writeUTF(second);\n\t}", "public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}", "protected void writeTrueData(BufferedDataOutputStream o) throws FitsException {\n\n try {\n o.writePrimitiveArray(dataArray);\n } catch (IOException e) {\n throw new FitsException(\"FITS Output Error: \"+e);\n }\n }", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\ttimeInt.write(out);\n\t\tsum.write(out);\n\t\tIp.write(out);\n\t}", "private void writeToFile(final String data, final File outFile) {\n try {\n FileOutputStream foutStream = new FileOutputStream(outFile);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(foutStream);\n outputStreamWriter.write(data);\n outputStreamWriter.close();\n foutStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(this.id.length());\n\t\tout.write(this.id.getBytes());\n\t\t\n\t\tout.writeInt(this.sequence.length());\n\t\tout.write(this.sequence.getBytes());\n\t\t\n\t\tfor (Point3d p: this.structure) {\n\t\t\tif (p == null) {\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t} else {\n\t\t\t\tif (p.x*10 > Short.MAX_VALUE || p.y*10 > Short.MAX_VALUE || p.z*10 > Short.MAX_VALUE) {\n\t\t\t\t\tSystem.out.println(\"Overflow\");\n\t\t\t\t}\n\t\t\t\tout.writeShort((short)Math.round(p.x*10));\n\t\t\t\tout.writeShort((short)Math.round(p.y*10));\n\t\t\t\tout.writeShort((short)Math.round(p.z*10));\n\t\t\t}\n\t\t}\n\t}", "private static void writeOutput (int[][] outData) {\r\n\t\tString outFile = \"Input_\" + outData.length + \".txt\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile fileLocation = new File(outFile);\t\t\r\n\t\t\tPrintWriter Writer = new PrintWriter(fileLocation, \"UTF-8\");\t\r\n\t\t\tfor (int i = 0; i < outData.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < outData[i].length; j++) {\r\n\t\t\t\t\tif (outData[i][j] == INFINITY) {\r\n\t\t\t\t\t\tWriter.print(\"NA\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tWriter.print(outData[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j != outData[i].length - 1) {\r\n\t\t\t\t\t\tWriter.print(\"\\t\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tWriter.println();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tWriter.close();\r\n\t\t} catch (Exception ex) {\r\n System.out.println(ex.toString()); \r\n\t\t}\r\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(country.toString());\n\t\targ0.writeUTF(tag.toString());\n\t}", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;", "public void write(byte[] data) throws IOException {\r\n try {\r\n os.write(data);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }", "public void write(int location, ByteBuffer data)\n throws DataOrderingException;", "void writeTo(DataSink dataSink, boolean overWrite) throws IOException;", "@Override\n public void write(byte[] data, int off, int len) throws IOException {\n for (int i = off; i < len; i++) {\n write(data[i]);\n }\n }", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "@Override\n public void onDataWrite(String deviceName, String data)\n {\n if(mTruconnectHandler.getLastWritePacket().contentEquals(data))\n {\n mTruconnectCallbacks.onDataWritten(data);\n\n String nextPacket = mTruconnectHandler.getNextWriteDataPacket();\n if(!nextPacket.contentEquals(\"\"))\n {\n mBLEHandler.writeData(deviceName, nextPacket);\n }\n }\n else\n {\n mTruconnectCallbacks.onError(TruconnectErrorCode.WRITE_FAILED);\n mTruconnectHandler.onError();\n }\n }", "public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}", "public static void generate(byte[] data, PrintStream output) {\n generate(SparseStream.fromStream(new MemoryStream(data, false), Ownership.None), output);\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(id);\n\t\tout.writeUTF(date);\n\t\tout.writeUTF(pid);\n\t\tout.writeInt(amount);\n\t\tout.writeUTF(name);\n\t\tout.writeUTF(category_id);\n\t\tout.writeInt(price);\n\t\tout.writeUTF(flag);\n\t\t\n\t}", "private void writeData(Employee[] employees, DataOutput out) throws IOException {\n // write number of employees\n out.writeInt(employees.length);\n\n for (Employee e : employees) {\n out.writeInt(e.getName().length());\n out.writeChars(e.getName());\n out.writeInt(e.getHireDay().toString().length());\n out.writeChars(e.getHireDay().toString());\n out.writeDouble(e.getSalary());\n }\n }", "public void write(BufferedDataOutputStream o) throws FitsException {\n\n this.writeTrueData(o);\n byte[] padding = new byte[getPadding()];\n try {\n o.writePrimitiveArray(padding);\n } catch (IOException e) {\n throw new FitsException (\"Error writing padding: \"+e);\n }\n\n }", "public static void write(DataContainer data, File destination) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint countColumn = data.getAttributes().size();\n\t\tint i = 0;\n\t\t\n\t\t//write attribute names\n\t\tfor(String attribute : data.getAttributes()){\n\t\t\tif(attribute.contains(\";\")){\n\t\t\t\tsb.append(\"\\\"\" + attribute.replace(\"\\\"\", \"\\\"\\\"\") + \"\\\"\");\n\t\t\t} else {\n\t\t\t\tsb.append(attribute.replace(\"\\\"\", \"\\\"\\\"\"));\n\t\t\t}\n\t\t\t//if this is not the last element in the row, append semicolon\n\t\t\tif(i != countColumn - 1) sb.append(\";\");\n\t\t\ti++;\n\t\t}\n\t\tsb.append(NEWLINE);\n\t\t\n\t\t//write data\n\t\tfor(i = 0; i < data.getNumberOfRows(); i++){\n\t\t\tif(data.getDataRow(i) == null) continue;\n\t\t\tint j = 0;\n\t\t\tfor(String value : data.getDataRow(i)){\n\t\t\t\tif(value.contains(\";\")){\n\t\t\t\t\tsb.append(\"\\\"\" + value.replace(\"\\\"\", \"\\\"\\\"\") + \"\\\"\");\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(value.replace(\"\\\"\", \"\\\"\\\"\"));\n\t\t\t\t}\n\t\t\t\t//if this is not the last element in the row, append semicolon\n\t\t\t\tif (j != countColumn - 1) sb.append(\";\");\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tsb.append(NEWLINE);\n\t\t}\n\t\t\n\t\t//write the assembled content to the file\n\t\tFileOutputStream fos = new FileOutputStream(destination);\n\t\tOutputStreamWriter osw = new OutputStreamWriter(fos, \"UTF8\");\n\t\tosw.write(sb.toString());\n\t\tosw.close();\n\t}", "public void write(DataOutput out) throws IOException {\n out.writeLong(upFlow);\n out.writeLong(downFlow);\n out.writeLong(sumFlow);\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}", "@Override\n public void write(final byte[] data, final int offset, final int length)\n throws IOException {\n if (offset < 0 || length < 0 || length > data.length - offset) {\n throw new IndexOutOfBoundsException();\n }\n\n writeInternal(data, offset, length);\n }", "@Override\n\tpublic void write(Map<String, String> redisData) {\n\t\tlogger.traceEntry();\n\n\t\tsynchronized (dataOutputStreams) {\n\t\t\tfor (String name : redisData.keySet()) {\n\t\t\t\ttry {\n\t\t\t\t\twrite(redisData.get(name));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Error writing data in HDFS\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.traceExit();\n\n\t}", "@Override\n\tpublic void write(OutStream outStream) {\n\t}", "public void write(DataOutputStream out) throws IOException\n {\n getImage().write(out);\n out.writeFloat(getX());\n out.writeFloat(getY());\n out.writeFloat(getRot());\n out.writeFloat(getSclx());\n out.writeFloat(getScly());\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }", "void export(DataExportOptions options, Pageable pageable, OutputStream outputStream);", "protected void storeDataPath(FSDataOutputStream output, DataEntry storageEntry) throws IOException {\n OBJECT_MAPPER.writeValue(output, storageEntry);\n }", "public final void writeData(OutputStream out) throws IOException {\n /* The length of icqData is needed early in the write process.\n\t\t * Write it now to an OutputStream and use that to calculate its size. */\n\t\tByteArrayOutputStream icqDataOut = new ByteArrayOutputStream();\n\t\twriteIcqData(icqDataOut);\n\n\t\tint hdrlen = 8; // The expected header length, not counting the length field itself.\n\t\tint primary = null != icqType ? icqType.getPrimary() : 0;\n\t\tint secondary = null != icqType ? icqType.getSecondary() : 0;\n\t\tif (0 != secondary) {\n hdrlen = 10;\n }\n\n ByteArrayOutputStream icqout = new ByteArrayOutputStream();\n int length = hdrlen + icqDataOut.size();\n LEBinaryTools.writeUShort(icqout, length);\n LEBinaryTools.writeUInt(icqout, icqUIN);\n\t\tLEBinaryTools.writeUShort(icqout, primary);\n LEBinaryTools.writeUShort(icqout, icqID);\n\t\tif (0 != secondary)\n LEBinaryTools.writeUShort(icqout, secondary);\n\n icqDataOut.writeTo(icqout);\n\n new Tlv(TYPE_ICQ_DATA, ByteBlock.wrap(icqout.toByteArray())).write(out);\n }", "public abstract void write(NetOutput out) throws IOException;", "public void write(DataOutput out) throws IOException {\r\n out.writeByte(getTag());\r\n\r\n int size = buffer.length;\r\n\r\n out.writeInt(size);\r\n out.write(buffer, 0, size);\r\n }", "private void writeData(Cacheable[] data) throws IOException {\n for (Cacheable c : data) {\n for (Serializable s : c.cache()) {\n out.writeObject(s);\n }\n }\n }", "public abstract void write(EmitterSystemState data)\n\t\t\tthrows FailedToWriteToDatastoreException;", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "@Override\n \tpublic void writeSpawnData(ByteArrayDataOutput data) {\n \t\tdata.writeUTF(type.shortName);\n \t\tdata.writeInt(direction);\n \t\tdata.writeInt(blockX);\n \t\tdata.writeInt(blockY);\n \t\tdata.writeInt(blockZ);\n \t}", "public void write(DataOutput out) throws IOException {\n\t\tfirstName.write(out);\n\t\tlastName.write(out);\n\t}", "public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }", "public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(this.url);\r\n\t\tout.writeInt(this.counts);\r\n\t\t\r\n\t}", "public abstract void write(List<EmitterSystemState> data)\n\t\t\tthrows FailedToWriteToDatastoreException;", "public void write(DataOutput out) throws IOException {\n\t\tout.writeFloat(rating);\n\t\tout.writeUTF(productTitle);\n\t\t\n\t}", "public abstract int writeData(int address, byte[] buffer, int length);", "private static void writeToFile(String[] data) {\n\t\t// Regatta hasn't been calculated.\n\t\tif(r == null) {\n\t\t\tSystem.out.println(\"\\nYou haven't processed a regatta yet! \\nUse regatta to begin processing.\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Just the command was specified, we need to get the filename.\n\t\tif(data.length == 1) {\n\t\t\tSystem.out.println(\"Oops, looks like you didn't specify an output file.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\t// Filename was specified but is invalid. Need to get another one.\n\t\tif(!isValidFileName(data[1])) {\n\t\t\tSystem.out.println(\"Looks like your filename is incorrect.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\tinitializeOutput(data[1]);\n\n\t\t// Write out.\n\t\tfileOutput.print(r.podium());\n\t\tfileOutput.close();\n\t}", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "private void writeOutput() {\n\n textMergeScript.setCurrentDirectoryFromFile (chosenOutputFile);\n tabFileOutput = new TabDelimFile (chosenOutputFile);\n tabFileOutput.setLog (log);\n tabFileOutput.setDataLogging (false);\n boolean outputOK = true;\n try {\n tabFileOutput.openForOutput (list.getRecDef());\n } catch (IOException e) {\n outputOK = false;\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem opening Output File\",\n false);\n }\n if (outputOK) {\n list.openForInput();\n DataRecord inRec;\n int count = 0;\n do {\n inRec = list.nextRecordIn ();\n if (inRec != null) {\n try {\n tabFileOutput.nextRecordOut (inRec);\n count++;\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing to Output File\",\n true);\n }\n } // end if in rec not null\n } while (list.hasMoreRecords());\n\n list.close();\n\n try {\n tabFileOutput.close();\n } catch (IOException e) {\n }\n\n log.recordEvent(LogEvent.NORMAL,\n String.valueOf(count) + \" records output\",\n false);\n\n tabNameOutput = chosenOutputFile.getName();\n openOutputDataName.setText (tabNameOutput);\n if (usingDictionary) {\n tabFileName =\n new FileName (chosenOutputFile.getAbsolutePath());\n dictFile =\n new TabDelimFile (textMergeScript.getCurrentDirectory(),\n tabFileName.replaceExt(DICTIONARY_EXT));\n dictFile.setLog (log);\n try {\n dataDict.store (dictFile);\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing Output Dictionary\",\n true);\n }\n } // end if using dictionary\n\n textMergeScript.recordScriptAction (\n ScriptConstants.OUTPUT_MODULE,\n ScriptConstants.OPEN_ACTION,\n ScriptConstants.NO_MODIFIER,\n ScriptConstants.NO_OBJECT,\n chosenOutputFile.getAbsolutePath());\n\n } // end if output ok\n\n }", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "public void write(DataOutputStream output) throws IOException {\r\n output.writeInt(matrixId);\r\n int size = partMetas.size();\r\n output.writeInt(size);\r\n for (Map.Entry<Integer, MatrixPartitionMeta> partEntry : partMetas.entrySet()) {\r\n partEntry.getValue().write(output);\r\n }\r\n }" ]
[ "0.78957504", "0.74740005", "0.7344652", "0.71222687", "0.69298714", "0.6832626", "0.68217367", "0.67795235", "0.67524886", "0.6733494", "0.6729066", "0.6672002", "0.66579217", "0.6604992", "0.6588124", "0.65676564", "0.6538594", "0.6504548", "0.6481288", "0.64007866", "0.63756245", "0.63394934", "0.62729084", "0.623209", "0.62195575", "0.62088484", "0.6208373", "0.6202568", "0.6199604", "0.61967796", "0.6178991", "0.6155084", "0.6140734", "0.6129464", "0.611148", "0.6081179", "0.6080367", "0.6079102", "0.6073729", "0.6048234", "0.6030913", "0.6005141", "0.59932065", "0.5988735", "0.59569687", "0.59394073", "0.59389246", "0.5937209", "0.591533", "0.59059143", "0.5888955", "0.5876162", "0.5872883", "0.58502686", "0.584905", "0.5838257", "0.5833927", "0.582079", "0.5813852", "0.5799768", "0.5799159", "0.5790648", "0.5778856", "0.5776958", "0.5752118", "0.57401186", "0.57358813", "0.5735626", "0.570378", "0.5693767", "0.56786454", "0.5673804", "0.5667227", "0.56609666", "0.5658962", "0.56535935", "0.56437266", "0.5629611", "0.5626498", "0.56263804", "0.55936503", "0.55831736", "0.55822057", "0.55517167", "0.5548996", "0.55473226", "0.5533015", "0.55318284", "0.5524002", "0.5510867", "0.54960227", "0.5490409", "0.5484927", "0.5477833", "0.54771787", "0.54740065", "0.54599386", "0.5454762", "0.54419076", "0.54380053" ]
0.58888364
51
Creates a new serializer.
public WorkspaceSerializer(final Workspace workspace) { this.workspace = workspace; this.desktop = SimbrainDesktop.getDesktop(workspace); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MessageSerializer<T> create();", "SerializeFactory getSerializeFactory();", "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}", "private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }", "private static Serializer getSerializer() {\n\t\tConfiguration config = new Configuration();\n\t\tProcessor processor = new Processor(config);\n\t\tSerializer s = processor.newSerializer();\n\t\ts.setOutputProperty(Property.METHOD, \"xml\");\n\t\ts.setOutputProperty(Property.ENCODING, \"utf-8\");\n\t\ts.setOutputProperty(Property.INDENT, \"yes\");\n\t\treturn s;\n\t}", "public static Serializer createNewSerializer(ClassLoader classLoader) {\n for (Serializer serializer : load(Serializer.class, classLoader)) {\n // try getting the current service and return\n try {\n return serializer;\n } catch (Throwable t) {\n // just ignore, skip and try getting the next\n }\n }\n return new StandardSerializer();\n }", "Serializer<T> getSerializer();", "private SerializerFactory() {\n // do nothing\n }", "public static synchronized JacksonAdapter createDefaultSerializerAdapter() {\n if (serializerAdapter == null) {\n serializerAdapter = new JacksonAdapter();\n }\n return serializerAdapter;\n }", "public static <S extends Serializer> S createNewSerializer(Class<S> serializer) throws SerializerNotFoundException {\n for (Serializer serializer1 : load(Serializer.class, serializer.getClassLoader())) {\n // try getting the current service and return\n try {\n Serializer next = serializer1;\n if (serializer.isInstance(next)) {\n return serializer.cast(next);\n }\n } catch (Throwable t) {\n // just ignore, skip and try getting the next\n }\n }\n throw new SerializerNotFoundException(serializer);\n }", "public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }", "protected abstract Map<Integer, VersionedSerializer<T>> createVersionedSerializers();", "public void setSerializer(Object serializer);", "@Override\n public Serializer<ResponseContainer> serializer() {\n return new Serializer<ResponseContainer>() {\n @Override\n public void configure(Map<String, ?> configs, boolean isKey) {\n // This method is left empty until needed.\n }\n\n @Override\n public byte[] serialize(String topic, ResponseContainer responseContainer) {\n return gson.toJson(responseContainer.getResponseData()).getBytes(StandardCharsets.UTF_8);\n }\n\n @Override\n public void close() {\n // This method is left empty until needed.\n }\n };\n }", "public Serializer newDefaultSerializer(Class cls) {\n return this.defaultSerializer.makeSerializer(this, cls);\n }", "public KafkaAvroSerializer() {\n super();\n }", "public KafkaJsonSerializer() {\n\n }", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "protected abstract void declareSerializers(Builder builder);", "public Serializer getDefaultSerializer()\r\n\t{\r\n\t\treturn new XMLSerializer();\r\n\t}", "public StyxSerializer(ObjectFactory factory) {\n this.factory = factory;\n }", "public interface TransactionSerializer extends ObjectSerializer<Transaction> {\n}", "@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }", "public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }", "public static SerializerFactory createFactory(Class factory, \n Class javaType, \n QName xmlType) {\n if (factory == null) {\n return null;\n }\n\n try {\n if (factory == BeanSerializerFactory.class) {\n return new BeanSerializerFactory(javaType, xmlType);\n } else if (factory == SimpleSerializerFactory.class) {\n return new SimpleSerializerFactory(javaType, xmlType);\n } else if (factory == EnumSerializerFactory.class) {\n return new EnumSerializerFactory(javaType, xmlType);\n } else if (factory == ElementSerializerFactory.class) {\n return new ElementSerializerFactory();\n } else if (factory == SimpleListSerializerFactory.class) {\n return new SimpleListSerializerFactory(javaType, xmlType);\n }\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n return null;\n }\n\n SerializerFactory sf = null;\n try {\n Method method = \n factory.getMethod(\"create\", CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n method.invoke(null, \n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n\n if (sf == null) {\n try {\n Constructor constructor = \n factory.getConstructor(CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n constructor.newInstance(\n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InstantiationException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n }\n \n if (sf == null) {\n try {\n sf = (SerializerFactory) factory.newInstance();\n } catch (InstantiationException e) {\n } catch (IllegalAccessException e) {}\n }\n return sf;\n }", "public JsonRequestSerializer() {\n this(JNC.GSON);\n }", "public WCSResponseSerializer()\r\n {\r\n }", "public JsonFactory() { this(null); }", "public SerialMarshallerFactory() {\n if (getSecurityManager() == null) {\n registry = SerializableClassRegistry.getInstance();\n } else {\n registry = doPrivileged(new PrivilegedAction<SerializableClassRegistry>() {\n public SerializableClassRegistry run() {\n return SerializableClassRegistry.getInstance();\n }\n });\n }\n }", "public void create(){}", "public void setSerializer(Serializer<Object> serializer) {\n this.serializer = serializer;\n }", "public abstract JsonWriter newWriter(OutputStream out);", "public interface Serializer {\n\n /**\n * Serializes the given object to the given output stream.\n *\n * @param <T> the object type\n * @param obj the object to serialize\n * @param type the class type\n * @param os the output stream\n *\n * @throws SerializationException if serialization fails\n */\n public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;\n\n /**\n * Deserializes an object of the given type from the given input stream.\n *\n * @param <T> the object type\n * @param type the class type\n * @param is the input stream\n *\n * @return the object\n *\n * @throws SerializationException if serialization fails\n */\n public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;\n\n}", "public interface VersionFactory extends Marshaller<Version> {\n /**\n * Creates a new version object for the provided node ID.\n */\n Version create(Identity nodeId);\n}", "public interface CustomObjectSerializer <T> {\n\n Class<T> type();\n\n void serializeObject(JsonSerializerInternal serializer, T instance, CharBuf builder );\n\n}", "public CustomDateSerializer() {\n this(null);\n }", "public Serializer getSerializer()\r\n\t{\r\n\t\treturn settings.getSerializer();\r\n\t}", "public abstract JsonWriter newWriter(Writer writer);", "private SerializationUtils() {\n\n }", "public static Serializer getSerializer(Properties format) {\n/* */ Serializer serializer;\n/* */ \n/* 60 */ try { String method = format.getProperty(\"method\");\n/* */ \n/* 62 */ if (method == null) {\n/* 63 */ throw new IllegalArgumentException(\"The output format has a null method name\");\n/* */ }\n/* */ \n/* 66 */ String className = format.getProperty(\"{http://xml.apache.org/xalan}content-handler\");\n/* */ \n/* */ \n/* */ \n/* 70 */ if (null == className) {\n/* */ \n/* */ \n/* 73 */ Properties methodDefaults = OutputPropertiesFactory.getDefaultMethodProperties(method);\n/* */ \n/* 75 */ className = methodDefaults.getProperty(\"{http://xml.apache.org/xalan}content-handler\");\n/* */ \n/* 77 */ if (null == className) {\n/* 78 */ throw new IllegalArgumentException(\"The output format must have a '{http://xml.apache.org/xalan}content-handler' property!\");\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 85 */ ClassLoader loader = ObjectFactory.findClassLoader();\n/* */ \n/* 87 */ Class cls = ObjectFactory.findProviderClass(className, loader, true);\n/* */ \n/* */ \n/* */ \n/* 91 */ Object obj = cls.newInstance();\n/* */ \n/* 93 */ if (obj instanceof SerializationHandler)\n/* */ \n/* */ { \n/* 96 */ serializer = cls.newInstance();\n/* 97 */ serializer.setOutputFormat(format);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* 105 */ else if (obj instanceof ContentHandler)\n/* */ \n/* */ { \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 114 */ className = \"org.apache.xml.serializer.ToXMLSAXHandler\";\n/* 115 */ cls = ObjectFactory.findProviderClass(className, loader, true);\n/* 116 */ SerializationHandler sh = (SerializationHandler)cls.newInstance();\n/* */ \n/* 118 */ sh.setContentHandler((ContentHandler)obj);\n/* 119 */ sh.setOutputFormat(format);\n/* */ \n/* 121 */ serializer = sh;\n/* */ }\n/* */ \n/* */ else\n/* */ \n/* */ { \n/* 127 */ throw new Exception(XMLMessages.createXMLMessage(\"ER_SERIALIZER_NOT_CONTENTHANDLER\", new Object[] { className })); } } catch (Exception e)\n/* */ \n/* */ { \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 137 */ throw new WrappedRuntimeException(e); }\n/* */ \n/* */ \n/* */ \n/* 141 */ return serializer;\n/* */ }", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "@Override\r\n\tpublic void serializar() {\n\r\n\t}", "private void registerAvailableSerializers() {\r\n LOG.info(\"Registering available serializer object\");\r\n mSerializers.put(XML, new XmlObjectBaseSerializer());\r\n mSerializers.put(PHP, new PHPObjectBaseSerializer());\r\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "@Override\n\tpublic void create() {\n\n\t}", "Snapshot create();", "protected Serializer getSerializerAsInternal(String mechanismType)\n throws JAXRPCException {\n Serializer serializer = getSpecialized(mechanismType);\n \n // Try getting a general purpose Serializer via constructor\n // invocation\n if (serializer == null) {\n serializer = getGeneralPurpose(mechanismType);\n }\n\n try { \n // If not successfull, try newInstance\n if (serializer == null) {\n serializer = (Serializer) serClass.newInstance();\n }\n } catch (Exception e) {\n throw new JAXRPCException(\n Messages.getMessage(\"CantGetSerializer\", \n serClass.getName()),\n e);\n }\n return serializer;\n }", "public ListResponseJsonSerializer(ScimResourceSerializer serializer){\n resourceSerializer=serializer;\n }", "For createFor();", "public abstract <T> SerializationStream writeObject(T t);", "public SerializerService getSerializerService() {\n return serializerService;\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public static KafkaSerializer getSerializer() {\n return SerializerHolder.serializer;\n }", "E create(Resource data);", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "T create();", "T create();", "public static ShimizuRunner2 serializableInstance() {\r\n return new ShimizuRunner2(DataWrapper.serializableInstance(),\r\n PcSearchParams.serializableInstance());\r\n }", "public abstract T create(T obj);", "public interface Serializer {\n /**\n * Serializes given serializable object into the byte array.\n *\n * @param object object that will be serialized\n * @return serialized byte array\n */\n byte[] serialize(Serializable object);\n\n /**\n * Deserializes byte array that serialized by {@link #serialize(Serializable)} method.\n *\n * @param bytes byte array that will be deserialized\n * @return deserialized object\n */\n Object deserialize(byte[] bytes);\n}", "public ElementSerializer() {\n _lock = new Object();\n }", "Schueler createSchueler();", "public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}", "public VehicleInfoAvro() {}", "ZenModel createZenModel();", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T> Promise<TypeSerializer<T>> typeSerializer(TypeTag<? extends T> typeTag) {\n TypeSerializerProvider<?> provider = serializers.get(typeTag);\n if (provider != null) {\n return Promises.resolved((TypeSerializer<T>) provider);\n }\n return (Promise) SERIALIZER;\n\n }", "private Serde<Object> getSerdeFromName(String name, SerializerConfig serializerConfig) {\n String serdeClassName =\n serializerConfig.getSerdeFactoryClass(name).orElseGet(() -> SerializerConfig.getPredefinedSerdeFactoryName(name));\n return ReflectionUtil.getObj(serdeClassName, SerdeFactory.class).getSerde(name, serializerConfig);\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Test\n public void testInitializeWithSerializer() throws Exception {\n final TypeSerializer<String> serializer = StringSerializer.INSTANCE;\n final TestStateDescriptor<String> descr = new TestStateDescriptor<>(\"test\", serializer);\n\n assertTrue(descr.isSerializerInitialized());\n assertNotNull(descr.getSerializer());\n assertTrue(descr.getSerializer() instanceof StringSerializer);\n\n // this should not have any effect\n descr.initializeSerializerUnlessSet(new ExecutionConfig());\n assertTrue(descr.isSerializerInitialized());\n assertNotNull(descr.getSerializer());\n assertTrue(descr.getSerializer() instanceof StringSerializer);\n\n TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(descr);\n assertTrue(clone.isSerializerInitialized());\n assertNotNull(clone.getSerializer());\n assertTrue(clone.getSerializer() instanceof StringSerializer);\n }", "@Override\n\tpublic int getSerializationId() {\n\t\treturn SERIALIZATION_ID;\n\t}", "void create(T instance) throws IOException;", "@Override\n\tpublic void create() {\n\t\t\n\t}", "static public QRScanProviderVolunteerRequest create(String serializedData) {\n Gson gson = new Gson();\n return gson.fromJson(serializedData, QRScanProviderVolunteerRequest.class);\n }", "@Override\n\tpublic RigoDocumento create(RigoDocumentoPK rigoDocumentoPK) {\n\t\tRigoDocumento rigoDocumento = new RigoDocumentoImpl();\n\n\t\trigoDocumento.setNew(true);\n\t\trigoDocumento.setPrimaryKey(rigoDocumentoPK);\n\n\t\treturn rigoDocumento;\n\t}", "public Commande_structureSerializationTest(){\n }", "private JSONMessageFactory(){}", "public Serializer getDefaultSerializerForAnnotatedType(Class cls) {\n if (cls.isAnnotationPresent(DefaultSerializer.class)) {\n return ReflectionSerializerFactory.makeSerializer(this, ((DefaultSerializer) cls.getAnnotation(DefaultSerializer.class)).value(), cls);\n }\n return null;\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "public void create() {\n\t\t\n\t}", "public abstract DeserializerFactory withConfig(DeserializerFactoryConfig deserializerFactoryConfig);", "OutputStream serialize(OutputStream toSerialize);", "public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "public JacksonAdapter() {\n simpleMapper = initializeObjectMapper(new ObjectMapper());\n //\n xmlMapper = initializeObjectMapper(new XmlMapper());\n xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);\n xmlMapper.setDefaultUseWrapper(false);\n //\n ObjectMapper flatteningMapper = initializeObjectMapper(new ObjectMapper())\n .registerModule(FlatteningSerializer.getModule(simpleMapper()))\n .registerModule(FlatteningDeserializer.getModule(simpleMapper()));\n jsonMapper = initializeObjectMapper(new ObjectMapper())\n // Order matters: must register in reverse order of hierarchy\n .registerModule(AdditionalPropertiesSerializer.getModule(flatteningMapper))\n .registerModule(AdditionalPropertiesDeserializer.getModule(flatteningMapper))\n .registerModule(FlatteningSerializer.getModule(simpleMapper()))\n .registerModule(FlatteningDeserializer.getModule(simpleMapper())); }", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "@Override\n\tpublic AbstractOriental createOrientale() {\n\t\treturn new OrientalSN();\n\t}", "Klassenstufe createKlassenstufe();", "private <K> AbstractKeyedStateBackend<K> createKeyedBackend(TypeSerializer<K> keySerializer) throws Exception {\n\t\treturn createKeyedBackend(keySerializer, new DummyEnvironment());\n\t}", "public Builder<TData> tDataSerializer(@Nullable JsonpSerializer<TData> value) {\n\t\t\tthis.tDataSerializer = value;\n\t\t\treturn this;\n\t\t}", "RESTElement createRESTElement();", "public void setSerializer(Serializer serializer )\r\n\t{\r\n\t\tsettings.setSerializer(serializer);\r\n\t}", "public abstract void create();", "public static Locks create() {\n\t\tString uuid = ObjectId.get().toHexString();\n\t\treturn owner( uuid );\n\t}" ]
[ "0.7637796", "0.6771289", "0.66709316", "0.6628916", "0.6570279", "0.654963", "0.6357565", "0.62540936", "0.6029793", "0.5978852", "0.588042", "0.58712274", "0.58712083", "0.58244926", "0.5801245", "0.56599104", "0.560859", "0.55617994", "0.5549773", "0.553746", "0.55154437", "0.55145115", "0.54920673", "0.5336452", "0.53158784", "0.53131604", "0.52700055", "0.5249937", "0.52485603", "0.52327967", "0.5195668", "0.51793957", "0.51671284", "0.51610893", "0.51526535", "0.5145243", "0.51361", "0.5134686", "0.5130302", "0.5118965", "0.50768775", "0.50590026", "0.5058059", "0.5055641", "0.5033734", "0.5019053", "0.50175375", "0.5009923", "0.5003497", "0.5003286", "0.4995392", "0.49940482", "0.4993982", "0.49914706", "0.49845693", "0.4980525", "0.49672323", "0.49658746", "0.49658746", "0.49561238", "0.4953448", "0.49361944", "0.49151963", "0.4913868", "0.49137232", "0.4898044", "0.48881418", "0.48869094", "0.48809955", "0.4875", "0.4870874", "0.48646435", "0.4859098", "0.48497075", "0.4823802", "0.48217338", "0.47907406", "0.4782693", "0.47713408", "0.47624695", "0.4760471", "0.47401252", "0.47328538", "0.4724518", "0.4722664", "0.4722664", "0.4722664", "0.4722664", "0.4722664", "0.4722664", "0.472237", "0.47170934", "0.47110173", "0.4709046", "0.47041085", "0.47027448", "0.4700353", "0.46977285", "0.4695757", "0.4690964", "0.46835726" ]
0.0
-1
Serializes the workspace to a zip compressed stream.
public void serialize(final OutputStream output) throws IOException { ZipOutputStream zipStream = new ZipOutputStream(output); WorkspaceComponentSerializer serializer = new WorkspaceComponentSerializer( zipStream); ArchiveContents archive = new ArchiveContents(workspace, serializer); workspace.preSerializationInit(); // Serialize components serializeComponents(serializer, archive, zipStream); // Serialize couplings for (Coupling<?> coupling : workspace.getCouplingManager() .getCouplings()) { archive.addCoupling(coupling); } // Serialize update actions for (UpdateAction action : workspace.getUpdater().getUpdateManager() .getActionList()) { archive.addUpdateAction(action); } ZipEntry entry = new ZipEntry("contents.xml"); zipStream.putNextEntry(entry); archive.toXml(zipStream); zipStream.finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}", "public void zip() {\n\t\tif (zipFile != null) {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\ttry (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {\n\t\t\t\tzos.setLevel(ZipOutputStream.STORED);\n\t\t\t\tbyte[] buffer = new byte[4096];\n\t\t\t\tFiles.list(Paths.get(tool_builddir))\n\t\t\t\t\t\t.forEach(x -> {\n\t\t\t\t\t\t\tFile f = x.toFile();\n\t\t\t\t\t\t\tif (f.isFile() && !f.getName().contains(\".\")) {\n\t\t\t\t\t\t\t\ttry (FileInputStream fis = new FileInputStream(f)) {\n\t\t\t\t\t\t\t\t\tZipEntry zipEntry = new ZipEntry(f.getName());\n\t\t\t\t\t\t\t\t\tzos.putNextEntry(zipEntry);\n\t\t\t\t\t\t\t\t\tint count;\n\t\t\t\t\t\t\t\t\twhile ((count = fis.read(buffer)) >= 0) {\n\t\t\t\t\t\t\t\t\t\tzos.write(buffer, 0, count);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tzos.closeEntry();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\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\tout.println(\"Zipped to '\" + zipFile + \"' - \" + Duration.ofMillis(System.currentTimeMillis() - start));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}", "private void serializeComponents(\r\n final WorkspaceComponentSerializer serializer,\r\n final ArchiveContents archive, final ZipOutputStream zipStream)\r\n throws IOException {\r\n\r\n for (WorkspaceComponent component : workspace.getComponentList()) {\r\n\r\n ArchiveContents.ArchivedComponent archiveComp = archive\r\n .addComponent(component);\r\n\r\n ZipEntry entry = new ZipEntry(archiveComp.getUri());\r\n zipStream.putNextEntry(entry);\r\n serializer.serializeComponent(component);\r\n\r\n GuiComponent<?> desktopComponent = SimbrainDesktop.getDesktop(\r\n workspace).getDesktopComponent(component);\r\n\r\n /*\r\n * If there is a desktop component associated with the component\r\n * it's serialized here.\r\n */\r\n if (desktopComponent != null) {\r\n ArchiveContents.ArchivedComponent.ArchivedDesktopComponent dc = archiveComp\r\n .addDesktopComponent(desktopComponent);\r\n entry = new ZipEntry(dc.getUri());\r\n zipStream.putNextEntry(entry);\r\n desktopComponent.save(zipStream);\r\n }\r\n }\r\n }", "public ZipBuilder save() throws IOException {\n\t\t\tZipUtil.addToZip(zos, bytes, path, comment);\n\t\t\treturn ZipBuilder.this;\n\t\t}", "public byte[] getZippedWorkDir() {\n return zippedWorkDir;\n }", "protected File createZipArchive(File directoryToZip, String modpackName, String workspace) throws Exception {\n zipName = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\")) + \"--\" + modpackName + \".zip\";\n uploadStatus = \"Creating Zipfile from Directory\";\n File zipFile = new File(workspace + \"\\\\\" + zipName);\n try {\n ProgressBarLogic progressBarLogic = new ProgressBarLogic(directoryToZip);\n ZipUtil.pack(directoryToZip, zipFile, name -> {\n uploadStatus = \"Adding file: \" + name + \" to the zip\";\n progressBarLogic.progressPercentage = 0;\n progressBarLogic.progress.add(name);\n progressBarLogic.calculateProgress(progressBarLogic.progress);\n notifyObserver();\n return name;\n });\n } catch (ZipException e) {\n throw e;\n } catch (Exception e) {\n System.out.println(e);\n }\n return zipFile;\n }", "private ZipCompressor(){}", "public ZipBuilder save() throws IOException {\n\t\t\tZipUtil.addToZip(zos, file, path, comment, recursive);\n\t\t\treturn ZipBuilder.this;\n\t\t}", "public File getZip() {\r\n try {\r\n close(); // if the file is currently open close it\r\n Log.d(LOG_TAG, \"getZip()\");\r\n File zipFile = new File(mBaseFileName + \".zip\");\r\n zipFile.delete();\r\n ZipOutputStream zipStream = new ZipOutputStream(new FileOutputStream(zipFile));\r\n for (int i = 0; i < mNumSegments; i++) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n if (chunk.exists()) {\r\n FileInputStream fis = new FileInputStream(chunk);\r\n writeToZipFile(zipStream, fis, chunk.getName());\r\n }\r\n }\r\n zipStream.close();\r\n return zipFile;\r\n } catch (Exception e) {\r\n Log.e(LOG_TAG, \"Failed to create zip file\", e);\r\n }\r\n\r\n return null;\r\n }", "public String getZIP()\r\n\t{\r\n\t\treturn zip.getModelObjectAsString();\r\n\t}", "public boolean exportAllProjectsToZip() {\n @SuppressWarnings(\"unchecked\")\n List<PlanProperties> ppList = em.createQuery(\"select p from PlanProperties p order by p.id\").getResultList();\n\n return exportPPListToZip(ppList);\n }", "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "private final FileOutputStream zabz() {\n Serializable serializable = this.zalj;\n if (serializable == null) {\n serializable = new IllegalStateException(\"setTempDir() must be called before writing this object to a parcel\");\n throw serializable;\n }\n Object object = \"teleporter\";\n String string2 = \".tmp\";\n try {\n serializable = File.createTempFile((String)object, string2, (File)serializable);\n }\n catch (IOException iOException) {\n object = new IllegalStateException(\"Could not create temporary file\", iOException);\n throw object;\n }\n try {\n object = new FileOutputStream((File)serializable);\n int n10 = 0x10000000;\n string2 = ParcelFileDescriptor.open((File)serializable, (int)n10);\n this.zalg = string2;\n ((File)serializable).delete();\n return object;\n }\n catch (FileNotFoundException fileNotFoundException) {\n serializable = new IllegalStateException(\"Temporary file is somehow already deleted\");\n throw serializable;\n }\n }", "public WorkspaceSerializer(final Workspace workspace) {\r\n this.workspace = workspace;\r\n this.desktop = SimbrainDesktop.getDesktop(workspace);\r\n }", "@AutoEscape\n\tpublic String getZip();", "public int serialize (IDataOutput stream ,boolean includeAdler32 ,boolean centralDir =false ,int centralDirOffset =0){\r\n\t\t\tif(stream == null) { return 0; }\r\n\t\t\tif(centralDir) {\r\n\t\t\t\t// Write central directory file header signature\r\n\t\t\t\tstream.writeUnsignedInt(FZip.SIG_CENTRAL_FILE_HEADER);\r\n\t\t\t\t// Write \"version made by\" host (usually 0) and number (always 2.0)\r\n\t\t\t\tstream.writeShort((_versionHost << 8) | 0x14);\r\n\t\t\t} else {\r\n\t\t\t\t// Write local file header signature\r\n\t\t\t\tstream.writeUnsignedInt(FZip.SIG_LOCAL_FILE_HEADER);\r\n\t\t\t}\r\n\t\t\t// Write \"version needed to extract\" host (usually 0) and number (always 2.0)\r\n\t\t\tstream.writeShort((_versionHost << 8) | 0x14);\r\n\t\t\t// Write the general purpose flag\r\n\t\t\t// - no encryption\r\n\t\t\t// - normal deflate\r\n\t\t\t// - no data descriptors\r\n\t\t\t// - no compressed patched data\r\n\t\t\t// - unicode as specified in _filenameEncoding\r\n\t\t\tstream.writeShort((_filenameEncoding == \"utf-8\") ? 0x0800 : 0);\r\n\t\t\t// Write compression method (always deflate)\r\n\t\t\tstream.writeShort(isCompressed ? COMPRESSION_DEFLATED : COMPRESSION_NONE);\r\n\t\t\t// Write date\r\n\t\t\tDate d =(_date != null) ? _date : new Date();\r\n\t\t\tint msdosTime =uint(d.getSeconds ())| (uint(d.getMinutes()) << 5) | (uint(d.getHours()) << 11);\r\n\t\t\tint msdosDate =uint(d.getDate ())| (uint(d.getMonth() + 1) << 5) | (uint(d.getFullYear() - 1980) << 9);\r\n\t\t\tstream.writeShort(msdosTime);\r\n\t\t\tstream.writeShort(msdosDate);\r\n\t\t\t// Write CRC32\r\n\t\t\tstream.writeUnsignedInt(_crc32);\r\n\t\t\t// Write compressed size\r\n\t\t\tstream.writeUnsignedInt(_sizeCompressed);\r\n\t\t\t// Write uncompressed size\r\n\t\t\tstream.writeUnsignedInt(_sizeUncompressed);\r\n\t\t\t// Prep filename\r\n\t\t\tByteArray ba =new ByteArray ();\r\n\t\t\tba.endian = Endian.LITTLE_ENDIAN;\r\n\t\t\tif (_filenameEncoding == \"utf-8\") {\r\n\t\t\t\tba.writeUTFBytes(_filename);\r\n\t\t\t} else {\r\n\t\t\t\tba.writeMultiByte(_filename, _filenameEncoding);\r\n\t\t\t}\r\n\t\t\tint filenameSize =ba.position ;\r\n\t\t\t// Prep extra fields\r\n\t\t\tfor(int i0 = 0; i0 < _extraFields .size(); i0++)\r\n\t\t\t{\r\n\t\t\t\t\theaderId = _extraFields .get(i0);\r\n\t\t\t\tif(extraBytes != null) {\r\n\t\t\t\t\tba.writeShort(uint(headerId));\r\n\t\t\t\t\tba.writeShort(uint(extraBytes.length()));\r\n\t\t\t\t\tba.writeBytes(extraBytes);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (includeAdler32) {\r\n\t\t\t\tif (!_hasAdler32) {\r\n\t\t\t\t\tboolean compressed =isCompressed ;\r\n\t\t\t\t\tif (compressed) { uncompress(); }\r\n\t\t\t\t\t_adler32 = ChecksumUtil.Adler32(_content, 0, _content.length());\r\n\t\t\t\t\t_hasAdler32 = true;\r\n\t\t\t\t\tif (compressed) { compress(); }\r\n\t\t\t\t}\r\n\t\t\t\tba.writeShort(0xdada);\r\n\t\t\t\tba.writeShort(4);\r\n\t\t\t\tba.writeUnsignedInt(_adler32);\r\n\t\t\t}\r\n\t\t\tint extrafieldsSize =ba.position -filenameSize ;\r\n\t\t\t// Prep comment (currently unused)\r\n\t\t\tif(centralDir && _comment.length > 0) {\r\n\t\t\t\tif (_filenameEncoding == \"utf-8\") {\r\n\t\t\t\t\tba.writeUTFBytes(_comment);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tba.writeMultiByte(_comment, _filenameEncoding);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint commentSize =ba.position -filenameSize -extrafieldsSize ;\r\n\t\t\t// Write filename and extra field sizes\r\n\t\t\tstream.writeShort(filenameSize);\r\n\t\t\tstream.writeShort(extrafieldsSize);\r\n\t\t\tif(centralDir) {\r\n\t\t\t\t// Write comment size\r\n\t\t\t\tstream.writeShort(commentSize);\r\n\t\t\t\t// Write disk number start (always 0)\r\n\t\t\t\tstream.writeShort(0);\r\n\t\t\t\t// Write file attributes (always 0)\r\n\t\t\t\tstream.writeShort(0);\r\n\t\t\t\tstream.writeUnsignedInt(0);\r\n\t\t\t\t// Write relative offset of local header\r\n\t\t\t\tstream.writeUnsignedInt(centralDirOffset);\r\n\t\t\t}\r\n\t\t\t// Write filename, extra field and comment\r\n\t\t\tif(filenameSize + extrafieldsSize + commentSize > 0) {\r\n\t\t\t\tstream.writeBytes(ba);\r\n\t\t\t}\r\n\t\t\t// Write file\r\n\t\t\tint fileSize =0;\r\n\t\t\tif(!centralDir && _content.length > 0) {\r\n\t\t\t\tif(isCompressed) {\r\n\t\t\t\t\tif(HAS_UNCOMPRESS || HAS_INFLATE) {\r\n\t\t\t\t\t\tfileSize = _content.length;\r\n\t\t\t\t\t\tstream.writeBytes(_content, 0, fileSize);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileSize = _content.length - 6;\r\n\t\t\t\t\t\tstream.writeBytes(_content, 2, fileSize);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfileSize = _content.length;\r\n\t\t\t\t\tstream.writeBytes(_content, 0, fileSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint size =30+filenameSize +extrafieldsSize +commentSize +fileSize ;\r\n\t\t\tif(centralDir) {\r\n\t\t\t\tsize += 16;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "public File getZipFile() {\n return distZip;\n }", "@Override\n\tpublic String getZip() {\n\t\treturn this.zip;\n\t}", "private File exportAndZip(String siteId, String webappDir) throws Exception {\r\n\tlog.info(\"user [\" + sessionManager.getCurrentSession().getUserEid()\r\n\t\t+ \"] exports site: [\" + siteId + \"]\");\r\n\r\n\t// opening a new temporary zipfile\r\n\tFile zipFile = File.createTempFile(\"osyl-package-export\", \".zip\");\r\n\tZipOutputStream zos =\r\n\t\tnew ZipOutputStream(new FileOutputStream(zipFile));\r\n\r\n\t// retrieving the xml file\r\n\tCOSerialized coSerialized =\r\n\t\tosylSiteService.getCourseOutlineForExport(siteId, webappDir);\r\n\r\n\tbyte[] xmlBytes = coSerialized.getContent().getBytes(\"UTF-8\");\r\n\twriteToZip(zos, OsylManagerService.CO_XML_FILENAME, xmlBytes);\r\n\r\n\t// retrieving other resources\r\n\tString resourceDir = contentHostingService.getSiteCollection(siteId);\r\n\r\n\ttry {\r\n\t ContentCollection workContent =\r\n\t\t contentHostingService.getCollection(resourceDir);\r\n\t // recursively retrieve all files\r\n\t retrieveFiles(zos, workContent, resourceDir);\r\n\t} catch (Exception e) {\r\n\t log.error(e);\r\n\t e.printStackTrace();\r\n\t throw new Exception(\"Cannot retrieve files in site for zipping\", e);\r\n\t}\r\n\tzos.close();\r\n\treturn zipFile;\r\n }", "public String getZip() {\r\n\t\treturn zip;\r\n\t}", "public interface IZipStrategy {\n\n void zip();\n}", "public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}", "public String getZip() {\r\n return zip;\r\n }", "public String getZip() {\r\n return zip;\r\n }", "protected File createObjectArchive(String format, String jobId, JSONObject jobObject, String database, String collection, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tint cursor = 0;\n\t\t\tint archived = 0;\n\n\t\t\tJSONObject initialJson = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, 0, 1);\n\t\t\tint total = initialJson.getInt(\"total\");\n\t\t\twhile(cursor < total) {\n\t\t\t\tJSONObject json = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, cursor, objectBatchSize);\n\t\t\t\tJSONArray items = json.getJSONArray(\"items\");\n\n\t\t\t\tfor (int i = 0; i < items.length(); i++) {\n\t\t\t\t\t// Get the item\n\t\t\t\t\tJSONObject item = items.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = item.toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = item.getJSONObject(\"_id\").getString(\"$oid\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\n\t\t\t\t\tarchived += 1;\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: %5d / %5d\", jobId, archived, total));\n\n\t\t\t\t// update the cursor\n\t\t\t\tcursor += objectBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * cursor / total);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\t\t\t}\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}", "void serialize(PackageState state, OutputStream out);", "OutputStream serialize(OutputStream toSerialize);", "protected File createIndexingArchive(String format, String jobId, JSONObject jobObject, String indexType, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tJSONObject json = IndexingHelper.getInstance(authorizationHeader).search(indexType, query, true, 0, indexingBatchSize, indexingScroll);\n\t\t\tint totalHits = json.getJSONObject(\"hits\").getInt(\"total\");\n\t\t\tString scrollId = json.getString(\"_scroll_id\");\n\t\t\tlogger.debug(String.format(\" [%s] Number of hits: %d\", jobId, totalHits));\n\t\t\tlogger.debug(String.format(\" [%s] Scroll ID: %s\", jobId, scrollId));\n\t\t\tint currentStartIndex = 0;\n\t\t\twhile (currentStartIndex < totalHits) {\n\t\t\t\tJSONArray hits = json.getJSONObject(\"hits\").getJSONArray(\"hits\");\n\n\t\t\t\tfor (int i = 0; i < hits.length(); i++) {\n\t\t\t\t\t// Get the hit\n\t\t\t\t\tJSONObject hit = hits.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = hit.getJSONObject(\"_source\").toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = hit.getString(\"_id\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: [ %5d ~ %5d ] / %5d\", jobId, currentStartIndex, currentStartIndex + indexingBatchSize - 1, totalHits));\n\n\t\t\t\t// Update the start index\n\t\t\t\tcurrentStartIndex += indexingBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * currentStartIndex / totalHits);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\n\t\t\t\tif (currentStartIndex < totalHits)\n\t\t\t\t\tjson = IndexingHelper.getInstance(authorizationHeader).scroll(indexType, indexingScroll, scrollId, true);\n\t\t\t}\n\n\t\t\t// Delete the scroll\n\t\t\tlogger.debug(String.format(\" [%s] Deleting Scroll ID\", jobId));\n\t\t\tIndexingHelper.getInstance(authorizationHeader).deleteScrollIndex(scrollId);\n\t\t\tlogger.debug(String.format(\" [%s] ... Completed\", jobId));\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}", "public void setZippedWorkDir(byte[] value) {\n this.zippedWorkDir = value;\n }", "public SerializedObject(Object toStore, boolean compress) throws Exception {\n\n\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\n\t\tOutputStream os = ostream;\n\t\tObjectOutputStream p;\n\t\tif (!compress) {\n\t\t\tp = new ObjectOutputStream(new BufferedOutputStream(os));\n\t\t} else {\n\t\t\tp = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(os)));\n\t\t}\n\t\tp.writeObject(toStore);\n\t\tp.flush();\n\t\tp.close(); // used to be ostream.close() !\n\t\tmStoredObjectArray = ostream.toByteArray();\n\n\t\tmIsCompressed = compress;\n\t}", "private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}", "public void zipFiles() {\r\n byte[] buffer = new byte[1024];\r\n try {\r\n\r\n // On rare occasions, there will be a semi colon in the title name,\r\n // ruining everything while zipping the file.\r\n if (title.contains(\":\") || title.contains(\".\")) {\r\n String temp = \"\";\r\n for (int i = 0; i < title.length(); i++) {\r\n \r\n if (title.charAt(i) == ':' || title.charAt(i) == '.') {\r\n \r\n } else {\r\n temp += title.charAt(i);\r\n }\r\n }\r\n title = temp;\r\n }\r\n System.out.println(\"File name: \" + title);\r\n \r\n FileOutputStream fos = new FileOutputStream(savePath + \"\\\\\" + title + \".zip\");\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n \r\n for (String fileName : fileNames) {\r\n \r\n System.out.println(\"zipping file: \" + fileName);\r\n \r\n fileName = savePath + \"\\\\\" + fileName;\r\n File srcFile = new File(fileName);\r\n FileInputStream fis;\r\n if (srcFile.exists()) {\r\n fis = new FileInputStream(srcFile);\r\n \r\n zos.putNextEntry(new ZipEntry(srcFile.getName()));\r\n int length;\r\n while ((length = fis.read(buffer)) > 0) {\r\n zos.write(buffer, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n \r\n boolean success = (new File(fileName)).delete();\r\n }\r\n }\r\n zos.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"File not found!\");\r\n } catch (IOException ex) {\r\n }\r\n }", "public void save(OutputStream out) throws IOException {\n\t\ttry (GZIPOutputStream zipOut = new GZIPOutputStream(out)) {\n\t\t\ttry (ObjectOutputStream objOut = new ObjectOutputStream(zipOut)) {\n\t\t\t\tobjOut.writeObject(this);\n\t\t\t}\n\t\t}\n\t}", "private void writeArchive(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\t\ttranslate.writeArchive();\n\n\t\t// compress archive file if +C used\n\t\tif (content.isCompressed()) {\n\t\t\tcompressArchive();\n\t\t}\n\t}", "private void zipDirectoryToOutputStream(File dirToZip, OutputStream outStream)\n throws IOException {\n if (!dirToZip.isDirectory()) {\n throw new IOException(\"zip directory does not exist\");\n }\n Log.v(TAG, \"zipping directory \" + dirToZip.getAbsolutePath());\n\n File[] listFiles = dirToZip.listFiles();\n try (ZipOutputStream zipStream = new ZipOutputStream(new BufferedOutputStream(outStream))) {\n for (File file : listFiles) {\n if (file.isDirectory()) {\n continue;\n }\n String filename = file.getName();\n // only for the zipped output file, we add individual entries to zip file.\n if (filename.equals(OUTPUT_ZIP_FILE) || filename.equals(EXTRA_OUTPUT_ZIP_FILE)) {\n ZipUtils.extractZippedFileToZipStream(file, zipStream);\n } else {\n ZipUtils.addFileToZipStream(file, zipStream);\n }\n }\n } finally {\n outStream.close();\n }\n // Zipping successful, now cleanup the temp dir.\n FileUtils.deleteDirectory(dirToZip);\n }", "public static void generateZip(File file) {\r\n\t\t\r\n\t\tFile zipfile=new File(file.toString().replaceAll(\".xlsx\",\".zip\" ));\r\n\t\tFileOutputStream fos=null;\r\n\t\tZipOutputStream zos=null;\r\n\t\tFileInputStream fin=null;\r\n\t\tZipEntry ze=null; \r\n\t\t\t\r\n\t\tif(!zipfile.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tzipfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//create ZipOutputStream to write to the zipfile\r\n fos=new FileOutputStream(zipfile);\r\n\t\t\t zos=new ZipOutputStream(fos);\r\n\t\t\t \r\n\t\t//add a new Zip Entry to the ZipOutPutStream \r\n\t\t\t ze=new ZipEntry(file.getName());\r\n\t\t\t zos.putNextEntry(ze);\r\n\t\t\t \r\n\t\t//read the file and write to the ZipOutPutStream\t \r\n\t\t\t fin=new FileInputStream(file);\r\n\t\t\t int i;\r\n\t\t\t \r\n\t\t\t while((i=fin.read())!=-1){\r\n\t\t\t\t zos.write(i);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(zos!=null && fos!=null && fin!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t //close the zip entry to write to to zip file\r\n\t\t\t\t\t\tzos.closeEntry();\r\n\t\t\t\t\t//close Resources.\t\r\n\t\t\t\t\t\tzos.close();\r\n\t\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tfin.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }", "protected void initZipOutputStream(ZipOutputStream zOut)\n throws IOException, BuildException\n {\n // add deployment descriptor first\n if (deploymentDescriptor != null) {\n zipDir(new File(deploymentDescriptor.getParent()), zOut, \n \"WEB-INF/\");\n super.zipFile(deploymentDescriptor, zOut, \"WEB-INF/web.xml\");\n } else {\n throw new BuildException(\"webxml attribute is required\", location);\n }\n\n addFiles(libFileSets, zOut, \"WEB-INF/lib/\");\n addFiles(classesFileSets, zOut, \"WEB-INF/classes/\");\n addFiles(webInfFileSets, zOut, \"WEB-INF/\");\n addPrefixedFiles(locFileSets, zOut);\n\n super.initZipOutputStream(zOut);\n }", "public ZipLineStream() {\n\t\tarchType = ArchiveTypes.ZIP.name();\n\t}", "@Override\n public File compress() throws Exception\n {\n File dest = File.createTempFile(\"TMP\",\".tar.gz\");\n FileOutputStream fos = new FileOutputStream( dest );\n BufferedOutputStream bos = new BufferedOutputStream(fos);\n TarOutputStream out = new TarOutputStream(bos);\n tarFolder( null, folder.getAbsolutePath(), out );\n out.close();\n return dest;\n }", "public ZipFile mo305b() throws IOException {\n return new ZipFile(this.f340a);\n }", "public void writeObject(ZObjectOutputStream out) throws IOException {\n }", "public InputStream getStream() {\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }", "protected String openReportOutput() {\n final String home = preferredSubFolder(s_userHome != null ? s_userHome : System.getProperty(\"user.home\"));\n final LocalDateTime ldt = Instant.now().atZone(ZoneOffset.systemDefault()).toLocalDateTime();\n final String path = String.format(\"%s%c%s-%04d-%02d-%02d-%02d-%02d-%02d.zip\", home, File.separatorChar, \"OpenGamma-ErrorReport\", ldt.getYear(),\n ldt.getMonthValue(), ldt.getDayOfMonth(),\n ldt.getHour(), ldt.getMinute(), ldt.getSecond()).toString();\n LOGGER.info(\"Writing {}\", path);\n try {\n _zip = new ZipOutputStream(new FileOutputStream(path));\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't write to \" + path, e);\n }\n return path;\n }", "public static void createArchiveFile( final Configuration conf, final Path zipFile, final List<Path> files, int pathTrimCount, boolean isJar, Manifest jarManifest) throws IOException\r\n\t{\r\n\t\t\r\n\t\tFSDataOutputStream out = null;\r\n\t\tZipOutputStream zipOut = null;\r\n\t\t/** Did we actually write an entry to the zip file */\r\n\t\tboolean wroteOne = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tout = zipFile.getFileSystem(conf).create(zipFile);\r\n\t\t\tif (files.isEmpty()) {\r\n\t\t\t\treturn;\t/** Don't try to create a zip file with no entries it will throw. just return empty file. */\r\n\t\t\t}\r\n\t\t\tif (isJar) {\r\n\t\t\t\tif (jarManifest!=null) {\r\n\t\t\t\t\tzipOut = new JarOutputStream(out,jarManifest);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tzipOut = new JarOutputStream(out);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tzipOut = new ZipOutputStream(out);\r\n\t\t\t}\r\n\t\t\tfor ( Path file : files) {\r\n\t\t\t\tFSDataInputStream in = null;\r\n\t\t\t\t/** Try to complete the file even if a file fails. */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFileSystem fileSystem = file.getFileSystem(conf);\r\n\t\t\t\t\tin = fileSystem.open(file);\r\n\t\t\t\t\tZipEntry zipEntry = new ZipEntry(pathTrim(file, pathTrimCount));\r\n\t\t\t\t\tzipOut.putNextEntry(zipEntry);\r\n\t\t\t\t\tIOUtils.copyBytes(in, zipOut, (int) Math.min(32768, fileSystem.getFileStatus(file).getLen()), false);\r\n\t\t\t\t\twroteOne = true;\r\n\t\t\t\t} catch( IOException e) {\r\n\t\t\t\t\tLOG.error( \"Unable to store \" + file + \" in zip file \" + zipFile + \", skipping\", e);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif (in!=null) {\r\n\t\t\t\t\t\ttry { in.close(); } catch( IOException ignore ) {}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally { /** Ensure everything is always closed before the function exits */\r\n\t\t\t\r\n\t\t\tif (zipOut!=null&&wroteOne) {\r\n\t\t\t\tzipOut.closeEntry();\r\n\t\t\t\tzipOut.flush();\r\n\t\t\t\tzipOut.close();\r\n\t\t\t\tout = null;\r\n\t\t\t}\r\n\t\t\tif (out!=null) {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public File getZipLocation ()\n\t{\n\t\treturn zipFileLocation;\n\t}", "void serializeContents(OutputStream stream, TargetType o) throws IOException {\n val writeVersion = this.versions[getWriteVersion()];\n stream.write(writeVersion.getVersion());\n stream.write(writeVersion.getRevisions().size());\n\n // Write each Revision for this Version, in turn.\n for (val r : writeVersion.getRevisions()) {\n stream.write(r.getRevision());\n try (val revisionOutput = RevisionDataOutputStream.wrap(stream)) {\n r.getWriter().accept(o, revisionOutput);\n }\n }\n }", "public void saveArchive() throws FileNotFoundException {\n jsonWriter.open();\n Archive archive = new Archive(cameraCollection, filmCollection);\n jsonWriter.write(archive);\n jsonWriter.close();\n }", "public static String saveState() {\n \n // 1) Encode the state to XML\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n StaticsXMLEncoder encoder = new StaticsXMLEncoder(bout);\n encoder.writeObject(Exercise.getExercise().getState());\n encoder.close();\n byte[] xmlData = bout.toByteArray();\n \n // 2) Zip it\n Deflater deflater = new Deflater();\n deflater.setInput(xmlData);\n deflater.finish();\n \n ByteArrayOutputStream zout = new ByteArrayOutputStream();\n byte[] partialData = new byte[1024];\n int dataCompressed;\n while ((dataCompressed = deflater.deflate(partialData)) != 0) {\n zout.write(partialData, 0, dataCompressed);\n }\n \n byte[] compressedData = zout.toByteArray();\n deflater.deflate(compressedData);\n \n // 3) Encode it with Base64 for convenience\n String encodedData = Base64.encodeBytes(compressedData);\n return encodedData;\n }", "private void writeObject(ObjectOutputStream stream) throws IOException {\r\n\t\tstream.defaultWriteObject();\r\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(stream);\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(gzos);\r\n\t\toos.writeObject(map);\r\n\t\toos.writeObject(visibility);\r\n\t\toos.writeObject(occupied);\r\n\t\toos.writeObject(danger);\r\n\t\toos.writeObject(attacking);\r\n\t\toos.writeObject(fade);\r\n\t\toos.writeObject(cost);\r\n\t\toos.writeObject(difficulty);\r\n\t\toos.flush();\r\n\t\tgzos.finish();\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile targetFile = new File(\"D:\\\\program\\\\360cse\\\\360Chrome\\\\test.zip\");\n\t\tFile sourceFiles = new File(\"D:\\\\temple\\\\sysMenu-add.html\");\n\t\tboolean flag = compressZip(false, targetFile, sourceFiles);\n\t\tSystem.out.println(flag);\n\t}", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer.\n private static void serializeToLz4Data(Serializable object, OutputStream out) {\n try (Closer closer = Closer.create()) {\n OutputStream los = closer.register(new LZ4FrameOutputStream(out));\n ObjectOutputStream oos = closer.register(new ObjectOutputStream(los));\n oos.writeObject(object);\n } catch (Throwable e) {\n throw new BatfishException(\"Failed to convert object to LZ4 data\", e);\n }\n }", "private StreamSource getZipSource(final File requestedDirectory) {\n StreamSource zippedDirSource = new StreamSource() {\n private static final long serialVersionUID = 7060525220398731933L;\n public InputStream getStream() {\n // Pipe bauen, um Steam als Download umzulenken\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }\n };\n return zippedDirSource;\n }", "private void marshall() {\n\t\t\n\t\ttry {\n\t\t\tFile file = new File(IKATS_IMPORT_SESSIONS_FILE);\n\t\t\t\n\t\t\tClass<?>[] classes = new Class[]{IngestionModel.class, ImportStatus.class};\n\t\t\t\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(classes);\n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n\t\t\t// output pretty printed then save.\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tjaxbMarshaller.marshal(model, file);\n\t\t\t\n\t\t\tlogger.info(\"Saved session file: {}\", file.getAbsolutePath());\n\n\t\t} catch (JAXBException e) {\n\t\t // Review#147170 logger.error(e)\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ZipFileWriter(String zipFile) throws FileNotFoundException {\r\n\t\tFileOutputStream fos = new FileOutputStream(zipFile);\r\n\t\t// ajout du checksum\r\n\t\tCheckedOutputStream checksum = new CheckedOutputStream(fos,\r\n\t\t\t\tnew Adler32());\r\n\t\tthis.zos = new ZipOutputStream(new BufferedOutputStream(checksum));\r\n\t}", "public static void compressFilteredRepository(Repository repo, boolean filter) {\n // Get a temporary root for the compressed repository\n RepoFile newRoot = RepoFile.make(new File(FileUtils.getTempDir(), \"newRoot\"));\n \n logger.info(\"Beginning filtered repository compression...\");\n int count = 0;\n int total = repo.getProjectCount();\n Random random = null;\n double max = REPO_SUBSET_RATE.getValue();\n if (filter) {\n random = new Random();\n }\n // Go through every project and compress it\n for (RepoProject project : repo.getProjects()) {\n // Make sure the project has at least one file\n IFileSet files = project.getFileSet();\n if (files.getJavaFileCount() > 0 && (!filter || (random.nextDouble() < max))) {\n logger.info(\"Processing project \" + ++count + \" of \" + total);\n ZipOutputStream zos = null;\n try {\n zos = new ZipOutputStream(new FileOutputStream(newRoot.rebaseFile(project.getProjectRoot()).getChildFile(\"project.zip\")));\n// zos.setLevel(9);\n // Add the properties file\n FileInputStream fis = null;\n // Messy, but only want the entire writing to fail if the output stream has issues\n try {\n fis = new FileInputStream(project.getProperties().toFile());\n } catch (IOException e) {\n logger.log(Level.SEVERE, \"Unable to open file: \" + project.getProperties().toString(), e);\n fis = null;\n }\n if (fis != null) {\n try {\n zos.putNextEntry(new ZipEntry(project.getProperties().getName()));\n FileUtils.writeStreamToStream(fis, zos);\n } finally {\n FileUtils.close(fis);\n }\n // Add the individual files\n for (IJavaFile file : files.getFilteredJavaFiles()) {\n RepoFile rFile = file.getFile();\n try {\n fis = new FileInputStream(rFile.toFile());\n } catch (IOException e) {\n logger.log(Level.SEVERE, \"Unable to open file: \" + rFile.toString());\n }\n if (fis != null) {\n try {\n zos.putNextEntry(new ZipEntry(\"content/\" + rFile.getRelativePath()));\n FileUtils.writeStreamToStream(fis, zos);\n } finally {\n FileUtils.close(fis);\n }\n }\n }\n }\n } catch (IOException e) {\n logger.log(Level.SEVERE, \"Unable to write project zip.\", e);\n } finally {\n FileUtils.close(zos);\n }\n } else {\n logger.info(\"Skipping project \" + ++count + \" of \" + total);\n }\n }\n \n // Compress the repository\n FileUtils.zipFile(newRoot.toFile(), COMPRESSED_FILTERED_REPO_FILE.asOutput());\n \n // Clean temp files\n FileUtils.cleanTempDir();\n }", "private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)allFiles.nextElement();\n\t\t\t\tInputStream is = rfoFile.getInputStream(ze);\n\t\t\t\tString fName = processSeparators(ze.getName());\n\t\t\t\tFile element = new File(tempDir + fName);\n\t\t\t\torg.reprap.Main.ftd.add(element);\n\t\t\t\tFileOutputStream os = new FileOutputStream(element);\n\t\t\t\twhile((bytesIn = is.read(buffer)) != -1) \n\t\t\t\t\tos.write(buffer, 0, bytesIn);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.unCompress(): \" + e);\n\t\t}\n\t}", "public void convertToZip(String input, String output) throws ZipException {\n\t\tZipFile zip = new ZipFile(output); \n\t ZipParameters parameters = new ZipParameters();\n parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); \n\t zip.addFolder(input, parameters);\n\t}", "public void compress() {\r\n fCharBuffer.compress();\r\n fStyleBuffer.compress();\r\n fParagraphBuffer.compress();\r\n }", "public void testChangeZIPArchive1() throws Exception {\n String externalLib = Util.getOutputDirectory() + File.separator + \"externalLib.abc\";\n IPath projectPath = env.addProject(\"Project\");\n try {\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \" public void foo() {\\n\" + \" }\\n\" + \"}\" }, externalLib, \"1.4\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n env.addExternalJars(projectPath, new String[] { externalLib });\n //$NON-NLS-1$\n IPath root = env.getPackageFragmentRootPath(projectPath, \"\");\n env.setOutputFolder(projectPath, \"\");\n IPath classY = env.addClass(root, \"q\", \"Y\", \"package q;\\n\" + \"public class Y {\\n\" + \" void bar(p.X x) {\\n\" + \" x.foo();\\n\" + \" }\\n\" + \"}\");\n fullBuild(projectPath);\n expectingNoProblems();\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \"}\" }, externalLib, \"1.4\");\n IJavaProject p = env.getJavaProject(projectPath);\n p.getJavaModel().refreshExternalArchives(new IJavaElement[] { p }, null);\n incrementalBuild(projectPath);\n expectingProblemsFor(classY, \"Problem : The method foo() is undefined for the type X [ resource : </Project/q/Y.java> range : <54,57> category : <50> severity : <2>]\");\n } finally {\n new File(externalLib).delete();\n env.removeProject(projectPath);\n }\n }", "public void compress() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.contractDoor();\n\t}", "public int getZip() {\n\t\treturn zip;\n\t}", "public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }", "public static void PackageArchive(File directoryName, File fileName) throws IOException\r\n {\r\n final String ARCHIVE_XML = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?>\\n<archive major_version=\\\"0\\\" minor_version=\\\"1\\\" />\";\r\n\r\n TarArchiveWriter archive = new TarArchiveWriter(new GZIPOutputStream(new FileOutputStream(fileName)));\r\n\r\n // Create the archive.xml file\r\n archive.writeFile(\"archive.xml\", ARCHIVE_XML);\r\n\r\n // Add the assets\r\n File dir = new File(directoryName, ArchiveConstants.ASSETS_PATH);\r\n String[] files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.ASSETS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the objects\r\n dir = new File(directoryName, ArchiveConstants.OBJECTS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.OBJECTS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the terrain(s)\r\n dir = new File(directoryName, ArchiveConstants.TERRAINS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.TERRAINS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the parcels(s)\r\n dir = new File(directoryName, ArchiveConstants.LANDDATA_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.LANDDATA_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the setting(s)\r\n dir = new File(directoryName, ArchiveConstants.SETTINGS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.SETTINGS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n archive.close();\r\n }", "private String writeZipFile(File directoryToZip, List<File> fileList, String zipName) throws IOException{\r\n // If the zip name is null then provide the name of the directory\r\n if(zipName == null){\r\n zipName = directoryToZip.getName();\r\n }\r\n // Store the file name\r\n String fileName = zipName;\r\n // Create the zip file\r\n FileOutputStream fos = new FileOutputStream(fileName);\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n for (File file : fileList) {\r\n if (!file.isDirectory()) { // we only zip files, not directories\r\n // Add files that are not in the skip list\r\n if(!isFileToSkip(file.getName())) {\r\n addToZip(directoryToZip, file, zos);\r\n }\r\n }\r\n }\r\n zos.close();\r\n fos.close();\r\n // Return the full name of the file\r\n return fileName;\r\n }", "public int getZip() {\r\n\t\treturn zip;\r\n\t}", "public void saveAsSerialization() {\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"saves/data.dat\")))){\n os.writeObject(this);\n } catch (FileNotFoundException e){\n System.out.println(\"Could not create file: \" + e.getMessage());\n } catch (IOException e){\n System.out.println(\"IO exception occurred: \" + e.getMessage());\n }\n\n }", "public Writer addGzipWriter(String id) throws IOException {\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(outputStream);\n\t\trks.add(id + \"Stream\");\n\t\trvs.add(gzos);\n\t\tWriter w = new OutputStreamWriter(gzos, \"UTF-8\");\n\t\trks.add(id + \"Writer\");\n\t\trvs.add(w);\n\t\treturn w;\n\t}", "private static void zipFolder(ZipOutputStream out, File folder) throws IOException {\n\n final int BUFFER = 2048;\n\n File[] fileList = folder.listFiles();\n BufferedInputStream origin;\n\n for (File file : fileList) {\n if (file.isDirectory()) {\n zipFolder(out, file);\n } else {\n byte data[] = new byte[BUFFER];\n\n String unmodifiedFilePath = file.getPath();\n FileInputStream fi = new FileInputStream(unmodifiedFilePath);\n\n origin = new BufferedInputStream(fi, BUFFER);\n ZipEntry entry = new ZipEntry(file.getName());\n\n out.putNextEntry(entry);\n\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n\n out.closeEntry();\n origin.close();\n }\n }\n\n // Finish the zip stream and close it\n out.finish();\n out.close();\n }", "private InputStream openContentStream() {\n\t\t// ok, where do we dump our layers to?\n\t\tfinal ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\t// hmm, now actually output the layers\n\t\tDebriefEclipseXMLReaderWriter.exportThis(_myNewLayers, bos);\n\n\t\t// and return our OS as an IS\n\t\treturn new ByteArrayInputStream(bos.toByteArray());\n\t}", "public static void zip(BasicShell shell, File archive, List<File> filesToZip) {\n\t\ttry {\n\t\t\tshell.printOut(\"Creating archive '\" + archive.getPath() + \"'.\");\n\t\t\tfinal BufferedOutputStream archiveStream = new BufferedOutputStream(new FileOutputStream(archive));\n\t\t\tZipOutputStream zipStream = new ZipOutputStream(archiveStream);\n\t\t\tzipStream.setLevel(7);\n\t\t\t\n\t\t\tString pwd = shell.pwd().getPath();\n\t\t\tfor ( File file : filesToZip) {\n\t\t\t\tString name = file.getPath();\n\t\t\t\tif (name.equals(pwd)) continue;\n\t\t\t\t\n\t\t\t\tif ( name.startsWith(pwd) ) {\n\t\t\t\t\tname = name.substring(pwd.length()+1);\n\t\t\t\t}\n\t\t\t\tZipEntry entry = new ZipEntry(name);\n\t\t\t\tzipStream.putNextEntry(entry);\n\t\t\t\tif ( file.isFile() ) {\n\t\t\t\t\tBufferedInputStream fileStream = new BufferedInputStream(new FileInputStream(file));\n\t\t\t\t\tbyte[] buffer = new byte[2048];\n\t\t\t\t\tint count = fileStream.read(buffer);\n\t\t\t\t\twhile ( count > -1 ) {\n\t\t\t\t\t\tzipStream.write(buffer, 0, count);\n\t\t\t\t\t\tcount = fileStream.read(buffer);\n\t\t\t\t\t}\n\t\t\t\t\tfileStream.close();\n\t\t\t\t}\n\t\t\t\tshell.printOut(\"File '\" + entry.getName() + \"' added.\");\n\t\t\t}\n\t\t\tzipStream.close();\n\t\t} catch (Exception e) {\n\t\t\tshell.getErrorHandler().handleError(Diagnostic.ERROR, e.getClass().getSimpleName() + \": \"+ e.getMessage());\n\t\t}\n\t}", "public int getZip() {\n return this.zip;\n }", "public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;", "@Override\n public String toString() {\n return \"ZipFile '\" + getName() + \"'\";\n }", "public interface CompressionService {\n public static final String ARCHIVE_EXTENSION = \"zip\";\n /**\n * Compresses given directory into zip file\n *\n * @param directory the content to compress\n * @param size default archive size\n *\n * @return zipped archive/s\n */\n List<File> compress(File directory, int size);\n}", "private void addFilesToZip(List<File> files,String outputPath) throws IOException \r\n\t{\r\n\t\t// create a zip output stream\r\n\t\tString zipFileName = outputPath + File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\tOutputStreamWithLength chunkedFile = new OutputStreamWithLength(zipFileName);\r\n\t\tzipOutputStream = new ZipOutputStream(chunkedFile);\r\n\t\tdouble totalBytesRead = 0L;\r\n\t\tint count = 10; \r\n\t\tfor(File file:files)\r\n\t\t{\r\n\t\t\t// reset the file index\r\n\t\t\tfileIndex = 0;\r\n\t\t\tString zipEntryPath = file.getAbsolutePath().substring(basePath.length() + 0);\r\n\t\t\t\r\n\t\t\tif(file.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tZipEntry entry =new ZipEntry(zipEntryPath+\"/\");\r\n\t\t\t\tzipOutputStream.putNextEntry(entry);\r\n\t\t\t\tzipOutputStream.closeEntry();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tzipEntryPath = zipEntryPath + Constants.fragmentLabel + fileIndex++;\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\t// add the current file to the zip\r\n\t\t\tZipEntry entry =new ZipEntry(zipEntryPath);\r\n\t\t\tzipOutputStream.putNextEntry(entry);\r\n\r\n\t\t\tbyte[] buffer = new byte[1024]; \t \r\n\r\n\t\t\tFileInputStream inputFileStream = new FileInputStream(file);\r\n\t\t\tint len; \r\n\t\t\twhile ((len = inputFileStream.read(buffer)) > 0) \r\n\t\t\t{ \r\n\t\t\t\tif((chunkedFile.getCurrentWriteLength() + len ) > maxSplitSize){\r\n\t\t\t\t\t// close current zip output stream\r\n\t\t\t\t\tzipOutputStream.closeEntry();\r\n\t\t\t\t\tzipOutputStream.finish();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// reset the write length\r\n\t\t\t\t\tchunkedFile.setCurrentWriteLength(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// create new zip output stream\r\n\t\t\t\t\tzipIndex += 1;\r\n\t\t\t\t\tzipFileName = outputPath+ File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\t\t\t\tchunkedFile = new OutputStreamWithLength(zipFileName);\r\n\t\t\t\t\tzipOutputStream = new ZipOutputStream(chunkedFile);\r\n\r\n\t\t\t\t\t// add the current file to write remaining bytes\r\n\t\t\t\t\tzipEntryPath = file.getAbsolutePath().substring(basePath.length() + 0);\r\n\t\t\t\t\tzipEntryPath = zipEntryPath + Constants.fragmentLabel + fileIndex++;\r\n\t\t\t\t\tentry = new ZipEntry(zipEntryPath);\r\n\t\t\t\t\tzipOutputStream.putNextEntry(entry);\r\n\r\n\t\t\t\t\t// write the bytes to the zip output stream\r\n\t\t\t\t\tzipOutputStream.write(buffer, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// write the bytes to the zip output stream\r\n\t\t\t\t\tzipOutputStream.write(buffer, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Show progress\r\n\t\t\t\ttotalBytesRead += len;\r\n\t\t\t\tdouble progress = totalBytesRead / totalBytes;\r\n\t\t\t\tif (progress*100 > 10)\r\n\t\t\t\t{\r\n\t\t\t\t\ttotalBytesRead = 0L;\r\n\t\t\t\t\tcount += 10;\r\n\t\t\t\t\tSystem.out.println(\"Finished \" + count +\"%\");\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t\tinputFileStream.close();\r\n\t\t}\r\n\r\n\t\tzipOutputStream.closeEntry();\r\n\t\tzipOutputStream.finish();\r\n\t}", "public static boolean compress(File folder, File output){\n // Create zip output stream\n try {\n ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(output));\n zipFolder(zos, folder);\n return true;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return false;\n }", "public int getZip() {\n return zip;\n }", "protected void trunkStore() {\n LOG.info(\"Trunking state filestore: {}\", fileStore);\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(fileStore);\n for (Map.Entry<String, String> entry : cache.entrySet()) {\n fos.write(entry.getKey().getBytes());\n fos.write(KEY_VALUE_DELIMITER.getBytes());\n fos.write(entry.getValue().getBytes());\n fos.write(STORE_DELIMITER.getBytes());\n }\n } catch (IOException e) {\n throw RuntimeCamelException.wrapRuntimeCamelException(e);\n } finally {\n IOHelper.close(fos, \"Trunking file state repository\", LOG);\n }\n }", "public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public OutputStream openOutputStream() throws IOException {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n return new FilterOutputStream(baos){\n @Override\n public void close() throws IOException {\n writeManifestJarEntry(readManifest(baos));\n }\n };\n }", "public byte[] toCompressedBytes() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tDataOutputStream dos = new DataOutputStream(baos);\n \ttry {\n \t\t// write the type string first\n \t\tdos.writeUTF(Types.GPS);\n \t\tdos.writeLong(this.getTimestamp());\n \t\t// JWS - using flongs to compress\n \t\tdos.writeLong(FixedPointLong.stringToFlong(loc.getLatitudeAsString()));\n \t\tdos.writeLong(FixedPointLong.stringToFlong(loc.getLongitudeAsString()));\n \t\tfor(int i=0;i<gpsTypes.length;i++) {\n \t\t\tString s = (String) entries.get(gpsTypes[i]);\n \t\t\tdos.writeUTF(s);\n \t\t}\n \t\n \tdos.close();\n \t} catch(IOException ioe) {\n \t\t//ioe.printStackTrace();\n \t\treturn null; \n \t} catch(FixedPointLongException fple) {\n \t return null;\n \t}\n \treturn baos.toByteArray();\n }", "public boolean intZip() {\n return intZip;\n }", "public GZIPOutputStream addGzipStream(String id) throws IOException {\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(outputStream);\n\t\trks.add(id);\n\t\trvs.add(gzos);\n\t\treturn gzos;\n\t}", "public void save() {\n for (Workspace a : workspaces) {\n if (!a.isSearch()) {\n try {\n saveWorkspace(a);\n } catch (Exception e) {\n main.system.ExceptionMaster.printStackTrace(e);\n }\n }\n }\n }", "@Override\n public byte[] compress(byte[] bytes) throws IOException\n {\n try (BinaryIO io = new BinaryIO())\n {\n io.write32Bits(LZW_TAG);\n\n LZWDictionary dict = new LZWDictionary();\n int bitsize = 9, index = -1, newIndex;\n\n for (byte b : bytes)\n {\n newIndex = dict.get(index, b);\n\n if (newIndex > 0)\n index = newIndex;\n else\n {\n io.writeBits(index, bitsize);\n bitsize = dict.put(index, b);\n index = dict.get(-1, b);\n }\n if (dict.isFull())\n dict.reset();\n }\n io\n .writeBits(index, bitsize)\n .write32Bits(0); // EoF marker\n\n return io.getBytesOut();\n }\n }", "protected static void zipDir(File zipDir, ZipOutputStream zos, String archiveSourceDir)\n throws IOException {\n String[] dirList = zipDir.list();\n byte[] readBuffer = new byte[40960];\n int bytesIn;\n //loop through dirList, and zip the files\n if (dirList != null) {\n for (String aDirList : dirList) {\n File f = new File(zipDir, aDirList);\n //place the zip entry in the ZipOutputStream object\n zos.putNextEntry(new ZipEntry(getZipEntryPath(f, archiveSourceDir)));\n if (f.isDirectory()) {\n //if the File object is a directory, call this\n //function again to add its content recursively\n zipDir(f, zos, archiveSourceDir);\n //loop again\n continue;\n }\n //if we reached here, the File object f was not a directory\n //create a FileInputStream on top of f\n try (FileInputStream fis = new FileInputStream(f)) {\n //now write the content of the file to the ZipOutputStream\n while ((bytesIn = fis.read(readBuffer)) != -1) {\n zos.write(readBuffer, 0, bytesIn);\n }\n }\n }\n }\n }", "public void Serialization() {\n\t\tGitlet myGitlet = new Gitlet(1);\n\t\tmyGitlet.myBranch = this.myBranch;\n\t\tmyGitlet.myCommit = this.myCommit;\n\t\tmyGitlet.messageMap = this.messageMap;\n\t\tmyGitlet.myHead = this.myHead;\n\t\tmyGitlet.stagedFiles = this.stagedFiles;\n\t\tmyGitlet.tracked = this.tracked;\n\t\tmyGitlet.stagePath = this.stagePath;\n\t\tmyGitlet.ID = this.ID;\n\t\tmyGitlet.currentBranch = this.currentBranch;\n\t\tmyGitlet.untrackedFiles = this.untrackedFiles;\n\t\tmyGitlet.conflictState = this.conflictState;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\n\t\t\t\t\t\".gitlet/Serialization.ser\");\n\t\t\tObjectOutputStream outStream = new ObjectOutputStream(fileOut);\n\t\t\toutStream.writeObject(myGitlet);\n\t\t\toutStream.close();\n\t\t\tfileOut.close();\n\n\t\t} catch (IOException i) {\n\t\t\ti.printStackTrace();\n\t\t}\n\n\t}", "public boolean ZipFile(String sSourceFilePath, String sDestinationZipFilePath, boolean bReplaceExisting) {\n byte[] buffer = new byte[30720];\n FileInputStream fin = null;\n FileOutputStream fout = null;\n ZipOutputStream zout = null;\n int length;\n String sZipEntryFileName = \"\";\n File objFile = null;\n try {\n //check for source file\n if (sSourceFilePath.trim().equalsIgnoreCase(\"\")) {\n throw new Exception(\"Invalid Source File : \" + sSourceFilePath);\n }\n objFile = new File(sSourceFilePath);\n if (!objFile.exists()) {\n throw new Exception(\"Source file not found : \" + sSourceFilePath);\n }\n\n //check for destination Zip file\n if (sDestinationZipFilePath.trim().equalsIgnoreCase(\"\") || sDestinationZipFilePath == null) {\n String stmp_Path = objFile.getAbsolutePath();\n String stmp_Name = objFile.getName();\n if (stmp_Name.contains(\".\")) { //check for removing extension\n int indx = 0;\n try {\n indx = stmp_Name.indexOf(\".\", stmp_Name.length() - 5);\n } catch (Exception e) {\n indx = 0;\n }\n if (indx <= 0) {\n indx = stmp_Name.length();\n }\n\n stmp_Name = stmp_Name.substring(0, indx);\n stmp_Name = stmp_Name + \".zip\";\n }\n sDestinationZipFilePath = stmp_Path + File.separator + stmp_Name;\n }\n\n objFile = new File(sDestinationZipFilePath);\n if (objFile.exists()) {\n if (bReplaceExisting) {\n objFile.delete();\n } else {\n throw new Exception(\"Destination ZipFile Already exists : \" + sDestinationZipFilePath);\n }\n }\n\n //Zipping File\n sZipEntryFileName = sSourceFilePath.substring(sSourceFilePath.lastIndexOf(\"\\\\\") + 1);\n fout = new FileOutputStream(sDestinationZipFilePath);\n zout = new ZipOutputStream(fout);\n fin = new FileInputStream(sSourceFilePath);\n zout.putNextEntry(new ZipEntry(sZipEntryFileName));\n while ((length = fin.read(buffer)) > 0) {\n zout.write(buffer, 0, length);\n }\n\n return true;\n\n } catch (Exception exp) {\n println(\"Src = \" + sSourceFilePath + \" : Dest = \" + sDestinationZipFilePath + \" : \" + exp.toString());\n return false;\n } finally {\n try {\n fin.close();\n } catch (Exception exp) {\n }\n try {\n zout.closeEntry();\n } catch (Exception exp) {\n }\n try {\n zout.close();\n } catch (Exception exp) {\n }\n }\n }", "public String toString (){\r\n\t\t\treturn \"[FZipFile]\"\r\n\t\t\t\t+ \"\\n name:\" + _filename\r\n\t\t\t\t+ \"\\n date:\" + _date\r\n\t\t\t\t+ \"\\n sizeCompressed:\" + _sizeCompressed\r\n\t\t\t\t+ \"\\n sizeUncompressed:\" + _sizeUncompressed\r\n\t\t\t\t+ \"\\n versionHost:\" + _versionHost\r\n\t\t\t\t+ \"\\n versionNumber:\" + _versionNumber\r\n\t\t\t\t+ \"\\n compressionMethod:\" + _compressionMethod\r\n\t\t\t\t+ \"\\n encrypted:\" + _encrypted\r\n\t\t\t\t+ \"\\n hasDataDescriptor:\" + _hasDataDescriptor\r\n\t\t\t\t+ \"\\n hasCompressedPatchedData:\" + _hasCompressedPatchedData\r\n\t\t\t\t+ \"\\n filenameEncoding:\" + _filenameEncoding\r\n\t\t\t\t+ \"\\n crc32:\" + _crc32.toString(16)\r\n\t\t\t\t+ \"\\n adler32:\" + _adler32.toString(16);\r\n\t\t}", "public static byte[] compressReference(Reference dto) {\r\n\t\ttry {\r\n\t\t\treturn JDOSecondaryPropertyUtils.compressObject(X_STREAM, dto);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t}", "@Override\n public void writeAll() throws IOException {\n try\n {\n workbook.write(outputStream);\n outputStream.close();\n workbook.dispose();\n }\n catch (IOException io)\n {\n throw new IOException(io);\n }\n }", "private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file);\r\n\t\t\twriter.write(xmlStream);\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t\t//Commando für die Shell um ein Tgz zu erstellen.\r\n\t\t\tString[] str = new String[] {\r\n\t\t\t\t\t\"/bin/bash\",\r\n\t\t\t\t\t\"-c\",\r\n\t\t\t\t\t\"tar cfvz \" + path + \"/\" + name + \".tgz -C \" + path + \" \" + name\r\n\t\t\t\t\t\t\t+ \".xml -C \" + path + \" \" + name + \".pdf\" };\r\n\r\n\t\t\t//Shell Aufruf\r\n\t\t\tProcess p = Runtime.getRuntime().exec(str);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint timeout = 10;\r\n\t\t\twhile (!new File(path + name + \".tgz\").exists() && timeout != 0) {\r\n\t\t\t\t//warten bis Datei erstellt wurde oder 10 sec vergangen sind\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttimeout--;\r\n\t\t\t\t\tThread.sleep(1000);\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}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void save(File file, Workspace workspace) {\r\n if (file != null) {\r\n // System.out.println(\"Workspace Save -->\" + file);\r\n try {\r\n FileOutputStream ostream = new FileOutputStream(file);\r\n try {\r\n WorkspaceSerializer serializer = new WorkspaceSerializer(\r\n workspace);\r\n serializer.serialize(ostream);\r\n workspace.setWorkspaceChanged(false);\r\n } finally {\r\n ostream.close();\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "void serialize(Object obj, OutputStream stream) throws IOException;", "public OutputArchive(ObjectOutput output) {\n this.output = output;\n }", "public void SerialiseList() throws IOException {\n ObjectOutputStream oStream = null;\n\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Warehouses\" + \".dat\"));\n oStream.writeObject(Wlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Stores\" + \".dat\"));\n oStream.writeObject(Slist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"WarehouseAdminList\" + \".dat\"));\n oStream.writeObject(WAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"StoreAdminList\" + \".dat\"));\n oStream.writeObject(SAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n }", "public String getZipId() {\n return zipId;\n }", "private static void deploy(SQLiteDatabase sqlLiteDb, InputStream dbStream) throws IOException {\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(dbStream));\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n Log.i(TAG, \"deploying zip entry: \" + entry);\n InputStreamReader dbReader = new InputStreamReader(zis);\n deploy(sqlLiteDb, dbReader);\n }\n }", "public byte[] serialize() {\n int size = distanceVectors.size();\n ByteBuffer buffer = ByteBuffer.allocate(46 * size + headerSize);\n serializeHeader(buffer);\n if(distanceVectors!=null) {\n for (Map.Entry<String, DistanceInfo> entry : distanceVectors.entrySet()) {\n String destination = entry.getKey();\n float cost = entry.getValue().cost;\n String firsHop = entry.getValue().firstHop;\n\n String add1 = \"\";\n String add2 = \"\";\n for (int i = 0; i < 21 - destination.length(); i++) {\n add1 += \" \";\n }\n for (int i = 0; i < 21 - firsHop.length(); i++) {\n add2 += \" \";\n }\n\n destination = destination + add1;\n firsHop = firsHop + add2;\n\n buffer.put(destination.getBytes());\n buffer.putFloat(cost);\n buffer.put(firsHop.getBytes());\n }\n }\n return buffer.array();\n }" ]
[ "0.6420933", "0.6114214", "0.56095165", "0.55643684", "0.5509961", "0.54577565", "0.5407218", "0.5280173", "0.5202834", "0.51684815", "0.51398325", "0.5112899", "0.5106625", "0.509366", "0.49442238", "0.49297222", "0.48860544", "0.48625815", "0.4827808", "0.48118168", "0.48115858", "0.47891882", "0.4776657", "0.4776657", "0.4761854", "0.47405788", "0.47304764", "0.46800596", "0.46772057", "0.467477", "0.4648648", "0.4643407", "0.46369147", "0.46346545", "0.46182325", "0.4602986", "0.45721525", "0.453016", "0.45225683", "0.45146438", "0.451099", "0.45012403", "0.44943178", "0.44587907", "0.44562787", "0.4454498", "0.44518754", "0.44388857", "0.4417754", "0.4415185", "0.44118604", "0.44006056", "0.43991458", "0.4389839", "0.43767524", "0.43766907", "0.43721592", "0.43704835", "0.4364026", "0.43590197", "0.43517303", "0.4350983", "0.43491971", "0.43343592", "0.43281472", "0.43187386", "0.43159893", "0.4314857", "0.43094417", "0.43089214", "0.43082", "0.43040323", "0.4293629", "0.42857838", "0.42781395", "0.4274528", "0.42574447", "0.42564678", "0.42548448", "0.42501196", "0.424999", "0.42394722", "0.42286298", "0.42242563", "0.42168844", "0.42167202", "0.42123646", "0.42036867", "0.41974798", "0.41950268", "0.41937742", "0.41925693", "0.4189791", "0.4185058", "0.41822362", "0.41774926", "0.41646448", "0.41540268", "0.41482592", "0.41439968" ]
0.5768827
2
Serializes all the components to the given archive and zipstream.
private void serializeComponents( final WorkspaceComponentSerializer serializer, final ArchiveContents archive, final ZipOutputStream zipStream) throws IOException { for (WorkspaceComponent component : workspace.getComponentList()) { ArchiveContents.ArchivedComponent archiveComp = archive .addComponent(component); ZipEntry entry = new ZipEntry(archiveComp.getUri()); zipStream.putNextEntry(entry); serializer.serializeComponent(component); GuiComponent<?> desktopComponent = SimbrainDesktop.getDesktop( workspace).getDesktopComponent(component); /* * If there is a desktop component associated with the component * it's serialized here. */ if (desktopComponent != null) { ArchiveContents.ArchivedComponent.ArchivedDesktopComponent dc = archiveComp .addDesktopComponent(desktopComponent); entry = new ZipEntry(dc.getUri()); zipStream.putNextEntry(entry); desktopComponent.save(zipStream); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ZipCompressor(){}", "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}", "private void writeArchive(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\t\ttranslate.writeArchive();\n\n\t\t// compress archive file if +C used\n\t\tif (content.isCompressed()) {\n\t\t\tcompressArchive();\n\t\t}\n\t}", "public void serialize(final OutputStream output) throws IOException {\r\n ZipOutputStream zipStream = new ZipOutputStream(output);\r\n WorkspaceComponentSerializer serializer = new WorkspaceComponentSerializer(\r\n zipStream);\r\n ArchiveContents archive = new ArchiveContents(workspace, serializer);\r\n\r\n workspace.preSerializationInit();\r\n\r\n // Serialize components\r\n serializeComponents(serializer, archive, zipStream);\r\n\r\n // Serialize couplings\r\n for (Coupling<?> coupling : workspace.getCouplingManager()\r\n .getCouplings()) {\r\n archive.addCoupling(coupling);\r\n }\r\n\r\n // Serialize update actions\r\n for (UpdateAction action : workspace.getUpdater().getUpdateManager()\r\n .getActionList()) {\r\n archive.addUpdateAction(action);\r\n }\r\n\r\n ZipEntry entry = new ZipEntry(\"contents.xml\");\r\n zipStream.putNextEntry(entry);\r\n archive.toXml(zipStream);\r\n zipStream.finish();\r\n }", "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "public static void zip(BasicShell shell, File archive, List<File> filesToZip) {\n\t\ttry {\n\t\t\tshell.printOut(\"Creating archive '\" + archive.getPath() + \"'.\");\n\t\t\tfinal BufferedOutputStream archiveStream = new BufferedOutputStream(new FileOutputStream(archive));\n\t\t\tZipOutputStream zipStream = new ZipOutputStream(archiveStream);\n\t\t\tzipStream.setLevel(7);\n\t\t\t\n\t\t\tString pwd = shell.pwd().getPath();\n\t\t\tfor ( File file : filesToZip) {\n\t\t\t\tString name = file.getPath();\n\t\t\t\tif (name.equals(pwd)) continue;\n\t\t\t\t\n\t\t\t\tif ( name.startsWith(pwd) ) {\n\t\t\t\t\tname = name.substring(pwd.length()+1);\n\t\t\t\t}\n\t\t\t\tZipEntry entry = new ZipEntry(name);\n\t\t\t\tzipStream.putNextEntry(entry);\n\t\t\t\tif ( file.isFile() ) {\n\t\t\t\t\tBufferedInputStream fileStream = new BufferedInputStream(new FileInputStream(file));\n\t\t\t\t\tbyte[] buffer = new byte[2048];\n\t\t\t\t\tint count = fileStream.read(buffer);\n\t\t\t\t\twhile ( count > -1 ) {\n\t\t\t\t\t\tzipStream.write(buffer, 0, count);\n\t\t\t\t\t\tcount = fileStream.read(buffer);\n\t\t\t\t\t}\n\t\t\t\t\tfileStream.close();\n\t\t\t\t}\n\t\t\t\tshell.printOut(\"File '\" + entry.getName() + \"' added.\");\n\t\t\t}\n\t\t\tzipStream.close();\n\t\t} catch (Exception e) {\n\t\t\tshell.getErrorHandler().handleError(Diagnostic.ERROR, e.getClass().getSimpleName() + \": \"+ e.getMessage());\n\t\t}\n\t}", "public void zip() {\n\t\tif (zipFile != null) {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\ttry (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {\n\t\t\t\tzos.setLevel(ZipOutputStream.STORED);\n\t\t\t\tbyte[] buffer = new byte[4096];\n\t\t\t\tFiles.list(Paths.get(tool_builddir))\n\t\t\t\t\t\t.forEach(x -> {\n\t\t\t\t\t\t\tFile f = x.toFile();\n\t\t\t\t\t\t\tif (f.isFile() && !f.getName().contains(\".\")) {\n\t\t\t\t\t\t\t\ttry (FileInputStream fis = new FileInputStream(f)) {\n\t\t\t\t\t\t\t\t\tZipEntry zipEntry = new ZipEntry(f.getName());\n\t\t\t\t\t\t\t\t\tzos.putNextEntry(zipEntry);\n\t\t\t\t\t\t\t\t\tint count;\n\t\t\t\t\t\t\t\t\twhile ((count = fis.read(buffer)) >= 0) {\n\t\t\t\t\t\t\t\t\t\tzos.write(buffer, 0, count);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tzos.closeEntry();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\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\tout.println(\"Zipped to '\" + zipFile + \"' - \" + Duration.ofMillis(System.currentTimeMillis() - start));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}", "void serializeContents(OutputStream stream, TargetType o) throws IOException {\n val writeVersion = this.versions[getWriteVersion()];\n stream.write(writeVersion.getVersion());\n stream.write(writeVersion.getRevisions().size());\n\n // Write each Revision for this Version, in turn.\n for (val r : writeVersion.getRevisions()) {\n stream.write(r.getRevision());\n try (val revisionOutput = RevisionDataOutputStream.wrap(stream)) {\n r.getWriter().accept(o, revisionOutput);\n }\n }\n }", "private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}", "OutputStream serialize(OutputStream toSerialize);", "public int serialize (IDataOutput stream ,boolean includeAdler32 ,boolean centralDir =false ,int centralDirOffset =0){\r\n\t\t\tif(stream == null) { return 0; }\r\n\t\t\tif(centralDir) {\r\n\t\t\t\t// Write central directory file header signature\r\n\t\t\t\tstream.writeUnsignedInt(FZip.SIG_CENTRAL_FILE_HEADER);\r\n\t\t\t\t// Write \"version made by\" host (usually 0) and number (always 2.0)\r\n\t\t\t\tstream.writeShort((_versionHost << 8) | 0x14);\r\n\t\t\t} else {\r\n\t\t\t\t// Write local file header signature\r\n\t\t\t\tstream.writeUnsignedInt(FZip.SIG_LOCAL_FILE_HEADER);\r\n\t\t\t}\r\n\t\t\t// Write \"version needed to extract\" host (usually 0) and number (always 2.0)\r\n\t\t\tstream.writeShort((_versionHost << 8) | 0x14);\r\n\t\t\t// Write the general purpose flag\r\n\t\t\t// - no encryption\r\n\t\t\t// - normal deflate\r\n\t\t\t// - no data descriptors\r\n\t\t\t// - no compressed patched data\r\n\t\t\t// - unicode as specified in _filenameEncoding\r\n\t\t\tstream.writeShort((_filenameEncoding == \"utf-8\") ? 0x0800 : 0);\r\n\t\t\t// Write compression method (always deflate)\r\n\t\t\tstream.writeShort(isCompressed ? COMPRESSION_DEFLATED : COMPRESSION_NONE);\r\n\t\t\t// Write date\r\n\t\t\tDate d =(_date != null) ? _date : new Date();\r\n\t\t\tint msdosTime =uint(d.getSeconds ())| (uint(d.getMinutes()) << 5) | (uint(d.getHours()) << 11);\r\n\t\t\tint msdosDate =uint(d.getDate ())| (uint(d.getMonth() + 1) << 5) | (uint(d.getFullYear() - 1980) << 9);\r\n\t\t\tstream.writeShort(msdosTime);\r\n\t\t\tstream.writeShort(msdosDate);\r\n\t\t\t// Write CRC32\r\n\t\t\tstream.writeUnsignedInt(_crc32);\r\n\t\t\t// Write compressed size\r\n\t\t\tstream.writeUnsignedInt(_sizeCompressed);\r\n\t\t\t// Write uncompressed size\r\n\t\t\tstream.writeUnsignedInt(_sizeUncompressed);\r\n\t\t\t// Prep filename\r\n\t\t\tByteArray ba =new ByteArray ();\r\n\t\t\tba.endian = Endian.LITTLE_ENDIAN;\r\n\t\t\tif (_filenameEncoding == \"utf-8\") {\r\n\t\t\t\tba.writeUTFBytes(_filename);\r\n\t\t\t} else {\r\n\t\t\t\tba.writeMultiByte(_filename, _filenameEncoding);\r\n\t\t\t}\r\n\t\t\tint filenameSize =ba.position ;\r\n\t\t\t// Prep extra fields\r\n\t\t\tfor(int i0 = 0; i0 < _extraFields .size(); i0++)\r\n\t\t\t{\r\n\t\t\t\t\theaderId = _extraFields .get(i0);\r\n\t\t\t\tif(extraBytes != null) {\r\n\t\t\t\t\tba.writeShort(uint(headerId));\r\n\t\t\t\t\tba.writeShort(uint(extraBytes.length()));\r\n\t\t\t\t\tba.writeBytes(extraBytes);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (includeAdler32) {\r\n\t\t\t\tif (!_hasAdler32) {\r\n\t\t\t\t\tboolean compressed =isCompressed ;\r\n\t\t\t\t\tif (compressed) { uncompress(); }\r\n\t\t\t\t\t_adler32 = ChecksumUtil.Adler32(_content, 0, _content.length());\r\n\t\t\t\t\t_hasAdler32 = true;\r\n\t\t\t\t\tif (compressed) { compress(); }\r\n\t\t\t\t}\r\n\t\t\t\tba.writeShort(0xdada);\r\n\t\t\t\tba.writeShort(4);\r\n\t\t\t\tba.writeUnsignedInt(_adler32);\r\n\t\t\t}\r\n\t\t\tint extrafieldsSize =ba.position -filenameSize ;\r\n\t\t\t// Prep comment (currently unused)\r\n\t\t\tif(centralDir && _comment.length > 0) {\r\n\t\t\t\tif (_filenameEncoding == \"utf-8\") {\r\n\t\t\t\t\tba.writeUTFBytes(_comment);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tba.writeMultiByte(_comment, _filenameEncoding);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint commentSize =ba.position -filenameSize -extrafieldsSize ;\r\n\t\t\t// Write filename and extra field sizes\r\n\t\t\tstream.writeShort(filenameSize);\r\n\t\t\tstream.writeShort(extrafieldsSize);\r\n\t\t\tif(centralDir) {\r\n\t\t\t\t// Write comment size\r\n\t\t\t\tstream.writeShort(commentSize);\r\n\t\t\t\t// Write disk number start (always 0)\r\n\t\t\t\tstream.writeShort(0);\r\n\t\t\t\t// Write file attributes (always 0)\r\n\t\t\t\tstream.writeShort(0);\r\n\t\t\t\tstream.writeUnsignedInt(0);\r\n\t\t\t\t// Write relative offset of local header\r\n\t\t\t\tstream.writeUnsignedInt(centralDirOffset);\r\n\t\t\t}\r\n\t\t\t// Write filename, extra field and comment\r\n\t\t\tif(filenameSize + extrafieldsSize + commentSize > 0) {\r\n\t\t\t\tstream.writeBytes(ba);\r\n\t\t\t}\r\n\t\t\t// Write file\r\n\t\t\tint fileSize =0;\r\n\t\t\tif(!centralDir && _content.length > 0) {\r\n\t\t\t\tif(isCompressed) {\r\n\t\t\t\t\tif(HAS_UNCOMPRESS || HAS_INFLATE) {\r\n\t\t\t\t\t\tfileSize = _content.length;\r\n\t\t\t\t\t\tstream.writeBytes(_content, 0, fileSize);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileSize = _content.length - 6;\r\n\t\t\t\t\t\tstream.writeBytes(_content, 2, fileSize);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfileSize = _content.length;\r\n\t\t\t\t\tstream.writeBytes(_content, 0, fileSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint size =30+filenameSize +extrafieldsSize +commentSize +fileSize ;\r\n\t\t\tif(centralDir) {\r\n\t\t\t\tsize += 16;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)allFiles.nextElement();\n\t\t\t\tInputStream is = rfoFile.getInputStream(ze);\n\t\t\t\tString fName = processSeparators(ze.getName());\n\t\t\t\tFile element = new File(tempDir + fName);\n\t\t\t\torg.reprap.Main.ftd.add(element);\n\t\t\t\tFileOutputStream os = new FileOutputStream(element);\n\t\t\t\twhile((bytesIn = is.read(buffer)) != -1) \n\t\t\t\t\tos.write(buffer, 0, bytesIn);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.unCompress(): \" + e);\n\t\t}\n\t}", "void serialize(Object obj, OutputStream stream) throws IOException;", "public static void PackageArchive(File directoryName, File fileName) throws IOException\r\n {\r\n final String ARCHIVE_XML = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?>\\n<archive major_version=\\\"0\\\" minor_version=\\\"1\\\" />\";\r\n\r\n TarArchiveWriter archive = new TarArchiveWriter(new GZIPOutputStream(new FileOutputStream(fileName)));\r\n\r\n // Create the archive.xml file\r\n archive.writeFile(\"archive.xml\", ARCHIVE_XML);\r\n\r\n // Add the assets\r\n File dir = new File(directoryName, ArchiveConstants.ASSETS_PATH);\r\n String[] files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.ASSETS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the objects\r\n dir = new File(directoryName, ArchiveConstants.OBJECTS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.OBJECTS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the terrain(s)\r\n dir = new File(directoryName, ArchiveConstants.TERRAINS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.TERRAINS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the parcels(s)\r\n dir = new File(directoryName, ArchiveConstants.LANDDATA_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.LANDDATA_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the setting(s)\r\n dir = new File(directoryName, ArchiveConstants.SETTINGS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.SETTINGS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n archive.close();\r\n }", "public static void writeMultipleBooks(JarOutputStream jarOutputStream, Collection collection, HashMap books) throws IOException\n\t{\n\t\t// Write the number of chapters and verses for each book\n\t\tfor (Enumeration e = collection.books.elements(); e.hasMoreElements(); )\n\t\t{\n\t\t\tBook collectionBook = (Book) e.nextElement();\n\t\t\t\n\t\t\t// Get the book from the XML file\n\t\t\tBook thmlBook = (Book) books.get(collectionBook.name);\n\t\t\t\n\t\t\tSystem.out.print(thmlBook.fileName + \", \");\n\t\t\t\n\t\t\t// Write out the book index\n\t\t\twriteMultipleBookIndex(jarOutputStream, collectionBook, thmlBook);\n\n\t\t\tDataOutputStream dataOutputStream = new DataOutputStream(jarOutputStream);\n\n\t\t\tint fileNumber = 0;\n\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\tfor (int chapterNumber = collectionBook.startChapter; chapterNumber <= collectionBook.endChapter; chapterNumber++)\n\t\t\t{\n\t\t\t\tChapter chapter = (Chapter) thmlBook.chapters.elementAt(chapterNumber - thmlBook.startChapter);\n\t\t\t\t\n\t\t\t\t// Write out the chapter\n\t\t\t\t\n\t\t\t\tif (COMBINED_CHAPTERS)\n\t\t\t\t{\n\t\t\t\t\t// If the file number has changed then write out the file\n\t\t\t\t\tif (chapter.fileNumber != fileNumber)\n\t\t\t\t\t{\n\t\t\t\t\t\t//byte[] byteArray = buffer.toString().getBytes(\"UTF-8\");\n\n\t\t\t\t\t\t//System.out.println(\"Writing \" + thmlBook.name + \" \" + fileNumber + \" - \" + byteArray.length + \" bytes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tjarOutputStream.putNextEntry(new JarEntry(\"Bible Data/\" + thmlBook.fileName + \"/\" + thmlBook.fileName + \" \" + fileNumber));\n\t\t\t\t\t\t//jarOutputStream.write(byteArray, 0, byteArray.length);\n\t\t\t\t\t\t//dataOutputStream.writeUTF(buffer.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Convert the StringBuffer to bytes\n\t\t\t\t\t\tbyte[] verseBytes = buffer.toString().getBytes(\"UTF-8\");\n\t\t\t\t\t\tdataOutputStream.writeInt(verseBytes.length);\n\t\t\t\t\t\tdataOutputStream.write(verseBytes, 0, verseBytes.length);\n\n\t\t\t\t\t\tfileNumber = chapter.fileNumber;\n\t\t\t\t\t\tbuffer = new StringBuffer();\n\t\t\t\t\t}\n\n\t\t\t\t\tbuffer.append(chapter.allVerses.toString());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n\t\t\t\t\tDataOutputStream output = new DataOutputStream(byteArrayOutputStream);\n\t\t\t\t\t\n\t\t\t\t\tString allVerses = chapter.allVerses.toString();\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Writing \" + thmlBook.name + \" \" + chapterNumber + \" - \" + allVerses.length() + \" bytes\");\n\t\t\t\t\t\n\t\t\t\t\toutput.writeUTF(allVerses);\n\n\t\t\t\t\toutput.close();\n\t\t\t\t\t\n\t\t\t\t\tbyte[] byteArray = byteArrayOutputStream.toByteArray();\n\t\t\t\t\t\n\t\t\t\t\tjarOutputStream.putNextEntry(new JarEntry(\"Bible Data/\" + thmlBook.fileName + \"/\" + thmlBook.fileName + \" \" + chapterNumber));\n\t\t\t\t\tjarOutputStream.write(byteArray, 0, byteArray.length);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (COMBINED_CHAPTERS)\n\t\t\t{\n\t\t\t\t// Write out the final file\n\t\t\t\t//byte[] byteArray = buffer.toString().getBytes(\"UTF-8\");\n\n\t\t\t\t//System.out.println(\"Writing \" + thmlBook.name + \" \" + fileNumber + \" - \" + byteArray.length + \" bytes\");\n\t\t\t\t\n\t\t\t\tjarOutputStream.putNextEntry(new JarEntry(\"Bible Data/\" + thmlBook.fileName + \"/\" + thmlBook.fileName + \" \" + fileNumber));\n\t\t\t\t//jarOutputStream.write(byteArray, 0, byteArray.length);\n\t\t\t\t//dataOutputStream.writeUTF(buffer.toString());\n\n\t\t\t\t// Convert the StringBuffer to bytes\n\t\t\t\tbyte[] verseBytes = buffer.toString().getBytes(\"UTF-8\");\n\t\t\t\tdataOutputStream.writeInt(verseBytes.length);\n\t\t\t\tdataOutputStream.write(verseBytes, 0, verseBytes.length);\n\t\t\t}\n\t\t}\t\n\t}", "public static OutputArchive fromOutputStream(OutputStream stream) throws IOException {\n if (stream instanceof ObjectOutput) {\n return new OutputArchive((ObjectOutput) stream);\n } else {\n return new OutputArchive(new ObjectOutputStream(stream));\n }\n }", "public abstract void serialize(OutputStream stream, T object) throws IOException;", "private void writeObject(ObjectOutputStream stream) throws IOException {\r\n\t\tstream.defaultWriteObject();\r\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(stream);\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(gzos);\r\n\t\toos.writeObject(map);\r\n\t\toos.writeObject(visibility);\r\n\t\toos.writeObject(occupied);\r\n\t\toos.writeObject(danger);\r\n\t\toos.writeObject(attacking);\r\n\t\toos.writeObject(fade);\r\n\t\toos.writeObject(cost);\r\n\t\toos.writeObject(difficulty);\r\n\t\toos.flush();\r\n\t\tgzos.finish();\r\n\t}", "@Override\r\n public void setArchive(String archive) {\n }", "public static void createArchiveFile( final Configuration conf, final Path zipFile, final List<Path> files, int pathTrimCount, boolean isJar, Manifest jarManifest) throws IOException\r\n\t{\r\n\t\t\r\n\t\tFSDataOutputStream out = null;\r\n\t\tZipOutputStream zipOut = null;\r\n\t\t/** Did we actually write an entry to the zip file */\r\n\t\tboolean wroteOne = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tout = zipFile.getFileSystem(conf).create(zipFile);\r\n\t\t\tif (files.isEmpty()) {\r\n\t\t\t\treturn;\t/** Don't try to create a zip file with no entries it will throw. just return empty file. */\r\n\t\t\t}\r\n\t\t\tif (isJar) {\r\n\t\t\t\tif (jarManifest!=null) {\r\n\t\t\t\t\tzipOut = new JarOutputStream(out,jarManifest);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tzipOut = new JarOutputStream(out);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tzipOut = new ZipOutputStream(out);\r\n\t\t\t}\r\n\t\t\tfor ( Path file : files) {\r\n\t\t\t\tFSDataInputStream in = null;\r\n\t\t\t\t/** Try to complete the file even if a file fails. */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFileSystem fileSystem = file.getFileSystem(conf);\r\n\t\t\t\t\tin = fileSystem.open(file);\r\n\t\t\t\t\tZipEntry zipEntry = new ZipEntry(pathTrim(file, pathTrimCount));\r\n\t\t\t\t\tzipOut.putNextEntry(zipEntry);\r\n\t\t\t\t\tIOUtils.copyBytes(in, zipOut, (int) Math.min(32768, fileSystem.getFileStatus(file).getLen()), false);\r\n\t\t\t\t\twroteOne = true;\r\n\t\t\t\t} catch( IOException e) {\r\n\t\t\t\t\tLOG.error( \"Unable to store \" + file + \" in zip file \" + zipFile + \", skipping\", e);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif (in!=null) {\r\n\t\t\t\t\t\ttry { in.close(); } catch( IOException ignore ) {}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally { /** Ensure everything is always closed before the function exits */\r\n\t\t\t\r\n\t\t\tif (zipOut!=null&&wroteOne) {\r\n\t\t\t\tzipOut.closeEntry();\r\n\t\t\t\tzipOut.flush();\r\n\t\t\t\tzipOut.close();\r\n\t\t\t\tout = null;\r\n\t\t\t}\r\n\t\t\tif (out!=null) {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected static void zipDir(File zipDir, ZipOutputStream zos, String archiveSourceDir)\n throws IOException {\n String[] dirList = zipDir.list();\n byte[] readBuffer = new byte[40960];\n int bytesIn;\n //loop through dirList, and zip the files\n if (dirList != null) {\n for (String aDirList : dirList) {\n File f = new File(zipDir, aDirList);\n //place the zip entry in the ZipOutputStream object\n zos.putNextEntry(new ZipEntry(getZipEntryPath(f, archiveSourceDir)));\n if (f.isDirectory()) {\n //if the File object is a directory, call this\n //function again to add its content recursively\n zipDir(f, zos, archiveSourceDir);\n //loop again\n continue;\n }\n //if we reached here, the File object f was not a directory\n //create a FileInputStream on top of f\n try (FileInputStream fis = new FileInputStream(f)) {\n //now write the content of the file to the ZipOutputStream\n while ((bytesIn = fis.read(readBuffer)) != -1) {\n zos.write(readBuffer, 0, bytesIn);\n }\n }\n }\n }\n }", "private void zipDirectoryToOutputStream(File dirToZip, OutputStream outStream)\n throws IOException {\n if (!dirToZip.isDirectory()) {\n throw new IOException(\"zip directory does not exist\");\n }\n Log.v(TAG, \"zipping directory \" + dirToZip.getAbsolutePath());\n\n File[] listFiles = dirToZip.listFiles();\n try (ZipOutputStream zipStream = new ZipOutputStream(new BufferedOutputStream(outStream))) {\n for (File file : listFiles) {\n if (file.isDirectory()) {\n continue;\n }\n String filename = file.getName();\n // only for the zipped output file, we add individual entries to zip file.\n if (filename.equals(OUTPUT_ZIP_FILE) || filename.equals(EXTRA_OUTPUT_ZIP_FILE)) {\n ZipUtils.extractZippedFileToZipStream(file, zipStream);\n } else {\n ZipUtils.addFileToZipStream(file, zipStream);\n }\n }\n } finally {\n outStream.close();\n }\n // Zipping successful, now cleanup the temp dir.\n FileUtils.deleteDirectory(dirToZip);\n }", "protected File createObjectArchive(String format, String jobId, JSONObject jobObject, String database, String collection, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tint cursor = 0;\n\t\t\tint archived = 0;\n\n\t\t\tJSONObject initialJson = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, 0, 1);\n\t\t\tint total = initialJson.getInt(\"total\");\n\t\t\twhile(cursor < total) {\n\t\t\t\tJSONObject json = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, cursor, objectBatchSize);\n\t\t\t\tJSONArray items = json.getJSONArray(\"items\");\n\n\t\t\t\tfor (int i = 0; i < items.length(); i++) {\n\t\t\t\t\t// Get the item\n\t\t\t\t\tJSONObject item = items.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = item.toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = item.getJSONObject(\"_id\").getString(\"$oid\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\n\t\t\t\t\tarchived += 1;\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: %5d / %5d\", jobId, archived, total));\n\n\t\t\t\t// update the cursor\n\t\t\t\tcursor += objectBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * cursor / total);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\t\t\t}\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}", "public OutputArchive(ObjectOutput output) {\n this.output = output;\n }", "protected void initZipOutputStream(ZipOutputStream zOut)\n throws IOException, BuildException\n {\n // add deployment descriptor first\n if (deploymentDescriptor != null) {\n zipDir(new File(deploymentDescriptor.getParent()), zOut, \n \"WEB-INF/\");\n super.zipFile(deploymentDescriptor, zOut, \"WEB-INF/web.xml\");\n } else {\n throw new BuildException(\"webxml attribute is required\", location);\n }\n\n addFiles(libFileSets, zOut, \"WEB-INF/lib/\");\n addFiles(classesFileSets, zOut, \"WEB-INF/classes/\");\n addFiles(webInfFileSets, zOut, \"WEB-INF/\");\n addPrefixedFiles(locFileSets, zOut);\n\n super.initZipOutputStream(zOut);\n }", "private void addFilesToZip(List<File> files,String outputPath) throws IOException \r\n\t{\r\n\t\t// create a zip output stream\r\n\t\tString zipFileName = outputPath + File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\tOutputStreamWithLength chunkedFile = new OutputStreamWithLength(zipFileName);\r\n\t\tzipOutputStream = new ZipOutputStream(chunkedFile);\r\n\t\tdouble totalBytesRead = 0L;\r\n\t\tint count = 10; \r\n\t\tfor(File file:files)\r\n\t\t{\r\n\t\t\t// reset the file index\r\n\t\t\tfileIndex = 0;\r\n\t\t\tString zipEntryPath = file.getAbsolutePath().substring(basePath.length() + 0);\r\n\t\t\t\r\n\t\t\tif(file.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tZipEntry entry =new ZipEntry(zipEntryPath+\"/\");\r\n\t\t\t\tzipOutputStream.putNextEntry(entry);\r\n\t\t\t\tzipOutputStream.closeEntry();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tzipEntryPath = zipEntryPath + Constants.fragmentLabel + fileIndex++;\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\t// add the current file to the zip\r\n\t\t\tZipEntry entry =new ZipEntry(zipEntryPath);\r\n\t\t\tzipOutputStream.putNextEntry(entry);\r\n\r\n\t\t\tbyte[] buffer = new byte[1024]; \t \r\n\r\n\t\t\tFileInputStream inputFileStream = new FileInputStream(file);\r\n\t\t\tint len; \r\n\t\t\twhile ((len = inputFileStream.read(buffer)) > 0) \r\n\t\t\t{ \r\n\t\t\t\tif((chunkedFile.getCurrentWriteLength() + len ) > maxSplitSize){\r\n\t\t\t\t\t// close current zip output stream\r\n\t\t\t\t\tzipOutputStream.closeEntry();\r\n\t\t\t\t\tzipOutputStream.finish();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// reset the write length\r\n\t\t\t\t\tchunkedFile.setCurrentWriteLength(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// create new zip output stream\r\n\t\t\t\t\tzipIndex += 1;\r\n\t\t\t\t\tzipFileName = outputPath+ File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\t\t\t\tchunkedFile = new OutputStreamWithLength(zipFileName);\r\n\t\t\t\t\tzipOutputStream = new ZipOutputStream(chunkedFile);\r\n\r\n\t\t\t\t\t// add the current file to write remaining bytes\r\n\t\t\t\t\tzipEntryPath = file.getAbsolutePath().substring(basePath.length() + 0);\r\n\t\t\t\t\tzipEntryPath = zipEntryPath + Constants.fragmentLabel + fileIndex++;\r\n\t\t\t\t\tentry = new ZipEntry(zipEntryPath);\r\n\t\t\t\t\tzipOutputStream.putNextEntry(entry);\r\n\r\n\t\t\t\t\t// write the bytes to the zip output stream\r\n\t\t\t\t\tzipOutputStream.write(buffer, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// write the bytes to the zip output stream\r\n\t\t\t\t\tzipOutputStream.write(buffer, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Show progress\r\n\t\t\t\ttotalBytesRead += len;\r\n\t\t\t\tdouble progress = totalBytesRead / totalBytes;\r\n\t\t\t\tif (progress*100 > 10)\r\n\t\t\t\t{\r\n\t\t\t\t\ttotalBytesRead = 0L;\r\n\t\t\t\t\tcount += 10;\r\n\t\t\t\t\tSystem.out.println(\"Finished \" + count +\"%\");\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t\tinputFileStream.close();\r\n\t\t}\r\n\r\n\t\tzipOutputStream.closeEntry();\r\n\t\tzipOutputStream.finish();\r\n\t}", "public CombineArchive (File zipFile)\n\t\tthrows IOException,\n\t\t\tJDOMException,\n\t\t\tParseException,\n\t\t\tCombineArchiveException\n\t{\n\t\tinit (zipFile, false);\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }", "private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file);\r\n\t\t\twriter.write(xmlStream);\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t\t//Commando für die Shell um ein Tgz zu erstellen.\r\n\t\t\tString[] str = new String[] {\r\n\t\t\t\t\t\"/bin/bash\",\r\n\t\t\t\t\t\"-c\",\r\n\t\t\t\t\t\"tar cfvz \" + path + \"/\" + name + \".tgz -C \" + path + \" \" + name\r\n\t\t\t\t\t\t\t+ \".xml -C \" + path + \" \" + name + \".pdf\" };\r\n\r\n\t\t\t//Shell Aufruf\r\n\t\t\tProcess p = Runtime.getRuntime().exec(str);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint timeout = 10;\r\n\t\t\twhile (!new File(path + name + \".tgz\").exists() && timeout != 0) {\r\n\t\t\t\t//warten bis Datei erstellt wurde oder 10 sec vergangen sind\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttimeout--;\r\n\t\t\t\t\tThread.sleep(1000);\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}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ZipLineStream() {\n\t\tarchType = ArchiveTypes.ZIP.name();\n\t}", "public FilesArchived(File rootDir, String zip) {\n this.root = rootDir;\n this.compression = (\"zstd\".equals(zip)) ? Compression.ZSTD : Compression.GZIP;\n rescan();\n Thread thread = new Thread(this::run);\n thread.setDaemon(true);\n thread.setName(\"FilesArchived-maintainer\");\n thread.start();\n }", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer.\n private static void serializeToLz4Data(Serializable object, OutputStream out) {\n try (Closer closer = Closer.create()) {\n OutputStream los = closer.register(new LZ4FrameOutputStream(out));\n ObjectOutputStream oos = closer.register(new ObjectOutputStream(los));\n oos.writeObject(object);\n } catch (Throwable e) {\n throw new BatfishException(\"Failed to convert object to LZ4 data\", e);\n }\n }", "void serialize(PackageState state, OutputStream out);", "public static boolean zipFiles(String folder, OutputStream os) {\n\n String look1 = folder + File.separator + SHARED_FOLDER;\n List<File> fileList = new ArrayList<File>();\n getAllFiles(new File(look1), fileList);\n\n\n /**\n * Zip to output stream (could be File or Drive)\n */\n try {\n ZipOutputStream zos = new ZipOutputStream(os);\n\n for (File file : fileList) {\n if (!file.isDirectory()) { // we only zip files, not directories\n\n // put files starting from app's top level folder\n FileInputStream fis = new FileInputStream(file);\n String filetoSave = SHARED_FOLDER + File.separator + file.getName();\n ZipEntry zipEntry = new ZipEntry(filetoSave);\n zos.putNextEntry(zipEntry);\n\n byte[] bytes = new byte[4096];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zos.write(bytes, 0, length);\n }\n\n zos.closeEntry();\n fis.close();\n }\n }\n zos.close();\n } catch (Exception e) {\n return false;\n }\n return true;\n }", "public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;", "public void setArchiver(String sArchiver);", "public synchronized void writeResources(OutputStream stream)\r\n {\r\n writeResources(stream, null);\r\n }", "@Override\n public void run() {\n txt_Nombre.setVisible(false);\n //ocultamos el boton Enviar\n btnaceptar.setVisible(false);\n //ocultamos boton Eliminar archivo\n btnEliminarArchivo.setVisible(false);\n //Ocultamos boton Seleccionar archivo\n btnselecionar.setVisible(false);\n //preparamos la salida de datos del Zip\n ZipOutputStream zout;\n //preparamos la salida de datos para el archivo\n BufferedOutputStream bos;\n try {\n //creamos el archivo y lo guardamos \n ruta=nombreZip+\".zip\";\n //creamos el flujo de salida hacia el archivo Zip\n bos = new BufferedOutputStream(new FileOutputStream(ruta));\n zout = new ZipOutputStream(bos);\n int i=0;\n //Hacemos visibles todos los componentes de las barras de progreso\n lblGeneral.setVisible(true);\n barraGeneral.setVisible(true);\n barra.setVisible(true);\n barra.setStringPainted(true);\n //ponemosd de color verde la barra\n barraGeneral.setForeground(Color.GREEN);\n //habilitamos el String del porcentaje\n barraGeneral.setStringPainted(true);\n //ponemos el valor Maximo de la barra\n barraGeneral.setMaximum((int)(pesoTotal/100));\n //ponemos el valor Minimo\n barraGeneral.setMinimum(0);\n //variable para el progreso de la barra General\n long leidoTotal=0;\n lbInfo.setHorizontalAlignment(JLabel.LEFT);\n for (String documento : documentos) {\n //creamos una nueva entrada/ducumento para el Zip\n ZipEntry ze = new ZipEntry(nombres.get(i));\n //agregamos la entrada al Zip\n zout.putNextEntry(ze);\n //obtenemos el archivo \n File arch=new File(documentos.get(i));\n //Indicamos cual archivo se esta comprimiendo\n lbInfo.setText(\"comprimiendo: \"+arch.getName());\n //obtenemos el tamaño del archivo\n long tamañoArch=arch.length();\n //ponemos el valor maximo de a la barra individual\n barra.setMaximum((int)(tamañoArch/100));\n //ponemos el valor minimo\n barra.setMinimum(0);\n //cambiamos el color de la barra\n barra.setForeground(Color.GREEN);\n barra.setValue(0);\n //creamos el Stream de entrada del archivo\n BufferedInputStream bis=new BufferedInputStream(new FileInputStream(documentos.get(i)));\n //tamaño de buffer para lectura del archivo\n byte[] info=new byte[4096];\n //variable para el progreso de la barra individual\n long leido=0;\n //Ciclo para lectura del archivo\n while(leido<tamañoArch)\n {\n //Verifica que se puedan leer otros 4KB \n if((leido+4096)<tamañoArch)\n {\n //leemos 4KB del Archivo\n bis.read(info);\n //agregamos los 4KB a las variables de progreso\n leido+=4096;\n leidoTotal+=4096;\n }\n else\n {\n //si no se puede leer 4KB lee el resto del archivo\n int resto=(int)(tamañoArch-leido);\n //damos el tamaño al arreglo\n info=new byte[resto];\n //leemos el resto del archivo\n bis.read(info);\n //agregamos el resto del a las variables de progreso\n leido+=resto;\n leidoTotal+=resto;\n }\n //escribimos en el archivo Zip\n zout.write(info);\n //ponemos el valor en la barra individual\n barra.setValue((int)(leido/100));\n //ponemos el valor en la barra general\n barraGeneral.setValue((int)(leidoTotal/100));\n }\n //cerramos la escritura a la entradadel Zip\n zout.closeEntry();\n //aumentamos el valor del contador\n i++;\n }\n //cerramos la escritura al archivo Zip\n zout.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(EnviarArchivo.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(EnviarArchivo.class.getName()).log(Level.SEVERE, null, ex);\n } \n //verificamos que tipo de envio se selecciono\n if(rbtnSimultaneo.isSelected())\n {\n //orden para archivos simultaneos y envios individuales\n orden.enviarArchivoSimultaneo(ruta,ip);\n }\n else\n {\n //orden para envio Secuencial\n orden.envioArchivoSecuencial(ruta);\n }\n //llamamos el metodo cerrar para cerrar la ventana\n cerrar();\n }", "private static void createZipOrXmlFile(Document createdDocument) {\n if(attachmentList.size() > 0){\n File zipFile = new File(OUTPUT_ZIP_PATH);\n ZipOutputStream zipOutputStream = null;\n String fileName;\n byte[] decoded;\n\n try {\n zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for (Attachment attachment : attachmentList) {\n try {\n //create a new zip entry\n //add the zip entry and write the decoded data\n assert zipOutputStream != null;\n fileName = attachment.filename;\n decoded = attachment.data;\n ZipEntry imageOutputStream = new ZipEntry(ImportUtils.PHOTO_FILE_PATH + fileName);\n zipOutputStream.putNextEntry(imageOutputStream);\n zipOutputStream.write(decoded);\n\n } catch (IllegalArgumentException | IOException e) {\n e.printStackTrace();\n }\n }\n //add the xml after the attachments have been added\n ZipEntry xmlOutputStream = new ZipEntry(ImportUtils.GENERATED_XML_FILENAME);\n try {\n zipOutputStream.putNextEntry(xmlOutputStream);\n zipOutputStream.write(Entry.toBytes(createdDocument));\n //closing the stream\n //! not closing the stream can result in malformed zip files\n zipOutputStream.finish();\n zipOutputStream.flush();\n zipOutputStream.closeEntry();\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }else{\n //if no attachments found\n // add the xml file only\n OutputFormat format = OutputFormat.createPrettyPrint();\n try {\n OutputStream outputStream = new FileOutputStream(OUTPUT_XML_PATH);\n XMLWriter writer = new XMLWriter(outputStream, format);\n writer.write(createdDocument);\n } catch (IOException e ) {\n e.printStackTrace();\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n public void deserialize(final InputStream stream,\r\n final Collection<? extends String> exclude) throws IOException {\r\n Map<String, byte[]> entries = new HashMap<String, byte[]>();\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n\r\n byte[] buffer = new byte[BUFFER_SIZE];\r\n\r\n for (int read; (read = stream.read(buffer)) >= 0;) {\r\n bytes.write(buffer, 0, read);\r\n }\r\n\r\n ZipInputStream zip = new ZipInputStream(new ByteArrayInputStream(\r\n bytes.toByteArray()));\r\n ArchiveContents contents = null;\r\n WorkspaceComponentDeserializer componentDeserializer = new WorkspaceComponentDeserializer();\r\n\r\n ZipEntry entry = zip.getNextEntry();\r\n\r\n for (ZipEntry next; entry != null; entry = next) {\r\n next = zip.getNextEntry();\r\n entries.put(entry.getName(), new byte[(int) entry.getSize()]);\r\n }\r\n\r\n zip = new ZipInputStream(new ByteArrayInputStream(bytes.toByteArray()));\r\n\r\n while ((entry = zip.getNextEntry()) != null) {\r\n byte[] data = entries.get(entry.getName());\r\n read(zip, data);\r\n }\r\n\r\n // Get the archived contents file.\r\n contents = (ArchiveContents) ArchiveContents.xstream().fromXML(\r\n new ByteArrayInputStream(entries.get(\"contents.xml\")));\r\n\r\n // Add Components\r\n if (contents.getArchivedComponents() != null) {\r\n for (ArchiveContents.ArchivedComponent archivedComponent : contents\r\n .getArchivedComponents()) {\r\n if (exclude.contains(archivedComponent.getUri())) {\r\n continue;\r\n }\r\n\r\n WorkspaceComponent wc = componentDeserializer\r\n .deserializeWorkspaceComponent(\r\n archivedComponent,\r\n new ByteArrayInputStream(entries\r\n .get(archivedComponent.getUri())));\r\n\r\n // This will cause a desktop component (GuiComponent) to be\r\n // created\r\n workspace.addWorkspaceComponent(wc);\r\n\r\n if (archivedComponent.getDesktopComponent() != null) {\r\n Rectangle bounds = (Rectangle) new XStream(new DomDriver())\r\n .fromXML(new ByteArrayInputStream(entries\r\n .get(archivedComponent\r\n .getDesktopComponent().getUri())));\r\n GuiComponent<?> desktopComponent = desktop\r\n .getDesktopComponent(wc);\r\n desktopComponent.getParentFrame().setBounds(bounds);\r\n }\r\n }\r\n }\r\n\r\n // Add Couplings\r\n if (contents.getArchivedCouplings() != null) {\r\n for (ArchiveContents.ArchivedCoupling couplingRef : contents\r\n .getArchivedCouplings()) {\r\n if (exclude.contains(couplingRef.getArchivedProducer()\r\n .getParentRef())\r\n || exclude.contains(couplingRef.getArchivedProducer()\r\n .getParentRef())) {\r\n continue;\r\n }\r\n\r\n // Get workspace components from references\r\n WorkspaceComponent sourceComponent = componentDeserializer\r\n .getComponent(couplingRef.getArchivedProducer()\r\n .getParentRef());\r\n WorkspaceComponent targetComponent = componentDeserializer\r\n .getComponent(couplingRef.getArchivedConsumer()\r\n .getParentRef());\r\n\r\n // Get attributes from references\r\n Producer<?> producer = sourceComponent\r\n .getAttributeManager()\r\n .createProducer(\r\n sourceComponent.getObjectFromKey(couplingRef\r\n .getArchivedProducer()\r\n .getBaseObjectKey()),\r\n couplingRef.getArchivedProducer()\r\n .getMethodBaseName(),\r\n couplingRef.getArchivedProducer().getDataType(),\r\n couplingRef.getArchivedProducer()\r\n .getArgumentDataTypes(),\r\n couplingRef.getArchivedProducer()\r\n .getArgumentValues(),\r\n couplingRef.getArchivedProducer()\r\n .getDescription());\r\n\r\n Class[] argDataTypes = couplingRef.getArchivedConsumer()\r\n .getArgumentDataTypes();\r\n Consumer<?> consumer = targetComponent.getAttributeManager()\r\n .createConsumer(\r\n targetComponent.getObjectFromKey(couplingRef\r\n .getArchivedConsumer()\r\n .getBaseObjectKey()),\r\n couplingRef.getArchivedConsumer()\r\n .getMethodBaseName(),\r\n argDataTypes,\r\n couplingRef.getArchivedConsumer()\r\n .getArgumentValues(),\r\n couplingRef.getArchivedConsumer()\r\n .getDescription());\r\n workspace.addCoupling(new Coupling(producer, consumer));\r\n\r\n }\r\n }\r\n\r\n // Add update actions\r\n workspace.getUpdater().getUpdateManager().clear();\r\n if (contents.getArchivedActions() != null) {\r\n for (ArchiveContents.ArchivedUpdateAction actionRef : contents\r\n .getArchivedActions()) {\r\n workspace\r\n .getUpdater()\r\n .getUpdateManager()\r\n .addAction(\r\n contents.createUpdateAction(workspace,\r\n componentDeserializer, actionRef));\r\n }\r\n }\r\n\r\n // Deserialize workspace parameters (serialization occurs in\r\n // ArchiveContents.java).\r\n if (contents.getWorkspaceParameters() != null) {\r\n workspace.setUpdateDelay(contents.getWorkspaceParameters()\r\n .getUpdateDelay());\r\n workspace.getUpdater().setTime(\r\n contents.getWorkspaceParameters().getSavedTime());\r\n }\r\n }", "public void Serializar(){\n try {\n FileOutputStream archivo = new FileOutputStream(\"SerializacionEdificios\");\n ObjectOutputStream salida = new ObjectOutputStream(archivo);\n salida.writeObject(edificios);\n archivo = new FileOutputStream(\"SerializacionEstudiantes\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(estudiantes);\n archivo = new FileOutputStream(\"SerializacionProfesores\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(profesores);\n archivo = new FileOutputStream(\"SerializacionAdministradores\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(administradores);\n salida.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected File createIndexingArchive(String format, String jobId, JSONObject jobObject, String indexType, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tJSONObject json = IndexingHelper.getInstance(authorizationHeader).search(indexType, query, true, 0, indexingBatchSize, indexingScroll);\n\t\t\tint totalHits = json.getJSONObject(\"hits\").getInt(\"total\");\n\t\t\tString scrollId = json.getString(\"_scroll_id\");\n\t\t\tlogger.debug(String.format(\" [%s] Number of hits: %d\", jobId, totalHits));\n\t\t\tlogger.debug(String.format(\" [%s] Scroll ID: %s\", jobId, scrollId));\n\t\t\tint currentStartIndex = 0;\n\t\t\twhile (currentStartIndex < totalHits) {\n\t\t\t\tJSONArray hits = json.getJSONObject(\"hits\").getJSONArray(\"hits\");\n\n\t\t\t\tfor (int i = 0; i < hits.length(); i++) {\n\t\t\t\t\t// Get the hit\n\t\t\t\t\tJSONObject hit = hits.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = hit.getJSONObject(\"_source\").toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = hit.getString(\"_id\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: [ %5d ~ %5d ] / %5d\", jobId, currentStartIndex, currentStartIndex + indexingBatchSize - 1, totalHits));\n\n\t\t\t\t// Update the start index\n\t\t\t\tcurrentStartIndex += indexingBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * currentStartIndex / totalHits);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\n\t\t\t\tif (currentStartIndex < totalHits)\n\t\t\t\t\tjson = IndexingHelper.getInstance(authorizationHeader).scroll(indexType, indexingScroll, scrollId, true);\n\t\t\t}\n\n\t\t\t// Delete the scroll\n\t\t\tlogger.debug(String.format(\" [%s] Deleting Scroll ID\", jobId));\n\t\t\tIndexingHelper.getInstance(authorizationHeader).deleteScrollIndex(scrollId);\n\t\t\tlogger.debug(String.format(\" [%s] ... Completed\", jobId));\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}", "private void appendVertices(ZipOutputStream out) throws IOException\n\t{\n\t\tfor (Vertex vertex : exportVertices)\n\t\t{\n\t\t\tfloat x = (vertex.x + x_offset) * file_scale;\n\t\t\tfloat y = (vertex.y + y_offset) * file_scale;\n\t\t\tfloat z = (vertex.z + z_offset) * file_scale;\n\t\t\tBigDecimal xRound = new BigDecimal(x).setScale(3, RoundingMode.HALF_UP);\n\t\t\tBigDecimal yRound = new BigDecimal(y).setScale(3, RoundingMode.HALF_UP);\n\t\t\tBigDecimal zRound = new BigDecimal(z).setScale(3, RoundingMode.HALF_UP);\n\t\t\tout.write((\"v \" + xRound.toPlainString() + \" \" + yRound.toPlainString() + \" \" + zRound.toPlainString() + \"\\n\").getBytes(\"UTF-8\"));\n\t\t}\n\t}", "public SerializedObject(Object toStore, boolean compress) throws Exception {\n\n\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\n\t\tOutputStream os = ostream;\n\t\tObjectOutputStream p;\n\t\tif (!compress) {\n\t\t\tp = new ObjectOutputStream(new BufferedOutputStream(os));\n\t\t} else {\n\t\t\tp = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(os)));\n\t\t}\n\t\tp.writeObject(toStore);\n\t\tp.flush();\n\t\tp.close(); // used to be ostream.close() !\n\t\tmStoredObjectArray = ostream.toByteArray();\n\n\t\tmIsCompressed = compress;\n\t}", "void makeZip(String zipFilePath, String srcFilePaths[], ZipMainFrame f) {\n ...\n for (int i = 0; i < srcFilePaths.length; i++) {\n f.setStatusBarText(\"Zipping \"+srcFilePaths[i]);\n //add the file srcFilePaths[i] into the zip file.\n ...\n }\n }", "private void mergeZipJarContents( ZipOutputStream output, File f ) throws IOException {\n //Check to see that the file with name \"name\" exists.\n if ( ! f .exists() ) {\n return ;\n }\n ZipFile zipf = new ZipFile( f );\n Enumeration entries = zipf.entries();\n while (entries.hasMoreElements()){\n ZipEntry inputEntry = (ZipEntry) entries.nextElement();\n //Ignore manifest entries. They're bound to cause conflicts between\n //files that are being merged. User should supply their own\n //manifest file when doing the merge.\n String inputEntryName = inputEntry.getName();\n int index = inputEntryName.indexOf(\"META-INF\");\n if (index < 0){\n //META-INF not found in the name of the entry. Go ahead and process it.\n try {\n output.putNextEntry(processEntry(zipf, inputEntry));\n } catch (ZipException ex){\n //If we get here, it could be because we are trying to put a\n //directory entry that already exists.\n //For example, we're trying to write \"com\", but a previous\n //entry from another mergefile was called \"com\".\n //In that case, just ignore the error and go on to the\n //next entry.\n String mess = ex.getMessage();\n if (mess.indexOf(\"duplicate\") >= 0){\n //It was the duplicate entry.\n continue;\n } else {\n //I hate to admit it, but we don't know what happened here. Throw the Exception.\n throw ex;\n }\n }\n InputStream in = zipf.getInputStream(inputEntry);\n int len = buffer.length;\n int count = -1;\n while ((count = in.read(buffer, 0, len)) > 0){\n output.write(buffer, 0, count);\n }\n in.close();\n output.closeEntry();\n }\n }\n zipf .close();\n }", "public interface IZipStrategy {\n\n void zip();\n}", "public abstract <T> SerializationStream writeObject(T t);", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static void serializeObject(Serializable object, Path outputFile) {\n try {\n try (Closer closer = Closer.create()) {\n OutputStream out = closer.register(Files.newOutputStream(outputFile));\n BufferedOutputStream bout = closer.register(new BufferedOutputStream(out));\n serializeToLz4Data(object, bout);\n }\n } catch (Exception e) {\n throw new BatfishException(\"Failed to serialize object to output file: \" + outputFile, e);\n }\n }", "private static void zipFolder(ZipOutputStream out, File folder) throws IOException {\n\n final int BUFFER = 2048;\n\n File[] fileList = folder.listFiles();\n BufferedInputStream origin;\n\n for (File file : fileList) {\n if (file.isDirectory()) {\n zipFolder(out, file);\n } else {\n byte data[] = new byte[BUFFER];\n\n String unmodifiedFilePath = file.getPath();\n FileInputStream fi = new FileInputStream(unmodifiedFilePath);\n\n origin = new BufferedInputStream(fi, BUFFER);\n ZipEntry entry = new ZipEntry(file.getName());\n\n out.putNextEntry(entry);\n\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n\n out.closeEntry();\n origin.close();\n }\n }\n\n // Finish the zip stream and close it\n out.finish();\n out.close();\n }", "public void DesSerializar() throws FileNotFoundException {\n try {\n FileInputStream archivo = new FileInputStream(\"SerializacionEdificios\");\n ObjectInputStream entrada = new ObjectInputStream(archivo);\n ArrayList<Edificio> edificiosDes = (ArrayList<Edificio>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionEstudiantes\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Estudiante> estudiantesDes = (ArrayList<Estudiante>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionProfesores\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Profesor> profesoresDes = (ArrayList<Profesor>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionAdministradores\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Administrador> administradoresDes = (ArrayList<Administrador>) entrada.readObject();\n edificios = edificiosDes;\n estudiantes = estudiantesDes;\n profesores = profesoresDes;\n administradores = administradoresDes;\n entrada.close();\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch (ClassNotFoundException e){\n e.printStackTrace();\n }\n\n\n }", "private static void processZip(File zip_name, final Histogram class_use, final Histogram method_use) {\n ZipFile zip_file;\n try {\n zip_file = new ZipFile(zip_name);\n } catch (Exception e) {\n throw new IllegalStateException(\"while reading archive '\"+zip_name+\"': \"+e);\n }\n final Enumeration< ? extends ZipEntry> en = zip_file.entries();\n while (en.hasMoreElements()) {\n final ZipEntry e = en.nextElement();\n final String e_name = e.getName();\n if (e.isDirectory()) continue;\n if (e_name.endsWith(\".class\")){\n try {\n final InputStream object_stream=zip_file.getInputStream(e);\n MethodCallEnumerator.analyzeClass(object_stream,class_use,method_use);\n object_stream.close();\n } catch (Exception ex) {\n throw new IllegalStateException(\"while processing: \"+ ex);\n }\n } \n }\n try {\n zip_file.close();\n } catch (Exception e) {\n throw new IllegalStateException(\"while reading archive: \" + e);\n }\n }", "private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }", "@Test\r\n\tpublic void testCompressing() throws ClassNotFoundException,\r\n\t\t\tInstantiationException, IllegalAccessException {\n\r\n\t\tAbstractStream abstractStream = Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.FileStream\");\r\n\t\tCompressingStream stream = (CompressingStream) Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.CompressingStream\");\r\n\t\tstream.setAbstractStream(abstractStream);\r\n\t\tString str = stream.handleBufferFull();\r\n\r\n\t\tbyte[] b = new byte[10];\r\n\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\tb[i] = (byte) i;\r\n\t\tstream.putByte(b);\r\n\t\tSystem.out.println(str);\r\n\t\tassertEquals(\"Compressing Stream. File Stream. \", str);\r\n\t}", "ObjectOutputStream newObjectOutputStream(OutputStream out) throws Exception;", "@Override\n\tpublic void flatten( DataOutputStream stream ) throws IOException\n\t{\n\t\tsuper.flatten( stream );\n\t}", "private static void extractFile(ZipInputStream inStreamZip, FSDataOutputStream destDirectory) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(destDirectory);\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = inStreamZip.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "private static void deploy(SQLiteDatabase sqlLiteDb, InputStream dbStream) throws IOException {\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(dbStream));\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n Log.i(TAG, \"deploying zip entry: \" + entry);\n InputStreamReader dbReader = new InputStreamReader(zis);\n deploy(sqlLiteDb, dbReader);\n }\n }", "public void done(IProgressMonitor monitor) throws JarException\n\t{\n\t\tInputStream jarIFileStream = null;\n\t\ttry\n\t\t{\n\t\t\tZipEntry e = new ZipEntry(JarFile.MANIFEST_NAME);\n\t\t\tjarStream.putNextEntry(e);\n\t\t\tmanifest.write(jarStream);\n\t\t\tjarStream.closeEntry();\n\t\t\tjarStream.flush();\n\t\t\tjarStream.close();\n\n\t\t\tif (jarIFile != null)\n\t\t\t{\n\t\t\t\tjarIFileStream = new ByteArrayInputStream(outByteStream.toByteArray());\n\t\t\t\tif (jarIFile.exists())\n\t\t\t\t{\n\t\t\t\t\tjarIFile.setContents(jarIFileStream, IResource.FORCE, monitor);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tjarIFile.create(jarIFileStream, true, monitor);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow (JarException) new JarException().initCause(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (outByteStream != null)\n\t\t\t\t{\n\t\t\t\t\toutByteStream.close();\n\t\t\t\t}\n\n\t\t\t\tif (jarIFileStream != null)\n\t\t\t\t{\n\t\t\t\t\tjarIFileStream.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\tthrow (JarException) new JarException().initCause(e);\n\n\t\t\t}\n\t\t}\n\t}", "public void writeObject(ZObjectOutputStream out) throws IOException {\n }", "Map<String, InputStream> extract(TypedValue<InputStream> archive) throws DecompressionException;", "public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }", "void writeBody(ObjectOutputStream stream) throws IOException {\n stream.writeObject(body);\n }", "private void writeObject(java.io.ObjectOutputStream s)\r\n throws java.io.IOException {\r\n // Write out any hidden serialization magic\r\n s.defaultWriteObject();\r\n\r\n // Write out size\r\n s.writeInt(size);\r\n\r\n // Write out all elements in the proper order.\r\n for (Entry e = header.next; e != header; e = e.next)\r\n s.writeObject(e.element);\r\n }", "@Override\n public byte[] compress(byte[] bytes) throws IOException\n {\n try (BinaryIO io = new BinaryIO())\n {\n io.write32Bits(LZW_TAG);\n\n LZWDictionary dict = new LZWDictionary();\n int bitsize = 9, index = -1, newIndex;\n\n for (byte b : bytes)\n {\n newIndex = dict.get(index, b);\n\n if (newIndex > 0)\n index = newIndex;\n else\n {\n io.writeBits(index, bitsize);\n bitsize = dict.put(index, b);\n index = dict.get(-1, b);\n }\n if (dict.isFull())\n dict.reset();\n }\n io\n .writeBits(index, bitsize)\n .write32Bits(0); // EoF marker\n\n return io.getBytesOut();\n }\n }", "private void addToOutputStream(ZipOutputStream output, InputStream input, ZipEntry ze) throws IOException{\n try {\n output.putNextEntry(ze); \n } catch (ZipException zipEx) {\n //This entry already exists. So, go with the first one.\n input.close();\n return;\n }\n int numBytes = -1;\n while((numBytes = input.read(buffer)) > 0){\n output.write(buffer, 0, numBytes);\n }\n output.closeEntry();\n input.close();\n }", "public void zipFiles() {\r\n byte[] buffer = new byte[1024];\r\n try {\r\n\r\n // On rare occasions, there will be a semi colon in the title name,\r\n // ruining everything while zipping the file.\r\n if (title.contains(\":\") || title.contains(\".\")) {\r\n String temp = \"\";\r\n for (int i = 0; i < title.length(); i++) {\r\n \r\n if (title.charAt(i) == ':' || title.charAt(i) == '.') {\r\n \r\n } else {\r\n temp += title.charAt(i);\r\n }\r\n }\r\n title = temp;\r\n }\r\n System.out.println(\"File name: \" + title);\r\n \r\n FileOutputStream fos = new FileOutputStream(savePath + \"\\\\\" + title + \".zip\");\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n \r\n for (String fileName : fileNames) {\r\n \r\n System.out.println(\"zipping file: \" + fileName);\r\n \r\n fileName = savePath + \"\\\\\" + fileName;\r\n File srcFile = new File(fileName);\r\n FileInputStream fis;\r\n if (srcFile.exists()) {\r\n fis = new FileInputStream(srcFile);\r\n \r\n zos.putNextEntry(new ZipEntry(srcFile.getName()));\r\n int length;\r\n while ((length = fis.read(buffer)) > 0) {\r\n zos.write(buffer, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n \r\n boolean success = (new File(fileName)).delete();\r\n }\r\n }\r\n zos.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"File not found!\");\r\n } catch (IOException ex) {\r\n }\r\n }", "void makeZip(String zipFilePath, String srcFilePaths[],\n\t\t\tMessageDisplay msgDisplay) {\n\t\t...\n\t\tfor (int i = 0; i < srcFilePaths.length; i++) {\n\t\t\tmsgDisplay.showMessage(\"Zipping \"+srcFilePaths[i]);\n\t\t\t//add the file srcFilePaths[i] into the zip file.\n\t\t\t...\n\t\t}\n\t}", "private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:503 */ _stream.defaultWriteObject();\n/* 431:504 */ writeCustomData(_stream);\n/* 432: */ }", "public static void writeMultipleBookIndex(/*File directory,*/ JarOutputStream jarOutputStream, Book collectionBook, Book xmlBook) throws IOException\n\t{\n\t\t// Create index file\n\t\t//DataOutputStream output = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(new File(directory, \"Index\"))));\n\t\t\n\t\tByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n\t\tDataOutputStream output = new DataOutputStream(byteArrayOutputStream);\n\t\t\n\t\t// Write the verse sizes for every chapter\n\t\tfor (int chapterNumber = collectionBook.startChapter; chapterNumber <= collectionBook.endChapter; chapterNumber++)\n\t\t{\n\t\t\tChapter chapter = (Chapter) xmlBook.chapters.elementAt(chapterNumber - xmlBook.startChapter);\n\t\t\t\n\t\t\tfor (Enumeration e = chapter.verses.elements(); e.hasMoreElements(); )\n\t\t\t{\n\t\t\t\tString verse = (String) e.nextElement();\n\t\t\t\toutput.writeShort(verse.length());\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\toutput.close();\t\t\n\t\t\n\t\tbyte[] byteArray = byteArrayOutputStream.toByteArray();\n\t\t\n\t\tjarOutputStream.putNextEntry(new JarEntry(\"Bible Data/\" + xmlBook.fileName + \"/Index\"));\n\t\t\n\t\tjarOutputStream.write(byteArray, 0, byteArray.length);\n\t}", "public static void serialize(CAS aCAS, OutputStream aStream) throws SAXException {\n serialize(aCAS, null, aStream, false, null);\n }", "public void testChangeZIPArchive1() throws Exception {\n String externalLib = Util.getOutputDirectory() + File.separator + \"externalLib.abc\";\n IPath projectPath = env.addProject(\"Project\");\n try {\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \" public void foo() {\\n\" + \" }\\n\" + \"}\" }, externalLib, \"1.4\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n env.addExternalJars(projectPath, new String[] { externalLib });\n //$NON-NLS-1$\n IPath root = env.getPackageFragmentRootPath(projectPath, \"\");\n env.setOutputFolder(projectPath, \"\");\n IPath classY = env.addClass(root, \"q\", \"Y\", \"package q;\\n\" + \"public class Y {\\n\" + \" void bar(p.X x) {\\n\" + \" x.foo();\\n\" + \" }\\n\" + \"}\");\n fullBuild(projectPath);\n expectingNoProblems();\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \"}\" }, externalLib, \"1.4\");\n IJavaProject p = env.getJavaProject(projectPath);\n p.getJavaModel().refreshExternalArchives(new IJavaElement[] { p }, null);\n incrementalBuild(projectPath);\n expectingProblemsFor(classY, \"Problem : The method foo() is undefined for the type X [ resource : </Project/q/Y.java> range : <54,57> category : <50> severity : <2>]\");\n } finally {\n new File(externalLib).delete();\n env.removeProject(projectPath);\n }\n }", "private void scanJarArchive() throws AnalyzerException {\n\t\tJarFile jarFile;\n\t\ttry {\n\t\t\tjarFile = new JarFile(archive);\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new AnalyzerException(\"Cannot build jar file on archive '\"\n\t\t\t\t\t+ archive + \"'.\", ioe);\n\t\t}\n\t\tEnumeration<? extends ZipEntry> en = jarFile.entries();\n\t\twhile (en.hasMoreElements()) {\n\t\t\tZipEntry e = en.nextElement();\n\t\t\tString name = e.getName();\n\t\t\t// iterate through the jar file\n\t\t\tif (name.toLowerCase().endsWith(\".class\")) {\n\t\t\t\ttry {\n\t\t\t\t\tnew ClassReader(jarFile.getInputStream(e)).accept(\n\t\t\t\t\t\t\tscanVisitor, ClassReader.SKIP_CODE);\n\t\t\t\t} catch (Exception ioe) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Error while analyzing file entry '\" + name\n\t\t\t\t\t\t\t\t\t+ \"' in jar file '\" + archive + \"'\", ioe);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tjarFile.close();\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.warn(\"Error while trying to close the file '\" + jarFile\n\t\t\t\t\t+ \"'\", ioe);\n\t\t}\n\n\t}", "private void appendFaces(ZipOutputStream out) throws IOException\n\t{\n\t\tCollections.sort(exportFaces);\n\t\tString last_mtl=null;\n\t\tLong last_obj_idx=Long.valueOf(-1);\n\t\tnbTrianglesCount += (2 * exportFaces.size());\n\t\tfor(FaceUtils.OBJFace f:exportFaces)\n\t\t{\n\t\t\tif(!f.mtl.equals(last_mtl))\n\t\t\t{\n\t\t\t\tout.write((\"\\nusemtl \"+f.mtl + \"\\n\").getBytes(\"UTF-8\"));\n\t\t\t\tlast_mtl=f.mtl;\n\t\t\t}\n\n\t\t\tif(!f.obj_idx.equals(last_obj_idx))\n\t\t\t{\n\t\t\t\tout.write((\"g o\"+f.obj_idx + '\\n').getBytes(\"UTF-8\"));\n\t\t\t\tlast_obj_idx=f.obj_idx;\n\t\t\t}\n\n\t\t\tout.write(\"f\".getBytes());\n\t\t\tfor (int i = 0; i < f.vertices.length; i++)\n\t\t\t{\n\n\t\t\t\tif (f.normals != null && f.uv != null)\n\t\t\t\t\tout.write((\" \" + f.vertices[i] + \"/\" + f.uv[i] + \"/\" + f.normals[i]).getBytes(\"UTF-8\"));\n\t\t\t\t\t//out.format((Locale)null, \" %d/%d/%d\", f.vertices[i], f.uv[i], f.normals[i]);\n\t\t\t\telse if (f.normals == null && f.uv != null)\n\t\t\t\t\tout.write((\" \" + f.vertices[i] + \"/\" + f.uv[i]).getBytes(\"UTF-8\"));\n\t\t\t\t\t//out.format((Locale)null, \" %d/%d\", f.vertices[i], f.uv[i]);\n\t\t\t\telse if (f.normals != null && f.uv == null)\n\t\t\t\t\tout.write((\" \" + f.vertices[i] + \"//\" + f.normals[i]).getBytes(\"UTF-8\"));\n\t\t\t\t\t//out.format((Locale)null, \" %d//%d\", f.vertices[i], f.normals[i]);\n\t\t\t\telse\n\t\t\t\t\tout.write((\" \" + f.vertices[i]).getBytes(\"UTF-8\"));\n\t\t\t\t//out.format((Locale)null, \" %d\", f.vertices[i]);\n\t\t\t}\n\t\t\tout.write((\"\\n\".getBytes(\"UTF-8\")));\n\t\t}\n\t}", "@attribute(value = \"\", required = false)\t\r\n\tpublic void setArchive(String archive) {\r\n\t\tthis.archive = archive;\r\n\t}", "@Test\n public void testDERIVATIVE_COMPRESS_CRC() throws IOException {\n// ZipMeVariables.getSINGLETON().setCRC___(true);\n// ZipMeVariables.getSINGLETON().setCOMPRESS___(true);\n// ZipMeVariables.getSINGLETON().setDERIVATIVE_COMPRESS_CRC___(true);\n\t Configuration.CRC=true;\n\t Configuration.COMPRESS=true;\n\t Configuration.DERIVATIVE_COMPRESS_CRC=true;\n if(Configuration.CRC && Configuration.COMPRESS && Configuration.DERIVATIVE_COMPRESS_CRC) { \n ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/src.zip\")));\n zout.crc.update(1);\n ZipEntry ze = new ZipEntry(\"C://\");\n zout.putNextEntry(ze);\n zout.hook41();\n assertTrue(zout.crc.crc == 0);\n\n zout.write(new byte[32], 0, 31);\n assertTrue(zout.size == 31);\n zout.closeEntry();\n assertTrue(ze.getCrc() == zout.crc.crc);\n }\n }", "private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}", "private void writeObject(ObjectOutputStream stream) throws IOException {\n/* 188 */ stream.defaultWriteObject();\n/* 189 */ stream.writeInt(this.store.size());\n/* 190 */ Set keys = this.store.keySet();\n/* 191 */ Iterator iterator = keys.iterator();\n/* 192 */ while (iterator.hasNext()) {\n/* 193 */ Comparable key = (Comparable)iterator.next();\n/* 194 */ stream.writeObject(key);\n/* 195 */ Stroke stroke = getStroke(key);\n/* 196 */ SerialUtilities.writeStroke(stroke, stream);\n/* */ } \n/* */ }", "void setArchiveInfo(ArchiveInfoInterface archInfo);", "public boolean printInvoicesAndEnvelopesZip(ActionMapping mapping, InvoiceReportDeliveryForm form, Collection<ContractsGrantsInvoiceDocument> list, ByteArrayOutputStream baos) throws Exception {\r\n if (CollectionUtils.isNotEmpty(list)) {\r\n ContractsGrantsInvoiceReportService reportService = SpringContext.getBean(ContractsGrantsInvoiceReportService.class);\r\n byte[] envelopes = reportService.generateListOfInvoicesEnvelopesPdfToPrint(list);\r\n byte[] report = reportService.generateListOfInvoicesPdfToPrint(list);\r\n\r\n ZipOutputStream zos = new ZipOutputStream(baos);\r\n int bytesRead;\r\n byte[] buffer = new byte[1024];\r\n CRC32 crc = new CRC32();\r\n\r\n if (ObjectUtils.isNotNull(report)) {\r\n BufferedInputStream bis = new BufferedInputStream(new ByteArrayInputStream(report));\r\n crc.reset();\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n crc.update(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n // Reset to beginning of input stream\r\n bis = new BufferedInputStream(new ByteArrayInputStream(report));\r\n ZipEntry entry = new ZipEntry(\"Invoices-\" + FILE_NAME_TIMESTAMP.format(new Date()) + \".pdf\");\r\n entry.setMethod(ZipEntry.STORED);\r\n entry.setCompressedSize(report.length);\r\n entry.setSize(report.length);\r\n entry.setCrc(crc.getValue());\r\n zos.putNextEntry(entry);\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n zos.write(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n }\r\n\r\n if (ObjectUtils.isNotNull(envelopes)) {\r\n BufferedInputStream bis = new BufferedInputStream(new ByteArrayInputStream(envelopes));\r\n crc.reset();\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n crc.update(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n // Reset to beginning of input stream\r\n bis = new BufferedInputStream(new ByteArrayInputStream(envelopes));\r\n ZipEntry entry = new ZipEntry(\"InvoiceEnvelopes-\" + FILE_NAME_TIMESTAMP.format(new Date()) + \".pdf\");\r\n entry.setMethod(ZipEntry.STORED);\r\n entry.setCompressedSize(envelopes.length);\r\n entry.setSize(envelopes.length);\r\n entry.setCrc(crc.getValue());\r\n zos.putNextEntry(entry);\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n zos.write(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n }\r\n zos.close();\r\n return true;\r\n }\r\n return false;\r\n }", "public void marshal(uka.transport.MarshalStream _stream)\n throws java.io.IOException\n {\n _stream.reserve(_SIZE);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n marshalPrimitives(_buffer, _pos);\n _stream.deliver(_SIZE);\n marshalReferences(_stream);\n }", "public void archiver(int numProfil) {\n\t\tcontrolArchiver.archiver(numProfil);\n\t}", "@Override\n\tpublic void serialize(DataOutputStream stream) throws IOException {\n\t\tsuper.serialize(stream);\n\t\tstream.writeInt(getState());\n\t}", "@Override\n public OutputStream openOutputStream() throws IOException {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n return new FilterOutputStream(baos){\n @Override\n public void close() throws IOException {\n writeManifestJarEntry(readManifest(baos));\n }\n };\n }", "@Override\r\n public void pack() {\r\n super.pack();\r\n JkFileTree.of(this.classDir()).exclude(\"**/*.jar\").zip().to(packer().jarFile(\"lean\"));\r\n distrib();\r\n }", "public static Path setupArchiveFile( final Configuration conf, final int count, boolean isJar ) throws IOException {\r\n\t\tFile tmpDir = File.createTempFile(\"tmpDir\", \"\");\r\n\t\tif (!tmpDir.delete()) {\r\n\t\t\tthrow new IOException(\"Can not delete recently created tmpFile\");\r\n\t\t}\r\n\t\tif (!tmpDir.mkdirs()) {\r\n\t\t\tthrow new IOException(\"Can not create tmp directory \" + tmpDir);\r\n\t\t}\r\n\t\t\r\n\t\tfinal Path tmpDirPath = new Path(tmpDir.getName());\r\n\t\tList<Path> files = createSimpleDirectory(conf, tmpDirPath, count, null);\r\n\t\tfinal Path zipFile = tmpDirPath.suffix(isJar?\".jar\":\".zip\");\r\n\t\tcreateArchiveFile(conf, zipFile, files, 1, isJar, null);\r\n\t\t/** Now clean up the tmpDir. */\r\n\t\tFileSystem fs = tmpDirPath.getFileSystem(conf);\r\n\t\tfs.delete( tmpDirPath, true);\r\n\t\treturn zipFile;\r\n\t}", "public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;", "public void preArchive() {\n // update version number\n setVersionNumber(CURRENT_VERSION_NO);\n }", "public void saveToStream(OutputStream stream) throws CoreException {\n\ttry {\n\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t Document document = builder.newDocument();\n\n\t Node root = document.createElement(\"templates\"); // $NON-NLS-1$ //$NON-NLS-1$\n\t document.appendChild(root);\n\n\t for (int i = 0; i != fTemplates.size(); i++) {\n\t\tTemplate template = (Template) fTemplates.get(i);\n\n\t\tNode node = document.createElement(\"template\"); // $NON-NLS-1$ //$NON-NLS-1$\n\t\troot.appendChild(node);\n\n\t\tNamedNodeMap attributes = node.getAttributes();\n\n\t\tAttr name = document.createAttribute(NAME_ATTRIBUTE);\n\t\tname.setValue(template.getName());\n\t\tattributes.setNamedItem(name);\n\n\t\tAttr description = document.createAttribute(DESCRIPTION_ATTRIBUTE);\n\t\tdescription.setValue(template.getDescription());\n\t\tattributes.setNamedItem(description);\n\n\t\tAttr context = document.createAttribute(CONTEXT_ATTRIBUTE);\n\t\tcontext.setValue(template.getContextTypeName());\n\t\tattributes.setNamedItem(context);\n\n\t\tAttr enabled = document.createAttribute(ENABLED_ATTRIBUTE);\n\t\tenabled.setValue(template.isEnabled() ? \"true\" : \"false\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tattributes.setNamedItem(enabled);\n\n\t\tText pattern = document.createTextNode(template.getPattern());\n\t\tnode.appendChild(pattern);\n\t }\n\n\t OutputFormat format = new OutputFormat();\n\t format.setPreserveSpace(true);\n\t Serializer serializer = SerializerFactory.getSerializerFactory(\"xml\").makeSerializer(stream, format); //$NON-NLS-1$\n\t serializer.asDOMSerializer().serialize(document);\n\n\t} catch (ParserConfigurationException e) {\n\t throwWriteException(e);\n\t} catch (IOException e) {\n\t throwWriteException(e);\n\t}\n }", "void serialize(@NotNull OutputStream out) throws IOException;", "private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }", "public static ByteArrayOutputStream readZipEntry(ZipInputStream zis)\n \t\t\tthrows IOException {\n \t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n \t\tbyte[] buffer = new byte[BUFFER_SIZE];\n \t\tint size;\n \t\twhile ((size = zis.read(buffer, 0, buffer.length)) != -1) {\n \t\t\tout.write(buffer, 0, size);\n \t\t}\n \t\treturn out;\n \t}", "public void writeObject(OutputStream stream, Object object, int format) throws IOException;", "public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}", "@Override\n\tpublic void Compress() {\n\t\t\n\t}", "public static void SerializarCadastro(List ArrayAlunos) {\n\n XStream xstream = new XStream(new DomDriver()); //Classe responsavel pela serialização xml\n\n OutputStream outputStream = null;\n\n xstream.alias(\"Cadastro\", List.class);\n xstream.alias(\"aluno\", Aluno.class);\n //File file = new File(\"/home/david/Documentos\",\"CadastroAluno.xml\" );\n File file = new File(\"XML/CadastroAluno.xml\");\n\n try {\n outputStream = new FileOutputStream(file);\n Writer writer = new OutputStreamWriter(outputStream, \"UTF-8\");\n xstream.toXML(ArrayAlunos, writer);\n } catch (IOException ex) {\n //Logger.getLogger(SerializaAluno.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n\n\n\n }", "public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);", "public static void zip(File src, OutputStream os) throws IOException {\n\t\tzip(src, os, Charset.defaultCharset().name(), true);\n\t}", "protected File createZipArchive(File directoryToZip, String modpackName, String workspace) throws Exception {\n zipName = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\")) + \"--\" + modpackName + \".zip\";\n uploadStatus = \"Creating Zipfile from Directory\";\n File zipFile = new File(workspace + \"\\\\\" + zipName);\n try {\n ProgressBarLogic progressBarLogic = new ProgressBarLogic(directoryToZip);\n ZipUtil.pack(directoryToZip, zipFile, name -> {\n uploadStatus = \"Adding file: \" + name + \" to the zip\";\n progressBarLogic.progressPercentage = 0;\n progressBarLogic.progress.add(name);\n progressBarLogic.calculateProgress(progressBarLogic.progress);\n notifyObserver();\n return name;\n });\n } catch (ZipException e) {\n throw e;\n } catch (Exception e) {\n System.out.println(e);\n }\n return zipFile;\n }", "private void writeObject( final ObjectOutputStream oos ) \n\t\tthrows IOException {\n\t\t\n\t\tObjectOutputStream.PutField fields = oos.putFields();\n\t\tfields.put(\"streetNumbers\", streetNumbers);\n\t\tfields.put(\"city\", city);\n\t\tfields.put(\"state\", state);\n\t\tfields.put(\"postalCode\", postalCode);\n\t\tfields.put(\"hashCode\", hashCode);\n\t\toos.writeFields();\n\t}" ]
[ "0.5894386", "0.5817253", "0.55823284", "0.5545152", "0.55120575", "0.5500386", "0.53736174", "0.5341859", "0.5300554", "0.5250506", "0.5229274", "0.52139366", "0.5193814", "0.51838744", "0.5168108", "0.5168011", "0.5159928", "0.5154351", "0.5125055", "0.51242805", "0.5119908", "0.5109841", "0.51087016", "0.50938153", "0.50923723", "0.50857955", "0.50821507", "0.5025822", "0.5009608", "0.49628448", "0.49455246", "0.49317306", "0.4903656", "0.4901515", "0.48957226", "0.4892948", "0.48829713", "0.48779443", "0.4874281", "0.48681673", "0.48490527", "0.48311836", "0.48301443", "0.4816487", "0.4813377", "0.47960237", "0.47882125", "0.47861928", "0.47712564", "0.47502738", "0.4737715", "0.472823", "0.4713552", "0.47117448", "0.4702314", "0.46982172", "0.4698028", "0.46759352", "0.46736598", "0.46711636", "0.46684346", "0.46668", "0.46653625", "0.46637923", "0.46474797", "0.46367794", "0.46295294", "0.46257317", "0.46079567", "0.45859545", "0.45729744", "0.45721713", "0.45684868", "0.45592985", "0.45443866", "0.45406073", "0.45381373", "0.4537533", "0.45352572", "0.4535024", "0.45248944", "0.45235997", "0.4518912", "0.4513748", "0.45116898", "0.45093334", "0.45069623", "0.45059597", "0.45050207", "0.4503878", "0.45011175", "0.44967052", "0.44962987", "0.4493195", "0.4479439", "0.4473561", "0.4461645", "0.44590938", "0.44543612", "0.44532546" ]
0.745212
0
Deserializes all the entries in the provided stream.
public void deserialize(final InputStream stream) throws IOException { Collection<? extends String> empty = Collections.emptySet(); deserialize(stream, empty); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T deserialize(InputStream stream) throws IOException;", "private void readObject(java.io.ObjectInputStream stream)\n throws IOException, ClassNotFoundException {\n trackers = new ArrayList<>();\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }", "InputStream deserialize(InputStream toDeserialize);", "public void deserialize(InputStream stream, ReaderType target) throws IOException {\n processHeader(stream);\n deserializeContents(stream, target);\n }", "private void readObject(java.io.ObjectInputStream s)\r\n throws java.io.IOException, ClassNotFoundException {\r\n // Read in any hidden serialization magic\r\n s.defaultReadObject();\r\n\r\n // Read in size\r\n int size = s.readInt();\r\n\r\n // Initialize header\r\n//INSTRUMENTATION BEGIN\r\n //header = new Entry(null, null, null);\r\n header = new Entry(null, null, null, this);\r\n//INSTRUMENTATION END\r\n header.next = header.previous = header;\r\n\r\n // Read in all elements in the proper order.\r\n for (int i = 0; i < size; i++)\r\n add(s.readObject());\r\n }", "void deserializeContents(InputStream stream, ReaderType target) throws IOException {\n byte version = readByte(stream);\n val readVersion = this.versions[version];\n ensureCondition(readVersion != null, \"Unsupported version %d.\", version);\n\n byte revisionCount = readByte(stream);\n ensureCondition(revisionCount >= 0, \"Data corruption: negative revision count.\");\n\n int revisionIndex = 0;\n for (int i = 0; i < revisionCount; i++) {\n byte revision = readByte(stream);\n val rd = readVersion.get(revisionIndex++);\n try (RevisionDataInputStream revisionInput = RevisionDataInputStream.wrap(stream)) {\n if (rd != null) {\n // We've encountered an unknown revision; we cannot read anymore.\n ensureCondition(revision == rd.getRevision(),\n \"Unexpected revision. Expected %d, found %d.\", rd.getRevision(), revision);\n rd.getReader().accept(revisionInput, target);\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n public BaseType deserialize(InputStream stream) throws IOException {\n processHeader(stream);\n\n // Decode the object type and look up its serializer.\n byte type = (byte) stream.read();\n if (type < 0) {\n throw new EOFException();\n }\n\n val si = this.serializersById.get(type);\n ensureCondition(si != null, \"No serializer found for object type %s.\", type);\n\n // Deserialize contents.\n return (BaseType) si.serializer.deserializeContents(stream);\n }", "private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tGZIPInputStream gzis = new GZIPInputStream(stream, 1024 * 1024);\r\n\t\tObjectInputStream ois = new ObjectInputStream(gzis);\r\n\t\tmap = (MapClip) ois.readObject();\r\n\t\tvisibility = (IntGrid) ois.readObject();\r\n\t\toccupied = (IntGrid) ois.readObject();\r\n\t\tdanger = (IntGrid) ois.readObject();\r\n\t\tattacking = (IntGrid) ois.readObject();\r\n\t\tfade = (IntGrid) ois.readObject();\r\n\t\tcost = (IntGrid) ois.readObject();\r\n\t\tdifficulty = (IntGrid) ois.readObject();\r\n\t}", "private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "public void read(final InputStream stream)\r\n throws IOException, DataFormatException {\r\n decoder.read(stream);\r\n }", "private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\n/* 210 */ stream.defaultReadObject();\n/* 211 */ this.store = new TreeMap();\n/* 212 */ int keyCount = stream.readInt();\n/* 213 */ for (int i = 0; i < keyCount; i++) {\n/* 214 */ Comparable key = (Comparable)stream.readObject();\n/* 215 */ Stroke stroke = SerialUtilities.readStroke(stream);\n/* 216 */ this.store.put(key, stroke);\n/* */ } \n/* */ }", "void deserialize(InputStream in) throws IOException, ClassNotFoundException {\n trie.deserialize(in);\n }", "TargetType deserializeContents(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n super.deserializeContents(stream, builder);\n return builder.build();\n }", "private synchronized void readContent(RecordInputStream s) throws IOException {\r\n originalNamesToFixedNames.clear();\r\n fixedNamesToOriginalNames.clear();\r\n \r\n int nEntries = s.readIntCompressed();\r\n for (int i = 0; i < nEntries; i++) {\r\n String originalName = s.readUTF();\r\n String fixedName = s.readUTF();\r\n originalNamesToFixedNames.put(originalName, fixedName);\r\n fixedNamesToOriginalNames.put(fixedName, originalName);\r\n }\r\n }", "public synchronized void readResources(InputStream stream)\r\n {\r\n Properties prop = new Properties();\r\n Enumeration keys;\r\n String key, value;\r\n List values;\r\n\r\n try\r\n {\r\n // load the properties\r\n prop.load(stream);\r\n keys = prop.propertyNames();\r\n\r\n while(keys.hasMoreElements())\r\n {\r\n // extract this key and value\r\n key = (String) keys.nextElement();\r\n value = prop.getProperty(key).trim();\r\n\r\n // only store valid resources\r\n if (isValidResource(key))\r\n {\r\n // store the key/value pair\r\n setTheResource(root, key, value);\r\n }\r\n else if (DEBUG)\r\n {\r\n // inform the user of the ill formed resource\r\n System.err.println(\"ResourceManager.readResources(): \"+\r\n \"the key '\"+key+\"' is illformed - skipping\");\r\n }\r\n }\r\n }\r\n catch(IOException e)\r\n {\r\n if (DEBUG)\r\n System.err.println(\"ResourceManager.readResources(): \"+e.getMessage());\r\n }\r\n }", "public void loadFromStream(InputStream is) throws IOException {\n\t\tfor (int i = 0; i <= mem.length; i++) {\n\t\t\tint data = is.read();\n\t\t\tif (data == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmem[i] = data;\n\t\t}\n\t\tif (is.read() != -1) {\n\t\t\tlogger.log(Level.WARNING, \"Truncating boot.rom to \" + mem.length);\n\t\t}\n\t}", "public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) {\n try{\n javax.json.JsonReader rdr = Json.createReader(stream);\n return rdr.readObject();}\n catch(Exception ex) {errors.append(ex.toString());}\n return null;}", "private void readObject(java.io.ObjectInputStream s)\n throws java.io.IOException, ClassNotFoundException {\n s.defaultReadObject();\n\n // Read in size (number of Mappings)\n int size = s.readInt();\n if (size < 0)\n throw new java.io.StreamCorruptedException\n (\"Illegal mappings count: \" + size);\n int cap = capacity(size);\n SharedSecrets.getJavaOISAccess().checkArray(s, Object[].class, cap);\n init(cap);\n\n // Read the keys and values, and put the mappings in the table\n for (int i=0; i<size; i++) {\n @SuppressWarnings(\"unchecked\")\n K key = (K) s.readObject();\n @SuppressWarnings(\"unchecked\")\n V value = (V) s.readObject();\n putForCreate(key, value);\n }\n }", "public StorableInput(InputStream stream) {\n Reader r = new BufferedReader(new InputStreamReader(stream));\n fTokenizer = new StreamTokenizer(r);\n fMap = new Vector();\n }", "public void readFromParcel(Parcel in) {\n mStreams.clear();\n Parcelable[] parcebleArray = in.readParcelableArray(Stream.class.getClassLoader());\n if(parcebleArray != null) {\n for (Parcelable p : parcebleArray) {\n Stream s = (Stream) p;\n mStreams.add(s);\n }\n }\n }", "public COSFilterFlateDecode(ASInputStream stream) throws IOException {\n super(stream);\n inflater = new Inflater();\n }", "public static void deserialize(InputStream aStream, CAS aCAS, boolean aLenient)\n throws SAXException, IOException {\n deserialize(new InputSource(aStream), aCAS, aLenient);\n }", "private void readObject(ObjectInputStream os) throws IOException, ClassNotFoundException {\n \t// rebuild this object\n \tos.defaultReadObject();\n \tthis.stat = new EdgeStat(this.edgeId);\n \tthis.curPackets = new ArrayList<ITransmissible>();\n }", "public TargetType deserialize(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n deserialize(stream, builder);\n return builder.build();\n }", "public void load(DataInput stream)\n throws IOException\n {\n final int MAX = 8192;\n byte[] abBuf = new byte[MAX];\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(MAX);\n\n int of = 0;\n try\n {\n while (true)\n {\n byte b = stream.readByte();\n\n abBuf[of++] = b;\n\t\t\t\tif (of == MAX)\n {\n streamRaw.write(abBuf, 0, MAX);\n of = 0;\n }\n }\n }\n catch (EOFException e)\n {\n if (of > 0)\n {\n streamRaw.write(abBuf, 0, of);\n }\n }\n\n\n setBytes(streamRaw.toByteArray());\n }", "private void readObject(ObjectInputStream inStream) \r\n\t\t\tthrows IOException, ClassNotFoundException {\r\n\t\tmPublicKey = (String)inStream.readObject();\r\n\t\tmIssuer = (String)inStream.readObject();\r\n\t\tmSubject = (String)inStream.readObject();\r\n\t}", "public List<T> readDataFromStream(InputStream stream, boolean readFirstLine) throws IOException {\n\n List<T> typeBeans = new LinkedList<>();\n try (ICsvBeanReader beanReader = new CsvBeanReader(new BufferedReader(new InputStreamReader(stream)),\n CsvPreference.TAB_PREFERENCE)) {\n if (readFirstLine) {\n beanReader.getHeader(true);\n }\n T typeBean;\n boolean carryOn = true;\n while (carryOn) {\n try {\n typeBean = beanReader.read(clazz, headers, cellProcessors);\n if (typeBean != null) {\n typeBeans.add(typeBean);\n } else {\n carryOn = false;\n }\n } catch (SuperCsvException e) {\n // we need this as the data file MAY contain rubbish\n LOGGER.warning(\"Ignoring data error in line: \" + beanReader.getLineNumber());\n }\n\n }\n }\n return typeBeans;\n }", "@Override\n void writeEntries(final DataOutputStream stream,\n final Collection<InMemoryVault.SecureEntryWrapper> values) throws IOException {\n stream.writeBytes(\"<numberEntries>\" + values.size() + \"</numberEntries>\");\n stream.writeBytes(\"<entries>\");\n values.forEach(wrapper -> {\n final String key = wrapper.entry.getKey();\n final String value = wrapper.entry.getValue();\n final String iv = Hex.encodeHexString(wrapper.iv);\n try {\n if (log.isDebugEnabled()) {\n log.debug(\"writing entry: {}\", wrapper);\n }\n stream.writeBytes(\"<entry>\");\n stream.writeBytes(\"<key>\" + escapeXml11(key) + \"</key>\");\n stream.writeBytes(\"<value>\" + value + \"</value>\");\n stream.writeBytes(\"<iv>\" + iv + \"</iv>\");\n stream.writeBytes(\"</entry>\");\n } catch (final IOException ioe) {\n log.error(\"error while writing the entry\", ioe);\n throw new UncheckedIOException(ioe);\n }\n });\n stream.writeBytes(\"</entries>\");\n }", "public void load(InputStream stream) {\n Validate.notNull(stream, \"Stream may not be null\");\n\n load(new InputStreamReader(stream, StandardCharsets.UTF_8));\n }", "private void readObject(ObjectInputStream s) throws IOException,\n\t\t\tClassNotFoundException {\n\t\ts.defaultReadObject();\n\t\t// Read in size\n\t\tint size = s.readInt();\n\t\t// Read in all elements\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tadd((Statement) s.readObject());\n\t\t}\n\t}", "public List<PGPSecretKeyRing> load(InputStream stream)\r\n\t\t\tthrows IOException, PGPException {\r\n\t\tArrayList<PGPSecretKeyRing> keys = new ArrayList<PGPSecretKeyRing>();\r\n\r\n\t\tIterator packets = parse(unarmor(stream));\r\n\t\twhile (packets.hasNext()) {\r\n\t\t\tObject packet = packets.next();\r\n\r\n\t\t\tif (packet instanceof PGPSecretKeyRing)\r\n\t\t\t\tkeys.add((PGPSecretKeyRing) packet);\r\n\t\t\t// else if (packet instanceof PGPPublicKeyRing)\r\n\t\t\t// keys.add(newKey((PGPPublicKeyRing) packet));\r\n\t\t}\r\n\r\n\t\tthis.keys.addAll(keys);\r\n\t\treturn keys;\r\n\t}", "public void initialize(InputStream stream) {\n if (stream == null) {\n return;\n }\n new DictionaryHandler().read(stream);\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tif (stream.readBoolean()) {\r\n\t\t\tsprite = Database.instance().getSprites().get((String) (stream.readObject()))\r\n\t\t\t\t\t.createSprite(stream.readFloat(), stream.readFloat());\r\n\t\t\tsprite.setDirection(stream.readInt());\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private void readObject(java.io.ObjectInputStream s)\r\n throws java.io.IOException, ClassNotFoundException {\r\n // Read in any hidden serialization magic\r\n s.defaultReadObject();\r\n\r\n // Read in HashMap capacity and load factor and create backing HashMap\r\n // int capacity = s.readInt();\r\n // float loadFactor = s.readFloat();\r\n this.map = new HashMap<Integer, E>();\r\n\r\n // Read in size\r\n int size = s.readInt();\r\n\r\n // Read in all elements in the proper order.\r\n for (int i = 0; i < size; i++) {\r\n E e = (E) s.readObject();\r\n this.map.put(e.hashCode(), e);\r\n }\r\n }", "private void readObject(ObjectInputStream in) throws IOException,\n \t\t\tClassNotFoundException {\n \t\tin.defaultReadObject();\n \t\tlog.debug(\"GalleryFeed has been deserialized.\");\n \t}", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}", "protected abstract DBObject parse(InputStream is) throws DeserializationException;", "@Override\n\tpublic void flatten( DataOutputStream stream ) throws IOException\n\t{\n\t\tsuper.flatten( stream );\n\t}", "protected Iterator parse(InputStream stream)\r\n\t\t\tthrows IOException, PGPException {\r\n\t\treturn new BcPGPObjectFactory(stream).iterator();\r\n\t}", "public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;", "private void readObject(java.io.ObjectInputStream stream)\r\n throws IOException, ClassNotFoundException {\r\n scoreNumber = stream.readInt();\r\n highScores = new Score[scoreNumber];\r\n \r\n for (int i = 0; i < scoreNumber; i++)\r\n \thighScores[i] = (Score) stream.readObject();\r\n }", "public void readFromStream(DataInputStream istream) throws IOException{\r\n headerFields = new HashMap();\r\n messageBody = null;\r\n String line;\r\n while(!(line = readLine(istream)).equals(\"\")){\r\n String fieldName = line.substring(0,line.indexOf(\":\"));\r\n String fieldValue = line.substring(line.indexOf(\" \")+1,line.length());\r\n setHeaderField(fieldName, fieldValue);\r\n //System.out.println(fieldName + \": \" +fieldValue);\r\n }\r\n readBody(istream);\r\n }", "public static ArrayList<Object> deserialize() throws IOException, ClassNotFoundException {\n FileInputStream fileIn = new FileInputStream(\"tmp/data.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n ArrayList<Object> items = new ArrayList<>();\n try {\n while (true){\n items.add(in.readObject());\n }\n }\n catch (OptionalDataException e){\n if(!e.eof){\n throw e;\n }\n }\n catch (EOFException e){\n in.close();\n fileIn.close();\n }\n System.out.println(\"okunan dosya: \" + items);\n return items;\n }", "public void readObject (ObjectInputStream in)\n throws IOException\n {\n int topSlots = in.readByte();\n long flips = in.readLong();\n long balls = in.readLong();\n long holes = in.readLong();\n\n populate(topSlots, flips, balls, holes);\n }", "public Object @NonNull [] parse(InputStream is) throws IOException {\n JsonNode jsonNode = mapper.readTree(new InputStreamReader(is));\n return jsonNodeToTuple(jsonNode);\n }", "private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\n/* 486 */ stream.defaultReadObject();\n/* 487 */ this.errorIndicatorPaint = SerialUtilities.readPaint(stream);\n/* 488 */ this.errorIndicatorStroke = SerialUtilities.readStroke(stream);\n/* */ }", "protected InputStream unarmor(InputStream stream)\r\n\t\t\tthrows IOException, PGPException {\r\n\t\treturn PGPUtil.getDecoderStream(stream);\r\n\t}", "GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;", "private void readObject(\n\t\tObjectInputStream aInputStream\n \t\t) throws ClassNotFoundException, IOException {\n \t\taInputStream.defaultReadObject();\n \t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static Hashtable<Integer, ScoreCount<Integer>> readHashtableObject(ObjectInputStream stream) {\n\t\tHashtable<Integer, ScoreCount<Integer>> result = null;\n\t\ttry {\n\t\t\tresult = (Hashtable<Integer, ScoreCount<Integer>>) stream.readObject();\n\t\t} catch(IOException|ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public abstract Object decode(InputStream is) ;", "public void parseInputStream(InputStream is) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\tString str = null;\n\t\twhile((str = br.readLine()) != null) {\n\t\t\tsb.append(str).append(\"\\n\\r\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tJSONObject jObject = new JSONObject(sb.toString());\n\t\t\tfinal String access_token = jObject.getString(\"access_token\");\n\t\t\tfinal String token_type = jObject.getString(\"token_type\");\n\t\t\tfinal String expires_in = jObject.getString(\"expires_in\");\n\t\t\tfinal String refresh_token = jObject.getString(\"refresh_token\");\n\t\t\t\n\t\t\tmHandler.post(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tgetGmailAtomFeed(access_token,token_type);\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} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n\t\tois.defaultReadObject(); // Calling the default deserialization logic\n\n\t}", "public void loadFlights(InputStream stream) throws StorageException {\r\n // Get the file contents\r\n String[] lines = readFile(stream);\r\n // Parse and save flights from lines found\r\n parseFlights(lines);\r\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "private void readObject(ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n ois.defaultReadObject();\n myhash = -1;\n timestamp = new Date(timestamp.getTime());\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException\n\t{\n\t\t// read values\n\t\tin.defaultReadObject();\n\n\t\tOutputStream output = getOutputStream();\n\t\tif (cachedContent != null)\n\t\t{\n\t\t\toutput.write(cachedContent);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFileInputStream input = new FileInputStream(dfosFile);\n\t\t\tStreams.copy(input, output);\n\t\t\tFiles.remove(dfosFile);\n\t\t\tdfosFile = null;\n\t\t}\n\t\toutput.close();\n\n\t\tcachedContent = null;\n\t}", "public synchronized void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n //super.readExternal(in); \n\n //if ( Util.THIS.isLoggable() ) /* then */ Util.THIS.debug(\"CatalogSettings.readExternal()\"); // NOI18N\n\n int version = in.readInt(); //IN version\n \n // version switch\n \n if (version != VERSION_1) throw new StreamCorruptedException(\"Unsupported catalog externalization protocol version (\" + version + \").\"); // NOI18N\n \n int persistentCount = in.readInt(); //IN count\n \n for (int i = 0; i<persistentCount; i++) {\n\n String catalogClass = (String) in.readObject(); //IN class name\n NbMarshalledObject marshaled = (NbMarshalledObject) in.readObject(); //IN marshalled object\n try { \n Object unmarshaled = marshaled.get();\n if (mountedCatalogs.contains(unmarshaled) == false) {\n mountedCatalogs.add(unmarshaled);\n }\n } catch (ClassNotFoundException ex) {\n //ignore probably missing provider class\n Exceptions.printStackTrace(\n Exceptions.attachSeverity(\n Exceptions.attachMessage(ex, NbBundle.getMessage(CatalogSettings.class, \"EXC_deserialization_failed\", catalogClass)),\n Level.INFO\n )\n );\n } catch (IOException ex) {\n //ignore incompatible classes\n Exceptions.printStackTrace(\n Exceptions.attachSeverity(\n Exceptions.attachMessage(ex, NbBundle.getMessage(CatalogSettings.class, \"EXC_deserialization_failed\", catalogClass)),\n Level.INFO\n )\n );\n } catch (RuntimeException ex) {\n //ignore catalog that can not deserialize itself without NPE etc.\n Exceptions.printStackTrace(\n Exceptions.attachSeverity(\n Exceptions.attachMessage(ex, NbBundle.getMessage(CatalogSettings.class, \"EXC_deserialization_failed\", catalogClass)),\n Level.INFO\n )\n );\n }\n }\n }", "public void unmarshalReferences(uka.transport.UnmarshalStream _stream)\n throws java.io.IOException, ClassNotFoundException\n {\n //Extracting the byte array\n int _size = _length * uka.transport.BasicIO.SIZEOF_byte;\n if(_size > uka.transport.BasicIO.REQUEST_MAX){\n //b is too big to be serialized as a primitive field\n value = (byte[]) _stream.readObject();\n } else {\n //b is small enough to be serialized as a primitive field\n _stream.request(_size);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n value = new byte[_length];\n _pos = uka.transport.BasicIO.extract(_buffer, _pos, value);\n _stream.accept(_size);\n }\n }", "private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}", "public void readFromStream(Reader r) throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(r);\n\t\tlines=new ArrayList();\n\n\t\twhile(true) {\n\t\t\tString input=br.readLine();\n\t\t\tif(input==null)\n\t\t\t\tbreak;\n\t\t\tlines.add(input);\n\t\t}\n\t}", "public void readIDs() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/ids.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n ids = (HashMap<String, Member>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n ids = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n\n }", "public void initialize(final InputStream stream) throws IOException\n {\n // load up the properties\n final Properties props = new Properties();\n props.load(stream);\n initialize(props);\n }", "static void decompressStream(Map<Integer, byte[]> dictionary,\n OutputStream os) {\n byte[] byteStream = new byte[0];\n\n for (Integer key : dictionary.keySet()) {\n byteStream = Util.mergeBytes(byteStream,\n dictionary.get(key).clone());\n }\n try {\n os.write(byteStream);\n } catch (IOException e) {\n System.err.println(\"An error happened while decompressing.\");\n }\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n Schema schema = new Schema.Parser().parse((String) in.readObject());\n DatumReader<T> reader = new GenericDatumReader<>(schema);\n Decoder decoder = DecoderFactory.get().binaryDecoder(in, null);\n avroObject = reader.read(avroObject, decoder);\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n in.defaultReadObject();\n\n _firstTime = true;\n _isReset = false;\n }", "SIEntry(final Context<BTree, BTreeLeaf> context, java.nio.ByteBuffer stream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\tDataContainer dc = new DataContainer();\n\t\t\tdc.read(stream, context.unicode() ? unicode_fields : ansi_fields);\n\n\t\t\tnid = (NID)dc.get(nm_nid);\n\t\t\tbid = (BID)dc.get(nm_bid);\n\t\t}", "private static void loadTriples$(BulkStreamRDF dest, InputStream input) {\n loadLogger.info(\"Load: from input stream -- \" + DateTimeUtils.nowAsString());\n dest.startBulk();\n RDFParser.source(input).lang(Lang.NTRIPLES).parse(dest);\n dest.finishBulk();\n }", "@Override\n\tpublic List<ImogBean> deSerializeMulti(InputStream xml) throws ImogSerializationException {\n\t\tList<ImogBean> list = new Vector<ImogBean>();\n\n\t\ttry {\n\t\t\t/* create a document from the xml string */\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder domBuilder = factory.newDocumentBuilder();\n\t\t\tTransformerFactory transFactory = TransformerFactory.newInstance();\n\t\t\tTransformer trans = transFactory.newTransformer();\n\t\t\ttrans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\tDocument dom = domBuilder.parse(xml);\n\n\t\t\t/*\n\t\t\t * each parent node is an entity, we export it in a temporary file\n\t\t\t */\n\t\t\tNodeList entities = dom.getDocumentElement().getChildNodes();\n\t\t\tfor (int i = 0; i < entities.getLength(); i++) {\n\t\t\t\tNode current = entities.item(i);\n\t\t\t\tFile tempFile = File.createTempFile(\"receive\", \".imogobject\");\n\t\t\t\tStreamResult result = new StreamResult(new FileOutputStream(tempFile));\n\t\t\t\tDOMSource source = new DOMSource(current);\n\t\t\t\ttrans.transform(source, result);\n\t\t\t\tlist.add(deSerialize(new FileInputStream(tempFile)));\n\t\t\t\ttempFile.delete();\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tthrow new ImogSerializationException(ex);\n\t\t}\n\t\treturn list;\n\t}", "public void readObject (ObjectInputStream ins)\n throws IOException, ClassNotFoundException\n {\n ins.defaultReadObject();\n\n PropertySpaceHelper.readProperties(this, ins);\n }", "public void fromXml(InputStream is) throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tUnmarshaller u = jc.createUnmarshaller();\r\n\t\tTaskTypes tt = (TaskTypes) u.unmarshal(is);\r\n\t\tthis.taskTypes = tt.taskTypes;\r\n\t}", "public void readUsers() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/users.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n users = (HashMap<String, User>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n users = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n\n }", "Map<String, InputStream> extract(TypedValue<InputStream> archive) throws DecompressionException;", "private void readObject(java.io.ObjectInputStream s)\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n {\n s.defaultReadObject();\n try\n {\n toGregorian(); // restore transient fields\n }\n catch ( IllegalArgumentException e )\n {\n throw new java.io.IOException(\"bad serialized DateUtil\");\n }\n }", "@Override\n protected void readChildren(XMLStreamReader in) throws XMLStreamException {\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n readChild(in);\n }\n }", "void parseWritable(final DataInputStream in) throws IOException {\n // First clear the map. Otherwise we will just accumulate entries every time this method is called.\n this.map.clear();\n // Read the number of entries in the map\n int entries = in.readInt();\n // Then read each key/value pair\n for (int i = 0; i < entries; i++) {\n byte[] key = Bytes.readByteArray(in);\n // We used to read a byte that encoded the class type. Read and ignore it because it is always byte [] in hfile\n in.readByte();\n byte[] value = Bytes.readByteArray(in);\n this.map.put(key, value);\n }\n }", "public void loadClients(InputStream stream) throws StorageException {\r\n // Get the lines in the file\r\n String[] lines = readFile(stream);\r\n // Parse and save the clients to the database\r\n parseClients(lines);\r\n }", "@Override\n public T readData(InputStream in) throws IOException\n {\n String doc = _read(in, \"UTF-8\");\n return _deserializer.deserialize(doc, _itemClass);\n }", "private void deSerialize()\n {\n \n try\n { \n String filename = \"src/serialization/allSets.ser\";\n \n FileInputStream file = new FileInputStream(filename);\n ObjectInputStream in = new ObjectInputStream(file);\n \n allNoteCardSets = (AllNoteCardSets)in.readObject();\n \n in.close();\n file.close();\n }\n catch(IOException | ClassNotFoundException ex)\n {\n }\n catch(Exception ex)\n {\n }\n \n }", "public void deserialize( final SerializerInputStream in )\n throws SerializationException\n {\n final ScriptingClassLoader classLoader = vm.getClassLoader();\n in.readByte(); // skip version\n name = in.readString();\n final int propCount = in.readInt();\n if( propCount > 0 )\n {\n properties = new Hashtable( propCount );\n for( int i = 0; i < propCount; i++ )\n {\n final String name = in.readString();\n final String className = in.readString();\n final ScriptingClass clazz;\n if(\n className.equals( name ) ||\n ( classLoader.getAlias( name ) != null &&\n className.equals( classLoader.getAlias( name ) ) )\n )\n {\n clazz = this;\n }\n else\n {\n try\n {\n clazz = classLoader.load( className );\n }\n catch( ScriptingClassNotFoundException e )\n {\n throw new SerializationException(\n Constants.ERR_SCL_CLASS_NOT_FOUND,\n e\n );\n }\n }\n properties.put( name, clazz );\n }\n }\n else\n {\n properties = null;\n }\n final int methodCount = in.readInt();\n if( methodCount > 0 )\n {\n methods = new Hashtable( methodCount );\n for( int i = 0; i < methodCount; i++ )\n {\n final String name = in.readString();\n final Method method = new MethodImpl( this );\n method.deserialize( in );\n methods.put( name, method );\n }\n }\n else\n {\n methods = null;\n }\n final int ancestorCount = in.readInt();\n if( ancestorCount > 0 )\n {\n ancestors = new Vector( ancestorCount );\n for( int i = 0; i < ancestorCount; i++ )\n {\n final String name = in.readString();\n ScriptingClass clazz;\n try\n {\n clazz = classLoader.load( name );\n }\n catch( ScriptingClassNotFoundException e )\n {\n throw new SerializationException(\n Constants.ERR_SCL_CLASS_NOT_FOUND,\n e\n );\n }\n ancestors.addElement( clazz );\n }\n }\n else\n {\n ancestors = null;\n }\n }", "public StreamUnzipper(InputStream zipStream, File destDir)\n {\n if (zipStream == null)\n throw new IllegalArgumentException(\"zip stream cannot be null\");\n this.zis = new ZipInputStream(zipStream);\n this.destDir = destDir;\n }", "public ClassFile(DataInput stream)\n throws IOException\n {\n load(stream);\n }", "public AdvancedDeserializer6_0(\r\n\t\t\tInputStream inputStream\r\n\t) throws IOException,SerializeException {\r\n\t\tsuper(inputStream);\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public void deserialize(final InputStream stream,\r\n final Collection<? extends String> exclude) throws IOException {\r\n Map<String, byte[]> entries = new HashMap<String, byte[]>();\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n\r\n byte[] buffer = new byte[BUFFER_SIZE];\r\n\r\n for (int read; (read = stream.read(buffer)) >= 0;) {\r\n bytes.write(buffer, 0, read);\r\n }\r\n\r\n ZipInputStream zip = new ZipInputStream(new ByteArrayInputStream(\r\n bytes.toByteArray()));\r\n ArchiveContents contents = null;\r\n WorkspaceComponentDeserializer componentDeserializer = new WorkspaceComponentDeserializer();\r\n\r\n ZipEntry entry = zip.getNextEntry();\r\n\r\n for (ZipEntry next; entry != null; entry = next) {\r\n next = zip.getNextEntry();\r\n entries.put(entry.getName(), new byte[(int) entry.getSize()]);\r\n }\r\n\r\n zip = new ZipInputStream(new ByteArrayInputStream(bytes.toByteArray()));\r\n\r\n while ((entry = zip.getNextEntry()) != null) {\r\n byte[] data = entries.get(entry.getName());\r\n read(zip, data);\r\n }\r\n\r\n // Get the archived contents file.\r\n contents = (ArchiveContents) ArchiveContents.xstream().fromXML(\r\n new ByteArrayInputStream(entries.get(\"contents.xml\")));\r\n\r\n // Add Components\r\n if (contents.getArchivedComponents() != null) {\r\n for (ArchiveContents.ArchivedComponent archivedComponent : contents\r\n .getArchivedComponents()) {\r\n if (exclude.contains(archivedComponent.getUri())) {\r\n continue;\r\n }\r\n\r\n WorkspaceComponent wc = componentDeserializer\r\n .deserializeWorkspaceComponent(\r\n archivedComponent,\r\n new ByteArrayInputStream(entries\r\n .get(archivedComponent.getUri())));\r\n\r\n // This will cause a desktop component (GuiComponent) to be\r\n // created\r\n workspace.addWorkspaceComponent(wc);\r\n\r\n if (archivedComponent.getDesktopComponent() != null) {\r\n Rectangle bounds = (Rectangle) new XStream(new DomDriver())\r\n .fromXML(new ByteArrayInputStream(entries\r\n .get(archivedComponent\r\n .getDesktopComponent().getUri())));\r\n GuiComponent<?> desktopComponent = desktop\r\n .getDesktopComponent(wc);\r\n desktopComponent.getParentFrame().setBounds(bounds);\r\n }\r\n }\r\n }\r\n\r\n // Add Couplings\r\n if (contents.getArchivedCouplings() != null) {\r\n for (ArchiveContents.ArchivedCoupling couplingRef : contents\r\n .getArchivedCouplings()) {\r\n if (exclude.contains(couplingRef.getArchivedProducer()\r\n .getParentRef())\r\n || exclude.contains(couplingRef.getArchivedProducer()\r\n .getParentRef())) {\r\n continue;\r\n }\r\n\r\n // Get workspace components from references\r\n WorkspaceComponent sourceComponent = componentDeserializer\r\n .getComponent(couplingRef.getArchivedProducer()\r\n .getParentRef());\r\n WorkspaceComponent targetComponent = componentDeserializer\r\n .getComponent(couplingRef.getArchivedConsumer()\r\n .getParentRef());\r\n\r\n // Get attributes from references\r\n Producer<?> producer = sourceComponent\r\n .getAttributeManager()\r\n .createProducer(\r\n sourceComponent.getObjectFromKey(couplingRef\r\n .getArchivedProducer()\r\n .getBaseObjectKey()),\r\n couplingRef.getArchivedProducer()\r\n .getMethodBaseName(),\r\n couplingRef.getArchivedProducer().getDataType(),\r\n couplingRef.getArchivedProducer()\r\n .getArgumentDataTypes(),\r\n couplingRef.getArchivedProducer()\r\n .getArgumentValues(),\r\n couplingRef.getArchivedProducer()\r\n .getDescription());\r\n\r\n Class[] argDataTypes = couplingRef.getArchivedConsumer()\r\n .getArgumentDataTypes();\r\n Consumer<?> consumer = targetComponent.getAttributeManager()\r\n .createConsumer(\r\n targetComponent.getObjectFromKey(couplingRef\r\n .getArchivedConsumer()\r\n .getBaseObjectKey()),\r\n couplingRef.getArchivedConsumer()\r\n .getMethodBaseName(),\r\n argDataTypes,\r\n couplingRef.getArchivedConsumer()\r\n .getArgumentValues(),\r\n couplingRef.getArchivedConsumer()\r\n .getDescription());\r\n workspace.addCoupling(new Coupling(producer, consumer));\r\n\r\n }\r\n }\r\n\r\n // Add update actions\r\n workspace.getUpdater().getUpdateManager().clear();\r\n if (contents.getArchivedActions() != null) {\r\n for (ArchiveContents.ArchivedUpdateAction actionRef : contents\r\n .getArchivedActions()) {\r\n workspace\r\n .getUpdater()\r\n .getUpdateManager()\r\n .addAction(\r\n contents.createUpdateAction(workspace,\r\n componentDeserializer, actionRef));\r\n }\r\n }\r\n\r\n // Deserialize workspace parameters (serialization occurs in\r\n // ArchiveContents.java).\r\n if (contents.getWorkspaceParameters() != null) {\r\n workspace.setUpdateDelay(contents.getWorkspaceParameters()\r\n .getUpdateDelay());\r\n workspace.getUpdater().setTime(\r\n contents.getWorkspaceParameters().getSavedTime());\r\n }\r\n }", "private void readObject( final ObjectInputStream ois ) \n\t\tthrows ClassNotFoundException, IOException {\n\t\tObjectInputStream.GetField fields = ois.readFields();\n\t\tstreetNumbers = (String) fields.get(\"streetNumbers\", NA );\n\t\tcity = (String) fields.get(\"city\", NA);\n\t\tstate = (StateCode) fields.get(\"state\", StateCode.NY);\n\t\tpostalCode = (String) fields.get(\"postalCode\", NA);\n\t\thashCode = fields.get(\"hashCode\", 0);\n\t}", "public void deserializeSnapshot(final InputArchive ia, final CheckedInputStream is) throws IOException {\n clear();\n\n // deserialize data tree\n final DataTree dataTree = getDataTree();\n FileSnap.deserialize(dataTree, getSessionWithTimeOuts(), ia);\n SnapStream.checkSealIntegrity(is, ia);\n\n // deserialize digest and check integrity\n if (dataTree.deserializeZxidDigest(ia, 0)) {\n SnapStream.checkSealIntegrity(is, ia);\n }\n\n // deserialize lastProcessedZxid and check integrity\n if (dataTree.deserializeLastProcessedZxid(ia)) {\n SnapStream.checkSealIntegrity(is, ia);\n }\n\n // compare the digest to find inconsistency\n if (dataTree.getDigestFromLoadedSnapshot() != null) {\n dataTree.compareSnapshotDigests(dataTree.lastProcessedZxid);\n }\n\n initialized = true;\n }", "private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tthreadLocalDedup = new ThreadLocal<Dedup>() {\n\t\t\t@Override\n\t\t\tprotected Dedup initialValue() {\n\t\t\t\treturn new Dedup();\n\t\t\t}\n\t\t};\n\t\tin.defaultReadObject();\n\t}", "public void readData(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\r\n String line = \"\";\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n //Split line by \",\"\r\n String[] fields = line.split(\",\");\r\n //Log.d(\"csvParseFieldLength\", String.valueOf(fields.length));\r\n ArrayList<Race> races = new ArrayList<>();\r\n if (fields[9].equals(\"\"))\r\n break;\r\n else {\r\n Swimmer s = new Swimmer(fields[0],fields[10], fields[9], Integer.parseInt(fields[8]), fields[7], races);\r\n swimmers.add(s);\r\n s.addRace(new Race(Integer.parseInt(fields[2]), Integer.parseInt(fields[3]), 0, null, (fields[4] + \" \" + fields[5])));\r\n \r\n EventID e = new EventID(eventId);\r\n String b = fields[12];\r\n \r\n \r\n if (!b.equals(\" \")) \r\n \te.addNames(b);\r\n \r\n \r\n \r\n }\r\n }\r\n } catch (IOException ex) {\r\n //Log.d(\"csvParseSwim\", \"Error reading data from file on line \" + line);\r\n }\r\n }", "@Override\n\tpublic void read(InStream inStream) {\n\t}", "public void deserialize() {\n\t\t\n\t}", "List<LoggingEvent> parse(InputStream is) throws ParseException;", "private void readObject(ObjectInputStream paramObjectInputStream) throws IOException, ClassNotFoundException {\n/* 91 */ paramObjectInputStream.defaultReadObject();\n/* 92 */ this.types = null;\n/* */ }", "private void readObject(java.io.ObjectInputStream s)\n throws java.lang.ClassNotFoundException,\n\t java.io.IOException\n {\n s.defaultReadObject();\n if (pointSize == 0) {\n\t\tpointSize = (float)size;\n \t }\n width = 1f; // init transient field\n initializeFont(fRequestedAttributes);\n }", "public static <T> Array<T> fromStream(Stream<T> stream)\n {\n return fromUnsafe(stream.toArray(Object[]::new));\n }", "private void readObject(ObjectInputStream s) throws InvalidObjectException {\n throw new InvalidObjectException(\"Deserialization via serialization delegate\");\n }" ]
[ "0.62015975", "0.6129541", "0.6021126", "0.59476924", "0.59185773", "0.5902829", "0.5861574", "0.5821489", "0.57946235", "0.5771737", "0.57413226", "0.56908596", "0.5672662", "0.5625679", "0.5621113", "0.5592973", "0.5578308", "0.5538243", "0.5534355", "0.55149424", "0.5470619", "0.54578584", "0.5453372", "0.54473805", "0.53840274", "0.5380631", "0.53739804", "0.5360205", "0.5342033", "0.5306322", "0.5276574", "0.5275112", "0.5275072", "0.52678674", "0.5257115", "0.5243979", "0.52207464", "0.52005774", "0.5196746", "0.5193086", "0.51489985", "0.51371133", "0.51142037", "0.511016", "0.5108125", "0.5082216", "0.5047833", "0.5043356", "0.5041834", "0.50316644", "0.50274926", "0.50262564", "0.5023102", "0.5016769", "0.5012308", "0.50104403", "0.4997215", "0.4966874", "0.49603412", "0.4956757", "0.4954843", "0.4952575", "0.49182376", "0.49118045", "0.4905002", "0.4902748", "0.48953807", "0.48830774", "0.4882311", "0.48710912", "0.48486954", "0.4845944", "0.48362142", "0.482783", "0.4827258", "0.47822115", "0.47784021", "0.47702655", "0.47693926", "0.4765265", "0.47604433", "0.4756062", "0.47555888", "0.4752707", "0.47378865", "0.47258154", "0.47123113", "0.4712108", "0.47093847", "0.47052523", "0.46873507", "0.46788162", "0.46775103", "0.4665832", "0.466198", "0.46614304", "0.46519682", "0.46496218", "0.4648502", "0.46310666" ]
0.7047187
0
Creates a workspace from a zip compressed input stream.
@SuppressWarnings("unchecked") public void deserialize(final InputStream stream, final Collection<? extends String> exclude) throws IOException { Map<String, byte[]> entries = new HashMap<String, byte[]>(); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); byte[] buffer = new byte[BUFFER_SIZE]; for (int read; (read = stream.read(buffer)) >= 0;) { bytes.write(buffer, 0, read); } ZipInputStream zip = new ZipInputStream(new ByteArrayInputStream( bytes.toByteArray())); ArchiveContents contents = null; WorkspaceComponentDeserializer componentDeserializer = new WorkspaceComponentDeserializer(); ZipEntry entry = zip.getNextEntry(); for (ZipEntry next; entry != null; entry = next) { next = zip.getNextEntry(); entries.put(entry.getName(), new byte[(int) entry.getSize()]); } zip = new ZipInputStream(new ByteArrayInputStream(bytes.toByteArray())); while ((entry = zip.getNextEntry()) != null) { byte[] data = entries.get(entry.getName()); read(zip, data); } // Get the archived contents file. contents = (ArchiveContents) ArchiveContents.xstream().fromXML( new ByteArrayInputStream(entries.get("contents.xml"))); // Add Components if (contents.getArchivedComponents() != null) { for (ArchiveContents.ArchivedComponent archivedComponent : contents .getArchivedComponents()) { if (exclude.contains(archivedComponent.getUri())) { continue; } WorkspaceComponent wc = componentDeserializer .deserializeWorkspaceComponent( archivedComponent, new ByteArrayInputStream(entries .get(archivedComponent.getUri()))); // This will cause a desktop component (GuiComponent) to be // created workspace.addWorkspaceComponent(wc); if (archivedComponent.getDesktopComponent() != null) { Rectangle bounds = (Rectangle) new XStream(new DomDriver()) .fromXML(new ByteArrayInputStream(entries .get(archivedComponent .getDesktopComponent().getUri()))); GuiComponent<?> desktopComponent = desktop .getDesktopComponent(wc); desktopComponent.getParentFrame().setBounds(bounds); } } } // Add Couplings if (contents.getArchivedCouplings() != null) { for (ArchiveContents.ArchivedCoupling couplingRef : contents .getArchivedCouplings()) { if (exclude.contains(couplingRef.getArchivedProducer() .getParentRef()) || exclude.contains(couplingRef.getArchivedProducer() .getParentRef())) { continue; } // Get workspace components from references WorkspaceComponent sourceComponent = componentDeserializer .getComponent(couplingRef.getArchivedProducer() .getParentRef()); WorkspaceComponent targetComponent = componentDeserializer .getComponent(couplingRef.getArchivedConsumer() .getParentRef()); // Get attributes from references Producer<?> producer = sourceComponent .getAttributeManager() .createProducer( sourceComponent.getObjectFromKey(couplingRef .getArchivedProducer() .getBaseObjectKey()), couplingRef.getArchivedProducer() .getMethodBaseName(), couplingRef.getArchivedProducer().getDataType(), couplingRef.getArchivedProducer() .getArgumentDataTypes(), couplingRef.getArchivedProducer() .getArgumentValues(), couplingRef.getArchivedProducer() .getDescription()); Class[] argDataTypes = couplingRef.getArchivedConsumer() .getArgumentDataTypes(); Consumer<?> consumer = targetComponent.getAttributeManager() .createConsumer( targetComponent.getObjectFromKey(couplingRef .getArchivedConsumer() .getBaseObjectKey()), couplingRef.getArchivedConsumer() .getMethodBaseName(), argDataTypes, couplingRef.getArchivedConsumer() .getArgumentValues(), couplingRef.getArchivedConsumer() .getDescription()); workspace.addCoupling(new Coupling(producer, consumer)); } } // Add update actions workspace.getUpdater().getUpdateManager().clear(); if (contents.getArchivedActions() != null) { for (ArchiveContents.ArchivedUpdateAction actionRef : contents .getArchivedActions()) { workspace .getUpdater() .getUpdateManager() .addAction( contents.createUpdateAction(workspace, componentDeserializer, actionRef)); } } // Deserialize workspace parameters (serialization occurs in // ArchiveContents.java). if (contents.getWorkspaceParameters() != null) { workspace.setUpdateDelay(contents.getWorkspaceParameters() .getUpdateDelay()); workspace.getUpdater().setTime( contents.getWorkspaceParameters().getSavedTime()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);", "public static DBMaker openZip(String zip) {\n DBMaker m = new DBMaker();\n m.location = \"$$ZIP$$://\"+zip;\n return m;\n }", "public StreamUnzipper(InputStream zipStream, File destDir)\n {\n if (zipStream == null)\n throw new IllegalArgumentException(\"zip stream cannot be null\");\n this.zis = new ZipInputStream(zipStream);\n this.destDir = destDir;\n }", "public ZipLineStream() {\n\t\tarchType = ArchiveTypes.ZIP.name();\n\t}", "public ZipDatabase() throws IOException {\r\n int line = 0;\r\n InputStream is = this.getClass().getResourceAsStream(\"zip.txt\");\r\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n String input;\r\n // parses entries of the form:\r\n // 03064,NH,NASHUA\r\n try {\r\n while ((input = br.readLine()) != null) {\r\n line++;\r\n StringTokenizer st = new StringTokenizer(input, \",\");\r\n if (st.countTokens() == 3) {\r\n String zip = st.nextToken();\r\n String state = st.nextToken();\r\n String city = st.nextToken();\r\n city = fixupCase(city);\r\n zipDB.put(zip, new ZipInfo(zip, city, state));\r\n } else {\r\n throw new IOException(\"Bad zip format, line \" + line);\r\n }\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n }", "private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new URI(\"jar:file\", zipPath.toUri().getPath(), null);\r\n\t\tFileSystem zipFs = FileSystems.newFileSystem(zipUri, providerProps); // Statische Methode wird hier angewendet\r\n\t\t\r\n\t\treturn zipFs;\r\n\t}", "public StorableInput(InputStream stream) {\n Reader r = new BufferedReader(new InputStreamReader(stream));\n fTokenizer = new StreamTokenizer(r);\n fMap = new Vector();\n }", "private ZipCompressor(){}", "public static void unzip(Context context, InputStream zipFile) {\n try (BufferedInputStream bis = new BufferedInputStream(zipFile)) {\n try (ZipInputStream zis = new ZipInputStream(bis)) {\n ZipEntry ze;\n int count;\n byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];\n while ((ze = zis.getNextEntry()) != null) {\n try (FileOutputStream fout = context.openFileOutput(ze.getName(), Context.MODE_PRIVATE)) {\n while ((count = zis.read(buffer)) != -1)\n fout.write(buffer, 0, count);\n }\n }\n }\n } catch (IOException | NullPointerException ex) {\n Log.v(MainActivity.TAG, \"Zip not opened.\\n\"+ex.getMessage());\n }\n }", "protected InputStream loadFile(String zipPath) throws Exception {\n\t\treturn Files.newInputStream(Paths.get(zipPath));\n\t}", "public static ToscaServiceTemplate decodeFile(String zipEntryName, InputStream entryData) throws CoderException {\n ToscaServiceTemplate toscaServiceTemplate = null;\n if (zipEntryName.endsWith(\".json\")) {\n toscaServiceTemplate = coder.decode(entryData, ToscaServiceTemplate.class);\n } else if (zipEntryName.endsWith(\".yml\")) {\n toscaServiceTemplate = yamlCoder.decode(entryData, ToscaServiceTemplate.class);\n }\n return toscaServiceTemplate;\n }", "void importDivision(Connection con, ZipFile zip) throws Exception;", "private void loadZipFile(String zipFileName, String classIndex)\n {\n InputStream trainSource = null, testSource = null;\n //The instance file is a zipped file containing a file called 'train' and one called 'test'\n try {\n ZipFile zipFile = new ZipFile(zipFileName);\n Enumeration entries = zipFile.entries();\n while(entries.hasMoreElements()) {\n ZipEntry entry = (ZipEntry)entries.nextElement();\n\n String name = entry.getName();\n if (name.equals(\"train.arff\"))\n {\n trainSource = zipFile.getInputStream(entry);\n }\n else if(name.equals(\"test.arff\"))\n {\n testSource = zipFile.getInputStream(entry);\n }\n else\n {\n //What is this?\n throw new RuntimeException(\"Unknown file in zip dataset '\" + name + \"'\");\n }\n }\n } catch (java.io.IOException e) {\n throw new RuntimeException(\"IO Operation failed\", e);\n }\n\n //Get the training data\n try {\n mTraining = Util.loadDataSource(trainSource);\n if (mTraining.classIndex() == -1){\n if(classIndex.equals(\"last\"))\n mTraining.setClassIndex(mTraining.numAttributes() - 1);\n else\n mTraining.setClassIndex(Integer.parseInt(classIndex));\n }\n } catch(Exception e) {\n throw new RuntimeException(\"Failed to load training data provided in zip\", e);\n }\n\n //Get the testing data\n try {\n mTesting = Util.loadDataSource(testSource);\n if (mTesting.classIndex() == -1){\n if(classIndex.equals(\"last\"))\n mTesting.setClassIndex(mTesting.numAttributes() - 1);\n else\n mTesting.setClassIndex(Integer.parseInt(classIndex));\n }\n } catch(Exception e) {\n throw new RuntimeException(\"Failed to load testing data provided in zip\", e);\n }\n\n }", "public AbstractSRLabeler(ZipInputStream in)\n\t{\n\t\tsuper(in);\n\t}", "public SCMLProject load(InputStream stream)\n\t{\n\t\tXmlReader reader = new XmlReader();\n\t\treturn load(reader.parse(stream));\n\t}", "private static void extractFile(ZipInputStream inStreamZip, FSDataOutputStream destDirectory) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(destDirectory);\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = inStreamZip.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "public static ByteArrayOutputStream readZipEntry(ZipInputStream zis)\n \t\t\tthrows IOException {\n \t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n \t\tbyte[] buffer = new byte[BUFFER_SIZE];\n \t\tint size;\n \t\twhile ((size = zis.read(buffer, 0, buffer.length)) != -1) {\n \t\t\tout.write(buffer, 0, size);\n \t\t}\n \t\treturn out;\n \t}", "private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file);\r\n\t\t\twriter.write(xmlStream);\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t\t//Commando für die Shell um ein Tgz zu erstellen.\r\n\t\t\tString[] str = new String[] {\r\n\t\t\t\t\t\"/bin/bash\",\r\n\t\t\t\t\t\"-c\",\r\n\t\t\t\t\t\"tar cfvz \" + path + \"/\" + name + \".tgz -C \" + path + \" \" + name\r\n\t\t\t\t\t\t\t+ \".xml -C \" + path + \" \" + name + \".pdf\" };\r\n\r\n\t\t\t//Shell Aufruf\r\n\t\t\tProcess p = Runtime.getRuntime().exec(str);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint timeout = 10;\r\n\t\t\twhile (!new File(path + name + \".tgz\").exists() && timeout != 0) {\r\n\t\t\t\t//warten bis Datei erstellt wurde oder 10 sec vergangen sind\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttimeout--;\r\n\t\t\t\t\tThread.sleep(1000);\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}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private StreamSource getZipSource(final File requestedDirectory) {\n StreamSource zippedDirSource = new StreamSource() {\n private static final long serialVersionUID = 7060525220398731933L;\n public InputStream getStream() {\n // Pipe bauen, um Steam als Download umzulenken\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }\n };\n return zippedDirSource;\n }", "public SqlFileParser(InputStream stream) {\n this.reader = new BufferedReader(new InputStreamReader(stream));\n }", "public SparseDataset parse(String name, InputStream stream) throws IOException, ParseException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream));\n\n // process header\n int nrow = 1;\n String line = reader.readLine();\n for (; nrow <= 3 && line != null; nrow++) { \n String[] tokens = line.trim().split(\" \");\n if (tokens.length >= 3) {\n break;\n }\n line = reader.readLine();\n }\n \n if (line == null) {\n throw new IOException(\"Empty data source.\");\n }\n \n SparseDataset sparse = new SparseDataset(name);\n do {\n String[] tokens = line.trim().split(\" \");\n if (tokens.length != 3) {\n throw new ParseException(\"Invalid number of tokens.\", nrow);\n }\n \n int d = Integer.valueOf(tokens[0]) - arrayStartingIndex;\n int w = Integer.valueOf(tokens[1]) - arrayStartingIndex;\n double c = Double.valueOf(tokens[2]);\n sparse.set(d, w, c);\n \n line = reader.readLine();\n nrow++;\n } while (line != null);\n \n stream.close();\n\n return sparse;\n }", "public ExecutableReader(InputStream is) throws Exception {\n\t\texStr = new ExecutableStream(is);\n\t\tread(exStr);\n\t}", "public SourceFile(File file) throws Exception {\r\n\t\t// this.file = file;\r\n\t\tthis.zipFile = new ZipFile(file, \"UTF-8\");\r\n\t}", "public CompressionInputStream(InputStream in) {\n super(in);\n }", "public TemplexTokenMaker(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "public _SFMLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public InflaterInputStream(InputStream in, Inflater inf) {\n this(in, inf, 512);\n }", "public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}", "public ASCTerrain(String zfile) {\n int count;\n try {\n ZipInputStream zis = new ZipInputStream(ASCTerrain.class.getResourceAsStream(\"/assets/\" + zfile));\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"Opening file: \" + ze.getName());\n byte[] asc = new byte[(int) ze.getSize()];\n count = 0;\n // Read the entire data for the file.\n while (count < ze.getSize()) {\n count += zis.read(asc, count, (int) (ze.getSize() - count));\n }\n process(readFile(asc));\n zis.closeEntry();\n zis.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public COSFilterFlateDecode(ASInputStream stream) throws IOException {\n super(stream);\n inflater = new Inflater();\n }", "private Dendrogram createDendrogramFromZip(byte[] zipBytes)\r\n\t\tthrows IOException\r\n\t{\r\n\t\tDendrogram d = new Dendrogram();\r\n\r\n\t\tZipInputStream zis = new ZipInputStream(new BufferedInputStream((new ByteArrayInputStream(zipBytes))));\r\n\t\tZipEntry entry;\r\n\r\n\t\twhile ((entry = zis.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tswitch (entry.getName())\r\n\t\t\t{\r\n\t\t\t\tcase \"order.txt\" : \t\tbyte[] orderBytes = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tlineOrder = readLineOrderFromByteArray(orderBytes);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"dendrogram.png\" :\td.getPng().image = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"dendrogram.pdf\" : d.getPdf().data = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn d;\r\n\t}", "public void setZip(String zip);", "private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n For uncompressed (stored) files, those calls do work.\n However, using ZipFile.getEntries() works for both compressed and \n uncompressed files.\n \n Now, from some simple testing I did, it seems that the value of CRC-32 is\n independent of the compression setting. So, it should be easy to pass this \n information on to the output entry.\n */\n String name = inputEntry .getName();\n if ( ! (inputEntry .isDirectory() || name .endsWith( \".class\" )) ) {\n try {\n InputStream input = zip.getInputStream( zip .getEntry( name ) );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n name = className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n ZipEntry outputEntry = new ZipEntry( name );\n outputEntry.setTime(inputEntry .getTime() );\n outputEntry.setExtra(inputEntry.getExtra());\n outputEntry.setComment(inputEntry.getComment());\n outputEntry.setTime(inputEntry.getTime());\n if (compression){\n outputEntry.setMethod(ZipEntry.DEFLATED);\n //Note, don't need to specify size or crc for compressed files.\n } else {\n outputEntry.setMethod(ZipEntry.STORED);\n outputEntry.setCrc(inputEntry.getCrc());\n outputEntry.setSize(inputEntry.getSize());\n }\n return outputEntry;\n }", "public InflaterInputStream(InputStream in) {\n this(in, in != null ? new Inflater() : null);\n // Android-changed: Unconditionally close external inflaters (b/26462400)\n // usesDefaultInflater = true;\n }", "private void extractFile(ZipInputStream zipIn, String filePath) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(filePath));\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = zipIn.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "private void extractFile(ZipInputStream zipIn, String filePath) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(filePath));\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = zipIn.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "public void readZip(File f) {\r\n try {\r\n unzip(f);\r\n File file = new File(workplace + \"/temp/USQ_IMAGE\");\r\n File old = new File(workplace + \"/old\");\r\n if(!old.exists())old.mkdir();\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n File files[] = file.listFiles();\r\n for(int i=0 ; i<files.length ; i++){\r\n readFile(files[i]);\r\n }\r\n //new session\r\n createSes(f);\r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, \"read zip file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n ex.printStackTrace();\r\n }\r\n }", "private static void extractFile(ZipInputStream zipIn, String filePath) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(filePath));\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = zipIn.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "public static void unzip(InputStream is, String outdir) throws IOException {\r\n\r\n\t\tbyte[] buffer = new byte[buffSize];\r\n\r\n\t\tjava.util.zip.ZipInputStream zis = new java.util.zip.ZipInputStream(new BufferedInputStream(is));\r\n\r\n\t\tjava.util.zip.ZipEntry entry;\r\n\r\n\t\ttry {\r\n\t\t\twhile ((entry = zis.getNextEntry()) != null) {\r\n\r\n\t\t\t\tFile of = new File(outdir + File.separator + entry.getName());\r\n\r\n\t\t\t\tif (entry.isDirectory()) {\r\n\t\t\t\t\tof.mkdirs();\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tFile xx = new File(of.getParent());\r\n\t\t\t\t\tif (!xx.exists()) {\r\n\t\t\t\t\t\tStack<String> todo = new Stack<String>();\r\n\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\ttodo.push(xx.getAbsolutePath());\r\n\t\t\t\t\t\t\txx = new File(xx.getParent());\r\n\t\t\t\t\t\t} while (!xx.exists());\r\n\t\t\t\t\t\twhile (todo.size() > 0) {\r\n\t\t\t\t\t\t\txx = new File(todo.pop());\r\n\t\t\t\t\t\t\tif (!xx.exists()) {\r\n\t\t\t\t\t\t\t\txx.mkdirs();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tBufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(of), buffer.length);\r\n\r\n\t\t\t\tcpio(new BufferedInputStream(zis), bos, \"unzip:\" + entry.getName());\r\n\r\n\t\t\t\tbos.flush();\r\n\t\t\t\tbos.close();\r\n\t\t\t}\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t// problem with chars in entry name likely\r\n\t\t}\r\n\t\tzis.close();\r\n\r\n\t}", "private static void deploy(SQLiteDatabase sqlLiteDb, InputStream dbStream) throws IOException {\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(dbStream));\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n Log.i(TAG, \"deploying zip entry: \" + entry);\n InputStreamReader dbReader = new InputStreamReader(zis);\n deploy(sqlLiteDb, dbReader);\n }\n }", "public static ExecutableReader create(ExecutableStream str) throws Exception {\n\t\tint identify = identify(str);\n\t\tExecutableReader reader = null;\n\t\tswitch(identify) {\n\t\t\tcase TYPEID_PE_x86:\n\t\t\t\treader = new ExecutableReader(str);\n\t\t\tbreak;\n\t\t\tcase TYPEID_PE_x64:\n\t\t\t\treader = new ExecutableReader64(str);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"[!] Arch not supported (Error: \"+identify+\")\");\n\t\t}\n\t\treturn reader;\n\t}", "public ClassFile(DataInput stream)\n throws IOException\n {\n load(stream);\n }", "public CalculatorParser(java.io.InputStream stream, String encoding) {\n try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }\n token_source = new CalculatorParserTokenManager(jj_input_stream);\n token = new Token();\n jj_ntk = -1;\n }", "public Unzipper(BitReader bitreader)\n {\n super();\n this.bitreader=bitreader;\n }", "SAPL parse(InputStream saplInputStream);", "public TarInputStream(Stream inputStream)\n\t{\n\t\tthis(inputStream, TarBuffer.DefaultBlockFactor);\n\t}", "Yylex(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public AnalizadorLexicoArchivo(java.io.Reader in) {\n this.zzReader = in;\n }", "public UnZipRunnable(String token, String source, String outPutPath) {\n this.token = token;\n this.sourceFile = source;\n this.outPutPath = outPutPath;\n }", "static void unzip(String zipFilePath, String destDirectory, boolean recursive, boolean teacherZip) throws IOException {\n\n if (students == null) {\n students = new ArrayList<Student>();\n }\n\n ZipInputStream zipIn = null;\n\n try {\n zipIn = new ZipInputStream(new FileInputStream(zipFilePath));\n ZipEntry entry = zipIn.getNextEntry();\n\n // iterates over entries in the zip file\n while (entry != null) {\n createFiles(destDirectory, zipIn, entry, recursive);\n\n zipIn.closeEntry();\n entry = zipIn.getNextEntry();\n }\n\n } catch (IOException e) {\n System.err.println(e.getMessage());\n Errors.setUnzipperError(true);\n\n } finally {\n if (zipIn != null) {\n zipIn.close();\n }\n }\n }", "public static InputStream openInputStreamGZ(ResourceLocator locator) throws IOException {\n\n InputStream inputStream = null;\n\n if (isDataURL(locator.getPath())) {\n String dataURL = locator.getPath();\n int commaIndex = dataURL.indexOf(',');\n if (commaIndex < 0) {\n throw new Error(\"dataURL missing commas\");\n }\n // TODO -- check optional media type - only text/plain supported\n String contents = URLDecoder.decode(dataURL.substring(commaIndex + 1), StandardCharsets.UTF_8);\n return new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8));\n } else if (HttpUtils.isRemoteURL(locator.getPath())) {\n URL url = HttpUtils.createURL(locator.getPath());\n inputStream = HttpUtils.getInstance().openConnectionStream(url);\n } else {\n String path = locator.getPath();\n if (path.startsWith(\"file://\")) {\n path = path.substring(7);\n }\n File file = new File(path);\n inputStream = new FileInputStream(file);\n }\n\n if (locator.getPath().endsWith(\"gz\")) {\n return new GZIPInputStream(inputStream);\n } else {\n return inputStream;\n }\n }", "public StringZipInputStream(InputStream out) {\n\t\tin = new BufferedInputStream(out);\n\t\treadingMap = new String[4096];\n\t\tfor (int charater = 0; charater < 256; charater++)\n\t\t\treadingMap[readingkeysCount++] = \"\" + (char) charater;\n\t\t// readingkeysCount = 256;\n\n\t}", "public void init(String zip, Application app) {\n if(weatherModel!=null){\n return;\n }\n\n //sets the original value to a banck weather model\n final MutableLiveData<WeatherModel> data = new MutableLiveData<>();\n data.setValue(new WeatherModel(\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"));\n weatherModel=data;\n\n //loads the model from the repo\n weatherModel = ((WeatherApp)app).getWeatherRepo().loadWeather(zip);\n\n }", "public void setZip(int zip) {\r\n\t\tthis.zip = zip;\r\n\t}", "public void extractFile(ZipInputStream zipIn, String filePath) throws IOException {\n final int BUFFER_SIZE = (int) 1e8;\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(filePath));\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = zipIn.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "protected void initZipOutputStream(ZipOutputStream zOut)\n throws IOException, BuildException\n {\n // add deployment descriptor first\n if (deploymentDescriptor != null) {\n zipDir(new File(deploymentDescriptor.getParent()), zOut, \n \"WEB-INF/\");\n super.zipFile(deploymentDescriptor, zOut, \"WEB-INF/web.xml\");\n } else {\n throw new BuildException(\"webxml attribute is required\", location);\n }\n\n addFiles(libFileSets, zOut, \"WEB-INF/lib/\");\n addFiles(classesFileSets, zOut, \"WEB-INF/classes/\");\n addFiles(webInfFileSets, zOut, \"WEB-INF/\");\n addPrefixedFiles(locFileSets, zOut);\n\n super.initZipOutputStream(zOut);\n }", "public static int convertZipToZone(int zip) {\n\t\t// HINT: This always return 0 but that's not right.\n\t\t// Fix it so that it returns the correct zone based on the zip.\n\t\t// You don't need a helper function for this.\n\t\treturn 0;\n\t}", "public void initFromBackup(InputStream is) throws IOException {\n try (GzipCompressorInputStream gzIn = new GzipCompressorInputStream(is);\n JournalEntryStreamReader reader = new JournalEntryStreamReader(gzIn)) {\n List<Master> masters = mRegistry.getServers();\n\n // Executor for applying backup.\n ExecutorService es = Executors.newFixedThreadPool(\n 2, ThreadFactoryUtils.build(\"master-backup-%d\", true));\n CompletionService<Boolean> completionService = new ExecutorCompletionService<>(es);\n\n // List of active tasks.\n Set<Future<?>> activeTasks = new HashSet<>();\n\n // Entry queue will be used as a buffer and synchronization between readers and appliers.\n LinkedBlockingQueue<JournalEntry> journalEntryQueue = new LinkedBlockingQueue<>(\n Configuration.getInt(PropertyKey.MASTER_BACKUP_ENTRY_BUFFER_COUNT));\n\n // Whether still reading from backup.\n AtomicBoolean readingActive = new AtomicBoolean(true);\n\n // Index masters by name.\n Map<String, Master> mastersByName = Maps.uniqueIndex(masters, Master::getName);\n\n // Shows how many entries have been applied.\n AtomicLong appliedEntryCount = new AtomicLong(0);\n\n // Progress executor\n ScheduledExecutorService traceExecutor = Executors.newScheduledThreadPool(1,\n ThreadFactoryUtils.build(\"master-backup-tracer-%d\", true));\n traceExecutor.scheduleAtFixedRate(() -> {\n LOG.info(\"{} entries from backup applied so far...\", appliedEntryCount.get());\n }, 30, 30, TimeUnit.SECONDS);\n\n // Start the timer for backup metrics.\n long startRestoreTime = System.currentTimeMillis();\n\n // Create backup reader task.\n activeTasks.add(completionService.submit(() -> {\n try {\n JournalEntry entry;\n while ((entry = reader.readEntry()) != null) {\n journalEntryQueue.put(entry);\n }\n // Put termination entry for signaling the applier.\n journalEntryQueue\n .put(JournalEntry.newBuilder().setSequenceNumber(TERMINATION_SEQ).build());\n return true;\n } catch (InterruptedException ie) {\n // Continue interrupt chain.\n Thread.currentThread().interrupt();\n throw new RuntimeException(\"Thread interrupted while reading from backup stream.\", ie);\n } finally {\n readingActive.set(false);\n }\n }));\n\n // Create applier task.\n activeTasks.add(completionService.submit(() -> {\n try {\n // Read entries from backup.\n while (readingActive.get() || journalEntryQueue.size() > 0) {\n // Drain current elements.\n // Draining entries makes it possible to allow writes while current ones are\n // being applied.\n List<JournalEntry> drainedEntries = new LinkedList<>();\n if (0 == journalEntryQueue.drainTo(drainedEntries)) {\n // No elements at the moment. Fall back to polling.\n JournalEntry entry = journalEntryQueue.poll(10, TimeUnit.MILLISECONDS);\n if (entry == null) {\n // No entry yet.\n continue;\n }\n drainedEntries.add(entry);\n }\n // Apply drained entries.\n // Map for storing journal contexts.\n Map<Master, JournalContext> masterJCMap = new HashMap<>();\n try {\n // Pre-create journal contexts.\n // They should be closed after applying drained entries.\n for (Master master : masters) {\n masterJCMap.put(master, master.createJournalContext());\n }\n // Apply entries.\n for (JournalEntry entry : drainedEntries) {\n // Check for termination entry.\n if (entry.getSequenceNumber() == TERMINATION_SEQ) {\n // Reading finished.\n return true;\n }\n String masterName;\n try {\n masterName = JournalEntryAssociation.getMasterForEntry(entry);\n } catch (IllegalStateException ise) {\n ProcessUtils.fatalError(LOG, ise, \"Unrecognized journal entry: %s\", entry);\n throw ise;\n }\n try {\n Master master = mastersByName.get(masterName);\n master.applyAndJournal(masterJCMap.get(master), entry);\n appliedEntryCount.incrementAndGet();\n } catch (Exception e) {\n JournalUtils.handleJournalReplayFailure(LOG, e, \"Failed to apply \"\n + \"journal entry to master %s. Entry: %s\", masterName, entry);\n }\n }\n } finally {\n // Close journal contexts to ensure applied entries are flushed,\n // before next round.\n for (JournalContext journalContext : masterJCMap.values()) {\n journalContext.close();\n }\n }\n }\n return true;\n } catch (InterruptedException ie) {\n // Continue interrupt chain.\n Thread.currentThread().interrupt();\n throw new RuntimeException(\"Thread interrupted while applying backup content.\", ie);\n }\n }));\n\n // Wait until backup tasks are completed and stop metrics timer.\n try {\n safeWaitTasks(activeTasks, completionService);\n } finally {\n mRestoreTimeMs = System.currentTimeMillis() - startRestoreTime;\n mRestoreEntriesCount = appliedEntryCount.get();\n traceExecutor.shutdownNow();\n es.shutdown();\n }\n\n LOG.info(\"Restored {} entries from backup\", appliedEntryCount.get());\n }\n }", "private Map<String, SiteData> extractDataFromZip(InputStream attachmentInputStream) {\n\n Map<String, SiteData> sitesData = new HashMap<String, SiteData>();\n\n final NonCloseableZipInputStream zis = new NonCloseableZipInputStream(attachmentInputStream);\n\n try {\n ZipEntry entry;\n while ((entry = zis.getNextEntry()) != null) {\n // Skip directories\n if (entry.isDirectory()) {\n continue;\n }\n String filePath = entry.getName();\n // Skip empty entries (this allows empty zip files to not cause\n // exceptions).\n if (filePath.equals(\"\") || !filePath.startsWith(SiteConstants.SITE_CONTENTS_ROOT_PATH + \"/\")) {\n continue;\n }\n\n String siteName = extractSiteNameFromPath(filePath);\n\n // if we are in a site (for example /content/sites/acme), take only\n // the files relative to this site\n if (importedSiteName != null && !importedSiteName.equals(siteName)) {\n continue;\n }\n\n // metadata file ?\n if (filePath.endsWith(SiteMetaDataExportTask.FILENAME)) {\n // Unmarshall metadata xml file\n XStream xstream = new XStream();\n xstream.alias(\"metadata\", SiteMetaData.class);\n InputStreamReader isr = new InputStreamReader(zis, \"UTF-8\");\n SiteMetaData siteMetadata = (SiteMetaData) xstream.fromXML(isr);\n\n // Save unmarshalled metadata\n SiteData siteData = sitesData.get(siteName);\n if (siteData == null) {\n siteData = new SiteData();\n }\n siteData.setSiteMetadata(siteMetadata);\n sitesData.put(siteName, siteData);\n }\n // seo file ?\n else if (filePath.endsWith(SiteSEOExportTask.FILENAME)) {\n XStream xStream = new XStream();\n xStream.alias(\"seo\", List.class);\n InputStreamReader isr = new InputStreamReader(zis, \"UTF-8\");\n\n @SuppressWarnings(\"unchecked\")\n List<PageMetadataModel> models = (List<PageMetadataModel>) xStream.fromXML(isr);\n if (models != null && !models.isEmpty()) {\n for (PageMetadataModel pageMetadataModel : models) {\n seoService.storePageMetadata(pageMetadataModel, siteName, false);\n }\n }\n }\n // sysview file ?\n else {\n // Unmarshall sysview xml file to String\n log.info(\"Collecting the node \" + filePath);\n String nodeContent = IOUtils.toString(zis, \"UTF-8\");\n\n // Save unmarshalled sysview\n SiteData siteData = sitesData.get(siteName);\n if (siteData == null) {\n siteData = new SiteData();\n }\n Map<String, String> siteNodes = siteData.getNodeExportFiles();\n if (siteNodes == null) {\n siteNodes = new HashMap<String, String>();\n }\n siteNodes.put(filePath, nodeContent);\n siteData.setNodeExportFiles(siteNodes);\n sitesData.put(siteName, siteData);\n }\n }\n\n zis.reallyClose();\n } catch (Exception e) {\n throw new OperationException(this.operationName, \"Exception when reading the underlying data stream from import.\", e);\n }\n\n return sitesData;\n\n }", "Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "public void setupZipFile(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\tif (!args[0].endsWith(\".zip\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"zip file expected, but: \" + args[0]);\n\t\t\t}\n\t\t\tbuildDirectory = new File(\n\t\t\t\t\tgetBuildDirectory(),\n\t\t\t\t\tString.valueOf(System.currentTimeMillis()));\n\t\t\ttool_builddir = buildDirectory.toString();\n\t\t\tif (!buildDirectory.mkdirs()) {\n\t\t\t\tLoggedUtils.ignore(\"Unable to create directory \" + tool_builddir, null);\n\t\t\t}\n\t\t\tzipFile = args[0];\n\t\t} else if (requireZipArgument){\n\t\t\tthrow new IllegalArgumentException(\"zip file is expected as a first argument\");\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\r\n ZipDatabase zipDB = new ZipDatabase();\r\n\r\n BufferedReader br = \r\n new BufferedReader(new InputStreamReader(System.in));\r\n while (true) {\r\n System.out.print(\"Enter zip: \");\r\n String zip = br.readLine();\r\n System.out.println(\"Input: \" + zip);\r\n\r\n ZipInfo info = zipDB.lookup(zip);\r\n System.out.println(\"Output: \" + info);\r\n }\r\n }", "public void loadGzipedSchematic(File f) throws IOException {\nDataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(f)));\nloadUncompressedSchematic(in);\nin.close();\n}", "public static void unzip(String csarFilename, Map<String, ToscaServiceTemplate> unzippedTemplates, String... filter)\n throws PolicyDecodingException, CoderException {\n try (var zipFile = new ZipFile(csarFilename)) {\n int totalSizeArchive = 0;\n int totalEntryArchive = 0;\n\n Enumeration<? extends ZipEntry> entries = zipFile.entries();\n\n while (entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n totalEntryArchive++;\n\n if (checkEntryFilter(entry.getName(), filter)) {\n validateZipEntry(entry.getName(), csarFilename);\n InputStream entryData = new BufferedInputStream(zipFile.getInputStream(entry));\n\n int bufferedBytes;\n byte[] buffer = new byte[2048];\n int totalSizeEntry = 0;\n\n boolean isValidThreshold = true;\n while ((bufferedBytes = entryData.read(buffer)) > 0 && isValidThreshold) {\n totalSizeEntry += bufferedBytes;\n totalSizeArchive += bufferedBytes;\n\n double compressionRatio = Math.floorDiv(totalSizeEntry, entry.getCompressedSize());\n isValidThreshold = compressionRatio <= THRESHOLD_RATIO;\n }\n\n unzippedTemplates.put(entry.getName(), decodeFile(entry.getName(), zipFile.getInputStream(entry)));\n }\n\n if (totalSizeArchive > THRESHOLD_SIZE || totalEntryArchive > THRESHOLD_ENTRIES) {\n // the uncompressed data size is too much for the application resource capacity\n break;\n }\n }\n } catch (IOException exception) {\n throw new PolicyDecodingException(\"Couldn't read the zipFile\", exception);\n }\n }", "private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }", "public void setZip(String zip) {\r\n this.zip = zip == null ? null : zip.trim();\r\n }", "abstract void initZipper(SynchronizationRequest req, Zipper z) \n throws IOException, ConfigException;", "public InputStream getStream() {\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }", "public static void main(String[] args) throws IOException {\n\n _project _sc = _project.of();\n //reads from a maven-central jar file\n _downloadArchiveConsumer.of(\"https://search.maven.org/remotecontent?filepath=com/github/javaparser/javaparser-core/3.15.18/javaparser-core-3.15.18-sources.jar\",\n (ZipEntry ze, InputStream is)-> {\n if( ze.getName().endsWith(\".java\")){\n _sc.add( _codeUnit.of(is) );\n }\n });\n System.out.println( _sc.size() );\n\n _project _src = _githubProject.of(\"https://github.com/edefazio/bincat\").load();\n //_sources _src = _sources.of();\n //_downloadArchive _da = _downloadArchive.of(url, (ZipEntry ze,InputStream is)-> {\n // if( ze.getName().endsWith(\".java\")){\n // _src.add( _codeUnit.of(is) );\n // }\n //});\n /*\n try( InputStream inputStream = url.openStream();\n ZipInputStream zis = new ZipInputStream(inputStream) ) {\n\n byte[] buffer = new byte[2048];\n\n while (zis.available() > 0) {\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"reading \" + ze.getName());\n\n if( ze.isDirectory() ){\n ze.\n } else if( ze.)\n\n if (!ze.isDirectory() && ze.getName().endsWith(\".java\")) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int len;\n while ((len = zis.read(buffer)) > 0) {\n baos.write(buffer, 0, len);\n }\n try {\n System.out.println(\"adding\" + ze.getName());\n _src.add(_codeUnit.of(baos.toString()));\n } catch (Exception e) {\n throw new _ioException(\"could not read from entry \" + ze.getName());\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n */\n\n System.out.println( \"finished reading \"+ _src.size());\n }", "public ZipFileWriter(String zipFile) throws FileNotFoundException {\r\n\t\tFileOutputStream fos = new FileOutputStream(zipFile);\r\n\t\t// ajout du checksum\r\n\t\tCheckedOutputStream checksum = new CheckedOutputStream(fos,\r\n\t\t\t\tnew Adler32());\r\n\t\tthis.zos = new ZipOutputStream(new BufferedOutputStream(checksum));\r\n\t}", "public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }", "public NestedZipFile(String name) throws IOException {\n this(new File(name));\n }", "public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}", "public void uploadZipCodeWoeID(InputStream in) {\n BufferedReader br = null;\n try {\n String line;\n br = new BufferedReader(new InputStreamReader(in));\n while ((line = br.readLine()) != null) {\n String tokens[] = line.split(\",\");\n zipCodeStateNameMap.put(tokens[1], tokens[0]);\n zipCodeWoeIDMap.put(tokens[1],tokens[2]);\n woeidList.add(tokens[2]);\n woeIDZipCodeMap.put(tokens[2],tokens[1]);\n }\n } catch (IOException e) {\n Throwables.propagate(e);\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n Throwables.propagate(ex);\n }\n }\n }", "private static void processZip(File zip_name, final Histogram class_use, final Histogram method_use) {\n ZipFile zip_file;\n try {\n zip_file = new ZipFile(zip_name);\n } catch (Exception e) {\n throw new IllegalStateException(\"while reading archive '\"+zip_name+\"': \"+e);\n }\n final Enumeration< ? extends ZipEntry> en = zip_file.entries();\n while (en.hasMoreElements()) {\n final ZipEntry e = en.nextElement();\n final String e_name = e.getName();\n if (e.isDirectory()) continue;\n if (e_name.endsWith(\".class\")){\n try {\n final InputStream object_stream=zip_file.getInputStream(e);\n MethodCallEnumerator.analyzeClass(object_stream,class_use,method_use);\n object_stream.close();\n } catch (Exception ex) {\n throw new IllegalStateException(\"while processing: \"+ ex);\n }\n } \n }\n try {\n zip_file.close();\n } catch (Exception e) {\n throw new IllegalStateException(\"while reading archive: \" + e);\n }\n }", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }", "public void setZip(String s) {\r\n\t\tzip = s;\t\r\n\t}", "public InputStream getInputStream() throws IOException {\r\n if (!connected)\r\n connect();\r\n\r\n return zipFile.getInputStream(zipEntry);\r\n }", "ReleaseFile parse( InputStream is ) throws IOException;", "public static void unzip(InputStream inputStream, UnzipCallback unzipListener) throws IOException {\r\n\t\tZipInputStream zis = new ZipInputStream(inputStream);\r\n\t\t\r\n\t\tfor(ZipEntry zipEntry = zis.getNextEntry(); zipEntry != null; zipEntry = zis.getNextEntry()) {\r\n\t\t\tunzipListener.newZipEntry(zipEntry, zis);\r\n\t\t\tzis.closeEntry();\r\n\t\t}\r\n\t}", "private void uploadStreamInternal(String stageName,\n String destPrefix,\n InputStream inputStream,\n String destFileName,\n boolean compressData)\n throws SQLException\n {\n logger.debug(\"upload data from stream: stageName={}\" +\n \", destPrefix={}, destFileName={}\",\n stageName, destPrefix, destFileName);\n\n if (stageName == null)\n throw new SnowflakeSQLException(SqlState.INTERNAL_ERROR,\n ErrorCode.INTERNAL_ERROR.getMessageCode(),\n \"stage name is null\");\n\n if (destFileName == null)\n throw new SnowflakeSQLException(SqlState.INTERNAL_ERROR,\n ErrorCode.INTERNAL_ERROR.getMessageCode(),\n \"stage name is null\");\n\n SnowflakeStatementV1 stmt = new SnowflakeStatementV1(this);\n\n StringBuilder putCommand = new StringBuilder();\n\n // use a placeholder for source file\n putCommand.append(\"put file:///tmp/placeholder \");\n\n // add stage name\n if (!stageName.startsWith(\"@\"))\n putCommand.append(\"@\");\n putCommand.append(stageName);\n\n // add dest prefix\n if (destPrefix != null)\n {\n if (!destPrefix.startsWith(\"/\"))\n putCommand.append(\"/\");\n putCommand.append(destPrefix);\n }\n\n putCommand.append(\" overwrite=true\");\n\n SnowflakeFileTransferAgent transferAgent = null;\n transferAgent = new SnowflakeFileTransferAgent(putCommand.toString(),\n sfSession, stmt.getSfStatement());\n\n transferAgent.setSourceStream(inputStream);\n transferAgent.setDestFileNameForStreamSource(destFileName);\n transferAgent.setCompressSourceFromStream(compressData);\n transferAgent.execute();\n\n stmt.close();\n }", "public _RestFlexLexer(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public FilesArchived(File rootDir, String zip) {\n this.root = rootDir;\n this.compression = (\"zstd\".equals(zip)) ? Compression.ZSTD : Compression.GZIP;\n rescan();\n Thread thread = new Thread(this::run);\n thread.setDaemon(true);\n thread.setName(\"FilesArchived-maintainer\");\n thread.start();\n }", "private ZipCodes() {}", "Lexico(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "@Test\n\tpublic void testConstructorInputStream() throws Exception\n\t{\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tsmall_model.writeModelBinary(baos);\n\t\t\n\t\t//System.out.println(small_model);\n\n\t\tGeoTessModel model = new GeoTessModel(new DataInputStream(new ByteArrayInputStream(baos.toByteArray())));\n\t\t\n\t\t//System.out.println(model);\n\t\t\n\t\tassertTrue(small_model.equals(model));\n\t\t\n\t\t// write model to byte array in ascii format\n\t\tbaos = new ByteArrayOutputStream();\n\t\tsmall_model.writeModelAscii(baos);\n\t\t\n\t\tmodel = new GeoTessModel(new Scanner(new ByteArrayInputStream(baos.toByteArray())));\n\t\t\n\t\t//System.out.println(model);\n\t\t\n\t\tassertTrue(small_model.equals(model));\n\t}", "Map<String, InputStream> extract(TypedValue<InputStream> archive) throws DecompressionException;", "public StockReport init(InputStream inputStream){\n\t\tmStockReport = new StockReport();\n\t\t/**\n\t\t * counters used to determine if the Scanner is \n\t\t * on the first line or the last line\n\t\t */\n\t\tint counter = 0;\n\t\tint lineCount = 0;\n\t\t/**\n\t\t * initiate scanner with input.def file\n\t\t */\n\t\tScanner scanner = new Scanner(inputStream);\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString line = scanner.nextLine();\n\t\t\tcounter++;\n\t\t\t/**\n\t\t\t * check and make sure we are not first line \n\t\t\t * or last line, if not parserRecord\n\t\t\t */\n\t\t\tif(counter > 1 && counter < lineCount){\n\t\t\t\tparseRecord(line);\n\t\t\t/**\n\t\t\t * if on the first line calculate how many lines\n\t\t\t * there are by adding two to the value of the \n\t\t\t * first line\n\t\t\t */\n\t\t\t}else if(counter == 1){\n\t\t\t\tlineCount = Integer.parseInt(line)+2;\n\t\t\t/**\n\t\t\t * if this is the last line set the Date Cut off\n\t\t\t * and the Market Price for vesting in the StockReport Model\n\t\t\t */\n\t\t\t}else{\n\t\t\t\tString[] split = line.split(\",\");\n\t\t\t\tmStockReport.setDateCut(Integer.parseInt(split[RECORD_DATECUT]));\n\t\t\t\tmStockReport.setmMarketPrice(Double.parseDouble(split[RECORD_MARKETPRICE]));\n\t\t\t}\n\t\t }\n\t\tscanner.close();\n\t\treturn mStockReport;\n\t}", "public InputStream createInputStream(List<String> stopFilters) throws IOException {\n/* 255 */ InputStream is = this.stream.createRawInputStream();\n/* 256 */ ByteArrayOutputStream os = new ByteArrayOutputStream();\n/* 257 */ List<COSName> filters = getFilters();\n/* 258 */ if (filters != null)\n/* */ {\n/* 260 */ for (int i = 0; i < filters.size(); i++) {\n/* */ \n/* 262 */ COSName nextFilter = filters.get(i);\n/* 263 */ if (stopFilters != null && stopFilters.contains(nextFilter.getName())) {\n/* */ break;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 269 */ Filter filter = FilterFactory.INSTANCE.getFilter(nextFilter);\n/* 270 */ filter.decode(is, os, (COSDictionary)this.stream, i);\n/* 271 */ IOUtils.closeQuietly(is);\n/* 272 */ is = new ByteArrayInputStream(os.toByteArray());\n/* 273 */ os.reset();\n/* */ } \n/* */ }\n/* */ \n/* 277 */ return is;\n/* */ }", "@Override\n\tpublic void loadModels(ZipInputStream zin)\n\t{\n\t\tf_xmls = new JointFtrXml[1];\n\t\ts_models = null;\n\t\tZipEntry zEntry;\n\t\tString entry;\n\t\t\t\t\n\t\ttry\n\t\t{\n\t\t\twhile ((zEntry = zin.getNextEntry()) != null)\n\t\t\t{\n\t\t\t\tentry = zEntry.getName();\n\t\t\t\t\n\t\t\t\tif (entry.equals(ENTRY_CONFIGURATION))\n\t\t\t\t\tloadDefaultConfiguration(zin);\n\t\t\t\telse if (entry.startsWith(ENTRY_FEATURE))\n\t\t\t\t\tloadFeatureTemplates(zin, Integer.parseInt(entry.substring(ENTRY_FEATURE.length())));\n\t\t\t\telse if (entry.startsWith(ENTRY_FRAMES))\n\t\t\t\t\tloadFrames(zin);\n\t\t\t\telse if (entry.equals(ENTRY_LEXICA))\n\t\t\t\t\tloadLexica(zin);\n\t\t\t\telse if (entry.startsWith(ENTRY_MODEL))\n\t\t\t\t\tloadStatisticalModels(zin, Integer.parseInt(entry.substring(ENTRY_MODEL.length())));\n\t\t\t\telse if (entry.startsWith(ENTRY_WEIGHTS))\n\t\t\t\t\tloadWeightVector(zin, Integer.parseInt(entry.substring(ENTRY_WEIGHTS.length())));\n\t\t\t}\t\t\n\t\t}\n\t\tcatch (Exception e) {e.printStackTrace();}\n\t}", "public static InputFactory createFactory( DataSource datsrc,\n long offset, long leng )\n throws IOException {\n boolean isFile = datsrc instanceof FileDataSource;\n if ( isFile && datsrc.getCompression() == Compression.NONE ) {\n File uncompressedFile = ((FileDataSource) datsrc).getFile();\n return createFileFactory( uncompressedFile, offset, leng );\n }\n else {\n if ( isFile ) {\n logger_.warning( \"Can't map compressed file \" + datsrc.getName()\n + \" - uncompressing may improve performance\" );\n }\n else {\n logger_.info( \"Will read stream (not random-access): \"\n + datsrc );\n }\n return createSequentialFactory( datsrc, offset, leng );\n }\n }", "public TarInputStream(Stream inputStream, int blockFactor)\n\t{\n\t\tthis.inputStream = inputStream;\n\t\ttarBuffer = TarBuffer.CreateInputTarBuffer(inputStream, blockFactor);\n\t}", "public static ZipEntries from(byte[] zip, Predicate<String> entryNameMatcher, int maxEntrySizeInBytes, boolean throwIfEntryExceedsMaxSize) {\n\n Options options = Options.standard()\n .pathPredicate(entryNameMatcher)\n .maxSize(2 * (long) Math.pow(1024, 3)) // 2 GB\n .maxEntrySize(maxEntrySizeInBytes)\n .maxEntries(1024)\n .truncateEntry(!throwIfEntryExceedsMaxSize);\n List<ZipEntryWithContent> entries = new ArrayList<>();\n try (ArchiveStreamReader reader = ArchiveStreamReader.ofZip(new ByteArrayInputStream(zip), options)) {\n ArchiveFile file;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n while ((file = reader.readNextTo(baos)) != null) {\n entries.add(new ZipEntryWithContent(file.path().toString(),\n Optional.of(baos.toByteArray()).filter(b -> b.length > 0),\n file.size()));\n baos.reset();\n }\n }\n return new ZipEntries(entries);\n }", "public XGMMLReader(InputStream is) {\n \t\tthis.networkStream = is;\n \t\tinitialize();\n \t}", "public static final void unzip(String zipfileName, String baseOutputDir) {\r\n Enumeration entries;\r\n ZipFile zipFile;\r\n try {\r\n zipFile = new ZipFile(zipfileName);\r\n entries = zipFile.entries();\r\n while (entries.hasMoreElements()) {\r\n ZipEntry entry = (ZipEntry) entries.nextElement();\r\n String entryName = entry.getName();\r\n String theName = baseOutputDir + '/' + entryName;\r\n if (entry.isDirectory()) {\r\n // Assume directories are stored parents first then children.\r\n System.out.println(\"Extracting directory: \" + entry.getName());\r\n // This is not robust, just for demonstration purposes.\r\n (new File(theName)).mkdirs();\r\n continue;\r\n }\r\n //(new File(theName)).mkdirs();\r\n forceParentDirectories(theName);\r\n System.out.println(\"Extracting file: \" + theName);\r\n copyInputStream(zipFile.getInputStream(entry), new BufferedOutputStream(new FileOutputStream(theName)));\r\n }\r\n zipFile.close();\r\n } catch (Exception ioe) {\r\n System.err.println(\"Unhandled exception:\");\r\n ioe.printStackTrace();\r\n return;\r\n }\r\n }", "public static boolean unzipFiles(String folder, InputStream is) {\n /**\n * List of files we want to zip, folder is parent of app preferences folder\n * Shared prefs has all Avare data except tracks\n * TODO : Tracks\n */\n\n /**\n * Zip to output stream (could be File or Drive)\n */\n try {\n ZipInputStream zis = new ZipInputStream(is);\n\n ZipEntry ze = zis.getNextEntry();\n\n while(ze != null) {\n String fileName = ze.getName();\n File newFile = new File(folder + File.separator + fileName);\n\n //create all non existent folders\n new File(newFile.getParent()).mkdirs();\n\n FileOutputStream fos = new FileOutputStream(newFile);\n\n int len;\n byte[] bytes = new byte[4096];\n while ((len = zis.read(bytes)) > 0) {\n fos.write(bytes, 0, len);\n }\n\n fos.close();\n ze = zis.getNextEntry();\n }\n\n zis.closeEntry();\n zis.close();\n\n } catch (Exception e) {\n return false;\n }\n return true;\n }", "private String processZipFile(File zip, ReportPortalUser.ProjectDetails projectDetails,\n ReportPortalUser user, String baseUrl, Map<String, String> params) {\n String savedLaunchId = null;\n try (ZipFile zipFile = new ZipFile(zip)) {\n String launchId = startLaunch(projectDetails, user,\n zip.getName().substring(0, zip.getName().indexOf(\".\" + ZIP_EXTENSION)), params);\n savedLaunchId = launchId;\n CompletableFuture[] futures = zipFile.stream().filter(isFile.and(isXml)).map(zipEntry -> {\n XunitParseJob job = xmlParseJobProvider.get()\n .withParameters(projectDetails, launchId, user, getEntryStream(zipFile, zipEntry),\n params.get(SKIPPED_IS_NOT_ISSUE) != null && Boolean.parseBoolean(params.get(\n SKIPPED_IS_NOT_ISSUE)));\n return CompletableFuture.supplyAsync(job::call, service);\n }).toArray(CompletableFuture[]::new);\n ParseResults parseResults = processResults(futures);\n finishLaunch(launchId, projectDetails, user, parseResults, baseUrl);\n return launchId;\n } catch (Exception e) {\n updateBrokenLaunch(savedLaunchId);\n throw new ReportPortalException(ErrorType.IMPORT_FILE_ERROR, cleanMessage(e));\n }\n }", "private ZipUtils() {\n }", "public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException {\n super(entry);\n setName(entry.getName());\n final byte[] extra = entry.getExtra();\n if (extra != null) {\n setExtraFields(ExtraFieldUtils.parse(extra, true, ExtraFieldUtils.UnparseableExtraField.READ));\n } else {\n setExtra();\n }\n setMethod(entry.getMethod());\n this.size = entry.getSize();\n }" ]
[ "0.5953294", "0.58637756", "0.576788", "0.5661004", "0.5595584", "0.5588421", "0.5534015", "0.5429545", "0.52275574", "0.5216642", "0.52161896", "0.5195712", "0.5007349", "0.49982312", "0.4962653", "0.4928336", "0.4882866", "0.48171788", "0.4805315", "0.48013932", "0.47908184", "0.47866112", "0.4786076", "0.47599292", "0.475981", "0.47182554", "0.46813878", "0.46671742", "0.46643078", "0.46631962", "0.4658267", "0.46553114", "0.46444175", "0.46256423", "0.46148872", "0.46148872", "0.461319", "0.4601061", "0.46000996", "0.45922002", "0.4584629", "0.456864", "0.45508927", "0.45489982", "0.4539379", "0.4534637", "0.45198378", "0.45169538", "0.45014814", "0.45007017", "0.44940168", "0.44885537", "0.44815674", "0.44769418", "0.4468649", "0.4461713", "0.4458822", "0.44488692", "0.44486645", "0.4447255", "0.44326532", "0.44317794", "0.44259235", "0.44223383", "0.44215703", "0.44185418", "0.44141948", "0.44133103", "0.44087556", "0.44035792", "0.43957716", "0.43932143", "0.43732354", "0.43720958", "0.43720636", "0.43701512", "0.43696538", "0.43665946", "0.4365663", "0.43615773", "0.43529275", "0.43408868", "0.4340409", "0.43352127", "0.43350735", "0.43287167", "0.43156865", "0.43128064", "0.43128052", "0.4310274", "0.4304218", "0.43028808", "0.42990392", "0.4298397", "0.42979863", "0.4297034", "0.4295089", "0.4292085", "0.4291184", "0.42892185" ]
0.4819678
17
Helper method that will read the InputStream repeatedly until the given array is filled.
private static void read(final InputStream istream, final byte[] bytes) throws IOException { int pos = 0; while (pos < bytes.length) { int read = istream.read(bytes, pos, bytes.length - pos); if (read < 0) { throw new RuntimeException("premature EOF"); } pos += read; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int readFill(InputStream stream, byte[] buffer)\n throws IOException {\n int r = buffer.length;\n while (r > 0) {\n int p = buffer.length - r;\n int c = stream.read(buffer, p, r);\n if (c == -1) {\n break;\n }\n r -= c;\n }\n return buffer.length - r;\n\n }", "public static void main(String[] args) {\n byte[] arr = {1, 2, 3, 4, 5};\n\n try {\n ByteArrayInputStream one = new ByteArrayInputStream(arr);\n System.out.println(one.available());\n\n for(int i = 0; i< arr.length; i++){\n\n int data = one.read();\n System.out.println(data);\n }\n one.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n\n\n }\n\n }", "void fill( byte b[] , int len )\n \tthrows IOException {\n\t int remaining = _l - _o;\n\t //\n\t // Did we alread read enough bytes?\n\t if(remaining >= len) {\n\t \tSystem.arraycopy(_random, _o, b, 0, len);\t \t\n\t \t_o += len;\n\t \t\n\t \treturn;\n\t }\n\t //\n\t // Take the complete remaining bytes from buffer\n\t if(remaining > 0) {\n\t \tSystem.arraycopy(_random, _o, b, 0, remaining);\n\t \t//\n\t \t// Reduced needed bytes\n\t \tlen -= remaining;\n\t \t//\n\t \t// leave it up to the next ensure a continuous block\n\t \t_o = _l;\n\t }\n\t //\n\t // Read the rest direct from the InputStream\n\t while ( len > 0 ) {\n\t final int bytesRead = _in.read( b , remaining , len );\n\t \t//\n\t \t// Reduced needed bytes\t \n\t len -= bytesRead;\n\t //\n\t // Increase the number of read bytes because we reading directly from _in\n\t _read += bytesRead;\n\n\t remaining += bytesRead;\n\t }\n\t }", "private void blockingRead(InputStream istream, byte[] buf, int requestedBytes) throws\n IOException {\n int offset = 0;\n while (offset < requestedBytes) {\n int read = istream.read(buf, offset, requestedBytes - offset);\n\n if (read < 0) {\n throw new IOException(\"Connection interrupted\");\n }\n\n offset += read;\n }\n }", "private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}", "private int _readMore(InputStream in, byte[] readBuffer, int inputPtr, int inputEnd, int maxRead)\n/* */ throws IOException\n/* */ {\n/* 1580 */ int i = 0;\n/* 1581 */ while (inputPtr < inputEnd) {\n/* 1582 */ readBuffer[(i++)] = readBuffer[(inputPtr++)];\n/* */ }\n/* 1584 */ inputPtr = 0;\n/* 1585 */ inputEnd = i;\n/* 1586 */ maxRead = Math.min(maxRead, readBuffer.length);\n/* */ do\n/* */ {\n/* 1589 */ int length = maxRead - inputEnd;\n/* 1590 */ if (length == 0) {\n/* */ break;\n/* */ }\n/* 1593 */ int count = in.read(readBuffer, inputEnd, length);\n/* 1594 */ if (count < 0) {\n/* 1595 */ return inputEnd;\n/* */ }\n/* 1597 */ inputEnd += count;\n/* 1598 */ } while (inputEnd < 3);\n/* 1599 */ return inputEnd;\n/* */ }", "public static byte[] readAll(InputStream is) {\n\t\treturn readAll(is, 1024);\n\t}", "private int fillBuffer(InputStream is) throws IOException {\n int len = buffer.length;\n int pos = 0;\n while (pos < buffer.length) {\n int read = is.read(buffer, pos, len);\n if (read == -1)\n return pos;\n pos += read;\n len -= read;\n }\n return pos;\n }", "@Override\n\tpublic int read(byte[] array) throws IOException {\n\t\treturn read(array, 0, array.length);\n\t}", "public void read( int readIndex, byte[] array, int firstIndex,\n\t\t\tint count );", "public\n static\n void\n fill( InputStream is,\n byte[] dest,\n int offset,\n int len )\n throws IOException\n {\n inputs.notNull( is, \"is\" );\n inputs.notNull( dest, \"dest\" );\n inputs.nonnegativeI( offset, \"offset\" );\n inputs.nonnegativeI( len, \"len\" );\n\n inputs.isTruef( \n offset + len <= dest.length,\n \"offset (%d) + length (%d) > dest.length (%d)\", \n offset, len, dest.length );\n\n while ( len > 0 )\n {\n int i = is.read( dest, offset, len ); \n if ( i < 0 ) throw new EOFException(); \n else\n {\n offset += i;\n len -= i;\n }\n }\n }", "private static int readFully(InputStream in, byte[] buf, int off, int len) throws IOException {\n/* 1144 */ if (len == 0)\n/* 1145 */ return 0; \n/* 1146 */ int total = 0;\n/* 1147 */ while (len > 0) {\n/* 1148 */ int bsize = in.read(buf, off, len);\n/* 1149 */ if (bsize <= 0)\n/* */ break; \n/* 1151 */ off += bsize;\n/* 1152 */ total += bsize;\n/* 1153 */ len -= bsize;\n/* */ } \n/* 1155 */ return (total > 0) ? total : -1;\n/* */ }", "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 byte[] getNextInput(byte[] buffer) throws IOException {\r\n // byte[] buffer = new byte[8192];\r\n file.seek(currOffset);\r\n file.read(buffer);\r\n currOffset += buffer.length;\r\n return buffer;\r\n }", "@Test\n public void testNonEmptyExcerpt_readArray() throws IOException {\n {\n InputStream s = excerpt(makeDigits(), 6, 3);\n checkReadArray(s, new byte[1], 0, 1, 1, new byte[] { '6' });\n checkReadArray(s, new byte[7], 2, 100, 2, new byte[] { 0, 0, '7', '8', 0, 0, 0 });\n }\n\n // an excerpt that extends past the underlying stream.\n {\n InputStream s = excerpt(makeDigits(), 7, 6);\n checkReadArray(s, new byte[1], 0, 1, 1, new byte[] { '7' });\n checkReadArray(s, new byte[7], 4, 3, 2, new byte[] { 0, 0, 0, 0, '8', '9', 0 });\n }\n\n // an excerpt that extends past the underlying stream.\n // asking for less data than is in the underlying stream.\n {\n InputStream s = excerpt(makeDigits(), 6, 10);\n checkReadArray(s, new byte[7], 4, 3, 3, new byte[] { 0, 0, 0, 0, '6', '7', '8' });\n }\n }", "int readNonBlocking(byte[] buffer, int offset, int length);", "public static void readFully(InputStream in, byte[] buffer) {\n int c = read(in, buffer);\n if (c != buffer.length) {\n String msg = c + \" != \" + buffer.length + \": \" + ByteUtils.toHex(buffer);\n throw new IORuntimeException(new EOFException(msg));\n }\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 }", "protected synchronized void populateQueue() throws IOException {\n\t\twhile (m_queueLength < m_queue.length) {\n\t\t\tint off = (m_queuePosition + m_queueLength) % m_queue.length;\n\t\t\tint len = Math.min(m_queue.length - m_queueLength, m_queue.length\n\t\t\t\t\t- off);\n\n\t\t\tint i = m_reader.read(m_queue, off, len);\n\t\t\tif (i == -1) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tm_queueLength += i;\n\t\t}\n\t}", "private void initReadBlockingTask(int size){ \n for (int i=0; i < size; i++){\n getReadTasks().offer(newReadBlockingTask(false));\n }\n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "private boolean fill() throws IOException {\n if (in == null)\n return false;\n if (bufEnd == buf.length) {\n Tokenizer.movePosition(buf, posOff, bufStart, pos);\n /* The last read was complete. */\n int keep = bufEnd - bufStart;\n if (keep == 0)\n\tbufEnd = 0;\n else if (keep + READSIZE <= buf.length) {\n\t/*\n\t * There is space in the buffer for at least READSIZE bytes.\n\t * Choose bufEnd so that it is the least non-negative integer\n\t * greater than or equal to <code>keep</code>, such\n\t * <code>bufLength - keep</code> is a multiple of READSIZE.\n\t */\n\tbufEnd = buf.length - (((buf.length - keep)/READSIZE) * READSIZE);\n\tfor (int i = 0; i < keep; i++)\n\t buf[bufEnd - keep + i] = buf[bufStart + i];\n }\n else {\n\tchar newBuf[] = new char[buf.length << 1];\n\tbufEnd = buf.length;\n\tSystem.arraycopy(buf, bufStart, newBuf, bufEnd - keep, keep);\n\tbuf = newBuf;\n }\n bufStart = bufEnd - keep;\n posOff = bufStart;\n }\n int nChars = in.read(buf, bufEnd, buf.length - bufEnd);\n if (nChars < 0) {\n in.close();\n in = null;\n return false;\n }\n bufEnd += nChars;\n bufEndStreamOffset += nChars;\n return true;\n }", "@Nullable\n public static byte[] readBytes(InputStream stream, int numBytes) {\n if (numBytes == 0) {\n return new byte[0];\n }\n\n byte[] result = new byte[numBytes];\n int readBytes = 0;\n while (readBytes < numBytes) {\n int numBytesToRead = numBytes - readBytes;\n int count;\n try {\n count = stream.read(result, readBytes, numBytesToRead);\n } catch (IOException e) {\n throw new RssStreamReadException(\"Failed to read data\", e);\n }\n if (count == -1) {\n if (readBytes == 0) {\n return null;\n } else {\n throw new RssEndOfStreamException(String.format(\n \"Unexpected end of stream, already read bytes: %s, remaining bytes to read: %s \",\n readBytes,\n numBytesToRead));\n }\n }\n readBytes += count;\n }\n\n return result;\n }", "private void fillBuf(int need) throws IOException {\n\n\t\tif (count > pos) {\n\t\t\tSystem.arraycopy(buf, pos, buf, 0, count - pos);\n\t\t\tcount -= pos;\n\t\t\tneed -= count;\n\t\t\tpos = 0;\n\t\t} else {\n\t\t\tcount = 0;\n\t\t\tpos = 0;\n\t\t}\n\n\t\twhile (need > 0) {\n\n\t\t\tint len = in.read(buf, count, buf.length - count);\n\t\t\tif (len <= 0) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t\tcount += len;\n\t\t\tneed -= len;\n\t\t}\n\n\t}", "public byte[] readBytes(int len) throws IOException {\n if (len > 1024) {\n throw new RuntimeException(String.format(\"Attempted to read %d bytes at once, file is probably corrupted.\", len));\n }\n byte[] buf = new byte[len];\n int n = 0;\n while (n < len) {\n int count = inputStream.read(buf, n, len - n);\n if (count < 0) {\n throw new EOFException();\n }\n n += count;\n }\n return buf;\n }", "void scanDataBufferForEndOfData() {\n while (!allRowsReceivedFromServer() &&\n (dataBuffer_.readerIndex() != lastValidBytePosition_)) {\n stepNext(false);\n }\n }", "private static byte[] readBytes(InputStream input, int length) throws IOException {\n\n int count = 0;\n byte[] buffer = new byte[length];\n\n while (count < length) count += input.read(buffer, count, length - count);\n\n return buffer;\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 readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}", "default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }", "private void readBytesWrap(int toRead, int offset) {\n\t\tint bytesRead = 0;\n\t\ttry {\n\t\t\twhile (bytesRead < toRead) {\n\n\t\t\t\tint actualRead = 0;\n\t\t\t\tsynchronized (ais) {\n\t\t\t\t\tactualRead = ais.read(rawBytes, bytesRead + offset, toRead - bytesRead);\n\t\t\t\t}\n\t\t\t\tif (-1 == actualRead) {\n\t\t\t\t\tSystem.out.println(\"!!!!!!! Looping with numLoops \" + numLoops);\n\t\t\t\t\tsetMillisecondPosition(0);\n\t\t\t\t\tif (numLoops != CCSoundIO.LOOP_CONTINUOUSLY) {\n\t\t\t\t\t\tnumLoops--;\n\t\t\t\t\t}\n\t\t\t\t} else if (actualRead == 0) {\n\t\t\t\t\t// we want to prevent an infinite loop\n\t\t\t\t\t// but this will hopefully never happen because\n\t\t\t\t\t// we set the loop end point with a frame aligned byte\n\t\t\t\t\t// number\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tbytesRead += actualRead;\n\t\t\t\t\ttotalBytesRead += actualRead;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new CCSoundException(\"Error reading from the file - \" + ioe.getMessage(), ioe);\n\t\t}\n\t}", "public static int readNextBatch(long[] primeNumbers, RandomAccessFile inout) {\n int size = 0;\n try {\n while (inout.getFilePointer() < inout.length() && size < ARRAY_SIZE) {\n primeNumbers[size++] = inout.readLong();\n }\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n\n return size;\n //*/\n }", "private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\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 }", "private static void readFully(final DataInput input, final int[] ints) throws IOException {\n if (input instanceof ImageInputStream) {\n // Optimization for ImageInputStreams, read all in one go\n ((ImageInputStream) input).readFully(ints, 0, ints.length);\n } else {\n for (int i = 0; i < ints.length; i++) {\n ints[i] = input.readInt();\n }\n }\n }", "public int readAll(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n int count = 0;\n while (count < len) {\n int n = dis.read(data, count + offset, len - count);\n if (n < 0) break;\n else count += n;\n }\n return count;\n }", "private DataInputStream readBuffer( DataInputStream in, int count ) throws IOException{\n byte[] buffer = new byte[ count ];\n int read = 0;\n while( read < count ){\n int input = in.read( buffer, read, count-read );\n if( input < 0 )\n throw new EOFException();\n read += input;\n }\n \n ByteArrayInputStream bin = new ByteArrayInputStream( buffer );\n DataInputStream din = new DataInputStream( bin );\n return din;\n }", "private JSONArray readJSONArray() {\n JSONTokener tokener = new JSONTokener(this.inputStream);\n if (tokener.more()) {\n return TokenerHandler.getNextJSONArrayNonContinuous(tokener);\n } else {\n throw new LostConnectionException();\n }\n }", "private byte[] read(int length) throws IOException {\n byte[] result = new byte[length];\n\n int read = 0;\n while (read < length)\n {\n int i = this.in.read(result, read, length - read);\n if (i == -1)\n throw new EOFException();\n read += i;\n }\n return result;\n }", "@Test\n public void testEmptyExcerpt_readArray() throws IOException {\n checkReadArrayEmpty(excerpt(makeEmpty(), 0, 0));\n checkReadArrayEmpty(excerpt(makeDigits(), 0, 0));\n\n // start == underlying length.\n checkReadArrayEmpty(excerpt(makeEmpty(), 0, 6));\n checkReadArrayEmpty(excerpt(makeDigits(), 10, 6));\n\n // start > underlying length.\n checkReadArrayEmpty(excerpt(makeEmpty(), 1, 0));\n checkReadArrayEmpty(excerpt(makeDigits(), 10, 0));\n }", "default int readNonBlocking(byte[] buffer) {\n return readNonBlocking(buffer, 0, buffer.length);\n }", "@Override\n public ByteBuffer readInput(int minBytes) throws IOException {\n if (minBytes <= byteBuffer.remaining())\n return byteBuffer;\n else\n throw new EOFException(\"Cannot read more bytes - end of buffer reached\");\n }", "void waitToRead();", "public final void loopReader() {\n looperThread = Thread.currentThread();\n\n try {\n try {\n readerListener.onOpen(this, response);\n } catch (Throwable t) {\n Util.throwIfFatal(t);\n replyToReaderError(t);\n readerListener.onFailure(t, null);\n return;\n }\n\n while (processNextFrame()) {\n }\n } finally {\n looperThread = null;\n }\n }", "public static byte[] readAll(InputStream is, int chunkSize) {\n\t\tif (chunkSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"chunk size can't be <1\");\n\t\t}\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tbyte[] bytes = new byte[chunkSize];\n\t\tint read;\n\t\ttry {\n\t\t\twhile (-1 != (read = is.read(bytes))) {\n\t\t\t\tbos.write(bytes, 0, read);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new WrappedException(e);\n\t\t} finally {\n\t\t\tclose(is);\n\t\t}\n\t\treturn bos.toByteArray();\n\t}", "public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\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}", "@Test\n public void readFullFile() throws Exception {\n long checksumExpected = populateInputFile(((ReadHandlerTest.CHUNK_SIZE) * 10), 0, (((ReadHandlerTest.CHUNK_SIZE) * 10) - 1));\n mReadHandler.onNext(buildReadRequest(0, ((ReadHandlerTest.CHUNK_SIZE) * 10)));\n checkAllReadResponses(mResponses, checksumExpected);\n }", "private synchronized boolean Iteration() {\n\t if (inputStream == null) {\n\t\treturn false;\n\t }\n\t int c = -1;\n\t try {\n\t\tint avail = inputStream.available();\n\t\tif (avail > 0) {\n\t\t c = inputStream.read();\n\t\t}\n\t } catch (Exception e) {\n\t\treturn false;\n\t }\n\t if (c < 0) {\n\t\treturn true;\n\t }\n\t if (c == '\\n') {\n\t\tlines.offer(buffer);\n\t\tbuffer = new String(\"\");\n\t } else {\n\t\tbuffer += (char)c;\n\t }\n\t return true;\n\t}", "public void waitForData(int minNumBytes) {\n try {\n\n while (available() < minNumBytes) {\n Thread.sleep(500);\n }\n }\n catch (InterruptedException e) {\n System.out.println(\"#### Thread interrupted -- could be big trouble\");\n }\n catch(Exception e){}\n }", "boolean readUntilStart(Reader pReader,\n String pElement) throws Exception;", "public static byte[] readBytes(InputStream inputStream) throws IOException {\n // this dynamically extends to take the bytes you read\n ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n\n // this is storage overwritten on each iteration with bytes\n int bufferSize = 1024;\n byte[] buffer = new byte[bufferSize];\n\n // we need to know how may bytes were read to write them to the byteBuffer\n int len = 0;\n while ((len = inputStream.read(buffer)) != -1) {\n byteBuffer.write(buffer, 0, len);\n }\n\n // and then we can return your byte array.\n return byteBuffer.toByteArray();\n }", "public byte[] read(final byte[] src, final int offset)\n {\n final int length = length();\n bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = src[offset + length - 1 - i];\n return bytes;\n }", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "public static void readArray(String fileName, int[] newArray) throws Exception{\n\n // Create DataInputStream object to read from binary file.\n // Use fileName from demo file and read into newArray in demo file.\n DataInputStream input = new DataInputStream(new FileInputStream(fileName));\n\n // Create boolean variable to determine End Of File\n boolean EOF = false;\n\n // While it's not the End Of File\n while(!EOF){\n\n // Try Catch Statement\n try{\n\n // for Loop to go through each integer in the binary file\n for(int i = 0; i < newArray.length; i++){\n\n // read the number and place it in the newArray\n newArray[i] = input.readInt();\n }\n }catch(EOFException e){ // Catch clause to find end of file\n // Change EOF to True\n EOF = true;\n }\n\n }\n // Close the file\n input.close();\n }", "private int[] readArray(Scanner sc) {\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter the number of elements in array\");\r\n\t\ttry {\r\n\t\t\tint size = sc.nextInt();\r\n\t\t\r\n\t\t\twhile(size <= 0) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Please enter integer number of elements in array\");\r\n\t\t\t\tsize = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Please enter the elements in array\");\r\n\t\t\tint[] array = new int[size];\r\n\t\t\t\t\r\n\t\t\tfor(int index=0 ; index<size ; index++){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tarray[index] = sc.nextInt();\r\n\t\t\t}\r\n\t\t\treturn array;\t\r\n\t\t} catch(NumberFormatException exp) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(exp.getMessage());\r\n\t\t\treadArray(sc);\r\n\t\t} catch(Exception exp) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(exp.getMessage());\r\n\t\t\treadArray(sc);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "private static int read(InputStream in, byte[] dest, int bytesToRead)\n\t\t\tthrows IOException {\n\t\tint read = 0;\n\t\tif (bytesToRead % 2 == 1)\n\t\t\tbytesToRead--;\n\t\tread = in.read(dest, 0, bytesToRead);\n\t\tif (read == -1)\n\t\t\treturn read;\n\t\twhile ((read % 2) == 1) {\n\t\t\tint k = in.read(dest, read, bytesToRead - read);\n\t\t\tif (k == -1)\n\t\t\t\treturn read;\n\t\t\tread += k;\n\t\t}\n\t\treturn read;\n\t}", "InputStream getDataStream();", "@Override\n public int read(byte[] b, int off, int len) throws IOException {\n int readA = readFromSpare(b, off, len);\n\n // Now read from the stream \n int readB = source.read(b, off+readA, len-readA);\n \n // Figure out how much we've done\n int read;\n if(readB == -1 || readB == 0) {\n read = readA; \n } else {\n read = readA + readB;\n }\n \n // Fix up our data\n if(read > 0) {\n read = fixUp(b, off, read);\n }\n \n // All done\n return read;\n }", "public void readFully(byte[] b, int off, int len) throws IOException {\n\n\t\tif (off < 0 || len < 0 || off + len > b.length) {\n\t\t\tthrow new IOException(\"Attempt to read outside byte array\");\n\t\t}\n\n\t\tif (read(b, off, len) < len) {\n\t\t\tthrow new EOFException();\n\t\t}\n\t}", "protected byte[] read(int length, long timeout) {\n if (!setSubscribeToRxChannel()) {\n return EMPTY_ARRAY;\n }\n\n synchronized (rxLock) {\n if (doUntilTrue(rxStream, x -> x.size() >= length, timeout)) {\n return rxStream.pop(length);\n }\n\n return EMPTY_ARRAY;\n }\n }", "private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }", "public static void fillArray(int[] array)\r\n {\r\n //Create a local scanner object\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //Prompt user to enter the number of values within the array\r\n System.out.println(\"Enter \" + array.length + \" values\");\r\n \r\n //Loop through array and assign a value to each individual element\r\n for (int n=0; n < array.length; ++n) \r\n {\r\n \r\n System.out.println(\"Enter a value for element \" + n + \":\");\r\n \r\n array[n] = sc.nextInt();\r\n \r\n \r\n \r\n }\r\n \r\n \r\n }", "protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\n }", "private void readNext() {\n nextLine = null;\n try {\n while (nextLine == null) {\n nextLine = reader.readNext();\n reader.consumeEmptyLines();\n if (reader.eof()) {\n break;\n }\n }\n if (nextLine != null) {\n super.recordCounter++;\n if (super.readLimit > 0 && super.recordCounter > super.readLimit) {\n nextLine = null;\n }\n }\n } catch (Exception ignore) {\n // no more lines\n }\n }", "@Test\n public void readPartialFile() throws Exception {\n long start = 3;\n long end = ((ReadHandlerTest.CHUNK_SIZE) * 10) - 99;\n long checksumExpected = populateInputFile(((ReadHandlerTest.CHUNK_SIZE) * 10), start, end);\n mReadHandler.onNext(buildReadRequest(start, ((end + 1) - start)));\n checkAllReadResponses(mResponses, checksumExpected);\n }", "public void read(byte[] buffer, int offset) throws Exception {\n read(new CCompatibleInputStream(new ByteArrayInputStream(buffer, offset,\n buffer.length - offset)));\n }", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "static void readRequest(InputStream is) throws IOException {\n out.println(\"starting readRequest\");\n byte[] buf = new byte[1024];\n String s = \"\";\n while (true) {\n int n = is.read(buf);\n if (n <= 0)\n throw new IOException(\"Error\");\n s = s + new String(buf, 0, n);\n if (s.indexOf(\"\\r\\n\\r\\n\") != -1)\n break;\n }\n out.println(\"returning from readRequest\");\n }", "public static int iterateUntil(CharBuffer array, int pos, int length, int min) {\n while (pos < length && (array.get(pos)) < min) {\n pos++;\n }\n return pos;\n }", "byte[] readBytes();", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "private static InputStream merge(InputStream ... arrays) throws IOException {\n\t\tMinHeap heap = new MinHeap();\n\t\tfor(int k = 0; k < arrays.length; k++) {\n\t\t\tElement element = new Element(arrays[k]);\n\t\t\tif(element.hasMoreElement()) {\n\t\t\t\theap.insert(element);\n\t\t\t}\n\t\t}\n\t\treturn new MergedIntegerStream(heap);\n\t}", "public String[] readNext() {\n\t\treturn null;\n\t}", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }", "public static byte[] readBytes(InputStream in, int len, boolean isLE)\r\n throws IOException\r\n {\r\n if (len == 0)\r\n {\r\n return new byte[0];\r\n }\r\n byte[] bytes = new byte[len];\r\n int rlen = in.read(bytes);\r\n if (rlen != len)\r\n {\r\n throw new IOException(\"readBytes length is not match.\" + len\r\n + \" which is \" + rlen);\r\n }\r\n if (isLE)\r\n {\r\n bytes = reverseBytes(bytes);\r\n }\r\n return bytes;\r\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "private void readFromConsole(){\n Scanner cin = new Scanner(System.in);\n\n if(cin.hasNext()){\n number = cin.nextInt();\n }\n array = new long[number];\n\n for(int num = 0; num < number; num++){\n if(cin.hasNext()){\n array[num] = cin.nextLong();\n }\n }\n }", "public void readData(InputStream inStream);", "public int read(byte[] p_bytes, int p_offset, int p_length);", "void populateArray () {\r\n\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream (\"Bank.dat\");\r\n\t\t\tdis = new DataInputStream (fis);\r\n\t\t\t//Loop to Populate the Array.\r\n\t\t\twhile (true) {\r\n\t\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t\trecords[rows][i] = dis.readUTF ();\r\n\t\t\t\t}\r\n\t\t\t\trows++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\ttotal = rows;\r\n\t\t\tif (total == 0) { }\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdis.close();\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exp) { }\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override public int read(char[] cbuf, int off, int len) throws IOException {\r\n\t\tif (off < 0 || len < 0 || off + len > cbuf.length) throw new IndexOutOfBoundsException();\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tint r = -1;\r\n\t\twhile (r == -1){\r\n\t\t\tReader in = getCurrentReader();\r\n\t\t\tif (in == null){\r\n\t\t\t\tif (doneAddingReaders) return -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (InterruptedException iox){\r\n\t\t\t\t\tthrow new IOException(\"Interrupted\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tr = in.read(cbuf, off, len);\r\n\t\t\t\tif (r == -1) advanceToNextReader();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "@Override\n protected int read0(@NonNull byte[] dst, int start, @Positive int length) throws IOException {\n int count = min(this.delegate.remaining(), length);\n if (count <= 0) {\n return RESULT_EOF;\n } else {\n this.delegate.get(dst, start, count);\n return count;\n }\n }", "private void startReadLoop() {\n\t\t\n\t\treadLoop=new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\t/*\n\t\t\t\t * According to the spec, we should be able to read an 8 character string,\n\t\t\t\t * which we turn into a number, and that number is the size of the next data\n\t\t\t\t * block. In all likelihood our buffer will be much bigger, but the whole point\n\t\t\t\t * of using the buffer is we don't have to care about the underlying sync between\n\t\t\t\t * what we have read, what the device has written etc. etc. \n\t\t\t\t */\n\t\t\t\twhile(keepGoing) {\n//\t\t\t\t\tif(pauseForCommand) {\n//\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\tThread.sleep(50);\t//Give a bit of time for something else...\n//\t\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tSystem.err.println(\"readLoop is paused\");\n//\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t}\n\t\t\t\t\tDocument xmlDoc;\n\t\t\t\t\ttry {\n\t\t\t\t\t\txmlDoc = getNextBlock();\n\t\t\t\t\t\tif(xmlDoc.hasChildNodes()) {\n\t\t\t\t\t\t\tprocessChildren(xmlDoc);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (SAXException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlog.info(\"Read loop finishing as keepGoing now false\");\n\t\t\t}\n\t\t};\n\t\treadLoop.setName(\"NKV550Reader\");\n\t\treadLoop.setPriority(Thread.MAX_PRIORITY);\n\t\treadLoop.start();\n\t}", "@Override\n\tpublic int Read(byte[] buffer, int offset, int count)\n\t{\n\t\tif (buffer == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"buffer\");\n\t\t}\n\n\t\tint totalRead = 0;\n\n\t\tif (entryOffset >= entrySize)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\tlong numToRead = count;\n\n\t\tif ((numToRead + entryOffset) > entrySize)\n\t\t{\n\t\t\tnumToRead = entrySize - entryOffset;\n\t\t}\n\n\t\tif (readBuffer != null)\n\t\t{\n\t\t\tint sz = (numToRead > readBuffer.length) ? readBuffer.length : (int)numToRead;\n\n\t\t\tSystem.arraycopy(readBuffer, 0, buffer, offset, sz);\n\n\t\t\tif (sz >= readBuffer.length)\n\t\t\t{\n\t\t\t\treadBuffer = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint newLen = readBuffer.length - sz;\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] newBuf = new byte[newLen];\n\t\t\t\tbyte[] newBuf = new byte[newLen];\n\t\t\t\tSystem.arraycopy(readBuffer, sz, newBuf, 0, newLen);\n\t\t\t\treadBuffer = newBuf;\n\t\t\t}\n\n\t\t\ttotalRead += sz;\n\t\t\tnumToRead -= sz;\n\t\t\toffset += sz;\n\t\t}\n\n\t\twhile (numToRead > 0)\n\t\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] rec = tarBuffer.ReadBlock();\n\t\t\tbyte[] rec = tarBuffer.ReadBlock();\n\t\t\tif (rec == null)\n\t\t\t{\n\t\t\t\t// Unexpected EOF!\n\t\t\t\tthrow new TarException(\"unexpected EOF with \" + numToRead + \" bytes unread\");\n\t\t\t}\n\n\t\t\tint sz = (int)numToRead;\n\t\t\tint recLen = rec.length;\n\n\t\t\tif (recLen > sz)\n\t\t\t{\n\t\t\t\tSystem.arraycopy(rec, 0, buffer, offset, sz);\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: readBuffer = new byte[recLen - sz];\n\t\t\t\treadBuffer = new byte[recLen - sz];\n\t\t\t\tSystem.arraycopy(rec, sz, readBuffer, 0, recLen - sz);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsz = recLen;\n\t\t\t\tSystem.arraycopy(rec, 0, buffer, offset, recLen);\n\t\t\t}\n\n\t\t\ttotalRead += sz;\n\t\t\tnumToRead -= sz;\n\t\t\toffset += sz;\n\t\t}\n\n\t\tentryOffset += totalRead;\n\n\t\treturn totalRead;\n\t}", "IArray getArrayNext() throws InvalidRangeException;", "private void setArray(byte[] initialArray)\r\n/* 60: */ {\r\n/* 61: 95 */ this.array = initialArray;\r\n/* 62: 96 */ this.tmpNioBuf = null;\r\n/* 63: */ }", "private int readData(byte[] buf, int off, int len) throws IOException {\n\t\tint bytesRead = 0;\n\t\twhile (bytesRead < len) {\n\t\t int n = IOUtils.wrappedReadForCompressedData(in, buf, off + bytesRead,\n\t\t\t\t\t\t\t\t len - bytesRead);\n\t\t if (n < 0) {\n\t\t\treturn bytesRead;\n\t\t }\n\t\t bytesRead += n;\n\t\t}\n\t\treturn len;\n\t }", "public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }", "@VisibleForTesting\n static int drainBuffer(BufferedReader br, StringBuffer storageBuf, int maxLength, int bytesRead, boolean readAll)\n throws IOException {\n int bReadSession = 0;\n int chunkSize = 1024;\n if (br.ready()) {\n char[] buf = new char[1024];\n int bReadCurrent;\n boolean wantsToReadFurther;\n do {\n bReadCurrent = br.read(buf, 0, chunkSize);\n if (storageBuf != null && bytesRead < maxLength && bReadCurrent != -1) {\n storageBuf.append(buf, 0, bReadCurrent);\n }\n if (bReadCurrent != -1) {\n bReadSession += bReadCurrent;\n }\n wantsToReadFurther = bReadCurrent != -1 && (readAll || bReadCurrent == chunkSize);\n } while (br.ready() && wantsToReadFurther);\n }\n return bReadSession;\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 void skipFully(InputStream in, long offset) throws IOException {\n/* 1163 */ while (offset > 0L) {\n/* 1164 */ long cur = in.skip(offset);\n/* 1165 */ if (cur <= 0L)\n/* 1166 */ throw new EOFException(\"can't skip\"); \n/* 1167 */ offset -= cur;\n/* */ } \n/* */ }", "private boolean peek(Reader reader, byte[] dst, int offset, int numBytes) {\n int bytesToRead = numBytes;\n if (bytesToRead == 0) {\n return true;\n }\n if (bytesToRead < 0 || bytesToRead > reader.availableBytes()) {\n return false;\n }\n int endOfReadSection = (reader.readHead + bytesToRead) % capacity;\n if (reader.readHead < endOfReadSection) {\n System.arraycopy(buffer, reader.readHead, dst, offset, endOfReadSection - reader.readHead);\n } else { // Data wraps around buffer edge.\n System.arraycopy(buffer, reader.readHead, dst, offset, capacity - reader.readHead);\n int entriesBeforeWrap = capacity - reader.readHead;\n System.arraycopy(\n buffer, 0, dst, offset + capacity - reader.readHead, bytesToRead - entriesBeforeWrap);\n }\n return true;\n }", "public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "public byte[] read();", "public byte[] allocReadIOBuffer(int minSize)\n/* */ {\n/* 154 */ _verifyAlloc(this._readIOBuffer);\n/* 155 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0, minSize);\n/* */ }", "public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }" ]
[ "0.6499417", "0.56382877", "0.56382173", "0.56013256", "0.54887545", "0.54860413", "0.5477923", "0.5360798", "0.5359938", "0.5336982", "0.5286645", "0.5268641", "0.5267976", "0.5232172", "0.5222133", "0.5203769", "0.5199673", "0.5187273", "0.5158085", "0.51429033", "0.51355714", "0.5135029", "0.51155984", "0.5083968", "0.50631255", "0.50303584", "0.5008871", "0.50024754", "0.49801606", "0.4975148", "0.4962547", "0.49551502", "0.4943412", "0.49430037", "0.49410954", "0.49259585", "0.491663", "0.4914875", "0.49006265", "0.48921025", "0.4878316", "0.48770416", "0.48729852", "0.48729193", "0.48716065", "0.4856737", "0.48469114", "0.48360455", "0.4830906", "0.48119465", "0.48111513", "0.4776324", "0.4774586", "0.47707522", "0.4770682", "0.47686318", "0.47558603", "0.4755545", "0.47419903", "0.4739415", "0.473694", "0.47343618", "0.47276405", "0.47220045", "0.47137135", "0.46948224", "0.46846157", "0.46765426", "0.4675202", "0.46547022", "0.46514067", "0.46471983", "0.46447027", "0.464107", "0.4641029", "0.4641023", "0.46393204", "0.46323037", "0.46282774", "0.46223304", "0.46132174", "0.4605679", "0.46035445", "0.46014008", "0.45983467", "0.45890024", "0.45873743", "0.45805407", "0.45771828", "0.4576029", "0.45655876", "0.45653322", "0.45627138", "0.45580244", "0.4551472", "0.45460325", "0.45399508", "0.45339072", "0.45317504", "0.45306975" ]
0.5495549
4
Helper method for openings workspace components from a file. A call might look like this NetworkComponent networkComponent = (NetworkComponent) WorkspaceFileOpener(NetworkComponent.class, new File("Net.xml"));
public static WorkspaceComponent open(final Class<?> fileClass, final File file) { String extension = file.getName() .substring(file.getName().indexOf(".")); try { Method method = fileClass.getMethod("open", InputStream.class, String.class, String.class); WorkspaceComponent wc = (WorkspaceComponent) method.invoke(null, new FileInputStream(file), file.getName(), extension); wc.setCurrentFile(file); wc.setChangedSinceLastSave(false); return wc; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n \tJFileChooser jfc = new JFileChooser();\n int retValue = jfc.showOpenDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame());\n if (retValue == JFileChooser.APPROVE_OPTION) {\n File file = jfc.getSelectedFile();\n System.out.println(\"opening from file: \" + file.getAbsolutePath());\n Workspace workspace = null;\n try {\n workspace = (Workspace) SaveUtil.loadXStream(file);\n //KrokiMockupToolApp.getInstance().getWorkspace().addBussinesSubsystem(bussinesSubsystem);\n KrokiMockupToolApp.getInstance().setWorkspace(workspace);\n KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame().getTree().updateUI();\n } catch (Exception ex) {\n \tex.printStackTrace();\n JOptionPane.showMessageDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame(), \"Opening failed.\");\n }\n\n } else {\n System.out.println(\"opening canceled: \");\n }\n }", "private void cmdOpenUseFile(String file) {\n MModel model = null;\n FileInputStream specStream = null;\n\n String filename = getFilenameToOpen(file);\n \n try {\n Log.verbose(\"compiling specification...\");\n specStream = new FileInputStream(filename);\n model = USECompiler.compileSpecification(specStream, filename,\n new PrintWriter(System.err), new ModelFactory());\n } catch (FileNotFoundException e) {\n Log.error(\"File `\" + filename + \"' not found.\");\n } finally {\n if (specStream != null)\n try {\n \tspecStream.close();\n } catch (IOException ex) {}\n }\n\n // compile ok?\n if (model != null) {\n // print some info about model\n Log.verbose(model.getStats());\n\n // create system\n fSession.setSystem(new MSystem(model));\n }\n \n setFileClosed();\n }", "public void openProject(File pfile, FileOpenSelector files) { }", "@FXML\n\tprivate void openConfigFile() {\n\t\tFileChooser fileChooser = new FileChooser();//Allows opening and saving files\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"CFG files (*.cfg)\", \"*.cfg\"); //sets extension filter\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\t\tScene scene = mainWindow.getScene();//grabs the scene from the window that initialized this event, required for file selector\n\t\tif (scene != null) {\n\t\t\tWindow window = scene.getWindow();\n\t\t\tif (window != null) {\n\n\t\t\t\tFile file = fileChooser.showOpenDialog(window);\n\t\t\t\tif (file != null) {\n\n\t\t\t\t\tString filePath = file.getAbsolutePath();\n\n\n\t\t\t\t\tNodeController.getNodeController().clear();//wipe all current nodes for new nodes to be generated\n\n\t\t\t\t\tConfigFile.readFile(filePath);//generates the controller with the config file\n\t\t\t\t\trefreshAll();\n\t\t\t}\n\t\t}\n\n\t\t}\n\n\t}", "public void openWorkflow() {\n Workflow workflow = null;\n int returnVal = this.graphFileChooser.showOpenDialog(this.engine.getGUI().getFrame());\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = this.graphFileChooser.getSelectedFile();\n logger.debug(file.getPath());\n\n try {\n String path = file.getPath();\n\n if (path.endsWith(XBayaConstants.GRAPH_FILE_SUFFIX)) {\n WSGraph graph = WSGraphFactory.createGraph(file);\n workflow = Workflow.graphToWorkflow(graph);\n } else {\n JsonObject workflowObject = JSONUtil.loadJSON(file);\n// XmlElement workflowElement = XMLUtil.loadXML(file);\n// workflow = new Workflow(workflowElement);\n workflow = new Workflow(workflowObject);\n }\n GraphCanvas newGraphCanvas = engine.getGUI().newGraphCanvas(true);\n newGraphCanvas.setWorkflow(workflow);\n //this.engine.setWorkflow(workflow);\n engine.getGUI().getGraphCanvas().setWorkflowFile(file);\n } catch (IOException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.OPEN_FILE_ERROR, e);\n } catch (GraphException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);\n } catch (ComponentException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);\n } catch (RuntimeException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);\n } catch (Error e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);\n }\n }\n \n }", "public void projectOpened(File pfile, FileOpenSelector files) { }", "public void actionPerformed(ActionEvent e) {\n\n\t\t// open new dialog\n\t\tImportNetworkDialog fd = new ImportNetworkDialog(Cytoscape.getDesktop(), true);\n\t\tfd.pack();\n\t\tfd.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tfd.setVisible(true);\n\n\t\tif (fd.getStatus() == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tFile file = fd.getFile();\n\t\tboolean vsSwitch = fd.getVSFlag();\n\n\t\tif (file != null) \n\t\t\tloadFile(file,vsSwitch);\n\t}", "private void openOntology()\r\n {\r\n // Create the file filter.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"owl\", \"OWL ontologies (*.owl)\")\r\n };\r\n \r\n // Open the file.\r\n String file = openFileChooser(true, filters);\r\n \r\n // Process the file.\r\n if (file != null)\r\n {\r\n// OWLTreeConverter treeConverter = new OWLTreeConverter(file,\"\");\r\n// \r\n// //\tObject[] result2=treeConverter.getTree();\r\n// // int t=Integer.parseInt(result2[1].toString());\r\n// \tm_gtree =treeConverter.getTree();\r\n// TreeDisplay treeDisp = new TreeDisplay(m_gtree,0);\r\n// TreePanel treePanel = new TreePanel(treeDisp, LEGEND, ORIENTATION_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(1, treePanel);\r\n// \r\n// OWLGraphConverter graphConverter = new OWLGraphConverter(file, true,\"\");\r\n// // Object[] result=graphConverter.getGraph();\r\n// m_graph =graphConverter.getGraph();\r\n// // int i=Integer.parseInt(result[1].toString());\r\n// // System.out.println(\"i=\"+i);\r\n// GraphDisplay graphDisp = new GraphDisplay(m_graph, GRAPH_DISTANCE_FILTER,0);\r\n// GraphPanel graphPanel = new GraphPanel(graphDisp, LEGEND, HOPS_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(2, graphPanel);\r\n }\r\n }", "public void openFile() {\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\n\t\tint returnVal = fc.showOpenDialog(null);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fc.getSelectedFile();\n\t filename.setText(file.getName());\n\t try {\n\t\t\t\tmodel.FileContent(file);\t//read the content of the input file\n\t\t\t\tplotContent.repaint();\t//repaint the JComponent\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void loadFile(){\n\tint returnVal = fileChooser.showOpenDialog(this);\n\n\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t File file = fileChooser.getSelectedFile();\n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tInputStream xmlInput = new FileInputStream(file);\n\t\tSAXParser saxParser = spf.newSAXParser();\n\t\tRoomXMLParser rxp = new RoomXMLParser();\n\t\tsaxParser.parse(xmlInput, rxp);\n\n\t\trooms = rxp.getRooms();\n\t\tnumPlayers = rxp.getPlayers();\n\t\tnumNPCs = rxp.getNPCs();\n\t\trevalidate();\n\t }\n\t catch(SAXException|ParserConfigurationException|IOException e){\n\t\te.printStackTrace();\n\t }\n\t}\n }", "public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }", "private void netFileChanged()\r\n\t{\r\n\t\tString filename = fscNetfile.getComponentText();\r\n\t\tif (!filename.isEmpty())\r\n\t\t{\r\n\t\t\tFile netfile = new File(filename);\r\n\t\t\tString workDir = netfile.getParent();\r\n\t\t\tboolean bValid = (workDir != null); \r\n\t\t\tif( bValid )\r\n\t\t\t{\r\n\t\t\t\thmProps.put(\"workingDirectory\",workDir);\r\n\t\t\t\tfscNetfile.setDefaultDirectory(workDir);\r\n\t\t\t\tfscOppFile.setDefaultDirectory(workDir);\r\n\t\t\t\tfscSchFile.setDefaultDirectory(workDir);\r\n\t\t\t\tSystem.out.println(\"working directory changed to \"+netfile.getParent());\r\n\t\t\t}\r\n\t\t\ttabbedPane.setEnabled(bValid);\r\n\t\t\tjbtnDisplayNetlist.setEnabled(bValid);\r\n\t\t\tfscSchFile.setEnabled(bValid);\r\n\t\t}\r\n\t}", "public void openFile(ActionEvent e) {\r\n JFileChooser chooser = new JFileChooser();\r\n\r\n int returnVal = chooser.showOpenDialog(null);\r\n if (returnVal == JFileChooser.APPROVE_OPTION) {\r\n this.is_alg_started = false;\r\n this.is_already_renumbered = false;\r\n if (e.getActionCommand().equals(\"nodelist\")) {\r\n this.nodefileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n if (e.getActionCommand().equals(\"edgelist\")) {\r\n this.edgeFileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n }\r\n }", "public Repository fromXml(String file) {\n File xmlFile = new File(file);\n Repository repository = new Repository();\n Contracts contracts = null;\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(Contracts.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n if (!xmlFile.exists()) System.out.println(\"File does not exist\");\n assert jaxbUnmarshaller != null;\n contracts = (Contracts) jaxbUnmarshaller.unmarshal(xmlFile);\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n assert contracts != null;\n repository.setArrayList((ArrayList<Contract>) contracts.getContractList());\n\n return repository;\n\n }", "private void openLab(File lab) throws IOException{ \n // Load data\n currentLab = lab;\n labName = lab.toString().substring(lab.toString().lastIndexOf(File.separator)+1);\n labDataCurrent = new LabData(this, lab, labName); \n\n // Load UI\n closeAllDialogs(); \n resetWindow();\n loadLab();\n }", "private int parseOWL(File file) throws FileNotFoundException, BadElementStructureException {\n int nbElement = 0;\n JenaIOHandler jenaIOHandler = new JenaIOHandler(null, BioPAXLevel.L2);\n Model model;\n try {\n model = jenaIOHandler.convertFromOWL(new FileInputStream(file));\n Set<pathway> pathways = model.getObjects(pathway.class);\n\n //Gets all table column names\n ArrayList<String> contextNames = this.getToolResource().getResourceStructure().getContextNames();\n Element element;\n Structure eltStructure = new Structure(contextNames);\n\n for (pathway mypathway : pathways) {\n\n //logger.info(\"NAME: \"+ mypathway.getNAME());\n eltStructure.putContext(contextNames.get(0), mypathway.getNAME());\n\n //Organism Name\n String organismName = EMPTY_STRING;\n if (mypathway.getORGANISM() != null) {\n organismName = mypathway.getORGANISM().getNAME();\n\n if (organismName != null && organismName.trim().length() > 0) {\n organismName = resourceUpdateService.mapTermsToVirtualLocalConceptIDs(organismName, PC_ONTOIDS[1], null);\n // if mapping concepts are null or empty then log message for it.\n if (organismName == null || organismName.trim().length() == 0) {\n logger.error(\"Cannot map Organism '\" + mypathway.getORGANISM().getNAME() + \"' to local concept id.\");\n\n }\n }\n\n }\n //logger.info(\"ORGANISM: \"+ organismName);\n eltStructure.putContext(contextNames.get(1), organismName);\n\n //Comment\n String comments = mypathway.getCOMMENT().toString().substring(1, mypathway.getCOMMENT().toString().length() - 1);\n //logger.info(\"COMMENT: \"+comments);\n eltStructure.putContext(contextNames.get(2), comments);\n\n //path id or local element id\n String[] id = mypathway.getRDFId().split(\"\\\\-\");\n //logger.info(\"ID: \"+ id[id.length-1].trim());\n element = new Element(id[id.length - 1].trim(), eltStructure);\n\n //updating data into OBR_PC_ET table\n if (resourceUpdateService.addElement(element)) {\n nbElement++;\n }\n }\n } catch (FileNotFoundException ex) {\n throw ex;\n } catch (BadElementStructureException ex1) {\n throw ex1;\n }\n return nbElement;\n }", "@OnThread(Tag.Swing)\n public static void openFile(File file)\n {\n try {\n if (Desktop.isDesktopSupported()) {\n Desktop desktop = Desktop.getDesktop();\n desktop.open(file);\n }\n else {\n throw new RuntimeException(\n \"Cannot open editor for the file, because the Desktop class is not supported on this platform.\");\n }\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "@Override\r\n \tpublic File getWorkspace() {\n \t\treturn null;\r\n \t}", "@SuppressWarnings(\"unchecked\")\n\tpublic FlatConnector<T> interpret(List<String> srcfiles) {\n\t\ttry {\t\t\t\n\t\t\t// Find all available component expressions.\n\t\t\tStack<ReoFile<T>> stack = new Stack<ReoFile<T>>();\t\n\t\t\tList<String> parsed = new ArrayList<String>();\n\t\t\tQueue<String> components = new LinkedList<String>();\n\t\t\t\n\t\t\tfor (String file : srcfiles) {\n\t\t\t\tString filename = new File(file).getName().replaceFirst(\"[.][^.]+$\", \"\");\n\t\t\t\tReoFile<T> program = parse(new ANTLRFileStream(file));\n\t\t\t\tif (program != null) {\n\t\t\t\t\tif (!program.getName().endsWith(filename))\n\t\t\t\t\t\tthrow new CompilationException(program.getToken(), \"Component must have name \" + filename + \".\");\n\t\t\t\t\tstack.push(program);\n\t\t\t\t\tparsed.add(program.getName());\n\t\t\t\t\tcomponents.addAll(program.getImports());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"[error] Cannot parse \" + new File(file).getName() + \".\");\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t\n\t\t\twhile (!components.isEmpty()) {\n\t\t\t\tString comp = components.poll();\n\t\t\t\tif (!parsed.contains(comp)) {\n\t\t\t\t\tparsed.add(comp);\n\t\t\t\t\tReoFile<T> program = findComponent(comp);\n\t\t\t\t\tif (program != null) {\n\t\t\t\t\t\tif (!program.getName().equals(comp))\n\t\t\t\t\t\t\tthrow new CompilationException(program.getToken(), \"Component must have name \" + comp.substring(comp.lastIndexOf(\".\") + 1) + \".\");\n\t\t\t\t\t\tstack.push(program);\n\t\t\t\t\t\tList<String> newComponents = program.getImports();\n\t\t\t\t\t\tnewComponents.removeAll(parsed);\n\t\t\t\t\t\tcomponents.addAll(newComponents);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(\"[error] Component \" + comp + \" cannot be found.\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Evaluate these component expressions.\n\t\t\tDefinitions definitions = new Definitions();\n\t\t\tString name = null;\t\t\n\t\t\twhile (!stack.isEmpty()) {\n\t\t\t\tReoFile<T> program = stack.pop();\n\t\t\t\tname = program.getName();\n\t\t\t\tExpression cexpr = program.getComponent().evaluate(definitions);\n\t\t\t\tdefinitions.put(name, cexpr);\n\t\t\t}\n\t\t\t\n\t\t\t// Get the instance from the main component.\t\t\n\t\t\tExpression expr = definitions.get(name);\t\t\n\t\t\tif (expr instanceof ReoSystemValue<?>) {\t\t\t\t\n\t\t\t\tReoSystemValue<T> main = (ReoSystemValue<T>)expr;\n\t\t\t\tValueList values = new ValueList();\n\t\t\t\tfor (String x : params) values.add(new StringValue(x));\n\t\t\t\tSignatureConcrete sign = main.getSignature().evaluate(values, null);\n\t\t\t\t\n\t\t\t\tAssembly<T> main_p = main.instantiate(values, null);\n\t\t\t\t\n\t\t\t\tComponentList<T> instances = main_p.getInstances();\n\t\t\t\t\n\t\t\t\tinstances.insertNodes(true, false);\n\t\t\t\t\n\t\t\t\treturn new FlatConnector<T>(instances.getComponents(), name, sign.keySet());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.print(e.getMessage());\n\t\t} catch (CompilationException e) {\n\t\t\tSystem.out.println(new Message(MessageType.ERROR, e.getToken(), e.getMessage()));\n\t\t}\t\t\n\n\t\treturn null;\n\t}", "public void open() {\r\n\t\tFile f = getOpenFile(\"Map Files\", \"tilemap\");\r\n\t\tif (f == null) return;\r\n\t\tfile = f;\r\n\t\tframe.setTitle(\"Tile Mapper - \"+file.getName());\r\n\t\tSystem.out.println(\"Opening \"+file.getAbsolutePath());\r\n\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tInputStream is = this.getClass().getClassLoader().getResourceAsStream(\"tilemapper/Map.xsd\");\r\n\t\t\tfactory.setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(new StreamSource(is)));\r\n\r\n\t\t\tDocument dom = factory.newDocumentBuilder().parse(file);\r\n\r\n\t\t\t// we have a valid document\r\n\t\t\t//printNode(dom, \"\");\r\n\t\t\tNode mapNode = null;\r\n\t\t\tNodeList nodes = dom.getChildNodes();\r\n\t\t\tfor (int i=0; i<nodes.getLength(); i++) {\r\n\t\t\t\tNode node = nodes.item(i);\r\n\t\t\t\tif (node.getNodeName() == \"Map\") mapNode = node;\r\n\t\t\t}\r\n\t\t\tif (mapNode == null) return;\r\n\t\t\tmapPanel.parseDOM((Element)mapNode);\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\tSystem.out.println(\"The underlying parser does not support the requested features.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FactoryConfigurationError e) {\r\n\t\t\tSystem.out.println(\"Error occurred obtaining Document Builder Factory.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean openFile(final File file)\n {\n BufferedReader bufferedReader = null;\n\n try\n {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n final StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n\n while(line != null)\n {\n stringBuilder.append(line);\n line = bufferedReader.readLine();\n\n if(line != null)\n {\n stringBuilder.append('\\n');\n }\n }\n\n this.componentEditor.setText(stringBuilder.toString());\n this.currentFile = file;\n this.preferences.setValue(CompilerEditorPanel.PREFERENCE_LAST_FILE, this.currentFile);\n this.preferences.setValue(CompilerEditorPanel.PREFERENCE_LAST_DIRECTORY, this.currentFile.getParentFile());\n this.fileChooser.setStartDirectory(this.currentFile.getParentFile());\n this.title.setText(UtilText.concatenate(\"--\", this.currentFile.getAbsolutePath(), \"--\"));\n return true;\n }\n catch(final Exception exception)\n {\n Debug.printException(exception, \"Failed to load : \" + file.getAbsolutePath());\n this.printMessage(UtilText.concatenate(\"Failed to load file at :\\n\", file.getAbsolutePath(), \"\\nBecause :\\n\", UtilEditor.extractMessage(exception)));\n return false;\n }\n finally\n {\n if(bufferedReader != null)\n {\n try\n {\n bufferedReader.close();\n }\n catch(final Exception ignored)\n {\n }\n }\n }\n }", "public void importWorkflow() {\n int returnVal = this.graphFileChooser.showOpenDialog(this.engine.getGUI().getFrame());\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = this.graphFileChooser.getSelectedFile();\n try {\n\n String path = file.getPath();\n Workflow importedWorkflow;\n if (path.endsWith(XBayaConstants.GRAPH_FILE_SUFFIX)) {\n WSGraph importedGraph = WSGraphFactory.createGraph(file);\n importedWorkflow = Workflow.graphToWorkflow(importedGraph);\n } else {\n XmlElement importedWorkflowElement = XMLUtil.loadXML(file);\n importedWorkflow = new Workflow(importedWorkflowElement);\n }\n GraphCanvas newGraphCanvas = engine.getGUI().newGraphCanvas(true);\n newGraphCanvas.setWorkflow(importedWorkflow);\n this.engine.getGUI().setWorkflow(importedWorkflow);\n engine.getGUI().getGraphCanvas().setWorkflowFile(file);\n\n } catch (IOException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.OPEN_FILE_ERROR, e);\n } catch (GraphException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);\n } catch (ComponentException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);\n } catch (RuntimeException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);\n } catch (Error e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);\n }\n }\n }", "private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }", "private void openTreeML()\r\n {\r\n// // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Open the file.\r\n// String file = openFileChooser(true, filters);\r\n// \r\n// // Process the file. \r\n// if (file != null)\r\n// {\r\n// m_gtree = Loader.loadTreeML(file);\r\n// TreeDisplay disp = new TreeDisplay(m_gtree,0);\r\n// TreePanel panel = new TreePanel(disp, LEGEND, ORIENTATION_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(1, panel);\r\n// }\r\n }", "public Component(Reference xmlConfigReference) {\r\n this();\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n dbf.setNamespaceAware(false);\r\n dbf.setValidating(false);\r\n \r\n try {\r\n DocumentBuilder db = dbf.newDocumentBuilder();\r\n Document document = db.parse(new FileInputStream(\r\n new LocalReference(xmlConfigReference).getFile()));\r\n \r\n // Look for clients\r\n NodeList clientNodes = document.getElementsByTagName(\"client\");\r\n \r\n for (int i = 0; i < clientNodes.getLength(); i++) {\r\n Node clientNode = clientNodes.item(i);\r\n Node item = clientNode.getAttributes().getNamedItem(\"protocol\");\r\n Client client = null;\r\n \r\n if (item == null) {\r\n item = clientNode.getAttributes().getNamedItem(\"protocols\");\r\n \r\n if (item != null) {\r\n String[] protocols = item.getNodeValue().split(\" \");\r\n List<Protocol> protocolsList = new ArrayList<Protocol>();\r\n \r\n for (int j = 0; j < protocols.length; j++) {\r\n protocolsList.add(getProtocol(protocols[j]));\r\n }\r\n \r\n client = new Client(getContext(), protocolsList);\r\n }\r\n } else {\r\n client = new Client(getContext(), getProtocol(item\r\n .getNodeValue()));\r\n }\r\n \r\n if (client != null) {\r\n this.getClients().add(client);\r\n }\r\n }\r\n \r\n // Look for servers\r\n NodeList serverNodes = document.getElementsByTagName(\"server\");\r\n \r\n for (int i = 0; i < serverNodes.getLength(); i++) {\r\n Node serverNode = serverNodes.item(i);\r\n Node node = serverNode.getAttributes().getNamedItem(\"protocol\");\r\n Node portNode = serverNode.getAttributes().getNamedItem(\"port\");\r\n Server server = null;\r\n \r\n if (node == null) {\r\n node = serverNode.getAttributes().getNamedItem(\"protocols\");\r\n \r\n if (node != null) {\r\n String[] protocols = node.getNodeValue().split(\" \");\r\n List<Protocol> protocolsList = new ArrayList<Protocol>();\r\n \r\n for (int j = 0; j < protocols.length; j++) {\r\n protocolsList.add(getProtocol(protocols[j]));\r\n }\r\n \r\n int port = getInt(portNode, Protocol.UNKNOWN_PORT);\r\n \r\n if (port == Protocol.UNKNOWN_PORT) {\r\n getLogger()\r\n .warning(\r\n \"Please specify a port when defining a list of protocols.\");\r\n } else {\r\n server = new Server(getContext(), protocolsList,\r\n getInt(portNode, Protocol.UNKNOWN_PORT),\r\n this.getServers().getTarget());\r\n }\r\n }\r\n } else {\r\n Protocol protocol = getProtocol(node.getNodeValue());\r\n server = new Server(getContext(), protocol, getInt(\r\n portNode, protocol.getDefaultPort()), this\r\n .getServers().getTarget());\r\n }\r\n \r\n if (server != null) {\r\n this.getServers().add(server);\r\n }\r\n \r\n // Look for default host\r\n NodeList defaultHostNodes = document\r\n .getElementsByTagName(\"defaultHost\");\r\n \r\n if (defaultHostNodes.getLength() > 0) {\r\n parseHost(this.getDefaultHost(), defaultHostNodes.item(0));\r\n }\r\n \r\n // Look for other virtual hosts\r\n NodeList hostNodes = document.getElementsByTagName(\"host\");\r\n \r\n for (int j = 0; j < hostNodes.getLength(); j++) {\r\n VirtualHost host = new VirtualHost();\r\n parseHost(host, hostNodes.item(j));\r\n this.getHosts().add(host);\r\n }\r\n }\r\n \r\n // Look for internal router\r\n NodeList internalRouterNodes = document\r\n .getElementsByTagName(\"internalRouter\");\r\n \r\n if (internalRouterNodes.getLength() > 0) {\r\n Node node = internalRouterNodes.item(0);\r\n Node item = node.getAttributes().getNamedItem(\r\n \"defaultMatchingMode\");\r\n if (item != null) {\r\n this.getInternalRouter().setDefaultMatchingMode(\r\n getInt(item, getInternalRouter()\r\n .getDefaultMatchingMode()));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"maxAttempts\");\r\n if (item != null) {\r\n this.getInternalRouter().setMaxAttempts(\r\n getInt(item, this.getInternalRouter()\r\n .getMaxAttempts()));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"routingMode\");\r\n if (item != null) {\r\n this.getInternalRouter().setRoutingMode(\r\n getInt(item, this.getInternalRouter()\r\n .getRoutingMode()));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"requiredScore\");\r\n if (item != null) {\r\n this.getInternalRouter().setRequiredScore(\r\n getFloat(item, this.getInternalRouter()\r\n .getRequiredScore()));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"retryDelay\");\r\n if (item != null) {\r\n this.getInternalRouter().setRetryDelay(\r\n getLong(item, this.getInternalRouter()\r\n .getRetryDelay()));\r\n }\r\n \r\n // Loops the list of \"attach\" instructions\r\n setAttach(getInternalRouter(), node);\r\n }\r\n \r\n // Look for logService\r\n NodeList logServiceNodes = document\r\n .getElementsByTagName(\"logService\");\r\n \r\n if (logServiceNodes.getLength() > 0) {\r\n Node node = logServiceNodes.item(0);\r\n Node item = node.getAttributes().getNamedItem(\"logFormat\");\r\n \r\n if (item != null) {\r\n this.getLogService().setLogFormat(item.getNodeValue());\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"loggerName\");\r\n \r\n if (item != null) {\r\n this.getLogService().setLoggerName(item.getNodeValue());\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"enabled\");\r\n \r\n if (item != null) {\r\n this.getLogService().setEnabled(getBoolean(item, true));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"identityCheck\");\r\n \r\n if (item != null) {\r\n this.getLogService().setIdentityCheck(\r\n getBoolean(item, true));\r\n }\r\n }\r\n \r\n // Look for statusService\r\n NodeList statusServiceNodes = document\r\n .getElementsByTagName(\"statusService\");\r\n \r\n if (statusServiceNodes.getLength() > 0) {\r\n Node node = statusServiceNodes.item(0);\r\n Node item = node.getAttributes().getNamedItem(\"contactEmail\");\r\n \r\n if (item != null) {\r\n this.getStatusService()\r\n .setContactEmail(item.getNodeValue());\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"enabled\");\r\n \r\n if (item != null) {\r\n this.getStatusService().setEnabled(getBoolean(item, true));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"homeRef\");\r\n \r\n if (item != null) {\r\n this.getStatusService().setHomeRef(\r\n new Reference(item.getNodeValue()));\r\n }\r\n \r\n item = node.getAttributes().getNamedItem(\"overwrite\");\r\n \r\n if (item != null) {\r\n this.getStatusService()\r\n .setOverwrite(getBoolean(item, true));\r\n }\r\n }\r\n } catch (Exception e) {\r\n getLogger().log(Level.WARNING,\r\n \"Unable to parse the Component XML configuration.\", e);\r\n }\r\n }", "public void openBuildFile( final File build_file ) {\n if ( build_file == null || !build_file.exists() )\n return ;\n boolean new_file = !build_file.equals( _build_file );\n _build_file = build_file;\n try {\n // constraints for layout\n KappaLayout.Constraints con = KappaLayout.createConstraint();\n con.s = \"w\";\n con.p = 1;\n\n // set up panels\n if ( _center_panel == null ) {\n _center_panel = new DeckPanel();\n AntelopePanel.this.add( _center_panel, BorderLayout.CENTER );\n }\n else {\n _center_panel.removeAll();\n }\n if ( _button_panel == null ) {\n _button_panel = new JPanel( new KappaLayout() );\n _button_panel.setBackground( AntelopePanel.this.getBackground() );\n _button_panel.setBorder( new javax.swing.border.EmptyBorder( 3, 3, 3, 3 ) );\n _scroller = new JScrollPane( _button_panel );\n _scroller.getVerticalScrollBar().setUnitIncrement( 50 );\n _btn_container = new JPanel( new BorderLayout() );\n _btn_container.add( _scroller, BorderLayout.CENTER );\n _btn_container.add( _multi, BorderLayout.SOUTH );\n }\n else {\n _button_panel.removeAll();\n _button_panel.setLayout( new KappaLayout() );\n }\n _center_panel.add( \"panel\", _btn_container );\n\n if ( _sax_panel == null ) {\n _sax_panel = new SAXPanel( _helper );\n }\n // load the 'edit' panel\n boolean isAntBuildFile = _sax_panel.openBuildFile( _build_file );\n _center_panel.add( \"tree\", _sax_panel );\n if ( isAntBuildFile ) {\n if ( _edit_btn.isSelected() )\n _center_panel.last();\n else\n _center_panel.first();\n _run_btn.setEnabled( true );\n _trace_btn.setEnabled( true );\n _edit_btn.setEnabled( true );\n _props_btn.setEnabled( true );\n _options_btn.setEnabled( true );\n }\n else {\n _center_panel.last();\n _run_btn.setEnabled( false );\n _trace_btn.setEnabled( false );\n ///_edit_btn.setEnabled( false );\n _props_btn.setEnabled( false );\n _options_btn.setEnabled( false );\n }\n\n // create a new button panel from the build file\n // make sure the configuration settings are loaded, but first save any\n // previous settings\n try {\n Constants.PREFS.put( Constants.LAST_OPEN_FILE, build_file.getAbsolutePath() );\n }\n catch ( Throwable e ) { // NOPMD\n e.printStackTrace();\n }\n adjustRecentFiles( build_file );\n adjustRecentFilesMenu();\n saveConfigurationSettings();\n\n // create the project and set up the build logger\n if ( isAntBuildFile ) {\n try {\n\n // load the settings for the build file and create an\n // Ant project\n _project = createProject( _build_file );\n loadPropertyFiles();\n\n // set up \"Execute\" button for multiple targets\n if ( new_file ) {\n _multi.setSelected( _settings.getMultipleTargets() );\n }\n if ( _multi.isSelected() ) {\n JButton execute_btn = new JButton( \"Execute\" );\n _button_panel.add( execute_btn, con );\n execute_btn.addActionListener( _execute_listener );\n ++con.y;\n }\n\n // set the label with the name of this project\n String project_name = _project.getProperty( \"ant.project.name\" );\n if ( project_name == null || project_name.equals( \"\" ) )\n project_name = \"<unnamed project>\";\n _project_name.setText( project_name );\n\n // load the targets from the build file, only keep the targets\n // that meet the user's subtarget display settings.\n Map targets = _project.getTargets();\n if ( targets == null || targets.size() == 0 ) {\n //Log.log( \"no targets in project\" );\n return ; /// ??? really ???\n }\n\n ///\n for ( Iterator it = targets.keySet().iterator(); it.hasNext(); ) {\n Log.log( \"target in targets: \" + it.next() );\n }\n\n\n\n // Ant 1.6 has an un-named target to hold project-level tasks, so\n // find it and save it for later.\n _unnamed_target = null;\n Log.log( \"+++++ AntUtils.getAntVersion: \" + AntUtils.getAntVersion() );\n if ( AntUtils.getAntVersion() >= 1.6 ) {\n Iterator iter = targets.keySet().iterator();\n while ( iter.hasNext() ) {\n if ( iter.next().toString().equals( \"\" ) ) {\n _unnamed_target = ( Target ) targets.get( \"\" );\n }\n }\n }\n\n // make buttons by sorting the targets by name or by leaving\n // them in the order they appear in the build file\n if ( _settings.getSortTargets() )\n _targets = new TreeMap( java.text.Collator.getInstance() );\n else\n _targets = new LinkedHashMap();\n Map sax_targets = _sax_panel.getTargets();\n\n ///\n ///for (Iterator ix = sax_targets.keySet().iterator(); ix.hasNext(); ) {\n /// String key = (String)ix.next();\n /// Object value = sax_targets.get(key);\n /// Log.log(\"sax_targets: \" + key + \":\" + value);\n ///}\n ///\n\n Iterator it = sax_targets.keySet().iterator(); ///targets.keySet().iterator();\n while ( it.hasNext() ) {\n // adjust which targets are showing --\n String target_name = ( String ) it.next();\n // Ant 1.6 has an un-named target to hold project-level tasks.\n // It has no name and shouldn't be executed by itself, so\n // don't make a button for it.\n if ( target_name == null || target_name.equals( \"\" ) ) {\n continue;\n }\n\n Target target = ( Target ) targets.get( target_name );\n\n if ( target == null ) {\n SAXTreeNode node = ( SAXTreeNode ) sax_targets.get( target_name );\n if ( node.isImported() ) {\n target_name = node.getAttributeValue( \"name\" );\n target = ( Target ) targets.get( target_name );\n ///\n ///System.out.println(\"+++++ \" + node.getFile());\n ///\n }\n if ( target == null )\n continue;\n }\n String description = target.getDescription();\n if ( _settings.getShowAllTargets() ) {\n _targets.put( target_name, target );\n }\n else {\n if ( target_name.indexOf( '.' ) > 0 && _settings.getShowTargetsWDot() ) {\n // got dots and that's okay, show the target\n _targets.put( target_name, target );\n continue;\n }\n if ( target_name.indexOf( '.' ) > 0 && !_settings.getShowTargetsWDot() ) {\n // got dots and that's not okay\n continue;\n }\n if ( target_name.startsWith( \"-\" ) && _settings.getShowTargetsWDash() ) {\n // got dash and that's okay, show the target\n _targets.put( target_name, target );\n continue;\n }\n if ( target_name.startsWith( \"-\" ) && !_settings.getShowTargetsWDash() ) {\n // got dash and that's not okay\n continue;\n }\n if ( ( description == null || description.equals( \"\" ) ) && _settings.getShowTargetsWODesc() ) {\n // got no desc and that's okay, show the target\n _targets.put( target_name, target );\n continue;\n }\n if ( ( description == null || description.equals( \"\" ) ) && !_settings.getShowTargetsWODesc() ) {\n // got no desc and that's not okay\n continue;\n }\n if ( target_name.indexOf( '.' ) == -1 && description != null ) {\n // got no dots and got desc, show the target\n _targets.put( target_name, target );\n }\n }\n }\n\n if ( _unnamed_target != null ) {\n _targets.put( IMPLICIT_TARGET_NAME, _unnamed_target );\n }\n // make a new button panel and populate it with new buttons\n // for the targets for this project\n _buttons = new ArrayList();\n _execute_targets = new ArrayList();\n it = _targets.keySet().iterator();\n while ( it.hasNext() ) {\n String target_name = ( String ) it.next();\n Target target = ( Target ) _targets.get( target_name );\n if ( target == null ) {\n continue;\n }\n String description = target.getDescription();\n if ( description == null ) {\n description = target_name;\n }\n AbstractButton button;\n if ( _multi.isSelected() ) {\n if ( target_name.equals( IMPLICIT_TARGET_NAME ) )\n continue;\n SAXTreeNode node = ( SAXTreeNode ) sax_targets.get( target_name );\n button = new JCheckBox( );\n StringBuilder btn_text = new StringBuilder(\"<html>\");\n if ( node == null ) {\n btn_text.append( \"<i>\" );\n }\n else {\n if ( node.isPrivate() )\n btn_text.append(\"<i>\");\n if ( node.isDefaultTarget() )\n button.setForeground( GREEN );\n }\n btn_text.append(target_name);\n button.setText( btn_text.toString() );\n button.addActionListener( _cb_listener );\n button.setBackground( _button_panel.getBackground() );\n if ( node != null && node.isDefaultTarget() )\n _default_btn = button;\n }\n else {\n StringBuilder btn_text = new StringBuilder(\"<html>\");\n SAXTreeNode node = ( SAXTreeNode ) sax_targets.get( target_name );\n button = new JButton();\n if ( node == null ) { // this shouldn't happen\n btn_text.append(isPrivate( target ) ? \"<i>\" : \"\");\n }\n else {\n if ( node.isPrivate() )\n btn_text.append(\"<i>\");\n if ( node.isDefaultTarget() )\n button.setForeground( GREEN );\n }\n btn_text.append(target_name);\n button.setText( btn_text.toString() );\n button.addActionListener( _button_listener );\n if ( node != null && node.isDefaultTarget() )\n _default_btn = button;\n }\n button.setActionCommand( target_name );\n button.setToolTipText( description );\n _button_panel.add( button, con );\n _buttons.add( button );\n ++con.y;\n }\n // if new and was multi, restore selected targets\n if ( new_file && _multi.isSelected() ) {\n it = _settings.getMultipleTargetList().iterator();\n while ( it.hasNext() ) {\n String name = ( String ) it.next();\n Iterator itr = _buttons.iterator();\n while ( itr.hasNext() ) {\n AbstractButton btn = ( AbstractButton ) itr.next();\n if ( btn.getActionCommand().equals( name ) )\n btn.doClick();\n }\n }\n }\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n\n /// not sure this is a good idea, we're calling invokeLater\n /// from within an invokeLater\n /* */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n _button_panel.validate();\n AntelopePanel.this.validate();\n AntelopePanel.this.repaint();\n }\n }\n );\n /* */\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n fireEvent( _build_file );\n\n }", "private void openGraphML()\r\n {\r\n // Create the file filter.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"xml\", \"Graph ML (*.xml)\")\r\n };\r\n \r\n // Open the file.\r\n String file = openFileChooser(true, filters);\r\n \r\n // Process the file.\r\n if (file != null)\r\n {\r\n m_graph = Loader.loadGraphML(file);\r\n GraphDisplay2 disp = new GraphDisplay2(m_graph, GRAPH_DISTANCE_FILTER,0,0,\"\");\r\n GraphPanel2 panel = new GraphPanel2(disp, LEGEND, HOPS_CONTROL_WIDGET);\r\n m_tabbedPane.setComponentAt(2, panel);\r\n }\r\n }", "private void initWorkspace() throws IOException {\n // THE MAIN WORKSPACE HOLDS BOTH THE BASIC INFO\n // CONTROLS AS WELL AS THE PAGE SELECTION CONTROLS\n initMainWorkspace();\n\n // THIS HOLDS ALL OUR WORKSPACE COMPONENTS, SO NOW WE MUST\n // ADD THE COMPONENTS WE'VE JUST INITIALIZED\n workspacePane = new BorderPane();\n workspacePane.setCenter(mainWorkspacePane);\n workspacePane.getStyleClass().add(CLASS_BORDERED_PANE);\n\n // NOTE THAT WE HAVE NOT PUT THE WORKSPACE INTO THE WINDOW,\n // THAT WILL BE DONE WHEN THE USER EITHER CREATES A NEW\n // COURSE OR LOADS AN EXISTING ONE FOR EDITING\n workspaceActivated = false;\n }", "public void openProject(File file) {\n\n try {\n if (!file.exists()) {\n JOptionPane.showMessageDialog(Application.getFrame(),\n \"Can't open project - file \\\"\" + file.getPath() + \"\\\" does not exist\",\n \"Can't Open Project\", JOptionPane.OK_OPTION);\n return;\n }\n \n getApplication().getFrameController().addToLastProjListAction(\n file.getAbsolutePath());\n\n Configuration config = buildProjectConfiguration(file);\n Project project = new ApplicationProject(file, config);\n getProjectController().setProject(project);\n\n // if upgrade was canceled\n int upgradeStatus = project.getUpgradeStatus();\n if (upgradeStatus > 0) {\n JOptionPane\n .showMessageDialog(\n Application.getFrame(),\n \"Can't open project - it was created using a newer version of the Modeler\",\n \"Can't Open Project\",\n JOptionPane.OK_OPTION);\n closeProject(false);\n }\n else if (upgradeStatus < 0) {\n if (processUpgrades(project)) {\n getApplication().getFrameController().projectOpenedAction(project);\n }\n else {\n closeProject(false);\n }\n }\n else {\n getApplication().getFrameController().projectOpenedAction(project);\n }\n }\n catch (Exception ex) {\n logObj.warn(\"Error loading project file.\", ex);\n ErrorDebugDialog.guiWarning(ex, \"Error loading project\");\n }\n }", "private void openFile()\r\n {\r\n int returnState = openFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = openFileChooser.getSelectedFile();\r\n openUriInBackground(file.toURI());\r\n } \r\n }", "public static void getWorkspace1 () {\n //Create retriever\n retriever = new ItemRetriever();\n //Set class and item information\n retriever.setItemClassName(\"KB-WORKSPACE\");\n retriever.setItemName(\"WKSP-1\"); \n retriever.setHost(\"localhost\");\n retriever.setPort(\"1112\");\n try {\n kbWorkspace = (KbWorkspace)retriever.retrieveItem();\n System.out.println(kbWorkspace);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static IFile convertFileToIFile(File file) {\r\n IPath path = new Path(file.getAbsolutePath());\r\n \r\n IPath wsPath = convertToWorkspacePath(path, true);\r\n if (wsPath != null)\r\n \treturn ResourcesPlugin.getWorkspace().getRoot().getFile(wsPath);\r\n \r\n return null;\r\n }", "void reloadInternal()\r\n {\r\n final ArrayList<Workspace> newWorkspaces = new ArrayList<Workspace>();\r\n\r\n final File[] files = FileUtil.getFiles(new File(FileUtil.getGenericPath(WORKSPACE_PATH)), new FileFilter()\r\n {\r\n @Override\r\n public boolean accept(File file)\r\n {\r\n // only accept xml file\r\n return FileUtil.getFileExtension(file.getPath(), true).toLowerCase().equals(EXT);\r\n }\r\n }, true, false, false);\r\n\r\n for (File file : files)\r\n {\r\n final Workspace workspace = new Workspace(file);\r\n\r\n // don't load the specific system workspace\r\n if (!workspace.getName().equals(Workspace.WORKSPACE_SYSTEM_NAME))\r\n {\r\n // empty workspace ?\r\n if (workspace.isEmpty())\r\n {\r\n // don't show this message for default workspace\r\n // if (!workspace.getName().equals(Workspace.WORKSPACE_DEFAULT_NAME))\r\n System.err.println(\"Empty workspace '\" + workspace.getName() + \"' is not loaded\");\r\n }\r\n else\r\n newWorkspaces.add(workspace);\r\n }\r\n }\r\n\r\n // sort list\r\n Collections.sort(newWorkspaces);\r\n\r\n // set workspace list\r\n workspaces = newWorkspaces;\r\n\r\n // notify change\r\n changed();\r\n }", "public static GraphUndirected<NodeCppOSM, EdgeCppOSM> importOsmUndirected(final String filename) {\n \t\t// setting up\n \t\tGraphUndirected<NodeCppOSM, EdgeCppOSM> osmGraph = new GraphUndirected<>();\n \t\tFileReader fis = null;\n \t\tHashMap<Long, WayNodeOSM> osmNodes = new HashMap<>();\n \t\ttry {\n \t\t\t// create a StAX XML parser\n \t\t\tfis = new FileReader(filename);\n \t\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n \t\t\tXMLStreamReader parser = factory.createXMLStreamReader(fis);\n \t\t\t// go through all events\n \t\t\tfor (int event = parser.next(); \n \t\t\t\t\tevent != XMLStreamConstants.END_DOCUMENT;\n \t\t\t\t\tevent = parser.next()){\n \t\t\t\tif (event == XMLStreamConstants.START_ELEMENT) {\n \t\t\t\t\t//we are only interested in node|way elements\n \t\t\t\t\tif (parser.getLocalName().equals(\"node\")) {\n \t\t\t\t\t\t// get the node and store it\n \t\t\t\t\t\tWayNodeOSM node = processNode(parser);\n \t\t\t\t\t\tosmNodes.put(node.getID(), node);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (parser.getLocalName().equals(\"way\")) {\n \t\t\t\t\t\t\t// get the way and add it to the graph\n \t\t\t\t\t\t\t// this also creates all the included nodes\n \t\t\t\t\t\t\tOSMWay way = processWay(parser,osmNodes);\n \t\t\t\t\t\t\taddWay(osmGraph,osmNodes,way);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// tear down the parser\n \t\t\tparser.close();\n \t\t\tparser = null;\n \t\t\tfactory = null;\n \t\t}\n \t\tcatch (IOException e){\n \t\t\tSystem.out.println(\"IOExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t} catch (XMLStreamException e) {\n \t\t\tSystem.out.println(\"XMLStreamExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t}\n \t\tif(fis!=null){\n \t\t\ttry {\n \t\t\t\tfis.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.exit(0);\n \t\t\t} \n \t\t}\n \t\t// reduce the number of nodes\n \t\treturn osmGraph;\n \t}", "public void loadFromFile(String cinderellaFilePath) throws IOException {\n\t\tString dataLine;\n\t\tBufferedReader bufferedReader = null;\n\t\t\n\t\tunzip(cinderellaFilePath);\n\t\t\n\t\ttry {\n\t\t\tbufferedReader = new BufferedReader(\n\t\t\t\t\tnew FileReader(TEMP_FOLDER + File.separator + \"construction.cdy\"));\n\t\t\twhile ((dataLine = bufferedReader.readLine()) != null) {\n\t\t\t\tif (dataLine.matches(\".*:=FreePoint.*\")) {\n\t\t\t\t\taddElement(parseFreePoint(dataLine));\t\t\t\t\t\n\t\t\t\t}else if (dataLine.matches(\".*:=Meet.*\")) {\n\t\t\t\t\taddElement(parseMeet(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=Mid.*\")) {\n\t\t\t\t\taddElement(parseMid(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=Join.*\")) {\n\t\t\t\t\taddElement(parseJoin(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=Segment.*\")) {\n\t\t\t\t\taddElement(parseSegment(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=Through.*\")) {\n\t\t\t\t\taddElement(parseThrough(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=Parallel.*\")) {\n\t\t\t\t\taddElement(parseParallel(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=Orthogonal.*\")) {\n\t\t\t\t\taddElement(parseOrthogonal(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=AngularBisector.*\")) {\n\t\t\t\t\taddElement(parseAngularBisector(dataLine));\n\t\t\t\t}\n\t\t\t\telse if (dataLine.matches(\".*:=CircleMP.*\")) {\n\t\t\t\t\taddElement(parseCircleMP(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=CircleByRadius.*\")) {\n\t\t\t\t\taddElement(parseCircleByRadius(dataLine));\n\t\t\t\t}else if (dataLine.matches(\".*:=CircleBy3.*\")) {\n\t\t\t\t\taddElement(parseCinderellaCircleBy3(dataLine));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void processOpen(@NotNull final Path file) {\n\n final AbstractNodeTree<ModelChangeConsumer> nodeTree = getNodeTree();\n final ModelChangeConsumer changeConsumer = requireNonNull(nodeTree.getChangeConsumer());\n\n final Path assetFile = requireNonNull(getAssetFile(file), \"Not found asset file for \" + file);\n final String assetPath = toAssetPath(assetFile);\n\n final ModelKey modelKey = new ModelKey(assetPath);\n\n final AssetManager assetManager = EDITOR.getAssetManager();\n final Spatial loadedModel = assetManager.loadModel(assetPath);\n final Geometry geometry = NodeUtils.findGeometry(loadedModel);\n\n if (geometry == null) {\n LOGGER.warning(this, \"not found a geometry in the model \" + assetPath);\n return;\n }\n\n final ModelNode<?> modelNode = getNode();\n final ParticleEmitterNode element = (ParticleEmitterNode) modelNode.getElement();\n\n changeConsumer.execute(new ChangeEmitterShapeOperation(geometry.getMesh(), element));\n }", "public void open (File file, boolean suppressStyling)\n\t{\n\t\tthis.file = file;\n\t\tif (editor.open (file, suppressStyling))\n\t\t\tgetRootPane().putClientProperty (\"Window.documentFile\", file);\n\t\telse this.file = null;\n\t\teditor.grabFocus();\n\t\tmodel = null;\n\t\tupdate();\n\t}", "private void openFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.openFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tframe.setTitle(file.getName());\r\n\t\t\tedit = false;\r\n\t\t\tBibtexPrefs.addOpenedFile(file);\r\n\t\t\tpopulateRecentMenu();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\terrorDialog(e.toString());\r\n\t\t} catch (IllegalArgumentException e){\r\n\t\t\terrorDialog(\"The bibtex file \" +file.getPath()+ \" appears to be invalid.\\n\"\r\n\t\t\t\t\t+ \"Parsing error occured because you have the following in your file:\\n\"\r\n\t\t\t\t\t+e.getMessage());\r\n\t\t}\r\n\t}", "public void loadFrom(DockingContext context) throws WorkspaceException {\n\t\ttry {\n\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\t\tcontext.writeXML(out);\n\t\t\tout.close();\n\t\t\tbyte[] bytes = out.toByteArray();\n\t\t\t//System.out.println(new String(bytes));\n\t\t\tByteArrayInputStream is = new ByteArrayInputStream(bytes);\n\t\t\treadXML(is);\n\t\t\tis.close();\n\t\t} catch(Exception e) {\n\t\t\tthrow new WorkspaceException(e);\n\t\t}\n\t}", "FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;", "public void openGraph(String dirName, String fileName) {\r\n try {\r\n ObjectInputStream in = new ObjectInputStream(new FileInputStream(dirName + fileName));\r\n\r\n /* Type of the graph */\r\n int type = in.readInt();\r\n\r\n /* Graph */\r\n switch (type) {\r\n case GRAPH_UNORIENTED:\r\n this.graph = (GraphUnoriented) in.readObject();\r\n break;\r\n case GRAPH_ORIENTED:\r\n this.graph = (GraphOriented) in.readObject();\r\n break;\r\n }\r\n this.graphX = (GraphX) in.readObject();\r\n\r\n /* Scroll Rectangle */\r\n this.scrollRectangle = (Rectangle) in.readObject();\r\n\r\n in.close();\r\n\r\n repaintGraph();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(e);\r\n }\r\n\r\n indexTool = SELECT_TOOL;\r\n }", "private void importObjFile()\r\n {\r\n int returnState = importObjFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = importObjFileChooser.getSelectedFile();\r\n importObjUriInBackground(file.toURI());\r\n } \r\n }", "private void openFile(File file) {\n try {\n desktop.open(file);\n } catch (IOException e) {\n e.printStackTrace();\n// Logger.getLogger(\n// FileChooser.class.getName()).log(\n// Level.SEVERE, null, ex\n// );\n }\n }", "public void load() {\n\t\tif (jfc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)\n\t\t\tload(jfc.getSelectedFile().getAbsolutePath());\n\t}", "public void loadRepository(String url) throws MalformedURLException, URISyntaxException {\r\n\t\t\r\n\t\t//-- Elimiate empty strings\r\n\t\tif (url.length()==0)\r\n\t\t\treturn;\r\n\t\t\r\n\t\t//-- Try to open the URL\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//-- all \\ from windows like path must be converted to /\r\n\t\t\turl = url.replace(\"\\\\\", \"/\");\r\n\t\t\t\r\n\t\t\t//-- Get input stream: All URLss have to point to an xml file\r\n\t\t\tURI repositoryURI = new URI(url);\r\n\t\t\t\r\n\t\t\t//-- If not an XML file, add a default name\r\n\t\t\tif (!repositoryURI.toString().endsWith(\".xml\") \r\n\t\t\t\t\t&& (repositoryURI.getScheme()==null || repositoryURI.getScheme().length()==1)) {\r\n\t\t\t\t\r\n\t\t\t\t// (add file scheme also)\r\n\t\t\t\trepositoryURI = new URI(repositoryURI.toString()+\"/\"+\"stylesheets.xml\");\r\n\t\t\t\t\r\n\t\t\t} else if (!repositoryURI.toString().endsWith(\".xml\")) {\r\n\t\t\t\t\r\n\t\t\t\trepositoryURI = new URI(repositoryURI.toString()+\"/stylesheets.xml\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//-- Add file scheme if a normal file path is provided\r\n\t\t\t// (scheme length will be 1 under windows because Drive letter is taken as such)\r\n\t\t\tif (repositoryURI.getScheme()==null || repositoryURI.getScheme().length()==1) {\r\n\t\t\t\trepositoryURI = new URI(\"file://\"+repositoryURI.toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//-- Open\r\n\t\t\tInputStream repositoryDescriptorStream = null;\r\n\t\t\ttry {\r\n\t\t\t\trepositoryDescriptorStream = repositoryURI.toURL().openStream();\r\n\t\t\t} catch (IOException ioex) {\r\n\t\t\t\tthrow new MalformedURLException(\"Provided Stylesheet URI: \"+repositoryURI.toString()+\"(original: \"+url+\") could not be opened: \"+ioex.getMessage());\r\n\t\t\t}\r\n\t\t\t//System.err.println();\r\n\t\t\t\r\n\t\t\t//-- Try to unoox\r\n\t\t\t/*if (repositoryURI.getScheme().equals(\"file\") && new File(repositoryURI.toURL().getFile()).isDirectory()) {\r\n\t\t\t\trepositoryURI = TeaFileUtils.buildPathAsFile(new File(repositoryURI.toURL().getFile()),\"stylesheets.xml\").toURI();\r\n\t\t\t}\r\n\t\t\tInputStream repositoryDescriptorStream = (repositoryURI.getScheme()==null || repositoryURI.getScheme().equals(\"file\")) ? new FileInputStream(new File(repositoryURI.getPath())):repositoryURI.toURL().openStream();\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\t//-- Unwrap and read\r\n\t\t\tWrappingContext ctx = new WrappingContext();\r\n\t\t\tctx.getReplacementBuffersClassMap().put(Stylesheets.class, StylesheetRepository.class);\r\n\t\t\t\r\n\t\t\tStylesheetRepository stylesheets = new StylesheetRepository(repositoryURI);\r\n\t\t\tstylesheets.setNextBuffer(new DOMXMLIO(XMLUtils.buildDocument(repositoryDescriptorStream,null)));\r\n\t\t\tstylesheets.unwrap(ctx);\r\n\t\t\t\r\n\t\t\t//-- Add to map\r\n\t\t\tthis.repositories.put(stylesheets.getId().getValue(),stylesheets);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnwrapException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\n\t\t final JFileChooser sorceXmFileChooser;\t\t\n\t\t \n\t if (e.getSource() instanceof JButton) \n\t {\t \t \n\t // The user want choose a source XML file\n\t if (e.getActionCommand().equals(\"Find\")) \n\t {\n\t \t sorceXmFileChooser = new JFileChooser();\n\t \t sorceXmFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t \t sorceXmFileChooser.setDialogTitle(\"Choose xml file source\");\n\t \t sorceXmFileChooser.setFileFilter(new CustomFileFilter());\n\t \n\t int value = sorceXmFileChooser.showOpenDialog(this);\n\t \n\t // Return value if approved (ie yes, ok) is chosen.\n\t if (value==JFileChooser.APPROVE_OPTION)\n\t {\n\t \t File f = sorceXmFileChooser.getSelectedFile();\n\t \t \n\t \t pathSourceXMLfile = f.getAbsolutePath(); \t \n\t \t sourceXMLfileTextField.setText(pathSourceXMLfile); \n\t \t \n\t \t try {\n\t\t\t\t\t\tthis.loadOrRefreshXml(f,true);\n\t\t\t\t\t } catch (Exception e1) {\t\n\t\t\t\t\t\t messageLabel.setText(e1.getMessage());\t\t\t\t\t\t\n\t\t\t\t\t } \n\t }\t \n\t }\n\t \n\t // Edit the chosen input XML file\n\t if(e.getActionCommand().equals(\"Edit XML\"))\n\t {\n\t \t InputFileEditorGui editor = new InputFileEditorGui(this.sourceXMLfileTextField.getText());\n\t }\n\t \n\t // Refresh the XML showed in the text area after his editing with internal (or external) editor -----\n\t if(e.getActionCommand().equals(\"Refresh XML\"))\n\t {\t \t \n\t \t File f = new File(this.sourceXMLfileTextField.getText()); \n\t \t try {\n\t\t\t\t\tthis.loadOrRefreshXml(f,false);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tmessageLabel.setText(e1.getMessage());\n\t\t\t\t}\t \n\t } \n\t \n\t // Close the application\n\t if (e.getActionCommand().equals(\"Close\"))\n\t {\t \t \n\t \t\tif (mainFrame.isDisplayable()) { \n\t \t\t mainFrame.dispose();\n\t }\n \t }\n\t \n\t // Expand all the tree nodes\n\t if (e.getActionCommand().equals(\"Expand All\"))\n\t {\t \t \n\t \tint row = xmlJTree.getRowCount() - 1;\n\t \twhile (row >= 0) {\n\t \t xmlJTree.expandRow(row);\t \t \n\t \t row--;\n\t \t}\t\n \t } \n\n\t // Compact all the tree nodes\n\t\t\t if (e.getActionCommand().equals(\"Compact All\"))\n\t\t\t {\t\t\t\t\n\t\t\t\tint row = xmlJTree.getRowCount() - 1;\t \t\n\t \twhile (row >= 2) {\n\t \t xmlJTree.collapseRow(row);\t \t \n\t \t row--;\n\t \t}\t\t\t\t\n\t\t\t }\t \n\t } \t\n\t}", "@Remote\npublic interface ExplorerService {\n\n /**\n * Return a list of items for the specified Path. The Path can be either:-\n * - A Project Root (i.e. folder containing pom.xml and parent of folder containing kmodule.xml)\n * - Within a Project Package (i.e. folder within Project Root and src/main/resources)\n * - Within a Project but outside of a Package (i.e. between pom.xml and src/main/resources)\n * - Other\n * @param path\n * @return\n */\n ExplorerContent getContentInScope( final Path path );\n\n}", "public void invoke(String propsFileName) throws Exception {\n Properties props = getProperties(propsFileName);\n\n // new XBeeDevice(port, BAUD_RATE);\n // String port = props.getProperty(\"port\");\n // System.out.println(\"port = \" + port);\n // System.out.println(\"Creating localXBee...\");\n // System.out.println(\"created local = \" + this.local);\n\n List<RemoteXBeeDevice> remotes = null;\n \n try {\n this.local = getDevice(props);\n remotes = getRemotes(props);\n System.out.println(\"opened local = \" + toString(this.local));\n // System.out.println(\"Local XBee operating mode: \" + localXBee.getOperatingMode());\n OperatingMode requiredMode = OperatingMode.API;\n OperatingMode mode = this.local.getOperatingMode();\n if (mode != requiredMode) {\n throw new RuntimeException(\"this.local is in \" + mode + \", not in \" + requiredMode);\n }\n // Obtain the remote XBee device from the XBee network.\n System.out.println(\"Getting network...\");\n XBeeNetwork network = this.local.getNetwork();\n System.out.println(\"network = \" + toString(network));\n \n } catch (XBeeException e) {\n e.printStackTrace();\n this.local.close();\n System.err.println(\"Exception, ending: \" + e.getMessage());\n System.exit(1);\n }\n }", "private void loadProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showOpenDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t// Delete the current cards\n\t\t\tdeleteAllCards();\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the input streams\n\t\t\t\tFileInputStream fileInput = new FileInputStream(file.getAbsolutePath());\n\t\t\t\tObjectInputStream objectInput = new ObjectInputStream(fileInput);\n\t\t\t\t\n\t\t\t\t// Get ready to save the cards\n\t\t\t\tArrayList<Card> newCards = new ArrayList<Card>();\n\t\t\t\t\n\t\t\t\t// Get the objects\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tObject inputObject = objectInput.readObject();\n\t\t\t\t\t\n\t\t\t\t\twhile(inputObject instanceof Card) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add the card\n\t\t\t\t\t\tnewCards.add((Card) inputObject);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Read the next object\n\t\t\t\t\t\tinputObject = objectInput.readObject();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(EOFException e2) {\n\t\t\t\t\t\n\t\t\t\t\t// We've reached the end of the file, time to add the new project\n\t\t\t\t\taddCards(newCards);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the input streams\n\t\t\t\tobjectInput.close();\n\t\t\t\tfileInput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the current project\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not open the file.\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void openFromFileClicked() {\n\t\tif (GeoGebraJSNativeBridge.get() != null) {\n\t\t\tGeoGebraJSNativeBridge.get().openFromFileClickedNative();\n\t\t}\n\t}", "public void openFile(File file) {\n// new FileSystem().readFile(addressBook, file);\n// addressBook.fireTableDataChanged();\n }", "@Override\r\n \tpublic File getWorkspace(String subspace) {\n \t\treturn null;\r\n \t}", "File openFile();", "public void load (IFile file) throws Exception;", "@FXML\n public void openFolder()\n {\n try\n {\n Desktop.getDesktop().open(nng.getStorePopulation().getParentFile());\n }\n catch (IOException e)\n {\n }\n }", "protected void importEOModel() {\n JFileChooser fileChooser = getEOModelChooser();\n int status = fileChooser.showOpenDialog(Application.getFrame());\n\n if (status == JFileChooser.APPROVE_OPTION) {\n\n // save preferences\n FSPath lastDir = getApplication()\n .getFrameController()\n .getLastEOModelDirectory();\n lastDir.updateFromChooser(fileChooser);\n\n File file = fileChooser.getSelectedFile();\n if (file.isFile()) {\n file = file.getParentFile();\n }\n\n DataMap currentMap = getProjectController().getCurrentDataMap();\n\n try {\n URL url = file.toURI().toURL();\n\n EOModelProcessor processor = new EOModelProcessor();\n\n // load DataNode if we are not merging with an existing map\n if (currentMap == null) {\n loadDataNode(processor.loadModeIndex(url));\n }\n\n // load DataMap\n DataMap map = processor.loadEOModel(url);\n addDataMap(map, currentMap);\n\n }\n catch (Exception ex) {\n logObj.info(\"EOModel Loading Exception\", ex);\n ErrorDebugDialog.guiException(ex);\n }\n\n }\n }", "private void open() {\n\t\tint state = fileChooser.showOpenDialog(this);\n\t\tswitch (state) {\n\t\tcase JFileChooser.CANCEL_OPTION:\n\t\t\tbreak;\n\t\tcase JFileChooser.APPROVE_OPTION:\r\n\t\t\tFile file = fileChooser.getSelectedFile();\r\n\t\t\t//System.out.println(\"Getting file...\");\r\n\t\t\ttry {\r\n\t\t\t\tfis = new FileInputStream(file);\r\n\t\t\t\tbyte[] b = new byte[fis.available()];\r\n\t\t\t\tif (fis.read(b) == b.length) {\r\n\t\t\t\t\t//System.out.println(\"File read: \" + file.getName());\r\n\t\t\t\t}\r\n\t\t\t\tdistributable = new Distributable(file.getName(), b);\r\n\t\t\t\tdiscoveryRelay.setDistributable(distributable);\r\n\t\t\t} \r\n\t\t\tcatch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} \r\n\t\t\tcatch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\n\t\t\tbreak;\n\t\tcase JFileChooser.ERROR_OPTION:\n\t\t}\n\t}", "private void openPressed(){\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showOpenDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\n\t\t\tSaveFile saveFile = null;\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\t\tinput.close();\n\t\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\tSystem.out.println(\"Open Success\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void open(String fileName);", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJFileChooser fileChooser = new JFileChooser();\n\n\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"Arquivos rdp\", \"rdp\");\n\n\t\t\tfileChooser.setFileFilter(filter);\n\n\t\t\tint returnVal = fileChooser.showOpenDialog(MainWindow.this);\n\n\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\n\t\t\t\tfileChooser.getSelectedFile(); // retorna um File\n\n\t\t\t\ttry {\n\t\t\t\t\tScanner input = new Scanner(fileChooser.getSelectedFile());\n\n\t\t\t\t\tString placesTmp = input.nextLine();\n\t\t\t\t\tString transitionsTmp = input.nextLine();\n\t\t\t\t\tArrayList<String> edgesTmp = new ArrayList<>();\n\t\t\t\t\twhile (input.hasNext()) {\n\t\t\t\t\t\tedgesTmp.add(input.nextLine());\n\t\t\t\t\t}\n\t\t\t\t\tinput.close();\n\n\t\t\t\t\tString placesStr[] = placesTmp.trim().split(\";\");\n\t\t\t\t\tString transitionsStr[] = transitionsTmp.trim().split(\";\");\n\t\t\t\t\tString edgesStr[][] = new String[edgesTmp.size()][3];\n\n\t\t\t\t\tfor (int i = 0; i < edgesTmp.size(); i++) {\n\t\t\t\t\t\tedgesStr[i] = edgesTmp.get(i).trim().split(\"-\");\n\t\t\t\t\t}\n\n\t\t\t\t\tArrayList<Place> places = new ArrayList<>();\n\n\t\t\t\t\tfor (String placeStr : placesStr) {\n\t\t\t\t\t\tString place[] = placeStr.split(\",\");\n\t\t\t\t\t\tplaces.add(new Place(place[0], Integer.parseInt(place[1])));\n\t\t\t\t\t}\n\n\t\t\t\t\tArrayList<Transition> transitions = new ArrayList<>();\n\t\t\t\t\tMap<String, ArrayList<Edge>> edges = new HashMap<>();\n\n\t\t\t\t\tfor (String transitionStr : transitionsStr) {\n\t\t\t\t\t\ttransitions.add(new Transition(transitionStr, false));\n\t\t\t\t\t\tedges.put(transitionStr, new ArrayList<Edge>());\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int i = 0; i < edgesStr.length; i++) {\n\n\t\t\t\t\t\tState origin = null;\n\t\t\t\t\t\tState destiny = null;\n\n\t\t\t\t\t\t// Verifica se o hashmap tem o label da origem como\n\t\t\t\t\t\t// chave\n\t\t\t\t\t\tif (edges.containsKey(edgesStr[i][0])) {\n\t\t\t\t\t\t\t// origem e uma transicao\n\t\t\t\t\t\t\tfor (Transition transition : transitions) {\n\t\t\t\t\t\t\t\tif (transition.getLabel().equals(edgesStr[i][0])) {\n\t\t\t\t\t\t\t\t\torigin = transition;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor (Place place : places) {\n\t\t\t\t\t\t\t\tif (place.getLabel().equals(edgesStr[i][2])) {\n\t\t\t\t\t\t\t\t\tdestiny = place;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// origem e um lugar\n\t\t\t\t\t\t\tfor (Place place : places) {\n\t\t\t\t\t\t\t\tif (place.getLabel().equals(edgesStr[i][0])) {\n\t\t\t\t\t\t\t\t\torigin = place;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor (Transition transition : transitions) {\n\t\t\t\t\t\t\t\tif (transition.getLabel().equals(edgesStr[i][2])) {\n\t\t\t\t\t\t\t\t\tdestiny = transition;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tEdge edge = new Edge(origin, destiny, Integer.parseInt(edgesStr[i][1]));\n\n\t\t\t\t\t\tif (origin instanceof Transition) {\n\t\t\t\t\t\t\tedges.get(origin.getLabel()).add(edge);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tedges.get(destiny.getLabel()).add(edge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tPetriNetwork petriNetwork = new PetriNetwork(places, transitions, edges);\n\n\t\t\t\t\taddTab(petriNetwork, fileChooser.getSelectedFile().getName());\n\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tJOptionPane.showMessageDialog(MainWindow.this, \"Erro ao abrir o arquivo!\", \"Erro\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void componentOpened() {\n projectOnLookup = Utilities.actionsGlobalContext().lookupResult(Node.class);\n projectOnLookup.addLookupListener(this);\n\n if (!projectOnLookup.allInstances().isEmpty()) {\n exN = projectOnLookup.allInstances().iterator().next();\n exObj = (Experiment) exN.getLookup().lookup(Experiment.class);\n }\n if (exObj == null) {\n return;\n }\n upDateScene();\n pcl = new PCL();\n exObj.addPropertyChangeListener(pcl);\n }", "File getWorkfile();", "private void initialize() {\n frame = new JFrame();\n trSource = new JTree();\n DefaultTreeModel treeModel = (DefaultTreeModel) trSource.getModel();\n treeModel.setRoot(new DefaultMutableTreeNode(\"Nothing\"));\n treeModel.reload();\n\n // ((DefaultTreeModel)trSource.getModel().getRoot())\n frame.setBounds(100, 100, 700, 600);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n\n frame.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n\n mnFile = new JMenu(\"File\");\n menuBar.add(mnFile);\n\n mntmOpen = new JMenuItem(\"Open\");\n mntmOpen.addActionListener((ActionEvent e) -> {\n chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a File\");\n chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n FileNameExtensionFilter wRebecaFilter = new FileNameExtensionFilter(\n \"wireless Rebeca for dynamic topology(.wRebeca)\", \"wRebeca\");\n FileNameExtensionFilter bRebecaFilter = new FileNameExtensionFilter(\n \"broadcasting Rebeca for static topology(.bRebeca)\", \"bRebeca\");\n chooser.addChoosableFileFilter(bRebecaFilter);\n chooser.addChoosableFileFilter(wRebecaFilter);\n if (chooser.showOpenDialog(mntmOpen) == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"CurrentDirectory: \" + chooser.getCurrentDirectory());\n System.out.println(\"SelectedFile: \" + chooser.getSelectedFile());\n filePath = chooser.getSelectedFile().getPath();\n inputFile = chooser.getSelectedFile();\n try {\n FileReader inputReader = new FileReader(filePath);\n textArea.read(inputReader, null);\n List<String> codeLines = Files.readAllLines(inputFile.toPath());\n if (inputFile.toString().matches(\".*.rebeca\")) {\n compileInfo.getInstance().setClassic(true);\n } else if (inputFile.toString().matches(\".*.wrebeca\")) {\n compileInfo.getInstance().setDynamic(true);\n } else {\n compileInfo.getInstance().setDynamic(false);\n }\n DefaultMutableTreeNode r = createCodeTree(codeLines);\n DefaultTreeModel treeModel1 = (DefaultTreeModel) trSource.getModel();\n treeModel1.setRoot(r);\n treeModel1.reload();\n mnVerification.setEnabled(false);\n mntmCompile.setEnabled(true);\n mntmCreateStateSpace.setEnabled(false);\n }catch (FileNotFoundException e1) {\n }catch (IOException e1) {\n // TODO Auto-generated catch block\n }\n }\n });\n mntmOpen.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n\n }\n });\n\n JMenuItem mntmNew = new JMenuItem(\"New\");\n mntmNew.addActionListener((ActionEvent e) -> {\n if (filePath != null) {\n // save\n saveFile();\n // new\n inputFile = null;\n filePath = null;\n try {\n File file = new File(\"newFile.txt\");\n if (!Files.exists(file.toPath())) {\n file.createNewFile();\n }\n textArea.read(new FileReader(\"newFile.txt\"), null);\n treeModel.setRoot(new DefaultMutableTreeNode(\"Nothing\"));\n treeModel.reload();\n } catch (IOException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n });\n mnFile.add(mntmNew);\n mnFile.add(mntmOpen);\n\n mntmSave = new JMenuItem(\"Save\");\n mntmSave.addActionListener((ActionEvent e) -> {\n saveFile();\n });\n mnFile.add(mntmSave);\n\n JMenuItem mntmExit = new JMenuItem(\"Exit\");\n mntmExit.addActionListener((ActionEvent e) -> {\n System.exit(0);\n });\n mnFile.add(mntmExit);\n\n mnSource = new JMenu(\"Run\");\n menuBar.add(mnSource);\n\n mntmCompile = new JMenuItem(\"Compile\");\n mntmCompile.setEnabled(false);\n mntmCompile.addActionListener((ActionEvent e) -> {\n if (inputFile == null) {\n saveFile();\n }\n if (inputFile != null) {\n compile = new frmCompile(errorList, frame);\n System.out.println(\"configure compiling options\");\n compile.showFrm(filePath);\n }\n // compile.showFrm();\n });\n mnSource.add(mntmCompile);\n\n mntmCreateStateSpace = new JMenuItem(\"Create State Space\");\n mntmCreateStateSpace.setEnabled(false);\n mntmCreateStateSpace.addActionListener((ActionEvent e) -> {\n if (compileInfo.getInstance().isMcrl()) {\n if (!compileInfo.getInstance().isClts()) {\n compileInfo.getInstance().setLts(true);\n }\n compileInfo.getInstance().setMcrl(false);\n }\n create_stateSpace();\n });\n mnSource.add(mntmCreateStateSpace);\n mnVerification = new JMenu(\"Verification\");\n mnVerification.setEnabled(false);\n mnSource.add(mnVerification);\n\n JMenuItem mntmInvariant = new JMenuItem(\"Invariant\");\n mntmInvariant.addActionListener((ActionEvent e) -> {\n load_invariant();\n compileInfo.getInstance().setMcrl(false);\n compileInfo.getInstance().setLts(true);\n //create_stateSpace();\n });\n mnVerification.add(mntmInvariant);\n\n JMenuItem mntmMcrl = new JMenuItem(\"mcrl\");\n mntmMcrl.addActionListener((ActionEvent e) -> {\n compileInfo.getInstance().setMcrl(true);\n compileInfo.getInstance().setLts(false);\n String pkgName = inputFile.getName().toString().split(\"\\\\.\")[0];\n String inputDirctory = inputFile.getParentFile().toString();\n \n chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a File\");\n chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n FileNameExtensionFilter formulaFilter = new FileNameExtensionFilter(\"textual\tµ-Calculus(.mcf)\",\n \"mcf\");\n chooser.setFileFilter(formulaFilter);\n if (chooser.showOpenDialog(mntmOpen) == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"getSelectedFile() : \" + chooser.getSelectedFile());\n try {\n Files.deleteIfExists(Paths.get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.aut\"));\n } catch (IOException e2) {\n // TODO Auto-generated catch block\n e2.printStackTrace();\n }\n if (create_stateSpace()) {\n new Thread(new Runnable() {\n public void run() {\n while (!Files.exists(\n Paths.get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.aut\"))) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n try {\n String command = \"\";\n if (Files.exists(\n Paths.get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.aut\"))) {\n command = \"lts2pbes \\\"\" + inputDirctory + \"/\" + pkgName\n + \"/Output/stateSpaceMcrl.aut\" + \"\\\" \\\"\" + inputDirctory + \"/\" + pkgName\n + \"/Output/stateSpaceMcrl.pbes\" + \"\\\" --data=\\\"\" + inputDirctory + \"/\"\n + pkgName + \"/Output/state_space.mcrl2\" + \"\\\" --formula=\\\"\"\n + chooser.getSelectedFile().getPath() + \"\\\"\";\n System.out.println(command);\n runProcess(command);\n if (Files.exists(Paths\n .get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.pbes\"))) {\n command = \"pbes2bool \\\"\" + inputDirctory + \"/\" + pkgName\n + \"/Output/stateSpaceMcrl.pbes\"\n + \"\\\" --erase=none --rewriter=jitty --search=breadth-first --strategy=0 --verbose\";\n System.out.println(command);\n runProcess(command);\n }\n }\n } catch (Exception e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n }).start();\n }\n }\n });\n mnVerification.add(mntmMcrl);\n\n JMenu mnHelp = new JMenu(\"Help\");\n menuBar.add(mnHelp);\n\n JMenuItem mntmUserManual = new JMenuItem(\"User Manual\");\n mnHelp.add(mntmUserManual);\n mntmUserManual.addActionListener((ActionEvent e) -> { \n \n if (Desktop.isDesktopSupported()) {\n // File in user working directory, System.getProperty(\"user.dir\");\n File file = new File(\"UserManual.pdf\");\n if (!file.exists()) {\n // In JAR\n InputStream inputStream = ClassLoader.getSystemClassLoader()\n .getResourceAsStream(\"UserManual.pdf\");\n // Copy file\n OutputStream outputStream;\n try { \n outputStream = new FileOutputStream(file);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = inputStream.read(buffer)) > 0) {\n outputStream.write(buffer, 0, length);\n }\n outputStream.flush();\n outputStream.close();\n inputStream.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n try {\n java.awt.Desktop.getDesktop().open(file);\n } catch (IOException ex) {\n Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n// try { \n// File file = new File(getClass().getClassLoader().getResource(\"UserManual.pdf\").getFile());\n// java.awt.Desktop.getDesktop().open(file);\n// } catch (IOException ex) {\n// Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n// }\n });\n \n JMenuItem mntmAbout = new JMenuItem(\"About\");\n mnHelp.add(mntmAbout);\n mntmAbout.addActionListener((ActionEvent e) -> { \n JOptionPane.showMessageDialog(frame, \"https://github.com/b-yousefi/wRebeca\",\"About\", 1);\n });\n \n JPanel cpCenter = new JPanel(new BorderLayout());\n frame.setContentPane(cpCenter);\n JPanel cp = new JPanel(new BorderLayout());\n textArea = new RSyntaxTextArea(20, 60);\n textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);\n textArea.setCodeFoldingEnabled(true);\n sp = new RTextScrollPane(textArea);\n // cp.add(sp);\n JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);\n cp.add(splitPane, BorderLayout.CENTER);\n splitPane.setLeftComponent(sp);\n\n JSplitPane splitPaneV = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, trSource, cp);\n\n cpCenter.add(splitPaneV);\n\n JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n tabbedPane.setPreferredSize(new Dimension(tabbedPane.getSize().width, (int) (frame.getHeight() * 0.3)));\n splitPane.setRightComponent(tabbedPane);\n\n JTextArea txtrOutput = new JTextArea();\n PrintStream printStream = new PrintStream(new CustomOutputStream(txtrOutput));\n System.setOut(printStream);\n System.setErr(printStream);\n JScrollPane scrollPaneOut = new JScrollPane();\n tabbedPane.addTab(\"Output\", null, scrollPaneOut, null);\n scrollPaneOut.setViewportView(txtrOutput);\n\n JScrollPane scrollPane = new JScrollPane();\n\n tabbedPane.addTab(\"Errors\", null, scrollPane, null);\n errorList = new JTable();\n scrollPane.setViewportView(errorList);\n errorList.setModel(new DefaultTableModel(new Object[][]{}, new String[]{\"Line\", \"Description\"}));\n\n errorList.getColumnModel().getColumn(1).setPreferredWidth(548);\n\n trSource.addTreeSelectionListener((TreeSelectionEvent e) -> {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) trSource.getLastSelectedPathComponent();\n \n /* if nothing is selected */\n if (node == null) {\n return;\n }\n \n /* retrieve the node that was selected */\n // Object nodeInfo = node.getUserObject();\n // textArea.setCaret(new Caret());\n System.out.println(textArea.getCaretLineNumber());\n \n // .setActiveLineRange(20, 25);\n // .setSelectedOccurrenceText(\"Node\");\n // .setSelectionStart(25);\n try {\n textArea.addLineHighlight(25, Color.CYAN);\n } catch (BadLocationException e1) {\n // TODO Auto-generated catch block\n }\n // getui\n });\n\n }", "public void handleOpenFile (FileSpec fileSpec) {\n this.fileSpec = fileSpec;\n openFile (fileSpec.getFile());\n }", "@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }", "public void openBuildFile( String filename ) {\n if ( filename == null )\n return ;\n File f = new File( filename );\n openBuildFile( f );\n }", "@Override\n public String generareSourcecodetoReadInputFromFile() throws Exception {\n String typeVar = VariableTypes.deleteStorageClasses(this.getType())\n .replace(IAbstractDataNode.REFERENCE_OPERATOR, \"\");\n // Ex: A::B, ::B. We need to get B\n if (typeVar.contains(\"::\"))\n typeVar = typeVar.substring(typeVar.lastIndexOf(\"::\") + 2);\n\n String loadValueStm = \"data.findStructure\" + typeVar + \"ByName\" + \"(\\\"\" + getVituralName() + \"\\\")\";\n\n String fullStm = typeVar + \" \" + this.getVituralName() + \"=\" + loadValueStm + SpecialCharacter.END_OF_STATEMENT;\n return fullStm;\n }", "public NotebookWorkspaceInner() {\n }", "private void deserializeFile(File file) {\n\t\ttry {\n\t\t\tFileInputStream fileinputStream = new FileInputStream(file); // stream to read file from\n\t\t\tObjectInputStream in = new ObjectInputStream(fileinputStream); // stream to read objects from, converted from file stream\n\n\t\t\t@SuppressWarnings(\"unchecked\") // not known for sure the type of the deserialized object\n\t\t\tList<Project> projects = (List<Project>) in.readObject();\n\t\t\tmyProjects = projects;\n\t\t\tpcs.firePropertyChange(\"Import All\", null, projects);\n\t\t\t\n\t\t\tin.close(); \n\t\t\tfileinputStream.close(); \n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: file could not be read.\");\n\t\t}\n\t}", "private void initComponents() {\n\n projectNameLabel = new javax.swing.JLabel();\n projectNameTextField = new javax.swing.JTextField();\n projectLocationLabel = new javax.swing.JLabel();\n projectLocationTextField = new javax.swing.JTextField();\n browseButton = new javax.swing.JButton();\n createdFolderLabel = new javax.swing.JLabel();\n createdFolderTextField = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n inputFiles = new javax.swing.JList();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n outputFolder = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n\n projectNameLabel.setLabelFor(projectNameTextField);\n org.openide.awt.Mnemonics.setLocalizedText(projectNameLabel, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.projectNameLabel.text\")); // NOI18N\n\n projectLocationLabel.setLabelFor(projectLocationTextField);\n org.openide.awt.Mnemonics.setLocalizedText(projectLocationLabel, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.projectLocationLabel.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(browseButton, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.browseButton.text\")); // NOI18N\n browseButton.setActionCommand(org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.browseButton.actionCommand\")); // NOI18N\n browseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseButtonActionPerformed(evt);\n }\n });\n\n createdFolderLabel.setLabelFor(createdFolderTextField);\n org.openide.awt.Mnemonics.setLocalizedText(createdFolderLabel, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.createdFolderLabel.text\")); // NOI18N\n\n createdFolderTextField.setEditable(false);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.jLabel1.text\")); // NOI18N\n\n inputFiles.setModel(getListModel());\n jScrollPane1.setViewportView(inputFiles);\n inputFiles.setModel(getListModel());\n inputFiles.setCellRenderer(new FileListCellRenderer());\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.jButton1.text\")); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton2, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.jButton2.text\")); // NOI18N\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.jLabel2.text\")); // NOI18N\n\n outputFolder.setText(org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.outputFolder.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton3, org.openide.util.NbBundle.getMessage(chromaUIProjectPanelVisual.class, \"chromaUIProjectPanelVisual.jButton3.text\")); // NOI18N\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(projectNameLabel)\n .addComponent(projectLocationLabel)\n .addComponent(createdFolderLabel)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(projectNameTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)\n .addComponent(projectLocationTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)\n .addComponent(createdFolderTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(browseButton))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(outputFolder, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton3)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(projectNameLabel)\n .addComponent(projectNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(projectLocationLabel)\n .addComponent(projectLocationTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(browseButton))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(createdFolderLabel)\n .addComponent(createdFolderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton2)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addGap(36, 36, 36))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(outputFolder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3))\n .addContainerGap())))\n );\n }", "public void importFileClick() {\n\n //Lets the user choose a file location\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Open Resource File\");\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Run-length encoding\",\n \"*.rle\"));\n File file = fileChooser.showOpenDialog(new Stage());\n\n //If a file was chosen, will stop the game and set the generation to 0 and try to load the file.\n if (file != null) {\n timeline.stop();\n gOL.resetGenCounter();\n generationLabel.setText(Integer.toString(gOL.getGenCounter()));\n try {\n fileHandler.readGameBoardFromDisk(file);\n } catch (IOException ie) {\n //Produces a warning if unsuccessful\n PopUpAlerts.ioAlertFromDisk();\n }\n }\n\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n isMovable = true;\n canvasArea.requestFocus();\n setFocusTraversable(false);\n\n //Resets offset to accommodate for the new pattern and calls draw().\n canvasDrawer.resetOffset(board, canvasArea);\n draw();\n }", "private void openLabButton() throws IOException{\n int returnVal = labChooser.showOpenDialog(this);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File lab = labChooser.getSelectedFile();\n openLab(lab);\n } \n }", "void openFilePath(String newFilePath) throws IllegalValueException;", "public NewNetworkAction(IWorkbenchWindow window) {\r\n\t\t// this.window = window;\r\n\t\tsetId(ID);\r\n\t\tsetText(\"&New\");\r\n\t\tsetToolTipText(\"Opens dialog to get network configuration file\");\r\n\t\tActionContainer.add(ID, this);\r\n\t}", "public void open();", "public void open();", "public Object load(String compName) {\n\t\tif (this.preLoaded) {\n\t\t\treturn this.cachedOnes.get(compName);\n\t\t}\n\t\tString fileName = componentFolder + this.folder\n\t\t\t\t+ compName.replace(DELIMITER, FOLDER_CHAR) + EXTN;\n\t\tException exp = null;\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tobj = this.cls.newInstance();\n\t\t\tif (XmlUtil.xmlToObject(fileName, obj) == false) {\n\t\t\t\t/*\n\t\t\t\t * load failed. obj is not valid any more.\n\t\t\t\t */\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texp = e;\n\t\t}\n\n\t\tif (exp != null) {\n\t\t\tTracer.trace(exp, \"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\tif (obj == null) {\n\t\t\tTracer.trace(\"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\t/*\n\t\t * we insist that components be stored with the right naming convention\n\t\t */\n\t\tComponent comp = (Component) obj;\n\t\tString fullName = comp.getQualifiedName();\n\n\t\tif (compName.equalsIgnoreCase(fullName) == false) {\n\t\t\tTracer.trace(\"Component has a qualified name of \" + fullName\n\t\t\t\t\t+ \" that is different from its storage name \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\treturn comp;\n\t}", "private void openRegistryResourceProviderDialog() {\n hide();\n try {\n DataMapperSchemaEditorUtil schemaEditorUtil = new DataMapperSchemaEditorUtil(inputFile);\n RegistryKeyProperty registryPropertyKey =\n EsbFactory.eINSTANCE.createRegistryKeyProperty();\n @SuppressWarnings(\"unchecked\")\n IntegrationStudioElementProviderDialog registryResourceProviderSelector =\n new IntegrationStudioElementProviderDialog(getParentShell(),\n new Class[]{IRegistryFile.class},\n (Map<String, List<String>>) registryPropertyKey.getFilters());\n registryResourceProviderSelector.create();\n registryResourceProviderSelector.getShell().setText(WORKSPACE_ELEMENT_PROVIDERS);\n registryResourceProviderSelector.open();\n if (registryResourceProviderSelector.getReturnCode() == Window.OK) {\n FileType fileType =\n extractFileTypeFromFileExtension(registryResourceProviderSelector.getSelectedPath());\n if (fileType == null) {\n // throw a user message saying not an accepted file type\n return;\n }\n\n String[] getFileName = registryResourceProviderSelector.getSelectedPath()\n .split(File.separator);\n String resourceFile = retrieveWorkSpaceFileLoc(getFileName[getFileName.length - 1]);\n\n boolean isCompatible = checkFileExtensionAgainstTheSchemaType(fileType);\n if (isCompatible) {\n String schema = \n \t\tschemaGeneratorHelper.getSchemaContent(fileType, resourceFile, delimiterTextField.getText());\n String schemaFilePath = null;\n try {\n schemaFilePath = schemaEditorUtil.createDiagram(schema, schemaType);\n } catch (Exception e) {\n // log the error\n }\n\n if (!schemaFilePath.isEmpty()) {\n setSelectedPath(schemaFilePath);\n saveInputOutputSchema(schemaFilePath);\n }\n\n } else {\n String selectedType =\n FileType.values()[schemaTypeCombo.getSelectionIndex()].toString()\n .toLowerCase();\n displayUserError(REASON_FILE_TYPE_MISMATCH + \" \" + selectedType,\n ERROR_WORKSPACE_IMPORT);\n }\n } else {\n return;\n }\n } finally {\n show();\n }\n }", "private void getWorkspace () {\n try {\n\tfinal Sequence wkspNames = connection.getNamedWorkspaces ();\n\tint numWksps = wkspNames.size ();\n\tString[] names = new String [numWksps];\n\tfor (int i=0; i<numWksps; i++)\n\t names[i] = ((Symbol)wkspNames.elementAt(i)).getPrintValue();\n\tStandardDialogClient getHandler = new StandardDialogClient () {\n\t @Override\n\t public void dialogDismissed (StandardDialog d, int code) {\n\t if (d.wasCancelled ()) return;\n\t SelectionDialog sd = (SelectionDialog)d;\n\t int chosenIndex = sd.getResult ();\n\t Symbol wkspName_ = (Symbol) wkspNames.elementAt (chosenIndex);\n\t new WorkspaceDownloadThread (multiWkspView, connection, wkspName_).start ();\n\t }\n\t};\n\tnew SelectionDialog (getCurrentFrame(), \"Get Named Workspace\",\n\t\t\t false, \n\t\t\t \"Choose Workspace to Display\",\n\t\t\t names, false, -1, true, getHandler).setVisible (true);\n } catch (Exception e) {\n\tnew WarningDialog (null, \"Error During Get Workspace\", true, e.toString (), null).setVisible (true);\n }\n }", "public static GraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> importOsmDirected(final String filename) {\n \t\t// setting up\n \t\tGraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph = new GraphDirected<>();\n \t\tFileReader fis = null;\n \t\tHashMap<Long, WayNodeOSM> osmNodes = new HashMap<>();\n \t\ttry {\n \t\t\t// create a StAX XML parser\n \t\t\tfis = new FileReader(filename);\n \t\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n \t\t\tXMLStreamReader parser = factory.createXMLStreamReader(fis);\n \t\t\t// go through all events\n \t\t\tfor (int event = parser.next(); \n \t\t\t\t\tevent != XMLStreamConstants.END_DOCUMENT;\n \t\t\t\t\tevent = parser.next()){\n \t\t\t\tif (event == XMLStreamConstants.START_ELEMENT) {\n \t\t\t\t\t//we are only interested in node|way elements\n \t\t\t\t\tif (parser.getLocalName().equals(\"node\")) {\n \t\t\t\t\t\t// get the node and store it\n \t\t\t\t\t\tWayNodeOSM node = processNode(parser);\n \t\t\t\t\t\tosmNodes.put(node.getID(), node);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (parser.getLocalName().equals(\"way\")) {\n \t\t\t\t\t\t\t// get the way and add it to the graph\n \t\t\t\t\t\t\t// this also creates all the included nodes\n \t\t\t\t\t\t\tOSMWay way = processWay(parser,osmNodes);\n \t\t\t\t\t\t\taddWay(osmGraph,osmNodes,way);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// tear down the parser\n \t\t\tparser.close();\n \t\t\tparser = null;\n \t\t\tfactory = null;\n \t\t}\n \t\tcatch (IOException e){\n \t\t\tSystem.out.println(\"IOExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t} catch (XMLStreamException e) {\n \t\t\tSystem.out.println(\"XMLStreamExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t}\n \t\tif(fis!=null){\n \t\t\ttry {\n \t\t\t\tfis.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.exit(0);\n \t\t\t} \n \t\t}\n \t\t// reduce the number of nodes\n \t\tsimplify(osmGraph);\n \t\treturn osmGraph;\n \t}", "public void open(String file) {\n try {\n Desktop.getDesktop().open(new File(file));\n } catch (IOException error) {\n System.err.println(error.getMessage());\n }\n }", "public ClientLogic(String host, String file) {\n\t\t\thostName = host;\n\t\t\tfileName = file;\n\t\t}", "private void loadOrRefreshXml(File file, boolean isLoad) throws Exception{\n\t\t\n\t // Remove the old content displayed\n \t\tthis.getXmlTextAreaPanel().removeAll();\n \t\t \n \t// The root node of the JTree. Is a special node that has no parent but can have childs \n \tDefaultMutableTreeNode base = new DefaultMutableTreeNode(\"XML Viewer\");\t \t\t \n\t DefaultTreeModel treeModel = new DefaultTreeModel(base);\n\t \t \n\t\txmlJTree = new JTree(treeModel);\n\t\txmlJTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n\t\txmlJTree.setAutoscrolls(true);\n\t\txmlJTree.setCellRenderer(new CustomCellRenderer());\n\t \t \n\t\t// Create the xml parser\n\t SAXParserFactory fact = SAXParserFactory.newInstance();\n\t\tSAXParser parser = fact.newSAXParser();\t \t\t\t\t\n\t\t\t\t \n\t\t// Set to the parser the handler (ie a class that extends the default event handler: DefaultHandler)\n\t\tFile f = new File(this.sourceXMLfileTextField.getText());\n\t\tparser.parse(file,new CustomSaxParseHandler(base,xmlJTree));\n\t\t\n\t\t// By default compact all the tree before show it\n\t\tint row = xmlJTree.getRowCount() - 1;\n\t // Note: use '2' as fix value to compact only the child and not the root\n\t while (row >= 2) {\n\t xmlJTree.collapseRow(row);\t \t \n\t row--;\n\t } \t\t\t\t \n\t\t\t \t\t\t \n\t\tthis.getXmlTextAreaPanel().add(xmlJTree);\n\t\t\t \n\t\t// Refresh (and redraw) the panel and show the tree view of the chosen XML file\n\t\tthis.revalidate();\n\t \t\n\t\tif(!isLoad) //only for refresh xml show a message\n\t\t{\n\t\t messageLabel.setForeground(Color.GREEN);\n\t\t messageLabel.setText(\"Input Reloaded successfully\");\n\t\t} \n\t}", "void open(IdeaProject project);", "private void initComponents() {\n\n projectNameLabel = new javax.swing.JLabel();\n projectNameTextField = new javax.swing.JTextField();\n projectLocationLabel = new javax.swing.JLabel();\n projectLocationTextField = new javax.swing.JTextField();\n browseButton = new javax.swing.JButton();\n createdFolderLabel = new javax.swing.JLabel();\n createdFolderTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n librariesLabel = new javax.swing.JLabel();\n librariesLocation = new javax.swing.JTextField();\n browseLibraries = new javax.swing.JButton();\n sharableProject = new javax.swing.JCheckBox();\n jPanel1 = new javax.swing.JPanel();\n lblHint = new javax.swing.JLabel();\n\n projectNameLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_ProjectName_LabelMnemonic\").charAt(0));\n projectNameLabel.setLabelFor(projectNameTextField);\n projectNameLabel.setText(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_ProjectName_Label\")); // NOI18N\n\n projectNameTextField.setColumns(30);\n\n projectLocationLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_ProjectLocation_LabelMnemonic\").charAt(0));\n projectLocationLabel.setLabelFor(projectLocationTextField);\n projectLocationLabel.setText(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_ProjectLocation_Label\")); // NOI18N\n\n projectLocationTextField.setColumns(30);\n\n browseButton.setMnemonic(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_Browse_LabelMnemonic\").charAt(0));\n browseButton.setText(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_BrowseLocation_Button\")); // NOI18N\n browseButton.setActionCommand(\"BROWSE\");\n browseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseLocationAction(evt);\n }\n });\n\n createdFolderLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_CreatedProjectFolder_LabelMnemonic\").charAt(0));\n createdFolderLabel.setLabelFor(createdFolderTextField);\n createdFolderLabel.setText(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"LBL_NWP1_CreatedProjectFolder_Label\")); // NOI18N\n\n createdFolderTextField.setEditable(false);\n createdFolderTextField.setColumns(30);\n\n librariesLabel.setLabelFor(librariesLocation);\n org.openide.awt.Mnemonics.setLocalizedText(librariesLabel, org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ProjectLocationPanel.librariesLabel.text\")); // NOI18N\n\n librariesLocation.setColumns(30);\n\n org.openide.awt.Mnemonics.setLocalizedText(browseLibraries, org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"PanelSharabilityVisual.browseLibraries.text\")); // NOI18N\n browseLibraries.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseLibrariesActionPerformed(evt);\n }\n });\n\n sharableProject.setSelected(SharableLibrariesUtils.isLastProjectSharable());\n org.openide.awt.Mnemonics.setLocalizedText(sharableProject, org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ProjectLocationPanel.sharableProject.text\")); // NOI18N\n sharableProject.setMargin(new java.awt.Insets(2, 0, 2, 2));\n sharableProject.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sharableProjectActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(lblHint, org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"HINT_LibrariesFolder\")); // 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 .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(librariesLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblHint, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE)\n .addComponent(librariesLocation, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(browseLibraries))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(projectLocationLabel)\n .addComponent(projectNameLabel)\n .addComponent(createdFolderLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(projectNameTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE)\n .addComponent(projectLocationTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE)\n .addComponent(createdFolderTextField))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(browseButton))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sharableProject, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(projectNameLabel)\n .addComponent(projectNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(projectLocationLabel)\n .addComponent(browseButton)\n .addComponent(projectLocationTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(createdFolderLabel)\n .addComponent(createdFolderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sharableProject)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(librariesLabel)\n .addComponent(browseLibraries)\n .addComponent(librariesLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblHint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n projectNameLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getBundle(ProjectLocationPanel.class).getString(\"ACSN_projectNameLabel\")); // NOI18N\n projectNameLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getBundle(ProjectLocationPanel.class).getString(\"ACSD_projectNameLabel\")); // NOI18N\n projectNameTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n projectLocationLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getBundle(ProjectLocationPanel.class).getString(\"ACSN_projectLocationLabel\")); // NOI18N\n projectLocationLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n projectLocationTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n browseButton.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getBundle(ProjectLocationPanel.class).getString(\"ACSN_browseButton\")); // NOI18N\n browseButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n createdFolderLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getBundle(ProjectLocationPanel.class).getString(\"ACSN_createdFolderLabel\")); // NOI18N\n createdFolderLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n createdFolderTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n jSeparator1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n jSeparator1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n librariesLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n librariesLocation.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n browseLibraries.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n sharableProject.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n jPanel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n jPanel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n lblHint.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n\n getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSN_PanelProjectLocationVisual\")); // NOI18N\n getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ProjectLocationPanel.class, \"ACSD_ProjectLocationPanel_NA\")); // NOI18N\n }", "private FileReader openLabelsFile() {\n FileReader file = null;\n try {\n file = new FileReader(riaaLabelsFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return file;\n }", "private void openContext() {\n\t\tJFileChooser fileChooser = new JFileChooser(LMPreferences\n\t\t\t\t.getLastDirectory());\n\n\t\t// Propriétés du fileChooser\n\t\tfileChooser.setApproveButtonText(GUIMessages\n\t\t\t\t.getString(\"GUI.openButton\")); //$NON-NLS-1$\n\t\tfileChooser.setDialogTitle(GUIMessages.getString(\"GUI.openAContext\")); //$NON-NLS-1$\n\t\tfileChooser.setAcceptAllFileFilterUsed(true);\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\n\t\t// Gere les extensions compatibles (cex, lmv, lmn, lmb)\n\t\tExampleFileFilter filterCex = new ExampleFileFilter(\n\t\t\t\t\"cex\", GUIMessages.getString(\"GUI.conceptExplorerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterCex);\n\t\tExampleFileFilter filterGaliciaBinSLF = new ExampleFileFilter(\n\t\t\t\t\"slf\", GUIMessages.getString(\"GUI.galiciaSLFBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBinSLF);\n\t\tExampleFileFilter filterGaliciaBin = new ExampleFileFilter(\n\t\t\t\t\"bin.xml\", GUIMessages.getString(\"GUI.galiciaXMLBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBin);\n\t\tExampleFileFilter filterValued = new ExampleFileFilter(\n\t\t\t\t\"lmv\", GUIMessages.getString(\"GUI.LatticeMinerValuedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterValued);\n\t\tExampleFileFilter filterNested = new ExampleFileFilter(\n\t\t\t\t\"lmn\", GUIMessages.getString(\"GUI.LatticeMinerNestedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterNested);\n\t\tExampleFileFilter filterBinary = new ExampleFileFilter(\n\t\t\t\t\"lmb\", GUIMessages.getString(\"GUI.LatticeMinerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterBinary);\n\t\tExampleFileFilter filterLM = new ExampleFileFilter(new String[] {\n\t\t\t\t\"lmb\", \"lmn\", \"lmv\" }, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\tGUIMessages.getString(\"GUI.LatticeMinerFormats\")); //$NON-NLS-1$\n\t\tfileChooser.addChoosableFileFilter(filterLM);\n\n\t\t// La boite de dialogue\n\t\tint returnVal = fileChooser.showOpenDialog(this);\n\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile contextFile = fileChooser.getSelectedFile();\n\t\t\topenContextFile(contextFile);\n\n\t\t\t// Sauvegarde le path utilisé\n\t\t\tLMPreferences.setLastDirectory(fileChooser.getCurrentDirectory()\n\t\t\t\t\t.getAbsolutePath());\n\t\t}\n\t}", "private void openWorkbook(File file) throws FileNotFoundException,\n IOException {\n try (FileInputStream fis = new FileInputStream(file)) {\n this.workbook = WorkbookFactory.create(fis);\n this.evaluator = this.workbook.getCreationHelper().createFormulaEvaluator();\n this.formatter = new DataFormatter(true);\n }\n }", "public void open() {\n\t}", "public void getFile(){\n\t\t\n\t\tParser parser = new Parser(f, this, taskPool);\n\t\tWorker w;\n\t\tfor (int i = 0; i < this.getTasks().getNumWorker(); i++){\n\t\t\t w = new Worker(position, this);\n\t\t\t w.setWorkerNum(i);\n\t\t\t workers.add(w);\n\t\t\t} \n\t\t\n\t\tworkPanel = new WorkPanel(tasks, this, workers);\n\t\tworkPanel.setBounds(0, 0, 600, 600);\n\t\tThread twp = new Thread(workPanel);\n\t\ttwp.start();\n\n\t\tmainPanel.add(workPanel);\n\t\t\n\t\t\tfor (int k = 0; k < workers.size(); k++){\n\t\t\t\tworkers.get(k).start();\n\t\t\t}\n\n\t}", "public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }", "public XL openFile(String filename) throws IOException {\n\n //Get the workbook instance for XLS file - file ext is required for two types\n workbook = getWorkBook(filename);\n Reporter.log(\"openFile succeeded opening \" + filename, true);\n return this;\n }", "public static OntModel loadOntModel(File file, String lang) throws IOException {\n\n if ( lang != null && ! JENA_LANGS.contains(lang.toUpperCase()) ) {\n throw new IllegalArgumentException(\"lang argument must be null or one of \" +JENA_LANGS);\n }\n\n try {\n return _loadModel(file, lang, false);\n }\n catch ( Throwable jenaExc ) {\n // XML parse exception?\n String errorMessage = getXmlParseExceptionErrorMessage(jenaExc);\n if ( errorMessage != null ) {\n throw new IOException(errorMessage, jenaExc);\n }\n\n // other kind of problem:\n String error = jenaExc.getClass().getName()+ \" : \" +jenaExc.getMessage();\n throw new IOException(error, jenaExc);\n }\n }", "@FXML\n\tpublic void openFile() {\n\t\tFileChooser openFileChooser = new FileChooser();\n\t\topenFileChooser.setInitialDirectory(userWorkspace);\n\t\topenFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\tfile = openFileChooser.showOpenDialog(ap.getScene().getWindow());\n\n\t\tuserText.clear();\n\n\t\tif (file != null) {\n\t\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\twriteToUserText();\n\t\t\t}\n\t\t}\n\t}", "private JButton getOpenButton() {\r\n\t\tif (openButton == null) {\r\n\t\t\topenButton = new JButton();\r\n\t\t\topenButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/openFile.png\")));\r\n\t\t\topenButton.setToolTipText(\"打开\");\r\n\t\t\topenButton.addActionListener(new ActionListener(){\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);//设置选择模式,既可以选择文件又可以选择文件夹\r\n\t\t\t\t\tString fileFormat[] = { \"txt\" };\r\n\t\t\t\t\tFileFilter filter = new FileNameExtensionFilter( \"txt文件\",fileFormat);\r\n\t\t\t chooser.setFileFilter(filter);//设置文件后缀过滤器\r\n\t\t\t int retval = chooser.showOpenDialog(null);//显示\"保存文件\"对话框\r\n\t\t\t file = null;//\r\n\t\t\t if(retval == JFileChooser.APPROVE_OPTION) {//若成功打开\r\n\t\t\t \tfile = chooser.getSelectedFile();//得到选择的文件名\r\n\t\t }\r\n\t\t\t /**\r\n\t\t\t * File f = Util.openSelectFileDialog(\"Excel文件\",\"xlsx\");\r\n\t\t\t */\r\n\t\t\t\t\tif(file == null){\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tInputStream inputStream = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinputStream = new FileInputStream(file);\r\n\t\t\t\t\t\tbyte a[] = new byte[1024];\r\n\t\t\t\t\t\tcontent = \"\";\r\n\t\t\t\t\t\twhile(true){\r\n\t\t\t\t\t\t\tint t = inputStream.read(a);\r\n\t\t\t\t\t\t\tcontent += new String(a);\r\n\t\t\t\t\t\t\tif(t<1024){\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}finally{\r\n\t\t\t\t\t\tif(inputStream != null){\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tinputStream.close();\r\n\t\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdealWith(content);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn openButton;\r\n\t}", "public void open() {\r\n\t}", "public void handleOpenFile (File inFile) {\n openFile (inFile);\n }", "void open();", "void open();" ]
[ "0.58929616", "0.56340414", "0.54990435", "0.53888893", "0.53149045", "0.52867347", "0.5276375", "0.52662325", "0.5222472", "0.5213264", "0.5194502", "0.51717514", "0.5127009", "0.50905186", "0.50473404", "0.5034114", "0.5033199", "0.5018105", "0.50076085", "0.49904642", "0.49870518", "0.4985235", "0.49786574", "0.49660242", "0.49508923", "0.4947653", "0.49458593", "0.49384212", "0.4932563", "0.49263933", "0.49246272", "0.4923507", "0.49156186", "0.49073082", "0.4884055", "0.4845837", "0.48427865", "0.48296404", "0.48286137", "0.4823557", "0.48230684", "0.48222134", "0.4814801", "0.47651812", "0.4762373", "0.4752186", "0.47465178", "0.47404668", "0.47254604", "0.47228947", "0.47129622", "0.47103766", "0.4709653", "0.4706983", "0.4687954", "0.46832663", "0.46807054", "0.46774206", "0.4675453", "0.46693152", "0.4652219", "0.4630828", "0.46288952", "0.46286866", "0.46205866", "0.46196026", "0.46162677", "0.4608439", "0.46072996", "0.46032333", "0.4598475", "0.45946974", "0.45867795", "0.4581215", "0.45763814", "0.45732984", "0.45732984", "0.4565303", "0.45618862", "0.45612788", "0.45545545", "0.45536005", "0.4550707", "0.45494738", "0.45486864", "0.4547506", "0.45467016", "0.4545006", "0.4543371", "0.4537466", "0.45326412", "0.45321745", "0.45268533", "0.45171303", "0.451562", "0.45153263", "0.45138887", "0.4509342", "0.45092604", "0.45092604" ]
0.66955394
0
Helper method to save a specified file.
public static void save(File file, Workspace workspace) { if (file != null) { // System.out.println("Workspace Save -->" + file); try { FileOutputStream ostream = new FileOutputStream(file); try { WorkspaceSerializer serializer = new WorkspaceSerializer( workspace); serializer.serialize(ostream); workspace.setWorkspaceChanged(false); } finally { ostream.close(); } } catch (IOException e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(File file);", "public void save (File argFile) throws IOException;", "void save(String filename);", "public boolean save(String file);", "void save(String fileName);", "void saveToFile(String filename) throws IOException;", "public void save(String fileName) throws IOException;", "default void save(String file) {\n save(new File(file));\n }", "File getSaveFile();", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public void saveGame(File fileLocation);", "@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }", "private void saveToFile(File file) throws IOException {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(file);\n fileWriter.write(getSaveString());\n }\n finally {\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n }", "public void save(File file) {\n //new FileSystem().saveFile(addressBook, file);\n }", "public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }", "public void saveAsFile(String path)\n {\n call(\"SaveAsFile\", path);\n }", "public void saveToFile(String file) throws IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file may not be null\");\n }\n \n save(new File(file));\n }", "public void saveToFile(final File file) throws IOException, AnalysisConfigurationException;", "@Override\n public void setSaveFile(File file)\n {\n \n }", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}", "@Override\n public void saveFile(Object o, File file, String ext)\n throws IOException {\n dest = file;\n }", "public void saveToFile(File file, Model model) throws IOException;", "public void setSaveFile(File file) {\n\t\t_file = file;\n\t}", "private void saveFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.saveFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tpopulateRecentMenu();\r\n\t\t\tframe.setTitle(openFile.getName());\r\n\t\t\tedit = false;\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }", "private void saveAs() {\n\t\tFileChooser fileChooser = new FileChooser();\n\n\t\t// Set extension filter\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\n\t\t\t\t\"XML files (*.xml)\", \"*.xml\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\n\t\t// Show save file dialog\n\t\tFile file = fileChooser.showSaveDialog(mainApp.getPrimaryStage());\n\n\t\tif (file != null) {\n\t\t\t// Make sure it has the correct extension\n\t\t\tif (!file.getPath().endsWith(\".xml\")) {\n\t\t\t\tfile = new File(file.getPath() + \".xml\");\n\t\t\t}\n\t\t\tmainApp.saveFilmDataToFile(file);\n\t\t}\n\t}", "public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "File getSaveLocation();", "static String save() {\n JFileChooser fileChooser;\n String path = FileLoader.loadFile(\"path.txt\");\n if (path != null) {\n fileChooser = new JFileChooser(path);\n } else {\n fileChooser = new JFileChooser((FileSystemView.getFileSystemView().getHomeDirectory()));\n }\n\n fileChooser.setDialogTitle(\"Save text file\");\n fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\n if (fileChooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n FileLoader.saveFile(\"path.txt\", fileChooser.getSelectedFile().getParent(), false);\n return fileChooser.getSelectedFile().getAbsolutePath() + \".mytxt\" ;\n }\n return null;\n }", "public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "public abstract void saveToFile(PrintWriter out);", "String savedFile();", "public static void save(FileIO fileIO)\r\n\t{\n\t\t\r\n\t}", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "String saveFile(FileStoreDto dto);", "String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;", "@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }", "@Override\n public boolean save(String file) {\n boolean ans = false;\n ObjectOutputStream oos;\n try {\n FileOutputStream fileOut = new FileOutputStream(file, true);\n oos = new ObjectOutputStream(fileOut);\n oos.writeObject(this);\n ans= true;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace(); }\n catch (IOException e) {e.printStackTrace();}\n return ans;\n }", "public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }", "public abstract void save(FileWriter fw) throws IOException;", "public static void saveObj(Object obj, File file)\n {\n try(ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))\n {\n oos.writeObject(obj);\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to save file: \" + e.getMessage());\n }\n }", "public void saveFile(File file, String text) {\r\n\t\t\r\n\t\tif (file==null){\r\n\t\t\treturn;\t\r\n\t\t}\r\n\r\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(file))) {\r\n\r\n\t\t\tbw.write(text);\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "public void save(File filename) throws IOException {\n FileOutputStream fos = new FileOutputStream(filename);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n }", "private void save(WorkPanel panel, File file) {\n\t\tManagement.getScheduler().execute(() -> {\n\t\t\ttry {\n\t\t\t\tConfigSystem.saveFile(panel, file);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tWindowManager.getDialogs().showError(\"Fehler beim Schreiben\", ex);\n\t\t\t}\n\t\t});\n\t}", "private void saveGame(int gameId, String fileName){\n\n }", "public Save(File loc) throws FileNotFoundException {\n FILE = loc;\n }", "public void save(String filename) throws IOException\n {\n DataOutputStream output;\n\n try\n {\n output = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(new File(filename))));\n }\n catch (Exception e)\n {\n throw new IOException(\"Cannot open output file \" + filename + \":\" + e.getMessage());\n }\n save(output);\n output.flush();\n output.close();\n }", "@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}", "public void saveNewFile() {\r\n JFileChooser fileChooser = new JFileChooser();\r\n\r\n int status = fileChooser.showSaveDialog(null);\r\n\r\n if (status == JFileChooser.APPROVE_OPTION) {\r\n\r\n fileName = fileChooser.getSelectedFile().toString();\r\n\r\n saveFile();\r\n }\r\n }", "public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }", "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "public static void saveFile(String targetData) throws IOException{\r\n\t\tJFileChooser chooser = new JFileChooser();\t\t\t\t\t//declare jfilechooser to let user choose file\r\n\t\tchooser.showSaveDialog(null);\t\t\t\t\t\t\t\t//shows save dialog box for user to choose save location\r\n\t\tString fileName = chooser.getSelectedFile().toString();\t\t//takes file and converts it to string\r\n\t\tif(!fileName.endsWith(\".txt\"))fileName += \".txt\";\t\t\t//if filename doesn't end in .txt, add .txt to filename\r\n\t\tBufferedWriter bWriter = new BufferedWriter(new FileWriter(fileName));\t\t//creates writer object\r\n\t\tbWriter.write(targetData);\t\t\t\t\t\t\t\t\t//writes the string passed in as an argument to the file we specified earlier\r\n\t\tbWriter.close();\t\t\t\t\t\t\t\t\t\t\t//close writer - don't waster resources\r\n\t}", "@FXML\n\tpublic void saveFile() {\n\t\tif (file == null) {\n\t\t\tFileChooser saveFileChooser = new FileChooser();\n\t\t\tsaveFileChooser.setInitialDirectory(userWorkspace);\n\t\t\tsaveFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\t\tfile = saveFileChooser.showSaveDialog(ap.getScene().getWindow());\n\t\t}\n\n\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\ttry {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\tPrintWriter output = new PrintWriter(writer);\n\t\t\t\toutput.write(userText.getText());\n\t\t\t\toutput.flush();\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(file.getName() + \" has no valid file-extenstion.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "void saveAs() {\n writeFile.Export();\n }", "public void saveRecordedFile() {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tExtensionFilter filter = new ExtensionFilter(\"WAV files (*.wav)\", \".wav\");\n\t\tfileChooser.getExtensionFilters().add(filter);\n\t\tFile file = fileChooser.showSaveDialog(mainContainer.getScene().getWindow());\n\t\tString fullPath;\n\t\ttry {\n\t\t\tfullPath = file.getAbsolutePath();\n\t\t\tif (!fullPath.endsWith(\".wav\")) {\n\t\t\t\tfullPath = fullPath + \".wav\";\n\t\t\t}\n\t\t\tcontroller.saveAudioFile(fullPath);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void saveGameState(File saveName);", "public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}", "public static void save(final String filename, final Serializable object)\r\n throws IOException {\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n\r\n fos = new FileOutputStream(filename);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(object);\r\n out.close();\r\n }", "public static void saveAs(){\n\t\tFile saveFile;\n\t\tJFileChooser saveChooser = new JFileChooser();\n\t\tFileNameExtensionFilter saveFilter = new FileNameExtensionFilter(\"Sensormap Files (.stuff)\", \"stuff\");\n\t\tFileNameExtensionFilter saveFilter2 = new FileNameExtensionFilter(\"Gzipped Sensormap Files (.stuff.gz)\", \"stuff.gz\");\n\t\tsaveChooser.setFileFilter(saveFilter);\n\t\tsaveChooser.setFileFilter(saveFilter2);\n\t\tint saveReturnVal = saveChooser.showSaveDialog(ControlPanelFrame.getFrame());\n\t\tif(saveReturnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tif(saveChooser.getFileFilter() == saveFilter && saveChooser.getSelectedFile().getName().endsWith(\".stuff\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff\");\n\t\t\t} else if(saveChooser.getFileFilter() == saveFilter2 && saveChooser.getSelectedFile().getName().endsWith(\".stuff.gz\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff.gz\");\n\t\t\t} else {\n\t\t\t\tsaveFile = saveChooser.getSelectedFile();\n\t\t\t}\n\t\t\tXMLSaver.saveSensorList(saveFile);\n\t\t\tGUIReferences.viewPort.halfTitle = saveFile.getName();\n\t\t\tGUIReferences.viewPort.setTitle(saveFile.getName());\n\t\t\tGUIReferences.currentFile = saveFile;\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t}\n\t}", "public void saveFile(){\n returnValue = this.showSaveDialog(null);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n new CustomerFileWriter(new File(this.getSelectedFile().getAbsolutePath())).saveCustomer(Bank.customer);\n }\n }", "@Override\r\n\tpublic void doSaveAs() {\r\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());\r\n\t\tsaveAsDialog.open();\r\n\t\tIPath path = saveAsDialog.getResult();\r\n\t\tif (path != null) {\r\n\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);\r\n\t\t\tif (file != null) {\r\n\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath()\r\n\t\t\t\t\t\t.toString(), true), new FileEditorInput(file));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void saveAs ()\n {\n\tJFileChooser chooser = new JFileChooser ();\n\tchooser.setFileSelectionMode (chooser.FILES_ONLY);\n\tint result = chooser.showSaveDialog (this);\n\tif (result == chooser.CANCEL_OPTION)\n\t{\n\t return;\n\t}\n\n\tFile f = chooser.getSelectedFile ();\n\tif (f.exists ())\n\t{\n\t try\n\t {\n\t\tresult = \n\t\t JOptionPane.showConfirmDialog (\n this,\n\t\t\t\"Overwrite existing file \\\"\" + f.getCanonicalPath () + \n\t\t\t\"\\\"?\",\n\t\t\t\"File Exists\",\n\t\t\tJOptionPane.YES_NO_OPTION);\n\n\t\tif (result != JOptionPane.YES_OPTION)\n\t\t{\n\t\t return;\n\t\t}\n\n\t\tf.delete ();\n\t }\n\t catch (IOException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\tString text;\n\tsynchronized (myDocument)\n\t{\n\t int len = myDocument.getLength ();\n\t try\n\t {\n\t\ttext = myDocument.getText (0, len);\n\t }\n\t catch (BadLocationException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\ttry\n\t{\n\t FileWriter fw = new FileWriter (f);\n\t fw.write (text);\n\t fw.flush ();\n\t fw.close ();\n\t}\n\tcatch (IOException ex)\n\t{\n\t JOptionPane.showMessageDialog (null,\n\t\t\t\t\t ex.getMessage (),\n\t\t\t\t\t \"Write Error\",\n\t\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t}\n }", "public void saveWorkflow(String filename);", "public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }", "private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}", "public static void saveFilePath(File file) {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n if (file != null) {\n prefs.put(\"filePath\", file.getPath());\n } else {\n prefs.remove(\"filePath\");\n }\n }", "Saver() throws IOException\n\t\t{\n\t\t\tthis(new File(file.getParentFile(),\n\t\t\t\t\"#\" + file.getName() + \"#save#\"));\n\t\t}", "public void save(Item file) {\n\t\tthis.getItemdao().save(file);\r\n\t}", "public File getSaveFile() {\n\t\treturn saveFile;\n\t}", "private void saveFile() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFileFilter wavFilter = new FileFilter() {\r\n\t\t\t@Override\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"Sound file (*.WAV)\";\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File file) {\r\n\t\t\t\tif (file.isDirectory()) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn file.getName().toLowerCase().endsWith(\".wav\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfileChooser.setFileFilter(wavFilter);\r\n\t\tfileChooser.setAcceptAllFileFilterUsed(false);\r\n\r\n\t\tint userChoice = fileChooser.showSaveDialog(this);\r\n\t\tif (userChoice == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tsaveFilePath = fileChooser.getSelectedFile().getAbsolutePath();\r\n\t\t\tif (!saveFilePath.toLowerCase().endsWith(\".wav\")) {\r\n\t\t\t\tsaveFilePath += \".wav\";\r\n\t\t\t}\r\n\r\n\t\t\tFile wavFile = new File(saveFilePath);\r\n\r\n\t\t\ttry {\r\n\t\t\t\trecorder.save(wavFile);\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(SwingSoundRecorder.this,\r\n\t\t\t\t\t\t\"Saved recorded sound to:\\n\" + saveFilePath);\r\n\r\n\t\t\t\tbuttonPlay.setEnabled(true);\r\n\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(SwingSoundRecorder.this, \"Error\",\r\n\t\t\t\t\t\t\"Error saving to sound file!\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void save(File file) throws Exception {\n\t\tFileOutputStream fos = new FileOutputStream(file);\t\t\n\t\tfos.write(getStream().getData());\n\t\tfos.close();\n\t}", "public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}", "public void saveToFile(File file) throws CoreException {\n\tOutputStream stream = null;\n\n\ttry {\n\t stream = new FileOutputStream(file);\n\t saveToStream(stream);\n\n\t} catch (IOException e) {\n\t throwWriteException(e);\n\n\t} finally {\n\t try {\n\t\tif (stream != null)\n\t\t stream.close();\n\t } catch (IOException e) {\n\t }\n\t}\n }", "void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException 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\tthis.setAlwaysOnTop(true);\n\t\t\n\t}", "void saveRequestToFile(MovilizerRequest request, Path filePath);", "public void save(String filePath){\r\n Scanner in = new Scanner(System.in);\r\n File saveFile = new File(filePath);\r\n if (saveFile.exists()){\r\n System.out.println(\"Do you really, really want to overwrite your previous game?\");\r\n System.out.println(\"Yes: '1', No: '0'.\");\r\n int input = in.nextInt();\r\n if (input!=1){\r\n return;\r\n }\r\n }\r\n File saveDir = new File(this.savePath);\r\n if (!saveDir.exists()){\r\n saveDir.mkdir();\r\n }\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n try {\r\n fos = new FileOutputStream(saveFile);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(this.serialVersionUID);\r\n out.writeObject(p);\r\n out.writeObject(map);\r\n out.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Make sure you don't use spaces in your folder names.\");\r\n ex.printStackTrace();\r\n }\r\n }", "public File getSaveFile() {\n\t\treturn _file;\n\t}", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }", "public int saveFile(File file)\r\n {\r\n try \r\n {\r\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));\r\n oos.writeObject(root);\r\n return 0;\r\n } \r\n catch (FileNotFoundException ex) \r\n {\r\n System.out.println(\"A file related error has occurred while saving file: \" + ex);\r\n return 1;\r\n } \r\n catch (IOException ex) \r\n {\r\n System.out.println(\"A file related error has occurred while saving file: \" + ex);\r\n return 1;\r\n }\r\n }", "public void saveFile(String pathOfFileSelected, String content){\n FileOutputStream fos = null;\n try {\n final File myFile = new File(pathOfFileSelected);\n\n myFile.createNewFile();\n\n fos = new FileOutputStream(myFile);\n\n fos.write(content.getBytes());\n fos.close();\n Log.d(TAG, \"saveFile: Saved Successfully\");\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.w(TAG, \"saveFile: Unable to save\",e);\n }\n }", "public void writeToFile(File file) {\n\n\t}", "public boolean save() {\n\t\treturn save(_file);\n\t}", "public void saveGame(File f) {\n savegame = new SaveGame(f, chessboard, gamelog, colorsTurn);\n System.out.println(\"Gamed Saved.\");\n\n }", "private void saveStringToFile(String s) {\n try {\n FileWriter saveData = new FileWriter(SAVE_FILE);\n BufferedWriter bW = new BufferedWriter(saveData);\n bW.write(s);\n bW.flush();\n bW.close();\n } catch (IOException noFile) {\n System.out.println(\"SaveFile not found.\");\n }\n }", "public void save() {\n\t\tFile f = null;\n\t\tif ((jfc.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) &&\n\t\t\t\t(!jfc.getSelectedFile().exists() ||\n\t\t\t\t\t(JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\"File \" + jfc.getSelectedFile().getAbsolutePath() +\n\t\t\t\t\t\" exists.\\nDo you want to replace it?\", \"Are you sure?\",\n\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)))\n\t\t\tf = jfc.getSelectedFile();\n\t\tif (f == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tFileOutputStream fos = WavWrite.open(f.getPath(),\n\t\t\t\t\t(int)currentFile.length, currentFile.channels,\n\t\t\t\t\t(int)Math.round(currentFile.frameRate),\n\t\t\t\t\tcurrentFile.frameSize / currentFile.channels);\n\t\t\tinitBeats();\n\t\t\tsetPosition(0);\n\t\t\twhile (currentPosition < currentFile.length) {\n\t\t\t\tint bytesRead = currentFile.audioIn.read(readBuffer);\n\t\t\t\tif (bytesRead > 0) {\n\t\t\t\t\taddBeats(readBuffer, bytesRead);\n\t\t\t\t\tfos.write(readBuffer, 0, bytesRead);\n\t\t\t\t\tcurrentPosition += bytesRead;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (currentPosition < currentFile.length)\n\t\t\t\tSystem.err.println(\"saveAudio(): error: wrote \" + currentPosition +\n\t\t\t\t\t\t\" of \" + currentFile.length + \" bytes\");\n\t\t\tfos.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException while saving data\");\n\t\t}\n\t}", "public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}", "private void testSaveFile() {\n System.out.println(\"------ TESTING : saveFile(String filename) ------\");\n try{\n if(!iTestFileList.saveFile(sFile)) {\n throw new RuntimeException(\"FAILED -> saveFile(String filename) not working correctly\");\n }\n }catch (RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "public void saveFileAs(String text) {\r\n\r\n\t\tFile tempFile;\r\n\t\ttempFile = fileChooser.showSaveDialog(fileChooserDialog);\r\n\t\tsaveFile(tempFile, text);\r\n\t\t\r\n\t\r\n\t\t\r\n\t}", "public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }", "public void saveToFile(String filename)\r\n {\r\n String ftype=filename.substring(filename.lastIndexOf('.')+1);\r\n try\r\n {\r\n if(isReadyToSave)\r\n ImageIO.write(cropedEdited,ftype,new File(filename));\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Error in saving the file\");\r\n }\r\n }", "public void saveFile(String path, String data) throws IOException {\n\n FileWriter writer = new FileWriter(getFile(path));\n writer.write(data);\n writer.flush();\n }" ]
[ "0.81945926", "0.76869", "0.7676862", "0.7658101", "0.7628279", "0.7609932", "0.746922", "0.72834253", "0.7266632", "0.7172352", "0.7162842", "0.7078725", "0.7067175", "0.7062231", "0.70336163", "0.69722843", "0.6883668", "0.68366957", "0.67500615", "0.6749421", "0.6608054", "0.66077715", "0.660389", "0.65935785", "0.6581473", "0.6578061", "0.65754986", "0.64994717", "0.6485493", "0.64839864", "0.64632714", "0.64619094", "0.64554197", "0.64521194", "0.64514786", "0.64065754", "0.6398145", "0.63902885", "0.6385384", "0.6373867", "0.6372638", "0.63559663", "0.63526285", "0.6345425", "0.6331907", "0.63307047", "0.63291705", "0.6323179", "0.63058674", "0.6297482", "0.6294264", "0.62869364", "0.6280698", "0.62719935", "0.6267729", "0.62670356", "0.6265766", "0.6263338", "0.62472844", "0.624216", "0.6241028", "0.6239554", "0.62373877", "0.62309766", "0.62304693", "0.62053436", "0.6199348", "0.61973894", "0.61893666", "0.61697346", "0.61673385", "0.61665916", "0.6166303", "0.6159406", "0.61551416", "0.615509", "0.61542356", "0.61423236", "0.6130736", "0.6120478", "0.61051476", "0.60922706", "0.6092249", "0.60855174", "0.60834587", "0.60787266", "0.6063747", "0.60630965", "0.606216", "0.60583544", "0.60568994", "0.60553366", "0.60544795", "0.60505724", "0.60481125", "0.6037392", "0.6034701", "0.6030916", "0.60247684", "0.6010651", "0.6001213" ]
0.0
-1
/ This function directs to the LogIn Page
@FXML private void goLogIn() throws IOException{ Main.showStudent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "void redirectToLogin();", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "public String toLogin() {\r\n\t\treturn \"/login.xhtml\";\r\n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "protected String getLoginPage() {\r\n return loginPage;\r\n }", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "public void goToLogIn (View view){\n }", "@RequestMapping(\"/signin\")\n public String signin() throws Exception {\n return \"redirect:\" + baseUrl + \"/cp/auth/callback.html\";\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "@RequestMapping(value = \"/newlogin\")\r\n\tpublic String dispatchTodefaultEntryPoint() {\r\n\t\tlogger.entry();\r\n\r\n\t\tsaveUserLoginInformation();\r\n\r\n\t\t// String defaultHome = \"redirect:/home\";\r\n\r\n\t\t// if (Utils.isUserInRole(getInternalUserRoles())) {\r\n\t\t//\r\n\t\t// } else {\r\n\t\t// throw new AccessDeniedException(\"User Role not found\");\r\n\t\t// }\r\n\r\n\t\tString homePage = \"forward:/\" + getHomePageByRole();\r\n\r\n\t\tlogger.exit();\r\n\r\n\t\treturn homePage;\r\n\t}", "@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public String loginPage(ModelMap model) {\n if (isCurrentAuthenticationAnonymous()) {\n model.addAttribute(\"pagetitle\", \"Login\");\n return \"login\";\n } else {\n return \"redirect:/home\";\n }\n }", "@RequestMapping(\"/login\")\n\tpublic String login() {\n\t\tconfig.output();\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tif (auth instanceof AnonymousAuthenticationToken) {\n\t\t\treturn \"login\";\n\t\t} else {\n\t\t\treturn \"home\"; \n\t\t}\n\t}", "@GetMapping(\"/login\")\n public String viewLoginPage() {\n\n return \"login/login\";\n }", "protected void login() {\n\t\t\r\n\t}", "public Result showSignIn() {\n if (customerService().isLoggedIn()) {\n customerService().logout();\n }\n return ok(loginView.render(data().build(), logInForm));\n }", "@Given(\"^User should logged in to URL$\")\n\tpublic void user_should_logged_in_to_URL() throws Throwable {\n\t\thomepage.clickloginifdisplayed();\n\t\twait.WaitForElement(loginpage.getLoginemail(), 60);\n\t\tloginpage.ValidLogin();\n\t}", "@Override\n String execute(HttpServletRequest request, HttpServletResponse response) throws LegohusException {\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n User user = LogicFacade.login(email, password);\n HttpSession session = request.getSession();\n session.setAttribute(\"user\", user);\n \n return \"WEB-INF/\" + user.getRole() + \"page\";\n }", "public static void login() {\n\t\trender();\n\t}", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "public String redirectToLogin() {\r\n\t\treturn \"/login.xhtml?faces-redirect=true\";\r\n\t}", "private void goToLoginPage() {\n\n startActivity(new Intent(this,LoginActivity.class));\n finish();\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public void goToLoginPage(ActionEvent event) throws IOException{\n\t\t//this should return to the Login Page\n\t\tParent user_page = FXMLLoader.load(getClass().getResource(\"/view/LoginPage.fxml\"));\n\t\tScene userpage_scene = new Scene(user_page);\n\t\tStage app_stage = (Stage) ((Node) (event.getSource())).getScene().getWindow();\n\t\tapp_stage.setScene(userpage_scene);\n\t\tapp_stage.setTitle(\"Login Page\");\n\t\tapp_stage.show();\n\t}", "@Given(\"^I am on the Sign in page$\")\n\tpublic void I_am_on_the_Sign_in_page() throws Throwable {\n\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.linkText(\"Sign in\")).click();\n\t}", "public LoginPageActions Navigate_LoginPage()\n\t{\n\t\t\n\t\tUIActions.fn_click(HomePageObjects.customerAccount);\n\t\treturn new LoginPageActions();\n\t}", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "public void loginToHomePage(String strUserName, String strPassword) {\r\n\t\t\r\n\t\t\r\n\t\tsetUserName(strUserName);\r\n\t\tsetPassword(strPassword);\r\n\t\tclickLogin();\r\n\t\t//return new LoginPage();\r\n\t\t\r\n\t}", "private static void getLoginPage() throws IOException {\n get(\"/login\", (request, response) -> {\n Map<String, Object> attributes = new HashMap<>();\n attributes.put(\"title\", \"Login\");\n\n return SessionModelAndView.create(request.session(), attributes, \"index.jade\");\n }, new JadeEngine());\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public ModelAndView login() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.setViewName(\"user/login\");\n return modelAndView;\n }", "@Override\r\n\tpublic void login_admin() {\n\t\trender(\"admin/login.jsp\");\r\n\t}", "private void redirectLoginScreen() {\n Log.d(TAG, \"redirectLoginScreen: redirecting to login screen.\");\n Intent intent = new Intent(Register.this, LogIn.class);\n startActivity(intent);\n finish();\n }", "private void signIn() {\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\tpublic String displayLoginPage(Model model) {\r\n\t\tlogger.entry();\r\n\r\n\t\tlogger.exit(\"login\");\r\n\r\n\t\treturn \"login\";\r\n\t}", "@When(\"I click on log in\")\n\tpublic void i_click_on_log_in() {\n\t\tlogger.info(\"Clicking on Sign in\");\n\t\thomepage.login.click();\n\t\tBrowserUtilities.waitFor(2);\n\n\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic String loginPage(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tif (isCurrentAuthenticationAnonymous()) {\r\n\t\t\treturn \"login\";\r\n\t\t} else {\r\n\t\t\treturn \"redirect:/list\";\r\n\t\t}\r\n\t}", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "public String applicationLogin(){\n\t\treturn \"/dblogin.jsp\";\n\t}", "public void navigateToLogin() {\n\n //The following object represents the action from sign in to edu.uw.tcss450.ui.register.\n RegisterFragmentDirections.ActionRegisterFragmentToSignInFragment directions =\n RegisterFragmentDirections.actionRegisterFragmentToSignInFragment();\n directions.setEmail(binding.registerEmail.getText().toString());\n directions.setPassword(binding.registerPassword.getText().toString());\n\n //Use the navigate method to perform the navigation.\n Navigation.findNavController(getView()).navigate(directions);\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "public abstract void navigateToLogin();", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "public String signInRedirect() {\n signIn.click();\n return webDriver.getTitle();\n }", "private void launchLogIn() {\n\t\tfinal Intent i = new Intent(this, LogInActivity.class);\n\t\tstartActivity(i);\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "public String onLogin() {\n final HttpServletRequest request = (HttpServletRequest) getFacesContext()\n .getExternalContext().getRequest();\n try {\n request.login(getModel().getUsername(), getModel().getPassword());\n } catch (final ServletException e) {\n log.debug(\"Bad authentication for login \"\n + getModel().getUsername(), e);\n getFacesMessages().warn(AppMessageKey.VIEW_LOGIN_ERROR);\n return \"\";\n }\n IView viewId;\n if (getSecurityContext().isUserInSecurityRole(SecurityRole.ADMIN)) {\n viewId = View.ADMIN_ACCESS;\n } else if (getSecurityContext()\n .isUserInSecurityRole(SecurityRole.GUEST)) {\n viewId = View.GUEST_ACCESS;\n } else {\n viewId = View.INDEX;\n }\n // Fire login event.\n event.fire(new LoginEvent(new SecurityUser(getModel()\n .getUsername())));\n // Fire render view event.\n return fireEventRenderView(viewId).getId();\n }", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "private LogIn() {}", "protected Response login() {\n return login(\"\");\n }", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }", "public String redirectToLogin() {\r\n\t\treturn \"/login.jsf?faces-redirect=true\";\r\n\t}", "public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }", "@Override\r\n\tpublic void login_student() {\n\t\trender(\"student/login.jsp\");\r\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n req.getRequestDispatcher(\"/WEB-INF/views/login.jsp\").forward(req, resp);\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@GetMapping(\"/loginpage\")\n public String viewLoginPage() {\n return \"loginpage\";\n }", "private void goToLogin()\n {\n Intent intent = new Intent(getActivity(), Login_Page.class);\n getActivity().startActivity(intent);\n }", "public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\tpublic ModelAndView login() {\r\n\t\treturn new ModelAndView(\"admin/login\");\r\n\t}", "private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public MenuSignOnPageClass navigateToSignOn() {\n\t\tthis.clickSignOn();\n\t\treturn new MenuSignOnPageClass(myDriver, myWait);\n\t}", "@Override\n public void navigateToLogin() {\n startActivity(new Intent(this, LoginActivity.class));\n finish();\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public static Result home() {\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else\n return renderHome(loggedInSkier);\n }", "public String toLogin() {\r\n\t\treturn \"/login.jsf\";\r\n\t}", "public void backToLogin(MouseEvent mouseEvent) throws IOException {\n new PageLoader().load(\"Login\");\n }", "public HomePage clickOnSignInButton() {\n driver.findElement(signInButton).submit();\n\n // Return a new page object representing the destination. Should the login page\n // ever\n // go somewhere else (for example, a legal disclaimer) then changing the method\n // signature\n // for this method will mean that all tests that rely on this behaviour won't\n // compile.\n return new HomePage(driver);\n }", "@Override\r\n\tpublic void clickOnLoginLink() {\r\n\t\t\r\n\t\tSelenium.click(lnkLogIn());\r\n\t}", "public void StartLogIn(){\n\t}", "@RequestMapping(value=\"/login\", method = RequestMethod.GET) \n\tpublic String login( Principal principal) {\n\t\tif(principal!=null)\n\t\t{\n\t\t\treturn \"redirect:/dashboard\";\n\t\t}\n\t\treturn \"login\"; \n\t}", "public static Result index() {\n // Check that the email matches a confirmed user before we redirect\n String email = ctx().session().get(\"email\");\n if (email != null) {\n User user = User.findByEmail(email);\n if (user != null && user.validated) {\n return GO_DASHBOARD;\n } else {\n Logger.debug(\"Clearing invalid session credentials\");\n session().clear();\n }\n }\n\n return GO_HOME;\n }", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "@RequestMapping(value = \"/login\", method = GET)\r\n\tpublic String login() {\r\n\t\treturn \"admin/login\";\r\n\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public String login(Principal principal) { \n return principal == null ? \"login\" : \"index\";\n }", "@Then(\"^Browser display Sign In page$\")\n public void browser_display_Sign_In_page() throws Throwable {\n sign.browserDisplaySignIn();\n\n\n }", "@Given(\"^I am able to access the sign in page$\")\n public void i_am_able_to_access_the_sign_in_page() throws Throwable {\n bbcSite.bbcSignInPage().goToSignInPage();\n Assert.assertEquals(bbcSite.bbcSignInPage().getSignInPageURL(), bbcSite.getCurrentURL());\n }", "public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }", "public void signIn(View view) {\n\n //retrieve the elements containing email and pass input\n EditText emailEle = findViewById(R.id.email);\n EditText passwordEle = findViewById(R.id.pass);\n //retrieve the input\n String emailInput = emailEle.getText().toString();\n String passwordInput = passwordEle.getText().toString();\n\n //attempt to authenticate with the input. if we did, go to doctors list page\n email = emailInput;\n\n //verify that there is input.\n if(email.equals(\"\") || passwordInput.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Please input your username and password.\", Toast.LENGTH_SHORT)\n .show();\n return;\n }\n\n auth(emailInput, passwordInput);\n }", "@Override\n public void run(){\n Intent homeIntent = new Intent(MainActivity.this,login_page.class);//splashes to the login page.\n startActivity(homeIntent);\n finish();\n }", "public GitHubSignInPage openSignInPage() {\n\t\tsignInBtn = driver.findElement(By.linkText(SIGNIN_BTN_ID));\n\t\tsignInBtn.click();\n\t\tSystem.out.println(\"Navigating to signin page...\");\n\n\t\treturn new GitHubSignInPage(driver);\n\t}", "private String getLoginPage() {\n\t\tif (loginPage == null) {\n\t\t\tloginPage = Application.getLoginPage(context);\n\t\t}\n\n\t\treturn loginPage;\n\t}", "public void loginPressed(View view) {\n startActivity(new Intent(this, Login.class));\n }", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }", "public void goLoginActivity()\n {\n Intent intent = new Intent(this, LoginActivity.class);\n this.startActivity(intent);\n }" ]
[ "0.77916175", "0.75563836", "0.7480461", "0.7161947", "0.69909334", "0.69734716", "0.693115", "0.68506366", "0.6826267", "0.678853", "0.6753687", "0.67365015", "0.67174935", "0.67106605", "0.6708845", "0.6706518", "0.6670409", "0.66639084", "0.6662238", "0.6659941", "0.66453725", "0.66353005", "0.6629981", "0.66255754", "0.6569527", "0.65684396", "0.65682983", "0.65491503", "0.6546928", "0.6534453", "0.6534343", "0.652966", "0.6518835", "0.6513652", "0.6511435", "0.6500312", "0.6495581", "0.64938045", "0.6490305", "0.64874655", "0.6483115", "0.64826286", "0.6478964", "0.6472365", "0.6464281", "0.6461408", "0.6459347", "0.6449812", "0.64462197", "0.6434971", "0.64310753", "0.64293665", "0.6427252", "0.6424231", "0.6421127", "0.64192736", "0.64102936", "0.64019996", "0.6384721", "0.63839316", "0.6365719", "0.63625735", "0.6359359", "0.6353009", "0.6347507", "0.634193", "0.6338578", "0.6338294", "0.63328725", "0.63316506", "0.63297474", "0.632466", "0.6319622", "0.63103586", "0.63102317", "0.6306576", "0.63007236", "0.6298466", "0.62945986", "0.62932396", "0.62902606", "0.62847775", "0.6284271", "0.62779707", "0.62570316", "0.6251142", "0.6250958", "0.6248318", "0.6241722", "0.62406844", "0.62401104", "0.6238041", "0.6233732", "0.62316364", "0.62262774", "0.6222123", "0.6212112", "0.62103224", "0.6204653", "0.6198782", "0.6193884" ]
0.0
-1
/ This function makes request for the room at a particular time and date
@FXML private void RequestRoom() throws IOException, ClassNotFoundException{ ArrayList<String[]> hello = new ArrayList<String[]>(); String[] request = new String[9]; String status = "processing"; BufferedReader br = new BufferedReader(new FileReader("request.csv")); String line=""; while ((line = br.readLine()) != null) { String[] s = line.split(","); hello.add(s); } ObjectInputStream infac=new ObjectInputStream(new FileInputStream("current.txt")); Student f=(Student)infac.readObject(); infac.close(); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); Calendar c = Calendar.getInstance(); c.setTime(new Date()); // Now use today date. c.add(Calendar.DATE, 5); // Adding 5 days String output = sdf.format(c.getTime()); request[0] = status; request[1] = f.email; request[2] = stime.getText(); request[3] = etime.getText(); request[4] = capacity.getText(); request[5] = date.getValue().toString(); request[6] = day.getText(); request[7] = purpose.getText(); request[8] = output; hello.add(request); FileWriter writer = new FileWriter("request.csv"); for(int gg=0;gg<hello.size();gg++){ for (int yolo = 0; yolo < hello.get(gg).length; yolo++) { writer.append(hello.get(gg)[yolo]); writer.append(","); } writer.append("\n"); } writer.close(); JOptionPane.showMessageDialog(null, "Request Sent Successfully!"); Main.showStudent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "public static void requestMenuForEateryAtTime(Eatery eatery, Date date) {\n final Map<String, String> parameters = new HashMap<>();\n parameters.put(\"client_id\", CLIENT_ID);\n parameters.put(\"eatery\", eatery.toString());\n\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n\n /* Customize the time of the menu */\n parameters.put(\"year\", Integer.toString(calendar.get(Calendar.YEAR)));\n parameters.put(\"month\", Integer.toString(calendar.get(Calendar.MONTH)));\n parameters.put(\"day\", Integer.toString(calendar.get(Calendar.DAY_OF_MONTH)));\n parameters.put(\"hour\", Integer.toString(calendar.get(Calendar.HOUR)));\n parameters.put(\"minute\", Integer.toString(calendar.get(Calendar.MINUTE)));\n\n new NetworkThread.Builder()\n .get(Route.GET_MENU.getWithParameters(parameters))\n .withRoute(Route.GET_MENU)\n .withConsumer(new RattyMenuConsumer())\n .build().start();\n }", "private static boolean availabilityQuery(String roomid, String date1, String date2)\n {\n String query = \"SELECT status\"\n + \" FROM (\"\n + \" SELECT DISTINCT ro.RoomId, 'occupied' AS status\"\n + \" FROM myReservations re JOIN myRooms ro ON (re.Room = ro.RoomId)\"\n + \" WHERE (DATEDIFF(CheckIn, DATE(\" + date1 + \")) <= 0\"\n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) > 0)\" \n + \" OR (DATEDIFF(CheckIn, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckIn, DATE(\" + date2 + \")) <= 0)\" \n + \" OR (DATEDIFF(CheckOut, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) < 0)\"\n + \" UNION\"\n + \" SELECT DISTINCT RoomId, 'empty' AS status\"\n + \" FROM myRooms\"\n + \" WHERE RoomId NOT IN (\"\n + \" SELECT DISTINCT re.Room\"\n + \" FROM myReservations re JOIN myRooms ro ON (re.Room = ro.RoomId)\"\n + \" WHERE (DATEDIFF(CheckIn, DATE(\" + date1 + \")) <= 0\"\n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) > 0)\"\n + \" OR (DATEDIFF(CheckIn, DATE(\" + date1 + \")) > 0\"\n + \" AND DATEDIFF(CheckIn, DATE(\" + date2 + \")) <= 0)\" \n + \" OR (DATEDIFF(CheckOut, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) < 0)\" \n + \" )) AS tb\"\n + \" WHERE RoomId = '\" + roomid + \"'\";\n\n PreparedStatement stmt = null;\n ResultSet rset = null;\n\n try\n {\n stmt = conn.prepareStatement(query);\n rset = stmt.executeQuery();\n rset.next();\n if(rset.getString(\"status\").equals(\"empty\"))\n return true;\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n finally {\n try {\n stmt.close();\n }\n catch (Exception ex) {\n ex.printStackTrace( ); \n } \t\n }\n \n return false;\n\n }", "Date getRequestedAt();", "public Reservation requestRoom(String guestName){\n\t\tfor (int i = 0; i<rooms.length; i++){\n\t\tif (rooms[i] == null){\n\t\t//then create a reservation for an empty room for the specified guest\n\t\t//and return the new Reservation;\n\t\t\trooms[i] = new Reservation(guestName, i);\n\t\t\treturn rooms[i];\n\t\t}\n\t\t}\n\t\t//Otherwise, add the guest into the end of waitList and return null\n\t\twaitList.add(guestName);\n\t\treturn null;\n\t}", "public void makeRequest(int floor) {\n }", "@GET // Fetches available flights from a specific location, given a date\r\n @Path(\"/{from}/{date}/{tickets}\")\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public String fromDate(@PathParam(\"from\") String from, @PathParam(\"date\") String date, @PathParam(\"tickets\") int tickets) {\r\n Airline airline = new Airline(\"Kaffemænd Tours\");\r\n for(Flight x : flightList) {\r\n if(x.getDate().equals(date) && x.getOrigin().equals(from)) {\r\n airline.addFlight(x);\r\n }\r\n }\r\n String res = gson.toJson(airline);\r\n return res;\r\n }", "Room getRoom();", "Room getRoom();", "private Rooms getRooms(boolean sociallyDistanced, LocalDateTime time, LocalDateTime endTime, Modules module) {\n // Get viable rooms\n Session s = HibernateUtil.getSessionFactory().openSession();\n CriteriaBuilder cb = s.getCriteriaBuilder();\n CriteriaQuery<Rooms> cq = cb.createQuery(Rooms.class);\n Root<Rooms> root = cq.from(Rooms.class);\n ParameterExpression<Integer> spacesNeeded = cb.parameter(Integer.class);\n if (sociallyDistanced) {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"socialDistancingCapacity\"), spacesNeeded));\n } else {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"maxCapacity\"), spacesNeeded));\n }\n\n root.join(\"bookings\", JoinType.LEFT);\n root.fetch(\"bookings\", JoinType.LEFT);\n\n Query<Rooms> query = s.createQuery(cq);\n query.setParameter(spacesNeeded, module.getStudents().size());\n\n List<Rooms> results = query.getResultList();\n\n s.close();\n\n\n Map<String, Rooms> possibleRooms = new HashMap<>();\n\n for (Rooms room : results) {\n if (room.isAvailable(time, endTime) && !possibleRooms.containsKey(room.getRoomID())) {\n System.out.println(\" \" + room.getRoomID() + \" of type \" + room.getType() + \" is available and meets your capacity needs.\");\n possibleRooms.put(room.getRoomID(), room);\n }\n }\n\n System.out.println(\"Please enter the room ID you would like to book.\");\n String roomKey = sc.next();\n while (!possibleRooms.containsKey(roomKey)) {\n System.out.println(\"That is not a correct ID for a room. Look at the list above.)\");\n roomKey = sc.next();\n }\n sc.nextLine();\n\n return possibleRooms.get(roomKey);\n }", "protected static String scheduleRoom(ArrayList<Room> roomList) {\n if (roomList.size() > 0) {\n System.out.println(\"Schedule a room:\");\n String name = getRoomName();\n // if (findRoomIndex(roomList, name) != -1) {\n System.out.println(\"Start Date? (yyyy-mm-dd):\");\n String startDate = keyboard.next();\n System.out.println(\"Start Time?\");\n String startTime = keyboard.next();\n startTime = startTime + \":00.0\";\n \n String tStartDate = startDate + startTime;\n String avRooms = availableRooms(roomList,tStartDate);\n \n System.out.println(\"End Date? (yyyy-mm-dd):\");\n String endDate = keyboard.next();\n System.out.println(\"End Time?\");\n String endTime = keyboard.next();\n endTime = endTime + \":00.0\";\n Timestamp startTimestamp = Timestamp.valueOf(startDate + \" \"\n + startTime);\n Timestamp endTimestamp = Timestamp.valueOf(endDate + \" \" + endTime);\n\n System.out.println(\"Subject?\");\n String subject = keyboard.next();\n Room curRoom = getRoomFromName(roomList, name);\n Meeting meeting = new Meeting(startTimestamp, endTimestamp, subject);\n\n // check wheather time is already exists for timestamp\n curRoom.addMeeting(meeting);\n return \"Successfully scheduled meeting!\";\n\n } else {\n return \"No room is available for schedule\";\n }\n }", "@Override\n\tpublic boolean fnCreateRoom(String adminId, String date, String roomNumber,\n\t\t\tString timeSlots) {\n\t\tfnTracelog(\"entry admmin\" + adminId.substring(0, 4));\n\t\tHashMap<String, HashMap<String, HashMap<String, String>>> roomDetails = null;\n\t\tString campus = adminId.substring(0, 4);\n\n\t\tswitch (campus.toUpperCase()) {\n\t\tcase \"DVLA\":\n\t\t\troomDetails = hmDorvalRoomDetails;\n\t\t\tbreak;\n\n\t\tcase \"KKLA\":\n\t\t\troomDetails = hmKirklandRoomDetails;\n\t\t\tbreak;\n\n\t\tcase \"WSTA\":\n\t\t\troomDetails = hmWestmountRoomDetails;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\n\t\tHashMap<String, HashMap<String, String>> allRoomDetailsOfADay = roomDetails\n\t\t\t\t.get(date);\n\t\tif (allRoomDetailsOfADay == null) {\n\t\t\tallRoomDetailsOfADay = new HashMap<>();\n\t\t\troomDetails.put(date, allRoomDetailsOfADay);\n\t\t}\n\t\tHashMap<String, String> timeSlotsOfRoom = allRoomDetailsOfADay\n\t\t\t\t.get(roomNumber);\n\t\tif (timeSlotsOfRoom == null) {\n\t\t\ttimeSlotsOfRoom = new HashMap<>();\n\t\t\tallRoomDetailsOfADay.put(roomNumber, timeSlotsOfRoom);\n\t\t}\n\t\tfor (String timeSlot : timeSlots.split(\",\")) {\n\t\t\tif (!timeSlotsOfRoom.containsKey(timeSlot))\n\t\t\t\ttimeSlotsOfRoom.put(timeSlot, null);\n\t\t}\n\t\tfnTracelog(\"successful\");\n\t\treturn true;\n\n\t}", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }", "public static void getRoomsAPI()\n\t{\n\t\ttry\n\t\t{\n\t\t\tWebClient checkIP = new WebClient(\"http://api.conceptnet.io/c/en/room/n?offset=0&limit=1000\");\n\t\t\tcheckIP.post(\"\");\n\t\t\tlong startIP = System.currentTimeMillis();\n\t\t\t\n\t\t\tArrayList<ArrayList<String> > checkq = new ArrayList<ArrayList<String> >();\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tcheckIP.getQueue(checkq);\n\t\t\t\tboolean processedsomething = false;\n\t\t\t\tfor (int i = 0; i < checkq.size(); i++) \n\t\t\t\t{\n\t\t\t\t\tArrayList<String> resultlines = checkq.remove(i);\n\t\t\t\t\t\n\t\t\t\t\tString x = null;\n\t\t\t\t\tString relation = null;\n\t\t\t\t\tString relationweight = null;\n\t\t\t\t\tString y = null;\n\n\t\t\t\t\tfor(int li=0;li<resultlines.size();li++)\n\t\t\t\t\t{\t\t\n\t\t\t\t\t\tprocessedsomething = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\tString line = resultlines.get(li);\n\t\t\t\t\t\tline = line.trim();\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(line.startsWith(\"\\\"@id\\\": \\\"/a/[\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = line.substring(\"\\\"@id\\\": \\\"/a/[\".length());\n\t\t\t\t\t\t\tint ind = line.indexOf(\",\");\n\t\t\t\t\t\t\trelation = line.substring(0,ind);\n\t\t\t\t\t\t\tline = line.substring(ind+1);\n\t\t\t\t\t\t\tind = line.indexOf(\",\");\n\t\t\t\t\t\t\tx = line.substring(0,ind);\n\t\t\t\t\t\t\tline = line.substring(ind+1);\n\t\t\t\t\t\t\tind = line.indexOf(\"]\");\n\t\t\t\t\t\t\ty = line.substring(0,ind);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(line.startsWith(\"\\\"weight\\\": \"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trelationweight = line.substring(\"\\\"weight\\\": \".length());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//can now process the edge information\n\t\t\t\t\t\t\t//we only want the things that are a room not things a room is\n\t\t\t\t\t\t\tif(y.equalsIgnoreCase(\"c/en/room/n\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(x+\" \"+relation+\" \"+y);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(processedsomething)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tThread.sleep(16);\n\t\t\t\t\n\t\t\t\tlong time = System.currentTimeMillis();\n//\t\t\t\tif((time-startIP)>1000)\n//\t\t\t\t{\n//\t\t\t\t\t//timeout\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;", "RoomInfo room(int id);", "public List<Room> findAppropriate(String applicationId) throws DAOException {\n List<Room> rooms = new ArrayList<Room>();\n Map<Integer, Integer> dayCompletionList;\n boolean isAvailable = true;\n int minPlacesAvailable;\n int neededPlacesAmount = 0;\n Date mainArrival = null;\n Date mainDeparture = null;\n PreparedStatement statement = null;\n PreparedStatement getApplicationData = null;\n PreparedStatement getRoomType = null;\n PreparedStatement getApplicationsForRoom = null;\n ResultSet applicationDataResultSet;\n ResultSet resultSet;\n ResultSet roomTypeResultSet;\n ResultSet applicationsForRoom;\n try {\n getApplicationData = proxyConnection.prepareStatement(SQL_SELECT_APPLICATION_DATA);\n getApplicationData.setLong(1, Long.parseLong(applicationId));\n\n applicationDataResultSet = getApplicationData.executeQuery();\n if (applicationDataResultSet.next()) {\n neededPlacesAmount = applicationDataResultSet.getInt(1);\n mainArrival = applicationDataResultSet.getDate(2);\n mainDeparture = applicationDataResultSet.getDate(3);\n }\n getRoomType = proxyConnection.prepareStatement(SQL_SELECT_ROOM_TYPE);\n getApplicationsForRoom = proxyConnection.prepareStatement(SQL_SELECT_APPLICATIONS_FOR_ROOM);\n getApplicationsForRoom.setInt(1, CONFIRMED);\n\n statement = proxyConnection.prepareStatement(SQL_SELECT_ROOMS_FOR_APPLICATION);\n statement.setLong(1, Long.parseLong(applicationId));\n\n resultSet = statement.executeQuery();\n while (resultSet.next()) {//all rooms of type\n dayCompletionList = new HashMap<>();\n Room room = new Room();\n room.setId(resultSet.getLong(1));\n room.setMaxPlaces(resultSet.getInt(2));\n room.setPrice(resultSet.getInt(3));\n getRoomType.setLong(1, Long.parseLong(resultSet.getString(4)));\n\n roomTypeResultSet = getRoomType.executeQuery();\n if (roomTypeResultSet.next()) {\n room.setType(roomTypeResultSet.getString(1));\n }\n getApplicationsForRoom.setLong(2, room.getId());\n getApplicationsForRoom.setDate(3, mainDeparture);\n getApplicationsForRoom.setDate(4, mainArrival);\n\n applicationsForRoom = getApplicationsForRoom.executeQuery();\n //number of day from 0 year\n int firstDay;\n int lastDay;\n int placesAmount = 0;\n minPlacesAvailable = room.getMaxPlaces();\n //through all confirmed applications for current room (only in case smn has already booked it)\n while (applicationsForRoom.next()) {\n placesAmount = applicationsForRoom.getInt(1);\n firstDay = applicationsForRoom.getInt(2);\n lastDay = applicationsForRoom.getInt(3);\n Integer i = firstDay;\n while (i <= lastDay) {\n if (dayCompletionList.containsKey(i)) {\n dayCompletionList.put(i, dayCompletionList.get(i) + placesAmount);\n } else {\n dayCompletionList.put(i, placesAmount);\n }\n i++;\n }\n }\n //заполненность дней по подтвержденным заявкам (сколько уже занято)\n for (int amount : dayCompletionList.values()) {\n if (room.getMaxPlaces() - amount < minPlacesAvailable) {\n //сколько осталось мест на такой период\n minPlacesAvailable = room.getMaxPlaces() - amount;\n }\n if (amount + neededPlacesAmount > room.getMaxPlaces()) {\n isAvailable = false;\n }\n }\n if (isAvailable) {\n room.setFreePlaces(minPlacesAvailable);\n rooms.add(room);\n }\n }\n } catch (SQLException e) {\n throw new DAOException(e);\n } finally {\n close(statement);\n close(getApplicationData);\n close(getApplicationsForRoom);\n close(getRoomType);\n }\n return rooms;\n }", "Room mo12151c();", "RoomInfo room(String name);", "@Override\n\tpublic String fnBookRoom(String StudentId, String campus,\n\t\t\tString dRoomNumber, String dtDate, String dtToTimeSlott) {\n\t\t\n\t\tif (studentVsBookingList.containsKey(strStudentId)\n\t\t\t\t&& studentVsBookingList.get(StudentId).size() >= 3) {\n\t\t\treturn \"failed\";\n\t\t}\n\n\t\tHashMap<String, HashMap<String, HashMap<String, String>>> dateWiseRoomDetails = getdateWiseRoomDetails(campus);\n\t\tHashMap<String, HashMap<String, HashMap<String, String>>> roomDetails = null;\n\t\tString camp = StudentId.substring(0, 3).toUpperCase();\n\t\tSystem.out.println(\"Student ID campus \"+camp);\n\t\tswitch (camp.toLowerCase()) {\n\t\tcase \"dvl\":\n\t\t\troomDetails = hmDorvalRoomDetails;\n\t\t\tbreak;\n\n\t\tcase \"kkl\":\n\t\t\troomDetails = hmKirklandRoomDetails;\n\t\t\tbreak;\n\n\t\tcase \"wst\":\n\t\t\troomDetails = hmWestmountRoomDetails;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn \"failed\";\n\t\t}\n\t\tSystem.out.println(\"no date\");\n\t\tif (dateWiseRoomDetails.get(dtDate) == null)\n\t\t\treturn \"failed\";\n\t\tSystem.out.println(\"slot missed\");\n\t\tHashMap<String, String> timeSlotsOfaRoom = dateWiseRoomDetails.get(\n\t\t\t\tdtDate).get(dRoomNumber);\n\t\tif (timeSlotsOfaRoom == null)\n\t\t\treturn \"failed\";\n\t\tif (!timeSlotsOfaRoom.containsKey(dtToTimeSlott)\n\t\t\t\t|| timeSlotsOfaRoom.get(dtToTimeSlott) != null)\n\t\t\treturn \"failed\";\n\n\t\tString bookingId = camp.substring(0,3) +\"-\"+ \"BID\" + iBookingId++;\n\t\taddBookingIdTOStudent(StudentId, bookingId);\n\t\ttimeSlotsOfaRoom.put(dtToTimeSlott, bookingId);\n\t\tSystem.out.println(\"Booking done Sucessfully\");\n\t\treturn bookingId;\n\t}", "public void manualBooking() {\n IController<Modules> mic = new Controller<>();\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm\");\n DateTimeFormatter durationFormatter = DateTimeFormatter.ofPattern(\"HH:mm\");\n\n boolean sociallyDistanced;\n LocalDateTime time;\n LocalTime duration;\n Modules module;\n Rooms room;\n\n // Is this booking socially distanced?\n sociallyDistanced = isSociallyDistanced();\n\n // Get Time.\n System.out.println(\"What time would you like this booking to be (HH:MM)?\");\n String sTime = sc.next();\n while (!sTime.matches(\"^[0-9]+:[0-9]+$\")) {\n System.out.println(\"Please make sure you are using the correct format. (HH:MM)\");\n sTime = sc.next();\n }\n sc.nextLine();\n\n // Get date INCLUDE OPTION TO GO FROM `m.getStart()`\n System.out.println(\"What date would you like this booking to be on (dd/mm/yyyy)?\");\n String sDate = sc.next();\n while (!sDate.matches(\"^[0-9]+/[0-9]/+[0-9]{4}$\")) {\n System.out.println(\"Please make sure you are using the correct format. (HH:MM)\");\n sDate = sc.next();\n }\n sc.nextLine();\n\n // Get datetime\n try {\n time = LocalDateTime.parse(sDate + \" \" + sTime, dateTimeFormatter);\n } catch (Exception e) {\n System.out.println(\"That is not a valid date. Going back to menu.\");\n return;\n }\n\n // Get duration.\n System.out.println(\"How long would you like this booking to be? (HH:MM)?\");\n String sDuration = sc.next();\n while (!sDuration.matches(\"^[0-9]{1,2}:[0-9]+$\")) {\n System.out.println(\"Please make sure you are using the correct format. (HH:MM)\");\n sDuration = sc.next();\n }\n sc.nextLine();\n\n // Attempt to set duration\n try {\n duration = LocalTime.parse(sTime, durationFormatter);\n } catch (Exception e) {\n System.out.println(\"That is not a valid time. Going back to menu.\");\n return;\n }\n LocalDateTime endTime = time.plusHours(duration.getHour()).plusMinutes(duration.getMinute());\n\n // Get module.\n Map<String, Modules> moduleMap = new HashMap<>();\n System.out.println(\"Module options\");\n for (Modules m : mic.readAll(Modules.class)) {\n System.out.println(\" \" + m.getModuleID() + \": \" + m.getName());\n moduleMap.put(m.getModuleID(), m);\n }\n String moduleKey = sc.next();\n while (!moduleMap.containsKey(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 = moduleMap.get(moduleKey);\n\n room = getRooms(sociallyDistanced, time, endTime, module);\n\n Bookings newBooking;\n\n\n try {\n // create a non-recurring booking.\n newBooking = new Bookings(sociallyDistanced, time, duration, module, room);\n addBooking(newBooking);\n } catch (Exception e) {\n System.out.println(\"There was an error creating a booking on the date: \" + time.format(DateTimeFormatter.ofPattern(\"dd/MM/yyyy\")));\n }\n\n\n }", "private void doGetFromWebsite(HttpServletRequest request, HttpServletResponse response) {\n\t\tString PID = request.getParameter(\"id\");\n\t\tString doctor = request.getParameter(\"doctor\");\n\t\tString reservationType = request.getParameter(\"reservationType\");\n\t\t\n\t\tif(reservationType.equals(\"0\"))\n\t\t\tconnector.writeReservationInformation(PID, \"jason\", \"\");\n\t\telse{\n\t\t\tconnector.writeReservationInformation(PID, \"jason\", doctor);\n\t\t}\n\t\tVector vector = connector.queryReservationInformation(PID);\n\t\tWaitInformation info = new WaitInformation();\n\t\t//可能门诊诊间还没有生成排队信息,如果是这样就先默认几个值\n\t\tif(vector == null){\n\t\t\tinfo.setPeopleCount(0);\n\t\t\tinfo.setSucceed(true);\n\t\t\tinfo.setWaitTime(0);\n\t\t}else{\n\t\t\tint peopleCount = (Integer)vector.get(0);\n\t\t\tinfo.setPeopleCount(peopleCount);\n\t\t\tinfo.setSucceed(true);\n\t\t\t//因为门诊诊间没有提供预计等待时间的功能,所以这里我们假设等待时间是病人数*5\n\t\t\tinfo.setWaitTime(peopleCount * 5);\n\t\t}\n\t\t\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"show.jsp\");\n\t\trequest.setAttribute(\"data\", info);\n\t\ttry {\n\t\t\tdispatcher.forward(request, response);\n\t\t} catch (ServletException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static ArrayList<String> checkWaitlist(boolean byRoom, int seats, Date date){\r\n con = DBConnection.getConnection();\r\n ArrayList<String> open = new ArrayList<>();\r\n\r\n if(byRoom){\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where SEATS <= ?\");\r\n retrieve.setInt(1, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n while(res.next()){\r\n if(open.indexOf(res.getString(2)) >= 0){\r\n continue;\r\n }\r\n open.add(res.getString(1));\r\n open.add(res.getString(2));\r\n open.add(res.getString(3));\r\n }\r\n return open;\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n } else {\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where Date = ? and SEATS <= ?\"\r\n + \"ORDER by Timestamp\");\r\n retrieve.setDate(1, date);\r\n retrieve.setInt(2, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n if(res.next()){\r\n open.add(res.getString(1));\r\n open.add(res.getString(3));\r\n }\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n }\r\n }", "public Room(int id, int roomNumber, int persons, int days){\n this.id = id;\n this.roomNumber = roomNumber;\n this.persons = persons;\n this.days = days;\n available = false; //default value, assignment not necessary\n }", "RoomInfo getRoomInfo(int roomId) throws IOException;", "public void timeLogic(int time){\n //Add logic to decide time increments at which tickets will be granted\n }", "public GenericResponse<Set<Room>> findAvailableRooms(LocalDate bookingDate) {\n logger.info(String.format(\"Booking date: %s\", bookingDate));\n\n GenericResponse genericResponse = HotelBookingValidation.validateBookingDate(logger, bookingDate);\n if (genericResponse != null) {\n return genericResponse;\n }\n\n Set<Room> availableRooms =\n hotel.getRooms()\n .stream()\n .filter(\n room -> !hotel.getBookings().containsKey(\n BookingRoom.NewBuilder().withRoom(room).withBookingDate(bookingDate).build()\n )\n )\n .collect(Collectors.toSet());\n return GenericResponseUtils.generateFromSuccessfulData(availableRooms);\n }", "@CrossOrigin(origins = \"http//localhost:4200\")\n\t@RequestMapping(value = \"/api/available-room-other-date\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n\tprivate AvailableHospitalRoomDTO availableRoomOtherDate(@RequestBody SurgeryDTO surgeryDTO) throws ParseException {\n\t\tAvailableHospitalRoomDTO ret = new AvailableHospitalRoomDTO();\n\t\tSurgery surgery = ss.findById(surgeryDTO.getId());\n\t\tList<HospitalRoom> rooms = hrs.findByClinicId(surgery.getClinic().getId());\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm\");\n\t\tDate date = dateFormat.parse(surgery.getDate());\n\t\tlong startSurgery = date.getTime();\n\t\tboolean nadjenaSoba = false;\n\t\twhile (nadjenaSoba == false) {\n\t\t\tstartSurgery = startSurgery + 2 * 60 * 60 * 1000;\n\t\t\tString newDate = dateFormat.format(startSurgery);\n\t\t\tfor (HospitalRoom room : rooms) {\n\t\t\t\tif (nadjenaSoba == false) {\n\t\t\t\t\tList<Surgery> surgeries = ss.findByHospitalId(room.getId());\n\t\t\t\t\tList<Appointment> appointments = as.findByHospitalRoomId(room.getId());\n\t\t\t\t\tnadjenaSoba = checkTime(newDate, appointments, surgeries);\n\t\t\t\t\tif (nadjenaSoba) {\n\t\t\t\t\t\tret.setDate(newDate);\n\t\t\t\t\t\tret.setId(room.getId());\n\t\t\t\t\t\tret.setRoom_num(room.getRoom_number());\n\t\t\t\t\t\tret.setName(room.getName());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private ArrayList<Room> roomAvailability(LocalDate start, LocalDate end, int small, int medium, int large) {\n ArrayList<Room> availableRooms = new ArrayList<Room>();\n // Iterate for all rooms in the venue\n for (Room room : rooms) {\n // Search the venue's reservations that contain the specified room.\n ArrayList<Reservation> reservationsWithRoom = Reservation.searchReservation(reservations, room);\n // Try to find rooms that fulfil the request.\n switch(room.getSize()) {\n case \"small\":\n // Ignore if no small rooms are needed.\n if (small > 0) {\n // If there no reservations with the room or the reserved dates do not\n // overlap, then add the room sinced it is available.\n if(reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n\n availableRooms.add(room);\n small--;\n } \n }\n break;\n\n case \"medium\":\n // Ignore if no medium rooms are needed.\n if (medium > 0) {\n \n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n medium--;\n }\n }\n break;\n\n case \"large\":\n // Ignore if no large rooms ar eneeded.\n if (large > 0) {\n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n large--;\n }\n break;\n }\n }\n }\n // A request cannot be fulfilled if there are no rooms available in the venue\n if (small > 0 || medium > 0 || large > 0) {\n \n return null;\n } else {\n return availableRooms;\n }\n }", "protected static String availableRooms(ArrayList<Room> roomList,String start_date){\n String stringList = \"\";\n for(Room room : roomList){\n System.out.println(room.getName());\n ArrayList<Meeting> meet = room.getMeetings();\n for(Meeting m : meet){\n stringList += m + \"\\t\";\n }\n System.out.println(\"RoomsList\"+stringList);\n }\n return \"\";\n }", "public SchedulingRequest(LocalDateTime startTime, LocalDateTime endTime,\n LocalDateTime timeRequested, LocalDateTime timeCompleted,\n String name, Node room) {\n this();\n\n this.startTime.set(startTime);\n this.endTime.set(endTime);\n this.timeRequested.set(timeRequested);\n this.timeCompleted.set(timeCompleted);\n this.whoReserved.set(name);\n this.room.set(room);\n }", "@Override\n\t public synchronized String fnGetAvailableTimeSlot(String campusName, String date) \n\t\t\t throws RemoteException, UnknownHostException, IOException {\n\t\t System.out.println(campusName);\n\n\t\tbyte[] bReceiveData = new byte[10];\n\t\tbyte[] bSendData = date.getBytes();\n\t\tString strTotalCount = \"\";\n\t\t// Here we are using local system so \"localhost\"\n\t\tInetAddress ipHostAddress = InetAddress.getByName(\"localhost\");\n\t\tDatagramSocket dgSocket = new DatagramSocket();\n\t\tDatagramPacket dpSendPacket = null;\n\t\tString strReplyFromServerOne = \"\";\n\t\tString strReplyFromServerTwo = \"\";\n\n\t\tDatagramPacket dpReceivePacket = new DatagramPacket(bReceiveData, bReceiveData.length);\n\t\ttry {\n\t\t\tif (campusName.equalsIgnoreCase(\"DVL\")) {\n\t\t\t\tdpSendPacket = new DatagramPacket(bSendData, bSendData.length, ipHostAddress, 8000);\n\t\t\t\tdgSocket.send(dpSendPacket);\n\t\t\t\tdgSocket.receive(dpReceivePacket);\n\t\t\t\tstrReplyFromServerOne = new String(trim(dpReceivePacket.getData()), \"UTF-8\");\n\t\t\n\t\t\t\tdpSendPacket = new DatagramPacket(bSendData, bSendData.length, ipHostAddress, 9000);\n\t\t\t\tdgSocket.send(dpSendPacket);\n\t\t\t\tdgSocket.receive(dpReceivePacket);\n\t\t\t\tstrReplyFromServerTwo = new String(trim(dpReceivePacket.getData()), \"UTF-8\");\n\t\t\t\tstrTotalCount = \"DVL: \" + fnGetAvailableTimeSlotOfACampus(campusName,date) + \", \" + \"KKL: \" + strReplyFromServerOne + \", \"+ \"WST: \" + strReplyFromServerTwo;\n\t\t\t\n\t\t\t} else if (campusName.equalsIgnoreCase(\"KKL\")) {\n\t\t\t\tdpSendPacket = new DatagramPacket(bSendData, bSendData.length, ipHostAddress, 7011);\n\t\t\t\tdgSocket.send(dpSendPacket);\n\t\t\t\tdgSocket.receive(dpReceivePacket);\n\t\t\t\tstrReplyFromServerOne = new String(trim(dpReceivePacket.getData()), \"UTF-8\");\n\t\t\n\t\t\t\tdpSendPacket = new DatagramPacket(bSendData, bSendData.length, ipHostAddress, 9000);\n\t\t\t\tdgSocket.send(dpSendPacket);\n\t\t\t\tdgSocket.receive(dpReceivePacket);\n\t\t\t\tstrReplyFromServerTwo = new String(trim(dpReceivePacket.getData()), \"UTF-8\");\n\t\t\t\tstrTotalCount = \"KKL: \" + fnGetAvailableTimeSlotOfACampus(campusName,date) + \", \" + \"DVL: \" + strReplyFromServerOne + \", \"+ \"WST: \" + strReplyFromServerTwo;\n\n\t\t\t} else if (campusName.equalsIgnoreCase(\"WST\")) {\n\t\t\t\tdpSendPacket = new DatagramPacket(bSendData, bSendData.length, ipHostAddress, 7011);\n\t\t\t\tdgSocket.send(dpSendPacket);\n\t\t\t\tdgSocket.receive(dpReceivePacket);\n\t\t\t\tstrReplyFromServerOne = new String(trim(dpReceivePacket.getData()), \"UTF-8\");\n\t\t\t\n\t\t\t\tdpSendPacket = new DatagramPacket(bSendData, bSendData.length, ipHostAddress, 8000);\n\t\t\t\tdgSocket.send(dpSendPacket);\n\t\t\t\tdgSocket.receive(dpReceivePacket);\n\t\t\t\tstrReplyFromServerTwo = new String(trim(dpReceivePacket.getData()), \"UTF-8\");\n\t\t\t\tstrTotalCount = \"WST: \" + fnGetAvailableTimeSlotOfACampus(campusName,date) + \", \" + \"DVL: \" + strReplyFromServerOne + \", \"+ \"KKL: \" + strReplyFromServerTwo;\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t return strTotalCount; \n\t}", "private void getHotelRoomRateCall(long cityId) {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-DD\", Locale.ENGLISH);\n engCheckInDate = dateFormat.format(checkInDate);\n engCheckOutDate = dateFormat.format(checkOutDate);\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n HotelRoomRateRequest hotelRoomRateRequest = new HotelRoomRateRequest();\n hotelRoomRateRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelRoomRateRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelRoomRateRequest.setLanguageCode(UserDTO.getUserDTO().getLanguage());\n hotelRoomRateRequest.setCityId(cityId);\n hotelRoomRateRequest.setHotelId(Long.parseLong(destination.getKey()));\n hotelRoomRateRequest.setCurrencyCode(UserDTO.getUserDTO().getCurrency());\n\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n\n if (kidsAgeArrayList == null)\n kidsAgeArrayList = new ArrayList<>();\n kidsAgeArrayList.clear();\n\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelRoomRateRequest.setOccupancy(occupancyDtoArrayList);\n }\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setLanguageCode(UserDTO.getUserDTO().getLanguage());\n hotelListingRequest.setCityId(cityId);\n hotelListingRequest.setCurrencyCode(UserDTO.getUserDTO().getCurrency());\n hotelListingRequest.setOccupancy(hotelRoomRateRequest.getOccupancy());\n\n String request = new Gson().toJson(hotelRoomRateRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n hotelSearchPresenter.getHotelRoomRate(Constant.API_URL + Constant.HOTELSRATES, request, getActivity());\n\n } else\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }", "@CrossOrigin(origins = \"http//localhost:4200\")\n\t@RequestMapping(value = \"/api/availableRooms\", method = RequestMethod.POST)\n\tpublic List<HospitalRoom> availableRooms(@RequestBody SurgeryDTO surgeryDTO) throws ParseException {\n\t\tList<HospitalRoom> ret = new ArrayList<>();\n\t\tSurgery surgery = null;\n\t\ttry {\n\t\t\tsurgery = ss.findById(surgeryDTO.getId());\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\n\t\tClinic clinic = surgery.getClinic();\n\t\t// Uzimamo milisekunde kad je zakazano\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm\");\n\t\tDate date = dateFormat.parse(surgeryDTO.getDate());\n\t\t// Prolazimo kroz sve sale i gledamo koja je slobodna u tom trenutku\n\t\tList<HospitalRoom> allRooms = hrs.findByClinicId(surgery.getClinic().getId());\n\t\tfor (HospitalRoom hospitalRoom : allRooms) {\n\t\t\tboolean nadjenaOperacijaKojaJeUTomTerminu = false;\n\t\t\t// Proveravamo da li je zakazana neka operacija tada\n\t\t\tList<Surgery> roomSurgeries = ss.findByHospitalId(hospitalRoom.getId());\n\t\t\tfor (Surgery s : roomSurgeries) {\n\t\t\t\tif (nadjenaOperacijaKojaJeUTomTerminu == false) {\n\t\t\t\t\t// poredim datum moje operacije i datum operacije u ovom for-u\n\t\t\t\t\tif (surgery.getDate().equals(s.getDate())) {\n\t\t\t\t\t\tnadjenaOperacijaKojaJeUTomTerminu = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tList<Appointment> appsRoom = this.as.findByHospitalRoomId(hospitalRoom.getId());\n\t\t\tfor (Appointment appointment : appsRoom) {\n\t\t\t\tif (nadjenaOperacijaKojaJeUTomTerminu == false) {\n\t\t\t\t\t// Provaravamo datum moje operacije i datum operacije, ako je 0 onda su jednaki\n\t\t\t\t\tif (surgery.getDate().equals(appointment.getDate())) {\n\t\t\t\t\t\t// Da li se poklapaju satnice\n\t\t\t\t\t\tnadjenaOperacijaKojaJeUTomTerminu = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!nadjenaOperacijaKojaJeUTomTerminu)\n\t\t\t\tret.add(hospitalRoom);\n\t\t\tSet<Appointment> roomAppointments = hospitalRoom.getAppointments();\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n\tpublic int getRoomAvailable(String month, int day, String type, int lengthOfStay) {\n\t\treturn 0;\n\t}", "public void setRequesttime(Date requesttime) {\n this.requesttime = requesttime;\n }", "@RequestMapping(value = \"/room/{id_hotel}/{room_no}\", method = RequestMethod.GET)\n public Room getRoom(@PathVariable int id_hotel,\n @PathVariable String room_no){\n Room kamar = DatabaseRoom.getRoom(DatabaseHotel.getHotel(id_hotel), room_no);\n return kamar;\n }", "public void returnReply(){\n String title = titleView.getText().toString();\n String sDay = sDayView.getText().toString();\n String eDay = eDayView.getText().toString();\n String sTime = sTimeView.getText().toString();\n String eTime = eTimeView.getText().toString();\n String campus = campusView.getSelectedItem().toString();\n String building = buildingView.getSelectedItem().toString();\n String room = roomView.getText().toString();\n int cat = catView.getSelectedItemPosition();\n String note = noteView.getText().toString();\n\n Calendar idGen = Calendar.getInstance();\n int id;\n id = Long.valueOf(idGen.getTimeInMillis()).intValue(); //generate id based on time\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"data\", new Lecture(title, sDay, eDay, sTime, eTime, campus, building, room, cat, note, id)); //create new entry and send back as result\n setResult(RESULT_OK, returnIntent);\n finish();\n }", "public int checkRooms(LocalDate bookdate, int stay, int type, int req, ArrayList<Integer> array) {\n\t\t\t\r\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint count = 0;\r\n\t\t\tBooking bookChecker = null; //Saves the bookings of a hotel to be checked\r\n\t\t\tRooms roomChecker = null; //Saves the rooms of the hotel\r\n\t\t\tLocalDate endBook = bookdate.plusDays(stay); //booking start date + number of nights\r\n\t\t\tboolean booked = false;\r\n\r\n\t\t\tif(req == 0) return 0; //if theres no need for single/double/triple room\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //checking room-wise order\r\n\t\t\t\troomChecker = RoomDetails.get(i);\r\n\t\t\t\tif(type == roomChecker.getCapacity()) { //only check if its the same room type as needed\r\n\t\t\t\t\tk = 0;\r\n\t\t\t\t\twhile(k < Bookings.size()) { //check for bookings of a room\r\n\t\t\t\t\t\tbookChecker = Bookings.get(k);\r\n\t\t\t\t\t\tj=0;\r\n\t\t\t\t\t\tbooked = false;\r\n\t\t\t\t\t\twhile(j < bookChecker.getNumOfRoom()) { //To check if a booked room have clashing schedule with new booking\r\n\t\t\t\t\t\t\tif(roomChecker.getRoomNum() == bookChecker.getRoomNumber(j)) { //if there is a booking for the room\r\n\t\t\t\t\t\t\t\tif(bookdate.isEqual(bookChecker.endDate()) || endBook.isEqual(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts at the same day where another booking ends\r\n\t\t\t\t\t\t\t\t\tbooked = false; //No clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(bookdate.isAfter(bookChecker.endDate()) || endBook.isBefore(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts days after other booking ends, or new booking ends before other booking starts\r\n\t\t\t\t\t\t\t\t\tbooked = false; //no clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse { //Any other way means that it clashes and hence room cant be booked\r\n\t\t\t\t\t\t\t\t\tbooked = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\tk++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tif(booked == false) {\r\n\t\t\t\t\t\tarray.add(roomChecker.getRoomNum()); //if no clashing dates, book the room for new cust\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (count == req) break; //if there is enough room already, finish\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn count; //returns the number of available rooms acquired\r\n\t\t}", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "public RouteResponse findRouteTime(RouteRequest routeRequest);", "CurrentReservation createCurrentReservation();", "public void postGetRoomWIP() {\n if (!mIsInForegroundMode) {\n Log.d(\"SCXTT\", \"were OUT so abort postGetRoomWIP\");\n return;\n }\n\n Log.d(\"SCXTT\", \"postGetRoomWIP set looking = 1\");\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n AsyncHttpClient client = new AsyncHttpClient();\n RequestParams params = new RequestParams();\n params.put(\"cmd\", \"getroom\");\n params.put(\"user_id\", deviceSingleton.getUserId());\n params.put(\"location\", deviceSingleton.getMyLocStr());\n params.put(\"text\", \"notused\");\n\n client.post(Constants.API_URL, params, new AsyncHttpResponseHandler() {\n @Override\n public void onStart() {\n // called before request is started\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n //setting the new location AND GETTING THE JSON RESPONSE!\n String decoded = null; // example for one encoding type\n try {\n decoded = new String(response, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n Log.v(TAG, \"API call onSuccess = \" + statusCode + \", Headers: \" + headers[0] + \", response.length: \" + response.length +\n \", decoded:\" + decoded);\n\n try {\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n JSONArray list = new JSONArray(decoded);\n Log.d(TAG, \"API Call postGetRoomWIP getroom returned list.length: \" + list.length());\n LatLngBounds.Builder builder = new LatLngBounds.Builder();\n roomArray.clear();\n\n for (int i = 0; i < list.length(); i++) {\n JSONObject obj = list.getJSONObject(i);\n String nickName = obj.getString(\"nickname\");\n String mLocation = obj.getString(\"location\");\n String gmtDateString = obj.getString(\"loc_time\");\n // add the guys above to Room roomObj\n Room roomObj = new Room(deviceSingleton.getSecretCode(), nickName, mLocation, gmtDateString);\n roomArray.add(roomObj);\n }\n Log.v(TAG, \"postGetRoomWIP remove this next call to updatePointsOnMapWithAPIData and make a notification trigger it like iOS\");\n try {\n updatePointsOnMapWithAPIData();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n Log.v(TAG, \"postGetRoomWIP API call onFailure = \" + errorResponse);\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n\n @Override\n public void onRetry(int retryNo) {\n // called when request is retried\n }\n });\n Log.v(TAG, \"API call response out of catch = \" + response);\n\n }", "@GetMapping\r\n public String getReservations(@RequestParam(value = \"date\", required = false) String dateString,\r\n Model model,\r\n HttpServletRequest request) {\n LocalDate date = DateUtils.createDateFromDateString(dateString);\r\n List<RoomReservation> roomReservations = reservationService.getRoomReservationForDate(date);\r\n model.addAttribute(\"roomReservations\", roomReservations);\r\n return \"reservations\";\r\n// return new ResponseEntity<>(roomReservations, HttpStatus.OK);\r\n }", "@Override\n public void gotoFloor(int elevatorId, int floor) {\n if (elevatorId > elevators.size() - 1) {\n System.out.println(\"Incorrect request. Elevator = \" + elevatorId + \" is not a valid elevator\");\n }\n elevators.get(elevatorId).getRequests().offer(floor);\n }", "public boolean deleteRoom(String user_id, int room_number, DateReservation date, ArrayList<TimeSlot> time_slots) {\n\t\tString log_msg = String.format(\"received deleteRoom(user id: %s, room number: %d, date: %s, time slots: %s\", \n\t\t\t\tuser_id, room_number, date, time_slots);\n\t\tlogger.info(LoggerHelper.format(log_msg));\n\t\tCampusUser user = new CampusUser(user_id);\n\t\tif (!user.isAdmin() || !user.getCampus().equals(getName()))\n\t\t{\n\t\t\tlogger.warning(LoggerHelper.format(String.format(\"%s is not authorized to deleteRoom in %s\", user_id, getName())));\n\t\t\treturn false;\n\t\t}\n\t\tDbOperations ops = new DbOperations(db) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSubValue(ArrayList<TimeSlot> sub_val) {\n\t\t\t\tArrayList<Thread> threads = new ArrayList<>();\n\t\t\t\tHashMap<Integer, WaitObject> res = new HashMap<>();\t//(message_id, wait ojbect)\n\t\t\t\tHashMap<Integer, TimeSlot> removed_list = new HashMap<>();\t//(message_id, time slot)\n\t\t\t\t\n\t\t\t\tArrayList<TimeSlot> new_time_slots = new ArrayList<TimeSlot>();\n\t\t\t\tfor (TimeSlot val1 : sub_val)\n\t\t\t\t{\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (TimeSlot val2 : time_slots)\n\t\t\t\t\t\tif (val1.equals(val2))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tif (found)\t//We need to delete val1 from time slot list\n\t\t\t\t\t{\n\t\t\t\t\t\tif (val1.isBooked())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCampusUser user = new CampusUser(val1.getUsername());\n\t\t\t\t\t\t\tif (userBelongHere(user))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlogger.info(String.format(\"%s who is in this campus, booked time slot %s.\" +\n\t\t\t\t\t\t\t\t\t\t\"I'm going to remove booking id %s from his/her record while deleting time slot\", \n\t\t\t\t\t\t\t\t\t\tval1.getUsername(), val1, val1.getBookingId()));\n\t\t\t\t\t\t\t\tboolean status = removeStudentRecord(val1.getUsername(), val1.getBookingId());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (!status)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.severe(String.format(\"I cannot delete booking id %s from %s records \", \n\t\t\t\t\t\t\t\t\t\t\tval1.getBookingId(), val1.getUsername()));\n\t\t\t\t\t\t\t\t\t_operation_status = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tCampusUser a_user = new CampusUser(val1.getUsername());\n\t\t\t\t\t\t\t\tlogger.info(String.format(\"%s who is in another campus (%s), booked time slot %s.\" +\n\t\t\t\t\t\t\t\t\t\t\"I'm going to send a request to that campus to remove booking id %s from\" + \n\t\t\t\t\t\t\t\t\t\t\" his/her record while I'm deleting this time slot\", val1.getUsername(), \n\t\t\t\t\t\t\t\t\t\ta_user.getCampus(), val1, val1.getBookingId()));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tint message_id = MessageProtocol.generateMessageId();\n\t\t\t\t\t\t\t\tbyte[] send_msg = MessageProtocol.encodeRemoveStudentRecordMessage(message_id, val1.getUsername(), val1.getBookingId());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tUdpServer.WaitObject wait_object = udp_server.new WaitObject();\n\t\t\t\t\t\t\t\t\tudp_server.addToWaitList(message_id, wait_object);\n\t\t\t\t\t\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tsynchronized (wait_object) {\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\twait_object.wait();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tres.put(message_id, wait_object);\n\t\t\t\t\t\t\t\t\tremoved_list.put(message_id, val1);\n\t\t\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t\t\t\tsendMessage(send_msg, user.getCampus());\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tthreads.add(thread);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\t//We shouldn't delete val1\n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.warning(String.format(\"I couldn't find %s in time slot database\", val1));\n\t\t\t\t\t\tnew_time_slots.add(val1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Since we use sub_val as a lock object (see create room method), we couldn't simply use val.put(room_number, new_time_slots)\n\t\t\t\tsub_val.clear();\n\t\t\t\tfor (TimeSlot value : new_time_slots)\n\t\t\t\t\tsub_val.add(value);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tfor (Thread thread : threads)\n\t\t\t\t\t\tthread.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int message_id : res.keySet())\n\t\t\t\t{\n\t\t\t\t\tTimeSlot ts = removed_list.get(message_id);\n\t\t\t\t\tboolean status = res.get(message_id).status;\n\t\t\t\t\tif (!status)\n\t\t\t\t\t{\n\t\t\t\t\t\tCampusUser a_user = new CampusUser(ts.getUsername());\n\t\t\t\t\t\tlogger.severe(String.format(\"%s campus cannot delete booking id %s from student %s records\",\n\t\t\t\t\t\t\t\ta_user.getCampus(), ts.getBookingId(), ts.getUsername()));\n\t\t\t\t\t\t_operation_status = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic HashMap<Integer, ArrayList<TimeSlot>> onNullValue() {\n\t\t\t\t_operation_status = false;\n\t\t\t\tlogger.severe(String.format(\"%s doesn't have any room numbers!\", date));\n\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic ArrayList<TimeSlot> onNullSubValue(HashMap<Integer, ArrayList<TimeSlot>> val) {\n\t\t\t\t_operation_status = false;\n\t\t\t\tlogger.severe(String.format(\"We don't have any time slots for date %s and room number %d\",\n\t\t\t\t\t\tdate, room_number));\n\t\t\t\treturn null;\n\t\t\t\t}\n\t\t};\n\t\t\n\t\ttraverseDb(room_number, date, ops);\n\t\treturn ops._operation_status;\n\t}", "@GET(\"planetary/apod\")\n Call<APOD> getApod(\n @Query(\"date\") String date,\n @Query(\"api_key\") String API_KEY\n );", "public List<String> notavailableRoom(String time, String days) throws SQLException\n {\n \tList<String> room = new ArrayList<String>();\n \tResultSet temp;\n \tif(days.charAt(0)=='M')\n \t\ttemp = test.readDatabase(\"select distinct Room_Code1 from class_2016 where Bldg_Code1 = 'MBB' and Term_Code = '\"+test.getLatestSemester()+\"' and Begin_Time = '\"+time+\"' and Monday_Ind1 = 'M' and Wednesday_Ind1 = 'W'and Friday_Ind1 = 'F' order by Room_Code1\");\n \telse\n \t\ttemp = test.readDatabase(\"select distinct Room_Code1 from class_2016 where Bldg_Code1 = 'MBB' and Term_Code = '\"+test.getLatestSemester()+\"' and Begin_Time = '\"+time+\"' and Tuesday_Ind1 = 'T' and Thursday_Ind1 = 'R' order by Room_Code1\");\n \t\troom = test.writeResultSet(temp,\"Room_Code1\");\n \t\treturn room; \t\n }", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "@Override\r\n\tpublic ErrorCode reserveRoom(\r\n\t\t\tString guestID, String hotelName, RoomType roomType, SimpleDate checkInDate, SimpleDate checkOutDate,\r\n\t\t\tlong resID) {\n\t\tErrorAndLogMsg m = clientProxy.reserveHotel(\r\n\t\t\t\tguestID, hotelName, roomType, checkInDate, checkOutDate, \r\n\t\t\t\t(int)resID);\r\n\t\t\r\n\t\tSystem.out.print(\"RESERVE INFO:\");\r\n\t\tm.print(System.out);\r\n\t\tSystem.out.println(\"\");\r\n\t\t\r\n\t\treturn m.errorCode();\r\n\t}", "static void goRoom(Command command) throws InterruptedException {\n if (currentRoom == airport) {\n lockRoom(command);\n }\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n return;\n }\n\n String direction = command.getSecondWord();\n\n Room nextRoom = currentRoom.getExit(direction);\n player.setCurrentRoom(nextRoom);\n /* loop that when next room is equel to null it print a message that says \"there is no door\" \n but if nextRoom is not equel null set currentRoom to nextRoom and print the description of the new room*/\n if (nextRoom == null) {\n System.out.println(\"There is no path!\");\n } else {\n currentRoom = nextRoom;\n System.out.println(player.getCurrentRoom().getLongDescription());\n\n }\n\n forceDialog();\n }", "private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}", "private static void createRooms() {\n// Room airport, beach, jungle, mountain, cave, camp, raft, seaBottom;\n\n airport = new Room(\"airport\");\n beach = new Room(\"beach\");\n jungle = new Room(\"jungle\");\n mountain = new Room(\"mountain\");\n cave = new Room(\"cave\");\n camp = new Room(\"camp\");\n seaBottom = new Room(\"seabottom\");\n\n //Setting the the exits in different rooms\n beach.setExit(\"north\", jungle);\n beach.setExit(\"south\", seaBottom);\n beach.setExit(\"west\", camp);\n\n jungle.setExit(\"north\", mountain);\n jungle.setExit(\"east\", cave);\n jungle.setExit(\"south\", beach);\n\n mountain.setExit(\"south\", jungle);\n\n cave.setExit(\"west\", jungle);\n\n camp.setExit(\"east\", beach);\n\n seaBottom.setExit(\"north\", beach);\n\n // Starting room\n currentRoom = airport;\n }", "public static int room_booking(int start, int end){\r\n\r\n\t\tint selected_room = -1;\r\n\t\t// booking_days list is to store all the days between start and end day\r\n\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\tbooking_days.add(i);\r\n\t\t}\r\n\r\n\t\tfor(int roomNo : hotel_size) {\r\n\r\n\t\t\tif(room_bookings.keySet().contains(roomNo)) {\r\n\t\t\t\tfor (Map.Entry<Integer, Map<Integer,List<Integer>>> entry : room_bookings.entrySet()) {\r\n\r\n\t\t\t\t\tList<Integer> booked_days_for_a_room = new ArrayList<Integer>();\r\n\t\t\t\t\tif(roomNo == entry.getKey()) {\r\n\t\t\t\t\t\tentry.getValue().forEach((bookingId, dates)->{\r\n\t\t\t\t\t\t\tbooked_days_for_a_room.addAll(dates);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tList<Integer> check_elements = new ArrayList<Integer>();\r\n\t\t\t\t\t\tfor(int element : booking_days) {\r\n\t\t\t\t\t\t\tif(booked_days_for_a_room.contains(element)) {\r\n\t\t\t\t\t\t\t\tstatus = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcheck_elements.add(element);\r\n\t\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\t\tstatus = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(status) {\r\n\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\treturn selected_room;\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\telse {\r\n\t\t\t\tselected_room = roomNo;\r\n\t\t\t\tstatus = true;\r\n\t\t\t\treturn selected_room;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn selected_room;\r\n\t}", "public void check_in(String type) {\n int index=searchRoom(type);\n if (index<=0)\n {\n System.out.println(\"There is no available \"+type+\" room!\");\n }else\n {\n int roomNo=roomlist.get(index).getRoomid();\n /*New object is created and this object`s availability wiil be \"not available,statu will be \"check in\"*/\n Room room = new Room(type,roomNo,\"not available\",\"check in\",this,roomlist.get(index).getRoomcharge());\n changeList(room);\n System.out.println(toString());\n System.out.println(\"Checked in of the room \"+roomNo+\" .\");\n }\n }", "public HashMap findMap(int date, int route){\n HashMap x = new HashMap<>();\n try {\n if (route==1) {\n switch (date){\n case 1:\n x = (HashMap) reservedseats1;\n break;\n case 2:\n x = (HashMap) reservedseats2;\n break;\n case 3:\n x = (HashMap) reservedseats3;\n break;\n case 4:\n x = (HashMap) reservedseats4;\n break;\n case 5:\n x = (HashMap) reservedseats5;\n break;\n }\n\n } else if (route==2) {\n switch (date){\n case 1:\n x = (HashMap) reservedseats6;\n break;\n case 2:\n x = (HashMap) reservedseats7;\n break;\n case 3:\n x = (HashMap) reservedseats8;\n break;\n case 4:\n x = (HashMap) reservedseats9;\n break;\n case 5:\n x = (HashMap) reservedseats10;\n break;\n }\n } else {\n System.out.println(\"error!\");;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error!\");\n\n }\n return x; //Returns hashmap to SeatReservation Class\n }", "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }", "void showCreatorWaitingRoom();", "public Elevator request(int floor, Direction dir) {\r\n\t\treturn null;\r\n\t}", "@Override\n\t\t\tpublic void onGET(OgemaHttpRequest req) {\n\t\t\t\tupdate(appController.getActiveRooms(), req);\n\t\t\t}", "RollingResult start(String roomId);", "public static void main(String[] args) {\n try {\n Model m = new Model();\n //Customer c = new Customer(\"Pam Satan III\", \"[email protected]\", \"Norwich\", \"V\", \"02/12\", \"2136871466\");\n //c = m.CUSTOMERS.getCustomer(c.getName(), c.getEmail());\n /*Customer pam = m.CUSTOMERS.createCustomer(c);\n System.out.println(pam);\n List<Room> list = new ArrayList<>();\n list.add(request);\n //have pam make bookings for this date until she has used up all the available rooms, should exception\n //out\n for(int i = 0; i < 100; i++) {\n m.BOOKINGS.makeBooking(c, list, LocalDate.parse(\"2017-12-24\"), LocalDate.parse(\"2017-12-28\"));\n }\n //Booking booktest = m.BOOKINGS.getBooking(15976);\n int foo = 1;*/\n //c.setName(\"Jordan Jorgens\");\n //m.CUSTOMERS.updateCustomer(c);\n //Customer check = m.CUSTOMERS.getCustomer(12955);\n //System.out.println(check);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n Room r = (Room)null;\n }", "public void timeTrip(View view){\n String URL = \"http://172.18.35.160:9080/CarpoolingTECServer/connect/request\";\n String ptoSalida = txtInicio.getText().toString();\n String ptoDestino = txtFin.getText().toString();\n\n String all = ptoSalida + \",\" + ptoDestino;\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n JsonObjectRequest objectRequest = new JsonObjectRequest(\n Request.Method.GET,\n URL,\n null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.e(\"Vivihola\", response.toString());\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Vivihola\", error.toString());\n }\n }\n );\n requestQueue.add(objectRequest);\n\n }", "private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }", "public void run() {\n LocalDateTime currentTime = calendar.getCurrentTime();\n LocalTime closingTime = calendar.getClosingTime();\n LocalTime openingTime = calendar.getOpeningTime();\n\n if (currentTime.getHour() >= closingTime.getHour() || currentTime.getHour() < openingTime.getHour()) {\n requestManager.setState(1); // close\n } else {\n requestManager.setState(0); // open\n }\n }", "private AppoinmentCompleteRequest appoinmentCompleteRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppoinmentCompleteRequest appoinmentCompleteRequest = new AppoinmentCompleteRequest();\n appoinmentCompleteRequest.set_id(appoinmentid);\n appoinmentCompleteRequest.setCompleted_at(currentDateandTime);\n appoinmentCompleteRequest.setAppoinment_status(\"Completed\");\n appoinmentCompleteRequest.setDiagnosis(DiagnosisType);\n appoinmentCompleteRequest.setSub_diagnosis(SubDiagnosisType);\n appoinmentCompleteRequest.setDoctor_comment(Doctor_Comments);\n Log.w(TAG,\"appoinmentCompleteRequest\"+ \"--->\" + new Gson().toJson(appoinmentCompleteRequest));\n return appoinmentCompleteRequest;\n }", "public List<Room> getReservedOn(LocalDate of) {\r\n\t\tList<Room> l= new ArrayList<>(new HashSet<Room>(this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(of, of))));\r\n\t\treturn l;\r\n\t}", "public Date getRequestDate();", "@Schedule(hour = \"2\")\n public void allocateCurrentDayReservation() {\n \n Calendar c = Calendar.getInstance();\n Date dateTime = c.getTime();\n \n reservationSessionBeanLocal.allocateCarsToReservations(dateTime);\n }", "public List<Reservation> findReservations(ReservableRoomId reservableRoomId) {\n\n return reservationRepository.findByReservableRoomReservableRoomIdOrderByStartTimeAsc(reservableRoomId);\n\n }", "@Test\n\tpublic void testFindFreeFacilityRoomNotAvailible() {\n\t\t// get current date\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\t// start is current date + 1\n\t\tDate startDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 24);\n\t\tDate reservationEndDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\t\tDate findEndDate = cal.getTime();\n\n\t\tdataHelper.createPersistedReservation(\"aID\", Arrays.asList(room1.getId()), startDate, reservationEndDate);\n\n\t\t// search for one workplace in room1\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 1);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, startDate, findEndDate, false);\n\n\t\t// should find no room because room is not available\n\t\tassertNotNull(result);\n\t\tassertEquals(0, result.size());\n\t}", "public abstract void enterRoom();", "public boolean isAvailableRoom(String sNmRoom, Date dtFrom, Date dtTo)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=isAvailableRoom&token=\"+sSecurityToken+\"&room=\"+URLEncode(sNmRoom)+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.value.equalsIgnoreCase(\"true\");\r\n } else {\r\n return false;\r\n }\r\n }", "private void createRooms()\n {\n Room outside, theatre, pub, lab, office , hallway, backyard,chickenshop;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n hallway=new Room (\"in the hallway of the university\");\n backyard= new Room( \"in the backyard of the university\");\n chickenshop= new Room(\"in the chicken shop\");\n \n \n \n // initialise room exits\n outside.setExit(\"east\", theatre);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", outside);\n theatre.setExit(\"north\", backyard);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n \n office.setExit(\"south\", hallway);\n office.setExit(\"west\", lab);\n \n chickenshop.setExit(\"west\", lab);\n\n currentRoom = outside; // start game outside\n \n }", "private CreateRoomRequest toCreateRoomRequest(OffsetDateTime validFrom, OffsetDateTime validUntil,\n Iterable<RoomParticipant> participants) {\n CreateRoomRequest createRoomRequest = new CreateRoomRequest();\n if (validFrom != null) {\n createRoomRequest.setValidFrom(validFrom);\n }\n\n if (validUntil != null) {\n createRoomRequest.setValidUntil(validUntil);\n }\n\n Map<String, ParticipantProperties> roomParticipants = new HashMap<>();\n\n if (participants != null) {\n roomParticipants = convertRoomParticipantsToMapForAddOrUpdate(participants);\n }\n\n if (participants != null) {\n createRoomRequest.setParticipants(roomParticipants);\n }\n\n return createRoomRequest;\n }", "public Reservation createNewResv(GuestMgr gm, RoomMgr rm, boolean walkIn) {\n\t\tint adultNo, kidNo, ch;\n\t\tboolean valid = false;\n\t\tString roomNo, dateIn, dateOut;\n\t\tLocalDate localDateIn, localDateOut, localDateNow;\n\t\tLocalTime resvTime;\n\t\tGuest guest = null;\n\t\tReservation resv;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n\t\tlocalDateNow = LocalDate.now();\n\t\tdo {\n\t\t\tSystem.out.println(\"(1) NEW Guest\");\n\t\t\tSystem.out.println(\"(2) EXISTING Guest\");\n\t\t\tSystem.out.println(\"(3) Back\");\n\t\t\tch = sc.nextInt();\n\t\t\tif (ch == 1) {\n\t\t\t\tguest = gm.createNewGuest();\n\t\t\t\tif (guest != null)\n\t\t\t\t\tvalid = true;\n\t\t\t}\n\t\t\telse if (ch == 2) {\n\t\t\t\tif (gm.getNumGuest() == 0)\n\t\t\t\t\tSystem.out.println(\"No existing guests!\");\n\t\t\t\telse{\n\t\t\t\t\tgm.readGuestList();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tch = errorCheckingInt(\"Enter guest ID: \");\n\t\t\t\t\tif (gm.checkGuestExist(ch)) {\n\t\t\t\t\t\tguest = gm.readGuestInfo(ch);\n\t\t\t\t\t\tvalid = true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Guest does not exist!\");\n\t\t\t\t}\n\t\t\t} else if (ch == 3)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t} while (!valid);\n\t\tadultNo = errorCheckingInt(\"Enter number of adults: \");\n\t\tkidNo = errorCheckingInt(\"Enter number of kids: \");\n\t\tsc.nextLine();\n\t\trm.viewAllVacantRoom(adultNo+kidNo);\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"Enter Room No to book: \");\n\t\t\troomNo = sc.nextLine();\n\t\t\tif (rm.checkRoomEmpty(roomNo)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Error input!\\n\");\n\t\t\t}\n\t\t}\n\t\tif (walkIn){\n\t\t\tlocalDateIn = localDateNow;\n\t\t}else{\n\t\t\twhile (true) {\n\t\t\t\tSystem.out.print(\"Enter date check-in (dd-MM-yyyy): \");\n\t\t\t\tdateIn = sc.nextLine();\n\t\t\t\ttry {\n\t\t\t\t\tlocalDateIn = LocalDate.parse(dateIn, format);\n\t\t\t\t\tif (localDateIn.isBefore(localDateNow)) {\n\t\t\t\t\t\tSystem.out.println(\"Error input. Check in date must be after today!\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(format.format(localDateIn));\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (DateTimeParseException e) {\n\t\t\t\t\tSystem.out.println(\"Error input. dd-MM-yyyy = 01-02-2018\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"Enter date check-out (dd-MM-yyyy): \");\n\t\t\tdateOut = sc.nextLine();\n\n\t\t\ttry {\n\t\t\t\tlocalDateOut = LocalDate.parse(dateOut, format);\n\t\t\t\tif (localDateOut.isBefore(localDateIn)) {\n\t\t\t\t\tSystem.out.println(\"Error input. Check out date must be after check in date!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(format.format(localDateOut));\n\t\t\t\tbreak;\n\t\t\t} catch (DateTimeParseException e) {\n\t\t\t\tSystem.out.println(\"Error input. dd-MM-yyyy = 01-02-2018\");\n\t\t\t}\n\t\t}\n\n\t\tresvTime = LocalTime.now();\n\n\t\tresv = addResv(roomNo, rm.getRoomTypeFromNum(roomNo), guest.getGuestID(), adultNo, kidNo, localDateIn, localDateOut, rStatus[0],\n\t\t\t\tresvTime);\n\t\trm.assignRoom(roomNo,2, guest.getFirstName()+ \" \" +guest.getLastName());\n\t\tSystem.out.println(\"Reservation confirmed! Receipt of reservation:\");\n\t\treadReservation(resv);\n\t\treturn resv;\n\t}", "public static boolean CheckRoomIsAvailable(Room room, long Start, long end) {\n\t\tboolean[] DIO = room.getDateIsOccupied();\n\t\tfor (int i = (int) Start; i < end; i++)\n\t\t\tif (DIO[i] == true) \n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "@Override\n\tpublic void onGetMatchedRoomsDone(MatchedRoomsEvent arg0) {\n\t\t\n\t}", "@Override\n public void onNext(final RoomsResponse roomsResponse) {\n }", "public String morningMeeting(){\n return \"accountants have meetings beginning at 9:15 AM and run until 8:45 AM\";\n }", "HouseAndRoom getHouseAndRoom(String username, long houseId);", "public void bookRoom(int hotelId, String roomNumber, int people){\n\n\n\n }", "@Override\n public Intersection onReachIntersection(long agentId, long time, LocationOnRoad currentLoc) {\n if (agentId == 240902L && time == 1464800008L) {\n System.out.println(\"here\");\n }\n agentLastAppearTime.put(agentId, time);\n\n LinkedList<Intersection> route = agentRoutes.getOrDefault(agentId, new LinkedList<>());\n\n if (route.isEmpty()) {\n route = planRoute(agentId, currentLoc);\n agentRoutes.put(agentId, route);\n }\n\n Intersection nextLocation = route.poll();\n Road nextRoad = currentLoc.road.to.roadTo(nextLocation);\n LocationOnRoad locationOnRoad = LocationOnRoad.createFromRoadStart(nextRoad);\n agentLastLocation.put(agentId, locationOnRoad);\n return nextLocation;\n }", "PastReservation createPastReservation();", "private AppointmentCashRequest appointmentCashRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppointmentCashRequest appointmentCashRequest = new AppointmentCashRequest();\n appointmentCashRequest.set_id(appoinmentid);\n appointmentCashRequest.setAmount(txt_serviceamout.getText().toString());\n Log.w(TAG,\"appointmentCashRequest\"+ \"--->\" + new Gson().toJson(appointmentCashRequest));\n return appointmentCashRequest;\n }", "public void setAvailability(String date) {\n\t\tavailableAt = date;\n\t}", "private void askForTime() {\n\t\tconnectToServer();\n\t\tout.println(\"What Time is It ?\");\n\t\tout.flush();\n\t\ttry {\n\t\t\tString time = in.readLine();\n\t\t\tSystem.out.println(\"CLIENT: The time is \" + time);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot receive time from server\");\n\t\t}\n\t\tdisconnectFromServer();\n\t}", "private UpdateRoomRequest toUpdateRoomRequest(OffsetDateTime validFrom, OffsetDateTime validUntil) {\n UpdateRoomRequest updateRoomRequest = new UpdateRoomRequest();\n\n if (validFrom != null) {\n updateRoomRequest.setValidFrom(validFrom);\n }\n\n if (validUntil != null) {\n updateRoomRequest.setValidUntil(validUntil);\n }\n\n return updateRoomRequest;\n }", "public void createRooms()//Method was given\n { \n \n // create the rooms, format is name = new Room(\"description of the situation\"); ex. desc = 'in a small house' would print 'you are in a small house.'\n outside = new Room(\"outside\", \"outside of a small building with a door straight ahead. There is a welcome mat, a mailbox, and a man standing in front of the door.\", false);\n kitchen = new Room(\"kitchen\", \"in what appears to be a kitchen. There is a sink and some counters with an easter egg on top of the counter. There is a locked door straight ahead, and a man standing next to a potted plant. There is also a delicious looking chocolate bar sitting on the counter... how tempting\", true);\n poolRoom = new Room(\"pool room\", \"in a new room that appears much larger than the first room.You see a table with a flashlight, towel, and scissors on it. There is also a large swimming pool with what looks like a snorkel deep in the bottom of the pool. Straight ahead of you stands the same man as before.\", true);\n library = new Room(\"library\", \"facing east in a new, much smaller room than before. There are endless rows of bookshelves filling the room. All of the books have a black cover excpet for two: one red book and one blue book. The man stands in front of you, next to the first row of bookshelves\", true);\n exitRoom = new Room(\"exit\", \"outside of the building again. You have successfully escaped, congratulations! Celebrate with a non-poisonous chocolate bar\",true);\n \n // initialise room exits, goes (north, east, south, west)\n outside.setExits(kitchen, null, null, null);\n kitchen.setExits(poolRoom, null, outside, null);\n poolRoom.setExits(null, library, kitchen, null);\n library.setExits(null, null, exitRoom, poolRoom);\n exitRoom.setExits(null, null, null, null); \n \n currentRoom = outside; // start game outside\n }", "@Override\r\n\tpublic int user_request(Floor current_floor, Elevator elevator) \r\n\t{\n\t\tif(current_floor.floor_door.state==0 && elevator.elevator_door.state==0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public GenericResponse<Booking> reserveRoom(Booking booking) {\n GenericResponse genericResponse = HotelBookingValidation.validateBookingInfo(logger, hotel, booking);\n if (genericResponse != null) {\n return genericResponse;\n }\n\n logger.info(booking.toString());\n\n if (hotel.getBookings().putIfAbsent(booking.getBookingRoom(), booking.getUser()) == null) {\n return GenericResponseUtils.generateFromSuccessfulData(booking);\n }\n\n logger.info(\"Oops. Please try again.\");\n return GenericResponseUtils.generateFromErrorMessage(\"Oops. Please try again.\");\n }", "public static Room newRoom(int random){\n String nameRoom = \"\";\n int monsterAmount = 0;\n\t\tMonster monster;\n MonsterFactory monsterFac = new MonsterFactory();\n\t\tmonster= monsterFac.buildMonster((int)(Math.random() * 3) + 1);\n boolean createHealingPot = false;\n boolean createPitRoom = false;\n boolean createPillar = false;\n boolean createEntrance = false;\n boolean createExit = false;\n boolean createVisionPot = false;\n\n switch (random){\n case 1:\n \tnameRoom = \"The Entrance room\";\n \tmonsterAmount = 0;\n createEntrance = true;\n break;\n\n case 2:\n \tnameRoom = \"The Exit room\";\n \tmonsterAmount = 0;\n createExit = true;\n break;\n\n case 3:\n \tnameRoom = \"The room\";\n \tmonsterAmount = 1; //THIS ROOM WILL HAVE 1 MONSTER\n break;\n \n case 4:\n \tnameRoom = \"The Healing Potion room\";\n \tmonsterAmount=(int)(Math.random() * 1) + 0;\n createHealingPot = true;\n break;\n \n case 5:\n \tnameRoom = \"The Pit room\";\n \tmonsterAmount = 0;\n createPitRoom = true;\n break;\n\n case 6:\n \tnameRoom = \"The Pillar room\";\n \tmonsterAmount=(int)(Math.random() * 1) + 0;\n \tcreatePillar = true;\n break;\n \n case 7:\n \tnameRoom = \"The Vision Potion room\";\n \tmonsterAmount=0;\n createVisionPot=true;\n break;\n }\n \n if(monsterAmount <= 0 ) \n return new Room(nameRoom,createHealingPot, createPitRoom, createEntrance, createExit, createPillar, monsterAmount,createVisionPot);\n else\n return new Room(nameRoom,createHealingPot, createPitRoom, createEntrance, createExit, createPillar, monster, monsterAmount,createVisionPot);\n\n }", "static private void npcPath() {\n\n if (Time.secondsPassed % 45 == 44) {\n Random picker = new Random();\n while (true) {\n if (josephSchnitzel.getCurrentRoom().equals(mountain)) {\n String[] newRoomString = {\"south\"};\n int index = picker.nextInt(newRoomString.length);\n Room next = josephSchnitzel.getCurrentRoom().getExit(newRoomString[index]);\n josephSchnitzel.setCurrentRoom(next);\n break;\n }\n\n if (josephSchnitzel.getCurrentRoom().equals(beach)) {\n String[] newRoomString = {\"north\"};\n int indexOfNewRoomString = picker.nextInt(newRoomString.length);\n Room nextRoom = josephSchnitzel.getCurrentRoom().getExit(newRoomString[indexOfNewRoomString]);\n josephSchnitzel.setCurrentRoom(nextRoom);\n break;\n }\n\n if (josephSchnitzel.getCurrentRoom().equals(jungle)) {\n String[] newRoomString = {\"north\", \"south\"};\n int indexOfNewRoomString = picker.nextInt(newRoomString.length);\n Room nextRoom = josephSchnitzel.getCurrentRoom().getExit(newRoomString[indexOfNewRoomString]);\n josephSchnitzel.setCurrentRoom(nextRoom);\n break;\n }\n }\n }\n }", "public void CheckAvail(LocalDate indate, LocalDate outdate)\r\n {\n if (Days.daysBetween(lastupdate, outdate).getDays() > 30)\r\n {\r\n System.out.println(\"more than 30\");\r\n return;\r\n }//Check if checkin date is before today\r\n if (Days.daysBetween(lastupdate, indate).getDays() < 0)\r\n {\r\n System.out.println(\"Less than 0\");\r\n return;\r\n }\r\n int first = Days.daysBetween(lastupdate, indate).getDays();\r\n int last = Days.daysBetween(lastupdate, outdate).getDays();\r\n for (int i = 0; i < roomtypes.size(); i++)\r\n {\r\n boolean ispossible = true;\r\n for (int j = first; j < last; j++)\r\n {\r\n if (roomtypes.get(i).reserved[j] >= roomtypes.get(i).roomcount)\r\n {\r\n ispossible = false;\r\n }\r\n } \r\n \r\n if (ispossible)\r\n System.out.println(roomtypes.get(i).roomname);\r\n }\r\n }", "boolean hasFindGameRoomsRequest();", "public void updateRoom(Room room);", "public ArrayList<CalendarMeeting> getMeetingsForRoom(Date dtFrom, Date dtTo, String sNmRoom)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getMeetingsForRoom&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo)+\"&room=\"+URLEncode(sNmRoom));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oMeetings;\r\n } else {\r\n return null;\r\n }\r\n }", "@RequestMapping(value = \"/Reservation/{reservation_reservationId}/room/{room_roomId}\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Room loadReservationRoom(@PathVariable Integer reservation_reservationId, @PathVariable Integer related_room_roomId) {\n\t\tRoom room = roomDAO.findRoomByPrimaryKey(related_room_roomId, -1, -1);\n\n\t\treturn room;\n\t}", "public Request(int floorIn) throws InvalidParamException {\n if (floorIn < 1 || floorIn > Building.getInstance().getNumFloors()) {\n throw new InvalidParamException(\"Invalid floorIn in Request c'tor\");\n }\n floor = floorIn;\n direction = null;\n }", "public Room getRoom(String name) {\n\n if (room1.getGuest() != null && room1.getGuest().getName().equals(name)) { // If room 1 has a guest and that guest has the name of the guest being requested\n\n return room1;\n\n } else if(room2.getGuest() != null && room2.getGuest().getName().equals(name)) { // If room 2 has a guest and that guest has the name of the guest being requested\n\n return room2;\n\n }\n\n else return null; // If no guest with such name occupies room\n }", "private void getSchedual() {\n final Thread thread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n try {\n //Your code goes here\n String userid = UserID;\n JSONArray ja = API.API(userid, \"\", \"\", \"\", Constants.testSchedual_URL);\n Log.e(\"ngocle\", ja.toString());\n\n for (int i=0; i < ja.length(); i++) {\n item_testSchedual item1 = new item_testSchedual();\n JSONObject jo = ja.getJSONObject(i);\n int Ca = Integer.parseInt(jo.getString(\"Ca\"));\n\n item1.setID(jo.getString(\"MaLH\"));\n item1.setName(jo.getString(\"TenLop\"));\n String time = jo.getString(\"Ngay\")+\"/\"+jo.getString(\"Thang\")+\"/\"+jo.getString(\"Nam\");\n item1.setDay(time);\n String Phong = \"P.\" + jo.getString(\"Phong\");\n item1.setRoom(Phong);\n String Gio = null;\n switch (Ca){\n case 1: Gio = \" 7h30\";\n break;\n case 2: Gio = \" 9h30\";\n break;\n case 3: Gio = \" 13h30\";\n break;\n case 4: Gio = \" 15h30\";\n break;\n }\n String ca = \"Ca: \" + jo.getString(\"Ca\") + Gio;\n item1.setTime(ca);\n item.add(item1);\n\n }\n adapter.notifyDataSetChanged();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n }" ]
[ "0.64805055", "0.58754694", "0.5737294", "0.56970143", "0.5644913", "0.5631502", "0.5622483", "0.55750966", "0.55750966", "0.55429184", "0.5513064", "0.5460051", "0.54370654", "0.5432366", "0.5432121", "0.5416662", "0.5409032", "0.540533", "0.53902954", "0.5387523", "0.5379037", "0.5377534", "0.5359204", "0.5348318", "0.5342816", "0.53165203", "0.53081906", "0.52994865", "0.5296505", "0.52805716", "0.52742594", "0.52662987", "0.5242466", "0.5207241", "0.518557", "0.5167643", "0.51474375", "0.51442873", "0.5123477", "0.51223934", "0.51218444", "0.51204515", "0.51068586", "0.5105239", "0.5104665", "0.5101079", "0.50974935", "0.509467", "0.5085619", "0.5082011", "0.5081029", "0.5075896", "0.507398", "0.5072997", "0.50607103", "0.5058648", "0.5045845", "0.5026771", "0.5026637", "0.50128555", "0.5004468", "0.49997136", "0.4998937", "0.4985712", "0.49851918", "0.49835134", "0.49826357", "0.49780288", "0.49727058", "0.4971612", "0.49688536", "0.49504352", "0.49488643", "0.4948766", "0.49455923", "0.4932165", "0.49151874", "0.49122465", "0.4903049", "0.48977533", "0.48972836", "0.48958644", "0.4885588", "0.4885428", "0.48845792", "0.48751467", "0.48670465", "0.48666173", "0.48631483", "0.484539", "0.48447734", "0.4844773", "0.4842697", "0.4836775", "0.4835586", "0.48221874", "0.4821178", "0.48208147", "0.48194462", "0.47944787", "0.47937027" ]
0.0
-1
Public Methods Starts the algorithm for solving the 1Center and 1Highway problem for the version of locating a turnpike with fixed length. This algorithm is solved in O(n^2) time.
public void runAlgorithm(PointList customers, int highwayLength, int velocity) { if (!customers.isEmpty()){ this._highwayLength = highwayLength; this._velocity = velocity; _maxDist = customers.maxDist(); // for drawing purposes only facilityPoints = new ArrayList<Point>(); turnpikePoints = new ArrayList<Point>(); partitionRadius = new ArrayList<Double>(); set_withTurnpike = new ArrayList<PointList>(); set_withoutTurnpike = new ArrayList<PointList>(); extremePoints1 = new ArrayList<Point[]>(); extremePoints2 = new ArrayList<Point[]>(); list_centersWithoutTurnpike = new ArrayList<PointList>(); list_centersWithTurnpike = new ArrayList<PointList>(); getPartition(customers); maxDist1 = new ArrayList<Point>(); maxDist2 = new ArrayList<Point>(); minDist1 = new ArrayList<Point>(); minDist2 = new ArrayList<Point>(); // compute extreme points for (PointList p : set_withTurnpike){ extremePoints1.add(p.getExtremePoints()); } for (PointList p : set_withoutTurnpike){ extremePoints2.add(p.getExtremePoints()); } // solve basic problem for all partitions {W,H} for (int i = 0; i < set_withTurnpike.size(); i++){ _eps1 = Math.max(0, set_withTurnpike.get(i).delta() + highwayLength/velocity - set_withoutTurnpike.get(i).delta()); _eps2 = Math.max(0, set_withoutTurnpike.get(i).delta() - set_withTurnpike.get(i).delta() - highwayLength/velocity); solveBP(set_withTurnpike.get(i), set_withoutTurnpike.get(i)); facilityPoints.add(_currentFacility); turnpikePoints.add(_currentTurnpikeStart); partitionRadius.add(_currentRadius); // for drawing purposes // fixed length list_centersWithoutTurnpike.add(center(set_withTurnpike.get(i), set_withTurnpike.get(i).delta() + _eps2 + _x)); list_centersWithTurnpike.add(center(set_withoutTurnpike.get(i), set_withoutTurnpike.get(i).delta() + _eps1 + _x)); if (list_centersWithoutTurnpike.get(i).objectContains (list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[0]) || list_centersWithTurnpike.get(i).objectContains (list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[1])){ minDist1.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[0]); minDist2.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[1]); } else { minDist1.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[1]); minDist2.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[0]); } maxDist1.add(list_centersWithoutTurnpike.get(i).objectMaxDistPoints(list_centersWithTurnpike.get(i))[0]); maxDist2.add(list_centersWithoutTurnpike.get(i).objectMaxDistPoints(list_centersWithTurnpike.get(i))[1]); } if(customers.getSize() > 1){ // find optimal solution solutionIndex = getMinRadiusIndex(); solution_facility = facilityPoints.get(solutionIndex); solution_turnpikeStart = turnpikePoints.get(solutionIndex); // solution_radius = partitionRadius.get(solutionIndex); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while (indexGrup < numGrups) {\n int trajecte[] = {-1,-1,-1};\n for (int i=0; i < 3 && indexGrup<numGrups; ++i) {\n Grupo grup = grups.get( indexGrup );\n if (places - grup.getNPersonas() >= 0) {\n places -= grup.getNPersonas();\n trajecte[i] = indexGrup;\n indexGrup++;\n\n }\n else i = 3;\n }\n Helicopter helicopter = helicopters.get( indexHelic );\n helicopter.addTrajecte( trajecte, indexHelic/helisPerCentre );\n places = 15;\n indexHelic++;\n if (indexHelic == numCentres*helisPerCentre) indexHelic = 0;\n }\n }", "public int[] solver(int startPlayerId, int curplayer, int[][] oneP, int[][][] memory, int count) {\n\r\n int[][] one = oneP.clone(); // OnePlay Input\r\n int[] k; // onePlay points\r\n int j = curplayer;\r\n int[][][] m = memory.clone();\r\n int[] minCard = new int[3];\r\n int[] t;\r\n ArrayList<int[]> store = new ArrayList<>();\r\n minCard[2] = 100000;\r\n t = new int[3];\r\n for (int i = 0; i < 4; i++) { // 4 types of cards\r\n for (int l = 2; l < cardPerPlayer + 2; l++) {\r\n if (m[j][i][l] == 1 || m[j][i][l] == 2) {\r\n one[j][0] = i;\r\n one[j][1] = l;\r\n remove(new int[] { i, l }, m);\r\n if ((j + 1) % players != startPlayerId) {\r\n t = solver(startPlayerId, (j + 1) % players, one, m, count);\r\n one[(j + 1) % players][0] = t[0];\r\n one[(j + 1) % players][1] = t[1];\r\n }\r\n // } else if ((j + 2) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 2) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // } else if ((j + 3) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 3) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // }\r\n\r\n k = onePlay(one, startPlayerId);\r\n int curpoint = 0;\r\n if (count != cardPerPlayer - 1) { // cardPerPlayer - 1 = 12\r\n t = solver(k[0], k[0], new int[4][2], m, count++);\r\n curpoint = t[2];\r\n }\r\n\r\n if (k[0] == myID) {\r\n curpoint += k[1] + k[2] * 12;\r\n }\r\n store.add(new int[] { i, l, curpoint });\r\n if (curpoint < minCard[2]) {\r\n minCard[2] = curpoint;\r\n minCard[0] = i;\r\n minCard[1] = l;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return minCard;\r\n }", "static List<int[][]> solveKT() {\n\t List<int[][]> result = new ArrayList<>();\n\t int sol[][] = new int[8][8];\n\t /* Initialization of solution matrix */\n for (int x = 0; x < N; x++)\n for (int y = 0; y < N; y++)\n sol[x][y] = -1;\n\t int xMove[] = {2, 1, -1, -2, -2, -1, 1, 2};\n int yMove[] = {1, 2, 2, 1, -1, -2, -2, -1};\n\n // Since the Knight is initially at the first block\n sol[0][0] = 0;\n\t \n solveKTUtil(0, 0, 1, sol, xMove, yMove, result);\n return result;\n \n\n \n\n \n \n\n \n }", "public void run() {\n\t\t/* HOOKE POTENTIAL PARAMETERS */\n\t\t/* ************************** */\n\t\tPotentialLookup hookeLook;\n\t\tdouble tolerance = 1e-4;\n\t\t\n\t\tHookePotential hooke;\n\t\tdouble cBrDist = 1.91;\n\t\t// nu = 267 cm-1 from handbook of chemistry and physics\n\t\t// mu = 12.01 * 79.9 / (12.01 + 79.9) / 1000 / 6.022e23 = 1.73e-26\n\t\t// k = (2*PI*3e10*267)^2 * 1.73e-26 = 43.82\n\t\tdouble cBrSpringConstant;\n\t\tcBrSpringConstant = 43.82;\t// upper Limit\n//\t\tcBrSpringConstant /= 4;\t\t// lower limit\n\t\t\n\t\t/* ********************************** */\n\t\t/* LENNARD JONES POTENTIAL PARAMETERS */\n\t\t/* ********************************** */\n\t\tPotentialLookup ljl;\n\t\tLennardJonesPotential ljp;\n\t\tdouble lookupPrecision = 0.001;\n\t\tint Z1 = 35;\n\t\tint Z2 = 35;\n\t\tdouble Z1Z2_distance = 3.8;\n\t\tdouble zeroPotentialDistance;\n\t\tdouble wellDepth = 0.034891;\n\t\t\n\t\tzeroPotentialDistance = Z1Z2_distance / Math.pow(2., (1./6.));\n\t\tljp = new LennardJonesPotential(Z1, Z2, zeroPotentialDistance, wellDepth);\n\t\thooke = new HookePotential(6, 35, cBrDist, cBrSpringConstant);\n\n\t\tJAtom center = new JAtom(6, new JVector(0, 0, 0));\n\t\tJVector ligandPos = new JVector(1, 1, 1).unit();\n\t\tligandPos.multiply(1.91);\n\t\tJAtom ligand = new JAtom(35, ligandPos);\n\t\tIdealTetrahedron test = new IdealTetrahedron(center, ligand);\n\t\t\n\t\tVector<JAtom> tempAtoms = new Vector<JAtom>();\n\t\tfor(JAtom atom : test.getAtoms())\n\t\t\ttempAtoms.add(atom);\n\t\t\n\t\tJAtom[] atoms = new JAtom[tempAtoms.size()]; \n\t\tatoms = tempAtoms.toArray(atoms);\n//\t\twhile(true) {\n\t\t\n\t\tJAtom br = atoms[1];\n\t\tJVector brBrforce = new JVector();\n\t\tJVector betweenBr;\n\t\tdouble distBetweenBr;\n\t\tfor(int i = 2; i < atoms.length; i++) {\n\t\t\tbetweenBr = JVector.subtract(br.getPosition(), atoms[i].getPosition());\n\t\t\tdistBetweenBr = betweenBr.length();\n\t\t\tbrBrforce.add_inPlace(JVector.multiply(betweenBr.unit(), ljp.calcF(distBetweenBr)));\n\t\t\t\n\t\t}\n\t\tdouble brBrDistBefore = JVector.distance(atoms[1].getPosition(), atoms[2].getPosition());\n\t\tdouble brBrForceBefore = ljp.calcF(brBrDistBefore);\n\t\tdouble cBrDistBefore = JVector.distance(atoms[0].getPosition(), atoms[1].getPosition());\n\t\tdouble newRestingPosition = cBrDist-(brBrforce.length() / cBrSpringConstant);\n\t\thooke = new HookePotential(6, 35, newRestingPosition, cBrSpringConstant);\n\t\tdouble cBrForceBefore = hooke.calcF(cBrDistBefore);\n\t\t\n\t\t\n\t\tJAtom[][] allSurroundings = buildSurroundings(atoms);\n\t\tfor(int i = 0; i < allSurroundings.length; i++) {\n\t\t\tSystem.out.println(\"Atom type/idx: \" + atoms[i].getZ() + \"/\" + atoms[i].atomID);\n\t\t\tfor(int j = 0; j < allSurroundings[i].length; j++) {\n\t\t\t\tSystem.out.println(\"\\tSurrounding atom type/idx: \" + allSurroundings[i][j].getZ() + \n\t\t\t\t\t\t\"/\" + allSurroundings[i][j].atomID);\n\t\t\t}\n\t\t}\n\t\tJVector[] force = new JVector[atoms.length];\n\t\tfor(int i = 0; i < force.length; i++)\n\t\t\tforce[i] = new JVector();\n\t\tpotentials = new Vector<Potential>();\n\t\tpotentials.add(ljp);\n\t\tpotentials.add(hooke);\n\t\tMyPrintStream movie = new MyPrintStream(new File(\"test.xyz\"));\n\t\tmovie.println(atoms.length);\n\t\tmovie.println();\n\t\t\n\t\tint idx = 0;\n\t\twhile(idx < 100) {\n\t\t\tfor(int i = 0; i < force.length; i++) {\n\t\t\t\tforce[i].setI(0);\n\t\t\t\tforce[i].setJ(0);\n\t\t\t\tforce[i].setK(0);\n\t\t\t}\n\t\t\tcalcForces(atoms, allSurroundings, force);\n\t\t\tmoveAtoms(atoms, force);\n\t\t\tprintPositions(movie, atoms);\n//\t\t\tmovie.println();\n\t\t\tidx++;\n\t\t}\n\t\tmovie.flush();\n\t\tmovie.close();\n//\t\t}\n//\t\tSystem.out.println(\"Br-Br intramolecular force: \" + ljp.calcF(3.118993));\n//\t\tSystem.out.println(\"C-Br intramolecular force: \" + ljp.calcF(3.118993));\n\n\t\tdouble step = .05;\n\t\tdouble startVal = 1;\n\t\tdouble finishVal = 3;\n\t\tint numSteps = (int) Math.rint((finishVal - startVal) / step);\n\t\tJAtom c = atoms[0];\n\t\tbr = atoms[1];\n\t\tJVector cBrVec = JVector.subtract(br.getPosition(), c.getPosition()),\n\t\t\t\tintraMolecVec;\n\t\tdouble potVal, forceVal;\n\t\tJAtom a1, a2;\n\t\tSystem.out.println(\"Distance\\tPotentialEnergy\\tForce:\");\n\t\tfor(int i = 0; i < numSteps; i++) {\n\t\t\tcBrVec = cBrVec.unit();\n\t\t\tcBrVec.multiply(startVal + i*step);\n\t\t\tbr.setNewPos(cBrVec);\n\t\t\tforceVal = potVal = 0;\n\t\t\tfor(int a = 0; a < atoms.length; a++) {\n\t\t\t\ta1 = atoms[a];\n\t\t\t\tif(a1 == br)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tintraMolecVec = JVector.subtract(br.getPosition(), a1.getPosition());\n\t\t\t\tfor(Potential pot : potentials)\n\t\t\t\t\tif(pot.check(br.getZ(), a1.getZ())) {\n\t\t\t\t\t\tforceVal += pot.calcF(intraMolecVec.length());\n\t\t\t\t\t\tpotVal += pot.calcU(intraMolecVec.length());\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println((startVal + i*step) + \"\\t\" + potVal + \"\\t\" + forceVal);\n\t\t}\n\t\tdouble brBrDistAfter = JVector.distance(atoms[1].getPosition(), atoms[2].getPosition());\n\t\tdouble cBrDistAfter = JVector.distance(atoms[0].getPosition(), atoms[1].getPosition());\n\t\tdouble brBrForceAfter = ljp.calcF(brBrDistAfter);\n\t\tdouble cBrForceAfter = hooke.calcF(cBrDistAfter);\n\t\tSystem.out.println(\"Br-Br intermolecular distance/force before relaxing: \" + \n\t\t\t\tbrBrDistBefore + \"/\" + brBrForceBefore);\n\t\tSystem.out.println(\"Br-Br intermolecular distance/force after relaxing: \" + \n\t\t\t\tbrBrDistAfter + \"/\" + brBrForceAfter);\n\t\tSystem.out.println(\"C-Br intermolecular distance/force before relaxing: \" + \n\t\t\t\tcBrDistBefore + \"/\" + cBrForceBefore);\n\t\tSystem.out.println(\"C-Br intermolecular distance/force after relaxing: \" + \n\t\t\t\tcBrDistAfter + \"/\" + cBrForceAfter);\n\t\t\n\t\tSystem.out.println(\"New C-Br bond distance: \" + newRestingPosition);\n\t\tSystem.out.println(\"Total Br-Br force: \" + brBrforce.length());\n\t\t\n\t}", "public void solver(){\n\n tohSolver(noDisks,1,3,2);\n\n }", "public synchronized void startSolving()\n/* */ {\n/* 373 */ setKeepSolving(true);\n/* */ \n/* */ \n/* 376 */ if ((!this.solving) && (this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 379 */ setSolving(true);\n/* 380 */ setKeepSolving(true);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 387 */ fireTabuSearchStarted();\n/* */ \n/* */ \n/* */ \n/* 391 */ TabuSearch This = this;\n/* */ \n/* 393 */ Thread t = new Thread(new Runnable() {\n/* */ private final TabuSearch val$This;\n/* */ \n/* */ public void run() {\n/* 397 */ while ((MultiThreadedTabuSearch.this.keepSolving) && (MultiThreadedTabuSearch.this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 400 */ synchronized (this.val$This)\n/* */ {\n/* 402 */ MultiThreadedTabuSearch.this.iterationsToGo -= 1;\n/* */ try\n/* */ {\n/* 405 */ MultiThreadedTabuSearch.this.performOneIteration();\n/* */ }\n/* */ catch (NoMovesGeneratedException e)\n/* */ {\n/* 409 */ if (SingleThreadedTabuSearch.err != null)\n/* 410 */ SingleThreadedTabuSearch.err.println(e);\n/* 411 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* */ catch (NoCurrentSolutionException e)\n/* */ {\n/* 415 */ if (SingleThreadedTabuSearch.err != null)\n/* 416 */ SingleThreadedTabuSearch.err.println(e);\n/* 417 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* 419 */ MultiThreadedTabuSearch.this.incrementIterationsCompleted();\n/* 420 */ this.val$This.notifyAll();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 425 */ synchronized (this.val$This)\n/* */ {\n/* */ \n/* */ \n/* 429 */ MultiThreadedTabuSearch.this.setSolving(false);\n/* 430 */ MultiThreadedTabuSearch.this.setKeepSolving(false);\n/* */ \n/* */ \n/* 433 */ if (MultiThreadedTabuSearch.this.helpers != null)\n/* 434 */ for (int i = 0; i < MultiThreadedTabuSearch.this.helpers.length; i++)\n/* 435 */ MultiThreadedTabuSearch.this.helpers[i].dispose();\n/* 436 */ MultiThreadedTabuSearch.this.helpers = null;\n/* */ \n/* */ \n/* 439 */ MultiThreadedTabuSearch.this.fireTabuSearchStopped();\n/* 440 */ this.val$This.notifyAll(); } } }, \"MultiThreadedTabuSearch-Master\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 448 */ t.setPriority(this.threadPriority);\n/* 449 */ t.start();\n/* */ }\n/* 451 */ notifyAll();\n/* */ }", "static void solveKTUtil(int x, int y, int movei,\n int sol[][], int xMove[],\n int yMove[], List<int[][]> result) {\n int k, next_x, next_y;\n if (movei == N * N){\n \tresult.add(copy(sol));\n return ;\n }\n\n /* Try all next moves from the current coordinate\n x, y */\n for (k = 0; k < 8; k++) {\n next_x = x + xMove[k];\n next_y = y + yMove[k];\n if (isSafe(next_x, next_y, sol)) {\n sol[next_x][next_y] = movei;\n solveKTUtil(next_x, next_y, movei + 1,\n sol, xMove, yMove, result);\n \n sol[next_x][next_y] = -1;// backtracking\n }\n }\n\n \n }", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\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\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "public void initialSearch() {\n Kinematics k = getTrustedRobotKinematics();\n //logger.info(\"Kinematics position is \" + k.getPosition());\n\n // Set the default planner.\n setPlanner(PlannerType.TRAPEZOIDAL);\n\n // For gateway no zones were defined yet.\n m_robot.setCheckZones(false);\n\n // Do a preliminary trajectory in a lawnmower pattern.\n Point startPoint = k.getPosition();\n runTrajectory(startPoint, m_lawnmowerTrajectory);\n m_initialSearchDone = true;\n }", "public void solve() {\n\t\tArrayList<Piece> pieceListBySize = new ArrayList<Piece>(pieceList);\n\t\tCollections.sort(pieceListBySize);\t// This is done since the order\n\t\t\t\t\t\t\t\t\t\t\t// of piece placements does not matter.\n\t\t\t\t\t\t\t\t\t\t\t// Placing larger pieces down first lets\n\t\t\t\t\t\t\t\t\t\t\t// pruning occur sooner.\n\t\t\n\t\t/**\n\t\t * Calculates number of resets needed for a game board.\n\t\t * A \"reset\" refers to a tile that goes from the solved state to\n\t\t * an unsolved state and back to the solved state.\n\t\t * \n\t\t * This is the calculation used for pruning.\n\t\t */\n\t\t\n\t\tArrayList<Integer> areaLeft = new ArrayList<Integer>();\n\t\tareaLeft.add(0);\n\t\tint totalArea = 0;\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\ttotalArea += pieceListBySize.get(i).numberOfFlips;\n\t\t\tareaLeft.add(0, totalArea);\n\t\t}\n\t\tint totalResets = (totalArea - gameBoard.flipsNeeded) / (gameBoard.goal + 1);\n\t\tSystem.out.println(\"Total Resets: \" + totalResets);\n\t\t\n\t\t/* \n\t\tint highRow = 0;\n\t\tint highCol = 0;\n\t\tint[][] maxDim = new int[2][pieceListBySize.size()];\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\tif (highRow < pieceListBySize.get(i).rows)\n\t\t\t\thighRow = pieceListBySize.get(i).rows;\n\t\t\t\n\t\t\tif (highCol < pieceListBySize.get(i).cols)\n\t\t\t\thighCol = pieceListBySize.get(i).cols;\n\t\t\t\n\t\t\tmaxDim[0][i] = highRow;\n\t\t\tmaxDim[1][i] = highCol;\n\t\t}\n\t\t*/\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tNode<GameBoard> currentNode = new Node<GameBoard>(gameBoard);\n\t\tStack<Node<GameBoard>> stack = new Stack<Node<GameBoard>>();\n\t\tstack.push(currentNode);\n\t\t\n\t\twhile (!stack.isEmpty()) {\n\t\t\tnodeCount++;\n\t\t\t\n\t\t\tNode<GameBoard> node = stack.pop();\n\t\t\tGameBoard current = node.getElement();\n\t\t\tint depth = node.getDepth();\n\t\t\t\n\t\t\t// Checks to see if we reach a solved state.\n\t\t\t// If so, re-order the pieces then print out the solution.\n\t\t\tif (depth == pieceListBySize.size() && current.isSolved()) {\n\t\t\t\tArrayList<Point> moves = new ArrayList<Point>();\n\t\t\t\t\n\t\t\t\twhile (node.parent != null) {\n\t\t\t\t\tint index = node.level - 1;\n\t\t\t\t\tint sequence = pieceList.indexOf(pieceListBySize.get(index));\n\t\t\t\t\tPoint p = new Point(current.moveRow, current.moveCol, sequence);\n\t\t\t\t\tmoves.add(p);\n\t\t\t\t\t\n\t\t\t\t\tnode = node.parent;\n\t\t\t\t\tcurrent = node.getElement();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tCollections.sort(moves);\n\t\t\t\tfor (Point p : moves) {\n\t\t\t\t\tSystem.out.println(p);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Nodes opened: \" + nodeCount);\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"Elapsed Time: \" + ((endTime - startTime) / 1000) + \" secs.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tPiece currentPiece = pieceListBySize.get(depth);\n\t\t\tint pieceRows = currentPiece.rows;\n\t\t\tint pieceCols = currentPiece.cols;\n\t\t\t\n\t\t\tPriorityQueue<Node<GameBoard>> pQueue = new PriorityQueue<Node<GameBoard>>();\n\t\t\t\n\t\t\t// Place piece in every possible position in the board\n\t\t\tfor (int i = 0; i <= current.rows - pieceRows; i++) {\n\t\t\t\tfor (int j = 0; j <= current.cols - pieceCols; j++) {\n\t\t\t\t\tGameBoard g = current.place(currentPiece, i, j);\n\t\t\t\t\t\n\t\t\t\t\tif (totalResets - g.resets < 0)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\t// Put in the temporary priority queue\n\t\t\t\t\tpQueue.add(new Node<GameBoard>(g, node));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Remove from priority queue 1 at a time and put into stack.\n\t\t\t// The reason this is done is so that boards with the highest reset\n\t\t\t// count can be chosen over ones with fewer resets.\n\t\t\twhile (!pQueue.isEmpty()) {\n\t\t\t\tNode<GameBoard> n = pQueue.remove();\n\t\t\t\tstack.push(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args)\n {\t\t\n\t\t\tFastTimer timer = new FastTimer();\n\t\t\n\t\t\n\t\t\tGameGrid loaded_grid = new GameGrid(7,7);\n\t\t\t\tboolean isSuccess = loaded_grid.LoadFromFile(\"test.puzzle\");\n\t\t\tif(isSuccess == true){\n\t\t\t\tSystem.out.print(\"Solution initiale\\n\");\n\t\t\t\tloaded_grid.PrintToCmd();\t\t\t\n\t\t\t}\n\t\t\tList<GameMove> found_moves = loaded_grid.GetAvailableMove(); \n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\\nInitial possible moves\\n\");\n\t\t\tfor(GameMove current_move :found_moves){\n\t\t\t\tcurrent_move.PrintOutCmd();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tList<GameMove> solution_move = new LinkedList();\n\t\t\tloaded_grid.ResetMonitoring();\n\t\t\t\n\t\t\ttimer.StartTime();\n\t\t\t\tboolean result = loaded_grid.FindSolution(solution_move);\n\t\t\ttimer.StopTime();\n\t\t\t\n\t\t\tSystem.out.println(\"\\n**************************\");\n\t\t\tSystem.out.println(\"File name : \" + loaded_grid.loaded_file_name+\"\\n\");\n\t\t\tif(result == false){\n\t\t\t\tSystem.out.println(\"Pas de solution\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Solution in \" +solution_move.size() +\" moves\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\tTime : \"+timer.LastDelta + \" millsec\");\n\t\t\tSystem.out.println(\"\tNode visited :\"+loaded_grid.node_visited_cpt);\n\t\t\tSystem.out.println(\"\tDept require :\"+loaded_grid.max_dept);\n\t\t\tSystem.out.println(\"\tDept limitation :\"+loaded_grid.dept_limit);\n\t\t\t\n\t\t\tif(solution_move.size() > 0){\n\t\t\t\tSystem.out.println(\"\\nMove from last to first\\n\");\n\t\t\t\tfor(GameMove current_move :solution_move){\n\t\t\t\t\tcurrent_move.PrintOutCmd();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n**************************\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Final grid\\n\");\n\t\t\tloaded_grid.PrintToCmd();\n }", "@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n a = iia(n);\n int from[] = new int[n - 1];\n int to[] = new int[n - 1];\n for (int i = 0; i < n - 1; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, n - 1);\n int[][] pars = parents3(g, 0);\n par = pars[0];\n int[] ord = pars[1];\n dep = pars[2];\n spar = logstepParents(par);\n subTree = new int[n];\n dfs(0, -1);\n pointer = 1;\n baseArray = new int[n + 1];\n chainNo = 0;\n chainInHead = new int[n];\n Arrays.fill(chainInHead, -1);\n posInBase = new int[n];\n chainInInd = new int[n];\n HLD(0, -1);\n makeTree();\n out.println(Arrays.toString(baseArray));\n out.println(Arrays.toString(a));\n for (int q = 0; q < m; q++) {\n int type = ii();\n if (type == 1) {\n int u = ii() - 1, v = ii() - 1;\n query(u, v);\n out.println(\"DONE\");\n } else {\n int u = ii(), v = ii();\n // update\n }\n }\n }", "public boolean solve(boolean verbose, Window window) throws InterruptedException {\n long time = System.currentTimeMillis();\n HashMap<TileColor, Piece> pieceMap = new HashMap<>();\n pieceMap.put(TileColor.RED, new RedPiece(new int[]{2, 1}, 0));\n pieceMap.put(TileColor.PURPLE, new PurplePiece(new int[]{0, 0}, 0));\n pieceMap.put(TileColor.BLUE, new BluePiece(new int[]{3, 5}, 0));\n pieceMap.put(TileColor.YELLOW, new YellowPiece(new int[]{2, 6}, 0));\n pieceMap.put(TileColor.ORANGE, new OrangePiece(new int[]{2, 3}, 0));\n pieceMap.put(TileColor.GREEN, new GreenPiece(new int[]{1, 2}, 0));\n pieceMap.put(TileColor.PINK, new PinkPiece(new int[]{3, 0}, 0));\n\n HashMap<TileColor, ArrayList<int[]>> moveMap = new HashMap<>();\n for (TileColor t: TileColor.values()) {\n if (t == TileColor.BLACK) { continue; }\n ArrayList<int[]> moves = new ArrayList<>();\n Piece p = pieceMap.get(t);\n for (int rot = 0; rot < 6; rot++) {\n p.updateRotation(rot);\n for (int row = 0; row < 4; row++) {\n for (int col = 0; col < 7; col++) {\n p.location = new int[]{row, col};\n p.generateTiles();\n boolean fits = true;\n for (Tile tile : p.tiles) {\n if (tile.loc[0] + row - p.location[0] > 3 || tile.loc[0] + row - p.location[0] < 0) {\n fits = false;\n }\n if (tile.loc[1] + col - p.location[1] > 6 || tile.loc[1] + col - p.location[1] < 0) {\n fits = false;\n }\n if ((tile.loc[0] + row - p.location[0]) % 2 == 1 && tile.loc[1] + col - p.location[1] == 6) {\n fits = false;\n }\n if (!fits) {\n break;\n }\n }\n if (fits) {\n // Add this move if it satisfies all constraints\n boolean isSatisfied = true;\n for (TileColor constraintType: TileColor.values()) {\n if (constraintType != TileColor.BLACK) {\n for (Constraint c : constraints.get(constraintType)) {\n if (!c.isSatisfiedBy(p)) {\n isSatisfied = false;\n break;\n }\n }\n }\n }\n if (isSatisfied) {\n // Does it block off a piece of the board corner? If not, it is a legal move\n moves.add(new int[]{row, col, rot});\n }\n }\n }\n }\n }\n moveMap.put(t, moves);\n }\n if (verbose) {\n System.out.println(\"Moves computed in \" + (System.currentTimeMillis() - time)+ \" ms.\");\n }\n\n // Now we have moveMap which contains possible moves for each piece that satisfy all of its constraints\n\n // The next step is to remove any duplicates. We can disregard any rotation 3 from the red or the purple\n ArrayList<int[]> redMoves = new ArrayList<>();\n for (int[] move: moveMap.get(TileColor.RED)) {\n if (move[2] != 3) {\n redMoves.add(move);\n }\n }\n moveMap.put(TileColor.RED, redMoves);\n\n ArrayList<int[]> purpleMoves = new ArrayList<>();\n for (int[] move: moveMap.get(TileColor.PURPLE)) {\n if (move[2] != 3) {\n purpleMoves.add(move);\n }\n }\n moveMap.put(TileColor.PURPLE, purpleMoves);\n\n // Now we only have states that are actually unique\n if (verbose) {\n System.out.println(\"Moves Per Color:\");\n }\n long total = 1;\n ArrayList<TileColor> colors = new ArrayList<>();\n for (TileColor t: TileColor.values()) {\n if (t != TileColor.BLACK) {\n colors.add(t);\n if (verbose) {\n System.out.println(\" \" + t + \": \" + moveMap.get(t).size());\n }\n total *= moveMap.get(t).size();\n }\n }\n if (verbose) {\n System.out.println();\n System.out.println(\"Total combinations: \" + total);\n }\n\n // We want to order our tile colors by who has the least options first\n class SortByCombinations implements Comparator<TileColor> {\n public int compare(TileColor a, TileColor b) {\n return moveMap.get(a).size() - moveMap.get(b).size();\n }\n }\n colors.sort(new SortByCombinations());\n\n // At this point, colors is ordered from least to most options\n // Now we can actually start solving\n\n iterations = 0;\n boolean success = DFS(0, colors, moveMap, pieceMap, verbose, window);\n if (!success && verbose) {\n System.out.println(\"Failed.\");\n }\n if (verbose) {\n System.out.println(\"Took \" + (System.currentTimeMillis() - time) + \" ms.\");\n }\n return success;\n\n }", "private static void solution() {\n for (int i = 0; i < n; i++) {\n Coord here = coords[i]; // start, end, dir, gen\n for (int j = 0; j < here.gen; j++) {\n // Rotate degree of 90.\n List<Pair> changed = rotate(here.coord, here.endPoint);\n boolean first = true;\n for(Pair p: changed){\n if(first) {\n here.endPoint = new Pair(p.x, p.y);\n first = false;\n }\n here.coord.add(new Pair(p.x, p.y));\n }\n }\n }\n // count the number of squares enclosing all angles with dragon curve\n for (int i = 0; i < n; i++) {\n for(Pair p: coords[i].coord)\n board[p.y][p.x] = true;\n }\n int cnt = 0;\n for (int i = 0; i < 100; i++)\n for (int j = 0; j < 100; j++)\n if(board[i][j] && board[i + 1][j] && board[i][j + 1] && board[i + 1][j + 1])\n cnt += 1;\n System.out.println(cnt);\n }", "public static HooverAIDataHolder processHooverAIDataHolder(HooverAIDataHolder hooverAIDataHolder) {\n DataPoint startingPoint = hooverAIDataHolder.getStartingPoint();\r\n // get grid bounds\r\n int maxX = hooverAIDataHolder.getMaxSize().getX();\r\n int maxY = hooverAIDataHolder.getMaxSize().getY();\r\n // prepare to parse driving insturctions\r\n String instructions = hooverAIDataHolder.getDrivingDirections();\r\n char[] discreteDirectionsArray = instructions.toCharArray();\r\n\r\n //intially just start with starting point\r\n DataPoint nextPoint = new DataPoint(startingPoint.getX(), startingPoint.getY());\r\n ArrayList<DataPoint> placesHoovered = new ArrayList();\r\n for (int i = 0; i < discreteDirectionsArray.length; i++) {\r\n\r\n int tempX = 0;\r\n int tempY = 0;\r\n\r\n char direction = discreteDirectionsArray[i];\r\n String directionString = Character.toString(direction);\r\n if (directionString.equalsIgnoreCase(\"N\")) // go north\r\n {\r\n\r\n tempY = nextPoint.getY();\r\n tempY = tempY + 1; // do move\r\n if (tempY > maxY) // we hit a wall, remove increment\r\n {\r\n tempY = tempY - 1;\r\n }\r\n\r\n nextPoint.setY(tempY);\r\n\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n\r\n placesHoovered.add(entry);\r\n\r\n } else if (directionString.equalsIgnoreCase(\"S\")) // go south\r\n {\r\n tempY = nextPoint.getY();\r\n tempY = tempY - 1; // do move\r\n if (tempY < 0) // we hit a wall add value back in\r\n {\r\n tempY = tempY + 1;\r\n }\r\n nextPoint.setY(tempY);\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n placesHoovered.add(entry);\r\n\r\n } else if (directionString.equalsIgnoreCase(\"W\")) // go west\r\n {\r\n tempX = nextPoint.getX();\r\n tempX = tempX - 1; // do move\r\n if (tempX < 0) // we hit a wall\r\n {\r\n tempX = tempX + 1;\r\n }\r\n nextPoint.setX(tempX);\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n placesHoovered.add(entry);\r\n\r\n } else if (directionString.equalsIgnoreCase(\"E\")) // go east\r\n {\r\n tempX = nextPoint.getX();\r\n tempX = tempX + 1; // do move\r\n if (tempX > maxX) // wall\r\n {\r\n tempX = tempX - 1;\r\n }\r\n nextPoint.setX(tempX);\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n placesHoovered.add(entry);\r\n\r\n }\r\n // read each char in string \r\n // logic is N = y + 1 \r\n // S = y - 1\r\n // E = x + 1\r\n // W = x - 1\r\n\r\n }\r\n\r\n hooverAIDataHolder.setRestingPoint(nextPoint);\r\n hooverAIDataHolder.setCleanedZones(placesHoovered);\r\n\r\n return hooverAIDataHolder;\r\n }", "public static void main(String[] args) \n {\n //Read how many campuses are needed to be solved for\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n //Loop through every campus\n for (c = 1; c <= n; c++)\n {\n //Build all the tunnels in the most efficient way\n buildTunnels();\n \n //Check that tunnels connect all the hills and print their result\n printAnswer(connectedHills == h);\n }\n }", "public void run() {\n // solve();\n faster();\n }", "private void tohSolver(int noDisks,int start,int end,int temp){\n\n if(noDisks == 1){\n\n moveDisk(start,end);\n\n\n }\n\n else{\n\n tohSolver(noDisks-1,start,temp,end);\n moveDisk(start, end);\n tohSolver(noDisks-1,temp,end,start);\n }\n\n\n }", "static void startSolution(Tower t) {\n\t\t// store reference to tower\n\t\ttower = t;\n\t\t// get start tower array\n\t\tint[] discs = tower.startTower();\n\t\t// to keep track unique discs\n\t\tHashSet<Integer> set = new HashSet<Integer>();\n\t\t// populate set\n\t\tfor (int i = 0; i < discs.length; i++)\n\t\t\tset.add(discs[i]);\n\t\t// number of unique elems in nums\n\t\tint n = set.size();\n\t\t// show start configuration\n\t\tSystem.out.println(tower);\n\t\t// start solution\n\t\tloese(n, 'a', 'b', 'c');\n\t}", "public static void main(String[] args) {\n int lineSize = Integer.parseInt(args[0]);\n String[] input = getInput(args);\n\n WordWrap ww = new WordWrap(lineSize, input);\n Long start = System.currentTimeMillis();\n Integer[] lines = ww.solve();\n Long end = System.currentTimeMillis();\n\n System.out.println(\"solved in \"+((end-start)/1000.0) +\" seconds\");\n printResult(lines, input);\n }", "public void solve() {\n// BruteForceSolver bfs = new BruteForceSolver(pointList);\n// bfs.solve(); // prints the best polygon, its area, and time needed\n// System.out.println(\"-------------\");\n\n// StarshapedSolver ss = new StarshapedSolver(pointList);\n// foundPolygons = ss.solve();\n// System.out.println(\"-------------\");\n\n// RandomAddPointHeuristic ra = new RandomAddPointHeuristic(pointList);\n// foundPolygons = ra.solve(750);\n// System.out.println(\"-------------\");\n\n// GreedyAddPointHeuristic ga = new GreedyAddPointHeuristic(pointList,false);\n// foundPolygons = ga.solve(750);\n// System.out.println(\"-------------\");\n\n// long time = 4000;\n// GreedyAddPointHeuristic gaInit = new GreedyAddPointHeuristic(pointList,false);\n// Polygon2D initSolution = gaInit.solve(time*1/4).get(0);\n// System.out.println(initSolution.area);\n// System.out.println(initSolution);\n//\n// SimulatedAnnealing sa = new SimulatedAnnealing(pointList,initSolution,3);\n// foundPolygons.addAll(sa.solve(time-gaInit.timeInit,2,0.005,0.95));\n// System.out.println(sa.maxPolygon);\n// System.out.println(\"-------------\");\n\n// foundPolygons.addAll(findMultiplePolygonsStarshaped(8,0.6));\n\n }", "public void run(){\n\t\tlong start_time, end_time, time_elapsed;\n System.out.println(\"Starting Problem \"+problem_number);\n start_time = System.currentTimeMillis();\n\t\t\n\t\tint matrixRows = 20;\n\t\tint matrixColumns = 20;\n\t\tint counter = 0;\n\t\tint num_of_adj = 4;\n\t\tString source = \"08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80 24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50 32 98 81 28 64 23 67 10 26 38 40 67 59 54 70 66 18 38 64 70 67 26 20 68 02 62 12 20 95 63 94 39 63 08 40 91 66 49 94 21 24 55 58 05 66 73 99 26 97 17 78 78 96 83 14 88 34 89 63 72 21 36 23 09 75 00 76 44 20 45 35 14 00 61 33 97 34 31 33 95 78 17 53 28 22 75 31 67 15 94 03 80 04 62 16 14 09 53 56 92 16 39 05 42 96 35 31 47 55 58 88 24 00 17 54 24 36 29 85 57 86 56 00 48 35 71 89 07 05 44 44 37 44 60 21 58 51 54 17 58 19 80 81 68 05 94 47 69 28 73 92 13 86 52 17 77 04 89 55 40 04 52 08 83 97 35 99 16 07 97 57 32 16 26 26 79 33 27 98 66 88 36 68 87 57 62 20 72 03 46 33 67 46 55 12 32 63 93 53 69 04 42 16 73 38 25 39 11 24 94 72 18 08 46 29 32 40 62 76 36 20 69 36 41 72 30 23 88 34 62 99 69 82 67 59 85 74 04 36 16 20 73 35 29 78 31 90 01 74 31 49 71 48 86 81 16 23 57 05 54 01 70 54 71 83 51 54 69 16 92 33 48 61 43 52 01 89 19 67 48\";\n\t\t\n\t\tString[] individualNums = source.split(\" \");\n\t\tmyMatrix m = new myMatrix(matrixRows, matrixColumns);\n\t\tArrayList<Integer> highest_factors = new ArrayList<Integer>();\n\t\tint highest_factor_product = 0;\n\t\tint temp_highest_factor_product = 1;\n\t\t\n\t\tfor(int i=0; i<m.getNumOfRows(); i++){\n\t\t\tfor(int j=0; j<m.getNumOfColumns(); j++){\t\t\t\t\n\t\t\t\tm.setMatrixEntry(i, j, Integer.valueOf(individualNums[counter]));\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t\t\n\t\t//up and down products\n\t\tfor(int i=0; i<m.getNumOfRows()-num_of_adj; i++){\t\t\t\n\t\t\tfor(int j=0; j<m.getNumOfColumns(); j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i+k, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i+k, j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//left and right products\n\t\tfor(int i=0; i<m.getNumOfRows(); i++){\t\t\t\n\t\t\tfor(int j=0; j<m.getNumOfColumns()-num_of_adj; j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i, j+k);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i, j+k));\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t//NW to SE diagonals\n\t\tfor(int i=0; i<m.getNumOfRows()-num_of_adj; i++){\t\t\t\n\t\t\tfor(int j=0; j<m.getNumOfColumns()-num_of_adj; j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i+k, j+k);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i, j+k));\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t//SW to NE diagonals\n\t\tfor(int i=0+num_of_adj-1; i<m.getNumOfRows(); i++){\t\t\t\n\t\t\tfor(int j=0+num_of_adj-1; j<m.getNumOfColumns(); j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i-k, j+k);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i-k, j+k));\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(highest_factor_product + \"\\n\\n\" + highest_factors);\n\t\t\n\t\tend_time = System.currentTimeMillis();\n System.out.println(\"Finished Problem\");\n time_elapsed = end_time - start_time;\n System.out.println(\"Time taken to finish problem: \"+time_elapsed);\n\t\t\n\t}", "public static void main(String[] args) {\n Tron.init();\n\n //We'll want to keep track of the turn number to make debugging easier.\n int turnNumber = 0;\n\n // Execute loop forever (or until game ends)\n while (true) {\n //Update turn number:\n turnNumber++;\n\n /* Get an integer map of the field. Each int\n * can either be Tron.Tile.EMPTY, Tron.Tile.ME,\n * Tron.Tile.OPPONENT, Tron.Tile.TAKEN_BY_ME,\n * Tron.Tile.TAKEN_BY_OPPONENT, or Tron.Tile.WALL */\n ArrayList<ArrayList<Tron.Tile>> mList = Tron.getMap();\n int[][] m = new int[mList.size()][mList.get(0).size()];\n for (int i = 0; i < mList.size(); i++) {\n for (int j = 0; j < mList.get(i).size(); j++) {\n m[i][j] = mList.get(i).get(j).ordinal();\n }\n }\n\n //Let's figure out where we are:\n int myLocX = 0, myLocY = 0;\n for(int y = 0; y < 16; y++) {\n for(int x = 0; x < 16; x++) {\n //I want to note that this is a little bit of a disgusting way of doing this comparison, and that you should change it later, but Java makes this uglier than C++\n if(Tron.Tile.values()[m[y][x]] == Tron.Tile.ME) {\n myLocX = x;\n myLocY = y;\n }\n }\n }\n\n //Let's find out which directions are safe to go in:\n boolean [] safe = emptyAdjacentSquares(m, myLocX, myLocY);\n\n //Let's look at the counts of empty squares around the possible squares to go to:\n int [] dirEmptyCount = new int[4];\n for(int a = 0; a < 4; a++) {\n if(safe[a]) {\n //Get the location we would be in if we went in a certain direction (specified by a).\n int[] possibleSquare = getLocation(myLocX, myLocY, a);\n //Make sure that square exists:\n if(possibleSquare[0] != -1 && possibleSquare[1] != -1) {\n //Find the squares around that square:\n boolean [] around = emptyAdjacentSquares(m, possibleSquare[0], possibleSquare[1]);\n //Count the number of empty squares around that square and set it in our array:\n dirEmptyCount[a] = 0;\n for(int b = 0; b < 4; b++) if(around[b]) dirEmptyCount[a]++;\n }\n }\n else dirEmptyCount[a] = 5; //Irrelevant, but we must ensure it's as large as possible because we don't want to go there.\n }\n\n //Log some basic information.\n Tron.log(\"-----------------------------------------------------\\nDebug for turn #\" + turnNumber + \":\\n\");\n for(int a = 0; a < 4; a++) Tron.log(\"Direction \" + stringFromDirection(a) + \" is \" + (safe[a] ? \"safe.\\n\" : \"not safe.\\n\"));\n\n /* Send your move. This can be Tron.Direction.NORTH,\n * Tron.Direction.SOUTH, Tron.Direction.EAST, or\n * Tron.Direction.WEST. */\n int minVal = 1000, minValLoc = 0;\n for(int a = 0; a < 4; a++) {\n if(dirEmptyCount[a] < minVal) {\n minVal = dirEmptyCount[a];\n minValLoc = a;\n }\n }\n Tron.sendMove(Tron.Direction.values()[minValLoc]);\n }\n }", "public void solve() {\n // TODO\n // This function should use next. You should also create and use any\n // other helper fuctions you find helpful here.\n \t// get start position \t\n \tSquare s = sea.getStart();\n \texploreList.add(s);\n \twhile(this.exploreList.size() != 0) {\n \t\tSquare c = step();\n \t\tif(c.hasNemo()) {\n \t\t\tsetPath(c);\n \t\t\tfoundNemo = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint t = sc.nextInt();\n\t\tSystem.out.println(\"No of Test Cases : \"+t);\n\t\tfor(int i=0;i<t;i++){\n\t\t\tint n = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tSystem.out.println(\"No of Snakes And Ladders : \"+n);\n\t\t\tString[] pos = sc.nextLine().split(\" \");\n\t\t\t\n\t\t\tcreateMap(pos);\n\t\t\tdisplayMap();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tint initial = 1;\n\t\t\tint destination = initial;\n\t\t\twhile(destination!=30){\n\t\t\t\tdestination = getBestDestination(initial);\n\t\t\t\tinitial = destination;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Minimum moves required : \"+count);\n\t\t}\n\t}", "public ArrayList<Anchor> findAnchors(){\n ArrayList<Anchor> anchors = new ArrayList<Anchor>();\n //BoardSpace[][] boardSpaces = Board.getInstance().getBoardSpaces(); this is now set from the outside because my solver is using the ai\n for (int row = 0 ; row < boardSpaces.length ; row ++){\n for (int col = 0 ; col < boardSpaces[0].length ; col ++){\n Tile exp = boardSpaces[row][col].getTile();\n if (exp != null){ //if no tile here\n\n int startCol = col;\n int endCol = col;\n\n //check how far left the word can go without collisions\n if (col > 0 && boardSpaces[row][col - 1].getTile() == (null)){\n while (startCol > 0){\n if (row != Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row + 1][startCol - 1].getTile() != null){\n break;\n }\n if ( row != 0 && boardSpaces[row - 1][startCol - 1].getTile() != null){\n break;\n }\n if (startCol == 1){\n startCol--;\n break;\n }\n if (boardSpaces[row ][startCol -2].getTile() != null){\n break;\n }\n startCol--;\n }\n }\n\n //check how far right the word can go without collisions\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row][col + 1].getTile() == null){\n while (endCol < Constants.BOARD_DIMENSIONS -1 ){\n\n if (row != Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row + 1][endCol + 1].getTile() != null){\n break;\n }\n if ( row != 0 && boardSpaces[row - 1][endCol + 1].getTile() != null ){\n break;\n }\n if (endCol == Constants.BOARD_DIMENSIONS - 2){\n endCol++;\n break;\n }\n if (boardSpaces[row ][endCol + 2].getTile() != (null)){\n break;\n }\n endCol++;\n }\n }\n\n //add the horizontal anchors\n if (col - startCol > 0 && endCol - col > 0){ // words that can go left or right\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), col - startCol, endCol - col , true));\n } else {\n //if only one then we need to do additional checks\n if (col - startCol > 0){\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row][col + 1].getTile() != (null)){ // words that can only go left I need to readd this later.\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), col - startCol, endCol - col , true));\n }\n }\n if (endCol - col > 0){\n if (col > 0 && boardSpaces[row][col - 1 ].getTile() != (null)){ // words that can only go right\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), col - startCol, endCol - col , true));\n }\n }\n }\n\n int startRow = row;\n int endRow = row;\n\n //check how high the word can go without collisions\n if (row > 0 && boardSpaces[row - 1][col].getTile() == null){\n while (startRow > 0){\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[startRow - 1][col + 1].getTile() != (null)){\n break;\n }\n if (col > 0 && boardSpaces[startRow - 1][col - 1].getTile() != (null)){\n break;\n }\n if (startRow == 1){\n startRow--;\n break;\n }\n if (boardSpaces[startRow - 2][col ].getTile() != (null)){\n break;\n }\n startRow--;\n }\n\n }\n\n //check how low the word can go without collisions\n if (row < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row + 1][col].getTile() == (null)){\n while (endRow < Constants.BOARD_DIMENSIONS -1){\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[endRow + 1][col + 1].getTile() !=(null)){\n break;\n }\n if (col > 0 &&\tboardSpaces[endRow + 1][col - 1].getTile() != (null)){\n break;\n }\n if (endRow == Constants.BOARD_DIMENSIONS - 2){\n endRow++;\n break;\n }\n if(boardSpaces[endRow + 2][col].getTile() != (null)){\n break;\n }\n\n endRow++;\n }\n }\n\n\n if (row - startRow > 0 && endRow - row > 0){\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), row - startRow, endRow - row, false));\n } else{//if only one then we need to do additional checks\n if (row - startRow > 0){ //words that can only go up I'm not using these yet because It's been causing bugs but I should fix this\n if (row < Constants.BOARD_DIMENSIONS-1 && boardSpaces[row+1][col].getTile() == (null)){\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), row - startRow, endRow - row, false));\n }\n }\n if (endRow - row > 0){ //words that can only go down\n if (row > 0 && boardSpaces[row-1][col].getTile() == (null)){\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), row - startRow, endRow - row, false));\n }\n }\n }\n }\n }\n }\n return anchors;\n }", "public void findSolution() {\n\t\tif (lenA > lenB) {\n\t\t\toptPairs = new String[lenB];\n\t\t} else {\n\t\t\toptPairs = new String[lenA];\n\t\t}\n\n\t\tint counter = 0;\n\t\tint i = lenA;\n\t\tint j = lenB;\n\n\t\twhile(i>0 && j>0) {\n\t\t\tif (optArray[i][j] == g+optArray[i-1][j]) {\n\t\t\t\ti--;\n\t\t\t}\n\t\t\telse if (optArray[i][j] == g+optArray[i][j-1]) {\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse {\n\t\t\t\toptPairs[counter] = i + \" \" + j;\n\t\t\t\tcounter++;\n\t\t\t\ti--;\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\n\t\tpairNum = counter;\n\n\t}", "IntPair findPacmansCrossRoad(IntPair pacPosition, Direction.directionType pacDirection)\n {\n IntPair delta = Direction.directionToIntPair(pacDirection);\n if (isCorner(pacPosition.item1, pacPosition.item2)) {\n Direction.directionType newDirection = turnDirection(pacPosition.item1, pacPosition.item2, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(\n new IntPair(pacPosition.item1 + nd.item1, pacPosition.item2 + nd.item2), newDirection);\n }\n\n if (delta.item1 == 0) {\n for (int y = pacPosition.item2; y >= 0 && y < LoadMap.MAPHEIGHTINTILES; y += delta.item2) {\n if (isCrossroad(pacPosition.item1, y)) {\n return new IntPair(pacPosition.item1, y);\n } else if (isCorner(pacPosition.item1, y)) {\n Direction.directionType newDirection = turnDirection(pacPosition.item1, y, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(new IntPair(pacPosition.item1 + nd.item1, y + nd.item2), newDirection);\n }\n }\n } else {\n for (int x = pacPosition.item1; x >= 0 && x < LoadMap.MAPWIDTHINTILES; x += delta.item1) {\n if (isCrossroad(x, pacPosition.item2)) {\n return new IntPair(x, pacPosition.item2);\n } else if (isCorner(x, pacPosition.item2)) {\n Direction.directionType newDirection = turnDirection(x, pacPosition.item2, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(new IntPair(x + nd.item1, pacPosition.item2 + nd.item2), newDirection);\n }\n }\n }\n\n return pacPosition;\n }", "public abstract TrajectoryInfo solve();", "public static void main(String[] args) {\n int[][] map = new int[N][N];\r\n // 1D to 2D index map\r\n CustomPair[] indToVal = new CustomPair[(N * N) + 1];\r\n // 2D to value map\r\n Map<CustomPair, Integer> gridToValue = new HashMap<>();\r\n // Direction to start\r\n Direction dir = Direction.RIGHT;\r\n int j = 1;\r\n int y = N / 2;\r\n // shift left for even n's\r\n int x = (N % 2 == 0) ? y - 1 : y;\r\n /**\r\n * We use y, x here because the grid is sort of turned around.\r\n * */\r\n while(j <= ((N * N))) {\r\n CustomPair currentIndex = new CustomPair(y, x);\r\n // if the number is not prime it is traversable\r\n if (!isPrime(j)) {\r\n map[y][x] = 1;\r\n gridToValue.put(currentIndex, j);\r\n } else {\r\n map[y][x] = -1;\r\n }\r\n // add the value to 1d to 2d index values\r\n indToVal[j] = currentIndex;\r\n switch(dir){\r\n case RIGHT:\r\n if(x <= (N - 1) && map[y - 1][x] == 0 && j > 1)\r\n dir = Direction.UP;\r\n break;\r\n case UP:\r\n if(map[y][x - 1] == 0)\r\n dir = Direction.LEFT;\r\n break;\r\n case LEFT:\r\n if(x == 0 || map[y + 1][x] == 0)\r\n dir = Direction.DOWN;\r\n break;\r\n case DOWN:\r\n if(map[y][x + 1] == 0)\r\n dir = Direction.RIGHT;\r\n break;\r\n }\r\n // update the grid index\r\n switch(dir){\r\n case RIGHT:\r\n x++;\r\n break;\r\n case UP:\r\n y--;\r\n break;\r\n case LEFT:\r\n x--;\r\n break;\r\n case DOWN:\r\n y++;\r\n break;\r\n }\r\n // update 1D index\r\n j++;\r\n }\r\n\r\n Scanner sc = new Scanner(System.in);\r\n int caseNum = 1;\r\n while (sc.hasNextInt()) {\r\n int start = sc.nextInt();\r\n int goal = sc.nextInt();\r\n // find the shortest path\r\n Queue<CustomPair> q = new LinkedList<>();\r\n // 2D grid to distance values\r\n Map<CustomPair, Integer> distMap = new HashMap<>();\r\n // start is 0\r\n distMap.put(indToVal[start], 0);\r\n q.add(indToVal[start]);\r\n while (!q.isEmpty()) {\r\n CustomPair cur = q.remove();\r\n // for each neighbour (4 potential moves)\r\n for (int i = 0; i < 4; i++) {\r\n int nx = cur.a + X_NEIG_INDEX[i];\r\n int ny = cur.b + Y_NEIG_INDEX[i];\r\n CustomPair neighP = new CustomPair(nx, ny);\r\n // if the value is not in the grid\r\n if (!gridToValue.containsKey(neighP))\r\n continue;\r\n // if the value is already visited\r\n if (distMap.containsKey(neighP))\r\n continue;\r\n distMap.put(neighP, distMap.get(cur) + 1);\r\n q.add(neighP);\r\n }\r\n }\r\n // print for Kattis reasons\r\n String msg = \"Case \" + caseNum + \": \";\r\n if (!distMap.containsKey(indToVal[goal]) ||\r\n distMap.getOrDefault(indToVal[goal], -1) == -1 && start != goal)\r\n System.out.println(msg + \" impossible\");\r\n else\r\n System.out.println(msg + \"\" + distMap.get(indToVal[goal]));\r\n caseNum++;\r\n }\r\n }", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }", "public static void main(String[] args) {\n\t\tint grid[][] = new int[][]\n\t\t\t { \n\t\t\t { 1, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 1, 0, 1, 0, 0, 0, 1, 0, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 1, 0, 1, 0 }, \n\t\t\t { 1, 1, 1, 1, 0, 1, 1, 1, 1, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 0, 1, 0, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 1, 1 }, \n\t\t\t { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 0, 1, 1, 1, 1, 0, 1, 1, 0 } \n\t\t\t };\n\t\t\n // Step 1: Obtain an instance of GridBasedTrafficControl.\n Configurator cfg = new DefaultConfigurator();\n GridBasedTrafficControl gbtc = cfg.getGridBasedTrafficControl(grid);\n\t\t\n\t // Step 2: Obtain path for Journey-1.\n\t Point source1 = new Point(0, 0);\n\t Point dest1 = new Point(3,4);\t \n\t String vehicleId1 = formVehicleId(source1);\n\t List<Point> path1 = gbtc.allocateRoute(vehicleId1, source1, dest1);\n\t System.out.println(\"Route for Journey-1:\" + path1);\n\t \n\t // Step 3: Obtain path for Journey-2.\n\t // This call will not return a route as the available route conflicts with the route\n\t // allocated for Journey-1.\n\t Point source2 = new Point(3, 0);\n\t Point dest2 = new Point(2,4);\n\t String vehicleId2 = formVehicleId(source2);\n\t List<Point> path2 = gbtc.allocateRoute(vehicleId2, source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 4: Start Journey-1 and mark Journey-1 as complete.\n\t GridConnectedVehicle vehicle1 = new GridConnectedVehicle(vehicleId1, gbtc);\n\t vehicle1.selfDrive(path1);\n\t gbtc.markJourneyComplete(vehicleId1, source1, dest1);\n\t \n\t // Step 5: Retry call to obtain path for Journey-2.\n\t // This call should return a valid path as Journey-1 was marked as complete.\n\t path2 = gbtc.allocateRoute(formVehicleId(source2), source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 6: Start Journey-2 and mark Journey-2 as complete.\n\t GridConnectedVehicle vehicle2 = new GridConnectedVehicle(vehicleId2, gbtc);\n\t vehicle2.selfDrive(path2);\n\t gbtc.markJourneyComplete(vehicleId2, source2, dest2);\n\t}", "@Test\n\tpublic void multipleSolutionsTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\t\n\t\tm.addRoad(\"Guildford\", \"Portsmouth\", 20.5, \"M3\");\t//Adds a road from Guildford to portsmouth to the map\n m.addRoad(\"Portsmouth\", \"Guildford\", 20.5, \"M3\");\n \n m.addRoad(\"Guildford\", \"Winchester\", 20.5, \"A33\");\t//Adds a road from Guildford to winchester to the map\n m.addRoad(\"Winchester\", \"Guildford\", 20.5, \"A33\");\n \n m.addRoad(\"Winchester\", \"Fareham\", 20.5, \"M27\");\t//Adds a road from winchester to fareham to the map\n m.addRoad(\"Fareham\", \"Winchester\", 20.5, \"M27\");\n\t\t\n m.addRoad(\"Portsmouth\", \"Fareham\", 20.5, \"M25\");\t//Adds a road from fareham to portsmouth to the map\n m.addRoad(\"Fareham\", \"Portsmouth\", 20.5, \"M25\");\n \n m.findShortestPath(\"Fareham\");\t//Starts the algorithm to find the shortest path\n \n List<String> temp = new ArrayList<String>();\t//Holds the route plan\n temp = m.createRoutePlan(\"Guildford\");\t//Calls methods to assign the route plan to temp\n \n assertEquals(\"1. Take the M27 to Winchester\",temp.get(0));\t//tests that the different lines in the route plan are correct and that the algorithm did indeed take the shortest route\n assertEquals(\"2. Take the A33 to Guildford\", temp.get(1));\n assertEquals(\"\", temp.get(2));\n assertEquals(\"The Journey will take 41 hours and .00 minutes long.\", temp.get(3));\n assertEquals(\"\", temp.get(4));\n \n assertEquals(5, temp.size());\t//tests to see that the route plan is 5 line large as it should be\n\t}", "private static void buildTunnels()\n {\n //Initialize necessary member variables\n totalCost = 0;\n connectedHills = 1;\n \n //Create a disjoint set for all of the hills on the current campus\n h = scan.nextInt();\n campus = new DisjointSet(h);\n \n //Read how many tunnels can be built\n t = scan.nextInt();\n \n //Create an array for all the possible tunnels\n edges = new edge[t];\n \n //Loop through all of the possible tunnels\n for (tunnel = 0; tunnel < t; tunnel++)\n {\n //Save all information for the current possible tunnel\n edges[tunnel] = new edge();\n }\n \n //Sort the array of tunnels by their costs\n Arrays.sort(edges);\n \n //Loop through all the possible tunnels again\n for (tunnel = 0; tunnel < t; tunnel++)\n {\n //Try to connect the hills with the current tunnel and check if it was successful\n if (campus.union(edges[tunnel].x - 1, edges[tunnel].y - 1))\n {\n //Add the cost to build that tunnel to the total cost\n totalCost += edges[tunnel].d;\n \n //Incrememnt the amount of total hills connected\n connectedHills++;\n }\n \n //Check if the tunnels have connected all of the hills\n if (connectedHills == h)\n {\n //Stop trying to build tunnels\n return;\n }\n }\n }", "@Test\n public void runTest()\n { // Pueblo start to finish 34.97s\n\n\n this.myMap = myReader.readMapFile(\"data/AlamosaNetwork.xml\");\n myMap.setupMapAsServer();\n this.testAgent001 = getTestAgent();\n\n //System.out.println(\"Intersections2: \"+myMap.getIntersections());\n\n testLW.log(Level.INFO, \"this is another nother test\");\n\n System.out.println(\"\\nStarting test. . .\");\n // Pueblo start to finish 34.97s\n // from.setId(\"1040921516\"); // from.setId(\"01\"); // 1040921516 // 2\n // to.setId(\"864162469\"); // to.setId(\"10\"); // 864162469 // 50\n Long startTime = System.nanoTime();\n\n //GRIDheapAlg greedy = new GRIDheapAlg();\n GRIDpathfinder theALG = new GRIDpathfinder(myMap, \"BPR\");\n //GRIDheapDynamicAlg dyna = new GRIDheapDynamicAlg(myMap); //\n //myPathGreedy = greedy.shortestPath(networkMap,\"1040921516\",\"864162469\");\n\n //GRIDselfishAlg test001 = new GRIDselfishAlg(testAgent001, networkMap, 0L); // GRIDpathrecalc GRIDselfishAlg\n //GRIDpathrecalc test001 = new GRIDpathrecalc(testAgent001, networkMap, 0L); // GRIDpathrecalc GRIDselfishAlg\n //GRIDroute outRoute = new GRIDroute();\n /*GRIDpathrecalc test001 = new GRIDpathrecalc(testAgent001, networkMap, 0L); // GRIDpathrecalc GRIDselfishAlg\n outRoute = test001.findPath();*/\n GRIDroute outRoute = theALG.findPath(testAgent001, 0L);\n\n //ListIterator<String> pathIterator = outRoute.Intersections.listIterator();\n\n /*assertNotNull(myMap);\n assertNotNull(outRoute);\n assertTrue(outRoute.Intersections.size() > 0);*/\n\n //System.out.println(\"\\nShortest path: \"+myPathGreedy);\n //System.out.println(\"\\nShortest path: \"+myPathDynamic);\n\n //System.out.print(\"\\nPath:\\n\");\n //for (String intrx : outRoute.getIntersections())\n //{\n // System.out.print(intrx);\n // if(!intrx.equals(testAgent001.getDestination()))\n // System.out.print(\",\");\n //}\n\n //ArrayList<String> tempPathList = myMap.getPathByRoad(outRoute.getIntersections());\n\n //System.out.print(\"\\n\\nPath by Link:\\n\");\n //for (String path : tempPathList)\n //{\n // System.out.print(path);\n // if(!tempPathList.isEmpty()\n // && !path.equals(tempPathList.get(tempPathList.size() - 1)))\n // System.out.print(\",\");\n // }\n\n if(outRoute.getAgent_ID() != \"Destination unreachable\"){\n logWriter.log(Level.INFO, \"Route is: \" + outRoute.toString());\n\n System.out.println(\"Route is: \" + testAgent001.getOrigin() + outRoute.toString()\n +\" \"+testAgent001.getDestination());\n\n System.out.println(\"\\n\\nCalculated Travel Time: \"+outRoute.getcalculatedTravelTime());\n }\n else{\n System.out.println(\"Destination Unreachable\");\n }\n\n long stopTime = System.nanoTime();\n long timeToRun = ((stopTime - startTime)/1000000);\n\n System.out.print(\"\\nTook \" + timeToRun/1000.0 + \" Seconds\");\n System.out.print(\"\\n\\nAnd we're done.\\n\");\n }", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Integer> roots = new TreeMap<Integer, Integer>();\n\t\t\n\t\tEdge[] edges = new Edge[this.edges.length];\n\t\tint n, weight, relevantEdges, root, lowerBound = 0;\n\t\n\t\t// Sort edges by weight.\n\t\tquickSort(0, this.edges.length - 1);\n\t\n\t\t// Compute initial lower bound (best k - 1 edges).\n\t\t// Choosing the cheapest k - 1 edges is not very intelligent. There is no guarantee\n\t\t// that this subset of edges even induces a subgraph over the initial graph.\n\t\t// TODO: Find a better initial lower bound.\n\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\tlowerBound += this.edges[i].weight;\n\t\t}\n\t\n\t\t// Iterate over all nodes in the graph and run Prim's algorithm\n\t\t// until k - 1 edges are fixed.\n\t\t// As all induced subgraphs have k nodes and are connected according to Prim, they\n\t\t// are candidate solutions and thus submitted.\n\t\tfor (root = 0; root < taken.length; root++) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\n\t\t\ttaken[root] = true;\n\t\t\tn = 0;\n\t\t\tweight = 0;\n\t\t\trelevantEdges = this.edges.length;\n\n\t\t\twhile (n < solution.length) { \n\t\t\t\tfor (int i = 0; i < relevantEdges; i++) {\n\t\t\t\t\t// XOR to check if connected and no circle.\n\t\t\t\t\tif (taken[edges[i].node1] ^ taken[edges[i].node2]) {\n\t\t\t\t\t\ttaken[taken[edges[i].node1] ? edges[i].node2 : edges[i].node1] = true;\n\t\t\t\t\t\tsolution[n++] = edges[i];\n\t\t\t\t\t\tweight += edges[i].weight;\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Check for circle.\n\t\t\t\t\telse if (taken[edges[i].node1]) {\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\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\t// Sum up what we've just collected and submit this\n\t\t\t// solution to the framework.\n\t\t\tHashSet<Edge> set = new HashSet<Edge>(solution.length);\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tset.add(solution[i]);\n\t\t\t}\n\t\t\tsetSolution(weight, set);\n\t\t\troots.put(weight, root);\n\t\t}\n\n\t\t// Now for the real business, let's do some Branch-and-Bound. Roots of \"k Prim Spanning Trees\"\n\t\t// are enumerated by weight to increase our chances to obtain the kMST earlier.\n\t\tfor (int item : roots.values()) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\t\t\ttaken[item] = true;\n\t\t\tbranchAndBound(edges, solution.length, 0, lowerBound);\n\t\t}\n\t}", "public void run(){\n \n while (true){\n double p1Xnext =l1.getStart().getX()+v1p1;\n double p2Xnext =l2.getStart().getX()+v1p2;\n double p3Xnext =l3.getStart().getX()+v1p3;\n double p1Ynext =l1.getStart().getY()+v2p1;\n double p2Ynext =l2.getStart().getY()+v2p2;\n double p3Ynext =l3.getStart().getY()+v2p3;\n double p4Xnext =l1.getEnd().getX()+v1p1;\n double p5Xnext =l2.getEnd().getX()+v1p2;\n double p6Xnext =l3.getEnd().getX()+v1p3;\n double p4Ynext =l1.getEnd().getY()+v2p1;\n double p5Ynext =l2.getEnd().getY()+v2p2;\n double p6Ynext =l3.getEnd().getY()+v2p3;\n\n if (p1Xnext > l1.getCanvas().getWidth()){\n v1p1=-v1p1; \n }\n if (p1Xnext< 0){\n v1p1=-v1p1;\n \n }\n if (p1Ynext > l1.getCanvas().getHeight()){\n v2p1=-v2p1;\n \n }\n if (p1Ynext< 0){\n v2p1=-v2p1;\n }\n if (p2Xnext > l1.getCanvas().getWidth()){\n v1p2=-v1p2; \n }\n if (p2Xnext< 0){\n v1p2=-v1p2;\n \n }\n if (p2Ynext > l1.getCanvas().getHeight()){\n v2p2=-v2p2;\n \n }\n if (p2Ynext< 0){\n v2p2=-v2p2;\n \n }\n if (p3Xnext > l1.getCanvas().getWidth()){\n v1p3=-v1p3; \n }\n if (p3Xnext< 0){\n v1p3=-v1p3;\n \n }\n if (p3Ynext > l1.getCanvas().getHeight()){\n v2p3=-v2p3;\n \n }\n if (p3Ynext< 0){\n v2p3=-v2p3;\n }\n l1.setStart(l1.getStart().getX()+v1p1, l1.getStart().getY()+v2p1);\n l2.setStart(l2.getStart().getX()+v1p2, l2.getStart().getY()+v2p2);\n l3.setStart(l3.getStart().getX()+v1p3, l3.getStart().getY()+v2p3);\n l1.setEnd(l3.getStart());\n l2.setEnd(l1.getStart());\n l3.setEnd(l2.getStart());\n pause(10);\n \n \n \n }\n}", "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint t = in.nextInt();\n\t\twhile( t-- > 0 )\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tString s[] = new String[n];\n\t\t\tfor( int i = 0 ; i < n ; i++ )\n\t\t\t{\n\t\t\t\ts[i] = in.next();\n\t\t\t}\n\t\t\tArrayList<Point> p = new ArrayList<>();\n\t\t\tfor(int i = 0 ; i < n ; i++ )\n\t\t\t{\n\t\t\t\tfor(int j = 0 ; j < m ; j++)\n\t\t\t\t{\n\t\t\t\t\tif(s[i].charAt(j) == '1')\n\t\t\t\t\t{\n\t\t\t\t\t\tp.add(new Point(i,j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n//\t\t\tfor(int i = 0 ; i < p.size() ;i++ )\n//\t\t\t{\n//\t\t\t\tSystem.out.println(p.get(i).x +\" \" + p.get(i).y );\n//\t\t\t}\n\t\t\t\n\t\t\tHashMap<Integer,Integer> map = new HashMap<>();\n\t\t\tfor(int i = 1 ; i < p.size() ; i++ )\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < p.size() ;i++ )\n\t\t\t{\n\t\t\t\tfor(int j = i + 1 ; j < p.size() ; j++ )\n\t\t\t\t{\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint p1 = p.get(i);\n\t\t\t\t\t\tPoint p2 = p.get(j);\n\t\t\t\t\t\tint d = Math.abs(p1.x - p2.x) + Math.abs(p1.y - p2.y);\n\t\t\t\t\t\tif(!map.containsKey(d))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmap.put(d, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmap.put(d, map.get(d) + 1);\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\tfor(int i = 1 ; i <= n + m - 2 ; i++)\n\t\t\t{\n\t\t\t\tif (map.containsKey(i))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(map.get(i)+ \" \");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(0 + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "private static List<Move> pathSolve(Level level){\n\t\tOptimisticMap optMap = new OptimisticMap(level);\n\t\t\n\t\tPoint dst = level.getExitPos();\n\t\t\n\t\t// Open nodes\n\t\tSortedMap<Integer, List<SolveNode>> nodes = new TreeMap<Integer, List<SolveNode>>();\n\t\t\n\t\t// Current costs to arrive to solve nodes\n\t\tint[][][] arrived = new int[level.getMapSize().x][level.getMapSize().y][Move.values().length];\n\t\tfor ( int x = 0 ; x < level.getMapSize().x ; x++ ){\n\t\t\tfor ( int y = 0 ; y < level.getMapSize().y ; y++ ){\n\t\t\t\tfor ( int d = 0 ; d < Move.values().length ; d++ ){\n\t\t\t\t\tarrived[x][y][d] = Integer.MAX_VALUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Create initial nodes\n\t\t{\n\t\t\tPoint box = level.getBoxPos();\n\t\t\tPoint player = level.getPlayerPos();\n\t\t\tfor ( Move dir : Move.values()){\n\t\t\t\tPoint playerDst = dir.nextPosition(box);\n\t\t\t\tif ( level.isClearSafe(playerDst.x, playerDst.y)){\n\t\t\t\t\tList<Move> pathNoDesiredPlayerPosition = pathTo(level, player, box, playerDst);\n\t\t\t\t\tif ( pathNoDesiredPlayerPosition != null ){\n\t\t\t\t\t\tSolveNode node = new SolveNode();\n\t\t\t\t\t\tnode.moves = pathNoDesiredPlayerPosition;\n\t\t\t\t\t\tnode.box = (Point)box.clone();\n\t\t\t\t\t\tnode.playerDir = dir;\n\t\t\t\t\t\taddSolveNode(nodes, node, node.moves.size() + optMap.getValue(node.box.x, node.box.y));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile ( nodes.isEmpty() == false ){\n\t\t\t// Get node to process\n\t\t\tSolveNode node = removeSolveNode(nodes);\n\t\t\tif ( node.box.equals(dst) ){\n\t\t\t\t// This is the best solution\n\t\t\t\treturn node.moves;\n\t\t\t}\n\t\t\t\n\t\t\t// Create new nodes trying to move the box in each direction\n\t\t\tfor ( Move dir : Move.values() ){\n\t\t\t\tSolveNode newNode = new SolveNode();\n\t\t\t\tnewNode.box = dir.nextPosition(node.box);\n\t\t\t\tnewNode.playerDir = dir.opposite();\n\t\t\t\t\n\t\t\t\t// First check if the box can be moved to that position (is clear)\n\t\t\t\tif ( level.isClearSafe(newNode.box.x, newNode.box.y) == false ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the player can move to the pushing position\n\t\t\t\tPoint player = node.playerDir.nextPosition(node.box);\n\t\t\t\tPoint playerDst = dir.opposite().nextPosition(node.box);\n\t\t\t\tList<Move> playerMoves = pathTo(level, player, node.box, playerDst);\n\t\t\t\tif ( playerMoves == null ){\n\t\t\t\t\t// The player can't move itself to the pushing position\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the cost to arrive to the new node is less that the previous known\n\t\t\t\tif ( node.moves.size() + playerMoves.size() + 1 >= arrived[newNode.box.x][newNode.box.y][dir.index()] ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\" + newNode.box.x + \" \" + newNode.box.y);\n\t\t\t\t\n\t\t\t\t// Add the new node to the open nodes\n\t\t\t\tnewNode.moves.addAll(node.moves);\n\t\t\t\tnewNode.moves.addAll(playerMoves);\n\t\t\t\tnewNode.moves.add(dir);\n\t\t\t\taddSolveNode(nodes, newNode, newNode.moves.size() + optMap.getValue(newNode.box.x, newNode.box.y));\n\t\t\t\tarrived[newNode.box.x][newNode.box.y][dir.index()] = newNode.moves.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// There is no solution\n\t\treturn null;\n\t}", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "@Override\n\tpublic void testPeriodic() {\n\t\tint testNum = 1;\t\t//which test code will run\n\t\tswitch(testNum) {\n\t\t\tcase(0):\n\t\t\t\tgearBoxTest();\n\t\t\t\tbreak;\n\t\t\tcase(1):\t\t\t//left start\n\t\t\t\tswitch (gameData.substring(0,1)) {\n\t\t\t\t\tcase \"L\":\n\t\t\t\t\t\t//Move forward\n\t\t\t\t\t\tmoveDistance(1.524,0);\n\t\t\t\t\t\t//Turn to 90(left) degrees and move\n\t\t\t\t\t\tmoveDistance(2.413,90);\n\t\t\t\t\t\t//Turn to 0 Degrees\n\t\t\t\t\t\tmoveDistance(1.778, 0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"R\":\n\t\t\t\t\t\tmoveDistance(1.63, 0);\t\t\t//move forward 1.63 m\n\t\t\t\t\t\tmoveDistance(0.91, 315);\t\t\t//move at a 315 degree for 1.63 m\n\t\t\t\t\t\tmoveDistance(0.76, 0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase(2):\t\t\t//middle start\n\t\t\t\tswitch (gameData.substring(0,1)) {\n\t\t\t\t\tcase \"L\":\n\t\t\t\t\t\t//Move forward\n\t\t\t\t\t\tmoveDistance(1.524,0);\n\t\t\t\t\t\t//Turn to 90(left) degrees and move\n\t\t\t\t\t\tmoveDistance(2.413,90);\n\t\t\t\t\t\t//Turn to 0 Degrees\n\t\t\t\t\t\tmoveDistance(1.778, 0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"R\":\n\t\t\t\t\t\tmoveDistance(1.63, 0);\t\t\t//move forward 1.63 m\n\t\t\t\t\t\tmoveDistance(0.91, 315);\t\t\t//move at a 315 degree for 1.63 m\n\t\t\t\t\t\tmoveDistance(0.76, 0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase(3):\t\t\t//right start\n\t\t\t\tswitch (gameData.substring(0,1)) {\n\t\t\t\t\tcase \"L\":\n\t\t\t\t\t\tmoveDistance(4.3, 0);\t\t//move forward 4.3 m\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"R\":\n\t\t\t\t\t\tmoveDistance(4.3, 0);\t\t//move forward 4.3 m\n\t\t\t\t\t\tmoveDistance(0.78, 90);\t\t\t//rotate towards switch and move .78 m towards it\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tmotorRF.set(0);\n\t\tmotorRB.set(0);\n\t\tmotorLF.set(0);\n\t\tmotorLB.set(0);\n\t}", "public void SolveTowers() {\n\n\t\tif(startingDepth == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(this.toString());\n\t\tthis.BreakDown(startingTower, endingTower, startingDepth);\n\t\tthis.BuildUp(endingTower,startingTower,startingDepth);\n\t}", "public static void main(String[] args) {\n GridMap map = null;\n try {\n map = GridMap.fromFile(\"map.txt\");\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n if (map == null)\n throw new RuntimeException(\"Unable to obtain discretized map.\");\n\n // Prints map\n System.out.println(\"Map to analyze:\");\n System.out.println(map);\n\n // Executes search\n int[] rowColIni = map.getStart();\n int[] rowColFim = map.getGoal();\n Block initial = new Block(rowColIni[0], rowColIni[1], BlockType.FREE);\n Block target = new Block(rowColFim[0], rowColFim[1], BlockType.FREE);\n GreedySearch search = new GreedySearch(map, initial, target);\n RobotAction[] ans = search.solve();\n\n // Shows answer\n if (ans == null) {\n System.out.println(\"No answer found for this problem.\");\n } else {\n\n Block current = initial;\n System.out.print(\"Answer: \");\n for (RobotAction a : ans) {\n System.out.print(\", \" + a);\n Block next = map.nextBlock(current, a);\n map.setRoute(next.row, next.col);\n current = next;\n }\n\n // Shows map with the route found\n System.out.println();\n System.out.println(\"Route found:\");\n System.out.println(map);\n }\n }", "public void solution() {\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tint n = 300;// // 100000;// Integer.parseInt(nm[0].trim());\n\n\t\tint m = 350;// // 138000;//Integer.parseInt(nm[1].trim());\n\n//\t\tint[][] roads = { { 5, 12, 18 }, { 17, 2, 5 }, { 7, 18, 3 }, { 17, 6, 0 }, { 15, 12, 16 }, { 2, 3, 8 },\n//\t\t\t\t{ 14, 9, 20 }, { 4, 9, 11 }, { 13, 1, 21 }, { 13, 12, 15 }, { 15, 12, 10 }, { 6, 16, 9 }, { 11, 18, 2 },\n//\t\t\t\t{ 9, 16, 17 }, { 12, 4, 4 }, { 7, 4, 19 }, { 17, 1, 12 }, { 10, 14, 7 }, { 8, 5, 13 }, { 18, 3, 14 },\n//\t\t\t\t{ 4, 11, 6 }, { 15, 3, 1 }, { 12, 5, 22 } };\n//\t\tint[][] roads = { { 1, 3, 5 }, { 4, 5, 0 }, { 1, 2, 3 }, { 2, 3, 1 }, { 3, 4, 4 }, { 2, 4, 2 } };\n\n\t\tint[][] roads = new int[m][3];\n\n\t\tfor (int roadsRowItr = 0; roadsRowItr < m; roadsRowItr++) {\n\t\t\tString[] roadsRowItems = scanner.nextLine().split(\" \");\n\n\t\t\tfor (int roadsColumnItr = 0; roadsColumnItr < 3; roadsColumnItr++) {\n\t\t\t\tint roadsItem = Integer.parseInt(roadsRowItems[roadsColumnItr].trim());\n\t\t\t\troads[roadsRowItr][roadsColumnItr] = roadsItem;\n\t\t\t}\n\t\t}\n\t\tlong oldTime = System.currentTimeMillis();\n\t\tString result = roadsInHackerland(n, roads);\n\n\t\tSystem.out.println(result);\n\t\tSystem.out.println(\"Time : \" + (System.currentTimeMillis() - oldTime));\n\t}", "@Override\r\n public void solve(String[] arr) {\r\n\tString nameAlg = arr[arr.length - 1];\r\n\tsb = new StringBuilder();\r\n\tfor (int i = 1; i < arr.length - 1; i++) {\r\n\t sb.append(arr[i]);\r\n\t}\r\n\tString name = sb.toString();\r\n\tMaze3d tempMaze = hMaze.get(name);\r\n\tif ((hSol.get(tempMaze)) != null) {\r\n\t setChanged();\r\n\t notifyObservers((\"solution:\" + name).split(\":\"));\r\n\t}\r\n\tFuture<Solution<Position>> fCallSolution = threadpool.submit(new Callable<Solution<Position>>() {\r\n\r\n\t @Override\r\n\t public Solution<Position> call() throws Exception {\r\n\r\n\t\tMaze3d m = hMaze.get(name);\r\n\t\tSearchableMaze sMaze = new SearchableMaze(m);\r\n\t\tCommonSearcher<Position> cs;\r\n\t\tSolution<Position> s = new Solution<Position>();\r\n\t\tswitch (nameAlg) {\r\n\t\tcase \"Astar\":\r\n\t\t cs = new AStar<Position>(new MazeManhattenDistance());\r\n\t\t s = cs.search(sMaze);\r\n\t\t break;\r\n\t\tcase \"A*\":\r\n\t\t cs = new AStar<Position>(new MazeManhattenDistance());\r\n\t\t s = cs.search(sMaze);\r\n\t\t break;\r\n\t\tcase \"BFS\":\r\n\t\t cs = new BFS<Position>();\r\n\t\t s = cs.search(sMaze);\r\n\t\t break;\r\n\t\t}\r\n\t\treturn s;\r\n\t }\r\n\t});\r\n\ttry {\r\n\t hSol.put(tempMaze, fCallSolution.get());\r\n\t} catch (InterruptedException | ExecutionException e) {\r\n\t // TODO Auto-generated catch block\r\n\t e.printStackTrace();\r\n\t}\r\n\tsetChanged();\r\n\tnotifyObservers((\"solution:\" + name).split(\":\"));\r\n }", "public void solveUsingVogelApproximationMethod() {\n this.solution = new Solution();\n\n Source[] proxySources = Arrays.copyOf(sources, sources.length);\n Destination[] proxyDestinations = Arrays.copyOf(destinations, destinations.length);\n int[][] matrix = new int[costs.length][costs[0].length];\n\n List<Integer> rows = new ArrayList<Integer>();\n List<Integer> columns = new ArrayList<Integer>();\n\n while ( rows.size() != proxySources.length && columns.size() != proxyDestinations.length ) {\n int[] penaltyRow = new int[proxyDestinations.length];\n int[] penaltyColumn = new int[proxySources.length];\n\n int firstTwo = 2;\n int firstValue = 0, secondValue = 0;\n for (int i = 0; i < proxySources.length; i++) {\n if (!rows.contains(i)) {\n for (int j = 0; j < proxyDestinations.length; j++) {\n if (!columns.contains(j)) {\n if (firstTwo == 2) {\n firstValue = costs[i][j];\n firstTwo--;\n } else if (firstTwo == 1) {\n secondValue = costs[i][j];\n firstTwo--;\n } else if (firstTwo == 0) {\n if (costs[i][j] < firstValue || costs[i][j] < secondValue) {\n if (firstValue < secondValue) secondValue = costs[i][j];\n else firstValue = costs[i][j];\n }\n }\n }\n }\n penaltyColumn[i] = Math.abs(firstValue - secondValue);\n firstTwo = 2;\n }\n }\n\n firstTwo = 2;\n\n for (int j = 0; j < proxySources.length; j++) {\n if (!columns.contains(j)) {\n for (int i = 0; i < proxyDestinations.length; i++) {\n if (!rows.contains(i)) {\n if (firstTwo == 2) {\n firstValue = costs[i][j];\n firstTwo--;\n } else if (firstTwo == 1) {\n secondValue = costs[i][j];\n firstTwo--;\n } else if (firstTwo == 0) {\n if (costs[i][j] < firstValue || costs[i][j] < secondValue) {\n if (firstValue < secondValue) secondValue = costs[i][j];\n else firstValue = costs[i][j];\n }\n }\n }\n\n }\n penaltyRow[j] = Math.abs(firstValue - secondValue);\n firstTwo = 2;\n }\n }\n\n int maxI = 0;\n for(int j=0;j<proxyDestinations.length;j++) {\n if(penaltyRow[j] > penaltyRow[maxI]) maxI = j;\n }\n\n int maxJ = 0;\n for(int i=0;i<proxySources.length;i++) {\n if(penaltyColumn[i] > penaltyColumn[maxJ]) maxJ = i;\n }\n\n if( penaltyRow[maxI] > penaltyColumn[maxJ] )\n {\n int indexJ = maxI;\n\n int finalIndexI = 0;\n int finalIndexJ = 0;\n int value = 100000;\n for(int i=0;i<proxySources.length;i++) {\n if(!rows.contains(i)) {\n if(costs[i][indexJ] < value) {\n value = costs[i][indexJ];\n finalIndexI = i;\n finalIndexJ = indexJ;\n }\n else if( costs[i][indexJ] == value ) {\n if( Math.min(proxySources[i].getSupply(),proxyDestinations[indexJ].getDemand()) > Math.min(proxySources[finalIndexI].getSupply(),proxyDestinations[finalIndexJ].getDemand()) ) {\n value = costs[i][indexJ];\n finalIndexI = i;\n finalIndexJ = indexJ;\n }\n }\n }\n }\n\n int supply = proxySources[finalIndexI].getSupply();\n int demand = proxyDestinations[finalIndexJ].getDemand();\n\n\n this.solution.add(sources[finalIndexI], destinations[finalIndexJ], Math.min(supply,demand), costs[finalIndexI][finalIndexJ]);\n\n if ( supply < demand ) {\n proxySources[finalIndexI].setSupply(0);\n proxyDestinations[finalIndexJ].setDemand(demand - supply);\n rows.add(finalIndexI);\n }\n else if( supply > demand ) {\n proxySources[finalIndexI].setSupply(supply-demand);\n proxyDestinations[finalIndexJ].setDemand(0);\n columns.add(finalIndexJ);\n }\n else {\n proxySources[finalIndexI].setSupply(0);\n proxyDestinations[finalIndexJ].setDemand(0);\n rows.add(finalIndexI);\n columns.add(finalIndexJ);\n }\n }\n else {\n int indexI = maxJ;\n\n int finalIndexI = 0;\n int finalIndexJ = 0;\n int value = 100000;\n for(int j=0;j<proxyDestinations.length;j++) {\n if(!columns.contains(j)) {\n if(costs[indexI][j] < value) {\n value = costs[indexI][j];\n finalIndexI = indexI;\n finalIndexJ = j;\n }\n else if( costs[indexI][j] == value ) {\n if( Math.min(proxySources[indexI].getSupply(),proxyDestinations[j].getDemand()) > Math.min(proxySources[finalIndexI].getSupply(),proxyDestinations[finalIndexJ].getDemand()) ) {\n value = costs[indexI][j];\n finalIndexI = indexI;\n finalIndexJ = j;\n }\n }\n }\n }\n\n int supply = proxySources[finalIndexI].getSupply();\n int demand = proxyDestinations[finalIndexJ].getDemand();\n\n\n this.solution.add(sources[finalIndexI], destinations[finalIndexJ], Math.min(supply,demand), costs[finalIndexI][finalIndexJ]);\n\n if ( supply < demand ) {\n proxySources[finalIndexI].setSupply(0);\n proxyDestinations[finalIndexJ].setDemand(demand - supply);\n rows.add(finalIndexI);\n }\n else if( supply > demand ) {\n proxySources[finalIndexI].setSupply(supply-demand);\n proxyDestinations[finalIndexJ].setDemand(0);\n columns.add(finalIndexJ);\n }\n else {\n proxySources[finalIndexI].setSupply(0);\n proxyDestinations[finalIndexJ].setDemand(0);\n rows.add(finalIndexI);\n columns.add(finalIndexJ);\n }\n }\n }\n this.solution.showSolution();\n }", "public Solver() {\n\t\t// TODO: Initialize the powersOf2 array with the first 16 powers of 2.\n\t}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "public static void main(String[] args) {\r\n\t\t // SET UP: user input versus a heuristic monte carlo simulator vs a random player\r\n\t\t{\r\n\t\t\tPlayer[] players = new Player[]{new Player(\"user\", DecisionType.SCANNER), new Player(\"monte carlo\", DecisionType.HEURISTIC_MONTE_CARLO_10000), new Player(\"random\", DecisionType.RANDOM)};\r\n\t\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\tplayers[0].setScanner(scanner);\r\n\r\n\t\t\tGame game = new Game(players, true, false);\r\n\t\t\tint numRounds = 10;\r\n\t\t\tfor (int i = 0; i < numRounds; i++) {\r\n\t\t\t\tgame.startNewRound();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// SET UP: three players (three user input players)\r\n//\t\t{\r\n//\t\t\tPlayer[] players = new Player[]{new Player(\"1\", DecisionType.SCANNER), new Player(\"2\", DecisionType.SCANNER), new Player(\"3\", DecisionType.SCANNER)};\r\n//\t\t\tScanner scanner = new Scanner(System.in);\r\n//\t\t\tplayers[0].setScanner(scanner);\r\n//\t\t\tplayers[1].setScanner(scanner);\r\n//\t\t\tplayers[2].setScanner(scanner);\r\n//\r\n//\t\t\tGame game = new Game(players, true, false);\r\n//\t\t\tint numRounds = 10;\r\n//\t\t\tfor (int i = 0; i < numRounds; i++) {\r\n//\t\t\t\tgame.startNewRound();\r\n//\t\t\t}\r\n//\t\t}\r\n\r\n\t\t// SET UP: a heuristic monte carlo player vs a monte carlo player vs a random player\r\n//\t\t{\r\n//\t\t\tPlayer[] players = new Player[]{new Player(\"heuristic monte carlo\", DecisionType.HEURISTIC_MONTE_CARLO_10000), new Player(\"monte carlo\", DecisionType.MONTE_CARLO_10000), new Player(\"random\", DecisionType.RANDOM)};\r\n//\t\t\tGame game = new Game(players, true, false);\r\n//\t\t\tint numRounds = 10;\r\n//\t\t\tfor (int i = 0; i < numRounds; i++) {\r\n//\t\t\t\tgame.startNewRound();\r\n//\t\t\t}\r\n//\t\t}\r\n\r\n\t\t// SET UP: three random players\r\n//\t\t{\r\n//\t\t\tPlayer[] players = new Player[]{new Player(\"1\", DecisionType.RANDOM), new Player(\"2\", DecisionType.RANDOM), new Player(\"3\", DecisionType.RANDOM)};\r\n//\t\t\tGame game = new Game(players, true, false);\r\n//\t\t\tint numRounds = 10;\r\n//\t\t\tfor (int i = 0; i < numRounds; i++) {\r\n//\t\t\t\tgame.startNewRound();\r\n//\t\t\t}\r\n//\t\t}\r\n\t}", "private Route calculate(String fromStation, String toStation) {\n\t\tif (stations==null){\r\n\t\t\tSystem.out.println(\"DEBUG RUN OF DIJKSTRA.\");\r\n\t\t\tstations = new ArrayList<Station>();\r\n\t\t\tcreateDebugMap(stations);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check if the stations exists\r\n\t\t */\r\n\t\tStation startStation = null, endStation = null;\r\n\r\n\t\t// Find starting station\r\n\t\tfor (Station thisStation : stations) {\r\n\t\t\tif (thisStation.stationName.equals(fromStation)) {\r\n\t\t\t\tSystem.out.println(\"Found startStaion in the Database\");\r\n\t\t\t\tstartStation = thisStation;\r\n\t\t\t}\r\n\t\t\tif (thisStation.stationName.equals(toStation)) {\r\n\t\t\t\tSystem.out.println(\"Found endStation in the Database\");\r\n\t\t\t\tendStation = thisStation;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Station not found. Break\r\n\t\tif (startStation == null || endStation == null) {\r\n\t\t\tSystem.out.println(\"Shit! One of the stations could not be found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Declare the variables for the algorithm\r\n\t\t */\r\n\r\n\t\t// ArrayList for keeping track of stations we have visited.\r\n\t\tArrayList<Station> visitedStations = new ArrayList<Station>();\r\n\t\t// Array for the DijkstraStations. This type holds the current best cost and best link to it.\r\n\t\tArrayList<DijkstraStation> dijkstraStations = new ArrayList<DijkstraStation>();\r\n\r\n\t\t// The station we are examining neighbors from.\r\n\t\tDijkstraStation currentStation = new DijkstraStation(new Neighbor(startStation, 0, 0), 0, startStation);\r\n\r\n\t\t// PriorityQueue for sorting unvisited DijkstraStations.\r\n\t\tNeighBorDijktstraComparetor Dijkcomparator = new NeighBorDijktstraComparetor();\r\n\t\tPriorityQueue<DijkstraStation> unvisitedDijkstraStations;\r\n\t\tunvisitedDijkstraStations = new PriorityQueue<DijkstraStation>(100, Dijkcomparator);\r\n\r\n\t\t// Variable to keep track of the goal\r\n\t\tboolean goalFound = false; // did we find the goal yet\r\n\t\tint goalBestCost = Integer.MAX_VALUE; // did we find the goal yet\r\n\r\n\t\t// Add the start staion to the queue so that the loop will start with this staiton\r\n\t\tunvisitedDijkstraStations.add(currentStation);\r\n\t\tdijkstraStations.add(currentStation);\r\n\r\n\t\t/***************************\r\n\t\t * The Dijkstra algorithm loop.\r\n\t\t ***************************/\r\n\r\n\t\twhile (!unvisitedDijkstraStations.isEmpty()) {\r\n\t\t\t// Take the next station to examine from the queue and set the next station as the currentStation\r\n\t\t\tcurrentStation = unvisitedDijkstraStations.poll();\r\n\r\n\t\t\tSystem.out.println(\"\\n============= New loop passtrough =============\");\r\n\t\t\tSystem.out.println(\"Analysing neighbors of \" + currentStation.stationRef.stationName + \". Cost to this station is: \" + currentStation.totalCost);\r\n\r\n\t\t\t// Add visited so we dont visit again.\r\n\t\t\tvisitedStations.add(currentStation.stationRef);\r\n\r\n\t\t\t// break the algorithm if the current stations totalcost if bigger than the best cost of the goal\r\n\t\t\tif (goalBestCost < currentStation.totalCost) {\r\n\t\t\t\tSystem.out.println(\"Best route to the goal has been found. Best cost is: \" + goalBestCost\r\n\t\t\t\t\t\t+ \" (To reach current station is: \" + currentStation.totalCost + \")\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check all neighbors from the currentStation to the neighBorQueue so we can examine them\r\n\t\t\tfor (Neighbor thisNeighbor : currentStation.stationRef.neighbors) {\r\n\r\n\t\t\t\t// Skip stations we have already visited\r\n\t\t\t\tif (!visitedStations.contains(thisNeighbor.stationRef)) {\r\n\t\t\t\t\t// If we havent seen this station before\r\n\t\t\t\t\t// Add it to the list of Dijkstrastations and to the PriorityQueue of unvisited stations\r\n\t\t\t\t\tif (getDijkstraStationByID(thisNeighbor.stationRef.stationid, dijkstraStations) == null) {\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = new DijkstraStation(thisNeighbor, currentStation.totalCost\r\n\t\t\t\t\t\t\t\t+ thisNeighbor.cost, currentStation.stationRef);\r\n\t\t\t\t\t\tdijkstraStations.add(thisDijkstraStation);\r\n\t\t\t\t\t\tunvisitedDijkstraStations.offer(thisDijkstraStation);\r\n\r\n\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\tgoalFound = true;\r\n\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Goal station found :) Cost to goal is: \" + goalBestCost);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"New station seen: \" + thisDijkstraStation);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Station has been seen before.\r\n\r\n\t\t\t\t\t\t// Get the station as a DijkstraStation from the array\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = getDijkstraStationByID(thisNeighbor.stationRef.stationid,\r\n\t\t\t\t\t\t\t\tdijkstraStations);\r\n\r\n\t\t\t\t\t\t// Check if the connection is better than the one we already know\r\n\t\t\t\t\t\tif (currentStation.totalCost + thisNeighbor.cost < thisDijkstraStation.totalCost) {\r\n\r\n\t\t\t\t\t\t\t// New best link found\r\n\t\t\t\t\t\t\tSystem.out.println(\"New best route found for \" + thisNeighbor.stationRef.stationName);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Old cost:\" + thisDijkstraStation.totalCost + \", New cost: \"\r\n\t\t\t\t\t\t\t\t\t+ (currentStation.totalCost + thisNeighbor.cost));\r\n\r\n\t\t\t\t\t\t\t// update the cost and via station on the DijkstraStation\r\n\t\t\t\t\t\t\tthisDijkstraStation.updateBestLink((int) (currentStation.totalCost + thisNeighbor.cost),\r\n\t\t\t\t\t\t\t\t\tcurrentStation.stationRef, thisNeighbor);\r\n\r\n\t\t\t\t\t\t\t// if this is the goal station, update the totalCost\r\n\t\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Updated cost for the goal to : \" + goalBestCost);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}// End while\r\n\r\n\t\t// Print the World:\r\n//\t\t System.out.println();\r\n//\t\t System.out.println(\"################# Printing the world ###################\");\r\n//\t\t for (DijkstraStation thisDijkstraStation : dijkstraStations) {\r\n//\t\t System.out.println(thisDijkstraStation.toString());\r\n//\t\t DijkstraStation tempStation = thisDijkstraStation;\r\n//\t\t System.out.print(\"BackTracking route =>\");\r\n//\t\t while (!tempStation.stationRef.equals(startStation)) {\r\n//\t\t System.out.print(\" \" + tempStation.cost + \" to \" + tempStation.viaStation.stationName + \" #\");\r\n//\t\t\r\n//\t\t tempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n//\t\t }\r\n//\t\t System.out.print(\" End\");\r\n//\t\t System.out.print(\"\\n\\n\");\r\n//\t\t }\r\n//\r\n\t\tif (goalFound) {\r\n\t\t\tSystem.out.println(\"Generating route to goal\");\r\n\t\t\t// create a route object with all the stations.\r\n\t\t\tRoute routeToGoal = new Route(fromStation, toStation);\r\n\t\t\t// get the goalStation as a DijkstraStation Type\r\n\t\t\tDijkstraStation goalStation = getDijkstraStationByID(endStation.stationid, dijkstraStations);\r\n\r\n\t\t\trouteToGoal.cost = goalStation.totalCost;\r\n\t\t\trouteToGoal.price = (int) goalStation.totalCost;\r\n\r\n\t\t\t// Find the route to the goal\r\n\t\t\tDijkstraStation tempStation = goalStation;\r\n\r\n\t\t\twhile (!tempStation.stationRef.equals(startStation)) {\r\n\t\t\t\t// Add the station to the route table\r\n\t\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.cost, tempStation.cost,\r\n\t\t\t\t\t\ttempStation.stationRef.stationName, tempStation.stationRef.stationid);\r\n\t\t\t\t\r\n\t\t\t\t//Fix region string\r\n\t\t\t\tString regionString=\"\";\r\n\t\t\t\tfor (Integer regionID : tempStation.stationRef.region) {\r\n\t\t\t\t\tregionString.concat(regionID+ \",\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tthisStation.region = regionString.substring(0, regionString.length() - 1);\r\n\t\t\t\t\r\n\t\t\t\t//Add the station\r\n\t\t\t\trouteToGoal.route.add(0, thisStation);\r\n\t\t\t\t// Go to the previous station\r\n\t\t\t\ttempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n\t\t\t}\r\n\t\t\t// add the starting station\r\n\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.stationRef.latitude, tempStation.stationRef.longitude, tempStation.stationRef.stationName,\r\n\t\t\t\t\ttempStation.stationRef.stationid);\r\n\t\t\trouteToGoal.route.add(0, thisStation);\r\n\r\n\t\t\t// print the route\r\n\t\t\t//System.out.println(\"Printing best route to the Goal:\\n\" + routeToGoal.toString());\r\n\r\n\t\t\treturn routeToGoal;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n int input = 0;\n int armLength;\n int solution = 0;\n\n // get the puzzle input\n System.out.print(\"Please provide the puzzle input: \");\n input = new Scanner(System.in).nextInt();\n\n /// PART 1\n // figure out which spiral input is on to calculate distance on one axis\n armLength = SpiralUtils.lengthOfSprialArm(input);\n solution = (armLength - 1) / 2;\n\n // find the midpoints of the spiral the input is on\n List<Integer> midpoints = SpiralUtils.midpointsOfSprialArm(armLength);\n\n // calculate the smallest distance from any midpoint to our input for other access\n solution += SpiralUtils.smallestDistanceFromMidpoints(input, midpoints);\n\n System.out.println(\"The solution to part 1 is: \" + solution);\n\n /// PART 2\n // this part is less elegant, as I'm just going to create the spiral instead of run calculations\n System.out.println(\"The solution to part 2 is: \" + SpiralUtils.spiralUntilAtLeast(input));\n }", "public static void main(String[] args) throws Exception {\n\n String[] options=new String[2];\n options[0]=\"Smart\";\n options[1]=\"Dummy\";\n String choice=\"\";\n String availableChars[] = {\"5x5maze.txt\",\"7x7maze.txt\",\"8x8maze.txt\",\"9x9maze.txt\",\"10x10maze.txt\",\"12x12maze.txt\"};\n\n int choiceG = JOptionPane.showOptionDialog(JOptionPane.getRootFrame(),\n \"Would you like to use the smart or dummy solution?\",\n \"Flow Free solver\",0,\n JOptionPane.INFORMATION_MESSAGE,null,options,null\n );\n if(choiceG==0){\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,false);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n else{\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,true);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n\n\n\n }", "public SolutionSet execute() throws JMetalException, ClassNotFoundException, IOException {\n initialization();\n createInitialSwarm() ;\n evaluateSwarm();\n initializeLeaders() ;\n initializeParticlesMemory() ;\n updateLeadersDensityEstimator() ;\n\n while (!stoppingCondition()) {\n computeSpeed(iterations_, maxIterations_);\n computeNewPositions();\n perturbation();\n evaluateSwarm();\n updateLeaders() ;\n updateParticleMemory() ;\n updateLeadersDensityEstimator() ;\n iterations_++ ;\n }\n\n tearDown() ;\n return paretoFrontApproximation() ;\n }", "public void start(){\n tuningParams = new HashMap<>();\n running = true;\n int valsListIndex = 0;\n Gamepad gamepad1 = FTCUtilities.getOpMode().gamepad1;\n Switch upSwitch = new Switch();\n Switch downSwitch = new Switch();\n\n\n for(String name: params.keySet()){\n tuningParams.put(name,0.0);\n }\n\n while (running){\n for(String name : paramNames){\n String output = \"\";\n\n output += name;\n output += \": \";\n output += Double.toString(tuningParams.get(name));\n if(paramNames.get(valsListIndex).equals(name)){\n output += \"<---\"; // Indicator so that we know which value we're editing\n }\n\n FTCUtilities.addLine(output);\n }\n\n if(gamepad1.dpad_up) {\n if (upSwitch.flip()) {\n if (valsListIndex >= 1) {\n valsListIndex -= 1;\n } else {\n valsListIndex = paramNames.size() - 1; //wrap to top\n }\n }\n } else if(gamepad1.dpad_down){\n if (downSwitch.flip()) {\n if (valsListIndex < paramNames.size() - 1) {\n valsListIndex += 1;\n } else {\n valsListIndex = 0; // wrap around to 0\n }\n }\n } else {\n String currentValKey = paramNames.get(valsListIndex);\n double currentValDouble = tuningParams.get(currentValKey);\n currentValDouble += gamepad1.right_trigger * params.get(currentValKey);\n currentValDouble -= gamepad1.left_trigger * params.get(currentValKey);\n tuningParams.put(currentValKey, currentValDouble);\n }\n FTCUtilities.updateOpLogger();\n\n if (gamepad1.x) {\n stop();\n }\n }\n }", "public static void main(String[] args) {\n PointNode A = new PointNode(\"A\",0,0);\r\n PointNode B = new PointNode(\"B\",20,10);\r\n PointNode C = new PointNode(\"C\",40,20);\r\n PointNode D = new PointNode(\"D\",30,30);\r\n PointNode E = new PointNode(\"E\",20,50);\r\n PointNode F = new PointNode(\"F\",-10,40);\r\n PointNode G = new PointNode(\"G\",10,20);\r\n PointNode H = new PointNode(\"H\",10,40);\r\n PointNode I = new PointNode(\"I\",30,40);\r\n PointNode K = new PointNode(\"K\",30,20);\r\n PointNode L = new PointNode(\"L\",40,40);\r\n\r\n A.connectWithPoint(B);\r\n A.connectWithPoint(G);\r\n G.connectWithPoint(F);\r\n G.connectWithPoint(H);\r\n G.connectWithPoint(D);\r\n K.connectWithPoint(L);\r\n B.connectWithPoint(C);\r\n D.connectWithPoint(I);\r\n D.connectWithPoint(E);\r\n L.connectWithPoint(E);\r\n F.connectWithPoint(E);\r\n H.connectWithPoint(E);\r\n I.connectWithPoint(E);\r\n A.connectWithPoint(K);\r\n\r\n Route route = searchWay(A, E);\r\n System.out.println(route);\r\n }", "public static List<Vec2i> solve(int[][] grid, Vec2i start, Vec2i goal, Heuristic h){\n if(h == null){ //if null replace with default heuristic\n h = new Heuristic() {\n @Override\n\n public double eval(Vec2i loc) {\n double dx = (loc.x - goal.x);\n double dy = (loc.y - goal.y);\n return Math.sqrt(dx*dx + dy*dy);\n }\n };\n }\n\n PriorityQueue<GridLocation> edge = new PriorityQueue<GridLocation>(10, AStarGrid::compareGridLocations);\n edge.add(new GridLocation(start,0));\n\n Map<Vec2i, Vec2i> cameFrom = new HashMap<Vec2i, Vec2i>();\n Map<Vec2i, Double> g = new HashMap<Vec2i, Double>(); //distance to node\n g.put(start,0.0);\n Map<Vec2i, Double> f = new HashMap<Vec2i, Double>(); //distance from start to goal through this node\n f.put(start,h.eval(start));\n //f = g + h\n\n while(!edge.isEmpty()){\n\n Vec2i current = edge.poll().loc;\n if(current.x == goal.x && current.y == goal.y){\n return reconstructPath(cameFrom, current);\n }\n\n LinkedList<Vec2i> neighbors = new LinkedList<Vec2i>();\n if(current.x != 0 && grid[current.x - 1][current.y] == 0)\n neighbors.add(new Vec2i(current.x - 1,current.y));\n if(current.x != grid.length-1 && grid[current.x + 1][current.y] == 0)\n neighbors.add(new Vec2i(current.x + 1,current.y));\n if(current.y != 0 && grid[current.x][current.y - 1] == 0)\n neighbors.add(new Vec2i(current.x,current.y - 1));\n if(current.y != grid[0].length-1 && grid[current.x][current.y + 1] == 0)\n neighbors.add(new Vec2i(current.x,current.y + 1));\n\n\n for(Vec2i neighbor: neighbors){\n double score = g.get(current) + 1;\n if(!g.containsKey(neighbor) || score < g.get(neighbor)){\n cameFrom.put(neighbor,current);\n g.put(neighbor, score);\n f.put(neighbor, score + h.eval(neighbor));\n if(!edge.contains(neighbor)){\n edge.add(new GridLocation(neighbor,score + h.eval(neighbor)));\n }\n }\n }\n }\n //No path was found\n return null;\n }", "public void findTour( int x, int y, int moves )\n {\n delay(50); //slow it down enough to be followable\n if (solved) System.exit(0);\n\n //primary base case: tour completed\n if (moves == (sideLength * sideLength)) {\n solved = true;\n }\n //other base case: stepped off board or onto visited cell\n if ( board[x][y] != 0 ) {\n return;\n }\n //otherwise, mark current location\n //and recursively generate tour possibilities from current pos\n else {\n board[x][y] = moves;\n System.out.println(this);\n delay(10); //uncomment to slow down enough to view\n\n /*======================================\n Recursively try to solve (find tour) from\n each of knight's available moves.\n . e . d .\n f . . . c\n . . @ . .\n g . . . b\n . h . a .\n ======================================*/\n // right and down\n findTour(x + 1, y + 2, moves + 1);\n // left and down\n findTour(x - 1, y + 2, moves + 1);\n // down and right\n findTour(x + 2, y + 1, moves + 1);\n // up and left\n findTour(x - 2, y - 1, moves + 1);\n // right and up\n findTour(x + 1, y - 2, moves + 1);\n // left and up\n findTour(x - 1, y - 2, moves + 1);\n // up and right\n findTour(x + 2, y - 1, moves + 1);\n // down and left\n findTour(x - 2, y + 1, moves + 1);\n\n //If made it this far, path did not lead to tour, so back up.\n board[x][y] = 0;\n System.out.println(this);\n }\n }", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "public static void searchAlgortihm(int x, int y)\n\t{\n\t\tint dx = x;\n\t\tint dy = y;\n\t\tint numMovements = 1; // variable to indicate the distance from the user\n\t\t\n\t\t//check starting position\n\t\tcheckLocation(dx,dy, x, y);\n\n\t\tint minCoords = MAX_COORDS;\n\t\tminCoords *= -1; // max negative value of the grid\n\n\t\t// while - will search through all coordinates until it finds 5 events \n\t\twhile(numMovements < (MAX_COORDS*2)+2 && (closestEvents.size() < 5))\n\t\t{\n\t\t\t//first loop - \n\t\t\tfor(int i = 1; i <= 4; i++)\n\t\t\t{\n\t\t\t\tif(i == 1){ // // moving south-west\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = j-x;\n\t\t\t\t\t\tdx *= -1; // reverse sign\n\t\t\t\t\t\tdy = (numMovements-j)+y;\n\t\t\t\t\t\tif((dx >= minCoords) && (dy <= MAX_COORDS)) // only check the coordinates if they are on the grid\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"1 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 2){ // moving south-east\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = (numMovements-j)-x;\n\t\t\t\t\t\tdx *= -1; // change sign\n\t\t\t\t\t\tdy = j-y; \n\t\t\t\t\t\tdy *= -1; // change sign\n\t\t\t\t\t\tif((dx >= minCoords) && (dy >= minCoords))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"2 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 3){ // moving north-east\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = j+x;\n\t\t\t\t\t\tdy = (numMovements-j)-y;\n\t\t\t\t\t\tdy *= -1;\n\t\t\t\t\t\tif((dx <= MAX_COORDS) && (dy >= minCoords))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"3 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 4){ // moving north-west\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = (numMovements-j)+x;\n\t\t\t\t\t\tdy = j+y;\n\t\t\t\t\t\tif((dx <= MAX_COORDS) && (dy <= MAX_COORDS))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"4 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t// increment the number of movements, from user coordinate\n\t\t\tnumMovements++;\n\n\t\t} // End of while\n\t}", "public static void main(String[] args)\n {\n int N = 30;\n int[] moves = new int[N];\n /*for (int i = 0; i < N; i++)\n moves[i] = -1;*/\n Arrays.fill(moves,-1);\n\n // Ladders\n moves[2] = 21;\n moves[4] = 7;\n moves[10] = 25;\n moves[19] = 28;\n\n // Snakes\n moves[26] = 0;\n moves[20] = 8;\n moves[16] = 3;\n moves[18] = 6;\n //efficiently find shortest path using Breadth First Search of the graph.\n System.out.println(\"Min Dice throws required is \" + getMinDiceThrows(moves, N));\n }", "public void solve(int startX, int startY, int endX, int endY) {\r\n // re-inicializar células para encontrar o caminho\r\n for (Cell[] cellrow : this.cells) {\r\n for (Cell cell : cellrow) {\r\n cell.parent = null;\r\n cell.visited = false;\r\n cell.inPath = false;\r\n cell.travelled = 0;\r\n cell.projectedDist = -1;\r\n }\r\n }\r\n // células ainda estão sendo consideradas\r\n ArrayList<Cell> openCells = new ArrayList<>();\r\n // célula sendo considerada\r\n Cell endCell = getCell(endX, endY);\r\n if (endCell == null) return; // saia se terminar fora dos limites\r\n { // bloco anônimo para excluir o início, porque não usado posteriormente\r\n Cell start = getCell(startX, startY);\r\n if (start == null) return; // saia se começar fora dos limites\r\n start.projectedDist = getProjectedDistance(start, 0, endCell);\r\n start.visited = true;\r\n openCells.add(start);\r\n }\r\n boolean solving = true;\r\n while (solving) {\r\n if (openCells.isEmpty()) return; // sair, nenhum caminho\r\n // classifique openCells de acordo com a menor distância projetada\r\n Collections.sort(openCells, new Comparator<Cell>() {\r\n @Override\r\n public int compare(Cell cell1, Cell cell2) {\r\n double diff = cell1.projectedDist - cell2.projectedDist;\r\n if (diff > 0) return 1;\r\n else if (diff < 0) return -1;\r\n else return 0;\r\n }\r\n });\r\n Cell current = openCells.remove(0); // célula pop menos projetada\r\n if (current == endCell) break; // no final\r\n for (Cell neighbor : current.neighbors) {\r\n double projDist = getProjectedDistance(neighbor,\r\n current.travelled + 1, endCell);\r\n if (!neighbor.visited || // ainda não visitado\r\n projDist < neighbor.projectedDist) { // melhor caminho\r\n neighbor.parent = current;\r\n neighbor.visited = true;\r\n neighbor.projectedDist = projDist;\r\n neighbor.travelled = current.travelled + 1;\r\n if (!openCells.contains(neighbor))\r\n openCells.add(neighbor);\r\n }\r\n }\r\n }\r\n // criar caminho do fim ao começo\r\n Cell backtracking = endCell;\r\n backtracking.inPath = true;\r\n while (backtracking.parent != null) {\r\n backtracking = backtracking.parent;\r\n backtracking.inPath = true;\r\n }\r\n }", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "private void cs8() {\n\t\t\t\n\t\n\t\t\tif(new Tile(3088,3092,0).matrix(ctx).reachable()){\n\t\t\t\t\n\t\t\t\tif(new Tile(3079,3084,0).distanceTo(ctx.players.local().tile())<7){\n\t\t\t\t\tMethod.interactO(9709, \"Open\", \"Door\");\n\t\t\t\t}else ctx.movement.step(new Tile(3079,3084,0));\n\t\t\t\t\n\t\t\t}else if(new Tile(3090,3092,0).distanceTo(ctx.players.local().tile())<7){\n\t\t\t\tfinal int[] bounds = {140, 108, -84, 144, -64, 136};\n\t\t\t\tGameObject gate = ctx.objects.select().id(GATEBYFISH).each(Interactive.doSetBounds(bounds)).select(Interactive.areInViewport()).nearest().poll();\n\t\t\t\tgate.interact(\"Open\",\"\");\n\t\t\t}else ctx.movement.step(new Tile(3090,3092,0));\n\t\t\t\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n int[] example1 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 2, 4, 6, 8, 10, 12, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target1 = 59;\n int[] example2 = {2, 4, 6, 8, 10, 12, 14, 16, 18, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target2 = 59;\n int[] example3 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 2, 4, 6, 8, 10, 12, 14, 16, 18};\n int target3 = 34;\n\n int[] result1;\n int[] result2;\n int[] result3;\n\n // 1.Brute Force\n System.out.println(\"Brute Force start\");\n long startBF = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Brute Force result1 \", result1);\n println(\"Brute Force result2 \", result2);\n println(\"Brute Force result3 \", result3);\n System.out.println(\"Brute Force costs: \" + (System.currentTimeMillis() - startBF));\n\n // 2.Two Pass Hash Table\n System.out.println(\"Two Pass Hash Table start\");\n long startTP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startTP));\n\n // 3.One Pass Hash Table\n System.out.println(\"One Pass Hash Table start\");\n long startOP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startOP));\n }", "public static String searchSmart(int player,int mode,int move){\n\tboolean flag = false;\r\n\tString inp = null;\r\n\tint row=0,col=0;\r\n\tint row1=-1,col1=-1;\r\nif(mode==3){\r\n\tif(move==2){\r\n\t\tif(gamebd[0][1]==2||gamebd[1][0]==2){\r\n\t\t\tinp=3+\" \"+3;\r\n\t\t\treturn inp;\r\n\t\t}\r\n\t\t\r\n\t\telse if(gamebd[2][1]==2||gamebd[1][2]==2){\r\n\t\t\tinp=1+\" \"+1;\r\n\t\t\treturn inp;\r\n\t\t}}\r\n}\r\nfor(int i=0;i<3;i++){//checks if any of the rows have 2 computer moves and third empty so as to fill it and win\r\n\tint count=0;\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int j=0;j<3;j++){\r\n\t\tif(gamebd[i][j]==player){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tif(gamebd[i][j]==0)\r\n\t\t\t\r\n\t\t{\r\n\t\t\trow1=i;\r\n\t\t\tcol1=j;\r\n\t\t}\r\n\t}\r\n\r\n\tif(count==2&&row1>=0&&col1>=0){\r\n\t\t//System.out.println(\"rowon\");\r\n\t\trow=row1+1;\r\n\t\tcol=col1+1;\r\n\t\tinp=row+\" \"+col;\r\n\t\tflag=true;\r\n\t\treturn inp;\r\n\t}}\r\nfor(int j=0;j<3;j++){//checks if any of the columns have 2 computer moves and third empty so as to fill it and win\r\n\r\n\tint count=0;\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int i=0;i<3;i++){\r\n\t\tif(gamebd[i][j]==player){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tif(gamebd[i][j]==0)\r\n\t\t{\r\n\t\t\trow1=i;\r\n\t\t\tcol1=j;\r\n\t\t}\r\n\t}\r\n\tif(count==2&&row1>=0&&col1>=0){\r\n\t\trow=row1+1;\r\n\t\tcol=col1+1;\r\n\t\tinp=row+\" \"+col;\r\n\t\tflag=true;\r\n\t\treturn inp;\r\n\t}}\r\n//The below code checks if any of the diagonals have 2 computer moves and third empty so as to fill it or 2 human moves and third empty so as to block it \r\nint count=0;\r\nint countopp=0;\r\nrow1=-1;\r\ncol1=-1;\r\nfor(int i=0;i<3;i++){\t\r\nif(gamebd[i][i]==player)\r\n\t\tcount ++;\t\r\nif(gamebd[i][i]==0)\r\n\t\trow1=col1=i;\r\n}\r\n\tif((count==2)&&row1>=0&&col1>=0)\r\n\t{\r\n\t\tcol=row=(row1+1);\r\n\tinp=row+\" \"+col;\r\n\tflag=true;\r\n\treturn inp;\r\n}\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int i=0;i<3;i++){\t\r\n\t\tif(gamebd[i][i]!=player&&gamebd[i][i]>0)\r\n\t\t\t\tcountopp ++;\t\r\n\t\tif(gamebd[i][i]==0)\r\n\t\t\t\trow1=col1=i;\r\n\t\t\t}\r\n\tif((countopp==2)&&row1>=0&&col1>=0)\r\n\t{\r\n\t\tcol=row=(row1+1);\r\n\tinp=row+\" \"+col;\r\n\tflag=true;\r\n\treturn inp;\r\n}\r\n\t count=0;\r\n\t countopp=0;\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int i=2;i>=0;i--){\r\n\t\tif(gamebd[i][2-i]==player)\r\n\t\t\tcount ++;\r\n\t\tif(gamebd[i][2-i]==0)\r\n\t\t{\r\n\t\t\trow1=i;\r\n\t\t\tcol1=2-i;\r\n\t\t}\r\n\t\t}\r\n\t\tif((count==2)&&row1>=0&&col1>=0)\r\n\t\t{\r\n\t\t\trow=row1+1;\r\n\t\t\tcol=col1+1;\r\n\t\tinp=row+\" \"+col;\r\n\t\tflag=true;\r\n\t\treturn inp;\r\n\t}\r\n\t\trow1=-1;\r\n\t\tcol1=-1;\r\n\t\tfor(int i=2;i>=0;i--){\r\n\t\t\tif(gamebd[i][2-i]!=player&&gamebd[i][2-i]>0)\r\n\t\t\tcountopp++;\r\n\t\t\tif(gamebd[i][2-i]==0)\r\n\t\t\t{\r\n\t\t\t\trow1=i;\r\n\t\t\t\tcol1=2-i;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tif((countopp==2)&&row1>=0&&col1>=0)\r\n\t\t\t{\r\n\t\t\t\trow=row1+1;\r\n\t\t\t\tcol=col1+1;\r\n\t\t\tinp=row+\" \"+col;\r\n\t\t\tflag=true;\r\n\t\t\treturn inp;\r\n\t\t}\r\n\tfor(int i=0;i<3;i++){//checks if any of the rows have 2 human moves and third empty so as to block it and not allow human to win\r\n\t\t countopp=0;\r\n\t\t row1=-1;\r\n\t\t\tcol1=-1;\r\n\t\tfor(int j=0;j<3;j++){\r\n\t\t\tif(gamebd[i][j]!=player&&gamebd[i][j]>0){\r\n\t\t\t\tcountopp++;\r\n\t\t\t}\r\n\t\t\tif(gamebd[i][j]==0)\r\n\t\t\t{\r\n\t\t\t\trow1=i;\r\n\t\t\t\tcol1=j;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(countopp==2&&row1>=0&&col1>=0){\r\n\t\t\trow=row1+1;\r\n\t\t\tcol=col1+1;\r\n\t\t\tinp=row+\" \"+col;\r\n\t\t\tflag=true;\r\n\t\t\treturn inp;\r\n\t\t}}\r\n\tfor(int j=0;j<3;j++){//checks if any of the columns have 2 human moves and third empty so as to block human and not allow to win\r\n\t\t countopp=0;\r\n\t\t row1=-1;\r\n\t\t\tcol1=-1;\r\n\t\tfor(int i=0;i<3;i++){\r\n\t\t\tif(gamebd[i][j]!=player&&gamebd[i][j]>0){\r\n\t\t\t\tcountopp++;\r\n\t\t\t}\r\n\t\t\tif(gamebd[i][j]==0)\r\n\t\t\t{\r\n\t\t\t\trow1=i;\r\n\t\t\t\tcol1=j;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(countopp==2&&row1>=0&&col1>=0){\r\n\t\t\trow=row1+1;\r\n\t\t\tcol=col1+1;\r\n\t\t\tinp=row+\" \"+col;\r\n\t\t\tflag=true;\r\n\t\t\treturn inp;\r\n\t\t}}\r\nif(flag==false){//Now since all cases are checked(of winning and not allowing human to win), computer will play a random move\r\nRandom rand = new Random();\r\nint min=0;\r\nint max=2;\r\nint a,b;\r\ndo{\r\n\t a = rand.nextInt(max-min+1)+min;\r\n\t b = rand.nextInt(max-min+1)+min;\r\n\t //System.out.println(a+\"\"+b);\r\n}while(gamebd[a][b]!=0);\r\ninp=(a+1)+\" \"+(b+1);\r\n}\r\nreturn inp;\r\n}", "public static void main(String[] args) throws Exception {\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedReader br = new BufferedReader(new FileReader(\"lamps.in\")); //new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new FileWriter(\"lamps.out\"));\n N = Integer.parseInt(br.readLine());\n C = Integer.parseInt(br.readLine());\n\n on = new int[N];\n off = new int[N];\n StringTokenizer st = new StringTokenizer(br.readLine());\n // unfortunately, I have to switch from 1 to N to 0 to N-1\n while (st.hasMoreTokens()) {\n int x = Integer.parseInt(st.nextToken());\n if (x != -1) {\n on[x-1] = 1;\n }\n }\n st = new StringTokenizer(br.readLine());\n while (st.hasMoreTokens()) {\n int x = Integer.parseInt(st.nextToken());\n if (x != -1) {\n off[x-1] = 1;\n }\n }\n\n res = new TreeSet<>();\n visited = new HashSet<>();\n// visited = new HashSet[C]; // Visited stores, at a given number of moves done, what states have been seen\n// for (int i = 0; i < C; i++) {\n// visited[i] = new HashSet<>();\n// }\n // clever, accidentally, but pad the front with one extra one, which is inert.\n // Later, we'll remove it, but this preserves the 0's\n BigInteger start = one.shiftLeft(N+1).subtract(one);\n\n dfs(start,0);\n\n if (res.size() == 0) {\n out.println(\"IMPOSSIBLE\");\n }\n else {\n TreeSet<String> sorted = new TreeSet<>();\n for (BigInteger X : res) {\n String str = X.toString(2);\n sorted.add(reverse(str));\n }\n for (String str : sorted)\n out.println(str.substring(0, N));\n }\n out.close();\n }", "@Override\n public void runOpMode() throws InterruptedException {\n initialize();\n\n waitForStart();\n\n /* drivetrain.Strafe(1F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.LEFT); */\n\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.LEFT);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.1f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.3f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.5f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 2f, this);\n\n\n /*drivetrain.Strafe(.75F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.LEFT);\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n\n\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000); */\n\n drivetrain.StopAll();\n\n\n\n }", "public static void main(String[] args) {\n // size of square board\n int N = 6;\n int[] knightPos= {4, 5};\n int[] targetPos= {1, 1};\n System.out.println(minStepToReachTarget(knightPos, targetPos, N));\n \n N = 201;\n knightPos = new int[] {200, 200};\n targetPos = new int[] {0, 0};\n System.out.println(minStepToReachTarget(knightPos, targetPos, N));\n }", "public static void main(String[] args) {\n char [][] strtMaze = new char[][]{\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n {'#', '.', '.', '.', '#', '.', '.', '.', '.', '.', '.', '#'},\n {'.', '.', '#', '.', '#', '.', '#', '#', '#', '#', '.', '#'},\n {'#', '#', '#', '.', '#', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '#', '#', '#', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '.', '#', 'F', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '#', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '.', '#', '#', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '#', '.', '.', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n };\n //Get start position of person\n int pstartx = 2;\n int pstarty = 0;\n //Get start position of hand\n int hstartx = 3; //If same as pstart(facing north south)\n int hstarty = 0;//If same as pstart (facing east west)\n RecursionOutLab maze1 = new RecursionOutLab();\n maze1.maze(strtMaze, pstartx, pstarty, hstartx, hstarty);\n }", "protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "public static Vector<int []> aStar(int[] startNode,int[] endNode, mapNode[][] nodes, String method){\n\t\t\t\tfor(int i = 0; i < nodes.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int j = 0; j < nodes[i].length;j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnodes[i][j].setTotCost(999999999);//set the initial distance to INF\r\n\t\t\t\t\t\tnodes[i][j].gridPosition[0] = i;//save current node x position\r\n\t\t\t\t\t\tnodes[i][j].gridPosition[1] = j;//save current node y position\r\n\t\t\t\t\t\tnodes[i][j].setNodeVistied(false);//set all nodes are not visited yet\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\r\n\t\tVector<int []> shortestPath;\r\n\t\tVector<mapNode> closeSet;//the set of nodes already evaluated\r\n\t\tcloseSet = new Vector<mapNode>();\r\n\t\tVector<mapNode> openSet;//the set of nodes to be evaluated\r\n\t\topenSet = new Vector<mapNode>();\r\n\t\tfloat bestCost;\r\n\t\t//Add the start node into open set\r\n\t\tmapNode start = new mapNode();\r\n\t\tnodes[startNode[0]][startNode[1]].setHeuristics(0);\r\n\t\tnodes[startNode[0]][startNode[1]].setTotCost(0);\r\n\t\tstart = nodes[startNode[0]][startNode[1]];\r\n\t\topenSet.add(start);\r\n\t\t\r\n\t\twhile(openSet.size() != 0)\r\n\t\t{\r\n\t\t\t//sort openSet from lowest cost to highest\r\n\t\t\tint j;\r\n\t\t\tfor(int i = 1; i < openSet.size(); i++){\r\n\t\t\t\tj = i;\r\n\t\t\t\twhile(j > 0 && openSet.get(j-1).getTotCost() > openSet.get(j).getTotCost()){\r\n\t\t\t\t\tCollections.swap(openSet, j, j-1);\r\n\t\t\t\t\tj = j-1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//the node in openset having the lowest cost\r\n\t\t\tmapNode tempNode = new mapNode();\r\n\t\t\ttempNode = openSet.get(0);\r\n\t\t\t\r\n\t\t\t//End case if the condition have approached\r\n\t\t\tif(tempNode.gridPosition[0] == endNode[0] && tempNode.gridPosition[1] == endNode[1]){\r\n\t\t\t\tshortestPath = nodes[endNode[0]][endNode[1]].getTotPath();\r\n\t\t\t\tif(shortestPath.size() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tshortestPath.add(endNode);\r\n\t\t\t\t// No result was found -- only the end node\r\n\t\t\t\treturn shortestPath;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmapNode tempTopNode = new mapNode();\r\n\t\t\tmapNode tempBottomNode = new mapNode();\r\n\t\t\tmapNode tempLeftNode = new mapNode();\r\n\t\t\tmapNode tempRightNode = new mapNode();\r\n\t\t\t\r\n\t\t\t//remove current from open set\r\n\t\t\topenSet.remove(0);\r\n\t\t\t//add current to close set\r\n\t\t\tcloseSet.add(tempNode);\r\n\t\t\t\r\n\t\t\t//update Top node information from original nodes matrix\r\n\t\t\tif(tempNode.topNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = nodes[tempNode.topNode.gridPosition[0]][tempNode.topNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Bottom node information from original nodes matrix\r\n\t\t\tif(tempNode.bottomNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = nodes[tempNode.bottomNode.gridPosition[0]][tempNode.bottomNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Left node information from original nodes matrix\r\n\t\t\tif(tempNode.leftNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = nodes[tempNode.leftNode.gridPosition[0]][tempNode.leftNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Right node information from original nodes matrix\r\n\t\t\tif(tempNode.rightNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = nodes[tempNode.rightNode.gridPosition[0]][tempNode.rightNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Manhattan, Euclidean method\r\n\t\t\tif(method.equals(\"manhattan\")){\r\n\t\t\t\t//update neighbor nodes\r\n\t\t\t\t//update top Node\r\n\t\t\t\tif(tempTopNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+manhattan(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempTopNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempTopNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempTopNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && tempTopNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempTopNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempTopNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempTopNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.topNode.gridPosition[0]][tempNode.topNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && checkOpenSet(openSet, tempTopNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempTopNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update bottom node\r\n\t\t\t\tif(tempBottomNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+manhattan(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempBottomNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempBottomNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempBottomNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && tempBottomNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempBottomNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempBottomNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempBottomNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.bottomNode.gridPosition[0]][tempNode.bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && checkOpenSet(openSet, tempBottomNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempBottomNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Left node\r\n\t\t\t\tif(tempLeftNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost =hValue+manhattan(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempLeftNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempLeftNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempLeftNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && tempLeftNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempLeftNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempLeftNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempLeftNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.leftNode.gridPosition[0]][tempNode.leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && checkOpenSet(openSet, tempLeftNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempLeftNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Right node\r\n\t\t\t\tif(tempRightNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+manhattan(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempRightNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempRightNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempRightNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && tempRightNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempRightNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempRightNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempRightNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.rightNode.gridPosition[0]][tempNode.rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && checkOpenSet(openSet, tempRightNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempRightNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Manhattan, Euclidean method\r\n\t\t\telse if(method.equals(\"euclidean\")){\r\n\t\t\t\t//update neighbor nodes\r\n\t\t\t\t//update top Node\r\n\t\t\t\tif(tempTopNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+Euclidean(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempTopNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempTopNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempTopNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && tempTopNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempTopNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempTopNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempTopNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.topNode.gridPosition[0]][tempNode.topNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && checkOpenSet(openSet, tempTopNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempTopNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update bottom node\r\n\t\t\t\tif(tempBottomNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+Euclidean(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempBottomNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempBottomNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempBottomNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && tempBottomNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempBottomNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempBottomNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempBottomNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.bottomNode.gridPosition[0]][tempNode.bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && checkOpenSet(openSet, tempBottomNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempBottomNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Left node\r\n\t\t\t\tif(tempLeftNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost =hValue+Euclidean(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempLeftNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempLeftNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempLeftNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && tempLeftNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempLeftNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempLeftNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempLeftNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.leftNode.gridPosition[0]][tempNode.leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && checkOpenSet(openSet, tempLeftNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempLeftNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Right node\r\n\t\t\t\tif(tempRightNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+Euclidean(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempRightNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempRightNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempRightNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && tempRightNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempRightNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempRightNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempRightNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.rightNode.gridPosition[0]][tempNode.rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && checkOpenSet(openSet, tempRightNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempRightNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tshortestPath = nodes[endNode[0]][endNode[1]].getTotPath();\r\n\t\tif(shortestPath.size() == 1)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tshortestPath.add(endNode);\r\n\t\t// No result was found -- only the end node\r\n\t\treturn shortestPath;\t\r\n\t}", "public static void main(String[] args) {\n//\t\tmotorGrab.setSpeed(360);\r\n//\t\tdouble rotationGrab=(-0.02)*90/0.01;\r\n//\t\tmotorGrab.rotate(-(int)rotationGrab);\r\n//\t\t\r\n\t\t\r\n\t\tposFork.add(rack11); posFork.add(rack21);posFork.add(rack31);posFork.add(rack41);\r\n\t\tposFork.add(rack42); posFork.add(rack32);posFork.add(rack22);posFork.add(rack12);\r\n\t\tposFork.add(rack13); posFork.add(rack23);posFork.add(rack33);posFork.add(rack43);\r\n\t\tposFork.add(rack44); posFork.add(rack34);posFork.add(rack24);posFork.add(rack14);\r\n\t\tpositionFork=new double[3];\r\n\t\tpositionFork[0]=0.30;\r\n\t\tpositionFork[1]=0.05;\r\n\t\tpositionFork[2]=0.05;\r\n\r\n\t\tgoToInitialState();\r\n\t\tint i=0;\r\n\t\twhile(i<15)\r\n\t\t{\r\n\t\t\tscanPos(i);\r\n\t\t\tmoveFork(posFork.get(i).getCoordinates(),posFork.get(i+1).getCoordinates());\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t// This moment the full rack is scanned, starting from the first shelf on the first row. The code below, could be written inside the while loop.\r\n\t\t// Then, we can for example break the while loop immediately when one column seems to be empty.\r\n\t\t// The code below will also be used to check if the class works\r\n\t\t// Idea if the movement of the motors is not accurate enough: use the color sensor to decide what the position of the robot is.\r\n\t\tint[] emptyOrMistake=new int[16];//0: right color, 1: empty, 2: wrong color \r\n\t\tfor(int j=0;j<16;j++)\r\n\t\t{\r\n\t\t\tif(posFork.get(j).getColorBlock()!=posFork.get(j).getColorShelf() && posFork.get(j).getColorBlock()!=5 )\r\n\t\t\t{\r\n\t\t\t\temptyOrMistake[j]=2;\r\n\t\t\t}\r\n\t\t\tif(posFork.get(j).getColorBlock()==5)\r\n\t\t\t{\r\n\t\t\t\temptyOrMistake[j]=1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\twhile(Button.readButtons()==0) {\r\n\t\tfor(int k=0;k<16;k++)\r\n\t\t{\r\n\t\t\tSystem.out.println(emptyOrMistake[k]);\r\n\t\t}\r\n\t\t}\r\n\t\t// conditions for this class to be called: the robot shouldn't have a box on its fork, it should not have an assignment to deliver a box\r\n\t\t// it is not very efficient to scan each time a box is placed in the warehouse --> it could be an idea to give the robot different assignements after scanning one time\r\n\t\t\r\n\t}", "@Test\n public void test1() {\n System.out.println(\"A* Test i1\"); \n \n Solver solver = new Solver(new TileWorld(\"i1.png\"), SearchStrategy.A_STAR);\n AlgorithmResults expResult = new AlgorithmResults(580, 967);\n AlgorithmResults result = solver.solve();\n \n print(result, expResult);\n \n assertEquals(\"BestPathCost does not match!\", expResult.getBestPathCost(), result.getBestPathCost());\n }", "@Override\n protected void doAlgorithmA1() {\n int xP = 0;\n int yP = 0;\n\n\n //Taking the variable out of the list that are in the bounds\n //Testing that the bound has variables\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n xP = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX().getPosition();\n }\n int xU = 0;\n int xL = 0;\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY() != null) {\n yP = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY().getPosition();\n }\n int yU = 0;\n int yL = 0;\n int cright = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getCright();\n int cleft = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getCleft();\n\n\n\n for (Variable variable : csp.getVars()) {\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n if (variable.getPosition() == xP) {\n xU = variable.getUpperDomainBound();\n xL = variable.getLowerDomainBound();\n }\n }\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY() != null) {\n if (variable.getPosition() == yP) {\n yU = variable.getUpperDomainBound();\n yL = variable.getLowerDomainBound();\n }\n }\n }\n\n boolean first = false;\n boolean second = false;\n\n //Testing if the bound is true, false or inconclusive\n\n if (xL + cleft >= yU + cright) {\n first = true;\n }\n if (xU + cleft < yL + cright) {\n second = true;\n }\n\n //are first and second not equal is the bound not inconclusive\n if (first != second) {\n if (first) { //a true Simple Bound was found\n //checks if it was the last constraint in a csp\n //If so the csp is true\n //else check the next constraint and do this method again\n if (csp.getSimpleConstraints().size() - 1 == cIndex) {\n System.out.println(\"P is satisfiable\");\n System.out.println(System.nanoTime()-startTime);\n return;\n } else {\n bIndex = 0;\n cIndex++;\n unit=false;\n doAlgorithmA1();\n }\n } else if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().size() - 1 == bIndex) { //a false Simple Bound was found\n //\n bIndex = 0;\n cIndex = 0;\n if (isInconclusive) {\n if(unit){\n doDeduction();\n }else {\n doAlgorithmA3();\n }\n } else {\n doAlgorithmA2();\n }\n } else {\n bIndex++;\n doAlgorithmA1();\n }\n } else {//an inconclusive Simple Bound was found\n //checks if the bound wasn't already inconclusive\n if(!isInconclusive){\n unit=true;\n unitSB = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex);\n }else {\n unit=false;\n }\n isInconclusive = true;\n\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().size() - 1 == bIndex) {\n cIndex = 0;\n bIndex = 0;\n if(unit){\n doDeduction();\n }else {\n doAlgorithmA3();\n }\n } else {\n bIndex++;\n doAlgorithmA1();\n }\n }\n }", "public static void ITdistances()\n\t{\n\t\t//System.err.println(\"Position\");\n\n\t\tclade = clad[k];\n\n\t\tclade.tipDistance = 0;\n\t\tclade.intDistance = 0;\n\t\tclade.tipDisNested = 0;\n\t\tclade.intDisNested = 0;\n\t\tclade.indTipClades = 0;\n\t\tclade.indIntClades = 0;\n\n\n\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t{ \n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (clade.Position[i] == tip)\n\t\t\t\t\tclade.indTipClades += clade.rowTotal[i];\n\t\t\t\telse\n\t\t\t\t\tclade.indIntClades += clade.rowTotal[i];\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\t// weigthing within class\n\t\t\t\tclade.tipDistance += clade.Position[i] * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.tipDisNested += clade.Position[i] * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\tclade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\t\n\t\t\t\t\n\t\t\t\t// unweighted\n\t\t\t\t//clade.tipDistance += clade.Position[i] * clade.Dc[i] / (double) clade.check;\n\t\t\t\t//clade.tipDisNested += clade.Position[i] * clade.Dn[i] / (double) clade.check;\n\t\t\t\t//clade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] / (double) (clade.numSubClades - clade.check);\n\t\t\t\t//clade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] / (double) (clade.numSubClades - clade.check);\t\n\t\t\t}\n\n\t\t clade.tipIntDistance = clade.intDistance - clade.tipDistance;\n\t\t clade.tipIntDisNested = clade.intDisNested - clade.tipDisNested;\n\t\t if(verbose){\n\t\t\tlogfile.println(\"\\nIT \" + clade.cladeName + \" indTipClades = \" + clade.indTipClades\n\t\t\t\t+ \" indIntClades + \" + clade.indIntClades);\n\t\t\tlogfile.println(\"\\nITc \" + clade.cladeName + \" meanInt = \" + clade.intDistance\n\t\t\t\t+ \" meanTip = \" + clade.tipDistance);\n\t\t\tlogfile.println(\"ITn \" + clade.cladeName + \" meanInt = \" + clade.intDisNested\n\t\t\t\t+ \" meanTip = \" + clade.tipDisNested);\n\t\t }\n\t\t}\n\n\t\t//System.err.println(\"IT clade \" + clade.cladeName + \" meanInt = \" + clade.intDistance + \" meanTip = \" + clade.tipDistance);\n\n\t}", "public static void main(String[] args){\n Robot robot = new DifferentialWheels();\n\n // Get the time step of the current world.\n int timeStep = (int) Math.round(robot.getBasicTimeStep());\n\n // Get references to, and enable, all required devices on the robot.\n Lidar lidar = robot.getLidar(\"lms291\");\n lidar.enable(timeStep);\n lidar.enablePointCloud();\n\n GPS gps = robot.getGPS(\"gps\");\n gps.enable(timeStep);\n\n Emitter emitter = robot.getEmitter(\"emitter\");\n emitter.setChannel(0);\n\n Compass compass = robot.getCompass(\"compass\");\n compass.enable(timeStep);\n\n Motor frontLeft = robot.getMotor(\"front_left_wheel\");\n frontLeft.setPosition(Double.POSITIVE_INFINITY);\n Motor frontRight = robot.getMotor(\"front_right_wheel\");\n frontRight.setPosition(Double.POSITIVE_INFINITY);\n Motor backLeft = robot.getMotor(\"back_left_wheel\");\n backLeft.setPosition(Double.POSITIVE_INFINITY);\n Motor backRight = robot.getMotor(\"back_right_wheel\");\n backRight.setPosition(Double.POSITIVE_INFINITY);\n\n TestTurnPB turnPBController = new TestTurnPB(gps, compass, emitter, frontLeft, frontRight, backLeft, backRight);\n System.out.println(\"current param : \" + turnPBController.toString());\n\n //Initialise Start and Goal Coordinates\n robot.step(timeStep);\n turnPBController.updateObstacleReadings(lidar.getPointCloud());\n turnPBController.isRunning = true;\n turnPBController.initMetrics();\n turnPBController.initPositions();\n //potBugController.initAlgorithm();\n turnPBController.runInit();\n\n //Iteration Count\n int itCount = 0;\n\n while (robot.step(timeStep*100) != -1) {\n //Check max iteration\n //while (itCount<DEFAULT_MAX_ITERATION_COUNT){\n //Update Turn Angles\n turnPBController.updateAngles();\n\n //Update Sensor Information\n turnPBController.updateObstacleReadings(lidar.getPointCloud());\n\n //Check if goal is reached and terminate as appropriate\n if (turnPBController.isGoalReached()){\n turnPBController.isRunning = false;\n turnPBController.setRobotSpeed(0,0);\n turnPBController.terminatePotBug();\n System.out.println(\"Goal Reached Successfully!\");\n }\n\n if(!turnPBController.isGoalReached() && turnPBController.isRunning){\n //Check for goal direction on forwards semi-circle\n if (!turnPBController.isObstruction()){\n\n turnPBController.setDriveMode(DEFAULT_DRIVE_MODE_TOWARDS_GOAL);\n //Move 'freely' to the next sample point, towards goal\n turnPBController.updateMetrics();\n\n } else {\n\n if (turnPBController.isClearToLeave()){\n\n if (turnPBController.isProgressAttained() &&\n turnPBController.isClearToLeave()){\n\n turnPBController.setDriveMode(DEFAULT_DRIVE_MODE_TOWARDS_GOAL);\n turnPBController.updateMetrics();\n\n }\n } else {\n\n if (turnPBController.hitPoint == null){\n\n turnPBController.setHitPoint();\n turnPBController.setDriveMode(DEFAULT_DRIVE_MODE_TOWARDS_CONTOUR);\n turnPBController.updateMetrics();\n\n } else {\n\n // engaged mode\n turnPBController.setDriveMode(DEFAULT_DRIVE_MODE_ALONG_CONTOUR);\n turnPBController.updateMetrics();\n\n }\n }\n }\n }\n //}\n }\n }", "public void solvePuzzle(){\n\t\t// check to make sure pieces was set\n\t\tif(possiblePieces == null){\n\t\t\tSystem.out.println(\"PuzzleThree::solvePuzzle(): possiblePieces is not initialized!\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// initialize population with random sequences\n\t\tinitializePopulation();\n\t\t\n\t\t// print header of results\n\t\tSystem.out.printf(\"%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\n\", \"Current Generation\"\n\t\t\t\t, \"Most Fit Fitness\"\n\t\t\t\t, \"Most Fit Score\"\n\t\t\t\t, \"Most Fit Generation\"\n\t\t\t\t, \"Median Fit Fitness\"\n\t\t\t\t, \"Median Fit Score\"\n\t\t\t\t, \"Median Fit Generation\"\n\t\t\t\t, \"Worst Fit Fitness\"\n\t\t\t\t, \"Worst Fit Score\"\n\t\t\t\t, \"Worst Fit Generation\");\n\t\t\n\t\t\t\t// keep culling and reproducing until time is up\n\t\twhile(!clock.overTargetTime()){\n\t\t\t// every few generations print out generation, most fit, median fit, worst fit\n\t\t\tif(generation % 5000 == 0){\n\t\t\t\tCollections.sort(population);\n\t\t\t\tBuilding mostFit = population.get(POPULATION_SIZE-1);\n\t\t\t\tBuilding medianFit = population.get((int)(POPULATION_SIZE / 2) - 1);\n\t\t\t\tBuilding worstFit = population.get(0);\n\t\t\t\tSystem.out.printf(\"%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\n\", generation, \n\t\t\t\t\t\t\t\t\tmostFit.getFitness(), mostFit.getScore(), mostFit.getGeneration(),\n\t\t\t\t\t\t\t\t\tmedianFit.getFitness(), medianFit.getScore(), medianFit.getGeneration(),\n\t\t\t\t\t\t\t\t\tworstFit.getFitness(), worstFit.getScore(), worstFit.getGeneration());\n\t\t\t}\n\t\t\t\n\t\t\t// remove a portion of the population\n\t\t\tcullPopulation();\n\t\t\t\n\t\t\t// reproduce with the fittest more likely being parents\n\t\t\treproduce();\n\t\t\t\n\t\t\tgeneration++;\n\t\t}\n\n\t\t\n\t\t// print out information about most fit\n\t\tCollections.sort(population);\n\t\tCollections.reverse(population);\n\t\tBuilding mostFit = population.get(0);\n\n\t\tSystem.out.printf(\"\\n\\nBest in population is\\n\");\n\t\tSystem.out.printf(\"Sequence: \\n\");\n\t\tfor(int i = 0; i < mostFit.getList().length; i++){\n\t\t\tSystem.out.printf(\"\\t%s\\n\", mostFit.getList()[i].toString());\n\n\t\t}\n\n\t\tSystem.out.printf(\"\\nFitness: %d\\n\", mostFit.getFitness());\n\t\tSystem.out.printf(\"Score: %d\\n\", mostFit.getScore());\n\t}", "private static LinkedList<Integer> localSearchSimulatedAnnealing(File fileNameWithPath, int kNeighborHood ) throws Exception{\n\t\t\n\t\tString traceString = \"\";\n\t\tdouble bestCost = Double.POSITIVE_INFINITY;\n\t\tLinkedList<Integer> bestTspList = null;\n\t\tdouble bestCycleTime = Double.POSITIVE_INFINITY;\n\n\t\tif (Project.runId == -1 )\n\t\t\tProject.runId = 1;\n\n\t\t/* \n\t\t * read the file and build the cost table\n\t\t */\n parseEdges(fileNameWithPath);\n\n /*\n\t\t * time starts once you read the data\n */\n\t\tdouble baseTime = System.nanoTime();\n\n\t\t/*\n\t\t * invoking furthest insertion algorithm to get the tsp\n\t\t */\n\t\tlong startNodeSeed = (long)(1000.0*generator.nextDouble());\n\t\tLinkedList<Integer> currentTspList = FurthestInsertion.generateTSP(Project.sourceGTree,startNodeSeed);\n\t\t\n\t\tdouble currentTspCost = tspCost(currentTspList);\n\n\t\tbestTspList = currentTspList;\n\t\tbestCost = currentTspCost;\n\t\tbestCycleTime = System.nanoTime() - baseTime;\n\n\t\t/* print the trace file */\n\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\t\tprintTrace(runId,traceString);\n\n\t\t/*\n\t\t * time starts now - start annealing\n\t\t */\n\t\tdouble annealingProbabilityThreshold = .2*generator.nextDouble(); // acceptance prob threshold for bad results\n\t\tdouble T = 100; // annealing temp\n\t\tdouble coolingRate = .00000001; // rate of cooling in each step\n\n\t\t/*\n\t\t * remove the last node as it matches the first\n\t\t */\n\t\tcurrentTspList.removeLast();\n\n\t\twhile ( T > 1 )\n\t\t{\n\t\t\t/*\n\t\t\t * reached cutoff time\n\t\t\t */\n\t\t\tif ( System.nanoTime()-baseTime >= Project.cutoffTimeSeconds*nanosecs ) {\n\t\t\t\ttimedOut=true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdouble cycleStartTime = System.nanoTime();\n\n\t\t\tLinkedList<Integer> newTspList = currentTspList;\n\n\t\t\t/* do a 2 opt search in current k=5 neighborhood to get a newtsp */\n\t\t\t/* 1. Pick the first random element in the current tsp */\n\t\t\tint element2 = (int)((double)(newTspList.size()-1) * generator.nextDouble());\n\t\t\tint element1 = element2 - 1;\n\t\t\tif ( element1 == -1 ){\n\t\t\t\telement1 = newTspList.size()-1;\n\t\t\t}\n\t\t\t\n int delta;\n\n\t\t\t/*\n\t\t\t * search in the neighborhood specified\n * if not specified search all\n\t\t\t */\n if ( kNeighborHood != -1 ) {\n\t\t\t /* We want to search in the specified k=n neighborhoods of element1 */\n\t\t\t delta= (int)(2*kNeighborHood*generator.nextDouble()) - kNeighborHood;\n } else {\n\t\t\t delta= (int)((newTspList.size()-1)*generator.nextDouble()) - (int)(newTspList.size()/2);\n\t\t\t}\n\n\t\t\tif ( delta == 0 ) {\n\t\t\t\tdelta = 2;\n\t\t\t} else if ( delta == 1 ) {\n\t\t\t\tdelta = 2;\n\t\t\t} else if ( delta == -1) {\n\t\t\t\tdelta = -2; }\n\n\t\t\tint element4 = element2 + delta;\n\n\t\t\tif ( element4 < 0 ) {\n\t\t\t\telement4 = newTspList.size()+element4;\n\t\t\t}else if ( element4 >= newTspList.size() ) {\n\t\t\t\telement4 = element4-(newTspList.size()-1);\n\t\t\t}\n\n\t\t\tint element3 = element4 -1;\n\t\t\tif ( element3 == -1 ){\n\t\t\t\telement3 = newTspList.size()-1;\n\t\t\t}\n\n\n\t\t\t/* \n\t\t\t * the new tsp will have element2->element4.......element1->element3....\n\t\t\t */\n\t\t\tInteger vertex_3 = newTspList.get(element3);\n\t\t\tnewTspList.set(element3,newTspList.get(element2));\n\t\t\tnewTspList.set(element2,vertex_3);\n\n\t\t\t/*\n\t\t\t * from element2+1 to element3-1 swap to reverse their order\n\t\t\t */\n\t\t\twhile ( element2 < element3 ){\n\t\t\t\telement3 = element3-1;\n\t\t\t\tif ( element3 == -1 ) {\n\t\t\t\t\telement3 = newTspList.size()-1;\n\t\t\t\t}\n\n\t\t\t\telement2 = element2 + 1;\n\t\t\t\tif ( element2 == newTspList.size() ) {\n\t\t\t\t\telement3 = 0;\n\t\t\t\t}\n\n\t\t\t\tInteger tempVertex = newTspList.get(element2);\n\t\t\t\tnewTspList.set(element2,newTspList.get(element3));\n\t\t\t\tnewTspList.set(element3,tempVertex);\n\n\t\t\t}\n\n\t\t\tdouble newTspCost = tspCost(newTspList);\n\n\t\t\t/* if new local search solution is better than eariler take the search and continue search\n\t\t\t */\n\t\t\tif ( newTspCost <= currentTspCost ){\n\t\t\t\tcurrentTspList = newTspList;\n\t\t\t\tcurrentTspCost = newTspCost;\n\t\t\t} else {\n\t\t\t/* if new local search solution is not better than eariler \n\t\t\t * then check the difference and the probability at this stage of annealing\n\t\t\t * if probability is higher than threshold set, then keep new search ad continue, else discard \n\t\t\t */\n\t\t\t\tif ( Math.exp((currentTspCost - newTspCost) / T) > generator.nextDouble() ){\n\t\t\t\t\tcurrentTspList = newTspList;\n\t\t\t\t\tcurrentTspCost = newTspCost;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t//Subtract the start time from the finish time to get the actual algorithm running time; divide by 10e6 to convert to milliseconds\n\t\t\tdouble cycleTime = (System.nanoTime()-cycleStartTime);\n\n\t\t\t/* first improvement , take the best each time */\n\t\t\tif ( newTspCost < bestCost ) {\n\t\t\t\tbestCost = newTspCost;\n\t\t\t\tbestTspList = newTspList;\n\t\t\t\tbestCycleTime = cycleTime;\n\t\t\t\t/* print the trace file */\n\t\t\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\t\t\t\tappendToTraceFile(runId,traceString);\n\n\t\t\t\tif ( bestCost <= optimalCost )\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t/* the cooling */\n\t\t\tT = T - T * coolingRate;\n\n\t\t}\n\n\t\t/* print the sol file */\n\t\tprintSol(runId,bestTspList,bestCost);\n\n\t\t/* print the tab results file */\n\t\tappendTabResults(runId,bestCycleTime,bestCost,bestTspList);\n\n\t\treturn bestTspList;\n\n\t}", "@Override\n public void runAlgoritm(String[] input) {\n\n int n = Integer.parseInt(input[1]);\n int tablicaPunktow[][] = new int[n][3];\n\n int iterator = 2;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n tablicaPunktow[i][j]= Integer.parseInt(input[iterator]);\n iterator++;\n }\n }\n int tablicaWynikow[][] = new int[n][2];\n for (int i = 0; i < n; i++) {\n tablicaWynikow[i][0] = tablicaPunktow[i][0];\n double x = Math.pow((double)tablicaPunktow[i][1], 2);\n double y = Math.pow((double)tablicaPunktow[i][2], 2);\n double sqrt = Math.sqrt(x + y);\n int round = (int)Math.round(sqrt);\n tablicaWynikow[i][1] = round;\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n-1; j++) {\n if(tablicaWynikow[j][1]>tablicaWynikow[j+1][1]) {\n int temp[] = new int[2];\n temp[0]=tablicaWynikow[j][0];\n temp[1]=tablicaWynikow[j][1];\n tablicaWynikow[j][0]=tablicaWynikow[j+1][0];\n tablicaWynikow[j][1]=tablicaWynikow[j+1][0];\n tablicaWynikow[j+1][0]= temp[0];\n tablicaWynikow[j+1][1]= temp[1];\n }\n }\n }\n for (int i = 0; i < n; i++) {\n int punkt = tablicaWynikow[i][0];\n for (int j = 0; j < n; j++) {\n System.out.printf(\"Punkt: %d, X: %d, Y: %d\\n\", punkt, tablicaPunktow[j][1], tablicaPunktow[j][2]);\n }\n\n }\n }", "public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\r\n \r\n System.out.println(\"Enter number of testcases\");\r\n \r\n int n=sc.nextInt();\r\n for(int i=0;i<6;i++){\r\n System.out.println(\"Initialize the \" + (i+1) + \" lift position.\");\r\n arr[i]=sc.nextInt();\r\n }\r\n \r\n while(n!=0){\r\n System.out.println(\"Enter your floor number\");\r\n int req=sc.nextInt(); \r\n nearestLift(req);\r\n n--;\r\n }\r\n }", "@Override\n\tprotected void computeWithoutTime() {\n\t\tinitShortestPaths();\n\n\t\t// Then we sort for each node v the list of terminals by the distance from v\n\t\tsortedRequiredVertices = new HashMap<Integer, TreeSet<Integer>>();\n\t\tsortRequiredVertices();\n\t\t\n\t\t// Copy of the terminals\n\t\tHashSet<Integer> req = new HashSet<Integer>(\n\t\t\t\tinstance.getRequiredVertices());\n\n\t\t// Union of all the solutions returned by the subalgorithm CH2\n\t\tHashSet<Arc> currentSol = new HashSet<Arc>();\n\n\t\t// Until all terminals are reached\n\t\twhile (req.size() > 0) {\n\n\t\t\t// We apply CH2 to reach some of the non reached terminals\n\t\t\tCouple<HashSet<Arc>, HashSet<Integer>> tree = applyCH2(req);\n\n\t\t\t// tree.first the tree returned by CH2\n\t\t\t// tree.second is the terminals of that tree\n\n\t\t\tcurrentSol.addAll(tree.first);\n\t\t\tfor (Arc a : tree.first)\n\t\t\t\tcosts.put(a, 0); // Set the cost of the arc to 0, as this arc is already used in the solution, it does not cost anything to use it again.\n\t\t\treq.removeAll(tree.second);\n\t\t}\n\n\t\t// Compute the returned solution and its cost.\n\t\tarborescence = new HashSet<Arc>();\n\t\tint c = 0;\n\t\tfor (Arc a : currentSol) {\n\t\t\tList<Arc> l = shortestPaths.get(a);\n\t\t\tif (a.getInput().equals(a.getOutput()))\n\t\t\t\tl = new ArrayList<Arc>();\n\t\t\tfor (Arc b : l) {\n\t\t\t\tarborescence.add(b);\n\t\t\t\tc += instance.getCost(b);\n\t\t\t}\n\t\t}\n\t\tcost = c;\n\t}", "private static void runNeedleSimulation() {\n\t\tint iterations = numbersOfIterations(new Scanner(System.in));\n\t\tint hits = needleSimulation(iterations);\n\t\tdouble pi = piCalculation(iterations, hits);\n\t\tSystem.out.println(pi);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tBigDecimal[][] initial = readMatrix(args[0]);\n\n\t\tint targetPower = Integer.parseInt(args[2]);\n\t\tint size = initial.length;\n\t\t\n\t\t// Calculate nearest (ceiling) power of 2 based on target\n\t\tint upperBound = (int)Math.pow(2, Math.ceil(Math.log(targetPower)/Math.log(2)));\n\n\t\tBigDecimal[][][] matrixMap = new BigDecimal[upperBound][size][size];\n\t\tmatrixMap[1] = initial;\n\n\t\tfillTable(upperBound, matrixMap[1], matrixMap);\n\n\t\tbinarySearch(upperBound/2, upperBound, targetPower, matrixMap);\n\t\toutput(args[1], matrixMap[targetPower]);\n\t}", "public void solveSA() {\r\n initState();\r\n for (int ab = 0; ab < Config.NumberOfMetropolisResets; ab++) {\r\n LogTool.print(\"==================== INACTIVE: START CALC FOR OUTER ROUND \" + ab + \"=========================\",\"notification\");\r\n\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\");\r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n setCur_cost(costCURsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"CUR COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n /* [Newstate] with random dwelltimes */\r\n New_state = newstater(); \r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW STATE \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n// newstater();\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New State before Metropolis: A)\" + New_state[0] + \" B) \" + New_state[1] + \" C) \" + New_state[2],\"notification\");\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New Cost : \" + New_cost,\"notification\");\r\n }\r\n\r\n /**\r\n * MetropolisLoop\r\n * @param Config.NumberOfMetropolisRounds\r\n */\r\n\r\n for(int x=0;x<Config.NumberOfMetropolisRounds;x++) { \r\n LogTool.print(\"SolveSA Iteration \" + x + \" Curcost \" + Cur_cost + \" Newcost \" + New_cost,\"notification\");\r\n if ((Cur_cost - New_cost)>0) { // ? die Kosten\r\n \r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 START\",\"notification\");\r\n }\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA Cost delta \" + (Cur_cost - New_cost) + \" \",\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C1 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 STOP \",\"notification\");\r\n }\r\n } else if (Math.exp(-(New_cost - Cur_cost)/temperature)> RandGenerator.randDouble(0.01, 0.99)) {\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 START: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 before set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 STOP: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n } else {\r\n New_state = newstater();\r\n }\r\n temperature = temperature-1;\r\n if (temperature==0) {\r\n break;\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal());\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n//</editor-fold>\r\n if ((x==58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n if ((Cur_cost - New_cost)>0) {\r\n Cur_state = New_state;\r\n Cur_cost = New_cost; \r\n }\r\n }\r\n if ((x>58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n }\r\n }\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Auskommentierter GLowestState Object Class\">\r\n// if (ab==9) {\r\n// double diff=0;\r\n// }\r\n \r\n // Hier wird kontrolliert, ob das minimalergebnis des aktuellen\r\n // Metropolisloops kleiner ist als das bsiher kleinste\r\n \r\n// if (Cur_cost<Global_lowest_cost) {\r\n// this.setGlobal_lowest_cost(Cur_cost);\r\n// GlobalState GLowestState = new GlobalState(this.Cur_state);\r\n// String rGLSOvalue = GLowestState.getGlobal_Lowest_state_string();\r\n// LogTool.print(\"GLS DEDICATED OBJECT STATE OUTPUT -- \" + GLowestState.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(GLowestState.getDwelltimes());\r\n // LogTool.print(\"READ FROM OBJECT OUTPUT -- \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// LogTool.print(\"DEBUG: CurCost direct : \" + this.getCur_cost(),\"notification\"); \r\n// LogTool.print(\"Debug: Cur<global CurState get : \" + this.getCur_state_string(),\"notification\");\r\n// LogTool.print(\"Debug: Cur<global GLS get : \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(this.getCur_state(Cur_state));\r\n// LogTool.print(\"Debug: Cur<global GLS get after set : \" + this.getGlobal_Lowest_state_string(),\"notification\"); \r\n// }\r\n //</editor-fold>\r\n LogTool.print(\"SolveSA: Outer Iteration : \" + ab,\"notification\");\r\n LogTool.print(\"SolveSA: Last Calculated New State/Possible state inner loop (i.e. 99) : \" + this.getNew_state_string(),\"notification\");\r\n// LogTool.print(\"SolveSA: Best Solution : \" + this.getCur_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: GLS after all loops: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: LastNewCost, unchecked : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: CurCost : \" + this.getCur_cost() + \"i.e. lowest State of this round\",\"notification\"); \r\n }\r\n // return GLowestState;\r\n }", "private void solve(PDMatrix mat, Point p, Movement currentMovement)\n\t{\n\t\tlistener.addIteration();\n\t\t\n\t\t// Cut condition: Having solved the problem, or not having a movement to make.\n\t\tif (currentMovement == Movement.NONE || solved)\n\t\t\treturn;\n\t\t\n\t\t// Next point were moving to.\n\t\tPoint nextPoint = p;\n\t\t\n\t\t// Gets the next point were moving to. \n\t\tnextPoint = currentMovement.applyTo(nextPoint);\n\t\t\n\t\t// If we are outside the matrix then it's a full path.\n\t\tif (!mat.contains(nextPoint)) {\n\t\t\t\n\t\t\t// If we're required to print each result then we send it.\n\t\t\t// We compare here in order to avoid making a rebuildMovements on each result.\n\t\t\tif (listener.action == PrintAction.RESULT)\t\n\t\t\t\tlistener.addAll(rebuildMovements(mat, nextPoint, currentMovement), PrintAction.RESULT);\t\n\t\t\t\n\t\t\tif (bestC < curC)\n\t\t\t{\n\t\t\t\tlistener.setSameLengthFound(0);\n\t\t\t\t\n\t\t\t\t// We've got a better result to store and show.\n\t\t\t\tbestStack = rebuildMovements(mat, nextPoint, currentMovement);\n\t\t\t\tlistener.setBestLength(bestC = curC);\n\t\t\t\tlistener.addAll(bestStack, PrintAction.BEST_SO_FAR);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (curC - 1 == mat.maxPathLen)\n\t\t\t\t{\n\t\t\t\t\t// If there are no more crosses and points to add, then it's a cut.\n\t\t\t\t\t// If there are no more pieces then it's a cut.\n\t\t\t\t\tsolved = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (bestC == curC && listener.repeats)\n\t\t\t{\n\t\t\t\tlistener.setSameLengthFound(listener.getSameLengthFound() + 1);\n\t\t\t\tlistener.addAll(rebuildMovements(mat, nextPoint, currentMovement), PrintAction.BEST_SO_FAR);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// We get the cell we're stepped into.\n\t\tCell currentCell = mat.get(nextPoint);\n\t\t\n\t\t// If it's a cross then we go deeply and move on with the same direction\n\t\t// (We make a hop over the cross)\n\t\tif (currentCell == Cell.CROSS)\n\t\t{\n\t\t\tcurC++;\n\t\t\tsolve(mat, nextPoint, currentMovement);\n\t\t\tcurC--;\n\t\t}\n\t\telse\n\t\tif (currentCell == Cell.EMPTY && currentCell != Cell.START)\n\t\t{\n\t\t\t// We get the pieces compatibles with the current cell at the point \n\t\t\t// we're in.\n\t\t\t// This reduces the for length from 4 to 7. And makes a reduction \n\t\t\t// in the amount of calls and makes sure that each piece can get in. \n\t\t\t// This gives us a boost of around 20% speed in most cases.\n\t\t\tint[] compatibles = mat.get(p).getCompatibles(currentMovement);\n\t\t\t\n\t\t\tfor (int j = 0; j < compatibles.length; j++) {\n\t\t\t\tint i = compatibles[j];\n\t\t\t\t\n\t\t\t\t/* The first condition asks to have pieces available of that kind.\n\t\t\t\t * The second makes sure of having no repeated cases with the crosses.\n\t\t\t\t * Since there are some cases in which having too many crosses can\n\t\t\t\t * make an exponencial increment on time.\n\t\t\t\t * Since a solution can work with a pattern like:\n\t\t\t\t * -------- or ----+---+ or ---+---+-- etc.\n\t\t\t\t * The normal DFS would pass through all the permutations of it.\n\t\t\t\t * We only take the first case (------++) by only using crosses \n\t\t\t\t * when there are no more -'s or |'s.\n\t\t\t\t * But making that cut alone would lose the cases in which the\n\t\t\t\t * cross is used before the end.\n\t\t\t\t * So we check whether the position to put the cross is valid or\n\t\t\t\t * not by checking the siblings of the cross.\n\t\t\t\t */\n\t\t\t\tif ( cellCount.totalPiecesLeft(i) > 0 \n\t\t\t\t\t&& ( i != 6 || \n\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t (cellCount.totalPiecesLeft(Cell.UPDOWN.ordinal()) == 0 \n\t\t\t\t\t\t\t\t\t && (currentMovement == Movement.UP || currentMovement == Movement.DOWN)) \n\t\t\t\t\t\t\t ||\n\t\t\t\t\t\t\t \t\t (cellCount.totalPiecesLeft(Cell.LEFTRIGHT.ordinal()) == 0 \n\t\t\t\t\t\t\t\t\t && (currentMovement == Movement.LEFT || currentMovement == Movement.RIGHT))\n\t\t\t\t\t\t\t ||\n\t\t\t\t\t\t\t \t\t (valid(mat.siblings(nextPoint), nextPoint))\n\t\t\t\t\t\t\t )\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t// If we decide to put the cell into the map, we've got\n\t\t\t\t\t// to change the amounts.\n\t\t\t\t\tcellCount.decreasePiecesLeft(i);\n\t\t\t\t\tcurC++ ;\n\t\t\t\t\t// We calculate the next movement given by the cell\n\t\t\t\t\t// we're calculating and the direction we have.\n\t\t\t\t\tMovement m = Cell.cells[i].NextDir(currentMovement);\n\t\t\t\t\t// We set the matrix with that cell and tell the listener about it.\n\t\t\t\t\t// Who will print it if it's printing by progress.\n\t\t\t\t\tmat.add(nextPoint, Cell.cells[i]);\n\t\t\t\t\tlistener.addCell(Cell.cells[i], nextPoint.x, nextPoint.y, PrintAction.PROGRESS);\n\t\t\t\t\t\n\t\t\t\t\t// Recursion step.\n\t\t\t\t\tsolve(mat, nextPoint, m);\n\t\t\t\t\t\n\t\t\t\t\tif (crossPoint != null && crossPoint.equals(nextPoint))\n\t\t\t\t\t\tcrossPoint = null;\n\t\t\t\t\t\n\t\t\t\t\t// Rollback of everything.\n\t\t\t\t\tlistener.removeCell(nextPoint.x, nextPoint.y, PrintAction.PROGRESS);\n\t\t\t\t\tmat.add(nextPoint, Cell.EMPTY);\n\t\t\t\t\tcurC--;\n\t\t\t\t\tcellCount.incrementPiecesLeft(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tlong first_time = System.nanoTime();\n\t\tBufferedReader in;\n\t\tString file = \"camelot.in\";\n\t\ttry{\n\t\t\tin = new BufferedReader(new FileReader(file));\n\t\t}catch(Exception e) {\n\t\t\tin = new BufferedReader(new FileReader(\"DATA/\"+file));\n\t\t}\n\t\t\n\t\tStringTokenizer st = new StringTokenizer(in.readLine());\n\t\t\n\t\tfinal int H = Integer.parseInt(st.nextToken());\n\t\tfinal int W = Integer.parseInt(st.nextToken());\n\t\t\n\t\tst = new StringTokenizer(in.readLine());\n\t\t\n\t\tPoint king = new Point(st.nextToken().charAt(0) - 'A', Integer.parseInt(st.nextToken()) - 1);\n\t\t// System.out.println(\"king = \" + king);\n\t\t\t\t\n\t\t// read in knights.\n\t\tArrayList<Point> knights = new ArrayList<>();\n\t\tString line = in.readLine();\n\t\twhile(line != null) {\n\t\t\tst = new StringTokenizer(line);\n\t\t\twhile(st.hasMoreTokens()) {\n\t\t\t\tknights.add(new Point(st.nextToken().charAt(0) - 'A', Integer.parseInt(st.nextToken()) - 1));\n\t\t\t}\n\t\t\tline = in.readLine();\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\t// knights.forEach(i -> System.out.println(i));\n\t\t\n\t\tboolean[][] dummyMap = new boolean[W][H];\n\t\t\n\t\tLinkedHashMap<Point,ArrayList<Point>> edgeMap = new LinkedHashMap<>();\n\t\t\n\t\tfor(int x = 0; x < W; x++) {\n\t\t\tfor(int y = 0; y < H; y++) {\n\t\t\t\tPoint a = new Point(x,y);\n\t\t\t\tPoint[] nbs = new Point[8];\n\t\t\t\tnbs[0] = new Point(x-1,y-2);\n\t\t\t\tnbs[1] = new Point(x+1,y-2);\n\t\t\t\tnbs[2] = new Point(x-1,y+2);\n\t\t\t\tnbs[3] = new Point(x+1,y+2);\n\t\t\t\tnbs[4] = new Point(x-2,y-1);\n\t\t\t\tnbs[5] = new Point(x-2,y+1);\n\t\t\t\tnbs[6] = new Point(x+2,y-1);\n\t\t\t\tnbs[7] = new Point(x+2,y+1);\n\t\t\t\t\n\t\t\t\tArrayList<Point> lst = new ArrayList<>();\n\t\t\t\tboolean dummy;\n\t\t\t\tfor(Point b: nbs) {\n\t\t\t\t\t// screens OOB points.\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdummy = dummyMap[b.x][b.y];\n\t\t\t\t\t} catch(ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlst.add(b);\n\t\t\t\t}\n\t\t\t\tedgeMap.put(a,lst);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// roughly 35ms for Worst Case.\n\t\t// System.out.println((System.nanoTime() - first_time) / 1000000 + \"ms [INIT]\");\n\t\t\n\t\t// DEBUG:\n//\t\tedgeMap.forEach((k,v) -> {\n//\t\t\tSystem.out.print(k+\" || \");\n//\t\t\tv.forEach(i -> System.out.print(i+\",\"));\n//\t\t\tSystem.out.println();\n//\t\t});\n\t\t\n\t\tArrayList<Point> nodes = new ArrayList<>(edgeMap.keySet());\n\t\tint[][] edges = new int[nodes.size()][nodes.size()];\n\t\tfinal int LARGE = 100000;\n\t\t\n\t\tfor(int i = 0; i < edges.length; i++) {\n\t\t\tfor(int j = 0; j < i; j++) {\n\t\t\t\t// if i's edge map contains j\n\t\t\t\tif(edgeMap.get(nodes.get(i)).contains(nodes.get(j))) {\n\t\t\t\t\tedges[i][j] = 1;\n\t\t\t\t\tedges[j][i] = 1;\n\t\t\t\t} else {\n\t\t\t\t\tedges[i][j] = LARGE;\n\t\t\t\t\tedges[j][i] = LARGE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// System.out.println((System.nanoTime() - first_time) / 1000000 + \"ms [FW_INIT]\");\n\t\t\n\t\t// Floyd-Warshall for the board.\n\t\tfor(int k = 0; k < edges.length; k++) {\n\t\t\tfor(int i = 0; i < edges.length; i++) {\n\t\t\t\tfor(int j = 0; j < edges.length; j++) {\n\t\t\t\t\tedges[i][j] = Math.min(edges[i][j], edges[i][k] + edges[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// System.out.println((System.nanoTime() - first_time) / 1000000 + \"ms [FW_DONE]\");\n\t\t\n\t\tint[][] kingMap = new int[W][H];\n\t\tfor(int x = 0; x < W; x++) {\n\t\t\tfor(int y = 0; y < H; y++) {\n\t\t\t\tkingMap[x][y] = Math.max(Math.abs(king.x-x), Math.abs(king.y-y));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// mounting\n\t\t// mount at point where (edge[knight][point] + 0/1 (king distance) + edge[point][final]) is minimized\n\t\t// this becomes mountingDistance and it replaces kingDist and the mountingKnight dist.\n\t\t// *** don't need to check every point, simply those in those adjacent to the king (or the initial space).\n\t\t// this is because moving a knight is quicker/equal to the king's moves over any distance greater than 1\n\t\t// (knightdist: 1 away = 2 (URDL) or 3 (Diagonal) ... > 1 (king move))\n\t\t\n\t\t// final calculation\n\t\tint minSum = LARGE;\n\t\tPoint minLoc = new Point(-1,-1);\n\t\t\n\t\t// convene at (x,y).\n\t\tfor(int x = 0; x < W; x++) {\n\t\t\tinner:\n\t\t\tfor(int y = 0; y < H; y++) {\n\t\t\t\tint src = x*H + y;\n\t\t\t\t\n\t\t\t\tint sum = 0;\n\t\t\t\tfor(Point knight: knights) {\n\t\t\t\t\tint i = knight.x*H + knight.y;\n\t\t\t\t\tsum += edges[src][i];\n\t\t\t\t\tif(sum > minSum) continue inner;\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"pre sum = \"+sum);\n\t\t\t\t\n\t\t\t\t// mounting here.\n\t\t\t\tint minDist = LARGE;\n\t\t\t\tPoint mountKnight = new Point(-1,-1);\n\t\t\t\tPoint mountLocation = new Point(-1,-1);\n\t\t\t\tint minDistFromSrc = LARGE;\n\t\t\t\t\n\t\t\t\tfinal int MAX_KSPACES = 2;\n\t\t\t\tfor(int kdx = -MAX_KSPACES; kdx <= MAX_KSPACES && king.x + kdx < W; kdx++) {\n\t\t\t\t\tif(king.x+kdx < 0) continue;\n\t\t\t\t\tfor(int kdy = -MAX_KSPACES; kdy <= MAX_KSPACES && king.y + kdy < H; kdy++) {\n\t\t\t\t\t\tif(king.y+kdy < 0) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tint pIndex = (king.x+kdx)*H + (king.y+kdy);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Point knight: knights) {\n\t\t\t\t\t\t\tint knIndex = knight.x*H + knight.y;\n\t\t\t\t\t\t\tint dist = edges[knIndex][pIndex] + Math.max(Math.abs(kdx), Math.abs(kdy));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((dist < minDist && dist < edges[knIndex][src] + kingMap[x][y])\n\t\t\t\t\t\t\t|| (dist == minDist && edges[pIndex][src] < minDistFromSrc)) {\n\t\t\t\t\t\t\t\tminDist = dist;\n\t\t\t\t\t\t\t\tmountKnight = knight;\n\t\t\t\t\t\t\t\tmountLocation = new Point(king.x+kdx,king.y+kdy);\n\t\t\t\t\t\t\t\tminDistFromSrc = edges[pIndex][src];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// knight already in position.\n\t\t\t\t\t\t\tif(edges[knIndex][pIndex] == 0) break;\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\tif(mountKnight.x != -1) {\n\t\t\t\t\tsum -= edges[mountKnight.x*H + mountKnight.y][src];\n\t\t\t\t\tsum += minDist;\n\t\t\t\t\tsum += minDistFromSrc;\n\t\t\t\t\t// if(x==0&&y==14) System.out.println(minDist+\",\"+minDistFromSrc);\n\t\t\t\t}else {\n\t\t\t\t\tsum += kingMap[x][y];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(sum < minSum) {\n\t\t\t\t\tminSum = sum;\n\t\t\t\t\tminLoc = new Point(x,y);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println((char) ('A'+x)+\",\"+(y+1)+\": \"+sum + \"\\t || \"+mountKnight+ \" || \"+mountLocation);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(minSum + \" @ \" + (char) ('A' + minLoc.x) + \"\" + (minLoc.y+1));\n\t\tSystem.out.println((System.nanoTime() - first_time) / 1000000 + \"ms [O]\");\n\t\t\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"camelot.out\")));\n\t\tout.println(minSum);\n\t\tout.close();\n\t}", "public ShortestPathsCalculator(int cityID, ArrayList<Place> places) throws IOException{\n\t\t\tthis.pcc = new HashMap<Place, HashMap<Place,ITIN>>();\n\t\t\t// Chargement des PCC\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(Emplacements.FICHIER_PCC(cityID)));\n\t\t\tinput.readLine();\n\t\t\tint nbPoints = Integer.parseInt(input.readLine());\n\t\t\tint i = 1;\n\t\t\twhile(i<=nbPoints){\n\t\t\t\tinput.readLine();\n\t\t\t\tHashMap<Place,ITIN> plusCourtsChemins = new HashMap<Place, ITIN>();\n\t\t\t\tint fromX = Integer.parseInt(input.readLine());\n\t\t\t\tint fromY = Integer.parseInt(input.readLine());\n\t\t\t\tPlace fromTmp = new Place(new Point(fromX,fromY),-1);\n\t\t\t\tPlace from = places.get(places.indexOf(fromTmp));\n\t\t\t\tint j = 1;\n\t\t\t\twhile(j<=nbPoints-1){\n\t\t\t\t\tinput.readLine();\n\t\t\t\t\tint toX = Integer.parseInt(input.readLine());\n\t\t\t\t\tint toY = Integer.parseInt(input.readLine());\n\t\t\t\t\tPlace toTmp = new Place(new Point(toX,toY),-1);\n\t\t\t\t\tPlace to = places.get(places.indexOf(toTmp));\n\t\t\t\t\tITIN chem = new ITIN(from, NiveauTemps.TEMPS_MOY, to, NiveauTemps.TEMPS_MOY);\n\t\t\t\t\tinput.readLine();\n\t\t\t\t\tint nbEtapes = Integer.parseInt(input.readLine());\n\t\t\t\t\tSystem.out.println(nbEtapes);\n\t\t\t\t\tint k = 1;\n\t\t\t\t\twhile(k<=nbEtapes){\n\t\t\t\t\t\tinput.readLine();\n\t\t\t\t\t\tint byX = Integer.parseInt(input.readLine());\n\t\t\t\t\t\tSystem.out.println(byX);\n\t\t\t\t\t\tint byY = Integer.parseInt(input.readLine());\n\t\t\t\t\t\tSystem.out.println(byY);\n\t\t\t\t\t\tPlace byTmp = new Place(new Point(byX,byY),-1);\n\t\t\t\t\t\tSystem.out.println(byTmp);\n\t\t\t\t\t\tSystem.out.println(places);\n\t\t\t\t\t\tPlace by = places.get(places.indexOf(byTmp));\n\t\t\t\t\t\tchem.addEtape(by, NiveauTemps.PAS_DE_VISITE);\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t\tplusCourtsChemins.put(to, chem);\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tpcc.put(from, plusCourtsChemins);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}", "public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnext = nextCell(current); //Look for the next possible neighbour, if any.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void run() {\n\t\tString result;\n\t\tthis.running = true;\n\t\tdouble position[] = new double[3];\n\t\tdouble measures[] = new double[360];\n\n\t\twhile (running) {\n\t\t\ttry {\n\t\t\t\tPipedInputStream pipeIn = new PipedInputStream();\n\t\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(pipeIn));\n\t\t\t\tPrintWriter output = new PrintWriter(new PipedOutputStream(pipeIn), true);\n\t\t\t\trobot.setOutput(output);\n\n\t\t\t\t//ases where a variable value is never used after its assignment, i.e.:\n\t\t\t\tSystem.out.println(\"intelligence running\");\n\n\t\t\t\trobot.sendCommand(\"R1.GETPOS\");\n\t\t\t\tresult = input.readLine();\n\t\t\t\tparsePosition(result, position);\n\t\t\t\trecords.clear();\n\t\t\t\trobot.sendCommand(\"L1.SCAN\");\n\t\t\t\tresult = input.readLine();\n\t\t\t\tif (result.substring(0, 4).equalsIgnoreCase(\"SCAN\")) {\n\t\t\t\t\tparseMeasures(result, measures);\n\t\t\t\t}\n\t\t\t\trobot.sendCommand(\"S1.SCAN\");\n\t\t\t\tresult = input.readLine();\n\t\t\t\tif (result.substring(0, 4).equalsIgnoreCase(\"SCAN\")) {\n\t\t\t\t\tparseMeasures(result, measures);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tif (result.substring(0, 4).equalsIgnoreCase(\"SCAN\")) {\n\t\t\t\t\t\t//addCommandToRobot(result,measures);\n\t\t\t\t\t\t//parseMeasures(result, measures);\n\t\t\t\t\t\tif (!addCommand()) //If it doesn't add any command go forward\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trobot.sendCommand(\"P1.MOVEFW 15\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"E! :(\");\n\t\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\t}\n\t\t\t\tmap.drawLaserScan(position, measures);\n\n\t\t\t\tpipeIn.close();\n\t\t\t\tinput.close();\n\t\t\t\toutput.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.err.println(\"IOE! :(\");\n\t\t\t\tSystem.err.println(\"execution stopped\");\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "protected int bestDirection(int _y, int _x)\n {\n int sX = -1, sY = -1;\n for (int i = 0; i < m; i++) {\n boolean breakable = false;\n for (int j = 0; j < n; j++) {\n if (map[i][j] == 'p' || map[i][j] == '5') {\n sX = i;\n sY = j;\n breakable = true;\n break;\n }\n }\n if(breakable) break;\n sX =0; sY = 0;\n }\n Pair s = new Pair(sX, sY);\n Queue<Pair> queue = new Queue<Pair>();\n int[][] distance = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n distance[i][j] = -1;\n distance[sX][sY] = 0;\n queue.add(s);\n /*\n System.out.println(\"DEBUG TIME!!!!\");\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.print(map[i][j]);\n System.out.println();\n }\n System.out.println();\n */\n while (!queue.isEmpty())\n {\n Pair u = queue.remove();\n for (int i = 0; i < 4; i++)\n {\n int x = u.getX() + hX[i];\n int y = u.getY() + hY[i];\n if (!validate(x, y)) continue;\n if (distance[x][y] != -1) continue;\n if (!canGo.get(map[x][y])) continue;\n distance[x][y] = distance[u.getX()][u.getY()] + 1;\n queue.add(new Pair(x, y));\n }\n }\n\n //slove if this enemy in danger\n //System.out.println(_x + \" \" + _y);\n if (inDanger[_x][_y])\n {\n int direction = -1;\n boolean canAlive = false;\n int curDistance = dangerDistance[_x][_y];\n int distanceToBomber = m * n;\n if (curDistance == -1) return 0;\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y)) continue;\n if (dangerDistance[x][y] == -1) continue;\n if (dangerDistance[x][y] < curDistance)\n {\n curDistance = dangerDistance[x][y];\n direction = i;\n distanceToBomber = distance[x][y];\n } else if (dangerDistance[x][y] == curDistance)\n {\n if (distanceToBomber == -1 || distanceToBomber > distance[x][y])\n {\n direction = i;\n distanceToBomber = distance[x][y];\n }\n }\n }\n if (direction == -1) direction = random.nextInt(4);\n allowSpeedUp = true;\n return direction;\n }\n // or not, it will try to catch bomber\n else\n {\n /*\n System.out.println(\"x = \" + _x + \"y = \" + _y);\n for(int i = 0; i < n; i++) System.out.printf(\"%2d \",i);\n System.out.println();\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.printf(\"%2d \",distance[i][j]);\n System.out.println();\n }\n System.out.println();\n System.out.println();\n */\n int direction = -1;\n int[] die = new int[4];\n for (int i = 0; i < 4; i++)\n die[i] = 0;\n int curDistance = distance[_x][_y];\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y))\n {\n die[i] = 1;\n continue;\n }\n ;\n if (inDanger[x][y])\n {\n die[i] = 2;\n continue;\n }\n if (distance[x][y] == -1) continue;\n if (distance[x][y] < curDistance)\n {\n curDistance = distance[x][y];\n direction = i;\n }\n }\n if(curDistance < 4) allowSpeedUp = true;\n else allowSpeedUp = false; //TODO: TEST :))\n if (direction == -1)\n {\n for (int i = 0; i < 4; i++)\n if (die[i] == 0) return i;\n for (int i = 0; i < 4; i++)\n if (die[i] == 1) return i;\n return 0;\n } else return direction;\n }\n }", "public void challengeMove(){\n int maxOutcome = -1;\n int returnIndex = -1;\n Hole lastHole;\n Hole selectedHole;\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n for(int i = 0; i < availableHoles.size(); i++){\n selectedHole = availableHoles.get(i);\n lastHole = holes[(selectedHole.getHoleIndex() + selectedHole.getNumberOfKoorgools() - 1) % 18];\n if(lastHole.getOwner() != nextToPlay){\n int numOfKorgools = lastHole.getNumberOfKoorgools() +1;\n if(numOfKorgools == 3 && !nextToPlay.hasTuz()){\n int otherTuzIndex = getPlayerTuz(Side.WHITE);\n if(otherTuzIndex == -1 || ((otherTuzIndex + 9) != lastHole.getHoleIndex())) {\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n if(numOfKorgools % 2 == 0 && numOfKorgools > maxOutcome){\n maxOutcome = numOfKorgools;\n returnIndex = selectedHole.getHoleIndex();\n }\n }\n }\n if(returnIndex <= -1){\n randomMove();\n return;\n }\n redistribute(returnIndex);\n }", "@Override\n protected void start() throws Exception {\n LogManager.getLogger().log(ALGORITHM, \"STARTING TABU SEARCH...\");\n LogManager.getLogger().log(ALGORITHM, \"MAX ITERATIONS: \" + maxIterations);\n LogManager.getLogger().log(ALGORITHM, \"MAX ITERATIONS WITHOUT IMPROVEMENTS: \" + maxIterationsWithoutImprovement);\n LogManager.getLogger().log(ALGORITHM, \"MIN QUEUE: \" + minQueue);\n LogManager.getLogger().log(ALGORITHM, \"RISING TREND: \" + risingTrend);\n LogManager.getLogger().log(ALGORITHM, \"MAX THREADS: \" + (maxThreads != null ? maxThreads : \"DEFAULT\"));\n LogManager.getLogger().log(ALGORITHM, \"MULTI-STARTS -> # OF GREEDY: \" + greedyMultiStart + \", # OF RANDOM: \" + randomMultiStart);\n\n String iSettings = null;\n if (intensificationLearning) {\n iSettings = \"LEARNING\";\n }\n if (localSearchIntensification) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"LOCAL SEARCH\";\n }\n if (pathRelinking) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"PATH RELINKING\";\n }\n if (intensification) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"INTENSIFICATION\";\n }\n if (iSettings == null) {\n iSettings = \"NONE\";\n }\n LogManager.getLogger().log(ALGORITHM, \"INTENSIFICATION SETTINGS: \" + iSettings);\n\n String dSettings = null;\n if (diversificationLearning) {\n dSettings = \"LEARNING\";\n }\n if (greedyMultiStart + randomMultiStart > 1) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"MULTI-STARTS\";\n }\n if (moveDiversification) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"MOVE DIVERSIFY\";\n }\n if (diversification) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"DIVERSIFICATION\";\n }\n if (dSettings == null) {\n dSettings = \"NONE\";\n }\n LogManager.getLogger().log(ALGORITHM, \"DIVERSIFICATION SETTINGS: \" + dSettings);\n\n LabeledUndirectedGraph<N, E> zero = getZeroGraph(minGraph);\n\n if (!zero.isConnected()) {\n minCost = zero.calculateCost() + 1;\n\n Queue<LabeledUndirectedGraph<N, E>> startsQueue = new LinkedList<>();\n for (int i = 0; i < greedyMultiStart; i++) {\n startsQueue.add(applyMVCA());\n }\n for (int i = 0; i < randomMultiStart; i++) {\n startsQueue.add(new LabeledUndirectedGraph<>(getSpanningTree(graph)));\n }\n int nthreads = Runtime.getRuntime().availableProcessors();\n if (maxThreads != null) {\n if (maxThreads <= 1) {\n nthreads = 1;\n } else {\n nthreads = maxThreads;\n }\n }\n nthreads = Integer.min(nthreads, (greedyMultiStart + randomMultiStart));\n\n LogManager.getLogger().log(ALGORITHM, \"THREADS: \" + nthreads);\n\n //PRINT PROGRESS\n prog = 0;\n tot = startsQueue.size();\n print(Ansi.ansi().cursor().save().erase().eraseLine().a(String.format(\"\\t%.2f%%\", prog)));\n\n if (nthreads == 1) {\n while (!startsQueue.isEmpty()) {\n compute(startsQueue.poll());\n\n //PRINT PROGRESS\n// prog = (tot - startsQueue.size()) * 100 / tot;\n prog = 100;\n print(Ansi.ansi().cursor().load().erase().eraseLine().a(String.format(\"\\t%.2f%%\", prog)));\n }\n } else {\n\n List<Thread> pool = new ArrayList<>();\n for (int i = 0; i < nthreads; i++) {\n Thread th = new Thread(() -> {\n try {\n boolean empty;\n synchronized (lock) {\n empty = startsQueue.isEmpty();\n }\n\n while (!empty) {\n LabeledUndirectedGraph<N, E> g;\n\n synchronized (lock) {\n g = startsQueue.poll();\n }\n compute(g);\n synchronized (lock) {\n empty = startsQueue.isEmpty();\n\n //PRINT PROGRESS\n// prog = (tot - startsQueue.size()) * 100 / tot;\n prog++;\n double _prog = this.prog * 100 / tot;\n print(Ansi.ansi().cursor().load().erase().eraseLine().a(String.format(\"\\t%.2f%%\", _prog)));\n }\n }\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n });\n th.setDaemon(false);\n th.setName(\"TabuSearch_Calc_\" + i);\n th.setPriority(Thread.MAX_PRIORITY);\n th.start();\n pool.add(th);\n }\n for (Thread th : pool) {\n th.join();\n }\n }\n\n println();\n\n minGraphs.forEach(_min -> {\n if (_min.calculateCost() < minGraph.calculateCost()) {\n minGraph = _min;\n }\n });\n\n LogManager.getLogger().log(ALGORITHM, \"END TABU SEARCH.\");\n LogManager.getLogger().log(ALGORITHM, \"BEST AT THIS POINT: \" + minGraph.calculateCost());\n\n if (pathRelinking) {\n LogManager.getLogger().log(ALGORITHM, \"STARTING PATH RELINKING...\");\n\n pathRelinking(pathRelinkingAlt);\n\n println();\n LogManager.getLogger().log(ALGORITHM, \"BEST AT THIS POINT: \" + minGraph.calculateCost());\n }\n } else {\n minGraph = zero;\n }\n\n LogManager.getLogger().log(ALGORITHM, \"END.\");\n }" ]
[ "0.61015326", "0.6014106", "0.5850418", "0.5826583", "0.5825994", "0.5816496", "0.56015515", "0.5600226", "0.55880624", "0.5554044", "0.55524707", "0.55022013", "0.5458888", "0.54339457", "0.54104835", "0.5409067", "0.54067594", "0.54061574", "0.5400807", "0.5391795", "0.5373357", "0.5349621", "0.5339882", "0.53393626", "0.5303292", "0.5300144", "0.5288392", "0.5272473", "0.5265743", "0.52639157", "0.52634156", "0.52609766", "0.52474815", "0.5246455", "0.5246031", "0.5241422", "0.5239097", "0.5236087", "0.52218765", "0.5220699", "0.5219992", "0.5217492", "0.5215505", "0.52019244", "0.51943666", "0.5192654", "0.51909953", "0.5189458", "0.5162922", "0.5161316", "0.51518726", "0.5151312", "0.51493514", "0.51459944", "0.51424325", "0.5140264", "0.5137744", "0.51250833", "0.5120958", "0.51189387", "0.5109174", "0.5104467", "0.5103579", "0.5083726", "0.508269", "0.50696796", "0.5068044", "0.5060662", "0.5057741", "0.5057725", "0.50574434", "0.50549865", "0.5053023", "0.5047031", "0.5033977", "0.5033748", "0.5029528", "0.50268877", "0.50266755", "0.502505", "0.5020315", "0.5017613", "0.5017377", "0.5016843", "0.5010963", "0.50109243", "0.50100416", "0.5009403", "0.50079596", "0.49979368", "0.4997161", "0.4984392", "0.49773994", "0.4977309", "0.4973782", "0.49728623", "0.49713856", "0.49709028", "0.49688086", "0.495537" ]
0.56333864
6