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 |
---|---|---|---|---|---|---|
Adiciona uma propriedade ao corpo do documento NCL.
|
public boolean addProperty(Pp property) {
if(properties.add(property)){
//Se property existe, atribui este como seu parente
if(property != null)
property.setParent(this);
notifyInserted(NCLElementSets.PROPERTIES, property);
return true;
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"@Override\r\n\tpublic void setAddNewObjectIdentifier(String arg0, Long arg1)\r\n\t{\n\r\n\t}",
"public interface CfgDocument extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\t/**\n\t * Get accessor for persistent attribute: savconfigidold\n\t */\n\tpublic int getSavconfigidold() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidold\n\t */\n\tpublic void setSavconfigidold(int newSavconfigidold)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic int getSavconfigidnew() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic void setSavconfigidnew(int newSavconfigidnew)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storedem\n\t */\n\tpublic java.lang.Integer getStoredem() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storedem\n\t */\n\tpublic void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storebad\n\t */\n\tpublic java.lang.Integer getStorebad() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storebad\n\t */\n\tpublic void setStorebad(java.lang.Integer newStorebad)\n\t\tthrows java.rmi.RemoteException;\n}",
"private void criaContaCliente (String cpf) {\n this.contasClientes.put(cpf, new Conta(cpf));\n }",
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }",
"Builder addProperty(String name, SchemaOrgType value);",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();",
"public void addNen(Nen ac) {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tem.persist(ac);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t}",
"@Generated(hash = 2094494111)\npublic void setOcorrencia(Ocorrencia ocorrencia) {\n synchronized (this) {\n this.ocorrencia = ocorrencia;\n codigoOcorrencia = ocorrencia == null ? null : ocorrencia.getId();\n ocorrencia__resolvedKey = codigoOcorrencia;\n }\n}",
"private static void addPropsObjSign(Document doc, XMLSignature sig) {\n\t\ttry {\n\t\t\tcreateSignatureProperties(doc, sig, \"\");\n\t\t\tTransforms transforms = new Transforms(doc);\n\t\t\ttransforms.addTransform(Transforms.TRANSFORM_C14N11_OMIT_COMMENTS);\n\t\t\tsig.addDocument(\"#prop\", transforms, DigestMethod.SHA256); //$NON-NLS-1$\n\t\t} catch (XMLSignatureException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"DefinedProperty graphAddProperty( int propertyKey, Object value );",
"public Fornecedor(int código, String nome, String data_cadastro, String n_documento) {\r\n super(código, nome, data_cadastro, n_documento);\r\n }",
"public void initForAddNew() {\r\n\r\n\t}",
"org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();",
"public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }",
"@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }",
"@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }",
"ProjetoRN createProjetoRN();",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void inicializar() {\n\t\tproveedorDatamanager.setProveedorSearch(new Tcxpproveedor());\r\n\t\tproveedorDatamanager.getProveedorSearch().setTsyspersona(new Tsyspersona());\r\n\t\tproveedorDatamanager.setTipoIdColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_tipoid_persona\")));\r\n\t\tproveedorDatamanager.setGrupoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_grupo_prov\")));\r\n\t\tproveedorDatamanager.setEstadoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_estado_persona\")));\r\n\t\tproveedorDatamanager.setProveedorComponente(new ProveedorComponent(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania()));\r\n\t}",
"private void populaNoticiaCat()\n {\n NoticiaCat n1 = new NoticiaCat(\"Avisos\", \"Help\");\n noticiaCatDAO.insert(n1);\n NoticiaCat n2 = new NoticiaCat(\"Noticias\", \"Document Notes\");\n noticiaCatDAO.insert(n2);\n NoticiaCat n3 = new NoticiaCat(\"Dicas\", \"Tag\");\n noticiaCatDAO.insert(n3);\n }",
"void initCommunityProperty();",
"public void addObject(DcObject dco);",
"Atributo createAtributo();",
"public void createOntProperty(String sourceInstance, String propertyName, String destInstance)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tOntResource di = this.obtainOntResource(destInstance);\r\n\t\tProperty prop = this.obtainOntProperty(propertyName); \r\n\t\tsi.addProperty(prop, di);\r\n\t}",
"public void setDB(String name, int numar_noduri, int capacitate_noduri) {\r\n\r\n this.name = name;\r\n this.numar_noduri = numar_noduri;\r\n this.capacitate_noduri = capacitate_noduri;\r\n\r\n int i = 0;\r\n while (i < numar_noduri) {\r\n\r\n Nod nod = new Nod(capacitate_noduri);\r\n noduri.add(nod);\r\n i++;\r\n }\r\n }",
"public OWLProperty (String iri) {\n\t\tthis.classIRI = iri;\n//\t\tthis.domain = domain;\n//\t\tthis.range = range;\n\t}",
"public void inicializarOrdenDeCorte(OrdenDeCorte oc);",
"@PostConstruct\r\n public void iniciar() {\n notaEntrada.setIdnotaentrada(0);\r\n notaEntrada.setOrdenCompra(new OrdenCompra());\r\n notaEntrada.setNumero(maxNumero() + 1);\r\n notaEntrada.setFechaReg(new Date());\r\n notaEntrada.setFechaDocref(null);\r\n notaEntrada.setNroDocref(\"\");\r\n notaEntrada.setObservacion(\"\");\r\n notaEntrada.setTipoIngreso(\"\");\r\n notaEntrada.setProveedor(new Proveedor());\r\n notaEntrada.setAlmacenDestino(new Almacen());\r\n listNotaEntradaDetalle.clear();\r\n this.producto = null;\r\n }",
"private void addArbitraryDataToDatabase() {\n\n try (Transaction tx = graphDatabaseService.beginTx()) {\n Node arbitraryNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n arbitraryNode.setProperty(\"name\", \"Colin\");\n Node otherNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n otherNode.setProperty(\"age\", 39);\n arbitraryNode.createRelationshipTo(otherNode, DynamicRelationshipType.withName(\"TEST\"));\n\n tx.success();\n }\n }",
"public void setNomDistrito(String nomDistrito);",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"void adicionaComentario(Comentario comentario);",
"public void addRegistro(String nombre, String apellidos, String dni) {\r\n\t\t\r\n\t\tSession ss = Util.getSessionFactory().openSession();\r\n\t\tTransaction tr = null;\r\n\t\ttry {\r\n\t\t\ttr = ss.beginTransaction();// comenzamos a hacer cositas\r\n\t\t\t// id incremental,por eso pongo cero\r\n\t\t\tPersona p = new Persona(0, nombre, apellidos, dni);\r\n\t\t\tss.save(p);\r\n\t\t\ttr.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tSystem.out.println(\"Pako_error= \" + e);\r\n\t\t} finally {\r\n\t\t\tss.close();\r\n\t\t\t// System.out.println(\"Final\");\r\n\t\t}\r\n\t}",
"public void setNom(String p_onom);",
"public void SalvarNovaArtista() {\n\n\t\tartistaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\n\n\t\tartistaRepository.SalvarNovoRegistro(this.artistaModel);\n\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\n\n\t\tartistaModel = null;\n\t}",
"public void add(PhotonDoc doc);",
"public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }",
"public Corso(String codice, String nome, String docente, String descrizione, String link) {\n this.codice = codice;\n this.nome = nome;\n this.docente = docente;\n this.descrizione = descrizione;\n this.link = link;\n }",
"public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }",
"public void crearPerfil(String nombre, String apellido1, String apellido2,\r\n String direccion, String nif, int telefono, int edad) {\r\n\r\n clientes.add(new Cliente(nombre, apellido1, apellido2, direccion, nif, telefono, edad));\r\n }",
"public void adicionar(Integer no,ListaDuplamenteEncadeada lista){\r\n\t\tListaDuplamenteEncadeada temp = new ListaDuplamenteEncadeada();\r\n\t\ttemp.setDado(no);\r\n\t\ttemp.setProximoNo(lista.getProximoNo());\r\n\t\tlista.setProximoNo(temp);\r\n\t\tlista.setNumElementos(lista.getNumElementos()+1);\r\n\t}",
"Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }",
"Property createProperty();",
"private void controladorNuevoColectivo(Controlador controlador){\n this.contNuevoColectivo = controlador.getNuevoColectivo();\n nuevoColectivo.setControlCreateCollective(contNuevoColectivo);\n }",
"private void addAttr( Element e ) {\r\n\t\tString attr_name = Utils.replaceWhitespaces(\r\n\t\t\tInputs.getStr( \"¿Nombre del atributo?\" ), '_'\r\n\t\t);\r\n\t\tString attr_value = Inputs.getStr( \"¿Valor del atributo?\" );\r\n\r\n\t\tAttr attr = doc.createAttribute( attr_name );\r\n\t\tattr.setValue( attr_value );\r\n\t\te.setAttributeNode( attr );\r\n\r\n\t\t// shorten way\r\n\t\t// e.setAttribute( \"id\", \"1\" );\r\n\t}",
"ReferenceProperty createReferenceProperty();",
"@Generated(hash = 1070169441)\npublic void setDocumento(Documento documento) {\n synchronized (this) {\n this.documento = documento;\n documentoId = documento == null ? null : documento.getId();\n documento__resolvedKey = documentoId;\n }\n}",
"private void crearNave(String accion) {\n\t\tthis.naveCreada=true;\n\t\tpausa = false;\n\t\t\n\t\tString [] info = accion.split(\"#\");\n\t\tString [] xA = info[3].split(\"=\");\n\t\tString [] yA = info[4].split(\"=\");\n\t\tString [] vxA = info[5].split(\"=\");\n\t\tString [] vyA = info[6].split(\"=\");\n\t\tString [] anA = info[7].split(\"=\");\n\t\t\n\t\tdouble x = Double.valueOf(xA[1]);\n\t\tdouble y = Double.valueOf(yA[1]);\n\t\tdouble velocidadx = Double.valueOf(vxA[1]);\n\t\tdouble velocidady = Double.valueOf(vyA[1]);\n\t\tdouble an = Double.valueOf(anA[1]);\n\t\t\n\t\tthis.nave = new Nave (x, y, an, 0.2, 0.98, 0.05, 20, this);\n\t\tnave.setVelocidadX(velocidadx);\n\t\tnave.setVelocidadY(velocidady);\n\t}",
"@Override\n public void agregarComentario(String pNumFinca, String pComentario) throws SQLException {\n Comentario comentario = new Comentario(pComentario, Integer.parseInt(pNumFinca));\n bdPropiedad.manipulationQuery(\"INSERT INTO COMENTARIO (ID_PROPIEDAD, COMENTARIO) VALUES (\" + \n comentario.getIdPropiedad() + \", '\" + comentario.getComentario() + \"')\");\n comentarios.add(comentario);\n }",
"public void addField(IdentifierProperties field) {\n fields.add(field);\n }",
"Documento createDocumento();",
"org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();",
"public void nouvelleRelation(String formule,String commentaire, EOGenericRecord ecEnCours) {\r\n\t\tEOClassDescription descriptionIPrelation = EOClassDescription.classDescriptionForEntityName(\"IpRelationChoixEc\");\r\n\t\tEOGenericRecord nouvIpRelation=(EOGenericRecord)descriptionIPrelation.createInstanceWithEditingContext(null, null);\r\n\r\n\t\tmonEcSsShared.insertObject(nouvIpRelation);\r\n\t\tnouvIpRelation.takeValueForKey(formule,\"rceFormuleContrainte\");\t// normallement la clé primaire est attribuée d'office\r\n\t\tnouvIpRelation.takeValueForKey(commentaire,\"rceCommentaireContrainte\");\r\n\t\tSystem.out.println(\"ecEnCours ::::::::: \" + ecEnCours);\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"fannKey\"), \"fannKey\");\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"mrecKey\"), \"mrecKeyCible\");\r\n\t\tnouvIpRelation.takeValueForKey(eoDiplSelected.valueForKey(\"msemKey\"), \"msemKey\");\r\n\t\tnouvIpRelation.takeValueForKey(\"L\", \"rceTypeRelation\");\r\n\t\tmonEcSsShared.saveChanges();\r\n\t}",
"protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}",
"public void addInDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addInDocument(arg0);\n }",
"com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();",
"protected static void initPropertyKey() {\n String path = URL_PREFIX + SCHEMA_PKS;\n\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"name\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"age\\\",\\n\"\n + \"\\\"data_type\\\": \\\"INT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"city\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"lang\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"date\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"price\\\",\\n\"\n + \"\\\"data_type\\\": \\\"INT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"weight\\\",\\n\"\n + \"\\\"data_type\\\": \\\"DOUBLE\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n }",
"public void addProperty(String s, Object o) {\n }",
"public void addProperty(String s, Object o) {\n }",
"public DBFKRelationPropertySheet ()\r\n {\r\n initComponents ();\r\n }",
"public void setCodProd(IProduto codigo);",
"public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){\n this.apellidos = apellidos;\n this.nombre = nombre;\n this.nif = nif;\n this.genero = genero;\n this.edad = edad;\n this.expediente = expediente;\n }",
"public void agregarAlInicio(int edad){\n //CREAR UN NUEVO NODO AL INICIO DE LA LISTA\n inicio = new Nodo(edad,inicio);\n if(fin==null){\n fin=inicio;\n }\n }",
"private void adicionar(No novo, Pessoa pessoa) {\n if(raiz == null)\n raiz = new No(pessoa);\n else{\n if(pessoa.getIdade()<novo.getPessoa().getIdade()){\n if(novo.getEsquerda() != null)\n adicionar(novo.getEsquerda() , pessoa);\n else\n novo.setEsquerda(new No(pessoa));\n }else{\n if(novo.getDireita() !=null)\n adicionar(novo.getDireita(), pessoa);\n else\n novo.setDireita(new No(pessoa));\n }\n }\n \n }",
"@Override\npublic void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {\narg2.setType(Feeds.class);\narg2.setName(\"Feeds\");\n\narg2.setNamespace(n1);\n\n}",
"public void setDni(String dni);",
"public void addDocumentoEntrataFiglio(DocumentoEntrata documentoEntrata) {\n\t\tthis.listaDocumentiEntrataFiglio.add(documentoEntrata);\n\t}",
"public void add(String nome, Object obj);",
"private void addVeiculo(String nome) {\n\t\t\n\t\tlist.setModel(dm);\n\t\tdm.addElement(nome);\n\t}",
"void setCognome(String cognome);",
"public newRelationship() {\n initComponents();\n }",
"public void setNroDocumento(java.lang.String nroDocumento) {\n this.nroDocumento = nroDocumento;\n }",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}",
"public void setCidade(String cidade) {// Altera o nome da cidade.\r\n\t\tthis.cidade = cidade;\r\n\t}",
"public void inicializar(String negocio) {\n\t\t\n\t\tSystem.out.println(\"Estoy incializando...\");\n\t}",
"public void addElement(int index, TLProperty element);",
"public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }",
"Dimension_hauteur createDimension_hauteur();",
"private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}",
"private static void addMetaData(Document document) {\n document.addTitle(\"Pharmacy Prescription\");\n document.addSubject(\"Pharmacy Prescription\");\n document.addKeywords(\"Pharmacy, Drugs, Drug, Dispense\");\n document.addAuthor(\"Clinical Support System\");\n document.addCreator(\"Prof. Madya Dr. Mohd. Khanapi Bin Abd. Ghani\");\n }",
"void setNilID();",
"public void addDocumentoEntrataPadre(DocumentoEntrata documentoEntrataPadre) {\n\t\tthis.listaDocumentiEntrataPadre.add(documentoEntrataPadre);\n\t}",
"public void setNodo(Long nodo);",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition insertNewObjectDefinition(int i);",
"public void addElement(TLProperty element);",
"Builder addProperty(String name, String value);",
"public void setAnnoCorso(int annoCorso) {\r\n int oldAnnoCorso = this.annoCorso;\r\n this.annoCorso = annoCorso;\r\n propertyChangeSupport.firePropertyChange (\"annoCorso\", new Integer (oldAnnoCorso), new Integer (annoCorso));\r\n }",
"private static void addProperty(HashMap<String, DefinedProperty> propSet, String name, DefinedPropertyType type, String defaultValue, int usage, boolean hidden, boolean userDefined) {\n if (propSet.containsKey(name))\n \tOrdt.errorMessage(\"invalid user-defined property name \" + name + \" specified\");\n else putProperty(propSet, name, type, defaultValue, usage, hidden, userDefined);\n\t}",
"public ExternalDocumentEntry() {\n\t\tsuper(CDAFactory.eINSTANCE.createExternalDocument());\n\t\tthis.getMdht().getTemplateIds()\n\t\t\t\t.add(DatatypesFactory.eINSTANCE.createII(\"2.16.840.1.113883.10.20.1.36\"));\n\t\tthis.getMdht().setClassCode(ActClassDocument.DOC);\n\t\tthis.getMdht().setMoodCode(ActMood.EVN);\n\n\t}",
"public void nascitaAgnello() {\n\t\tpecore.add(new Agnello());\n\t\tnumeroAgelli++;\n\t}"
] |
[
"0.5883343",
"0.580824",
"0.5762142",
"0.5658806",
"0.55527633",
"0.55236036",
"0.5495129",
"0.5464039",
"0.5385044",
"0.53760624",
"0.534981",
"0.5344501",
"0.53346634",
"0.53160113",
"0.53067815",
"0.5284688",
"0.52734536",
"0.52703595",
"0.52601135",
"0.5238414",
"0.52337587",
"0.52101856",
"0.5210159",
"0.51948017",
"0.51948017",
"0.51948017",
"0.516458",
"0.51448756",
"0.514225",
"0.5138407",
"0.5137119",
"0.5114891",
"0.5105014",
"0.5103757",
"0.50968474",
"0.5094992",
"0.5068624",
"0.50642663",
"0.5062426",
"0.50594556",
"0.50343627",
"0.5033925",
"0.5028625",
"0.5016207",
"0.5012892",
"0.5012407",
"0.50123066",
"0.5008793",
"0.4990701",
"0.49868733",
"0.4984603",
"0.49798235",
"0.49630338",
"0.4962646",
"0.49592718",
"0.4948633",
"0.4940083",
"0.49399436",
"0.49309134",
"0.49250767",
"0.49207595",
"0.49204546",
"0.49189612",
"0.4917636",
"0.4911704",
"0.49066642",
"0.49061477",
"0.49061477",
"0.49044183",
"0.4899561",
"0.48916337",
"0.4890277",
"0.4888771",
"0.48764193",
"0.4874922",
"0.4872362",
"0.4871617",
"0.48580283",
"0.48493803",
"0.48480174",
"0.48413572",
"0.48409957",
"0.48357207",
"0.4833897",
"0.48252425",
"0.4822725",
"0.48219362",
"0.48176438",
"0.4817426",
"0.48154166",
"0.48089772",
"0.4803588",
"0.4802364",
"0.47990483",
"0.4798938",
"0.47983518",
"0.479822",
"0.4797894",
"0.47963887",
"0.4796267",
"0.4791018"
] |
0.0
|
-1
|
Remove uma propriedade do corpo do documento NCL.
|
public boolean removeProperty(String name) {
for(Pp property : properties){
if(property.getId().equals(name))
return removeProperty(property);
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void relRemoveProperty( long relId, int propertyKey );",
"Form removeProperty(String key);",
"public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"public void removeDoc(Document doc) {//borra el objeto\n documents.remove(doc);\n }",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}",
"@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}",
"@Override\n\tpublic void RemoverCarrinho(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"public void removeProperty(TLProperty element);",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"public void secondaryRemoveInDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveInDocument(arg0);\n }",
"void graphRemoveProperty( int propertyKey );",
"PropertiesTask removeProperty( String key );",
"@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}",
"public Object removeProperty( String key );",
"public void removeDocumenterRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_documenterRole);\r\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"void nodeRemoveProperty( long nodeId, int propertyKey );",
"@Override\n\t\tpublic Object removeProperty(String key) {\n\t\t\treturn null;\n\t\t}",
"public void delete(ReceiptFormPO po) throws RemoteException {\n\t\tSystem.out.println(\"Delete ReceiptFormPO Start!!\");\n\t\t\n\t\tif(po==null){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tioHelper = new IOHelper();\n\t\tallReceiptForm = ioHelper.readFromFile(file);\n\t\tSystem.out.println(po.getNO() );\n\t\tallReceiptForm.remove(po.getNO());\n\t\tioHelper.writeToFile(allReceiptForm, file);\n\t}",
"public void remove(MongoDBCritera critera);",
"@Override\r\n\tpublic void remove(int codigoLivro) throws BaseDadosException {\n\t\t\r\n\t}",
"public void remove()\n { \n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_NO_DELETE\"); // Message name\n \n }",
"private void UpdateDeleteNestedValue(){\n notebookRef.document(\"IpWOjXtIgGJ2giKF4VTp\")\r\n // Note Remove the Element without the posiotion is not possible Because if multiple user remove the same name of field then it make issue So thats Why we pass Value \"New tag\"\r\n .update(KEY_Tags+\".tag1\", FieldValue.delete());// Now this key tag1 which is inside the tags is deleted key and its value\r\n\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"void deleteDaftarhunianDtl(DaftarhunianDtl.MyCompositePK no) {\n }",
"void remover(Professor p)throws ProfessorNExisteException;",
"@Override\n\tpublic void removepro(int pnum) {\n\t\tsession.update(namespace+\".removepro\", pnum);\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}",
"@Override\n\tpublic Boolean deleteDocument(Document document) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void delete(Unidade obj) {\n\n\t}",
"@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}",
"@Override\n public boolean delete(Revue objet) {\n return false;\n }",
"abstract void deleteXMLProperty(XMLName name);",
"@Override\n\tpublic void remove(cp_company cp) {\n\t\t\n\t}",
"void remover(String cpf)throws ProfessorCpfNExisteException;",
"public void delete_Doc(String titol, String autor) {\n \t\n \tfor (String doc : this.M.keySet()) {\n \t\tfor (String par :this.M.get(doc).keySet()) {\n \t\t\tif (this.IDFJ.get(par).contains(titol+\", \"+autor)) {\n \t\t\t\tif (this.IDFJ.get(par).size() == 1) {\n \t\t\t\t\tthis.IDFJ.remove(par);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tthis.IDFJ.get(par).remove(titol+\", \"+autor);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \tthis.M.remove(titol+\", \"+autor);\n }",
"@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}",
"@Override\r\n\tpublic Ngo delete(Ngo obj) {\n\t\treturn null;\r\n\t}",
"private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }",
"public void removeByTodoDocumentLibrary(String todoDocumentLibrary);",
"void documentRemoved(SingleDocumentModel model);",
"public void delRelations();",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"@DELETE\r\n @Path(\"{id}\")\r\n public void remove(@PathParam(\"id\") Integer id) throws InternalServerErrorException {\r\n LOGGER.info(\"Peticion de borrado de documento\");\r\n Document document = new Document();\r\n document.setId(id);\r\n try {\r\n ejb.deleteDocument(document);\r\n } catch (DeleteException ex) {\r\n LOGGER.warning(\"ERROR a la hora de borrar un documento\");\r\n throw new InternalServerErrorException(\"Erro al borrar el documento\");\r\n }\r\n}",
"private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }",
"@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }",
"public void eliminarEmpleado(String nroDocEmpleado) throws Exception {\n if (this.empleados.containsKey(nroDocEmpleado)) {\r\n this.generarAuditoria(\"BAJA\", \"EMPLEADO\", nroDocEmpleado, \"\", GuiIngresar.getUsuario());\r\n this.empleados.remove(nroDocEmpleado);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El cajero no Existe\");\r\n }\r\n //return retorno;\r\n }",
"public void removeLineaGasto(long pk, long lineaGastoPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public boolean eliminarCursoPorId(CatCurso catCurso) throws NSJPNegocioException;",
"@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}",
"@DeleteMapping\n void removeCoin() {\n coin = false;\n }",
"public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}",
"public void eliminar(Provincia provincia) throws BusinessErrorHelper;",
"void removeObjectDefinition(int i);",
"public void secondaryRemoveOutDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveOutDocument(arg0);\n }",
"public void delete()\n throws ROSRSException {\n annotation.deletePropertyValues(subject, property, merge ? null : value);\n if (annotation.getStatements().isEmpty()) {\n annotation.delete();\n } else {\n annotation.update();\n }\n value = null;\n }",
"public void unsetRappresentanteFiscale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RAPPRESENTANTEFISCALE$4, 0);\r\n }\r\n }",
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"public void cancelarFactura(){\n this.cliente = new Cliente();\n this.factura = new Factura();\n this.listDetalle = new ArrayList<>();\n this.numeroFactura = null;\n }",
"public void removeUserDefinedProperty(String propertyName);",
"@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}",
"void removeInBookNo(Object oldInBookNo);",
"public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"void removeHadithChapterNo(Object oldHadithChapterNo);",
"public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}",
"@Override\n\tpublic RigoDocumento remove(RigoDocumentoPK rigoDocumentoPK)\n\t\tthrows NoSuchRigoDocumentoException, SystemException {\n\t\treturn remove((Serializable)rigoDocumentoPK);\n\t}",
"@Override\r\n\tpublic void remove(int no) {\n\t\tsession.delete(\"enter.delete\", no);\r\n\t}",
"@Test\n public void deletion() {\n repo.addDocument(\"test1\", \"{\\\"test\\\":1}\", \"arthur\", \"test version 1\", false);\n repo.addDocument(\"test1\", \"{\\\"test\\\":2}\", \"arthur\", \"this is version 2\", false);\n repo.removeDocument(\"test1\", \"arthur\", \"removal\");\n\n String result = repo.getDocument(\"test1\");\n assertTrue(result == null);\n\n }",
"ArrayMap<Integer,DefinedProperty> relDelete( long relId );",
"boolean removeDocument(String path);",
"public void clearLineaGastos(long pk)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Override\n public Pacote remove(Object key) {\n Pacote pt = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Pacote SET visivel=FALSE WHERE nomePacote=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return pt;\n }",
"public void removeFromLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"void clearProperty(String key);",
"void clearProperty(String key);",
"@Transactional\n void remove(DataRistorante risto);",
"public void attributDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}",
"public void delIncomingRelations();",
"public void deleteAttr(PCAttributeCollection coll, String attrName) {\n\r\n\t\tXDIClient xdiClient = new XDIHttpClient(cloudEndpointURI);\r\n\r\n\t\t// prepare message envelope\r\n\r\n\t\tMessageEnvelope messageEnvelope = new MessageEnvelope();\r\n\t\tMessage message = messageEnvelope.getMessage(senderCloudNumber, true);\r\n\t\tmessage.setLinkContractXri(linkContractAddress);\r\n\t\tif (secretToken != null) {\r\n\t\t\tmessage.setSecretToken(secretToken);\r\n\t\t}\r\n\t\tmessage.setToAddress(XDI3Segment.fromComponent(XdiPeerRoot\r\n\t\t\t\t.createPeerRootArcXri(cloudNumber)));\r\n\r\n\t\tmessage.createDelOperation(XDI3Segment.create(cloudNumber.toString()\r\n\t\t\t\t+ \"+\" + coll.getName() + \"<+\" + attrName + \">&\"));\r\n\r\n\t\t// System.out.println(\"Message :\\n\" + messageEnvelope + \"\\n\");\r\n\t\ttry {\r\n\t\t\tXDIWriterRegistry.forFormat(\"XDI DISPLAY\", null).write(\r\n\t\t\t\t\tmessageEnvelope.getGraph(), System.out);\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\r\n\t\t// send the message\r\n\r\n\t\tMessageResult messageResult;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tmessageResult = xdiClient.send(messageEnvelope, null);\r\n\t\t\t// System.out.println(messageResult);\r\n\t\t\tMemoryGraph response = (MemoryGraph) messageResult.getGraph();\r\n\t\t\tXDIWriterRegistry.forFormat(\"XDI DISPLAY\", null).write(response,\r\n\t\t\t\t\tSystem.out);\r\n\r\n\t\t} catch (Xdi2ClientException ex) {\r\n\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (Exception ex) {\r\n\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\tcoll.deleteAttribute(attrName);\r\n\r\n\t}",
"public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }",
"abstract protected void deleteNamespaceProperties(long nsContext) throws NamespacePropertiesDeleteException;",
"@Override\n\tpublic boolean delete(Langues obj) {\n\t\treturn false;\n\t}",
"void clearSessionTaxDocument();",
"public abstract void borrarEstadosPropuestas();",
"public boolean removeDocument(Document document) {\n return false;\n }",
"public CensoPSAMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"@Override\r\n\tpublic void DeleteCitizen(int cin) {\n\r\n\t\tem.remove(em.find(Citizen.class, cin));\r\n\r\n\t}",
"public void removeConfigPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_configPage);\r\n }",
"public void removeBydescricao(String descricao);",
"public void deletePolynom(int position) {\n collection.remove(position);\n }",
"public void removeProdotto(String codice, int quantita, Request request) throws Exception {\n\t\tgetSession().getCarrello().removeByCodice(codice, quantita);\n\t\treturn;\n\t}",
"public void remove() {\n\n }",
"@Override\n public void remove(int no) throws Exception {\n \n }"
] |
[
"0.62214935",
"0.6185585",
"0.59011817",
"0.58837324",
"0.5877614",
"0.584108",
"0.58028895",
"0.57918924",
"0.5788301",
"0.5746555",
"0.57187617",
"0.571776",
"0.56943977",
"0.5669682",
"0.56617564",
"0.565596",
"0.5645984",
"0.56386536",
"0.5633536",
"0.5619863",
"0.55950326",
"0.5594836",
"0.55865",
"0.5586016",
"0.5556246",
"0.5547265",
"0.55334806",
"0.55334806",
"0.55334806",
"0.5530768",
"0.55270356",
"0.5520515",
"0.55193657",
"0.5518525",
"0.5517445",
"0.5513102",
"0.5505835",
"0.55019194",
"0.54976207",
"0.54894614",
"0.54845124",
"0.54825085",
"0.5477652",
"0.54485977",
"0.54473895",
"0.5430463",
"0.5427762",
"0.54232055",
"0.54170334",
"0.5413482",
"0.54097164",
"0.5405945",
"0.5398693",
"0.5392702",
"0.53877616",
"0.53847146",
"0.538385",
"0.5383082",
"0.53829396",
"0.53816956",
"0.5362975",
"0.53593045",
"0.535829",
"0.53567344",
"0.5353525",
"0.53488195",
"0.5345907",
"0.5345124",
"0.5343574",
"0.53419423",
"0.5340585",
"0.53397954",
"0.5335599",
"0.5329251",
"0.53204346",
"0.5317442",
"0.5311029",
"0.5309577",
"0.5308324",
"0.5301964",
"0.52996683",
"0.52996683",
"0.52990687",
"0.5294938",
"0.52892274",
"0.5280404",
"0.5275713",
"0.5272887",
"0.5271128",
"0.5249232",
"0.52460706",
"0.5244438",
"0.5237763",
"0.5235753",
"0.5233576",
"0.5231336",
"0.52304065",
"0.52303874",
"0.52300924",
"0.5228327",
"0.5225109"
] |
0.0
|
-1
|
Remove uma propriedade do corpo do documento NCL.
|
public boolean removeProperty(Pp property) {
if(properties.remove(property)){
//Se property existe, retira o seu parentesco
if(property != null)
property.setParent(null);
notifyRemoved(NCLElementSets.PROPERTIES, property);
return true;
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void relRemoveProperty( long relId, int propertyKey );",
"Form removeProperty(String key);",
"public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"public void removeDoc(Document doc) {//borra el objeto\n documents.remove(doc);\n }",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}",
"@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}",
"@Override\n\tpublic void RemoverCarrinho(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"public void removeProperty(TLProperty element);",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"public void secondaryRemoveInDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveInDocument(arg0);\n }",
"void graphRemoveProperty( int propertyKey );",
"PropertiesTask removeProperty( String key );",
"@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}",
"public Object removeProperty( String key );",
"public void removeDocumenterRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_documenterRole);\r\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"void nodeRemoveProperty( long nodeId, int propertyKey );",
"@Override\n\t\tpublic Object removeProperty(String key) {\n\t\t\treturn null;\n\t\t}",
"public void delete(ReceiptFormPO po) throws RemoteException {\n\t\tSystem.out.println(\"Delete ReceiptFormPO Start!!\");\n\t\t\n\t\tif(po==null){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tioHelper = new IOHelper();\n\t\tallReceiptForm = ioHelper.readFromFile(file);\n\t\tSystem.out.println(po.getNO() );\n\t\tallReceiptForm.remove(po.getNO());\n\t\tioHelper.writeToFile(allReceiptForm, file);\n\t}",
"public void remove(MongoDBCritera critera);",
"@Override\r\n\tpublic void remove(int codigoLivro) throws BaseDadosException {\n\t\t\r\n\t}",
"public void remove()\n { \n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_NO_DELETE\"); // Message name\n \n }",
"private void UpdateDeleteNestedValue(){\n notebookRef.document(\"IpWOjXtIgGJ2giKF4VTp\")\r\n // Note Remove the Element without the posiotion is not possible Because if multiple user remove the same name of field then it make issue So thats Why we pass Value \"New tag\"\r\n .update(KEY_Tags+\".tag1\", FieldValue.delete());// Now this key tag1 which is inside the tags is deleted key and its value\r\n\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"void deleteDaftarhunianDtl(DaftarhunianDtl.MyCompositePK no) {\n }",
"void remover(Professor p)throws ProfessorNExisteException;",
"@Override\n\tpublic void removepro(int pnum) {\n\t\tsession.update(namespace+\".removepro\", pnum);\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}",
"@Override\n\tpublic Boolean deleteDocument(Document document) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void delete(Unidade obj) {\n\n\t}",
"@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}",
"@Override\n public boolean delete(Revue objet) {\n return false;\n }",
"abstract void deleteXMLProperty(XMLName name);",
"@Override\n\tpublic void remove(cp_company cp) {\n\t\t\n\t}",
"void remover(String cpf)throws ProfessorCpfNExisteException;",
"public void delete_Doc(String titol, String autor) {\n \t\n \tfor (String doc : this.M.keySet()) {\n \t\tfor (String par :this.M.get(doc).keySet()) {\n \t\t\tif (this.IDFJ.get(par).contains(titol+\", \"+autor)) {\n \t\t\t\tif (this.IDFJ.get(par).size() == 1) {\n \t\t\t\t\tthis.IDFJ.remove(par);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tthis.IDFJ.get(par).remove(titol+\", \"+autor);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \tthis.M.remove(titol+\", \"+autor);\n }",
"@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}",
"@Override\r\n\tpublic Ngo delete(Ngo obj) {\n\t\treturn null;\r\n\t}",
"private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }",
"public void removeByTodoDocumentLibrary(String todoDocumentLibrary);",
"void documentRemoved(SingleDocumentModel model);",
"public void delRelations();",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"@DELETE\r\n @Path(\"{id}\")\r\n public void remove(@PathParam(\"id\") Integer id) throws InternalServerErrorException {\r\n LOGGER.info(\"Peticion de borrado de documento\");\r\n Document document = new Document();\r\n document.setId(id);\r\n try {\r\n ejb.deleteDocument(document);\r\n } catch (DeleteException ex) {\r\n LOGGER.warning(\"ERROR a la hora de borrar un documento\");\r\n throw new InternalServerErrorException(\"Erro al borrar el documento\");\r\n }\r\n}",
"private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }",
"@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }",
"public void eliminarEmpleado(String nroDocEmpleado) throws Exception {\n if (this.empleados.containsKey(nroDocEmpleado)) {\r\n this.generarAuditoria(\"BAJA\", \"EMPLEADO\", nroDocEmpleado, \"\", GuiIngresar.getUsuario());\r\n this.empleados.remove(nroDocEmpleado);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El cajero no Existe\");\r\n }\r\n //return retorno;\r\n }",
"public void removeLineaGasto(long pk, long lineaGastoPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public boolean eliminarCursoPorId(CatCurso catCurso) throws NSJPNegocioException;",
"@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}",
"@DeleteMapping\n void removeCoin() {\n coin = false;\n }",
"public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}",
"public void eliminar(Provincia provincia) throws BusinessErrorHelper;",
"void removeObjectDefinition(int i);",
"public void secondaryRemoveOutDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveOutDocument(arg0);\n }",
"public void delete()\n throws ROSRSException {\n annotation.deletePropertyValues(subject, property, merge ? null : value);\n if (annotation.getStatements().isEmpty()) {\n annotation.delete();\n } else {\n annotation.update();\n }\n value = null;\n }",
"public void unsetRappresentanteFiscale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RAPPRESENTANTEFISCALE$4, 0);\r\n }\r\n }",
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"public void cancelarFactura(){\n this.cliente = new Cliente();\n this.factura = new Factura();\n this.listDetalle = new ArrayList<>();\n this.numeroFactura = null;\n }",
"public void removeUserDefinedProperty(String propertyName);",
"@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}",
"void removeInBookNo(Object oldInBookNo);",
"public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"void removeHadithChapterNo(Object oldHadithChapterNo);",
"public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}",
"@Override\n\tpublic RigoDocumento remove(RigoDocumentoPK rigoDocumentoPK)\n\t\tthrows NoSuchRigoDocumentoException, SystemException {\n\t\treturn remove((Serializable)rigoDocumentoPK);\n\t}",
"@Override\r\n\tpublic void remove(int no) {\n\t\tsession.delete(\"enter.delete\", no);\r\n\t}",
"@Test\n public void deletion() {\n repo.addDocument(\"test1\", \"{\\\"test\\\":1}\", \"arthur\", \"test version 1\", false);\n repo.addDocument(\"test1\", \"{\\\"test\\\":2}\", \"arthur\", \"this is version 2\", false);\n repo.removeDocument(\"test1\", \"arthur\", \"removal\");\n\n String result = repo.getDocument(\"test1\");\n assertTrue(result == null);\n\n }",
"ArrayMap<Integer,DefinedProperty> relDelete( long relId );",
"boolean removeDocument(String path);",
"public void clearLineaGastos(long pk)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Override\n public Pacote remove(Object key) {\n Pacote pt = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Pacote SET visivel=FALSE WHERE nomePacote=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return pt;\n }",
"public void removeFromLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"void clearProperty(String key);",
"void clearProperty(String key);",
"@Transactional\n void remove(DataRistorante risto);",
"public void attributDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}",
"public void delIncomingRelations();",
"public void deleteAttr(PCAttributeCollection coll, String attrName) {\n\r\n\t\tXDIClient xdiClient = new XDIHttpClient(cloudEndpointURI);\r\n\r\n\t\t// prepare message envelope\r\n\r\n\t\tMessageEnvelope messageEnvelope = new MessageEnvelope();\r\n\t\tMessage message = messageEnvelope.getMessage(senderCloudNumber, true);\r\n\t\tmessage.setLinkContractXri(linkContractAddress);\r\n\t\tif (secretToken != null) {\r\n\t\t\tmessage.setSecretToken(secretToken);\r\n\t\t}\r\n\t\tmessage.setToAddress(XDI3Segment.fromComponent(XdiPeerRoot\r\n\t\t\t\t.createPeerRootArcXri(cloudNumber)));\r\n\r\n\t\tmessage.createDelOperation(XDI3Segment.create(cloudNumber.toString()\r\n\t\t\t\t+ \"+\" + coll.getName() + \"<+\" + attrName + \">&\"));\r\n\r\n\t\t// System.out.println(\"Message :\\n\" + messageEnvelope + \"\\n\");\r\n\t\ttry {\r\n\t\t\tXDIWriterRegistry.forFormat(\"XDI DISPLAY\", null).write(\r\n\t\t\t\t\tmessageEnvelope.getGraph(), System.out);\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\r\n\t\t// send the message\r\n\r\n\t\tMessageResult messageResult;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tmessageResult = xdiClient.send(messageEnvelope, null);\r\n\t\t\t// System.out.println(messageResult);\r\n\t\t\tMemoryGraph response = (MemoryGraph) messageResult.getGraph();\r\n\t\t\tXDIWriterRegistry.forFormat(\"XDI DISPLAY\", null).write(response,\r\n\t\t\t\t\tSystem.out);\r\n\r\n\t\t} catch (Xdi2ClientException ex) {\r\n\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (Exception ex) {\r\n\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\tcoll.deleteAttribute(attrName);\r\n\r\n\t}",
"public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }",
"abstract protected void deleteNamespaceProperties(long nsContext) throws NamespacePropertiesDeleteException;",
"@Override\n\tpublic boolean delete(Langues obj) {\n\t\treturn false;\n\t}",
"void clearSessionTaxDocument();",
"public abstract void borrarEstadosPropuestas();",
"public boolean removeDocument(Document document) {\n return false;\n }",
"public CensoPSAMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"@Override\r\n\tpublic void DeleteCitizen(int cin) {\n\r\n\t\tem.remove(em.find(Citizen.class, cin));\r\n\r\n\t}",
"public void removeConfigPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_configPage);\r\n }",
"public void removeBydescricao(String descricao);",
"public void deletePolynom(int position) {\n collection.remove(position);\n }",
"public void removeProdotto(String codice, int quantita, Request request) throws Exception {\n\t\tgetSession().getCarrello().removeByCodice(codice, quantita);\n\t\treturn;\n\t}",
"public void remove() {\n\n }",
"@Override\n public void remove(int no) throws Exception {\n \n }"
] |
[
"0.62214935",
"0.6185585",
"0.59011817",
"0.58837324",
"0.5877614",
"0.584108",
"0.58028895",
"0.57918924",
"0.5788301",
"0.5746555",
"0.57187617",
"0.571776",
"0.56943977",
"0.5669682",
"0.56617564",
"0.565596",
"0.5645984",
"0.56386536",
"0.5633536",
"0.5619863",
"0.55950326",
"0.5594836",
"0.55865",
"0.5586016",
"0.5556246",
"0.5547265",
"0.55334806",
"0.55334806",
"0.55334806",
"0.5530768",
"0.55270356",
"0.5520515",
"0.55193657",
"0.5518525",
"0.5517445",
"0.5513102",
"0.5505835",
"0.55019194",
"0.54976207",
"0.54894614",
"0.54845124",
"0.54825085",
"0.5477652",
"0.54485977",
"0.54473895",
"0.5430463",
"0.5427762",
"0.54232055",
"0.54170334",
"0.5413482",
"0.54097164",
"0.5405945",
"0.5398693",
"0.5392702",
"0.53877616",
"0.53847146",
"0.538385",
"0.5383082",
"0.53829396",
"0.53816956",
"0.5362975",
"0.53593045",
"0.535829",
"0.53567344",
"0.5353525",
"0.53488195",
"0.5345907",
"0.5345124",
"0.5343574",
"0.53419423",
"0.5340585",
"0.53397954",
"0.5335599",
"0.5329251",
"0.53204346",
"0.5317442",
"0.5311029",
"0.5309577",
"0.5308324",
"0.5301964",
"0.52996683",
"0.52996683",
"0.52990687",
"0.5294938",
"0.52892274",
"0.5280404",
"0.5275713",
"0.5272887",
"0.5271128",
"0.5249232",
"0.52460706",
"0.5244438",
"0.5237763",
"0.5235753",
"0.5233576",
"0.5231336",
"0.52304065",
"0.52303874",
"0.52300924",
"0.5228327",
"0.5225109"
] |
0.0
|
-1
|
Verifica se o corpo do documento NCL possui uma propriedade.
|
public boolean hasProperty(String name) {
for(Pp property : properties){
if(property.getId().equals(name))
return true;
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isAssocProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }",
"boolean hasFkocs();",
"boolean hasProofDocument();",
"boolean hasProofDocument();",
"boolean isSetNcbieaa();",
"Object getPropertyexists();",
"private boolean loadPropertiesDefinition()\n\t{\n\t\tString dname = org.apache.commons.io.FilenameUtils.concat(Paths.docDir,\n\t\t\t\torg.apache.commons.io.FilenameUtils.concat(lan.isoName, \"Lexical Analysis\"));\n\t\tString pname = org.apache.commons.io.FilenameUtils.concat(dname, \"_properties.def\");\n\t\tString errmessage = null;\n\t\tRefObject<String> errmessageRef = new RefObject<String>(errmessage);\n\t\tif (!loadCategoryPropertiesFeatures(pname, errmessageRef))\n\t\t{\n\t\t\terrmessage = errmessageRef.argvalue;\n\t\t\tJOptionPane.showMessageDialog(Launcher.getDesktopPane(), \"Warning: \" + errmessage, \"NooJ WARNING\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"boolean hasDocumentType();",
"boolean hasGetProperty();",
"@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }",
"@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasProperty0();",
"public boolean isProperty();",
"@Override\n public boolean hasProperty(final String relPath) {\n return false;\n }",
"boolean hasProperty1();",
"public boolean isSetRappresentanteFiscale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RAPPRESENTANTEFISCALE$4) != 0;\r\n }\r\n }",
"@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}",
"private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}",
"public boolean isPropertyMissing() {\n \t\t\t\t\t\t\t\t\treturn false;\n \t\t\t\t\t\t\t\t}",
"public abstract boolean isAllowCustomProperties();",
"private boolean existeMatrizDocumental(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_doc_config_enc \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}",
"boolean isSetNcbi8Aa();",
"boolean hasProperty2();",
"public boolean existeix_Doc(String titol, String autor) {\n return this.M.containsKey(titol+\", \"+autor);\n }",
"boolean hasSetProperty();",
"@java.lang.Override\n public boolean hasChulaId() {\n return chulaId_ != null;\n }",
"public boolean checkProbleem() {\n\t\tif (object.getProbleem() != null\n\t\t\t\t&& object.getProbleem().getCommentaar() != null\n\t\t\t\t&& !object.getProbleem().getCommentaar().isEmpty()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }",
"public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }",
"public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }",
"boolean isSetNcbistdaa();",
"String getPropertyExists();",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"abstract boolean hasXMLProperty(XMLName name);",
"@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }",
"@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }",
"public boolean existsProperty(String name)\r\n\t{\r\n\t\treturn obtainOntProperty(name) != null;\r\n\t}",
"public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }",
"public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"public boolean hasDocumentType() {\n return fieldSetFlags()[11];\n }",
"public boolean isSetPlaca() {\r\n return this.placa != null;\r\n }",
"@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}",
"public static boolean exists(){\n \t\treturn everbie != null;\n \t}",
"@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"boolean hasPropType();",
"private boolean isRelationship(Predicate p) throws MediatorException {\n\t// check if properties represented by the column names exist\n\tif (p.getName().startsWith(\"XW_\"))\n\t return true;\n\treturn false;\n\n }",
"public boolean isSetProperties() {\n return this.properties != null;\n }",
"public boolean existeListaProduto_ReferenteA() {\n\t\t\treturn listaprodutoReferenteA!= null;\n\t\t}",
"public boolean isSetCpfCidadao() {\n return this.cpfCidadao != null;\n }",
"boolean isSetNextrun();",
"public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }",
"public boolean isSetNewProperties() {\n return this.newProperties != null;\n }",
"public boolean isSetCarprovincename() {\n return this.carprovincename != null;\n }",
"public boolean hasProperty() {\n return !properties.isEmpty();\n }",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }",
"public boolean hasDocumentStandard() {\n return fieldSetFlags()[9];\n }",
"public boolean isSetCnName() {\n return this.cnName != null;\n }",
"public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }",
"public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}",
"boolean hasAttributes();",
"boolean hasAttributes();",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }",
"protected boolean isUsingAtLeastOneSearchAttribute(DocumentSearchCriteria criteria) {\n return criteria.getDocumentAttributeValues().size() > 0 || StringUtils.isNotBlank(criteria.getDocumentTypeName());\n }",
"public boolean isOpen() {\r\n \r\n boolean open = false;\r\n\r\n List<String> permitidas = new ArrayList();\r\n List<String> prohibidas = new ArrayList();\r\n //PROCESANDO LO PERMITIDO.\r\n NodeIterator ni = license.model.listObjectsOfProperty( ModelFactory.createDefaultModel().createResource(license.getURI()), ODRL.PPERMISSION);\r\n while(ni.hasNext())\r\n {\r\n RDFNode n = ni.next();\r\n if(n.isResource())\r\n {\r\n Resource r = n.asResource();\r\n StmtIterator sit = r.listProperties(ODRL.PACTION);\r\n while(sit.hasNext())\r\n {\r\n Statement st=sit.next();\r\n RDFNode n2 = st.getObject();\r\n String s = n2.asResource().getLocalName();\r\n permitidas.add(s);\r\n }\r\n }\r\n }\r\n \r\n //PROCESANDO LO PROHIBIDO\r\n ni = license.model.listObjectsOfProperty( ModelFactory.createDefaultModel().createResource(license.getURI()), ODRL.PPROHIBITION);\r\n while(ni.hasNext())\r\n {\r\n RDFNode n = ni.next();\r\n if(n.isResource())\r\n {\r\n Resource r = n.asResource();\r\n StmtIterator sit = r.listProperties(ODRL.PACTION);\r\n while(sit.hasNext())\r\n {\r\n Statement st=sit.next();\r\n RDFNode n2 = st.getObject();\r\n String s = n2.asResource().getLocalName();\r\n prohibidas.add(s);\r\n }\r\n }\r\n } \r\n for(String s : permitidas)\r\n System.out.println(\"OK \" + s);\r\n for(String s : prohibidas)\r\n System.out.println(\"NOK \" + s);\r\n if (permitidas.contains(\"Distribution\") && permitidas.contains(\"DerivativeWorks\") && !prohibidas.contains(\"CommercialUse\"))\r\n open = true;\r\n return open;\r\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"boolean isSetCit();",
"public boolean hasChulaId() {\n return chulaIdBuilder_ != null || chulaId_ != null;\n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"boolean hasAutomlObjectTrackingConfig();",
"public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILECONT$2) != 0;\n }\n }",
"@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }",
"public boolean validarCurso() {\n\t\treturn curso != null;\n\t}",
"boolean propertyExists(Object name) throws JMSException;",
"public boolean hasC() {\n return c_ != null;\n }",
"public boolean isSetCnsResponsavelFamiliar() {\n return this.cnsResponsavelFamiliar != null;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readNetwrodInfo() {\n\t\tboolean flag = oTest.readNetwrodInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"boolean isNilIsManaged();",
"public boolean verificaUnicidadeNome() {\n\t\tif(!EntidadesDAO.existeNome(entidades.getNome())) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean checkPropertyUpdateView() {\n \t\treturn Boolean.getBoolean(PROPERTY_RIENA_LNF_UPDATE_VIEW);\n \t}",
"public java.lang.Integer getNocCheck() {\r\n return nocCheck;\r\n }",
"public boolean isSetOri() {\n return this.ori != null;\n }",
"private boolean estPlein() {\n return (nbAssoc == associations.length);\n }",
"public boolean hasProperty( String key );",
"private boolean checkExistence(MaintenanceDocument maintenanceDocument) {\n\n\n boolean valid= true;\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"new maintainable is: \" + maintenanceDocument.getNewMaintainableObject().getClass());\n }\n BudgetCategory budgetCategory = (BudgetCategory) maintenanceDocument.getNewMaintainableObject().getDataObject();\n\n Map pkMap = new HashMap();\n pkMap.put(\"budgetCategoryTypeCode\", budgetCategory.getBudgetCategoryTypeCode());\n valid=checkExistenceFromTable(BudgetCategoryType.class,pkMap,\"budgetCategoryTypeCode\", \"Budget Category Type\");\n\n\n return valid;\n\n }",
"public boolean esIdentificador() {\n\t\tif (Entidad.class.isInstance(this.getPadre())) {\n\t\t\tSet<Identificador> identificadores = ((Entidad) this.getPadre()).identificadores;\n\n\t\t\tfor (Identificador identificador : identificadores) {\n\t\t\t\tif (identificador.contiene(this) && identificador.getEntidades().isEmpty()\n\t\t\t\t\t\t&& identificador.getAtributos().size() == 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isSetFilePlac()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILEPLAC$12) != 0;\n }\n }"
] |
[
"0.61828476",
"0.5892448",
"0.5892448",
"0.5892448",
"0.58511525",
"0.5821944",
"0.5783594",
"0.5783594",
"0.5751288",
"0.57496464",
"0.57122046",
"0.56751907",
"0.56617683",
"0.5648534",
"0.5648534",
"0.56479686",
"0.56479686",
"0.56479686",
"0.5644067",
"0.563618",
"0.56063193",
"0.56059307",
"0.5600098",
"0.5589694",
"0.55813766",
"0.55777395",
"0.5575015",
"0.55578065",
"0.55560815",
"0.5555626",
"0.55452466",
"0.552896",
"0.55286133",
"0.55228806",
"0.55039877",
"0.54986626",
"0.5494519",
"0.5483008",
"0.54810596",
"0.5461682",
"0.5458201",
"0.5455834",
"0.5455834",
"0.5425614",
"0.5409735",
"0.5409735",
"0.5402868",
"0.53987557",
"0.53987557",
"0.53987557",
"0.5392585",
"0.5385105",
"0.5365386",
"0.5363225",
"0.5355713",
"0.53536564",
"0.53466475",
"0.5345493",
"0.53217053",
"0.53179294",
"0.5309913",
"0.5301949",
"0.529551",
"0.52948725",
"0.5290692",
"0.5289406",
"0.5278326",
"0.5277337",
"0.52648807",
"0.5242725",
"0.52392447",
"0.52392447",
"0.52344906",
"0.52294093",
"0.5226039",
"0.52218664",
"0.5221125",
"0.5221125",
"0.5221125",
"0.5221125",
"0.5211266",
"0.5200057",
"0.5199919",
"0.5195754",
"0.51948977",
"0.518945",
"0.51864445",
"0.5184645",
"0.51807356",
"0.51801896",
"0.5179817",
"0.5178979",
"0.5172781",
"0.51684874",
"0.5168025",
"0.516772",
"0.5159925",
"0.5152434",
"0.51453227",
"0.51427984",
"0.51407295"
] |
0.0
|
-1
|
Verifica se o corpo do documento NCL possui uma propriedade.
|
public boolean hasProperty(Pp property) {
return properties.contains(property);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isAssocProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }",
"boolean hasFkocs();",
"boolean hasProofDocument();",
"boolean hasProofDocument();",
"boolean isSetNcbieaa();",
"Object getPropertyexists();",
"private boolean loadPropertiesDefinition()\n\t{\n\t\tString dname = org.apache.commons.io.FilenameUtils.concat(Paths.docDir,\n\t\t\t\torg.apache.commons.io.FilenameUtils.concat(lan.isoName, \"Lexical Analysis\"));\n\t\tString pname = org.apache.commons.io.FilenameUtils.concat(dname, \"_properties.def\");\n\t\tString errmessage = null;\n\t\tRefObject<String> errmessageRef = new RefObject<String>(errmessage);\n\t\tif (!loadCategoryPropertiesFeatures(pname, errmessageRef))\n\t\t{\n\t\t\terrmessage = errmessageRef.argvalue;\n\t\t\tJOptionPane.showMessageDialog(Launcher.getDesktopPane(), \"Warning: \" + errmessage, \"NooJ WARNING\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"boolean hasDocumentType();",
"boolean hasGetProperty();",
"@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }",
"@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasProperty0();",
"public boolean isProperty();",
"@Override\n public boolean hasProperty(final String relPath) {\n return false;\n }",
"boolean hasProperty1();",
"public boolean isSetRappresentanteFiscale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RAPPRESENTANTEFISCALE$4) != 0;\r\n }\r\n }",
"@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}",
"private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}",
"public boolean isPropertyMissing() {\n \t\t\t\t\t\t\t\t\treturn false;\n \t\t\t\t\t\t\t\t}",
"public abstract boolean isAllowCustomProperties();",
"private boolean existeMatrizDocumental(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_doc_config_enc \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}",
"boolean hasProperty2();",
"boolean isSetNcbi8Aa();",
"public boolean existeix_Doc(String titol, String autor) {\n return this.M.containsKey(titol+\", \"+autor);\n }",
"@java.lang.Override\n public boolean hasChulaId() {\n return chulaId_ != null;\n }",
"boolean hasSetProperty();",
"public boolean checkProbleem() {\n\t\tif (object.getProbleem() != null\n\t\t\t\t&& object.getProbleem().getCommentaar() != null\n\t\t\t\t&& !object.getProbleem().getCommentaar().isEmpty()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }",
"public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }",
"public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }",
"String getPropertyExists();",
"boolean isSetNcbistdaa();",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"abstract boolean hasXMLProperty(XMLName name);",
"@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }",
"@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }",
"public boolean existsProperty(String name)\r\n\t{\r\n\t\treturn obtainOntProperty(name) != null;\r\n\t}",
"public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }",
"public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"public boolean hasDocumentType() {\n return fieldSetFlags()[11];\n }",
"public boolean isSetPlaca() {\r\n return this.placa != null;\r\n }",
"@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}",
"public static boolean exists(){\n \t\treturn everbie != null;\n \t}",
"@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"boolean hasPropType();",
"private boolean isRelationship(Predicate p) throws MediatorException {\n\t// check if properties represented by the column names exist\n\tif (p.getName().startsWith(\"XW_\"))\n\t return true;\n\treturn false;\n\n }",
"public boolean isSetProperties() {\n return this.properties != null;\n }",
"public boolean existeListaProduto_ReferenteA() {\n\t\t\treturn listaprodutoReferenteA!= null;\n\t\t}",
"public boolean isSetCpfCidadao() {\n return this.cpfCidadao != null;\n }",
"boolean isSetNextrun();",
"public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }",
"public boolean isSetNewProperties() {\n return this.newProperties != null;\n }",
"public boolean isSetCarprovincename() {\n return this.carprovincename != null;\n }",
"public boolean hasProperty() {\n return !properties.isEmpty();\n }",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }",
"public boolean hasDocumentStandard() {\n return fieldSetFlags()[9];\n }",
"public boolean isSetCnName() {\n return this.cnName != null;\n }",
"public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }",
"public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}",
"boolean hasAttributes();",
"boolean hasAttributes();",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }",
"protected boolean isUsingAtLeastOneSearchAttribute(DocumentSearchCriteria criteria) {\n return criteria.getDocumentAttributeValues().size() > 0 || StringUtils.isNotBlank(criteria.getDocumentTypeName());\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isSetDescricao() {\n return this.descricao != null;\n }",
"public boolean isOpen() {\r\n \r\n boolean open = false;\r\n\r\n List<String> permitidas = new ArrayList();\r\n List<String> prohibidas = new ArrayList();\r\n //PROCESANDO LO PERMITIDO.\r\n NodeIterator ni = license.model.listObjectsOfProperty( ModelFactory.createDefaultModel().createResource(license.getURI()), ODRL.PPERMISSION);\r\n while(ni.hasNext())\r\n {\r\n RDFNode n = ni.next();\r\n if(n.isResource())\r\n {\r\n Resource r = n.asResource();\r\n StmtIterator sit = r.listProperties(ODRL.PACTION);\r\n while(sit.hasNext())\r\n {\r\n Statement st=sit.next();\r\n RDFNode n2 = st.getObject();\r\n String s = n2.asResource().getLocalName();\r\n permitidas.add(s);\r\n }\r\n }\r\n }\r\n \r\n //PROCESANDO LO PROHIBIDO\r\n ni = license.model.listObjectsOfProperty( ModelFactory.createDefaultModel().createResource(license.getURI()), ODRL.PPROHIBITION);\r\n while(ni.hasNext())\r\n {\r\n RDFNode n = ni.next();\r\n if(n.isResource())\r\n {\r\n Resource r = n.asResource();\r\n StmtIterator sit = r.listProperties(ODRL.PACTION);\r\n while(sit.hasNext())\r\n {\r\n Statement st=sit.next();\r\n RDFNode n2 = st.getObject();\r\n String s = n2.asResource().getLocalName();\r\n prohibidas.add(s);\r\n }\r\n }\r\n } \r\n for(String s : permitidas)\r\n System.out.println(\"OK \" + s);\r\n for(String s : prohibidas)\r\n System.out.println(\"NOK \" + s);\r\n if (permitidas.contains(\"Distribution\") && permitidas.contains(\"DerivativeWorks\") && !prohibidas.contains(\"CommercialUse\"))\r\n open = true;\r\n return open;\r\n }",
"boolean isSetCit();",
"public boolean hasChulaId() {\n return chulaIdBuilder_ != null || chulaId_ != null;\n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"boolean hasAutomlObjectTrackingConfig();",
"public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILECONT$2) != 0;\n }\n }",
"@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }",
"public boolean validarCurso() {\n\t\treturn curso != null;\n\t}",
"boolean propertyExists(Object name) throws JMSException;",
"public boolean isSetCnsResponsavelFamiliar() {\n return this.cnsResponsavelFamiliar != null;\n }",
"public boolean hasC() {\n return c_ != null;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readNetwrodInfo() {\n\t\tboolean flag = oTest.readNetwrodInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"boolean isNilIsManaged();",
"public boolean verificaUnicidadeNome() {\n\t\tif(!EntidadesDAO.existeNome(entidades.getNome())) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean checkPropertyUpdateView() {\n \t\treturn Boolean.getBoolean(PROPERTY_RIENA_LNF_UPDATE_VIEW);\n \t}",
"public boolean isSetOri() {\n return this.ori != null;\n }",
"public java.lang.Integer getNocCheck() {\r\n return nocCheck;\r\n }",
"private boolean estPlein() {\n return (nbAssoc == associations.length);\n }",
"public boolean hasProperty( String key );",
"private boolean checkExistence(MaintenanceDocument maintenanceDocument) {\n\n\n boolean valid= true;\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"new maintainable is: \" + maintenanceDocument.getNewMaintainableObject().getClass());\n }\n BudgetCategory budgetCategory = (BudgetCategory) maintenanceDocument.getNewMaintainableObject().getDataObject();\n\n Map pkMap = new HashMap();\n pkMap.put(\"budgetCategoryTypeCode\", budgetCategory.getBudgetCategoryTypeCode());\n valid=checkExistenceFromTable(BudgetCategoryType.class,pkMap,\"budgetCategoryTypeCode\", \"Budget Category Type\");\n\n\n return valid;\n\n }",
"public boolean esIdentificador() {\n\t\tif (Entidad.class.isInstance(this.getPadre())) {\n\t\t\tSet<Identificador> identificadores = ((Entidad) this.getPadre()).identificadores;\n\n\t\t\tfor (Identificador identificador : identificadores) {\n\t\t\t\tif (identificador.contiene(this) && identificador.getEntidades().isEmpty()\n\t\t\t\t\t\t&& identificador.getAtributos().size() == 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isSetFilePlac()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILEPLAC$12) != 0;\n }\n }"
] |
[
"0.6183947",
"0.5892853",
"0.5892853",
"0.5892853",
"0.58508486",
"0.5821698",
"0.5784681",
"0.5784681",
"0.57492167",
"0.5749075",
"0.57135326",
"0.56767297",
"0.5661377",
"0.5649657",
"0.5649657",
"0.56493926",
"0.56493926",
"0.56493926",
"0.56438476",
"0.563706",
"0.5606952",
"0.56059796",
"0.56006575",
"0.558977",
"0.5579505",
"0.5577911",
"0.55749005",
"0.55583256",
"0.5555392",
"0.5554392",
"0.5547161",
"0.55287576",
"0.5528586",
"0.5522454",
"0.5504417",
"0.54975194",
"0.5494916",
"0.54810226",
"0.5480887",
"0.5462009",
"0.5458281",
"0.5456644",
"0.5456644",
"0.5426338",
"0.54110783",
"0.54110783",
"0.5402937",
"0.54006064",
"0.54006064",
"0.54006064",
"0.5394434",
"0.53853005",
"0.536544",
"0.5363012",
"0.5356559",
"0.5354061",
"0.53464377",
"0.5346311",
"0.53228843",
"0.5318123",
"0.53074163",
"0.53012544",
"0.52953035",
"0.52943647",
"0.52918243",
"0.52882427",
"0.52790946",
"0.5276529",
"0.5265125",
"0.52430236",
"0.5238562",
"0.5238562",
"0.5233708",
"0.52290225",
"0.5227055",
"0.5222026",
"0.5222026",
"0.5222026",
"0.5222026",
"0.52220076",
"0.5210166",
"0.520014",
"0.51999694",
"0.5195581",
"0.51955366",
"0.5188503",
"0.51857144",
"0.5185035",
"0.5180916",
"0.5180705",
"0.51773924",
"0.5177374",
"0.51729286",
"0.5167476",
"0.5167345",
"0.5167113",
"0.5159171",
"0.515239",
"0.51442635",
"0.51436436",
"0.5141388"
] |
0.0
|
-1
|
Verifica se o corpo do documento NCL possui alguma propriedade.
|
public boolean hasProperty() {
return !properties.isEmpty();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasFkocs();",
"boolean hasProofDocument();",
"boolean hasProofDocument();",
"boolean isSetNcbieaa();",
"public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"private boolean existeMatrizDocumental(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_doc_config_enc \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}",
"boolean isSetNcbistdaa();",
"public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }",
"public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}",
"boolean hasDocumentType();",
"@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }",
"@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }",
"private boolean loadPropertiesDefinition()\n\t{\n\t\tString dname = org.apache.commons.io.FilenameUtils.concat(Paths.docDir,\n\t\t\t\torg.apache.commons.io.FilenameUtils.concat(lan.isoName, \"Lexical Analysis\"));\n\t\tString pname = org.apache.commons.io.FilenameUtils.concat(dname, \"_properties.def\");\n\t\tString errmessage = null;\n\t\tRefObject<String> errmessageRef = new RefObject<String>(errmessage);\n\t\tif (!loadCategoryPropertiesFeatures(pname, errmessageRef))\n\t\t{\n\t\t\terrmessage = errmessageRef.argvalue;\n\t\t\tJOptionPane.showMessageDialog(Launcher.getDesktopPane(), \"Warning: \" + errmessage, \"NooJ WARNING\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isOpen() {\r\n \r\n boolean open = false;\r\n\r\n List<String> permitidas = new ArrayList();\r\n List<String> prohibidas = new ArrayList();\r\n //PROCESANDO LO PERMITIDO.\r\n NodeIterator ni = license.model.listObjectsOfProperty( ModelFactory.createDefaultModel().createResource(license.getURI()), ODRL.PPERMISSION);\r\n while(ni.hasNext())\r\n {\r\n RDFNode n = ni.next();\r\n if(n.isResource())\r\n {\r\n Resource r = n.asResource();\r\n StmtIterator sit = r.listProperties(ODRL.PACTION);\r\n while(sit.hasNext())\r\n {\r\n Statement st=sit.next();\r\n RDFNode n2 = st.getObject();\r\n String s = n2.asResource().getLocalName();\r\n permitidas.add(s);\r\n }\r\n }\r\n }\r\n \r\n //PROCESANDO LO PROHIBIDO\r\n ni = license.model.listObjectsOfProperty( ModelFactory.createDefaultModel().createResource(license.getURI()), ODRL.PPROHIBITION);\r\n while(ni.hasNext())\r\n {\r\n RDFNode n = ni.next();\r\n if(n.isResource())\r\n {\r\n Resource r = n.asResource();\r\n StmtIterator sit = r.listProperties(ODRL.PACTION);\r\n while(sit.hasNext())\r\n {\r\n Statement st=sit.next();\r\n RDFNode n2 = st.getObject();\r\n String s = n2.asResource().getLocalName();\r\n prohibidas.add(s);\r\n }\r\n }\r\n } \r\n for(String s : permitidas)\r\n System.out.println(\"OK \" + s);\r\n for(String s : prohibidas)\r\n System.out.println(\"NOK \" + s);\r\n if (permitidas.contains(\"Distribution\") && permitidas.contains(\"DerivativeWorks\") && !prohibidas.contains(\"CommercialUse\"))\r\n open = true;\r\n return open;\r\n }",
"@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}",
"boolean isSetNcbi8Aa();",
"public boolean existeix_Doc(String titol, String autor) {\n return this.M.containsKey(titol+\", \"+autor);\n }",
"public java.lang.Integer getNocCheck() {\r\n return nocCheck;\r\n }",
"public boolean isAssocProperty();",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkNetword() {\n\t\tboolean flag = oTest.checkNetword();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public boolean hasDocumentStandard() {\n return fieldSetFlags()[9];\n }",
"private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }",
"boolean isSetNextrun();",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"@java.lang.Override\n public boolean hasChulaId() {\n return chulaId_ != null;\n }",
"public boolean checkProbleem() {\n\t\tif (object.getProbleem() != null\n\t\t\t\t&& object.getProbleem().getCommentaar() != null\n\t\t\t\t&& !object.getProbleem().getCommentaar().isEmpty()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean existDocumentContent(long arg0) throws ContestManagementException {\r\n return false;\r\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readNetwrodInfo() {\n\t\tboolean flag = oTest.readNetwrodInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"public boolean isSetRappresentanteFiscale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RAPPRESENTANTEFISCALE$4) != 0;\r\n }\r\n }",
"public boolean validarCurso() {\n\t\treturn curso != null;\n\t}",
"private boolean estPlein() {\n return (nbAssoc == associations.length);\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"boolean hasC3();",
"public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }",
"public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }",
"private boolean esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }",
"public int qdtDocentesDisponibilidade(OfertaDisciplina of){\n \n of = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(of);\n \n //Set<Disponibilidade> disponibilidades = of.getDisponibilidades();\n Set<Disp> disponibilidades = of.getDispo();\n \n return disponibilidades.size(); \n }",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[11];\n }",
"public static boolean exists(){\n \t\treturn everbie != null;\n \t}",
"boolean isSetCit();",
"public boolean getRequiresNRPNLSB() \n {\n return false; \n }",
"public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }",
"@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }",
"boolean isConsomme();",
"public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }",
"private boolean canHaveAsDoctor(Doctor doc) {\n\t\treturn !(doc == null || (this.secopDoc != null && this.secopDoc.equals(doc)));\n\t}",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"public boolean isSetCpfCidadao() {\n return this.cpfCidadao != null;\n }",
"public boolean isSetCnName() {\n return this.cnName != null;\n }",
"private boolean verifyDocType() {\n if (getC_DocType_ID() == 0) {\n return false;\n }\n //\n Boolean invoiceSO = null;\n //\tCheck Invoice First\n if (getC_Invoice_ID() > 0) {\n String sql = \"SELECT idt.IsSOTrx \"\n + \"FROM C_Invoice i\"\n + \" INNER JOIN C_DocType idt ON (i.C_DocType_ID=idt.C_DocType_ID) \"\n + \"WHERE i.C_Invoice_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_Invoice_ID());\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n invoiceSO = new Boolean(\"Y\".equals(rs.getString(1)));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n }\t//\tInvoice\n\n //\tDocumentType\n Boolean paymentSO = null;\n PreparedStatement pstmt = null;\n String sql = \"SELECT IsSOTrx \"\n + \"FROM C_DocType \"\n + \"WHERE C_DocType_ID=?\";\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_DocType_ID());\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n paymentSO = new Boolean(\"Y\".equals(rs.getString(1)));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n //\tNo Payment info\n if (paymentSO == null) {\n return false;\n }\n setIsReceipt(paymentSO.booleanValue());\n\n //\tWe have an Invoice .. and it does not match\n if (invoiceSO != null\n && invoiceSO.booleanValue() != paymentSO.booleanValue()) {\n return false;\n }\n //\tOK\n return true;\n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"boolean isNestimSpecified();",
"boolean isNilIsManaged();",
"public boolean hasDocumentType() {\n return fieldSetFlags()[11];\n }",
"public boolean hasFkocs() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasDataModelCatalogueVersion() {\n return fieldSetFlags()[3];\n }",
"public boolean isSetFilePlac()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILEPLAC$12) != 0;\n }\n }",
"public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILECONT$2) != 0;\n }\n }",
"@Override\n\tpublic boolean estVide() {\n\t\treturn getNbClients()==0;\n\t}",
"private void validateRequiredDocuments(Noc noc, Object mdmsData) {\n\t\tMap<String, List<String>> masterData = mdmsValidator.getAttributeValues(mdmsData);\n\n\t\tif (!noc.getWorkflow().getAction().equalsIgnoreCase(NOCConstants.ACTION_REJECT) && !noc.getWorkflow().getAction().equalsIgnoreCase(NOCConstants.ACTION_VOID)) {\n\t\t\tList<Document> documents = noc.getDocuments();\n\t\t\tString filterExp = \"$.[?(@.applicationType=='\" + noc.getApplicationType() + \"' && @.nocType=='\" + noc.getNocType() + \"')].docTypes\";\n\t\t\tList<Object> docTypeMappings = JsonPath.read(masterData.get(NOCConstants.NOC_DOC_TYPE_MAPPING), filterExp);\n\t\t\tif (CollectionUtils.isEmpty(docTypeMappings)) {\n\t\t\t\tthrow new CustomException(\"MDMS_DATA_ERROR\", \"Unable to fetch noc document mapping\");\n\t\t\t}\n\t\t\t// fetch all document types for noc type\n\t\t\tList<String> docTypes = JsonPath.read(docTypeMappings, \"$..documentType\");\n\n\t\t\t// filter mandatory document list\n\t\t\tfilterExp = \"$..[?(@.required==true)].documentType\";\n\t\t\tList<String> requiredDocTypes = JsonPath.read(docTypeMappings, filterExp);\n\n\t\t\tfilterExp = \"$.[?(@.active==true)].code\";\n\t\t\tList<String> validDocumentTypes = JsonPath.read(masterData.get(NOCConstants.DOCUMENT_TYPE), filterExp);\n\n\t\t\tif (!CollectionUtils.isEmpty(documents)) {\n\t\t\t\tdocuments.forEach(document -> {\n\t\t\t\t\tif (StringUtils.isEmpty(document.getFileStoreId())) {\n\t\t\t\t\t\tthrow new CustomException(\"NOC_FILE_EMPTY\", \"Filestore id is empty\");\n\t\t\t\t\t}\n\t\t\t\t\tif (!validDocumentTypes.contains(document.getDocumentType())) {\n\t\t\t\t\t\tthrow new CustomException(\"NOC_UNKNOWN_DOCUMENTTYPE\", document.getDocumentType() + \" is Unkown\");\n\t\t\t\t\t}\n\t\t\t\t\tif (requiredDocTypes.size() > 0 && documents.size() < requiredDocTypes.size()) {\n\t\t\t\t\t\tthrow new CustomException(\"NOC_MANDATORY_DOCUMENTYPE_MISSING\", requiredDocTypes.size() + \" Documents are requied \");\n\t\t\t\t\t} else if (requiredDocTypes.size() > 0) {\n\t\t\t\t\t\tList<String> addedDocTypes = new ArrayList<String>();\n\n\t\t\t\t\t\tdocuments.forEach(doc -> {\n\t\t\t\t\t\t\tString docType = doc.getDocumentType();\n\t\t\t\t\t\t\tint lastIndex = docType.lastIndexOf(\".\");\n\t\t\t\t\t\t\tString documentNs = \"\";\n\t\t\t\t\t\t\tif (lastIndex > 1) {\n\t\t\t\t\t\t\t\tdocumentNs = docType.substring(0, lastIndex);\n\t\t\t\t\t\t\t} else if (lastIndex == 1) {\n\t\t\t\t\t\t\t\tthrow new CustomException(\"NOC_INVALID_DOCUMENTTYPE\", document.getDocumentType() + \" is invalid\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdocumentNs = docType;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddedDocTypes.add(documentNs);\n\t\t\t\t\t\t});\n\t\t\t\t\t\trequiredDocTypes.forEach(docType -> {\n\t\t\t\t\t\t\tif (!addedDocTypes.contains(docType)) {\n\t\t\t\t\t\t\t\tthrow new CustomException(\"NOC_MANDATORY_DOCUMENTYPE_MISSING\", \"Document Type \" + docType + \" is missing\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\taddedDocTypes.forEach(documentType -> {\n\t\t\t\t\t\t\tif (!docTypes.contains(documentType)) {\n\t\t\t\t\t\t\t\tthrow new CustomException(\"NOC_INVALID_DOCUMENTTYPE\", \"Document Type \" + documentType + \" is invalid for \" + noc.getNocType() + \" application\");\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} else if (requiredDocTypes.size() > 0) {\n\t\t\t\tthrow new CustomException(\"NOC_MANDATORY_DOCUMENTYPE_MISSING\", \"Atleast \" + requiredDocTypes.size() + \" Documents are required \");\n\t\t\t}\n\t\t}\n\t}",
"public boolean hasFkocs() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[16];\n }",
"boolean isCanonicalVersion() {\n\t\treturn isLocal() && isVersion() && !Namespace.create(this.ontology).equals(Namespace.create(this.versionIRI));\n\t}",
"@Test\n void testDontAddMissingInformationOnDocumentLoad()\n {\n try\n {\n byte[] pdfBytes = createAcroFormWithMissingResourceInformation();\n \n try (PDDocument pdfDocument = Loader.loadPDF(pdfBytes))\n {\n // do a low level access to the AcroForm to avoid the generation of missing entries\n PDDocumentCatalog documentCatalog = pdfDocument.getDocumentCatalog();\n COSDictionary catalogDictionary = documentCatalog.getCOSObject();\n COSDictionary acroFormDictionary = (COSDictionary) catalogDictionary.getDictionaryObject(COSName.ACRO_FORM);\n\n // ensure that the missing information has not been generated\n assertNull(acroFormDictionary.getDictionaryObject(COSName.DA));\n assertNull(acroFormDictionary.getDictionaryObject(COSName.RESOURCES));\n }\n }\n catch (IOException e)\n {\n System.err.println(\"Couldn't create test document, test skipped\");\n return;\n }\n }",
"public boolean hasChulaId() {\n return chulaIdBuilder_ != null || chulaId_ != null;\n }",
"private boolean determineOuterSync(DocumentAccessBean argDocument) {\n\n\tboolean result = false;\n\tint docType = determineDocType(argDocument);\n\tif (docType == DOCTYPES.EXT_IN) {\n\t\ttry {\n\t\t\tlogIt(\"Getting constant 'SyncSkladOuter'\");\n\t\t\tNamedValueAccessBean ab = new NamedValueAccessBean();\n\t\t\tab.setInitKey_id(\"SyncSkladOuter\");\n\t\t\tab.refreshCopyHelper();\n\t\t\tif (ab.getIntvalue() == 1) {\n\t\t\t\tresult = true;\n\t\t\t\tlogIt(\"Constand found, intvalue=1, syncing outer-docpositions\");\n\t\t\t} else {\n\t\t\t\tlogIt(\"Constand found, intvalue<>1, syncing docpositions\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\t// Suppress\n\t\t\tlogIt(\"Constant 'SyncSkladOuter' not found - syncing docpositions\");\n\t\t}\n\t}\n\treturn result;\n}",
"public boolean existeListaProduto_ReferenteA() {\n\t\t\treturn listaprodutoReferenteA!= null;\n\t\t}",
"boolean hasProperty0();",
"public boolean hasDocumentStandardVersion() {\n return fieldSetFlags()[10];\n }",
"public abstract boolean isAllowCustomProperties();",
"private boolean setFromOnExpeditor(DocumentAccessBean argDocument, StoragePlaceAccessBean argExpeditor) {\n\n\ttry {\n\t\tlogIt(\"In setFromOnExpeditor doc=\" + argDocument.getDocument() + \" expeditor=\" + argExpeditor.getStorageplace());\n\t\tlogIt(\" Determine unique combinations of resource, owner, serial, party\");\n\t\tHashMap uniquePositions = new HashMap();\n\t\t\n\t\tDocumentPositionAccessBean adocp = new DocumentPositionAccessBean();\n\t\tEnumeration dposes = adocp.findDocPositionsByDocOrderByOrderAsc(new Integer(argDocument.getDocument()));\n\t\twhile (dposes.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean docpos = (DocumentPositionAccessBean)dposes.nextElement();\n\t\t\t// Reinstantiate docposition\n\t\t\tDocumentPositionAccessBean rdocpos = new DocumentPositionAccessBean();\n\t\t\trdocpos.setInitKey_docposition(docpos.getDocposition());\n\t\t\trdocpos.refreshCopyHelper();\n\n\t\t\tStoragecardObject scard = new StoragecardObject(rdocpos);\n\t\t\tif (!uniquePositions.containsKey(scard))\n\t\t\t\tuniquePositions.put(scard, \"\");\n\t\t\t\n\t\t}\n\n\t\t// Calculate from for each unique combination\n\t\tIterator it = uniquePositions.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tStoragecardObject oo = (StoragecardObject)it.next();\n\t\t\tif (!setFromResourceOnExped(argDocument, oo.getResource(), oo.getOwner(), oo.getCountpolicy(), \n\t\t\t\t\too.getSerialnumber(), oo.getParty(), argExpeditor))\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t\t\n\t} catch\t(Exception e) {\n\t\tSystem.out.println(\"PLATINUM-SYNC: exception in setFromOnExpeditor\");\n\t\te.printStackTrace(System.out);\n\t}\n\treturn false;\n}",
"public boolean hasC() {\n return c_ != null;\n }",
"public boolean isSetCarprovincename() {\n return this.carprovincename != null;\n }",
"boolean hasCurrentDocument();",
"@Test\r\n public void testVerificaPossibilidade3() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"Object getPropertyexists();",
"protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }",
"boolean hasProperty2();",
"public boolean isAllowedLogoDocumentFormat(String format) throws DataServiceException {\r\n\t\treturn false;\r\n\t}",
"public boolean isSetPlaca() {\r\n return this.placa != null;\r\n }",
"public boolean Doc_te_Par(String titol, String autor, String paraula) {\n \treturn (this.M.get(titol+\", \"+autor)).containsKey(paraula);\n }",
"protected boolean canProcessorInit(PaymentRequestDocument paymentRequestDocument) {\n String status = paymentRequestDocument.getApplicationDocumentStatus();\r\n if (StringUtils.equals(status, PaymentRequestStatuses.APPDOC_INITIATE)) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public void setNocCheck(java.lang.Integer nocCheck) {\r\n this.nocCheck = nocCheck;\r\n }",
"boolean hasTextDocument();",
"boolean hasHadithReferenceNo();",
"boolean hasProperty1();",
"public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"@java.lang.Override\n public boolean hasNormal() {\n return normal_ != null;\n }",
"boolean hasCdkey();",
"private boolean checkPropertyUpdateView() {\n \t\treturn Boolean.getBoolean(PROPERTY_RIENA_LNF_UPDATE_VIEW);\n \t}"
] |
[
"0.6086042",
"0.6030693",
"0.6030693",
"0.59568805",
"0.58595747",
"0.5859222",
"0.5859222",
"0.5859222",
"0.5771028",
"0.5762319",
"0.57294863",
"0.5688569",
"0.56707156",
"0.56549424",
"0.56549424",
"0.5652502",
"0.5616144",
"0.5600444",
"0.5599284",
"0.5587985",
"0.55583966",
"0.55475575",
"0.5523647",
"0.5517825",
"0.5515791",
"0.55139333",
"0.5506602",
"0.5503773",
"0.5486066",
"0.54683954",
"0.54600984",
"0.5450705",
"0.54465014",
"0.54406863",
"0.54312897",
"0.5430811",
"0.54260504",
"0.54232454",
"0.54232454",
"0.54232454",
"0.5388934",
"0.53867364",
"0.53867364",
"0.5361382",
"0.5338206",
"0.53308225",
"0.532704",
"0.5324116",
"0.53220654",
"0.5321748",
"0.5314484",
"0.52742237",
"0.527066",
"0.5266525",
"0.5264689",
"0.5264689",
"0.5264689",
"0.5260265",
"0.5254147",
"0.5252248",
"0.52517235",
"0.524042",
"0.52331394",
"0.5231404",
"0.5225402",
"0.52230936",
"0.52195114",
"0.5216121",
"0.52125216",
"0.5211621",
"0.52020335",
"0.51995534",
"0.5198506",
"0.5190331",
"0.51880264",
"0.5186926",
"0.5185447",
"0.5185277",
"0.51797986",
"0.51774144",
"0.5176077",
"0.5174565",
"0.5164149",
"0.5148649",
"0.51480997",
"0.51474035",
"0.5145136",
"0.5143689",
"0.51430655",
"0.51400965",
"0.5137074",
"0.5133663",
"0.5132729",
"0.5130343",
"0.5118925",
"0.51182914",
"0.5117286",
"0.51120883",
"0.5110838",
"0.51065916",
"0.51027775"
] |
0.0
|
-1
|
Retorna as propriedades do corpo do documento NCL.
|
public Set<Pp> getProperties() {
return properties;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected String loadDocumentDetails()\r\n\t{\r\n\t\tsetC_Currency_ID (NO_CURRENCY);\r\n\t\tX_M_Production prod = (X_M_Production)getPO();\r\n\t\tsetDateDoc (prod.getMovementDate());\r\n\t\tsetDateAcct(prod.getMovementDate());\r\n\t\t//\tContained Objects\r\n\t\tp_lines = loadLines(prod);\r\n\t\tif (log.isLoggable(Level.FINE)) log.fine(\"Lines=\" + p_lines.length);\r\n\t\treturn null;\r\n\t}",
"public String getCorn() {\n return corn;\n }",
"public static Properties getDocletList() {\n\t\treturn docPropList;\n\t}",
"java.lang.String getFkocs();",
"public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }",
"public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }",
"public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}",
"public DisponibilidadeDataModel getDocentesPorDisciplina() {\n if(docentesPorDisciplina == null){\n docentesPorDisciplina = new DisponibilidadeDataModel();\n }\n return docentesPorDisciplina;\n }",
"public java.lang.String getNroDocumento() {\n return nroDocumento;\n }",
"@Transient\n\tpublic String getNumerosREcibos(){\n\t\tString numerosrecibos=\" \";\n\t\n\t\tfor (ReciboDocumentoFiscal recibo : documento.getRecibos()) {\n\t numerosrecibos= numerosrecibos+recibo.getRecibo().getControl()+\" / \";\t\t\n\t\t}\n\t\treturn numerosrecibos;\n\t}",
"public Set<String> Atributos()\n {\n return this.repositorio.keySet();\n }",
"@Override\r\n public String toString() {\n return tipodocumento;\r\n }",
"@Override\n\tpublic ResultSet getClientInfoProperties() throws SQLException {\n\t\treturn null;\n\t}",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"TipoDocumento [codigoPais=\" + codigoPais + \", codigo=\" + codigo\n\t\t\t\t+ \", nombreEntidad=\" + nombreEntidad\n\t\t\t\t+ \", oidTipoDoc=\" + oidTipoDoc \n\t\t\t\t+ \", estado=\" + estado\n\t\t\t\t+ \", obligatorio=\" + obligatorio\n\t\t\t\t+ \", siglas=\" + siglas\n\t\t\t\t+ \", longitud=\" + longitud\n\t\t\t\t+ \", dni=\" + dni\n\t\t\t\t+ \", fiscal=\" + fiscal\n\t\t\t\t+ \", tipoDocu=\" + tipoDocu\n\t\t\t\t+ \", descripcion=\" + descripcion + \"]\";\n\t}",
"@Override\r\n\tpublic JSONObject OC_getPropsJSON()\r\n\t{\n\t\treturn null;\r\n\t}",
"protected String loadDocumentDetails ()\n\t{\n\t\tMPayment pay = (MPayment)getPO();\n\t\tsetDateDoc(pay.getDateTrx());\n\t\tm_TenderType = pay.getTenderType();\n\t\tm_Prepayment = pay.isPrepayment();\n\t\tm_C_BankAccount_ID = pay.getC_BankAccount_ID();\n\t\t//\tAmount\n\t\tsetAmount(Doc.AMTTYPE_Gross, pay.getPayAmt());\n\t\treturn null;\n\t}",
"public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }",
"public String getClasz() {\r\n \t\treturn clasz;\r\n \t}",
"@XmlTransient\n\tpublic List<ElencoDocumentiAllegato> getElenchiDocumentiAllegato() {\n\t\treturn elenchiDocumentiAllegato;\n\t}",
"@Override\r\n\tpublic List<Contacto> getContactosInatec() {\r\n\t\treturn null;\r\n\t}",
"protected List getProperties() {\n return null;\n }",
"public java.lang.String getTpoDocumento() {\n return tpoDocumento;\n }",
"@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}",
"CommonProperties getProperties();",
"@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}",
"@OneToMany(mappedBy=\"pouchDetalleProcesoLote\")\r\n\tpublic List<PouchDetalleProcesoConteo> getPouchDetalleProcesoConteos() {\r\n\t\treturn this.pouchDetalleProcesoConteos;\r\n\t}",
"public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();",
"Documento getDocumento();",
"public String getDocumentInfo() {\n MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());\n return dt.getName() + \" \" + getDocumentNo();\n }",
"public ContaCorrente getContaCorrente() {\r\n return contaCorrente;\r\n }",
"@Override\n\tpublic List<XSOntDataProperty> getSubProperties(FlexoOntology context) {\n\t\treturn new ArrayList<XSOntDataProperty>();\n\t}",
"public List<Currcycnct> getCurrcycnct()\n/* */ {\n/* 68 */ return this.currcycnct;\n/* */ }",
"public ObjectProperties getObjectProperties();",
"public String[] contatos() {\n\t\treturn null;\r\n\t}",
"@Override\n public List<List<Integer>> getObjectInfo() {\n List<List<Integer>> currObjectConfig = getVisualInfoFromPieces(OBJECT_INFO_IDENTIFIER);\n return Collections.unmodifiableList(currObjectConfig);\n }",
"private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}",
"public ArrayList<SaleDocumentPO> displayAll() throws RemoteException {\n\t\r\n\t\treturn saleDocumentPOs;\r\n\t}",
"public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}",
"@Override\r\n\t\tpublic Properties getClientInfo() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }",
"public DocumentoVO getDocumento() {\n return documento;\n }",
"public byte[] getDocparts()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_DOCPARTS);\n }",
"public String getOcNo() {\n return (String)getAttributeInternal(OCNO);\n }",
"public String getCorpConsitutionDoc() {\n return corpConsitutionDoc;\n }",
"public List<Consultor> getConsultores()\n\t{\n\t\tList<Consultor> nombres = new ArrayList<Consultor>();\n\t\tLinkedList<Consultor> tb = Consultor.findAll();\n\t\tfor(Consultor c : tb)\n\t\t{\n\t\t\tnombres.add(c);\n\t\t}\n\t\treturn nombres;\t\n\t}",
"public String getCordno() {\n return cordno;\n }",
"public String getDocumentNo();",
"public String getDocumentNo();",
"public String getDocumentNo();",
"public int getCLNO() {\n return clno;\n }",
"public int[] getCO() {return co;}",
"@XmlTransient\n Collection<Copiaelettronica> getCopiaelettronicaCollection();",
"public Integer getCocSerialNo() {\n\t\treturn cocSerialNo;\n\t}",
"abstract protected NamespaceProperties retrieveFullNamespaceProperties(long nsContext)\n throws NamespacePropertiesRetrievalException;",
"com.soa.SolicitarCreditoDocument.SolicitarCredito getSolicitarCredito();",
"@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}",
"public java.util.List<DocumentAttribute> getDocumentAttributes() {\n return documentAttributes;\n }",
"@Override\n\tpublic Set<OWLEntity> getAllProperties() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getObjectPropertiesInSignature());\n\t\treturn result;\n\t}",
"public String getLBR_DocLine_ICMS_UU();",
"public Integer getCorpid() {\n return corpid;\n }",
"public ArrayList<Comobox> listaDocumentos()\n {\n @SuppressWarnings(\"MismatchedQueryAndUpdateOfCollection\")\n ArrayList<Comobox> al= new ArrayList<>();\n ResultSet rs = null;\n\n sql=\"select * FROM VER_TIPODOCUMENTO\";\n Conexao conexao = new Conexao();\n if(conexao.getCon()!=null)\n {\n try \n {\n cs = conexao.getCon().prepareCall(sql);\n cs.execute();\n rs=cs.executeQuery(); \n if (rs!=null) \n { \n while (rs.next())\n { \n al.add(new Comobox(rs.getString(\"REALID\"), rs.getString(\"DOCUMENTO\")));\n } \n }\n rs.close();\n } \n catch (SQLException ex)\n {\n Logger.getLogger(CreditoDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Erro a obter documentos \"+ex.getMessage());\n }\n }\n return al;\n }",
"public Gedcomx getDocument() {\n return doc;\n }",
"@Override\n public String toString() {\n return \"Libro{\" + \"idLibro=\" + idLibro + \", titulo=\" + titulo + \", autor=\" + autor + \", editorial=\" + editorial + \", isbn=\" + isbn + \", genero=\" + genero + \", cantidadTotal=\" + cantidadTotal + \", cantidadDisponible=\" + cantidadDisponible + \", descargable=\" + descargable + \", linkDescarga=\" + linkDescarga + \", bibliotecario=\" + bibliotecario + '}';\n }",
"public NiveauCentreDTO getEntreprise(){\n\t\treturn getNomenclatureDomainService().getNiveauCentreFromLibelle(DonneesStatic.CG_ENTREPRISE);\n\t}",
"public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}",
"ArrayList<PropertyMetadata> getProperties();",
"EProperties getProperties();",
"TypeAssociation getAssocieCommeSujetEvenementNRBC();",
"public java.lang.String getDsOcorrencia() {\n return dsOcorrencia;\n }",
"public Integer getCedula() {return cedula;}",
"public int getNroCitasRealizadas() {\n\t\treturn NroCitasRealizadas;\n\t}",
"public COSDictionary getCOSDictionary() {\n/* 62 */ return this.dictionary;\n/* */ }",
"public java.lang.String getNrDoc() {\n return nrDoc;\n }",
"public int getDocenteId() {\r\n return this.docenteId;\r\n }",
"public Stato getStatoCorrente()\r\n\t{\r\n\t\treturn corrente;\r\n\t}",
"com.google.protobuf.ByteString\n getFkocsBytes();",
"public java.lang.String getDocumentCompany() {\n return documentCompany;\n }",
"@Override\n\tpublic List<XSOntDataProperty> getSuperProperties() {\n\t\treturn new ArrayList<XSOntDataProperty>();\n\t}",
"@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}",
"public List<String> retornaDatasComprasDeClientes () {\n return this.contasClientes\n .values()\n .stream()\n .flatMap((Conta conta) -> conta.retornaDatasDasCompras().stream())\n .collect(Collectors.toList());\n }",
"public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"public String getCognome() {\r\n return cognome;\r\n }",
"public String[] getProperties() \n {\n String[] props = {\"discussionSearch.subject\", \"discussionSearch.content\"}; \n return props;\n }",
"public com.spirit.sri.reoc.Compras getCompras()\r\n {\r\n return this._compras;\r\n }",
"private String getSubDocumentoKey(PreDocumentoEntrata preDoc) {\n\t\t\n\t\treturn (preDoc.getCapitoloEntrataGestione()!=null?preDoc.getCapitoloEntrataGestione().getUid() :\"null\") + \" \" \n\t\t\t\t+ (preDoc.getAccertamento()!=null?preDoc.getAccertamento().getUid():\"null\") + \" \" \n\t\t\t\t+ (preDoc.getSubAccertamento()!=null?preDoc.getSubAccertamento().getUid():\"null\") + \" \"\n\t\t\t\t+ (preDoc.getProvvisorioDiCassa() !=null?preDoc.getProvvisorioDiCassa().getUid() :\"null\") + \" \";\n\t}",
"public long getNClusters() {\n return cGetNClusters(this.cObject);\n }",
"public List<Documentacion> getDocumentaciones() {\r\n\r\n\t\tList<Documentacion> lista = LatidoFacade.getInstance().getFindAllList(Documentacion.class.getName());\r\n\t\treturn lista;\r\n\t}",
"public Comentarios getCom() {\r\n\t\treturn com;\r\n\t}",
"public List<TLProperty> getElements();",
"@Kroll.getProperty(name = \"properties\")\n public KrollDict getRevisionProperties() {\n return super.getRevisionProperties();\n }",
"public String getCor() {\r\n return cor;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}",
"public abstract DtPropuesta[] getPropuestasPopulares();",
"private DefaultCniNetworkProperties innerProperties() {\n return this.innerProperties;\n }",
"public int getContenido_neto() {\n return contenido_neto;\n }",
"public String getDocumentNo() {\n return documentNo;\n }",
"public String getVO_CO_REFERENCE() {\r\n return VO_CO_REFERENCE;\r\n }",
"public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}"
] |
[
"0.5766222",
"0.5720883",
"0.5688815",
"0.5654617",
"0.5642689",
"0.563565",
"0.55978936",
"0.5580445",
"0.5569403",
"0.55298346",
"0.55296487",
"0.5526458",
"0.5489467",
"0.54742956",
"0.5454198",
"0.5452111",
"0.5443199",
"0.5429782",
"0.54257035",
"0.541048",
"0.540763",
"0.54071605",
"0.5381297",
"0.53790075",
"0.5375532",
"0.5374603",
"0.53727955",
"0.5361906",
"0.5360382",
"0.5345586",
"0.5339438",
"0.53259677",
"0.5322313",
"0.53222024",
"0.531367",
"0.5303796",
"0.5298773",
"0.5295674",
"0.529402",
"0.5291618",
"0.529156",
"0.5289308",
"0.528823",
"0.52882195",
"0.5282492",
"0.5270106",
"0.52586627",
"0.525313",
"0.52509177",
"0.52509177",
"0.52509177",
"0.52434486",
"0.52372354",
"0.5235741",
"0.52334845",
"0.5222502",
"0.5219007",
"0.521886",
"0.5207849",
"0.5189215",
"0.51801705",
"0.5177626",
"0.517713",
"0.5176939",
"0.51723653",
"0.5162436",
"0.51613784",
"0.5160338",
"0.5145854",
"0.5138892",
"0.5137373",
"0.5125991",
"0.51188064",
"0.5118335",
"0.5115798",
"0.5114024",
"0.5112539",
"0.5112371",
"0.51092356",
"0.5103004",
"0.5099991",
"0.5088645",
"0.50871634",
"0.508457",
"0.50792205",
"0.5077768",
"0.5077196",
"0.50763977",
"0.5075133",
"0.50745916",
"0.506321",
"0.50517267",
"0.50497663",
"0.504863",
"0.5042741",
"0.5029297",
"0.50221854",
"0.5018154",
"0.5014886",
"0.5014796",
"0.5013218"
] |
0.0
|
-1
|
Adiciona um link ao corpo do documento NCL.
|
public boolean addLink(L link) {
if(links.add(link)){
//Se link existe, atribui este como seu parente
if(link != null)
link.setParent(this);
notifyInserted(NCLElementSets.LINKS, link);
return true;
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"LINK createLINK();",
"Link createLink();",
"public void addlink(TparselinksEntity newlink);",
"ReferenceLink createReferenceLink();",
"public Link add(Link link);",
"public IHyperLink attachLink()\n throws OculusException;",
"SimpleLink createSimpleLink();",
"public Corso(String codice, String nome, String docente, String descrizione, String link) {\n this.codice = codice;\n this.nome = nome;\n this.docente = docente;\n this.descrizione = descrizione;\n this.link = link;\n }",
"LinkRelation createLinkRelation();",
"@Override\n\tpublic int addLink(Link link) {\n\t\treturn 0;\n\t}",
"void addLink(BlockChainLink link);",
"public static void linkDocenteCorso(long idDocente, long idCorso) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.LINK_DOCENTE_CORSO;\n\t\t\trp.parameters = new Object[] { idDocente, idCorso };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"LINK_DOCENTE_CORSO\");\n\t\t}\n\t}",
"public void AddLink() {\n snake.add(tail + 1, new Pair(snake.get(tail).GetFirst(), snake.get(tail).GetSecond())); //Set the new link to the current tail link\n tail++;\n new_link = true;\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}",
"LinkedEntries.LinkNode add(NodeEntry cne, int index) {\n LinkedEntries.LinkNode ln = new LinkedEntries.LinkNode(cne, index);\n addNode(ln, getHeader());\n return ln;\n }",
"public void onClickAddLink(View v) {\n linkDefined = true;\n switch ((int) linkType.getSelectedItemId()) {\n case 0:\n linkTypeValue = \"link\";\n break;\n case 1:\n linkTypeValue = \"media\";\n break;\n default:\n break;\n }\n linkStringList += links.getText() + \"|\" + linkTypeValue + \";\";\n links.setText(\"\");\n }",
"public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }",
"LinkRelationsLibrary createLinkRelationsLibrary();",
"public OntologyLinkModeTool()\n \t{\n \tedu.tufts.vue.ontology.ui.OntologyBrowser.getBrowser().addOntologySelectionListener(this);\n \t//creationLink.setID(\"<creationLink>\"); // can't use label or it will draw one \n \t//invisibleLinkEndpoint.addLinkRef(creationLink);\n \tcreationLink=null;\n invisibleLinkEndpoint.setSize(0,0);\n \n \t}",
"void addLink(byte start, byte end);",
"public org.w3.x2005.sparqlResults.LinkDocument.Link addNewLink()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x2005.sparqlResults.LinkDocument.Link target = null;\n target = (org.w3.x2005.sparqlResults.LinkDocument.Link)get_store().add_element_user(LINK$0);\n return target;\n }\n }",
"void openLink(Link target);",
"void setLink(DependencyLink newLink);",
"public void setLink(String link)\n {\n this.link = link;\n }",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"public void onLinkInsert(LinkConfig.LinkType linkType)\n {\n LinkConfig linkConfig = linkConfigFactory.createLinkConfig();\n linkConfig.setType(linkType);\n getLinkWizard().start(LinkWizardStep.LINK_REFERENCE_PARSER.toString(), linkConfig);\n }",
"private static void createLinkPdf(String dest) throws Exception {\n PdfDocument pdfDoc = new PdfDocument(new PdfWriter(dest));\n Document doc = new Document(pdfDoc);\n\n // Create a link action, which leads to the another pdf file's page.\n // The 1st argument is the relative destination pdf file's path;\n // the 2nd argument is the string destination in the destination pdf file,\n // to which the link will lead after a click on it.\n PdfAction action = PdfAction.createGoToR(DEST_NAMES[1], \"dest\");\n Paragraph chunk = new Paragraph(new Link(\"Link\", action));\n doc.add(chunk);\n\n doc.close();\n }",
"public static String addLinkNoticia(String description, String url) {\n String text = \"\";\n return description.concat(\"\\n\\n\" + \"**\" + \"Para saber mais acesse\" + \"**\" + \" : \" + \"\\n\\n\" + url);\n }",
"void register(String linkName, Link link) throws CCAException;",
"boolean insertLink(Link link);",
"NamedLinkDescriptor createNamedLinkDescriptor();",
"public void onLinkEdit()\n {\n getLinkWizard().start(LinkWizardStep.LINK_REFERENCE_PARSER.toString(), linkConfigFactory.createLinkConfig());\n }",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"LinkReader addLink(NodeReader source, NodeReader dest, boolean overwrite) throws NoNodeException, LinkAlreadyPresentException, ServiceException;",
"public void add(PhotonDoc doc);",
"public void setLink(String link) {\n this.link = link;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"@Override\n\tpublic Link createLink(String caption, String url) {\n\t\treturn new ListLink(caption, url);\n\t}",
"CharNode getLink();",
"public void addLink(String spid, Link link) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tsuper.addLink(PERFORMERS_LINKS_NEW, spid, link);\n\t}",
"void storeLinks();",
"public String getLink();",
"private void insertFieldLink(final DocumentBuilder builder, final int insertLinkedObjectAs,\n final String progId, final String sourceFullName, final String sourceItem,\n final boolean shouldAutoUpdate) throws Exception {\n FieldLink field = (FieldLink) builder.insertField(FieldType.FIELD_LINK, true);\n\n switch (insertLinkedObjectAs) {\n case InsertLinkedObjectAs.TEXT:\n field.setInsertAsText(true);\n break;\n case InsertLinkedObjectAs.UNICODE:\n field.setInsertAsUnicode(true);\n break;\n case InsertLinkedObjectAs.HTML:\n field.setInsertAsHtml(true);\n break;\n case InsertLinkedObjectAs.RTF:\n field.setInsertAsRtf(true);\n break;\n case InsertLinkedObjectAs.PICTURE:\n field.setInsertAsPicture(true);\n break;\n case InsertLinkedObjectAs.BITMAP:\n field.setInsertAsBitmap(true);\n break;\n }\n\n field.setAutoUpdate(shouldAutoUpdate);\n field.setProgId(progId);\n field.setSourceFullName(sourceFullName);\n field.setSourceItem(sourceItem);\n\n builder.writeln(\"\\n\");\n }",
"protected void addHyperlinkToDocFrag(JaxbXmlPart sourcePart, DocumentFragment docfrag, String url) throws Docx4JException {\n\t\torg.docx4j.relationships.ObjectFactory factory =\n\t\t\tnew org.docx4j.relationships.ObjectFactory();\n\t\t\n\t\torg.docx4j.relationships.Relationship rel = factory.createRelationship();\n\t\trel.setType( Namespaces.HYPERLINK );\n\t\trel.setTarget(url);\n\t\trel.setTargetMode(\"External\"); \n\t\t\t\t\t\t\t\t\n\t\tsourcePart.getRelationshipsPart().addRelationship(rel); // addRelationship sets the rel's @Id\n\n\t\ttry {\n\t\t\tDocument tmpDoc = XmlUtils.marshaltoW3CDomDocument(\n\t\t\t\t\tBindingHandler.getHyperlinkResolver().generateHyperlink(rel.getId(), url));\n\t\t\tXmlUtils.treeCopy(tmpDoc.getDocumentElement(), docfrag);\n\t\t} catch (JAXBException e) {\n\t\t\tthrow new Docx4JException(e.getMessage(), e);\n\t\t}\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.URL,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true)\n public void setLink(final String val) {\n link = val;\n }",
"public void setLink(java.lang.String link)\n {\n this.link = link;\n }",
"public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }",
"public void setLink(Link link) {\n \t\t_link = link;\n \t}",
"public void setReferencedLink(EObject newValue);",
"@Override\n public void addConnection(Link link)\n {\n connections.add(link);\n if (executableProcess != null)\n addConnectionToExec(link);\n }",
"public OSLink( rcNode creator, HashMap hAttrs) {\n rcSource = creator;\n szSourcePort = (OSPort)hAttrs.get( \"SourcePort\");\n szDestPort = (String)hAttrs.get( \"DestinationPort\");\n szDestName =(String) hAttrs.get( \"DestinationName\");\n }",
"public void setLinkName(String linkName);",
"protected MarkupContainer newNodeLink(MarkupContainer parent, String id, final TreeNode node)\n\t{\n\t\treturn newLink(parent, id, new ILinkCallback()\n\t\t{\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void onClick(AjaxRequestTarget target)\n\t\t\t{\n\t\t\t\tgetTreeState().selectNode(node, !getTreeState().isNodeSelected(node));\n\t\t\t\tonNodeLinkClicked(target, node);\n\t\t\t\tupdateTree(target);\n\t\t\t}\n\t\t});\n\t}",
"@objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);",
"protected String buildLink(Node targetNode) {\r\n if (targetNode == null) {\r\n return null;\r\n }\r\n return requestContext.getHstLinkCreator()\r\n .create(targetNode, requestContext, ContainerConstants.MOUNT_ALIAS_SITE)\r\n .toUrlForm(requestContext, false);\r\n }",
"public LinkImpl(final Control controlToWrapAsLink) {\n control = controlToWrapAsLink;\n }",
"String getLink();",
"@Override\n public void initSelf(OrchidContext oc) throws OrchidException\n {\n super.initSelf(oc);\n\n try {\n BlogPolicy blog = getParentBlog();\n if (blog != null) {\n ContentId blogId = blog.getContentId().getContentId();\n\n parentBlogLink = new OContentIdLink();\n parentBlogLink.setContentId(blogId);\n parentBlogLink.setLabel(blog.getName());\n parentBlogLink.setTitle(blogId.getContentIdString());\n parentBlogLink.init(oc);\n }\n } catch (CMException e) {\n e.printStackTrace();\n }\n }",
"public void add (Card newCard)\n {\n firstLink = new Link(newCard, firstLink);\n }",
"public boolean addLink(LinkData link) {\n log.debug(\"Adding link {}\", link);\n\n KVLink rcLink = new KVLink(link.getSrc().getDpid(),\n link.getSrc().getPortNumber(),\n link.getDst().getDpid(),\n link.getDst().getPortNumber());\n\n // XXX This method is called only by discovery,\n // which means what we are trying to write currently is the truth\n // so we can force write here\n //\n // TODO: We need to check for errors\n rcLink.setStatus(KVLink.STATUS.ACTIVE);\n rcLink.forceCreate();\n\n return true; // Success\n }",
"private HTMLElement generateIntroLink(IntroLink element, int indentLevel) {\n \t\tHTMLElement anchor = generateAnchorElement(element, indentLevel);\n \t\t// add <IMG src=\"blank.gif\">\n \t\tString blankImageURL = IntroModelRoot.getPluginLocation(\n \t\t\t\tIIntroHTMLConstants.IMAGE_SRC_BLANK, IIntroConstants.PLUGIN_ID);\n \t\tif (blankImageURL != null) {\n \t\t\tanchor.addContent(generateImageElement(blankImageURL,\n \t\t\t\t\tindentLevel + 1));\n \t\t}\n \t\t// add <SPAN class=\"link-label\">linkLabel</SPAN>\n \t\tif (element.getLabel() != null) {\n \t\t\tHTMLElement label = generateSpanElement(\n \t\t\t\t\tIIntroHTMLConstants.SPAN_CLASS_LINK_LABEL, indentLevel + 1);\n \t\t\tlabel.addContent(element.getLabel());\n \t\t\tanchor.addContent(label);\n \t\t}\n \t\tif (element.getText() != null) {\n \t\t\tHTMLElement text = generateTextElement(\n \t\t\t\t\tIIntroHTMLConstants.ELEMENT_PARAGRAPH, null,\n \t\t\t\t\tIIntroHTMLConstants.SPAN_CLASS_TEXT, element.getText(),\n \t\t\t\t\tindentLevel + 1);\n \t\t\tanchor.addContent(text);\n \t\t}\n \t\treturn anchor;\n \t}",
"void addHadithBookUrl(Object newHadithBookUrl);",
"public DoublyLink() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public void setLink(Kyykka link) {\n this.link = link;\n }",
"public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }",
"public static void appendExternalHyperlink(String url, String text, XWPFParagraph paragraph) {\n\t\tString id = paragraph.getDocument().getPackagePart()\n\t\t\t\t.addExternalRelationship(url, XWPFRelation.HYPERLINK.getRelation()).getId();\n\t\t// Append the link and bind it to the relationship\n\t\tCTHyperlink cLink = paragraph.getCTP().addNewHyperlink();\n\t\tcLink.setId(id);\n\n\t\t// Create the linked text\n\t\tCTText ctText = CTText.Factory.newInstance();\n\t\tctText.setStringValue(text);\n\t\tCTR ctr = CTR.Factory.newInstance();\n\t\tCTRPr rpr = ctr.addNewRPr();\n\n\t\t// 设置超链接样式\n\t\tCTColor color = CTColor.Factory.newInstance();\n\t\tcolor.setVal(\"0000FF\");\n\t\trpr.setColor(color);\n\t\trpr.addNewU().setVal(STUnderline.SINGLE);\n\n\t\t// 设置字体\n\t\tCTFonts fonts = rpr.isSetRFonts() ? rpr.getRFonts() : rpr.addNewRFonts();\n\t\tfonts.setAscii(\"微软雅黑\");\n\t\tfonts.setEastAsia(\"微软雅黑\");\n\t\tfonts.setHAnsi(\"微软雅黑\");\n\n\t\t// 设置字体大小\n\t\tCTHpsMeasure sz = rpr.isSetSz() ? rpr.getSz() : rpr.addNewSz();\n\t\tsz.setVal(new BigInteger(\"20\"));\n\n\t\tctr.setTArray(new CTText[] { ctText });\n\t\t// Insert the linked text into the link\n\t\tcLink.setRArray(new CTR[] { ctr });\n\n\t\t/*\n\t\t * //设置段落居中 paragraph.setAlignment(ParagraphAlignment.CENTER);\n\t\t * paragraph.setVerticalAlignment(TextAlignment.CENTER);\n\t\t */\n\t}",
"@Override\n public void createObject (Link l,\n Connection conn)\n throws GeneralException\n {\n\n List params = new ArrayList ();\n params.add (l.getKey ());\n params.add (l.getObject1 ().getKey ());\n params.add (l.getObject1 ().getObjectType ());\n params.add (l.getObject2 ().getKey ());\n params.add (l.getObject2 ().getObjectType ());\n\n this.objectManager.executeStatement (\"INSERT INTO link (dbkey, object1dbkey, object1objtype, object2dbkey, object2objtype) VALUES (?, ?, ?, ?, ?)\",\n params,\n conn);\n\n }",
"public Link linkTo() {\n Label text = Label.of(name);\n URIObject target = FSURICodec.encode(this);\n return Link.textTarget(text, target);\n }",
"public String getLink() {\n return link;\n }",
"public void setLink(Unmarshaller linkTo)\r\n {\r\n _link = linkTo;\r\n }",
"protected String newLinkName(){\n\t\treturn \"WomoEvtLnk_\" + linkNr++;\n\t}",
"private void addLinks(\n int index, org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto value) {\n value.getClass();\n ensureLinksIsMutable();\n links_.add(index, value);\n }",
"public String createInternalLinkGoTo(String id, int objectNumber)\n {\n IDNode node = (IDNode)idReferences.get(id); // retrieve id node\n node.createInternalLinkGoTo(objectNumber); // create Internal Link GoTo object\n return node.getInternalLinkGoToReference(); //return Internal Link Go To object reference\n }",
"public void addNen(Nen ac) {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tem.persist(ac);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t}",
"public String getLink() {\r\n return link;\r\n }",
"public LinkButton( Icon icon) {\n\t\tsuper( icon);\n\t\tinit();\n\t}",
"protected DefaultLink() {\n }",
"void addLink(URI link) {\n if (link == null) {\n throw new IllegalArgumentException(\"Missing Link\");\n }\n List<URI> copy = new ArrayList<>(links.size() + 1);\n copy.addAll(links);\n copy.add(link);\n links = Collections.unmodifiableList(copy);\n }",
"public void addCommercialInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMERCIALINFORMATIONURL, value);\r\n\t}",
"public void storeLink(Doc document, Element spatialRelationEl) throws IOException {\n String trigger = spatialRelationEl.getAttribute(\"trigger\");\n String landmark = spatialRelationEl.getAttribute(\"landmark\");\n String trajector = spatialRelationEl.getAttribute(\"trajector\");\n \n SpatialElement triggerSE = !document.idSpatialElement.containsKey(trigger) ? null : document.idSpatialElement.get(trigger);\n SpatialElement landmarkSE = !document.idSpatialElement.containsKey(landmark) ? null : document.idSpatialElement.get(landmark);\n SpatialElement trajectorSE = !document.idSpatialElement.containsKey(trajector) ? null : document.idSpatialElement.get(trajector);\n \n //these roles are obtained from the annotations\n //initializes the list of roles that the element is in or is predicted to be in\n if (trajectorSE != null) \n trajectorSE = SpatialElement.setRoles(trajectorSE, \"trajector\");\n if (landmarkSE != null) \n landmarkSE = SpatialElement.setRoles(landmarkSE, \"landmark_link\");\n if (triggerSE != null) \n triggerSE = SpatialElement.setRoles(triggerSE, \"trigger_link\");\n \n //a check that all spatial elements are in the same sentence\n if (!sameSentence(document, trajectorSE, landmarkSE, triggerSE))\n return;\n \n //stores the relation\n storeRelation(document, this, trajectorSE, \"trajector\", landmarkSE, \"landmark_link\", triggerSE, \"trigger_link\");\n }",
"public void addLink(E data){\n\t\t\n\t\tNode temp = new Node(data);\n\t\tNode current = head;\t\t//starting at head node and moving to end of list\t\t\t\t\n\t\t\n\t\twhile(current.getNext() != null){\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\tcurrent.setNext(temp);\n\t\tsize++; \t\t\t\t\t// increment the number of element\n\t}",
"public HtmlComponent createComponent()\r\n\t{\r\n\t\tJspLink link = new JspLink(getName(), _href, getHelper().getController());\r\n\t\tif (_target != null)\r\n\t\t\tlink.setTarget(_target);\r\n\t\tif (_onClick != null)\r\n\t\t\tlink.setOnClick(_onClick);\r\n\t\tif (_onMouseOver != null)\r\n\t\t\tlink.setOnMouseOver(_onMouseOver);\r\n\t\tif (_onMouseOut != null)\r\n\t\t\tlink.setOnMouseOut(_onMouseOut);\r\n\t\tif (getClassname() != null)\r\n\t\t\tlink.setStyle(getClassname());\r\n\t\tif (_dataSource != null)\r\n\t\t\tlink.setDataSource(_dataSource);\r\n\t\tif (_bracket != null)\r\n\t\t {\r\n\t\t link.setBracket(BaseTagHelper.stringToBoolean(getBracket(),false));\r\n\t\t if (_bracketFont != null)\r\n\t\t\tlink.setBracketFont(_bracketFont);\r\n\t\t }\r\n\t\treturn link;\r\n\t}",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public void linkAccount() {}",
"private Link() {\n }",
"Link(Object it, Link inp, Link inn) { e = it; p = inp; n = inn; }",
"private HTMLElement newtdhref(String contenido, String vinculo) {\n/* 356 */ HTMLElement td = (HTMLElement)this.pagHTML.createElement(\"td\");\n/* 357 */ Element enlace = this.pagHTML.createElement(\"a\");\n/* 358 */ Node hijo = this.pagHTML.createTextNode(contenido);\n/* 359 */ enlace.appendChild(hijo);\n/* 360 */ Attr donde = this.pagHTML.createAttribute(\"href\");\n/* 361 */ donde.setValue(vinculo);\n/* 362 */ enlace.setAttributeNode(donde);\n/* 363 */ td.appendChild(enlace);\n/* 364 */ td.setAttributeNode(newAttr(\"class\", \"ctd\"));\n/* 365 */ return td;\n/* */ }",
"public String getLink()\n {\n return link;\n }",
"public void addDocumentoEntrataFiglio(DocumentoEntrata documentoEntrata) {\n\t\tthis.listaDocumentiEntrataFiglio.add(documentoEntrata);\n\t}",
"public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}",
"@Column(name=\"link\")\n\tpublic String getLink() {\n\t\treturn link;\n\t}",
"public void addReference(Reference ref) {\n references.addElement(ref);\n }",
"ILinkDeleterActionBuilder<SOURCE_BEAN_TYPE, LINKED_BEAN_TYPE> setLinkedEntityLabelPlural(String label);",
"public void appendLabelAsLink(String url, String text) {\r\n JLabel label = UISupport.createLabelLink(url, text);\r\n append(null, null, label, null, DEFAULT_LABEL_COLUMN, getColumnSpanToTheEnd(DEFAULT_LABEL_COLUMN));\r\n }",
"@DISPID(1611006048) //= 0x60060060. The runtime will prefer the VTID if present\n @VTID(124)\n void linkedExternalReferences(\n boolean oWithLink);",
"public void setLinkDescarga(String linkDescarga) {\n this.linkDescarga = linkDescarga;\n }"
] |
[
"0.66203594",
"0.6474783",
"0.6382756",
"0.63407964",
"0.614351",
"0.6101021",
"0.6048579",
"0.6001938",
"0.59151095",
"0.587786",
"0.58709496",
"0.5838205",
"0.58199257",
"0.57224625",
"0.57011837",
"0.569793",
"0.5637472",
"0.56044555",
"0.5588041",
"0.55828327",
"0.5568678",
"0.55217105",
"0.55158824",
"0.5515511",
"0.54911727",
"0.54803985",
"0.54737437",
"0.54544914",
"0.5454216",
"0.54438347",
"0.5429659",
"0.54184467",
"0.5412612",
"0.5407506",
"0.5405836",
"0.5403035",
"0.5403035",
"0.5403035",
"0.54024476",
"0.5402237",
"0.53649503",
"0.5353634",
"0.53191036",
"0.5303092",
"0.52982473",
"0.52903193",
"0.5281884",
"0.526447",
"0.5261765",
"0.5249233",
"0.5234348",
"0.52306455",
"0.52283925",
"0.5225399",
"0.52036893",
"0.52024496",
"0.519315",
"0.5168044",
"0.5159213",
"0.515259",
"0.5151278",
"0.51423264",
"0.51398677",
"0.5128237",
"0.5127244",
"0.51225924",
"0.50978786",
"0.5096323",
"0.508882",
"0.5082102",
"0.5080421",
"0.5075768",
"0.50750124",
"0.5073142",
"0.507155",
"0.50654495",
"0.50570804",
"0.50494516",
"0.50336415",
"0.5029733",
"0.5029508",
"0.50284296",
"0.502107",
"0.5011549",
"0.5011549",
"0.5011549",
"0.5011549",
"0.49937603",
"0.499069",
"0.49709913",
"0.49623033",
"0.49554554",
"0.49554154",
"0.4954756",
"0.49537897",
"0.49457532",
"0.49410313",
"0.492928",
"0.4926133",
"0.4919416"
] |
0.5448269
|
29
|
Remove um link do corpo do documento NCL.
|
public boolean removeLink(L link) {
if(links.remove(link)){
//Se link existe, retira o seu parentesco
if(link != null)
link.setParent(null);
notifyRemoved(NCLElementSets.LINKS, link);
return true;
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n\tpublic void testRemoveLinkComponentDeleteOrphanedFromDoc() {\n\t\tAddressBook adrbook = new AddressBook();\n\t\tDocument doc = new Document(adrbook);\n\t\tAssert.assertSame(doc.findBeansByType(\"org.rapidbeans.test.codegen.AddressBook\").get(0), doc.getRoot());\n\t\tPerson martin = new Person(new String[] { \"Bl�mel\", \"Martin\", \"19641014\" });\n\t\tadrbook.addPerson(martin);\n\t\tAssert.assertSame(martin, ((ReadonlyListCollection<?>) adrbook.getPersons()).get(0));\n\t\tAssert.assertSame(martin, doc.findBeansByType(\"org.rapidbeans.test.codegen.Person\").get(0));\n\t\tAddress fasanstreet = new Address();\n\t\tfasanstreet.setStreet(\"Fasanenstra�e\");\n\t\tadrbook.addAddress(fasanstreet);\n\t\tAssert.assertNull(fasanstreet.getInhabitants());\n\t\tfasanstreet.addInhabitant(martin);\n\t\tAssert.assertEquals(1, fasanstreet.getInhabitants().size());\n\t\tAssert.assertSame(fasanstreet, martin.getAddress());\n\t\tadrbook.removeAddress(fasanstreet);\n\t\tAssert.assertEquals(0, fasanstreet.getInhabitants().size());\n\t}",
"@Override\n\tpublic int delLink(Link link) {\n\t\treturn 0;\n\t}",
"boolean removeLink(Link link);",
"public void onUnlink()\n {\n getTextArea().setFocus(true);\n// clientJupiter.generate(treeOperationFactory.createLink(clientJupiter.getSiteId(),\n// getTextArea().getDocument().getSelection().getRangeAt(0), linkConfig.getUrl()));\n Console.getInstance().log(\"RTP: onUnlink\");\n }",
"public void deleteLink(IHyperLink link)\n throws OculusException;",
"private void linkRemoved(Link link) {\n\n\t}",
"private void deleteLinkPrihRash(Integer argDocument) throws Exception {\n\t\tlogIt(\"Deleting linkprihrash\");\n\t\tDocumentPositionAccessBean adocp = new DocumentPositionAccessBean();\n\t\tEnumeration dposes = adocp.findDocPositionsByDocOrderByOrderAsc(argDocument);\n\t\twhile (dposes.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean docpos = (DocumentPositionAccessBean)dposes.nextElement();\n\t\t\ttry {\n\t\t\t\tPIEDocInfoDocPosAccessBean dopinfo = new PIEDocInfoDocPosAccessBean();\n\t\t\t\tdopinfo.setInitKey_docposition(docpos.getDocposition());\n\t\t\t\tdopinfo.refreshCopyHelper();\n\t\t\t\tdopinfo.getEJBRef().remove();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"PLATINUM-SYNC: dopinfo docposition not found - cannot remove\");\n\t\t\t\te.printStackTrace(System.out);\n\t\t\t}\n\t\t\tPIELinkPrihRashAccessBean pielink = new PIELinkPrihRashAccessBean();\n\t\t\tEnumeration pielinkps = pielink.findByDocposPrihod(new Integer(docpos.getDocposition()));\n\t\t\twhile (pielinkps.hasMoreElements()) {\n\t\t\t\tPIELinkPrihRashAccessBean tpielink = (PIELinkPrihRashAccessBean)pielinkps.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\ttpielink.getEJBRef().remove();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"PLATINUM-SYNC: linkprihrash docposition not found - cannot remove\");\n\t\t\t\t\te.printStackTrace(System.out);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpielinkps = pielink.findByDocposRashod(new Integer(docpos.getDocposition()));\n\t\t\twhile (pielinkps.hasMoreElements()) {\n\t\t\t\tPIELinkPrihRashAccessBean tpielink = (PIELinkPrihRashAccessBean)pielinkps.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\ttpielink.getEJBRef().remove();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"PLATINUM-SYNC: linkprihrash docposition not found - cannot remove\");\n\t\t\t\t\te.printStackTrace(System.out);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}",
"private void removeContentAfterIndexLink()\r\n \t{\r\n \t\tdeleteNodes(XPath.AFTER_INDEX_LINK.query);\r\n \t}",
"public void delRelations();",
"protected void removeReference()\n {\n }",
"public void removerPorReferencia(String referencia){\n if (buscar(referencia)) {\r\n // Consulta si el nodo a eliminar es el pirmero\r\n if (inicio.getValor() == referencia) {\r\n // El primer nodo apunta al siguiente.\r\n inicio = inicio.getSiguiente();\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo anterior \r\n // al de referencia.\r\n while(aux.getSiguiente().getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Guarda el nodo siguiente del nodo a eliminar.\r\n Nodo siguiente = aux.getSiguiente().getSiguiente();\r\n // Enlaza el nodo anterior al de eliminar con el \r\n // sguiente despues de el.\r\n aux.setSiguiente(siguiente); \r\n }\r\n // Disminuye el contador de tamaño de la lista.\r\n tamanio--;\r\n }\r\n }",
"public void deletelink(Integer linkId);",
"protected void _removeLinks() throws java.rmi.RemoteException, javax.ejb.RemoveException {\n\tjava.util.Enumeration links = _getLinks().elements();\n\twhile (links.hasMoreElements()) {\n\t\ttry {\n\t\t\t((com.ibm.ivj.ejb.associations.interfaces.Link) (links.nextElement())).remove();\n\t\t}\n\t\tcatch (javax.ejb.FinderException e) {} //Consume Finder error since I am going away\n\t}\n}",
"public void delRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public void removeSemanticLink(IBusinessObject dest, LinkKind type)\n throws OculusException;",
"void removeLine(PNode c){\n\t\tLinkSet ls = null;\n\t\tLink l = null;\n\t\tLinkSet ls1 = new LinkSet();\n\t\tfor(int i=0;i<linksets.size();i++){\n\t\t\tfor(int j=0;j<linksets.get(i).getLinks().size();j++){\n\t\t\t\tif(c==linksets.get(i).getLinks().get(j).getNode1()||c==linksets.get(i).getLinks().get(j).getNode2()){\n\t\t\t\t\tls = linksets.get(i);\n\t\t\t\t\tl = ls.getLinks().get(j);\n\t\t\t\t\tls.removeLink(l);\n\t\t\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\t\t\tlinksets.remove(ls);//remove linkset if it is empty\n\t\t\t\t\t\tls = null;\n\t\t\t\t\t\tl = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(ls!=null){\n\t\t\tLink tlink = null;\n\t\t\tfor(Link lnk: ls.getLinks()){\n\t\t\t\tif(lnk.getNode1().getOwner()==l.getNode1().getOwner() && lnk.getNode1().getSignal()==l.getNode1().getSignal()\n\t\t\t\t\t\t|| lnk.getNode2().getOwner()==l.getNode1().getOwner() && lnk.getNode2().getSignal()==l.getNode1().getSignal()){\n\t\t\t\t\ttlink = lnk;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(tlink!=null){\n\t\t\t\tls1.addLink(tlink);\n\t\t\t\tls.removeLink(tlink);\n\t\t\t\tcheckForNextLink(ls1, ls, tlink);\n\t\t\t}\n\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\tlinksets.remove(ls);\n\t\t\t}\n\t\t\tlinksets.add(ls1);\n\t\t}\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tLink lnk = links.get(i);\n\t\t\tif (c == lnk.getNode1() || c == lnk.getNode2()){\n\t\t\t\tlayer.removeChild(links.get(i).getPPath());\n\t\t\t\tlinks.remove(i);\n\t\t\t\tremoveLine(c);\n\t\t\t}\n\t\t}\n\t}",
"protected void _removeLinks() throws java.rmi.RemoteException, javax.ejb.RemoveException {\n\t\tjava.util.List links = _getLinks();\n\t\tfor (int i = 0; i < links.size(); i++) {\n\t\t\ttry {\n\t\t\t\t((com.ibm.ivj.ejb.associations.interfaces.Link) links.get(i)).remove();\n\t\t\t} catch (javax.ejb.FinderException e) {\n\t\t\t} //Consume Finder error since I am going away\n\t\t}\n\t}",
"@Test\n public void unlink() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n\n doc.unlinkFields();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"Fields.Docx Элементы указателя не найдены. 1.\\r\");\n }",
"public void delIncomingRelations();",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"void clearLinks();",
"public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}",
"public void delRelations(XDI3Segment arcXri);",
"public final void mT__61() throws RecognitionException {\n try {\n int _type = T__61;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:129:7: ( 'RemoveLink' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:129:9: 'RemoveLink'\n {\n match(\"RemoveLink\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"private void removeCrossReference ()\n\t{\n\t\tif (crossReference != null)\n\t\t{\n\t\t\tcrossReferences.remove (crossReference);\n\t\t}\n\t}",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}",
"public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}",
"public void removeDoc(Document doc) {//borra el objeto\n documents.remove(doc);\n }",
"private void removeLinks(int index) {\n ensureLinksIsMutable();\n links_.remove(index);\n }",
"public void _unlinkClient(ModelElement client1);",
"public void removeServiceEntry(String linkName);",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"public void secondaryRemoveInDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveInDocument(arg0);\n }",
"public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }",
"public void removerPorReferencia(int referencia){\n if (buscar(referencia)) {\n // Consulta si el nodo a eliminar es el pirmero\n if (inicio.getEmpleado().getId() == referencia) {\n // El primer nodo apunta al siguiente.\n inicio = inicio.getSiguiente();\n // Apuntamos con el ultimo nodo de la lista al inicio.\n ultimo.setSiguiente(inicio);\n } else{\n // Crea ua copia de la lista.\n NodoEmpleado aux = inicio;\n // Recorre la lista hasta llegar al nodo anterior\n // al de referencia.\n while(aux.getSiguiente().getEmpleado().getId() != referencia){\n aux = aux.getSiguiente();\n }\n if (aux.getSiguiente() == ultimo) {\n aux.setSiguiente(inicio);\n ultimo = aux;\n } else {\n // Guarda el nodo siguiente del nodo a eliminar.\n NodoEmpleado siguiente = aux.getSiguiente();\n // Enlaza el nodo anterior al de eliminar con el\n // sguiente despues de el.\n aux.setSiguiente(siguiente.getSiguiente());\n // Actualizamos el puntero del ultimo nodo\n }\n }\n // Disminuye el contador de tama�o de la lista.\n size--;\n }\n }",
"public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }",
"public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}",
"@Action( ACTION_REMOVE_REFERENCE )\r\n public String doRemoveReference( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFERENCE ) );\r\n ReferenceHome.remove( nId );\r\n addInfo( INFO_REFERENCE_REMOVED, getLocale( ) );\r\n return redirectView( request, VIEW_MANAGE_REFERENCES );\r\n }",
"private void clearLinks() {\n links_ = emptyProtobufList();\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}",
"LinkedEntries.LinkNode removeNodeEntry(NodeEntry cne) {\n LinkedEntries.LinkNode ln = getLinkNode(cne);\n if (ln != null) {\n ln.remove();\n }\n return ln;\n }",
"@Override\r\n\tpublic Ngo delete(Ngo obj) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void excluir(Telefone vo) throws Exception {\n\t\t\r\n\t}",
"public void removeDeviceServiceLink();",
"public void clearLinks(){\r\n varContextObject=null; \r\n varContextFields=null; \r\n }",
"@Override\n\tpublic void RemoverCarrinho(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"boolean removeDocument(String path);",
"public void removeCommercialInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMERCIALINFORMATIONURL, value);\r\n\t}",
"@Override\r\n\tpublic void delRecomment(int cm_Seq) {\n\t\trdao.delRecomment(cm_Seq);\r\n\t}",
"public void resetReferenciado();",
"public void secondaryRemoveOutDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveOutDocument(arg0);\n }",
"@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}",
"public void deleteTagForNote(Tag t, Note n) {\n\t\tdatabase.delete(DbHelper.LINKS_TABLE_NAME, DbHelper.LINK_NOTE_ID + \" = \" + n.getId() + \r\n\t\t\t\t\" AND \" + DbHelper.LINK_TAG_ID + \" = \" + t.getId(), null);\r\n\t}",
"@Override\n\tpublic void deleteLinkmanById(long id) {\n\t\tmapper.deleteByPrimaryKey(id);\n\t}",
"int deleteByPrimaryKey(Integer linkid);",
"public void removeNodeAfterThis() {\r\n\t\tif ( link != null ) {\r\n\t\t\tlink = link.link;\r\n\t\t} // end precondition\r\n\t}",
"boolean delete(String linkId);",
"public void delete(Conseiller c) {\n\t\t\r\n\t}",
"@Indexable(type = IndexableType.DELETE)\n @Override\n public Libro deleteLibro(long isbn) throws PortalException, SystemException {\n return libroPersistence.remove(isbn);\n }",
"public void remove(int pos) {\n \tNode2 currentLink = first;\n \tNode2 tempPrevLink = null;\n \tint temp=1;\n \t\n\t while(temp++ != pos) {\n\t \ttempPrevLink = currentLink;\n\t\t currentLink = currentLink.nextLink;\n\t }\n\t currentLink.nextLink.prevLink = tempPrevLink;\n\t tempPrevLink.nextLink = currentLink.nextLink; \n }",
"@Override\n\tpublic Boolean deleteDocument(Document document) {\n\t\treturn null;\n\t}",
"public void removerContaCategoria(Conta conta)\n\t\t\tthrows ErroRepositorioException;",
"public void removeFromImages(final SessionContext ctx, final GPImageLinkComponent value)\n\t{\n\t\tremoveLinkedItems( \n\t\t\tctx,\n\t\t\ttrue,\n\t\t\tGpcommonaddonConstants.Relations.BRANDBAR2GPIMAGELINKRELATION,\n\t\t\tnull,\n\t\t\tCollections.singletonList(value),\n\t\t\tfalse,\n\t\t\tfalse,\n\t\t\tUtilities.getMarkModifiedOverride(BRANDBAR2GPIMAGELINKRELATION_MARKMODIFIED)\n\t\t);\n\t}",
"public void eliminar(ListaConArreglo nodosMaquina){\n\t\tmodAdmin.eliminar( nodosMaquina);\n\t\tif(!ModAdmin.existe){\n\t\t\tSystem.err.println(\"El dominio indicado no existe en la base\");\n\t\t}\n\t\tModAdmin.existe=false;\n\t}",
"public static void linkDocenteCorso(long idDocente, long idCorso) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.LINK_DOCENTE_CORSO;\n\t\t\trp.parameters = new Object[] { idDocente, idCorso };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"LINK_DOCENTE_CORSO\");\n\t\t}\n\t}",
"public void removeEditDocumentationPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_editDocumentationPage);\r\n }",
"public void deleteNode(Node n){\n\t\tn.item = n.next.item;\n\t\tNode temp = n.next.next;\n\t\t//delete(n.next);\n\t\tn.next = temp;\n\t\t\n\t\t\n\t}",
"public void clearLinkage(boolean cascade) {\n\t if (links.isEmpty())\n\t\treturn;\n\t ArrayList<Link> p = links;\n\t links = new ArrayList<>();\n\t if (cascade)\n\t\tfor (Link n : p)\n\t\t n.opposite(this).clearLinkage(true);\n\t}",
"@Override\n public void doRemove(String content, MiddleObject midObj) throws ChannelReleaseException {\n }",
"public void deleteTopic(String nume) throws RemoteException;",
"@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}",
"void removeHadithBookUrl(Object oldHadithBookUrl);",
"private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }",
"public void removerClienteDoBanco(){\n\t\tdao.removerCliente(doCadastroController);\r\n\t}",
"public synchronized void delete() {\n if (this.swigCPtr != 0) {\n if (this.swigCMemOwn) {\n this.swigCMemOwn = false;\n libVisioMoveJNI.delete_VgIPlaceListenerConstRefPtr(this.swigCPtr);\n }\n this.swigCPtr = 0;\n }\n }",
"private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void unlinkSingleField() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n doc.getRange().getFields().get(1).unlink();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"\\u0013 FILENAME \\\\* Caps \\\\* MERGEFORMAT \\u0014Fields.Docx\\u0015 Элементы указателя не найдены. \\u0013 LISTNUM LegalDefault \\u0015\\r\");\n }",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"public static void eliminarTodosLosConceptosCatgeorias() {\n\t\tnew Delete().from(ConceptoCategoria.class).execute();\n\t}",
"public synchronized void delete(long entry) throws IOException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Remove the entry by writing a '\\n' to the first byte\n idx.seek(startOfEntry);\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerSlot - 2]);\n \n // Update the file header\n entries--;\n idx.seek(IDX_HEADER_ENTRIES);\n idx.writeLong(entries);\n \n logger.debug(\"Removed uri at address '{}' from index\", entry);\n }",
"public void removeCommercialInformationURL(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMERCIALINFORMATIONURL, value);\r\n\t}",
"public Corso(String codice, String nome, String docente, String descrizione, String link) {\n this.codice = codice;\n this.nome = nome;\n this.docente = docente;\n this.descrizione = descrizione;\n this.link = link;\n }",
"@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"@Transactional\n public void remove(ExtensionLinkEntity link) {\n EntityManager entityManager = entityManagerProvider.get();\n link = findById(link.getLinkId());\n if (null != link) {\n entityManager.remove(link);\n }\n }",
"@Override\n public void doDefaultRemove(String content, MiddleObject midObj) throws ChannelReleaseException {\n }",
"public void removeRuleRef(org.semanticwb.model.RuleRef value);",
"public void delContextNode(XDI3SubSegment arcXri);",
"public static com.agbar.intranet.quienesquien.model.Link deleteLink(\n\t\tcom.agbar.intranet.quienesquien.model.Link link)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().deleteLink(link);\n\t}",
"void removeHadithUrl(Object oldHadithUrl);",
"@Override\r\n public void removerConcursando(long id) throws Exception {\n rnConcursando.remover(id);\r\n }",
"public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }",
"public void removerDebitoCobrado(Conta conta)\n\t\t\tthrows ErroRepositorioException;",
"public void removeFootnoteRef(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FOOTNOTEREF$10, i);\n }\n }",
"public int delete( Conge conge ) ;",
"@Override\r\n public void removeUpdate(DocumentEvent e) {\n HayCambio();\r\n }",
"void resetLink(Link link, Node source, Node target, Dependency type) {\n\t\tlinks.remove(link);\n\t\tlinks.add(new Link(source, target, type, source));\n\t}",
"@DELETE\r\n @Path(\"{id}\")\r\n public void remove(@PathParam(\"id\") Integer id) throws InternalServerErrorException {\r\n LOGGER.info(\"Peticion de borrado de documento\");\r\n Document document = new Document();\r\n document.setId(id);\r\n try {\r\n ejb.deleteDocument(document);\r\n } catch (DeleteException ex) {\r\n LOGGER.warning(\"ERROR a la hora de borrar un documento\");\r\n throw new InternalServerErrorException(\"Erro al borrar el documento\");\r\n }\r\n}"
] |
[
"0.63844246",
"0.6307862",
"0.6266081",
"0.620216",
"0.61434054",
"0.6080799",
"0.59177446",
"0.5825936",
"0.5786462",
"0.5753404",
"0.5748706",
"0.57368976",
"0.5717453",
"0.5686689",
"0.5669355",
"0.56226873",
"0.5605044",
"0.5599013",
"0.5582449",
"0.5575303",
"0.5567339",
"0.556605",
"0.55487806",
"0.55468065",
"0.5546744",
"0.5530435",
"0.5505503",
"0.549255",
"0.5488178",
"0.54818255",
"0.5477363",
"0.5474103",
"0.54437697",
"0.5421396",
"0.54020673",
"0.5398388",
"0.5375555",
"0.53381497",
"0.5334587",
"0.53228927",
"0.53114706",
"0.53062",
"0.53019834",
"0.52611804",
"0.52554905",
"0.5254623",
"0.52523464",
"0.5247718",
"0.5242962",
"0.5240321",
"0.52395856",
"0.5228788",
"0.52281916",
"0.5225635",
"0.5224265",
"0.5221275",
"0.520997",
"0.5207153",
"0.52055943",
"0.5191425",
"0.5186489",
"0.5178217",
"0.5166431",
"0.51560634",
"0.51551574",
"0.51496017",
"0.51493114",
"0.51286525",
"0.5117579",
"0.51164174",
"0.51110256",
"0.5110014",
"0.5109667",
"0.5106916",
"0.5106375",
"0.51051015",
"0.5103787",
"0.50988775",
"0.5090243",
"0.5085729",
"0.50829786",
"0.5079921",
"0.507727",
"0.5073939",
"0.5065381",
"0.5062885",
"0.5050478",
"0.50500625",
"0.5049829",
"0.5048198",
"0.504281",
"0.5037252",
"0.50367475",
"0.50349784",
"0.50308585",
"0.5022319",
"0.50221086",
"0.50201625",
"0.50129104",
"0.50110734"
] |
0.56510526
|
15
|
Verifica se o corpo do documento NCL possui um link.
|
public boolean hasLink(L link) {
return links.contains(link);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean hasLink() {\n return !links.isEmpty();\n }",
"public boolean isLink() {\n return linkFlag == LF_LINK;\n }",
"private boolean hasLinkToEntidad(Entidadrol entidadrol) {\n\t\tif(entidadrol.getEntidadid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"final void checkLink(String link)\r\n {\r\n URL doc; // URL link\r\n\tDataInputStream dis=null;\r\n\tint i;\r\n\tboolean qualifiedLink=false;\r\n\tif(link.startsWith(\"#\")) // Skip the link if it's just an offset in this document\r\n\t return;\r\n if((i=link.indexOf(\"#\"))!=-1)\r\n\t{\r\n\t String substr=link.substring(0,i);\r\n\t link=substr;\r\n\t}\r\n\tif(app.checkAlreadyFound(link))\r\n\t return;\r\n // Ignore not - HTML links and start page\r\n\tif( (link.startsWith(\"mailto:\")) || (link.startsWith(\"wais:\")) ||\r\n\t (link.startsWith(\"gopher:\")) || (link.startsWith(\"newsrc:\")) ||\r\n\t\t(link.startsWith(\"ftp:\")) || (link.startsWith(\"nntp:\")) ||\r\n\t\t(link.startsWith(\"telnet:\")) || (link.startsWith(\"news:\")) ||\r\n\t\t(link.equalsIgnoreCase(app.indexName)) || link.equalsIgnoreCase(\"index.html\") ||\r\n\t\t(link.equalsIgnoreCase(\"index.htm\")))\r\n return;\r\n // Check that it is not out side link. (Eg, www.RGP-Javaline.com)\r\n\tif(link.indexOf(\"http:\")!=-1)\r\n\t{\r\n\t String pageName;\r\n\t if(app.server==null)\r\n\t pageName=\"http://www.\"+hostName;\r\n else pageName=app.server;\r\n\t // Allow for local host being displayed as an IP Address rather than host name.\r\n if(proxyDetected && app.IPAddress!=null)\r\n\t pageName=\"http://\"+app.IPAddress;\r\n // This is a fully qualified link. Eg, \" http://www.allsoft-india.com/index.htm\"\r\n\t qualifiedLink=true;\r\n\t // If the link doesn't contain the local host name or IPAddress then\r\n\t // it's an external link. So, ignore it.\r\n\t if(link.indexOf(pageName)==-1)\r\n\t return;\r\n\t}\r\n\t// Check that it's a HTML Page.\r\n\tif( link.indexOf(\".htm\")==-1 && link.indexOf(\".HTM\")==-1 &&\r\n\t link.indexOf(\".txt\")==-1 && link.indexOf(\".TXT\")==-1 &&\r\n\t\tlink.indexOf(\".phtml\")==-1 && link.indexOf(\".PHTML\")==-1 )\r\n return ;\r\n app.incrementPages(link); // valid link - add it to the array of visited links. \r\n\t// Follow link and read it's contents.\r\n\ttry\r\n\t{\r\n\t if(app.server==null)\r\n\t doc=new URL(\"http://www.\"+hostName+\"/\"+link);\r\n else\r\n\t {\r\n\t if(link.startsWith(\"/\"))\r\n\t\t{\r\n \t\t // Remove the \"/\" from the link as the server name has a terminating \"/\" \r\n String temp=link.substring(1,link.length());\r\n\t\t link=temp;\r\n\t\t}\r\n\t\tdoc=new URL(app.server+link);\r\n\t }\r\n \t // Link may be absolute, Eg, www.allsoft-india.com/contus.html\r\n\t if(qualifiedLink)\r\n\t doc=new URL(link);\r\n // If a proxy server/firewall has been detected then use the IPAddress (if supplied)\r\n\t // of the originating server rather than the host name.\r\n\t if(proxyDetected && app.IPAddress!=null)\r\n\t doc=new URL(\"http://\"+app.IPAddress+\"/\"+link);\r\n dis=new DataInputStream(doc.openStream());\r\n\t searchPage(dis,link);\r\n\t}\r\n catch(IOException e){}\r\n }",
"public boolean hasLinkAttached()\n throws OculusException;",
"public boolean isLink(String str) { return link_to_line.keySet().contains(str); }",
"public boolean isLink(String label)\n {\n return true;\n }",
"public final boolean isHyperlink() {\n return hyperlink != null;\n }",
"private boolean hasLinkToRol(Entidadrol entidadrol) {\n\t\tif(entidadrol.getRolid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void verifyCommunitiesLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Collaboration Plans\",GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plans\");\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, \"Collaboration Plans Link\", \"LinkText\");\r\n \tUIActions.waitForLinkText(linkText,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}",
"private boolean hasIndexLink()\r\n \t{\r\n \t\treturn xPathQuery(XPath.INDEX_LINK.query).size() > 0;\r\n \t}",
"boolean hasCustomerClientLink();",
"boolean hasAccountLink();",
"public abstract boolean containsLink(Integer linkId);",
"public static void verifyLink(String urlLink) {\n //Sometimes we may face exception \"java.net.MalformedURLException\". Keep the code in try catch block to continue the broken link analysis\n try {\n //Use URL Class - Create object of the URL Class and pass the urlLink as parameter\n URL link = new URL(urlLink);\n // Create a connection using URL object (i.e., link)\n HttpURLConnection httpConn =(HttpURLConnection)link.openConnection();\n //Set the timeout for 2 seconds\n httpConn.setConnectTimeout(2000);\n //connect using connect method\n httpConn.connect();\n //use getResponseCode() to get the response code.\n if(httpConn.getResponseCode()== 200) {\n System.out.println(urlLink+\" - \"+httpConn.getResponseCode());\n }\n if(httpConn.getResponseCode()== 404) {\n System.out.println(urlLink+\" - \"+httpConn.getResponseCode());\n }\n }\n //getResponseCode method returns = IOException - if an error occurred connecting to the server.\n catch (Exception e) {\n //e.printStackTrace();\n }\n \n }",
"private void checkForLink(BasicPanel panel, Box box)\n {\n if (box == null || box.getElement() == null)\n {\n return;\n }\n\n String uri = findLink(panel, box.getElement());\n\n if (uri != null)\n {\n try\n {\n linkClicked(panel, uri);\n }\n catch (Exception e)\n {\n logger.info(\"exception during loading of \" + uri, e);\n }\n }\n }",
"public boolean hasNextLink() {\n return hasNextLink;\n }",
"boolean hasReference();",
"private boolean getLinks() {\n return false;\n }",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"static boolean isValidLinkTarget(LWLink link, LWComponent linkSource, LWComponent linkTarget)\n {\n if (linkTarget == linkSource && linkSource != null) {\n if (DEBUG.LINK) reject(linkTarget, \"source == target\");\n return false;\n }\n // TODO: allow loop-back link if it's a CURVED link...\n\n // don't allow links between parents & children\n if (linkSource != null) {\n if (linkTarget.getParent() == linkSource ||\n linkSource.getParent() == linkTarget) {\n if (DEBUG.LINK) reject(linkTarget, \"parent-child link\");\n return false;\n }\n if (linkTarget != null) {\n if (!linkSource.canLinkTo(linkTarget)) {\n if (DEBUG.LINK) reject(linkTarget, \"source denies target; src=\" + linkSource);\n return false;\n }\n }\n }\n\n if (link != null && linkTarget == link.getParent()) {\n // if a link is inside something, don't link to it (?)\n if (DEBUG.LINK) reject(linkTarget, \"target is parent of the new link\");\n return false;\n }\n\n if (link != null && linkTarget instanceof LWLink && linkTarget.isConnectedTo(link)) {\n // Don't permit a link to link back to a link that's connected to it.\n if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n return false;\n }\n\n\n// New code, tho we don't actually need these constraints:\n// if (linkTarget instanceof LWLink) {\n// if (DEBUG.LINK) outln(\"target is link: \" + linkTarget);\n// if (linkTarget.isConnectedTo(linkSource)) {\n// if (DEBUG.LINK) reject(linkTarget, \"target link-to-link loop\");\n// return false;\n// } else if (link != null && linkTarget.isConnectedTo(link)) {\n// if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n// return false;\n// }\n// }\n \n// if (linkSource instanceof LWLink) {\n// if (linkSource.isConnectedTo(linkTarget)) {\n// if (DEBUG.LINK) reject(linkTarget, \"source link-to-link loop; src=\" + linkSource);\n// return false;\n// }// else if (link != null\n// }\n\n\n return true;\n\n\n// The old code: \n// boolean ok = true;\n// if (linkTarget instanceof LWLink) {\n// LWLink target = (LWLink) linkTarget;\n// ok &= (target.getHead() != linkSource &&\n// target.getTail() != linkSource);\n// }\n// if (linkSource instanceof LWLink) {\n// LWLink source = (LWLink) linkSource;\n// ok &= (source.getHead() != linkTarget &&\n// source.getTail() != linkTarget);\n// }\n// return ok;\n }",
"public boolean addLink(L link) {\n if(links.add(link)){\n //Se link existe, atribui este como seu parente\n if(link != null)\n link.setParent(this);\n\n notifyInserted(NCLElementSets.LINKS, link);\n return true;\n }\n return false;\n }",
"Link getIsReuseOf();",
"@Override\n\tpublic boolean isUsedInLinks() {\n\t\treturn false;\n\t}",
"boolean hasAccountLinkId();",
"public boolean completelink() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(completelink);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Complete link is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"USER NAME NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn flag;\r\n\t\t}",
"@Test\n public void testLink() {\n try {\n Message email = emailUtils.getMessagesBySubject(\"You've received a document via HelloSign\", true, 5)[0];\n String link = emailUtils.getUrlsFromMessage(email, Data.mainUrl + \"/t\").get(0);\n\n driver.get(link);\n\n //TODO: continue testing\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"public boolean hasLinkPanel(ItemStack page);",
"boolean isInverseFunctionalLinkProperty();",
"public String verifyLinkPresent(String object, String data) {\n\t\tlogger.debug(\"Entered into verifyLinkPresent()\");\n\t\ttry {\n\t\t\tboolean linkPresent = false;\n\t\t\tWebElement element = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tlinkPresent = element.isDisplayed();\n\t\t\tif (linkPresent == true) {\n\t\t\t\tlogger.debug(\"Link present..\" + linkPresent);\n\t\t\t\treturn Constants.KEYWORD_PASS + \" -- Link present\";\n\t\t\t}\n\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- No Link present -- \";\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n\t\t}\n\t}",
"@DISPID(1611006048) //= 0x60060060. The runtime will prefer the VTID if present\n @VTID(123)\n boolean linkedExternalReferences();",
"boolean hasUrl();",
"boolean hasUrl();",
"boolean hasUrl();",
"boolean hasUrl();",
"boolean hasUrl();",
"@Override\n\tpublic boolean canLink(Login object,\n\t String link,\n\t LinksAction action) {\n\t\treturn false;\n\t}",
"CharNode getLink();",
"public static boolean validateRef(String ref)\n {\n final Pattern URL = Pattern.compile(\"https?:\\\\/\\\\/(www\\\\.)?[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\\\.[a-z]{2,6}\\\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)\");\n Matcher matcher = URL.matcher(ref);\n if(!matcher.matches())\n return false;\n else\n return true;\n }",
"boolean hasHadithBookUrl();",
"public void testLinkPersists() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://google.com/fwd.txt This is a test\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link;\n\t\ttry {\n\t\t\tlh.putLink(msg);\n\t\t\tlink = dao.getLink(\"http://google.com/fwd.txt\");\n\t\t\tassert(link.getCount() == 1);\n\t\t\tif (link.getCount() != 1) {\n\t\t\t\tfail(\"Link count meant to be 1 but is:\" + link.getCount());\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\tfail(\"I'm bad at logic\");\n\t}",
"public static boolean isThisACollection(File linkAsFile) {\n\n if (linkAsFile == null) {\n return false;\n }\n if (! linkAsFile.exists()) {\n return false;\n }\n if (! linkAsFile.isDirectory()) {\n return false;\n }\n if (linkAsFile.isHidden()) {\n return false;\n }\n String linkToLower = linkAsFile.getName().toLowerCase();\n if (linkToLower.contains(\"archive\")\n || linkToLower.contains(\"backup\")\n || linkToLower.equals(\"deploy\")\n || linkToLower.equals(\"dist\")\n || linkToLower.equals(\"icons\")\n || linkToLower.equals(\"jars\")) {\n return false;\n }\n String fileName = linkAsFile.getName();\n if (fileName.equalsIgnoreCase(\"Library\")\n || fileName.equalsIgnoreCase(\"Music\")\n || fileName.equalsIgnoreCase(\"Pictures\")\n || fileName.equalsIgnoreCase(\"PSPub Omni Pack\")\n || fileName.endsWith(\".app\")) {\n return false;\n }\n\n File readMeFile = new File(linkAsFile, NoteIO.README_FILE_NAME);\n if ((! readMeFile.exists()) || (! readMeFile.canRead())) {\n return false;\n }\n\n String line = \"\";\n boolean notenikLineFound = false;\n try {\n FileReader fileReader = new FileReader(readMeFile);\n BufferedReader reader = new BufferedReader(fileReader);\n line = reader.readLine();\n while (line != null && (! notenikLineFound)) {\n int j = line.indexOf(NoteIO.README_LINE_1);\n notenikLineFound = (j >= 0);\n line = reader.readLine();\n }\n } catch(IOException e) {\n // Ignore\n }\n if (! notenikLineFound) {\n return false;\n }\n\n return true;\n }",
"@DISPID(1611006052) //= 0x60060064. The runtime will prefer the VTID if present\n @VTID(127)\n boolean linkedExternalReferencesOnlyOnPublication();",
"protected boolean isLinkedWithEditor() {\n return modes.get(BCOConstants.F_LINK_VIEW_TO_EDITOR);\n }",
"public String getLink();",
"boolean hasCustomerManagerLink();",
"public void verifyCollaborationTemplateLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Domain Plan Editor\",GlobalVariables.configuration.getAttrSearchList(), \"Domain Plan Editor 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, \"Collaboration Templates Link\", \"LinkText\");\r\n\t\tUIActions.waitForLinkText(linkText,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}",
"public void verifyCmsLink() {\n cmsFooterLink.assertState().enabled();\n cmsFooterLink.assertContains().text(\"CMS\");\n }",
"private String checkDirectLink(final DownloadLink downloadLink, final String property) {\r\n String dllink = downloadLink.getStringProperty(property);\r\n if (dllink != null) {\r\n URLConnectionAdapter con = null;\r\n try {\r\n final Browser br2 = br.cloneBrowser();\r\n br2.setFollowRedirects(true);\r\n con = br2.openHeadConnection(dllink);\r\n if (con.getContentType().contains(\"html\") || con.getLongContentLength() == -1) {\r\n downloadLink.setProperty(property, Property.NULL);\r\n dllink = null;\r\n }\r\n } catch (final Exception e) {\r\n downloadLink.setProperty(property, Property.NULL);\r\n dllink = null;\r\n } finally {\r\n try {\r\n con.disconnect();\r\n } catch (final Throwable e) {\r\n }\r\n }\r\n }\r\n return dllink;\r\n }",
"@Override\n public boolean isStrongFormSynonymous(String link1, String link2){\n if(link1 == null || link2 == null) {\n return false;\n }\n\n Set<String> synonyms1 = new HashSet<>();\n Set<String> synonyms2 = new HashSet<>();\n\n synonyms1.addAll(linker.getUris(link1));\n synonyms2.addAll(linker.getUris(link2));\n\n // remove empty strings to avoid false positives\n synonyms1.remove(\"\");\n synonyms2.remove(\"\");\n\n for(String s : linker.getUris(link2)){\n if(synonyms1.contains(s)) return true;\n }\n for(String s : linker.getUris(link1)){\n if(synonyms2.contains(s)) return true;\n }\n\n return false;\n }",
"public boolean isSetLinkman() {\n return this.linkman != null;\n }",
"String getLink();",
"boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}",
"boolean insertLink(Link link);",
"boolean hasHadithReferenceNo();",
"boolean hasDidUri();",
"@Test\r\n\tpublic void testScanePage_malformedLink() {\n\t}",
"boolean hasRef();",
"private void verifyLinks(String[][] linkSelfO1O2IDs) {\n // fill expectedLinkIDs\n List expectedLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n for (int linkIdx = 0; linkIdx < linkSelfO1O2IDs.length; linkIdx++) {\n String[] linkIDs = linkSelfO1O2IDs[linkIdx];\n String linkID = linkIDs[0];\n String o1ID = linkIDs[1];\n String o2ID = linkIDs[2];\n expectedLinkIDs.add(linkID + o1ID + o2ID);\n }\n\n // fill actualLinkIDs\n List actualLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n NST linkNST = DB.getLinkNST();\n ResultSet resultSet = linkNST.selectRows(); // \"o1_id\", \"o2_id\"\n while (resultSet.next()) {\n int linkID = resultSet.getOID(1);\n int o1ID = resultSet.getOID(2);\n int o2ID = resultSet.getOID(3);\n actualLinkIDs.add(linkID + \"\" + o1ID + \"\" + o2ID);\n }\n\n // compare\n assertEquals(expectedLinkIDs.size(), actualLinkIDs.size());\n assertTrue(expectedLinkIDs.containsAll(actualLinkIDs));\n }",
"public boolean onLinkClick() {\n for (int t = 0; t < data.size(); t++) {\n if (data.get(t).getActionLink().isClicked()) {\n Cuenta ref = data.get(t);\n List<Cuenta> newData = new LinkedList<Cuenta>();\n List<Cuenta> createQuery = DAO.createQuery(Cuenta.class, null);\n if (ref.getRef() == null || ref.getRef().equals(\"\")) {\n newData.add(ref);\n } else {\n String[] split = ref.getRef().split(\",\");\n for (String sp : split) {\n for (Cuenta c : createQuery) {\n if (c.getIdCuenta().toString().equals(sp)) {\n newData.add(c);\n }\n }\n }\n }\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n newContext();\n setTitle(ref.getDescripcion());\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"data\", new Variable(\"data\", newData, List.class), true);\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n setRedirect(TablePage.class);\n return true;\n }\n }\n return true;\n }",
"boolean hasFeedItemSetLink();",
"public void setLink(String link)\n {\n this.link = link;\n }",
"void openLink(Link target);",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"private boolean hasLink(String linkName, TOSCAPlan buildPlan) {\n\t\treturn Utils.hasChildElementWithAttribute(buildPlan.getBpelMainFlowLinksElement(), \"name\", linkName);\n\t}",
"public boolean isNilUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }",
"public interface Link<C> {\n \n /**\n * @param context an arbitrary context.\n * @return <code>true</code> if this instance accepts the given context.\n */\n public boolean accepts(C context);\n }",
"public String getLink() {\r\n return link;\r\n }",
"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}",
"@Test\n\tpublic void demoqaLinkIsClickable() {\n\t\tassertTrue(ServicesLogic.demoqaLinkIsClickable());\n\t}",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"boolean hasUri();",
"public boolean isReference() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n return comp instanceof IReference && ((IReference)comp).getRef() != null;\n }",
"public static int verifyLink(String urlLink) {\n try {\n\t\t\t //Use URL Class\n\t\t\t URL link = new URL(urlLink);\n\n\t\t\t // Create a connection using URL object (i.e., link)\n\t\t\t HttpURLConnection httpConn =(HttpURLConnection)link.openConnection();\n\n\t\t\t //Set the timeout for 2 seconds\n\t\t\t httpConn.setConnectTimeout(2000);\n\n\t\t\t //connect using connect method\n\t\t\t httpConn.connect();\n\n\t\t\t //use getResponseCode() to get the response code. \n\t\t\t if(httpConn.getResponseCode()== 200) { \n\t\t\t\t //System.out.println(urlLink+\" - \"+httpConn.getResponseMessage());\n\t\t\t }\n\n\t\t\t if(httpConn.getResponseCode()== 404) {\n\t\t\t\t System.out.println(urlLink+\" - \"+httpConn.getResponseMessage());\n\t\t\t }\n\t\t\t \n\t\t\t return httpConn.getResponseCode();\n\n\t\t //getResponseCode method returns = IOException - if an error occurred connecting to the server. \n } catch (Exception e) {\n\t\t //e.printStackTrace();\n\t\t }\n\t\treturn 0;\n }",
"@Test\n\tpublic void testCreateLinkValid() {\n\t\tLink result = helper.createLink(\"http://good.com\");\n\t\tassertEquals(\"http://good.com\", result.getUrl());\n\t\tassertTrue(result.isValid());\n\t}",
"public void verifyLearnMoreLink() {\n learnMoreLink.assertState().enabled();\n learnMoreLink.assertContains().text(\"Learn more about registering for an account.\");\n }",
"private boolean hasLinkToStockTrans(StockTransTax stockTransTax) {\n\t\tif(stockTransTax.getTransId() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test(enabled = true)\n public void checkLink() {\n System.out.println(\"We Are Now Testing 20 Test Cases On: \" + driver.getCurrentUrl());\n System.out.println(\"*****************************************************************\");\n\n String expectedLink = \"https://www.expedia.com/\";\n String actualLink = driver.getCurrentUrl();\n\n //Validate Links\n Assert.assertEquals(actualLink, expectedLink, \"Test Failed, Link Does Not Match\");\n\n }",
"@Test\n\tpublic void TestTwoLinksAreHandledOkay() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://reddit.com http://google.com\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link = null;\n\t\ttry {\n\t\t\tlink = lh.convertMessageToLink(msg);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Couldnt convert message to link\");\n\t\t}\n\t\tif (link.getUrl().equals(\"http://reddit.com\") || link.getUrl().equals(\"http://google.com\")) {\n\t\t\t// pass\n\t\t}\n\t\telse {\n\t\t\tfail(\"Can't handle two URL's\");\n\t\t}\n\t}",
"public void setLink(String link) {\n this.link = link;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"public String getLink() {\n return link;\n }",
"ReferenceLink createReferenceLink();",
"@DISPID(1611006048) //= 0x60060060. The runtime will prefer the VTID if present\n @VTID(124)\n void linkedExternalReferences(\n boolean oWithLink);",
"boolean isFunctionalLinkProperty();",
"boolean removeLink(Link link);",
"public boolean removeLink(L link) {\n if(links.remove(link)){\n //Se link existe, retira o seu parentesco\n if(link != null)\n link.setParent(null);\n\n notifyRemoved(NCLElementSets.LINKS, link);\n return true;\n }\n return false;\n }",
"private boolean validateVkLink(@NotNull String link) {\n logger.debug(\"Validating link: {}\", link);\n if (!isVkLink(link)) {\n userID = link;\n }\n\n logger.debug(\"Trying to check existence of vk user: {}\", VK_PREFIX + userID);\n try {\n URL request = new URL(VK_PREFIX + userID);\n HttpURLConnection connection = (HttpURLConnection) request.openConnection();\n\n if (connection.getResponseCode() == 404) {\n logger.debug(\"This user doesn't exist\");\n return false;\n }\n } catch (Exception e) {\n logger.debug(Arrays.toString(e.getStackTrace()));\n return false;\n }\n\n logger.debug(\"Link confirmed\");\n return true;\n }",
"private boolean isCanLink(String[] strA1, String[] strA2) {\n\t\tboolean flag = true;\n\t\tif(strA1.length != strA2.length){\n\t\t\treturn false;\n\t\t}else {\n\t\t\tfor(int i = 0; i < strA1.length - 1; i++){\n\t\t\t\tif(!strA1[i].equals(strA2[i])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(strA1[strA1.length -1].equals(strA2[strA1.length -1])){\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public String getLink() {\n\t\treturn link;\n\t}",
"public String getLink() {\n\t\treturn link;\n\t}",
"public boolean hasNext() {\r\n\r\n\t\treturn counter < links.size();\r\n\t}",
"public void validateRpd8s14()\n {\n for (Node link : getElements(ELEM_LINK)) {\n // target attribute is forbidden\n assertFalse(Type.ERROR, \"rpd8s14.target\", hasAttribute(link, \"target\"));\n if (hasAttribute(link, ATTR_CLICK)) {\n // Usage of window.open is forbidden\n assertFalse(Type.ERROR, \"rpd8s14.window\", getAttributeValue(link, ATTR_CLICK).contains(\"window.open\"));\n }\n }\n }",
"public boolean getAutolink()\r\n {\r\n return (m_autolink);\r\n }",
"private boolean m14041a() {\n return this.f12187c.startsWith(\"https://\");\n }"
] |
[
"0.63333875",
"0.62809014",
"0.62700933",
"0.6244991",
"0.6206479",
"0.6170816",
"0.61578166",
"0.6146063",
"0.60940534",
"0.6049863",
"0.60012645",
"0.59490436",
"0.5879103",
"0.57736003",
"0.57646686",
"0.5760345",
"0.57310337",
"0.57038623",
"0.5659254",
"0.56362665",
"0.562606",
"0.5604785",
"0.55987847",
"0.55966586",
"0.5578884",
"0.5565002",
"0.55547476",
"0.5504102",
"0.5501972",
"0.5492756",
"0.54864126",
"0.5480887",
"0.5480887",
"0.5480887",
"0.5480887",
"0.5480887",
"0.5470214",
"0.5437017",
"0.54320306",
"0.54318875",
"0.541888",
"0.5409302",
"0.5403219",
"0.54027903",
"0.54018193",
"0.5401508",
"0.54006004",
"0.5399113",
"0.5395034",
"0.53937614",
"0.53916556",
"0.5388367",
"0.5378256",
"0.53688264",
"0.5347055",
"0.5337293",
"0.5336701",
"0.5322823",
"0.53171474",
"0.53156954",
"0.53105396",
"0.5295277",
"0.5292006",
"0.5290984",
"0.5283737",
"0.5274057",
"0.52736187",
"0.52650404",
"0.52598196",
"0.5253934",
"0.5248489",
"0.52447826",
"0.52433306",
"0.52430034",
"0.5242723",
"0.5241173",
"0.5236912",
"0.5228367",
"0.5226158",
"0.522362",
"0.522362",
"0.522362",
"0.52212477",
"0.5219324",
"0.521518",
"0.52080643",
"0.52077216",
"0.5203971",
"0.52033526",
"0.51867425",
"0.5175509",
"0.5175509",
"0.5175509",
"0.5175509",
"0.51717293",
"0.51717293",
"0.5171246",
"0.5169845",
"0.51624584",
"0.5159501"
] |
0.58512443
|
13
|
Verifica se o corpo do documento NCL possui algum link.
|
public boolean hasLink() {
return !links.isEmpty();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private boolean hasLinkToRol(Entidadrol entidadrol) {\n\t\tif(entidadrol.getRolid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasLinkAttached()\n throws OculusException;",
"private boolean hasLinkToEntidad(Entidadrol entidadrol) {\n\t\tif(entidadrol.getEntidadid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean hasIndexLink()\r\n \t{\r\n \t\treturn xPathQuery(XPath.INDEX_LINK.query).size() > 0;\r\n \t}",
"public void verifyCommunitiesLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Collaboration Plans\",GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plans\");\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, \"Collaboration Plans Link\", \"LinkText\");\r\n \tUIActions.waitForLinkText(linkText,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}",
"final void checkLink(String link)\r\n {\r\n URL doc; // URL link\r\n\tDataInputStream dis=null;\r\n\tint i;\r\n\tboolean qualifiedLink=false;\r\n\tif(link.startsWith(\"#\")) // Skip the link if it's just an offset in this document\r\n\t return;\r\n if((i=link.indexOf(\"#\"))!=-1)\r\n\t{\r\n\t String substr=link.substring(0,i);\r\n\t link=substr;\r\n\t}\r\n\tif(app.checkAlreadyFound(link))\r\n\t return;\r\n // Ignore not - HTML links and start page\r\n\tif( (link.startsWith(\"mailto:\")) || (link.startsWith(\"wais:\")) ||\r\n\t (link.startsWith(\"gopher:\")) || (link.startsWith(\"newsrc:\")) ||\r\n\t\t(link.startsWith(\"ftp:\")) || (link.startsWith(\"nntp:\")) ||\r\n\t\t(link.startsWith(\"telnet:\")) || (link.startsWith(\"news:\")) ||\r\n\t\t(link.equalsIgnoreCase(app.indexName)) || link.equalsIgnoreCase(\"index.html\") ||\r\n\t\t(link.equalsIgnoreCase(\"index.htm\")))\r\n return;\r\n // Check that it is not out side link. (Eg, www.RGP-Javaline.com)\r\n\tif(link.indexOf(\"http:\")!=-1)\r\n\t{\r\n\t String pageName;\r\n\t if(app.server==null)\r\n\t pageName=\"http://www.\"+hostName;\r\n else pageName=app.server;\r\n\t // Allow for local host being displayed as an IP Address rather than host name.\r\n if(proxyDetected && app.IPAddress!=null)\r\n\t pageName=\"http://\"+app.IPAddress;\r\n // This is a fully qualified link. Eg, \" http://www.allsoft-india.com/index.htm\"\r\n\t qualifiedLink=true;\r\n\t // If the link doesn't contain the local host name or IPAddress then\r\n\t // it's an external link. So, ignore it.\r\n\t if(link.indexOf(pageName)==-1)\r\n\t return;\r\n\t}\r\n\t// Check that it's a HTML Page.\r\n\tif( link.indexOf(\".htm\")==-1 && link.indexOf(\".HTM\")==-1 &&\r\n\t link.indexOf(\".txt\")==-1 && link.indexOf(\".TXT\")==-1 &&\r\n\t\tlink.indexOf(\".phtml\")==-1 && link.indexOf(\".PHTML\")==-1 )\r\n return ;\r\n app.incrementPages(link); // valid link - add it to the array of visited links. \r\n\t// Follow link and read it's contents.\r\n\ttry\r\n\t{\r\n\t if(app.server==null)\r\n\t doc=new URL(\"http://www.\"+hostName+\"/\"+link);\r\n else\r\n\t {\r\n\t if(link.startsWith(\"/\"))\r\n\t\t{\r\n \t\t // Remove the \"/\" from the link as the server name has a terminating \"/\" \r\n String temp=link.substring(1,link.length());\r\n\t\t link=temp;\r\n\t\t}\r\n\t\tdoc=new URL(app.server+link);\r\n\t }\r\n \t // Link may be absolute, Eg, www.allsoft-india.com/contus.html\r\n\t if(qualifiedLink)\r\n\t doc=new URL(link);\r\n // If a proxy server/firewall has been detected then use the IPAddress (if supplied)\r\n\t // of the originating server rather than the host name.\r\n\t if(proxyDetected && app.IPAddress!=null)\r\n\t doc=new URL(\"http://\"+app.IPAddress+\"/\"+link);\r\n dis=new DataInputStream(doc.openStream());\r\n\t searchPage(dis,link);\r\n\t}\r\n catch(IOException e){}\r\n }",
"public boolean isLink() {\n return linkFlag == LF_LINK;\n }",
"boolean hasAccountLink();",
"public boolean isLink(String str) { return link_to_line.keySet().contains(str); }",
"boolean hasCustomerClientLink();",
"public boolean isLink(String label)\n {\n return true;\n }",
"@Override\n public boolean isStrongFormSynonymous(String link1, String link2){\n if(link1 == null || link2 == null) {\n return false;\n }\n\n Set<String> synonyms1 = new HashSet<>();\n Set<String> synonyms2 = new HashSet<>();\n\n synonyms1.addAll(linker.getUris(link1));\n synonyms2.addAll(linker.getUris(link2));\n\n // remove empty strings to avoid false positives\n synonyms1.remove(\"\");\n synonyms2.remove(\"\");\n\n for(String s : linker.getUris(link2)){\n if(synonyms1.contains(s)) return true;\n }\n for(String s : linker.getUris(link1)){\n if(synonyms2.contains(s)) return true;\n }\n\n return false;\n }",
"Link getIsReuseOf();",
"boolean hasHadithReferenceNo();",
"static boolean isValidLinkTarget(LWLink link, LWComponent linkSource, LWComponent linkTarget)\n {\n if (linkTarget == linkSource && linkSource != null) {\n if (DEBUG.LINK) reject(linkTarget, \"source == target\");\n return false;\n }\n // TODO: allow loop-back link if it's a CURVED link...\n\n // don't allow links between parents & children\n if (linkSource != null) {\n if (linkTarget.getParent() == linkSource ||\n linkSource.getParent() == linkTarget) {\n if (DEBUG.LINK) reject(linkTarget, \"parent-child link\");\n return false;\n }\n if (linkTarget != null) {\n if (!linkSource.canLinkTo(linkTarget)) {\n if (DEBUG.LINK) reject(linkTarget, \"source denies target; src=\" + linkSource);\n return false;\n }\n }\n }\n\n if (link != null && linkTarget == link.getParent()) {\n // if a link is inside something, don't link to it (?)\n if (DEBUG.LINK) reject(linkTarget, \"target is parent of the new link\");\n return false;\n }\n\n if (link != null && linkTarget instanceof LWLink && linkTarget.isConnectedTo(link)) {\n // Don't permit a link to link back to a link that's connected to it.\n if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n return false;\n }\n\n\n// New code, tho we don't actually need these constraints:\n// if (linkTarget instanceof LWLink) {\n// if (DEBUG.LINK) outln(\"target is link: \" + linkTarget);\n// if (linkTarget.isConnectedTo(linkSource)) {\n// if (DEBUG.LINK) reject(linkTarget, \"target link-to-link loop\");\n// return false;\n// } else if (link != null && linkTarget.isConnectedTo(link)) {\n// if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n// return false;\n// }\n// }\n \n// if (linkSource instanceof LWLink) {\n// if (linkSource.isConnectedTo(linkTarget)) {\n// if (DEBUG.LINK) reject(linkTarget, \"source link-to-link loop; src=\" + linkSource);\n// return false;\n// }// else if (link != null\n// }\n\n\n return true;\n\n\n// The old code: \n// boolean ok = true;\n// if (linkTarget instanceof LWLink) {\n// LWLink target = (LWLink) linkTarget;\n// ok &= (target.getHead() != linkSource &&\n// target.getTail() != linkSource);\n// }\n// if (linkSource instanceof LWLink) {\n// LWLink source = (LWLink) linkSource;\n// ok &= (source.getHead() != linkTarget &&\n// source.getTail() != linkTarget);\n// }\n// return ok;\n }",
"boolean hasReference();",
"boolean isInverseFunctionalLinkProperty();",
"public static void verifyLink(String urlLink) {\n //Sometimes we may face exception \"java.net.MalformedURLException\". Keep the code in try catch block to continue the broken link analysis\n try {\n //Use URL Class - Create object of the URL Class and pass the urlLink as parameter\n URL link = new URL(urlLink);\n // Create a connection using URL object (i.e., link)\n HttpURLConnection httpConn =(HttpURLConnection)link.openConnection();\n //Set the timeout for 2 seconds\n httpConn.setConnectTimeout(2000);\n //connect using connect method\n httpConn.connect();\n //use getResponseCode() to get the response code.\n if(httpConn.getResponseCode()== 200) {\n System.out.println(urlLink+\" - \"+httpConn.getResponseCode());\n }\n if(httpConn.getResponseCode()== 404) {\n System.out.println(urlLink+\" - \"+httpConn.getResponseCode());\n }\n }\n //getResponseCode method returns = IOException - if an error occurred connecting to the server.\n catch (Exception e) {\n //e.printStackTrace();\n }\n \n }",
"private boolean existeMatrizReferencial(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_ref_conf \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}",
"public void verifyLearnMoreLink() {\n learnMoreLink.assertState().enabled();\n learnMoreLink.assertContains().text(\"Learn more about registering for an account.\");\n }",
"public final boolean isHyperlink() {\n return hyperlink != null;\n }",
"private boolean isCanLink(String[] strA1, String[] strA2) {\n\t\tboolean flag = true;\n\t\tif(strA1.length != strA2.length){\n\t\t\treturn false;\n\t\t}else {\n\t\t\tfor(int i = 0; i < strA1.length - 1; i++){\n\t\t\t\tif(!strA1[i].equals(strA2[i])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(strA1[strA1.length -1].equals(strA2[strA1.length -1])){\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}",
"boolean hasAccountLinkId();",
"private void verifyLinks(String[][] linkSelfO1O2IDs) {\n // fill expectedLinkIDs\n List expectedLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n for (int linkIdx = 0; linkIdx < linkSelfO1O2IDs.length; linkIdx++) {\n String[] linkIDs = linkSelfO1O2IDs[linkIdx];\n String linkID = linkIDs[0];\n String o1ID = linkIDs[1];\n String o2ID = linkIDs[2];\n expectedLinkIDs.add(linkID + o1ID + o2ID);\n }\n\n // fill actualLinkIDs\n List actualLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n NST linkNST = DB.getLinkNST();\n ResultSet resultSet = linkNST.selectRows(); // \"o1_id\", \"o2_id\"\n while (resultSet.next()) {\n int linkID = resultSet.getOID(1);\n int o1ID = resultSet.getOID(2);\n int o2ID = resultSet.getOID(3);\n actualLinkIDs.add(linkID + \"\" + o1ID + \"\" + o2ID);\n }\n\n // compare\n assertEquals(expectedLinkIDs.size(), actualLinkIDs.size());\n assertTrue(expectedLinkIDs.containsAll(actualLinkIDs));\n }",
"boolean hasHadithBookUrl();",
"public boolean completelink() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(completelink);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Complete link is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"USER NAME NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn flag;\r\n\t\t}",
"public abstract boolean containsLink(Integer linkId);",
"boolean isInvoiceFullyLinkedWithGR(GoodsReceipt invoice) throws ServiceException {\n boolean isfullyLinkedWithGR = false;\n List invoiceList = accGoodsReceiptobj.isInvoiceNotLinkedWithAnyGR(invoice);\n boolean isAnyGRNIsInPendingState = (boolean) invoiceList.get(2);//Flag to identify whether any of GRN created from PI are in pending state?\n if (!invoice.isIsOpenInGR() && !isAnyGRNIsInPendingState) {\n isfullyLinkedWithGR = true;\n } else {\n /*------------ Check If GR->PI then in this case PI is linked with Full GRN or not?---------*/\n if (accGoodsReceiptobj.isLinkingOfGRInPI(invoice)) {//i.e GR->PI linking is available?\n isfullyLinkedWithGR = checkGRNtoInvoiceLinkingIsFullOrPartial(invoice, true);\n }\n \n }\n return isfullyLinkedWithGR;\n }",
"private boolean getLinks() {\n return false;\n }",
"public boolean estOuvert(){\n\n return netLinkIp.isOpen();\n\n }",
"boolean isInvoicePartiallyLinkedWithGR(GoodsReceipt invoice) throws ServiceException {\n boolean isNotLinkedWithAnyGR = false;\n boolean isPartiallyLinkedWithGR = false;\n\n List invoiceList = accGoodsReceiptobj.isInvoiceNotLinkedWithAnyGR(invoice);\n isNotLinkedWithAnyGR = (boolean) invoiceList.get(0);\n isPartiallyLinkedWithGR = (boolean) invoiceList.get(1);\n /*--------- Check PI->GR linked Partially-------*/\n if (!isNotLinkedWithAnyGR && invoice.isIsOpenInGR()) {\n isPartiallyLinkedWithGR = true;\n\n } \n /**\n * Commenting below code because of no need check GR-->PI flow in\n * partially case.\n */\n// else {\n// /*------------ Check If GR->PI then in this case PI is linked wih Partial GRN or not?---------*/\n// if (accGoodsReceiptobj.isLinkingOfGRInPI(invoice)) {//i.e GR->PI linking is available?\n// isPartiallyLinkedWithGR = checkGRNtoInvoiceLinkingIsFullOrPartial(invoice, false);//isPartiallyLinkedWithGR->false means linking not like GR->PI but this will like PI->GR \n// }\n// }\n return isPartiallyLinkedWithGR;\n\n }",
"@DISPID(1611006048) //= 0x60060060. The runtime will prefer the VTID if present\n @VTID(123)\n boolean linkedExternalReferences();",
"private void checkForLink(BasicPanel panel, Box box)\n {\n if (box == null || box.getElement() == null)\n {\n return;\n }\n\n String uri = findLink(panel, box.getElement());\n\n if (uri != null)\n {\n try\n {\n linkClicked(panel, uri);\n }\n catch (Exception e)\n {\n logger.info(\"exception during loading of \" + uri, e);\n }\n }\n }",
"public boolean testRelation(Caisse c){\n boolean bool =false;\n\tfor(Caisse c1 : this.lesCaisses){\n\tif (c.equals(c1)){\n\t bool =true;\n }\n bool =false;\n\t }\n\treturn bool ;\n}",
"public static void demo_LCS(RoWordNet RoWN) throws Exception {\n Timer timer = new Timer();\n String lcs;\n\n boolean allowAllRelations = true;\n\n Literal l1 = new Literal(\"viață\");\n Literal l2 = new Literal(\"vietate\");\n String s1 = RoWN.getSynsetsFromLiteral(l1).get(5).getId();\n String s2 = RoWN.getSynsetsFromLiteral(l2).get(0).getId();\n\n Literal l3 = new Literal(\"fenomen\");\n Literal l4 = new Literal(\"proces\");\n String s3 = RoWN.getSynsetsFromLiteral(l3).get(1).getId();\n String s4 = RoWN.getSynsetsFromLiteral(l4).get(1).getId();\n\n IO.outln(\"\\n*** Searching for the LCS with all relations as the allowed relation ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s1 + \" \" + ((Synset) RoWN\n .getSynsetById(s1)).toString());\n IO.outln(\"Target synset: \" + s2 + \" \" + ((Synset) RoWN\n .getSynsetById(s2)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s1, s2, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n\n allowAllRelations = false;\n IO.outln(\"\\n*** Searching the LCS with only hypernymy as allowed edge ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s3 + \" \" + ((Synset) RoWN\n .getSynsetById(s3)).toString());\n IO.outln(\"Target synset: \" + s4 + \" \" + ((Synset) RoWN\n .getSynsetById(s4)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s3, s4, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n }",
"private boolean m14041a() {\n return this.f12187c.startsWith(\"https://\");\n }",
"public boolean hasNextLink() {\n return hasNextLink;\n }",
"boolean hasUrl();",
"boolean hasUrl();",
"boolean hasUrl();",
"boolean hasUrl();",
"boolean hasUrl();",
"@DISPID(1611006052) //= 0x60060064. The runtime will prefer the VTID if present\n @VTID(127)\n boolean linkedExternalReferencesOnlyOnPublication();",
"@Override\n\tpublic boolean isUsedInLinks() {\n\t\treturn false;\n\t}",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"protected boolean isLinkedWithEditor() {\n return modes.get(BCOConstants.F_LINK_VIEW_TO_EDITOR);\n }",
"private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }",
"public void verifyCmsLink() {\n cmsFooterLink.assertState().enabled();\n cmsFooterLink.assertContains().text(\"CMS\");\n }",
"@Test(enabled = true)\n public void checkLink() {\n System.out.println(\"We Are Now Testing 20 Test Cases On: \" + driver.getCurrentUrl());\n System.out.println(\"*****************************************************************\");\n\n String expectedLink = \"https://www.expedia.com/\";\n String actualLink = driver.getCurrentUrl();\n\n //Validate Links\n Assert.assertEquals(actualLink, expectedLink, \"Test Failed, Link Does Not Match\");\n\n }",
"boolean hasDidUri();",
"public boolean isSetLinkman() {\n return this.linkman != null;\n }",
"public boolean hasLink(L link) {\n return links.contains(link);\n }",
"public static int verifyLink(String urlLink) {\n try {\n\t\t\t //Use URL Class\n\t\t\t URL link = new URL(urlLink);\n\n\t\t\t // Create a connection using URL object (i.e., link)\n\t\t\t HttpURLConnection httpConn =(HttpURLConnection)link.openConnection();\n\n\t\t\t //Set the timeout for 2 seconds\n\t\t\t httpConn.setConnectTimeout(2000);\n\n\t\t\t //connect using connect method\n\t\t\t httpConn.connect();\n\n\t\t\t //use getResponseCode() to get the response code. \n\t\t\t if(httpConn.getResponseCode()== 200) { \n\t\t\t\t //System.out.println(urlLink+\" - \"+httpConn.getResponseMessage());\n\t\t\t }\n\n\t\t\t if(httpConn.getResponseCode()== 404) {\n\t\t\t\t System.out.println(urlLink+\" - \"+httpConn.getResponseMessage());\n\t\t\t }\n\t\t\t \n\t\t\t return httpConn.getResponseCode();\n\n\t\t //getResponseCode method returns = IOException - if an error occurred connecting to the server. \n } catch (Exception e) {\n\t\t //e.printStackTrace();\n\t\t }\n\t\treturn 0;\n }",
"@Requires(\"c != null\")\n private boolean pathIsTooDivergentFromReference( final Cigar c ) {\n for( final CigarElement ce : c.getCigarElements() ) {\n if( ce.getOperator().equals(CigarOperator.N) ) {\n return true;\n }\n }\n return false;\n }",
"boolean hasProofDocument();",
"boolean hasProofDocument();",
"@Test\n\tpublic void testEstablishLink() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"1\");\n\t\tuser3.setID(\"2\");\n\t\tsn.addUser(user1);\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\t\n\t\ttry {\n\t\t\tsn.establishLink(null, null, null, status);\n\t\t} catch (NullPointerException np) {\n\t\t\tSystem.out.println(\"EXPECTED(1/4): Null arguments\");\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: should never be thrown\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tassertFalse(\"IDs are identical\", sn.establishLink(\"1\", \"1\", early, status));\n\t\t} catch (UninitializedObjectException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\"EXPECTED(2/4): No loops allowed (same ID)\");\n\t\t}\n\t\ttry {\n\t\t\tassertFalse(\"One ID isnt a user\", sn.establishLink(\"1\", \"3\", early, status));\n\t\t\tassertTrue(\"Distinct valid users\", sn.establishLink(\"1\", \"2\", early, status));\n\t\t\tassertFalse(\"Link is already active\", sn.establishLink(\"1\", \"2\", mid, status));\n\t\t\tsn.tearDownLink(\"1\", \"2\", mid, status);\n\t\t\tassertTrue(\"Link is currently torn down\", sn.establishLink(\"1\", \"2\", late, status));\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: shouldnt be thrown\");\n\t\t}\n\t}",
"@Test\n public void testLink() {\n try {\n Message email = emailUtils.getMessagesBySubject(\"You've received a document via HelloSign\", true, 5)[0];\n String link = emailUtils.getUrlsFromMessage(email, Data.mainUrl + \"/t\").get(0);\n\n driver.get(link);\n\n //TODO: continue testing\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"boolean hasExplicitLac();",
"boolean hasHadithUrl();",
"public abstract boolean isUsing(Long graphNode);",
"@Test\n\tpublic void demoqaLinkIsClickable() {\n\t\tassertTrue(ServicesLogic.demoqaLinkIsClickable());\n\t}",
"public void verifyRegisterForNPILink() {\n npiLink.assertState().enabled();\n npiLink.assertContains().text(\"register for a National Provider Identifier (NPI)\");\n }",
"public static boolean isThisACollection(File linkAsFile) {\n\n if (linkAsFile == null) {\n return false;\n }\n if (! linkAsFile.exists()) {\n return false;\n }\n if (! linkAsFile.isDirectory()) {\n return false;\n }\n if (linkAsFile.isHidden()) {\n return false;\n }\n String linkToLower = linkAsFile.getName().toLowerCase();\n if (linkToLower.contains(\"archive\")\n || linkToLower.contains(\"backup\")\n || linkToLower.equals(\"deploy\")\n || linkToLower.equals(\"dist\")\n || linkToLower.equals(\"icons\")\n || linkToLower.equals(\"jars\")) {\n return false;\n }\n String fileName = linkAsFile.getName();\n if (fileName.equalsIgnoreCase(\"Library\")\n || fileName.equalsIgnoreCase(\"Music\")\n || fileName.equalsIgnoreCase(\"Pictures\")\n || fileName.equalsIgnoreCase(\"PSPub Omni Pack\")\n || fileName.endsWith(\".app\")) {\n return false;\n }\n\n File readMeFile = new File(linkAsFile, NoteIO.README_FILE_NAME);\n if ((! readMeFile.exists()) || (! readMeFile.canRead())) {\n return false;\n }\n\n String line = \"\";\n boolean notenikLineFound = false;\n try {\n FileReader fileReader = new FileReader(readMeFile);\n BufferedReader reader = new BufferedReader(fileReader);\n line = reader.readLine();\n while (line != null && (! notenikLineFound)) {\n int j = line.indexOf(NoteIO.README_LINE_1);\n notenikLineFound = (j >= 0);\n line = reader.readLine();\n }\n } catch(IOException e) {\n // Ignore\n }\n if (! notenikLineFound) {\n return false;\n }\n\n return true;\n }",
"private static boolean pathIsTooDivergentFromReference(final Cigar c) {\n return c.getCigarElements().stream().anyMatch(ce -> ce.getOperator() == CigarOperator.N);\n }",
"boolean hasCustomerManagerLink();",
"@Override\n\tpublic boolean canLink(Login object,\n\t String link,\n\t LinksAction action) {\n\t\treturn false;\n\t}",
"boolean hasLte();",
"boolean hasRef();",
"boolean hasUri();",
"public abstract boolean isConnectedInDirection(N n1, N n2);",
"public void generateEnquireLink();",
"public static boolean connected(Graph grafo) {\r\n\t\tint numVertices = grafo.getVertexNumber();\r\n\t\tSet<Vertice> verticesVisitados = new HashSet<Vertice>(); // sem repeticoes\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tverticesVisitados.add(aresta.getV1());\r\n\t\t\tverticesVisitados.add(aresta.getV2());\r\n\t\t}\r\n\r\n\t\treturn numVertices == verticesVisitados.size();\r\n\t}",
"public void verifyCollaborationTemplateLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Domain Plan Editor\",GlobalVariables.configuration.getAttrSearchList(), \"Domain Plan Editor 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, \"Collaboration Templates Link\", \"LinkText\");\r\n\t\tUIActions.waitForLinkText(linkText,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}",
"@Test(priority = 7)\n @Parameters(\"browser\")\n public void TC07_VERIFY_LINK_TAOTK(String browser) throws IOException {\n String excel_Link_TaoTK = null;\n excel_Link_TaoTK = global.Read_Data_From_Excel(excelPath,\"ELEMENTS\",6,2);\n if(excel_Link_TaoTK == null){\n System.out.println(\"ERROR - Cell or Row No. is wrong.\");\n exTest.log(LogStatus.ERROR, \"ERROR - Cell or Row No. is wrong.\" );\n }\n // Locate element by Xpath\n WebElement ele_Link_TaoTK = null;\n ele_Link_TaoTK = global.Find_Element_By_XPath(driver,excel_Link_TaoTK);\n if(ele_Link_TaoTK == null){\n exTest.log(LogStatus.FAIL,\"::[\" + browser + \"]:: TC07 - Link Tao Tai Khoan is not displayed.\");\n } else {\n exTest.log(LogStatus.PASS,\"::[\" + browser + \"]:: TC07 - Link Tao Tai Khoan is displayed.\");\n }\n // Get text from Element.\n String textTaoTK = \"Tạo tài khoản\";\n String textGetFromEle_LinkTaoTK = ele_Link_TaoTK.getText();\n System.out.println(\"DEBUG --- \" + textGetFromEle_LinkTaoTK);\n if(textGetFromEle_LinkTaoTK != null && textGetFromEle_LinkTaoTK.equalsIgnoreCase(textTaoTK)){\n exTest.log(LogStatus.PASS,\"::[\" + browser + \"]:: TC07.1 - Link Tao Tai Khoan is correct.\");\n } else {\n exTest.log(LogStatus.FAIL,\"::[\" + browser + \"]:: TC07.1 - Link Tao Tai Khoan is not correct.\");\n }\n global.Wait_For_Page_Loading(3);\n }",
"private boolean validateVkLink(@NotNull String link) {\n logger.debug(\"Validating link: {}\", link);\n if (!isVkLink(link)) {\n userID = link;\n }\n\n logger.debug(\"Trying to check existence of vk user: {}\", VK_PREFIX + userID);\n try {\n URL request = new URL(VK_PREFIX + userID);\n HttpURLConnection connection = (HttpURLConnection) request.openConnection();\n\n if (connection.getResponseCode() == 404) {\n logger.debug(\"This user doesn't exist\");\n return false;\n }\n } catch (Exception e) {\n logger.debug(Arrays.toString(e.getStackTrace()));\n return false;\n }\n\n logger.debug(\"Link confirmed\");\n return true;\n }",
"boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}",
"public boolean containsRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public boolean linksTransparent() { return link_trans_cbmi.isSelected(); }",
"public void testLinkPersists() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://google.com/fwd.txt This is a test\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link;\n\t\ttry {\n\t\t\tlh.putLink(msg);\n\t\t\tlink = dao.getLink(\"http://google.com/fwd.txt\");\n\t\t\tassert(link.getCount() == 1);\n\t\t\tif (link.getCount() != 1) {\n\t\t\t\tfail(\"Link count meant to be 1 but is:\" + link.getCount());\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\tfail(\"I'm bad at logic\");\n\t}",
"public String verifyLinkPresent(String object, String data) {\n\t\tlogger.debug(\"Entered into verifyLinkPresent()\");\n\t\ttry {\n\t\t\tboolean linkPresent = false;\n\t\t\tWebElement element = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tlinkPresent = element.isDisplayed();\n\t\t\tif (linkPresent == true) {\n\t\t\t\tlogger.debug(\"Link present..\" + linkPresent);\n\t\t\t\treturn Constants.KEYWORD_PASS + \" -- Link present\";\n\t\t\t}\n\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- No Link present -- \";\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n\t\t}\n\t}",
"private boolean isVkLink(@NotNull String link) {\n logger.debug(\"Is link {} a vk link?\", link);\n if (link.startsWith(VK_PREFIX)) {\n logger.debug(\"Link started with {} and it's correct\", VK_PREFIX);\n userID = link.replaceFirst(\"^\" + VK_PREFIX, \"\");\n return true;\n }\n\n if (link.startsWith(VK_PREFIX_NO_PROTOCOL)) {\n logger.debug(\"Link started with {} and it's correct\", VK_PREFIX_NO_PROTOCOL);\n userID = link.replaceFirst(\"^\" + VK_PREFIX_NO_PROTOCOL, \"\");\n return true;\n }\n\n logger.debug(\"Link isn't a vk link\");\n return false;\n }",
"boolean hasFkocs();",
"boolean isInvoiceNotLinkedWithAnyGR(GoodsReceipt invoice) throws ServiceException {\n boolean isNotLinkedWithAnyGR = true;\n\n List invoiceList = accGoodsReceiptobj.isInvoiceNotLinkedWithAnyGR(invoice);//PI->GR\n isNotLinkedWithAnyGR = (boolean) invoiceList.get(0);\n if (isNotLinkedWithAnyGR) {\n if (accGoodsReceiptobj.isLinkingOfGRInPI(invoice)) {//i.e GR->PI linking is available?\n isNotLinkedWithAnyGR=false; \n }\n }\n return isNotLinkedWithAnyGR;\n }",
"boolean isFunctionalLinkProperty();",
"Optional<URI> getCompensateURI() {\n return getCompensatorLink(\"compensate\");\n }",
"private boolean isConnectable (RoadInterface newObj) {\n boolean result = false;\n if (newObj instanceof Intersection) {\n result = true;\n }\n return (result);\n }",
"@Test\r\n\tpublic void testScanePage_malformedLink() {\n\t}",
"public boolean hasSymbolicLinksEnabled(SrvSession sess, TreeConnection tree) {\n\n // Access the associated database interface to check if it supports symbolic links\n \n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n if ( dbCtx.getDBInterface().supportsFeature( DBInterface.FeatureSymLinks)) {\n \n // Database interface supports symbolic links\n\n return true;\n }\n \n // Symbolic links not supported\n \n return false;\n }",
"public boolean onLinkClick() {\n for (int t = 0; t < data.size(); t++) {\n if (data.get(t).getActionLink().isClicked()) {\n Cuenta ref = data.get(t);\n List<Cuenta> newData = new LinkedList<Cuenta>();\n List<Cuenta> createQuery = DAO.createQuery(Cuenta.class, null);\n if (ref.getRef() == null || ref.getRef().equals(\"\")) {\n newData.add(ref);\n } else {\n String[] split = ref.getRef().split(\",\");\n for (String sp : split) {\n for (Cuenta c : createQuery) {\n if (c.getIdCuenta().toString().equals(sp)) {\n newData.add(c);\n }\n }\n }\n }\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n newContext();\n setTitle(ref.getDescripcion());\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"data\", new Variable(\"data\", newData, List.class), true);\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n setRedirect(TablePage.class);\n return true;\n }\n }\n return true;\n }",
"public void validateRpd8s1()\n {\n List<String> forbiddenLinkTexts = Arrays.asList(messages.getString(\"rpd8s1.forbiddenLinkTexts\").split(\",\"));\n\n for (Node link : getElements(ELEM_LINK)) {\n for (Node linkChild : new NodeListIterable(link.getChildNodes())) {\n if (linkChild.getNodeType() == Node.TEXT_NODE) {\n for (String forbiddenLinkText : forbiddenLinkTexts) {\n assertFalse(Type.ERROR, \"rpd8s1.link\", StringUtils.containsIgnoreCase(linkChild\n .getTextContent(), forbiddenLinkText));\n }\n }\n }\n }\n }",
"public boolean linkLabels() { return link_labels_cb.isSelected(); }",
"private boolean hasLinkToProvincia(Ciudad ciudad) {\n\t\tif(ciudad.getProvinciaid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public interface Link<C> {\n \n /**\n * @param context an arbitrary context.\n * @return <code>true</code> if this instance accepts the given context.\n */\n public boolean accepts(C context);\n }",
"public static void main(String[] args) {\n graph.addEdge(\"Mumbai\",\"Warangal\");\n graph.addEdge(\"Warangal\",\"Pennsylvania\");\n graph.addEdge(\"Pennsylvania\",\"California\");\n //graph.addEdge(\"Montevideo\",\"Jameka\");\n\n\n String sourceNode = \"Pennsylvania\";\n\n if(graph.isGraphConnected(sourceNode)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"public boolean containsRelations(XDI3Segment arcXri);",
"public static boolean validateRef(String ref)\n {\n final Pattern URL = Pattern.compile(\"https?:\\\\/\\\\/(www\\\\.)?[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\\\.[a-z]{2,6}\\\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)\");\n Matcher matcher = URL.matcher(ref);\n if(!matcher.matches())\n return false;\n else\n return true;\n }",
"CharNode getLink();",
"public boolean hasNext() {\r\n\r\n\t\treturn counter < links.size();\r\n\t}",
"public Corso(String codice, String nome, String docente, String descrizione, String link) {\n this.codice = codice;\n this.nome = nome;\n this.docente = docente;\n this.descrizione = descrizione;\n this.link = link;\n }"
] |
[
"0.58655125",
"0.5862014",
"0.5816366",
"0.5707435",
"0.56812954",
"0.5680693",
"0.5588729",
"0.55777687",
"0.5576519",
"0.55273193",
"0.54942805",
"0.5480753",
"0.5455026",
"0.54243153",
"0.5419033",
"0.54158515",
"0.54040194",
"0.5352065",
"0.53402627",
"0.53299606",
"0.5328637",
"0.5316414",
"0.531567",
"0.52975243",
"0.52961695",
"0.52935433",
"0.5283497",
"0.5271489",
"0.52587795",
"0.5254997",
"0.5250098",
"0.52342826",
"0.5226009",
"0.5222729",
"0.5222468",
"0.52151376",
"0.5204386",
"0.5187278",
"0.5187278",
"0.5187278",
"0.5187278",
"0.5187278",
"0.5186027",
"0.5174139",
"0.5140252",
"0.5135236",
"0.5132146",
"0.51261365",
"0.5123993",
"0.51184887",
"0.5117028",
"0.5116025",
"0.5107191",
"0.5106593",
"0.5105075",
"0.5105075",
"0.5103496",
"0.51014376",
"0.50959",
"0.50939304",
"0.5087196",
"0.50864017",
"0.50658935",
"0.50589734",
"0.5051678",
"0.5041666",
"0.5039819",
"0.5037853",
"0.5037279",
"0.50357455",
"0.50350195",
"0.50340116",
"0.5024068",
"0.5019106",
"0.5017232",
"0.5007229",
"0.50064147",
"0.4994411",
"0.4982102",
"0.49777395",
"0.4972607",
"0.49673122",
"0.4966667",
"0.49663556",
"0.4962322",
"0.4949163",
"0.4947608",
"0.49444115",
"0.49427325",
"0.49416515",
"0.49311054",
"0.49308488",
"0.49306643",
"0.4917016",
"0.49141702",
"0.49122173",
"0.49107864",
"0.49031508",
"0.48972136",
"0.4890096"
] |
0.5538846
|
9
|
Retorna os links do corpo do documento NCL.
|
public Set<L> getLinks() {
return links;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<String> getLinks();",
"protected java.util.Vector _getLinks() {\n\tjava.util.Vector links = new java.util.Vector();\n\tlinks.addElement(getPeopleLink());\n\tlinks.addElement(getChangeLogDetailsesLink());\n\treturn links;\n}",
"List<ProductLink> links();",
"List<Link> getLinks();",
"@Override\n\tpublic ArrayList<String> getLinks() {\n\t\treturn this.description.getLinks();\n\t}",
"public List<TparselinksEntity> getAllLinks();",
"protected java.util.Vector _getLinks() {\n\t\tjava.util.Vector links = new java.util.Vector();\n\t\tlinks.add(getLeaseTaskStartsLink());\n\t\tlinks.add(getLeaseRulesLink());\n\t\treturn links;\n\t}",
"org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto getLinks(int index);",
"public Collection<Map<String, String>> getLinks();",
"public List<String> linkTexts()\n\t{\n\t\t\n\t\tList<String> links=new ArrayList<String>();\n\t\tlinks.add(linkString);\n\t\tlinks.add(\"Facebook.com\");\n\t\tlinks.add(\"google.com;\");\n\t\tlinks.add(\"gmail.com\");\n\t\tlinks.add(\"shine.com\");\n\t\tlinks.add(\"nukari.com\");\n\t\t\n\t\t// Like the above we have to add number of link text are passed to achieve the DataDriven approach through BBD \n\t\t\t\n\t\treturn links;\n\t\t\n\t}",
"Set<Link> extractLinks(CrawlDoc doc, ParseState parseState)\n throws IOException;",
"@NonNull List<SaldoLink> getLinks() {\n return links;\n }",
"public List<String> getLinks() {\r\n\t\treturn this.links;\r\n\t}",
"public Set<String> getLinks() throws SearchResultException;",
"java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> \n getLinksList();",
"public Set<String> getLinks() {\n return links;\n }",
"public List<Link> getLinks()\n {\n return links;\n }",
"private List<String> getOfferPagesLinks(Document document) {\n return document.select(\"div[class=product-image loaded] > a[href]\").eachAttr(\"abs:href\");\n }",
"public List<URI> getLinks() {\n return links; // this is already unmodifiable\n }",
"public AstNode[] links() {\n\t\treturn new AstNode[]{loopLink};\n\t}",
"public List<Link> links() {\n\t\t\treturn new NonNullList<>(_links);\n\t\t}",
"public Relationship[] getNLM_Rels(int index) {\n if (index % 2 != 0) {\n index -= 1;\n }\n index = index / 2;\n\n Concept concept_1 = (Concept) clusters[index][1];\n Concept concept_2 = (Concept) clusters[index][2];\n\n Relationship[] rels = concept_1.getRelationships();\n\n Vector v = new Vector();\n for (int i = 0; i < rels.length; i++) {\n if (rels[i].getSource().toString().startsWith(\"NLM\") &&\n ( (concept_2 == null) || (rels[i].getRelatedConcept() == concept_2))) {\n v.add(rels[i]);\n }\n }\n\n return (Relationship[]) v.toArray(new Relationship[0]);\n }",
"IIndexLinkage[] getLinkages();",
"private boolean getLinks() {\n return false;\n }",
"public List<ResourceLink> links() {\n return links;\n }",
"public int getLinks() {\n\t\treturn links;\n\t}",
"public List<Link> links() {\n return this.links;\n }",
"public List<Link> getLinks()\t{return Collections.unmodifiableList(allLinks);}",
"public StringBuilder getLinks(Elements imgs) {\n\t\tStringBuilder links = new StringBuilder();\n\t\tString prefix = \"\";\n\t\tfor (Element item : imgs) {\n\t\t\tlinks.append(prefix);\n\t\t\tprefix = \"|\";\n\t\t\tlinks.append(item.attr(\"href\"));\n }\n\t\treturn links;\n\t}",
"@java.lang.Override\n public org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto getLinks(int index) {\n return instance.getLinks(index);\n }",
"public ObservableList<Connect> getLinks() {\n return this.links;\n }",
"String getLink();",
"public String getLink();",
"public IHyperLinkColl getAttachedLinks()\n throws OculusException;",
"Link getL();",
"@Override\n\tpublic void rotiereNachLinks() {\n\n\t}",
"@java.lang.Override\n public org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto getLinks(int index) {\n return links_.get(index);\n }",
"public List<Link> getLinks() {\n\t\treturn _links;\n\t}",
"CharNode getLink();",
"public void getLinks() {\n\n var client = HttpClient.newBuilder()\n .followRedirects(HttpClient.Redirect.ALWAYS)\n .build();\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(URL_PREFIX))\n .build();\n client.sendAsync(request, HttpResponse.BodyHandlers.ofLines())\n .thenApply(HttpResponse::body)\n .thenApply(this::processLines)\n .thenApply(versions -> tasks(versions))\n .join();\n }",
"public ArrayList<Link> getLinks() {\n\t\treturn getPageObjects(Link.class);\n\t}",
"public Set<Link> links() {\n return links;\n }",
"public List<Link> getLinks() {\n\t return Collections.unmodifiableList(links);\n\t}",
"@RequestMapping(path = \"/controversialLinks\", method = RequestMethod.GET)\n public ArrayList<Link> getControversialYadas() {\n\n ArrayList<Link> allLinks = (ArrayList<Link>) links.findAll();\n generateControveryScore(allLinks);\n\n return links.findAllByOrderByControversyScoreDesc();\n }",
"private String linkString()\n {\n Iterator<DSAGraphNode<E>> iter = links.iterator();\n String outputString = \"\";\n DSAGraphNode<E> node = null;\n while (iter.hasNext())\n {\n node = iter.next();\n outputString = (outputString + node.getLabel() + \", \");\n }\n return outputString;\n }",
"public void getPhotoLinks() {\n try {\n image = Jsoup.connect(link + \"/+images/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = image.getElementsByClass(\"image-list-item\");\n photosLinks = new String[elements.size()];\n for (int i = 0; i < elements.size(); i++) {\n String element = elements.get(i).attr(\"href\");\n photosLinks[i] = element;\n }\n }",
"public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }",
"public String[] listRelations();",
"public Collection<Reference> getReferences();",
"public IHyperLinkColl getAttachedLinks(IDataSet args)\n throws OculusException;",
"List<CyNode> getNodeList();",
"private void montaListaDeItensDeLinks(org.jsoup.nodes.Document doc, JSONArray description) {\n Elements links = doc.select(\"div\").select(\"ul\").select(\"li\").select(\"a\");\n JSONArray listalinks = new JSONArray();\n for (Element link : links) {\n\n listalinks.put(link.attr(\"abs:href\"));\n }\n\n // Após a lista de links montada ela é incluída dentro de um nó links do json de\n // saída\n JSONObject ljson = new JSONObject();\n ljson.put(\"type\", \"links\");\n ljson.put(\"content\", listalinks);\n\n // O novo item (ljson) está pronto e é incluindo como um item da lista\n // description\n description.put(ljson);\n }",
"public static List<String> extract(Document document) {\n Elements links = document.select(\"a[href]\");\n Elements media = document.select(\"[src]\");\n Elements imports = document.select(\"link[href]\");\n\n List<String> allLinks = new ArrayList<>();\n populateLinks(allLinks, media, \"abs:src\");\n populateLinks(allLinks, imports, \"abs:href\");\n populateLinks(allLinks, links, \"abs:href\");\n return allLinks;\n }",
"List<? extends Link> getLinks();",
"public void addAllOnVisibleLinks() {\n // Check for a valid render context and create the new set\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n Set<Bundle> set = new HashSet<Bundle>();\n // Go through visible links and find the related bundles\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator();\n while (it.hasNext()) {\n String graphedgeref = it.next();\n Iterator<Bundle> itb = digraph.linkRefIterator(graphedgeref);\n while (itb.hasNext()) set.add(itb.next());\n }\n // Add the no mapping set and push it to the RTParent\n set.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(set));\n }",
"public Cluster[] getReferences () {\n return references;\n }",
"public IHyperLinkColl getAttachedLinks(boolean edit)\n throws OculusException;",
"public IHyperLinkColl getAttachedLinks(IDataSet args, boolean edit)\n throws OculusException;",
"private ArrayList<Integer> getPageLinks() {\n int numberOfPages = sqlData.getNumberOfPages();\n\n int n = (pageNumInt / numberOfPages);\n Integer startPage = n * numberOfPages;\n\n ArrayList<Integer> pageLinks = new ArrayList<Integer>();\n\n // iterate and add to the array\n for(int i=0; i < numberOfPages; i++) {\n pageLinks.add(++startPage); \n }\n\n return pageLinks;\n \n }",
"@java.lang.Override\n public int getLinksCount() {\n return links_.size();\n }",
"void updateLinks() {\n\t\tdouble x1, x2, y1, y2;\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tPNode node1 = links.get(i).getNode1();\n\t\t\tPNode node2 = links.get(i).getNode2();\n\t\t\tx1 = node1.getFullBoundsReference().getCenter2D().getX() + node1.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty1 = node1.getFullBoundsReference().getCenter2D().getY() + node1.getParent().getFullBounds().getOrigin().getY();\n\t\t\tx2 = node2.getFullBoundsReference().getCenter2D().getX() + node2.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty2 = node2.getFullBoundsReference().getCenter2D().getY() + node2.getParent().getFullBounds().getOrigin().getY();\n\t\t\t\n\t\t\t/*\n\t\t\tLine2D line = new Line2D.Double(x1,y1,x2,y2);\n\t\t\tlinks.get(i).getPPath().setPathTo(line);\n */\n\t\t\tsetPolyLine(links.get(i).getPPath(), (float)x1, (float)y1, (float)x2, (float)y2);\n\t\t\t}\n\t\t}",
"@java.lang.Override\n public java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> getLinksList() {\n return links_;\n }",
"private @NotNull List<String> getAllLinks(final String text, final String urlStart) {\n List<String> links = new ArrayList<>();\n\n int i = 0;\n while (text.indexOf(urlStart, i) != -1) {\n int linkStart = text.indexOf(urlStart, i);\n int linkEnd = text.indexOf(\" \", linkStart);\n if (linkEnd != -1) {\n String link = text.substring(linkStart, linkEnd);\n links.add(link);\n } else {\n String link = text.substring(linkStart);\n links.add(link);\n }\n i = text.indexOf(urlStart, i) + urlStart.length();\n }\n\n return links;\n }",
"@Override\n public DocumentSignedLocation[] getDocumentContentUrls(String[] documentLinks) throws DocumentServiceException {\n\tAuthenticationToken token = this.store.getUserToken();\n\tif (token == null) {\n\t throw new DocumentServiceException(\"Service requires authentication.\");\n\t}\n\ttry {\n\t DocumentSignedLocation[] dsls = new DocumentSignedLocation[documentLinks.length];\n\t for (int i=0; i<documentLinks.length; i++) {\n\t\tString documentUrl = documentLinks[i];\n\t String documentUrlSig;\n\t\tdocumentUrlSig = AuthSubUtil.formAuthorizationHeader(\n\t\t token.getToken(), AuthenticationKey.getAuthSubKey(), new URL(documentUrl), \"GET\");\n DocumentSignedLocation dsl =\n \t new DocumentSignedLocation(documentUrl, documentUrlSig);\n\t dsls[i] = dsl;\n\t }\n\t return dsls;\n\t} catch (Exception e) {\n\t e.printStackTrace();\n throw new DocumentServiceException(e.getMessage());\n\t}\n }",
"@java.lang.Override\n public java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> getLinksList() {\n return java.util.Collections.unmodifiableList(\n instance.getLinksList());\n }",
"public List<String> getInterwikiLinks() {\r\n\t\treturn this.interwikiLinks;\r\n\t}",
"public List<Link> getOutLinks() {\r\n return outLinks;\r\n }",
"LinkRelationsLibrary createLinkRelationsLibrary();",
"public org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProtoOrBuilder getLinksOrBuilder(\n int index) {\n return links_.get(index);\n }",
"@Test\n\tpublic void testGetLinksMultipleLinks() {\n\t\tList<String> results = helper.getLinks(\n\t\t\t\t\"drop tables; <A HREF=\\\"test.com\\\"> <a href=\\\"nexttest.org\\\". junk junk\", null);\n\t\tassertEquals(2, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t\tassertEquals(\"nexttest.org\", results.get(1));\n\t}",
"public List getLinks() {\r\n List links = getElements(\"a\");\r\n ArrayList result = new ArrayList();\r\n for (int i = 0; i < links.size(); i++) {\r\n try {\r\n StandAloneElement keep = ((StandAloneElement)links.get(i));\r\n result.add(parseUrl(keep.getAttribute(\"href\")));\r\n } catch (Exception e) {\r\n }\r\n }\r\n links = getElements(\"FRAME\");\r\n for (int i = 0; i < links.size(); i++) {\r\n try {\r\n StandAloneElement keep = ((StandAloneElement)links.get(i));\r\n result.add(parseUrl(keep.getAttribute(\"src\")));\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n return result;\r\n }",
"public String getClUrl() {\r\n return clUrl;\r\n }",
"public java.util.List<? extends org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProtoOrBuilder> \n getLinksOrBuilderList() {\n return links_;\n }",
"public void getAlbumLinks() {\n Elements elements = document.getElementsByClass(\"\\n\" +\n \" js-link-block-cover-link\\n\" +\n \" link-block-cover-link\\n\" +\n \" \");\n albumsLinks = new String[elements.size()];\n for (int i = 0; i < elements.size(); i++) {\n String element = elements.get(i).attr(\"href\");\n albumsLinks[i] = element;\n }\n }",
"int getLinksCount();",
"@Test\n\tpublic void testGetLinksRelativeLink() {\n\t\tList<String> results = helper\n\t\t\t\t.getLinks(\"drop tables; <A HREF=\\\"/test\\\"> junk junk\", \"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"http://www.bobbylough.com/test\", results.get(0));\n\t}",
"private final List<Element> getReferences(final Document doc, final boolean wantSingle, boolean wantMulti) {\r\n return this.desc.getReferences(doc, getName(), wantSingle, wantMulti);\r\n }",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllCommercialInformationURL_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), COMMERCIALINFORMATIONURL);\r\n\t}",
"public abstract String linkText();",
"public List<Link> getTargetConnections() {\n\t\treturn inputLinks;\n\t}",
"ReferenceLink createReferenceLink();",
"@Override\n\tpublic List<AllcodeModel> get_url_nganluong() {\n\t\treturn allcode.get_url_nganluong();\n\t}",
"private IHyperlink[] detectHyperlinks(IDocument doc, int offset)\n {\n ITypedRegion partition;\n \n try\n {\n partition = (ITypedRegion) doc.getPartition(offset);\n if (!PartitionTypes.DEFAULT.equals(partition.getType())) return null;\n }\n catch (BadLocationException e) { return null; }\n \n // If we get here, our partition type seems ok.\n // Create a PerlSubHyperlink for the partition:\n try\n {\n return new IHyperlink[] {\n new PikeSubHyperlink(\n editor,\n doc.get(partition.getOffset(), partition.getLength()),\n partition)\n };\n }\n catch (BadLocationException e)\n {\n // should never occur\n return null;\n }\n }",
"private Set<String> extracLinks(String url, LinkFilter filter) {\n\n\t\tSet<String> links = new HashSet<String>();\n\t\ttry {\n\t\t\tParser parser = new Parser(url);\n\t\t\tparser.setEncoding(\"UTF-8\");\n\t\t\t// linkFilter filter <a> tag\n\t\t\tNodeClassFilter linkFilter = new NodeClassFilter(LinkTag.class);\n\t\t\t// get all filtered links\n\t\t\tNodeList list = parser.extractAllNodesThatMatch(linkFilter);\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tNode tag = list.elementAt(i);\n\t\t\t\tif (tag instanceof LinkTag)// <a> tag\n\t\t\t\t{\n\t\t\t\t\tLinkTag link = (LinkTag) tag;\n\t\t\t\t\tString linkUrl = link.getLink();// url\n\t\t\t\t\tif (filter.accept(linkUrl)) {\n\t\t\t\t\t\t// change bbsdoc to bbstdoc\n\t\t\t\t\t\tString stlink = linkUrl.replace(\"bbsdoc\", \"bbstdoc\");\n\t\t\t\t\t\tlinks.add(stlink);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn links;\n\t}",
"List<ButtonLink> getBtnActionLinks();",
"@NonNull String getInflectionsLink() {\n return inflectionsLink;\n }",
"public List<IDoc> getDocs();",
"public List<IDoc> getDocs();",
"public final int[] getPtnLink() {\n return ptnLink;\n }",
"@GET\n public Response getLinks() {\n List<Link> links = new ArrayList<>();\n links.add(Link.fromUri(CommonConstants.API_URI+\"users/login\").rel(\"login\").build());\n links.add(Link.fromUri(CommonConstants.API_URI+\"users/\").rel(\"users\").build());\n links.add(Link.fromUri(CommonConstants.API_URI+\"boardgames/\").rel(\"boardgames\").build());\n\n return Response.ok().links(links.toArray(new Link[links.size()])).build();\n }",
"public ArrayList<Link> getLinksFromConf(Configuration configuration) {\n\n ArrayList<Link> links = new ArrayList<>();\n ArrayList<Screen> screens = this.getScreensFromConf(configuration);\n\n for(Screen s : screens)\n links.addAll(s.getLinks());\n\n return links;\n\n }",
"@Test\n\tpublic void testGetLinksOtherProperties() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A target=\\\"self\\\" href=\\\"test.com\\\"> junk junk\",\n\t\t\t\t\"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}",
"public List<Topic> getLinks() {\n\t\tList<Topic> topics = new ArrayList<Topic>();\n\t\tTopic tp = null;\n\t\tString sqlSearch = \"select lid,label,url from \" + Constant.schema\n\t\t\t\t+ \".link\";\n\n\t\t// Define Connection, statement and resultSet\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet result = null;\n\t\ttry {\n\t\t\tconn = DBConUtil.getConn();\n\t\t\tpstmt = conn.prepareStatement(sqlSearch);\n\t\t\tconn.setAutoCommit(true);\n\t\t\tresult = DBConUtil.query(conn, pstmt);\n\n\t\t\tif (result != null) {\n\t\t\t\twhile (result.next()) {\n\t\t\t\t\ttp = new Topic();\n\t\t\t\t\ttp.setTopicID(result.getInt(\"lid\"));\n\t\t\t\t\ttp.setLabel(result.getString(\"label\"));\n\t\t\t\t\ttp.setUrl(result.getString(\"url\"));\n\t\t\t\t\ttopics.add(tp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tDBConUtil.close(conn, pstmt, result);\n\t\t}\n\t\treturn topics;\n\t}",
"public java.util.List getAnchor();",
"public Link getIndexLink() {\n\t\treturn null;\n\t}",
"@Override\r\n public List<Line2D> getTranslationLinks (Glyph glyph)\r\n {\r\n Point from = glyph.getLocation();\r\n Point to = stem != null\r\n ? stem.getAreaCenter()\r\n : getReferencePoint();\r\n\r\n Line2D line = new Line2D.Double(from, to);\r\n return Arrays.asList(line);\r\n }",
"@NonNull String getAssociationsLink() {\n return associationsLink;\n }",
"@Override\r\n public List<Link> getLinks(Turn inTurn, Player inPlayer) throws Exception\r\n {\r\n return getGameState().getLinkList();\r\n }",
"protected void _initLinks() {\n\tpeopleLink = null;\n\tchangeLogDetailsesLink = null;\n}",
"public ISemanticLinkColl getParentSemanticLinks()\n throws OculusException;"
] |
[
"0.66491264",
"0.6579265",
"0.6433874",
"0.6332141",
"0.63203037",
"0.6170861",
"0.6142334",
"0.611579",
"0.6093976",
"0.6058527",
"0.6051073",
"0.5970211",
"0.5952744",
"0.59434634",
"0.59409976",
"0.59360343",
"0.59069544",
"0.5898516",
"0.58657706",
"0.58527815",
"0.5843211",
"0.58411473",
"0.582536",
"0.5809722",
"0.5801043",
"0.57955843",
"0.57875156",
"0.57841086",
"0.57790375",
"0.57776386",
"0.5738103",
"0.5731278",
"0.5712344",
"0.57079613",
"0.56766665",
"0.5636287",
"0.5634898",
"0.5608455",
"0.56073165",
"0.5604929",
"0.5602275",
"0.5598564",
"0.5592236",
"0.55917454",
"0.55677634",
"0.5550634",
"0.5540448",
"0.55025333",
"0.5496775",
"0.54848415",
"0.54787254",
"0.5464347",
"0.5456222",
"0.5428856",
"0.54285663",
"0.54236627",
"0.54211783",
"0.541216",
"0.5384469",
"0.53815997",
"0.5375668",
"0.5368978",
"0.5361301",
"0.53511",
"0.53430575",
"0.53401583",
"0.53125733",
"0.5310518",
"0.5299834",
"0.5293616",
"0.5290953",
"0.52762353",
"0.52609015",
"0.52557635",
"0.5241712",
"0.5238773",
"0.523687",
"0.52274215",
"0.5222861",
"0.52162987",
"0.5215836",
"0.52072924",
"0.52028614",
"0.52002877",
"0.51972306",
"0.5195869",
"0.5183251",
"0.5183251",
"0.51758504",
"0.5171289",
"0.5170874",
"0.51676315",
"0.5165721",
"0.51581496",
"0.5149365",
"0.5142121",
"0.5128494",
"0.51239264",
"0.5115511",
"0.51131785"
] |
0.59556925
|
12
|
Created by ZingoHotels Tech on 02112018.
|
public interface InterestContentAPI {
@POST("InterestContentMappings")
Call<InterestContentMapping> postInterestContent(@Body InterestContentMapping body);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\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}",
"protected boolean func_70814_o() { return true; }",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo4359a() {\n }",
"public void mo12628c() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"private zza.zza()\n\t\t{\n\t\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void mo6081a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void getExras() {\n }",
"public void skystonePos6() {\n }",
"public void mo12930a() {\n }",
"private void m50366E() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void mo21877s() {\n }",
"public void skystonePos4() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo21878t() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"Petunia() {\r\n\t\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public final void mo91715d() {\n }",
"@Override\n public void init() {\n\n }",
"public void mo21783H() {\n }",
"public void mo21825b() {\n }",
"public void mo21779D() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"public void mo9848a() {\n }",
"public void mo3376r() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public static void listing5_14() {\n }",
"public void skystonePos5() {\n }",
"public void mo21785J() {\n }",
"public Husdjurshotell(){}",
"@Override\n\tpublic void ligar() {\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}",
"public void mo21782G() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo1531a() {\n }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"public void mo115190b() {\n }",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n }",
"private UsineJoueur() {}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"public void mo21794S() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}"
] |
[
"0.6045602",
"0.5965437",
"0.59176725",
"0.58971447",
"0.58555037",
"0.58385706",
"0.5826919",
"0.5826919",
"0.5814323",
"0.5774688",
"0.5768832",
"0.57427007",
"0.5710749",
"0.5702756",
"0.56836885",
"0.5677903",
"0.56759125",
"0.56759125",
"0.56759125",
"0.56759125",
"0.56759125",
"0.56759125",
"0.56759125",
"0.5674637",
"0.56681585",
"0.56563014",
"0.562654",
"0.5624913",
"0.5622985",
"0.5619877",
"0.5618545",
"0.5610539",
"0.55972254",
"0.5594638",
"0.5571799",
"0.5571552",
"0.5571264",
"0.55705816",
"0.55627424",
"0.5545671",
"0.5529712",
"0.5524858",
"0.55199206",
"0.55092686",
"0.5506001",
"0.5498794",
"0.54920673",
"0.5477583",
"0.5477345",
"0.54746526",
"0.5472278",
"0.5453897",
"0.5453897",
"0.5453897",
"0.5453897",
"0.5453897",
"0.5451205",
"0.5445847",
"0.5444818",
"0.5443145",
"0.54420066",
"0.5434026",
"0.5414545",
"0.5412771",
"0.54111797",
"0.5409254",
"0.5406901",
"0.54065514",
"0.53898335",
"0.53772765",
"0.537518",
"0.53700614",
"0.5362303",
"0.5362",
"0.53608924",
"0.53593916",
"0.5349239",
"0.5346035",
"0.534357",
"0.534357",
"0.534357",
"0.53363985",
"0.53363526",
"0.5332304",
"0.53316134",
"0.53312534",
"0.53312534",
"0.53291553",
"0.53253347",
"0.53253347",
"0.53253347",
"0.53235865",
"0.53212184",
"0.531924",
"0.53166735",
"0.5314224",
"0.5313113",
"0.53125507",
"0.53107816",
"0.53107816",
"0.53107816"
] |
0.0
|
-1
|
Constructs a new XMLEntry that will make the nodes to write to the file.
|
public XMLEntry(Recordable parent) {
this.parent = parent;
this.atributes = new HashMap<String, String>();
this.children = new ArrayList<XMLEntry>();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void createFirstXmlFile(ArrayList<Entry> entityList);",
"@Override\n\t\tprotected SLEntry leafNodeFactory(java.nio.ByteBuffer entryStream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\treturn new SLEntry(this, entryStream);\n\t\t}",
"public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}",
"protected void setNodeAttributes(Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n ZipEntry zipEntry = entry.getValue();\r\n String name = entry.getKey();\r\n if (zipEntry.isDirectory() && name.charAt(name.length()-1) == '/') name = name.substring(0, name.length()-1);\r\n long lastModified = zipEntry.getTime();\r\n attributes.clear();\r\n attributes.addAttribute(\"\", FILENAME_ATTR_NAME, FILENAME_ATTR_NAME, \"CDATA\", name);\r\n attributes.addAttribute(\"\", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME, \"CDATA\", Long.toString(lastModified));\r\n attributes.addAttribute(\"\", DATE_ATTR_NAME, DATE_ATTR_NAME, \"CDATA\", dateFormatter.format(new Date(lastModified)));\r\n if (!zipEntry.isDirectory()) {\r\n attributes.addAttribute(\"\", SIZE_ATTR_NAME, SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getSize()));\r\n attributes.addAttribute(\"\", COMP_SIZE_ATTR_NAME, COMP_SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getCompressedSize()));\r\n }\r\n if (this.isRequestedDirectory) {\r\n attributes.addAttribute(\"\", \"sort\", \"sort\", \"CDATA\", this.sort);\r\n attributes.addAttribute(\"\", \"reverse\", \"reverse\", \"CDATA\",\r\n String.valueOf(this.reverse));\r\n attributes.addAttribute(\"\", \"requested\", \"requested\", \"CDATA\", \"true\");\r\n this.isRequestedDirectory = false;\r\n }\r\n }",
"protected void startNode(String nodeName, Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n setNodeAttributes(entry);\r\n super.contentHandler.startElement(URI, nodeName, PREFIX + ':' + nodeName, attributes);\r\n }",
"private Element createManifestEntry (String location, URI format,\n\t\tboolean mainEntry)\n\t{\n\t\tElement element = new Element (\"content\", Utils.omexNs);\n\t\telement.setAttribute (\"location\", location);\n\t\telement.setAttribute (\"format\", format.toString ());\n\t\tif (mainEntry)\n\t\t\telement.setAttribute (\"master\", \"\" + mainEntry);\n\t\treturn element;\n\t}",
"public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}",
"public ExternalDocumentEntry() {\n\t\tsuper(CDAFactory.eINSTANCE.createExternalDocument());\n\t\tthis.getMdht().getTemplateIds()\n\t\t\t\t.add(DatatypesFactory.eINSTANCE.createII(\"2.16.840.1.113883.10.20.1.36\"));\n\t\tthis.getMdht().setClassCode(ActClassDocument.DOC);\n\t\tthis.getMdht().setMoodCode(ActMood.EVN);\n\n\t}",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }",
"public void toXML(PrintWriter pw) {\n pw.println(\"<crontabentry>\");\n pw.println(\"<id>\" + id + \"</id> \");\n pw.println(\"<classname>\" + className + \"</classname> \");\n pw.println(\"<methodname>\" + methodName + \"</methodname> \");\n if (bextraInfo) {\n for (int i = 0; i < extraInfo.length; i++) {\n pw.println(\"<extrainfo parameter = \\\"\" + i + \"\\\" >\");\n pw.println(extraInfo[i] + \" </extrainfo>\");\n }\n }\n pw.println(\"<calendar>\" + cal + \" </calendar>\");\n pw.println(\"<timemillis>\" + timeMillis + \"</timemillis> \");\n pw.println(\"</crontabentry>\");\n }",
"Object create(File file) throws IOException, SAXException, ParserConfigurationException;",
"private FileEntry() {\n // intentionally empty\n }",
"private Node createFromSpeciesFile(String[] line, String alias1, Node parent, int cnt, double bl){\n\t\t String name = line[1];\n\t\t String[] names = name.split(\"\\\\|\");\n\t\t \n\t\t if(names.length>3 && names[3].startsWith(\"NC\")) name = names[3];\n\t\t Node n = new SimpleNode(name,bl);\n\t\t Identifier id = n.getIdentifier();\n\t\t Identifier pid = parent.getIdentifier();\n\t\t String prefix = ((String)pid.getAttribute(\"prefix\"));\n\t\t if(parent.isRoot()) prefix = prefix+\"+-\";\n\t\t id.setAttribute(\"level\",((Integer) pid.getAttribute(\"level\"))+2);\n\t\t id.setAttribute(\"prefix\", \" | \"+prefix);\n\t\t id.setAttribute(\"alias\", line[0]);\n\t\t id.setAttribute(\"alias1\", alias1);\n\t\t id.setAttribute(\"speciesIndex\", cnt);\n\t\t String css =(String) pid.getAttribute(\"css\");\n\t\t if(css!=null){\n\t\t\t id.setAttribute(\"css\", css);\n\t\t }\n\t\t parent.addChild(n);\n\t\t this.putSlug(n);\n\t\t return n;\n\t }",
"private void insertToFile (PQNode node) throws Exception{\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n nodes.add(node);\n\n storeToFile(file,nodes, false);\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(97);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n simpleNode0.setIdentifier(\"<\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"{>%;1sZP#Dq\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*ge\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, false);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"Fel8BN^#Fkq[^^KqS\");\n simpleNode0.dump(\"Fel8BN^#Fkq[^^KqS\", stringWriter0);\n assertEquals(\"<MarkerAnnotation>\\n <identifier>*lt</identifier>\\n</MarkerAnnotation>\\n\", stringWriter0.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"MarkerAnnotation : <\", string0);\n }",
"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 static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"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}",
"@Override\n\t\tprotected SubnodeBTree intermediateNodeFactory(java.nio.ByteBuffer entryStream)\n\t\tthrows\n\t\t\tCRCMismatchException,\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\tfinal SIEntry entry = new SIEntry(this, entryStream);\n\t\t\treturn new SubnodeBTree(entry.nid.key(), this);\n\t\t}",
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);",
"@Test\n public void testWriteEntry_5args() {\n String expResult = \"@prefix lemon: <http://lemon-model.net/lemon#> . \" + ls\n + \"@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . \" + ls\n + \"\" + ls\n + \"<file:test#Cat/sense> a lemon:LexicalSense ;\" + ls\n + \" lemon:reference <http://dbpedia.org/resource/Cat> .\" + ls\n + \"\" + ls\n + \"<file:test#Cat/canonicalForm> lemon:writtenRep \\\"cat\\\"@en ;\" + ls\n + \" a lemon:Form .\" + ls\n + \"\" + ls\n + \"<file:test#Cat> lemon:sense <file:test#Cat/sense> ;\" + ls\n + \" lemon:canonicalForm <file:test#Cat/canonicalForm> ;\" + ls\n + \" a lemon:LexicalEntry .\";\n //System.out.println(\"writeEntry\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = makeModel(instance);\n LexicalEntry le = lm.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lo = new LexInfo();\n Writer dt = new StringWriter();\n boolean xml = false;\n instance.writeEntry(lm, le, lo, dt, xml);\n assertEquals(expResult, dt.toString().trim());\n }",
"public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}",
"private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public XMLElement(String fullName, String namespace, String systemID, int lineNr)\n/* */ {\n/* 144 */ this.attributes = new Vector();\n/* 145 */ this.children = new Vector(8);\n/* 146 */ this.fullName = fullName;\n/* 147 */ if (namespace == null) {\n/* 148 */ this.name = fullName;\n/* */ } else {\n/* 150 */ int index = fullName.indexOf(':');\n/* 151 */ if (index >= 0) {\n/* 152 */ this.name = fullName.substring(index + 1);\n/* */ } else {\n/* 154 */ this.name = fullName;\n/* */ }\n/* */ }\n/* 157 */ this.namespace = namespace;\n/* 158 */ this.content = null;\n/* 159 */ this.line = lineNr;\n/* 160 */ this.systemID = systemID;\n/* 161 */ this.parent = null;\n/* */ }",
"@Override\n\t\tpublic void startElement(String uri, String localName, String qName,\n\t\t\t\tAttributes atts) throws SAXException {\n\t\t\tNode newNode = new Node(localName);\n\t\t\t\n\t\t\tfor(int i = 0; i < atts.getLength(); i++){\n\t\t\t\tnewNode.putAttribute(atts.getQName(i), atts.getValue(i));\n\t\t\t}\n\t\t\t\n\t\t\tnodeStack.lastElement().put(newNode);\n\t\t\tnodeStack.push(newNode);\n\t\t\t\n\t\t\tbuffer = new StringBuffer();\n\t\t\t\n\t\t\tLog.d(\"xml\", uri + \" | \" + localName + \" | \" + qName + \" | \");\n\t\t\tfor(int i = 0; i < atts.getLength(); i++)\n\t\t\t\tLog.d(\"xml\", \"att(\" + atts.getLocalName(i) + \"): \" + atts.getValue(i));\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void CreateRssTextFile(SyndFeed modifiedFeed, int fileCountIndex) {\n\t\t// TODO Auto-generated method stub\n\t\tString filename = \"RSSProgramFeedFile\" + fileCountIndex + \".txt\";\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(filename);\n\n\n\t\t\tif (!file.exists()) {\n\n\t\t\t}\n\t\t\tfile.createNewFile();\n\n\t\t\tfw = new FileWriter(file.getAbsoluteFile(), false);\n\t\t\tbw = new BufferedWriter(fw);\n\n\t\t\tfor (SyndEntry entry : (List<SyndEntry>) modifiedFeed.getEntries()) {\n\n\t\t\t\tbw.append(\"title: \" + entry.getTitle());\n\t\t\t\tbw.append(\"link: \" + entry.getLink()+ \"\\n\");\n\t\t\t\tbw.append(\"guid: \" + entry.getUri() + \"\\n\");\n\t\t\t\tbw.append(\"description: \" + entry.getDescription().getValue().toString() + \"\\n\");\n\t\t\t\tif(entry.getPublishedDate()!=null){\n\t\t\t\t\tbw.append(\"pubDate: \" + entry.getPublishedDate().toString() + \"\\n\");\n\t\t\t\t}\n\n\t\t\t\tList<SyndEnclosure> encls = entry.getEnclosures();\n\t\t\t\tif(encls.size()!=0){\n\t\t\t\t\tbw.append(\"Enclosure URL: \" + encls.get(0).getUrl() + \"\\n\" + \"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbw.append(\"Enclosure URL: null\" + \"\\n\" + \"\\n\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to create file\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bw != null)\n\t\t\t\t\tbw.close();\n\t\t\t\tif (fw != null)\n\t\t\t\t\tfw.close();\n\n\t\t\t} catch (IOException ex) {\n\t\t\t\tSystem.err.println(\"Unable to properly close file\");\n\t\t\t}\n\t\t}\n\t}",
"private Node getEntryNode(IStatementContainer nd) {\n Node entry = entryNodeCache.get(nd);\n if (entry == null) {\n entry =\n new Node(\n \"Entry\", new SourceLocation(\"\", nd.getLoc().getStart(), nd.getLoc().getStart())) {\n @Override\n public <Q, A> A accept(Visitor<Q, A> v, Q q) {\n return null;\n }\n };\n entryNodeCache.put(nd, entry);\n Label lbl = trapwriter.localID(entry);\n trapwriter.addTuple(\n \"entry_cfg_node\", lbl, nd instanceof Program ? toplevelLabel : trapwriter.localID(nd));\n locationManager.emitNodeLocation(entry, lbl);\n }\n return entry;\n }",
"public void createChildNode(String root, String name, String contents, String[] keys, String[] values){\n\t\tNode rootNode = doc.getElementsByTagName(root).item(0);\n\t\n\t\tElement child = doc.createElement(name); \n\t\t\n\t\tfor(int i = 0; i < keys.length; i++){ //loops through the keys, and set a new attribute to the node with these keys and values\n\t\t\tchild.setAttribute(keys[i], values[i]);\n\t\t}\n\t\t\n\t\tchild.appendChild(doc.createTextNode(contents));\n\t\trootNode.appendChild(child);\n\t\twrite(); //write to the file\n\t}",
"TarEntry CreateEntry(String name);",
"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 }",
"public FileNode() {\n\t}",
"public TreeItem(String file, String encoding) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file, encoding);\n\t}",
"private static Node createNode(Element elt, CityMap map) throws XMLException {\n\t\tint id = Integer.parseInt(elt.getAttribute(\"id\"));\n\t\tint x = (int) (Integer.parseInt(elt.getAttribute(\"x\")) * 1.2);\n\t\tint y = (int) (Integer.parseInt(elt.getAttribute(\"y\")) * 1.2);\n\t\tNode n = new Node(id, x, y);\n\t\tNodeList sectionList = elt.getElementsByTagName(\"LeTronconSortant\");\n\t\tfor (int i = 0; i < sectionList.getLength(); i++) {\n\t\t\tn.addOutgoing(createSection((Element) sectionList.item(i), id));\n\t\t\tmap.addSection(createSection((Element) sectionList.item(i), id));\n\t\t}\n\t\treturn n;\n\t}",
"public MemoryEntryInfo createMemoryEntryInfo() {\n\t\tMemoryEntryInfo info = new MemoryEntryInfo(new HashMap<String, Object>(this.info.getProperties()));\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILE_MD5, md5);\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILENAME, fileName);\n\t\tinfo.getProperties().put(MemoryEntryInfo.OFFSET, fileoffs);\n\t\treturn info;\n\t}",
"private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }",
"public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }",
"Object create(Element element) throws IOException, SAXException, ParserConfigurationException;",
"public Entry(String n)\n {\n name = n;\n }",
"public static void createNode (PsiDirectory parentDirectory, VNode vNode) throws IOException {\r\n\t\tString name = mungeNamespace(vNode.getName());\r\n\t\tPsiDirectory contentDirectory = parentDirectory.createSubdirectory(name);\r\n\t\tPsiFile contentFile = contentDirectory.createFile(\".content.xml\");\r\n\t\twriteNodeContent(contentFile, vNode);\r\n\t}",
"public void writeNode() throws IOException {\n // seek to end of file\n file.seek(offset);\n // write offset data\n file.writeLong(offset);\n // write numKeys data\n file.writeLong(numKeys);\n // write children offset\n for (int i = 0; i < children.length; i++){\n file.writeLong(children[i]);\n }\n // write key data\n for (int i = 0; i < keys.length; i++){\n if (keys[i] == null){\n file.writeLong(-1);\n file.writeInt(0);\n }\n else{\n file.writeLong(keys[i].getKey());\n file.writeInt(keys[i].getFrequency());\n }\n }\n\n //The node has been updated -- move it to the front of the cache\n if (cache != null){\n cache.addObject(this);\n }\n\n\n }",
"public Entry(node_info node, double tag) {\n this.tag = tag;\n this.node = node;\n }",
"@Override\n public String toFileEntry() {\n return \"T\" + \"/next\" + super.isDone + \"/next\" + super.description;\n }",
"public void add(FileSystemEntry entry);",
"public XmlWriter(String filename, String logFile, Vector dirs) throws IOException {\n\t\tout = new FileOutputStream(filename);\n\t\tstack = new Stack();\n\t\tindent = 0;\n\n\t\twriteProlog();\n\n\t\ttag = Xml.TAG_ROOT;\n\t\twriteDTD(tag);\n\t\ttag += addAttr(Xml.ATTR_LOGFILE, logFile);\n\t\ttag += addAttr(Xml.ATTR_TIMESTAMPWRITEBACK, DirSync.getSync().isWriteTimestampBack());\n\t\ttag += addAttr(Xml.ATTR_TIMESTAMPDIFF, DirSync.getSync().getMaxTimestampDiff());\n\t\ttag += addAttr(Xml.ATTR_SKIP_LINKS, DirSync.getSync().isSkipLinks());\n\t\twriteStartTag(tag);\n\n\t\tfor (Iterator iter = dirs.iterator(); iter.hasNext();) {\n\t\t\tDirectory dir = (Directory) iter.next();\n\n\t\t\ttag = Xml.TAG_DIR;\n\t\t\ttag += addAttr(Xml.ATTR_NAME, dir.getName());\n\t\t\ttag += addAttr(Xml.ATTR_SRC, dir.getSrc());\n\t\t\ttag += addAttr(Xml.ATTR_DST, dir.getDst());\n\t\t\ttag += addAttr(Xml.ATTR_WITHSUBFOLDERS, dir.isWithSubfolders());\n\t\t\ttag += addAttr(Xml.ATTR_VERIFY, dir.isVerify());\n\t\t\ttag += addAttr(Xml.ATTR_FILE_INCLUDE, dir.getFileInclude());\n\t\t\ttag += addAttr(Xml.ATTR_FILE_EXCLUDE, dir.getFileExclude());\n\t\t\ttag += addAttr(Xml.ATTR_DIR_INCLUDE, dir.getDirInclude());\n\t\t\ttag += addAttr(Xml.ATTR_DIR_EXCLUDE, dir.getDirExclude());\n\t\t\ttag += addAttr(Xml.ATTR_LOGFILE, dir.getLogfile());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_ALL, dir.isCopyAll());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_LARGER, dir.isCopyLarger());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_LARGERMODIFIED, dir\n\t\t\t\t\t.isCopyLargerModified());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_MODIFIED, dir.isCopyModified());\n\t\t\ttag += addAttr(Xml.ATTR_SYNC_NEW, dir.isCopyNew());\n\t\t\ttag += addAttr(Xml.ATTR_DEL_FILES, dir.isDelFiles());\n\t\t\ttag += addAttr(Xml.ATTR_DEL_DIRS, dir.isDelDirs());\n\t\t\twriteEmptyTag(tag);\n\t\t}\n\n\t\twriteEndTag();\n\t}",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"private static Entry<String, Item> entry(String fileName) {\n Entry<String, Item> entry = new Entry<String, Item>();\n entry.setKey(fileName);\n entry.setData(item(fileName));\n return entry;\n }",
"public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public void toXML(Writer stream, String indent, String namespace) throws IOException {\n // if ( m_content != null && m_content.length() > 0 ) {\n // stream.write( \"<text>\");\n // stream.write( quote(this.m_content,false) );\n // stream.write(\"</text>\");\n // } else {\n // stream.write(empty_element);\n // }\n if (this.m_content != null) {\n stream.write(quote(this.m_content, false));\n }\n }",
"public DOMWriter(boolean can, String dH, String dT)\n{\n canonical = can;\n docHeader = dH;\n docType = dT;\n}",
"@Override\n\tpublic void writeFile(String hashname) {\n\t\tfor(CircosNode node : nodes){\n\t\t\tString useThisLabel = \"\";\n\t\t\tif(node.getLabel().length() > maxLabelLenght){\n\t\t\t\tuseThisLabel = node.getLabel().substring(0, maxLabelLenght) + \"...\";\n\t\t\t}else{\n\t\t\t\tuseThisLabel = node.getLabel();\n\t\t\t}\n\t\t\toutput += \"chr\" + Settings.CIRCOS_DELIMITER + \"-\" + Settings.CIRCOS_DELIMITER + node.getID() + Settings.CIRCOS_DELIMITER + useThisLabel + \n\t\t\t\t\tSettings.CIRCOS_DELIMITER + \"0\" + Settings.CIRCOS_DELIMITER + Math.round(node.getSzMetricValue()) + \n\t\t\t\t\tSettings.CIRCOS_DELIMITER + node.getID() + \"\\n\";\n\t\t}\n\t\tTools.createFile(Settings.CIRCOS_DATA_PREFIX+\"node\"+hashname+\".txt\", output);\n\t}",
"@SuppressWarnings(\"unused\")\n protected FileIssueNode() {\n }",
"@SuppressWarnings(\"unused\")\n protected FileIssueNode() {\n }",
"@Test\n public void testWriteEntry_utf8() {\n String expResult = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" + ls\n + \"<rdf:RDF xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\">\" + ls\n + \" <lemon:LexicalEntry rdf:about=\\\"file:test#Sa\\u00edocht\\\" xmlns:lemon=\\\"http://lemon-model.net/lemon#\\\">\" + ls\n + \" <lemon:canonicalForm>\" + ls\n + \" <lemon:Form rdf:about=\\\"file:test#Sa\\u00edocht/canonicalForm\\\">\" + ls\n + \" <lemon:writtenRep xml:lang=\\\"ga\\\">Sa\\u00edocht</lemon:writtenRep>\" + ls\n + \" </lemon:Form>\" + ls\n + \" </lemon:canonicalForm>\" + ls\n + \" <lemon:sense>\" + ls\n + \" <lemon:LexicalSense rdf:about=\\\"file:test#Sa\\u00edocht/sense\\\">\" + ls\n + \" <lemon:reference rdf:resource=\\\"http://ga.dbpedia.org/resource/Sa\\u00edocht\\\"/>\" + ls\n + \" </lemon:LexicalSense>\" + ls\n + \" </lemon:sense>\" + ls\n + \" </lemon:LexicalEntry>\" + ls\n + \"</rdf:RDF>\";\n System.setProperty(\"lemon.api.xml.encoding\", \"UTF-8\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = makeModelUTF8(instance);\n LexicalEntry le = lm.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lo = new LexInfo();\n Writer dt = new StringWriter();\n boolean xml = true;\n instance.writeEntry(lm, le, lo, dt, xml);\n assertEquals(expResult.replaceAll(\"\\\\s\", \"\"), dt.toString().replaceAll(\"\\\\s\", \"\"));\n System.setProperty(\"lemon.api.xml.encoding\", \"US-ASCII\");\n //assertEquals(\"\",\"\");\n }",
"TarEntry CreateEntryFromFile(String fileName);",
"public TreeItem(String file) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file);\n\t}",
"private void saveDhtEntries(final Container<UInt32, NodeEntry> entries) {\n if (entries != null) {\n FileOutputStream stream = null;\n FileChannel channel = null;\n try {\n stream = openFileOutput(DHT_NODES_FILENAME, 0);\n channel = stream.getChannel();\n ByteBuffer buffer = ByteBuffer.allocate(entries.bytesCount());\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n entries.put(buffer);\n buffer.flip();\n channel.write(buffer);\n log.info(\"[edk2 service] save dht entries {}\", entries.size());\n } catch(FileNotFoundException e) {\n log.error(\"[ed2k service] unable to open output stream for dht nodes {}\", e);\n } catch(JED2KException e) {\n log.error(\"[ed2k service] internal error on save dht nodes {}\", e);\n } catch(IOException e) {\n log.error(\"[ed2k service] i/o error {}\", e);\n } catch(Exception e) {\n log.error(\"[ed2k service] unexpected error {}\", e);\n }\n finally {\n if (channel != null) {\n try {\n channel.close();\n } catch(IOException e) {\n //just ignore it\n }\n }\n\n if (stream != null) {\n try {\n stream.close();\n } catch(IOException e) {\n // just ignore it\n }\n }\n }\n }\n }",
"@Override\n public Element serialize(Node node, 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 Directory book = (Directory) value;\n // Apply properties to root element...\n Attr attrName = doc.getOwnerDocument().createAttribute(\"name\");\n attrName.setNodeValue(book.getName());\n parentElement.getAttributes().setNamedItem(attrName);\n \n return parentElement;\n }",
"@Test\n public void testWriteEntry_4args() {\n //System.out.println(\"writeEntry\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel model = makeModel(instance);\n LexicalEntry entry = model.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lingOnto = new LexInfo();\n Writer target = new StringWriter();\n instance.writeEntry(model, entry, lingOnto, target);\n //System.out.println(target.toString());\n }",
"public void writeElement(StringBuffer buffer)\n\t{\n//\t\tbuffer.append(\"<node id=\\\"\" + id + \"\\\">\\r\");\n//\t\tif(nodes.size() > 0)\n//\t\t\tbuffer.append(\"<graph id=\\\"\"+id+\"\\\" edgeids=\\\"true\\\" edgemode=\\\"directed\\\">\\r\");\n//\t\twriteAttributes(buffer);\n//\t\tfor(int clusterIndex = 0;clusterIndex<nodes.size(); clusterIndex++)\n//\t\t{\n//\t\t\tNodeElement subCluster = nodes.get(clusterIndex);\n//\t\t\tsubCluster.writeElement(buffer);\n//\t\t}\n//\t\t\n//\t\tfor(int edgeIndex = 0; edgeIndex < edges.size(); edgeIndex++)\n//\t\t\tedges.get(edgeIndex).writeElement(buffer);\n//\t\t\n//\t\tif(nodes.size() > 0)\n//\t\t\tbuffer.append(\"</graph>\\r\");\n//\t\t\n//\t\tbuffer.append(\"</node>\\r\");\n//\t\t\n\t}",
"public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}",
"LinkedEntries.LinkNode add(NodeEntry cne, int index) {\n LinkedEntries.LinkNode ln = new LinkedEntries.LinkNode(cne, index);\n addNode(ln, getHeader());\n return ln;\n }",
"void createItem(StreamTokenizer st) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\tboolean inComment = false;\n\t\tStringBuffer treebuf = new StringBuffer();\n\t\twhile (true) {\n\t\t\tswitch (st.nextToken()) {\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add token \"+st.sval);\n\t\t\t\ttreebuf.append(st.sval);\n\t\t\t\tbreak;\n\t\t\tcase '\"':\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\t// check for length 0 and triple quote\n\t\t\t\tif (st.sval.length() == 0) {\n\t\t\t\t\tst.ordinaryChar('\"');\n\t\t\t\t\tif (st.nextToken() == '\"') {\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found triple quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tst.pushBack();\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found empty double quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tst.quoteChar('\"');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add quoted token \"+st.sval);\n\t\t\t\t\ttreebuf.append(\"\\\"\"+st.sval+\"\\\"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '@':\n\t\t\tcase '#':\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: pushing symbol back\");\n\t\t\t\tst.pushBack();\n\t\t\tcase StreamTokenizer.TT_EOL:\n\t\t\tcase StreamTokenizer.TT_EOF:\n\n\t\t\t\t// in a newline. Reset any inComment aspect\n\t\t\t\tinComment = false;\n\t\t\t\tif (treebuf.length() > 0) {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to process item \"+treebuf.toString());\n\t\t\t\t\tTreeItem t = new TreeItem(treebuf);\n\t\t\t\t\tchildren = t.children;\n\t\t\t\t\tnumChildren = t.numChildren;\n\t\t\t\t\tnumNodes = t.numNodes;\n\t\t\t\t\ttruncated = t.truncated;\n\t\t\t\t\tlabel = t.label;\n\t\t\t\t\tweight = t.weight;\n\t\t\t\t\tisEmptyString = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"Skipping empty line\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// can't reach here, so no break\n\t\t\tcase COMMENT:\n\t\t\t\t// in a comment. Set inComment flag\n\t\t\t\tinComment = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new DataFormatException(\" Expected word, but read \"+st.ttype+\" which is \"+(char)st.ttype);\n\n\t\t\t}\n\t\t}\n\t}",
"Node(String e){\r\n this.element = e;\r\n }",
"public void writeToXML() throws IOException, XMLStreamException {\n FileOutputStream outPC = new FileOutputStream(\"C:\\\\Users\\\\Ruben Joosen\\\\Documents\\\\AntwerpenU\\\\Semester 5\\\\Distributed Systems\\\\ProjectY\\\\DS\\\\ProjectY\\\\map.xml\");\n FileOutputStream out = new FileOutputStream(\"/home/pi/Documents/DS/ProjectY/map.xml\"); // \"/home/pi/Documents/DS/ProjectY/map.xml\"\n\n XMLStreamWriter xsw = null;\n try {\n try {\n XMLOutputFactory xof = XMLOutputFactory.newInstance();\n xsw = xof.createXMLStreamWriter(out, \"UTF-8\");\n xsw.writeStartDocument(\"utf-8\", \"1.0\");\n xsw.writeStartElement(\"entries\");\n\n // Do the Collection\n for (Map.Entry<Integer, String> e : this.IPmap.entrySet()) {\n xsw.writeStartElement(\"entry\");\n xsw.writeAttribute(\"key\", e.getKey().toString());\n xsw.writeAttribute(\"value\", e.getValue().toString());\n xsw.writeEndElement();\n }\n xsw.writeEndElement();\n xsw.writeEndDocument();\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) { /* ignore */ }\n }\n }// end inner finally\n } finally {\n if (xsw != null) {\n try {\n xsw.close();\n } catch (XMLStreamException e) { /* ignore */ }\n }\n }\n }",
"@Override\n\t\t\tpublic Result createOutput(String ns, String file)\n\t\t\t\t\tthrows IOException {\n\t\t\t\tStreamResult res = new StreamResult(writer);\n\t\t\t\tres.setSystemId(\"no-id\");\n\t\t\t\treturn res;\n\t\t\t}",
"public EvEntry() {\n\t}",
"public abstract AbstractLineWriter newWriter(String filename)\r\n\t\t\tthrows FileNotFoundException, IOException;",
"private void writeLink() throws SAXException, IOException {\n if (state.uri != null && state.uri.trim().length() > 0) {\n xhtml.startElement(\"a\", \"href\", state.uri);\n xhtml.characters(state.hrefAnchorBuilder.toString());\n xhtml.endElement(\"a\");\n } else {\n try {\n //if it isn't a uri, output this anyhow\n writeString(state.hrefAnchorBuilder.toString());\n } catch (IOException e) {\n handleCatchableIOE(e);\n }\n }\n state.hrefAnchorBuilder.setLength(0);\n state.inLink = false;\n state.uri = null;\n\n }",
"Node(TNode i, Node n){\t\t\t//A function to create a Node\n\t\telement = i;\t\t\t\t\n\t\tnext = n;\n\t}",
"public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }",
"protected Atom createXAtom() {\n \t\treturn new Atom();\n \t}",
"private void writeTo(String logEntry, File logFile) throws IOException {\n try (FileWriter logFileWriter = new FileWriter(logFile, true);) {\n logFileWriter.write(logEntry);\n logFileWriter.write(System.lineSeparator());\n logFileWriter.flush();\n logFileWriter.close();\n }\n}",
"java.lang.String getEntryNode();",
"public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"@Override\n\tpublic void startElement(String namespaceURI, String localName,\n\t\t\tString qName, Attributes atts) throws SAXException {\n\n\t\tif (localName.equals(\"Document\")) {\n\t\t\tthis.in_documenttag = true;\n\t\t} else if (localName.equals(\"Placemark\")) {\n\t\t\tthis.in_placemarktag = true;\n\t\t\tif ( atts.getLength() > 0 && null != atts.getValue(\"id\") ) {\n\t\t\t\tdpm.setId( atts.getValue(\"id\") );\n\t\t\t}\n\t\t} else if (localName.equals(\"Folder\")) {\n\t\t\tif (this.in_foldertag) {\n\t\t\t\t// put the previous folder on the stack - hopefully it has a frickin name already!\n\t\t\t\tfolderStack.add(folderStack.size(), folder);\n\t\t\t\tfolder = new Folder(); // takes place of outer/trail folder\n\t\t\t}\n\t\t\tthis.in_foldertag = true;\n\t\t} else if (localName.equals(\"description\")) {\n\t\t\tthis.in_descriptiontag = true;\n\t\t} else if (localName.equals(\"name\")) {\n\t\t\tif (in_placemarktag) {\n\t\t\t\tthis.in_placemarknametag = true;\n\t\t\t} else if (in_foldertag) {\n\t\t\t\tthis.in_foldernametag = true;\n\t\t\t} else if (in_documenttag) {\n\t\t\t\tthis.in_documentnametag = true;\n\t\t\t}\n\t\t} else if (localName.equals(\"coordinates\")) {\n\t\t\tthis.in_coordinatestag = true;\n\t\t} else if (localName.equals(\"Address\")) {\n\t\t\tthis.in_addresstag = true;\n\t\t} else {\n\n\t\t}\n\t}",
"@Override\r\n\tprotected AbstractElement createDefaultRoot() {\n\t\tthis.writeLock();\r\n\r\n\t\tthis.branchContext = BranchContext.FILE_HEADER;\r\n\t\tthis.leafContext = LeafContext.OTHER;\r\n\r\n\t\tBranchElement root = new SectionElement();\r\n\t\tBranchElement branch = (BranchElement) this.createBranchElement(root, null);\r\n\t\tbranch.replace(0, 0, new Element[] { this.createLeafElement(branch, null, 0, 1) });\r\n\t\troot.replace(0, 0, new Element[] { branch });\r\n\r\n\t\tthis.writeUnlock();\r\n\r\n\t\treturn root;\r\n\t}",
"private void writeLeafNode(ArrayList<String> out, String objName,\n Map<String, String> attrAsValueMap, String value, int level)\n throws IOException {\n if (objName == null) {\n return;\n }\n value = escapeValue(value);\n\n if (attrAsValueMap.isEmpty()) {\n if (value.isEmpty()) {\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": {}\");\n } else {\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": \\\"\" + value + \"\\\"\");\n }\n return;\n }\n\n // If there is no value, but a attribute being treated as value,\n // simplify the output.\n if (value.isEmpty() &&\n attrAsValueMap.containsKey(LdmlConvertRules.ANONYMOUS_KEY)) {\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": \\\"\" +\n attrAsValueMap.get(LdmlConvertRules.ANONYMOUS_KEY) + \"\\\"\");\n return;\n }\n\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": {\");\n\n if (!value.isEmpty()) {\n out.add(indent(level + 1) + \"\\\"_value\\\": \\\"\" + value + \"\\\"\");\n }\n\n for (String key : attrAsValueMap.keySet()) {\n String attrValue = escapeValue(attrAsValueMap.get(key));\n // attribute is prefixed with \"@\" when being used as key.\n out.add(indent(level + 1) + \"\\\"@\" + key + \"\\\": \\\"\" + attrValue + \"\\\"\");\n }\n out.add(indent(level) + \"}\");\n }",
"@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}",
"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 }",
"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 }",
"private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }",
"public File newLogFile() {\n File flog = null;\n try {\n this.logFileName = getTimestamp() + \".xml\";\n this.pathToLogFile = logFileFolder + logFileName;\n URL logURL = new URL(this.pathToLogFile);\n flog = new File(logURL.toURI());\n if (!flog.exists()) {\n flog.createNewFile();\n }\n } catch (Exception ex) {\n log.error(\"newLogFile :\"+ ex.getMessage());\n } finally{\n this.fLogFile = flog;\n return flog;\n }\n }",
"private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\ttargetName = prepareLocation (targetName);\n\t\t\n\t\tif (targetName.equals (MANIFEST_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + MANIFEST_LOCATION);\n\t\t\n\t\tif (targetName.equals (METADATA_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + METADATA_LOCATION);\n\t\t\n\t\t// we also do not allow files with names like metadata-[0-9]*.rdf\n\t\tif (targetName.matches (\"^/metadata-[0-9]*\\\\.rdf$\"))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file like metadata-[0-9]*.rdf\");\n\t\t\n\t\t// insert to zip\n\t\tPath insertPath = zipfs.getPath (targetName).normalize ();\n\t\tFiles.createDirectories (insertPath.getParent ());\n\t\tFiles.copy (toInsert.toPath (), insertPath, Utils.COPY_OPTION);\n\t\t\n\t\tArchiveEntry entry = new ArchiveEntry (this, insertPath, format);\n\t\tentries.put (entry.getFilePath (), entry);\n\t\t\n\t\tif (mainEntry)\n\t\t{\n\t\t\tLOGGER.debug (\"setting main entry:\");\n\t\t\taddMainEntry (entry);\n\t\t}\n\t\t\n\t\treturn entry;\n\t}",
"public abstract FilesystemEntry createChildEntry(String name, String hash, long size,\n\t\t\tint links, Share share);",
"App () throws Exception {\n timelines = new LinkedList<>();\n deleteElements = new LinkedList<>();\n file.createNewFile();\n }",
"private void startNonleafNode(ArrayList<String> out, CldrNode node, int level)\n throws IOException {\n String objName = node.getNodeKeyName();\n // Some node should be skipped as indicated by objName being null.\n if (objName == null) {\n return;\n }\n\n // first level need no key, it is the container.\n // if (level == 0) {\n // out.add(\"{\");\n // return;\n // }\n\n Map<String, String> attrAsValueMap = node.getAttrAsValueMap();\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": {\");\n for (String key : attrAsValueMap.keySet()) {\n String value = escapeValue(attrAsValueMap.get(key));\n // attribute is prefixed with \"@\" when being used as key.\n out.add(indent(level + 1) + \"\\\"@\" + key + \"\\\": \\\"\" + value + \"\\\"\");\n }\n }",
"public File makeXML(String key, int layerID, String value1, String time1, int totalCopies1, int copyNum1, boolean timerType1, String userId, String time, Certificate cert) {\n\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n Element key1 = document.createElement(\"Search_Result_for\" + key);\n document.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element layerid = document.createElement(\"layerid\");\n\n key1.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(layerID));\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value1));\n layerid.appendChild(Value);\n\n Element timer = document.createElement(\"timer\");\n timer.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(timer);\n\n Element totcopies = document.createElement(\"totcopies\");\n totcopies.appendChild(document.createTextNode(String.valueOf(totalCopies1)));\n layerid.appendChild(totcopies);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum1)));\n layerid.appendChild(copynum);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType1)));\n layerid.appendChild(timertype);\n\n Element userid = document.createElement(\"userid\");\n userid.appendChild(document.createTextNode(userId));\n layerid.appendChild(userid);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(time2);\n\n /*Element cert1 = document.createElement(\"cert\");\n cert1.appendChild(document.createTextNode(String.valueOf(cert)));\n layerid.appendChild((Node) cert);*/\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(layerID + \"_Search Result for \" + key + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n System.out.println(\"Done creating XML File\");\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(layerID + \"_Search Result for \" + key + \".xml\");\n return file;\n }",
"public ContentLeaf(SequenceNumber branch, int startPosition, BeContentElement contentElement) {\n\tsuper(branch, startPosition);\n\tsetContentElement(contentElement);\n}",
"public HeapFile(File f, TupleDesc td) {\n // some code goes here\n \tm_f = f;\n \tm_td = td;\n }",
"public static void createXmlNote() throws JAXBException {\n Staff staff = new Staff();\n\n //Creating xml root node;\n //Create JAXB context and instantiate marshaller;\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n // Marshaller : Java Object to XML content\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n jaxbMarshaller.marshal(staff, new File(\"test.xml\"));\n }",
"private DefaultMutableTreeNode buildTaxonNode() {\n LoggerFactory.LogInfo(\"buildTaxaNode\");\n SortableTreeNode taxonomyNode = new SortableTreeNode(\"TAXONOMY\");\n TaxaLookup.getInstance().populate(\"taxons.bin\");\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addFirstTaxa(taxonomyNode, taxa);\n }\n\n TaxaLookup.getInstance().populate(\"echinodermata.bin\");\n SortableTreeNode animaliaNode = null;\n animaliaNode = findChild(taxonomyNode, \"Animalia(Animals)\");\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addTaxa(animaliaNode, taxa);\n }\n\n TaxaLookup.getInstance().populate(\"decapoda.bin\");\n if (animaliaNode == null) {\n animaliaNode = taxonomyNode;\n }\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addTaxa(animaliaNode, taxa);\n }\n\n TaxaLookup.getInstance().populate(\"test.bin\");\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addTaxa(animaliaNode, taxa);\n }\n\n\n //TaxaLookup.getInstance().writeToXML();\n return taxonomyNode;\n }",
"protected void writeStart() throws IOException {\n writer.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\r\n writer.write(\"<kml xmlns=\\\"http://www.opengis.net/kml/2.2\\\" xmlns:gx=\\\"http://www.google.com/kml/ext/2.2\\\">\\n\");\r\n writer.write(\"<Document>\\n\");\r\n writer.write(\"<name>\" + this.title + \"</name>\\n\");\r\n writer.write(\"<description></description>\\n\");\r\n writer.write(\"<Style id=\\\"\" + LINE_STYLE_YELLOW + \"\\\">\\n\");\r\n writer.write(\"<LineStyle>\\n\");\r\n writer.write(\"<color>7f00ffff</color>\\n\");\r\n writer.write(\"<width>4</width>\\n\");\r\n writer.write(\"</LineStyle>\\n\");\r\n writer.write(\"</Style>\\n\");\r\n writer.write(\"<Style id=\\\"\" + LINE_STYLE_BLUE + \"\\\">\\n\");\r\n writer.write(\"<LineStyle>\\n\");\r\n writer.write(\"<color>7fff0000</color>\\n\");\r\n writer.write(\"<width>4</width>\\n\");\r\n writer.write(\"</LineStyle>\\n\");\r\n writer.write(\"</Style>\\n\");\r\n writer.write(\"<Style id=\\\"\" + LINE_STYLE_RED + \"\\\">\\n\");\r\n writer.write(\"<LineStyle>\\n\");\r\n writer.write(\"<color>7f0000ff</color>\\n\");\r\n writer.write(\"<width>4</width>\\n\");\r\n writer.write(\"</LineStyle>\\n\");\r\n writer.write(\"</Style>\\n\");\r\n }",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public void processElementEpilog(Element node) \r\n\tthrows Exception \r\n\t{\r\n\tWriter xml = getWriter();\r\n\tindentLess();\r\n\txml.write(getIndent());\r\n\txml.write(\"</\");\r\n\txml.write(node.getNodeName());\r\n\txml.write(\">\\n\");\r\n\treturn;\t\r\n\t}",
"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 }",
"@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }"
] |
[
"0.5574297",
"0.55577224",
"0.55051416",
"0.5496263",
"0.5416725",
"0.5302682",
"0.5285145",
"0.5191641",
"0.50919014",
"0.507994",
"0.5058979",
"0.5058753",
"0.50501496",
"0.5049562",
"0.50057405",
"0.49943945",
"0.49844128",
"0.49404913",
"0.49355778",
"0.49271485",
"0.4915364",
"0.4911364",
"0.4893182",
"0.48870814",
"0.48677197",
"0.48491248",
"0.48473227",
"0.4835571",
"0.48289964",
"0.4825534",
"0.48228186",
"0.4815132",
"0.4811892",
"0.481004",
"0.48067284",
"0.47939682",
"0.4776494",
"0.47737637",
"0.47698325",
"0.47672",
"0.47533098",
"0.47517607",
"0.47504377",
"0.47344542",
"0.4723268",
"0.4721297",
"0.4716249",
"0.47141844",
"0.47127596",
"0.4710699",
"0.47106028",
"0.4707521",
"0.46978626",
"0.4695207",
"0.4695207",
"0.4693113",
"0.4692108",
"0.46706557",
"0.4660559",
"0.46582144",
"0.46540785",
"0.46520633",
"0.46431172",
"0.46420735",
"0.4629889",
"0.46235102",
"0.46149862",
"0.46138832",
"0.46071663",
"0.45993373",
"0.45986852",
"0.4590539",
"0.4580239",
"0.45770535",
"0.4574357",
"0.45735854",
"0.45664525",
"0.45617327",
"0.45586517",
"0.45447728",
"0.4534122",
"0.45320356",
"0.45217672",
"0.45216486",
"0.45158947",
"0.4508308",
"0.45062917",
"0.45058125",
"0.44998956",
"0.44989023",
"0.4498384",
"0.44981208",
"0.44965625",
"0.44961426",
"0.44930995",
"0.44925967",
"0.44829226",
"0.44816038",
"0.44809863",
"0.4479821"
] |
0.6430851
|
0
|
Makes the node from the Document.
|
public Node makeNode(Document xmlDoc) {
Element out = xmlDoc.createElement(this.parent.getHeader());
this.parent.updateSave();
if (this.nodeText != null) {
out.setTextContent(nodeText);
}
this.makeAtributes(out);
for (int i = 0; i < this.children.size(); i++) {
out.appendChild(this.children.get(i).makeNode(xmlDoc));
}
return out;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;",
"public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}",
"protected Node newNode() {\n\t\treturn new RCPOMDocument();\n\t}",
"private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }",
"private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}",
"public void newDocument();",
"public DocumentNode getDocumentNode() {\n return documentNode;\n}",
"public DocumentManipulator(Document document) {\n\t\tthis.document = document;\n\t\tinit();\n\t}",
"private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }",
"Object getDocumentNode(Object contextNode);",
"private void makeInvalidNode(final Document doc) {\n Element element;\n\n // create INVALID-textnode in DOM tree\n element = doc.createElement(\"mi\");\n element.setAttribute(\"mathcolor\", \"#F00\");\n element.appendChild(doc.createTextNode(\"#\"));\n\n if (this.getNode().getParentNode() == null) {\n doc.replaceChild(element, this.getNode());\n } else {\n this.getNode().getParentNode()\n .replaceChild(element, this.getNode());\n }\n\n // remove bi-subtree\n this.setNode(element);\n this.child = null;\n this.invalid = true;\n }",
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"void visitDocumentNode(DocumentNode node);",
"protected Node copyInto(Node n) {\n\t\tsuper.copyInto(n);\n\t\tRCPOMDocument sd = (RCPOMDocument) n;\n\t\tsd.localizableSupport = new LocalizableSupport(RESOURCES, getClass()\n\t\t\t\t.getClassLoader());\n\t\tsd.url = url;\n\t\treturn n;\n\t}",
"@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }",
"TNode createTNode();",
"protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }",
"public abstract WalkerDocument newDocument(IOptions options);",
"private Node getNativeTree() {\n\n\t\t// if nativeDoc is null go create it now\n\t\tif (nativeDoc == null) {\n\t\t\tif (vicarLabel != null) {\n\t\t\t\tif (debug) {\n\t\t\t\t\tSystem.out.println(\"VicarMetadata.getNativeTree() calling VicarLabelToDOM\");\n\t\t\t\t\tSystem.out.println(\"nativeMetadataFormatName \" + nativeMetadataFormatName);\n\t\t\t\t}\n\t\t\t\tVicarLabelToDOM vl2DOM = new VicarLabelToDOM(vicarLabel, nativeMetadataFormatName);\n\t\t\t\t// vl2DOM.setNativeMetadataFormatName( nativeMetadataFormatName\n\t\t\t\t// );\n\n\t\t\t\tnativeDoc = vl2DOM.getDocument();\n\t\t\t} else {\n\t\t\t\tif (debug) {\n\t\t\t\t\tSystem.out.println(\"vicarLabel is null - It must be set using setVicarLabel() before this call\");\n\t\t\t\t\tSystem.out.println(\"OR nativeDoc must be set using setFromTree()\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn nativeDoc; // Document is a subclass of Node\n\t}",
"private static void addNodeToDocument(Node node, Node newHead, Document document, int mode) {\n NodeList childList = node.getChildNodes();\n switch (mode) {\n case DET_MODE:\n buildDetailedNode(document, childList, newHead);\n break;\n case SUM_MODE:\n buildSummaryNode(document, childList, newHead);\n break;\n case DOUBLES_MODE:\n buildDoublesNode(document, childList, newHead);\n break;\n default:\n break;\n }\n }",
"protected Document() {/* intentionally empty block */}",
"public DocumentBuilder() {\n this.document = new Document();\n }",
"public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);",
"public static Document newDocument() throws XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\t\t\t\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.newDocument();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"protected void assembleDocument() {\n\n // Create the missive\n this.createMissive();\n }",
"private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }",
"public XMLMessage(Document document) {\n setDocument(document);\n }",
"RootNode getRootNode();",
"public Document newDocument() {\n\t\treturn new org.apache.xerces.dom.DocumentImpl();\n\t}",
"protected void syncWithDocument(Node node) {\n/* 429 */ if (node.getNodeType() != 9)\n/* */ {\n/* 431 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 435 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 439 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 441 */ int substStart = \"$element_\".length();\n/* */ \n/* 443 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 445 */ Field f = fs[i];\n/* */ \n/* 447 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 449 */ String id = f.getName().substring(substStart);\n/* */ \n/* 451 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 453 */ if (idNode == null) {\n/* */ \n/* 455 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 457 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 461 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 465 */ } catch (Exception e) {\n/* */ \n/* 467 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }",
"public Element generateElement(Document dom);",
"protected void syncWithDocument(Node node) {\n/* 383 */ if (node.getNodeType() != 9)\n/* */ {\n/* 385 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 389 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 393 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 395 */ int substStart = \"$element_\".length();\n/* */ \n/* 397 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 399 */ Field f = fs[i];\n/* */ \n/* 401 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 403 */ String id = f.getName().substring(substStart);\n/* */ \n/* 405 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 407 */ if (idNode == null) {\n/* */ \n/* 409 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 411 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 415 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 419 */ } catch (Exception e) {\n/* */ \n/* 421 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }",
"protected void syncWithDocument(Node node) {\n/* 797 */ if (node.getNodeType() != 9)\n/* */ {\n/* 799 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 803 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 807 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 809 */ int substStart = \"$element_\".length();\n/* */ \n/* 811 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 813 */ Field f = fs[i];\n/* */ \n/* 815 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 817 */ String id = f.getName().substring(substStart);\n/* */ \n/* 819 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 821 */ if (idNode == null) {\n/* */ \n/* 823 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 825 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 829 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 833 */ } catch (Exception e) {\n/* */ \n/* 835 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"public Node(){}",
"Node(String e){\r\n this.element = e;\r\n }",
"protected SceneGraphObject createNode() {\n\tthrow new SGIORuntimeException(\"createNode() not implemented in class \"+this.getClass().getName());\n }",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }",
"void init(Document doc) {\n mDoc = doc;\n mDoc.getDocumentElement().normalize();\n load();\n }",
"public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }",
"public void setContent(Document doc) {\n\t\tString text = doc.getContent().toString();\n\t\txmldoc = new NlptoolsshareType();\n\t\tDocumentType docxml = new DocumentType();\n\t\tdocxml.setText(text);\n\t\txmldoc.setDocument(docxml);\n\t}",
"Documento createDocumento();",
"abstract protected UiElementNode getRootNode();",
"public Parent toNode() {\n if (this.webView == null)\n return this.webView = createWebView();\n else\n return this.webView;\n }",
"public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }",
"public WalkerDocument newDocument(DocumentTag adapter) { return newDocument(adapter, null); }",
"Documentable createDocumentable();",
"public DocumentWrapper(XmlNode doc, String baseURI, Configuration config) {\n //System.err.println(\"Creating DocumentWrapper for \" +node);\n this.node = doc;\n this.parent = null;\n this.index = 0;\n //super(doc, null, 0);\n if (doc.get_NodeType().Value != XmlNodeType.Document) {\n throw new IllegalArgumentException(\"Node must be a DOM Document\");\n }\n node = doc;\n nodeKind = Type.DOCUMENT;\n this.baseURI = baseURI;\n docWrapper = this;\n\n// // Find out if this is a level-3 DOM implementation\n// Method[] methods = doc.getClass().getMethods();\n// for (int i=0; i<methods.length; i++) {\n// if (methods[i].getName().equals(\"isSameNode\")) {\n// level3 = true;\n// break;\n// }\n// }\n //System.err.println(\"Setting configuration\");\n setConfiguration(config);\n }",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}",
"public Document fromJsoup(final net.simpleframework.lib.org.jsoup.nodes.Document in) {\n\t\tValidate.notNull(in);\n\t\tDocumentBuilder builder;\n\t\ttry {\n\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\tfinal DOMImplementation impl = builder.getDOMImplementation();\n\t\t\tDocument out;\n\n\t\t\tout = builder.newDocument();\n\t\t\tfinal net.simpleframework.lib.org.jsoup.nodes.DocumentType doctype = in.documentType();\n\t\t\tif (doctype != null) {\n\t\t\t\tfinal org.w3c.dom.DocumentType documentType = impl.createDocumentType(doctype.name(),\n\t\t\t\t\t\tdoctype.publicId(), doctype.systemId());\n\t\t\t\tout.appendChild(documentType);\n\t\t\t}\n\t\t\tout.setXmlStandalone(true);\n\n\t\t\tconvert(in, out);\n\t\t\treturn out;\n\t\t} catch (final ParserConfigurationException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\t}",
"public void startDocument() {\n _root = null;\n _target = null;\n _prefixMapping = null;\n _parentStack = new Stack<>();\n }",
"public static Document createDocument(final Element element) {\n\t\tfinal DOMImplementation domImplementation = element.getOwnerDocument().getImplementation(); //get the DOM implementation used to create the document\n\t\t//create a new document corresponding to the element\n\t\t//TODO bring over the doctype, if needed\n\t\tfinal Document document = domImplementation.createDocument(element.getNamespaceURI(), element.getNodeName(), null);\n\t\tfinal Node importedNode = document.importNode(element, true); //import the element into our new document\n\t\tdocument.replaceChild(importedNode, document.getDocumentElement()); //set the element clone as the document element of the new document\n\t\treturn document; //return the document we created\n\t}",
"@Override\n protected Document parseAsDom(final Document input) {\n return input;\n }",
"public static org.dom4j.Document convert( org.w3c.dom.Document dom) \r\n {\n org.dom4j.io.DOMReader reader = new org.dom4j.io.DOMReader();\r\n return reader.read(dom);\r\n }",
"public Node<E> createNode(E e) {\n Node<E> nodeFromCache = getNodeFromCache();\n if (nodeFromCache == null) {\n return super.createNode(e);\n }\n nodeFromCache.setValue(e);\n return nodeFromCache;\n }",
"protected Node deepCopyInto(Node n) {\n\t\tsuper.deepCopyInto(n);\n\t\tRCPOMDocument sd = (RCPOMDocument) n;\n\t\tsd.localizableSupport = new LocalizableSupport(RESOURCES, getClass()\n\t\t\t\t.getClassLoader());\n\t\tsd.url = url;\n\t\treturn n;\n\t}",
"private static Node createNode(Element elt, CityMap map) throws XMLException {\n\t\tint id = Integer.parseInt(elt.getAttribute(\"id\"));\n\t\tint x = (int) (Integer.parseInt(elt.getAttribute(\"x\")) * 1.2);\n\t\tint y = (int) (Integer.parseInt(elt.getAttribute(\"y\")) * 1.2);\n\t\tNode n = new Node(id, x, y);\n\t\tNodeList sectionList = elt.getElementsByTagName(\"LeTronconSortant\");\n\t\tfor (int i = 0; i < sectionList.getLength(); i++) {\n\t\t\tn.addOutgoing(createSection((Element) sectionList.item(i), id));\n\t\t\tmap.addSection(createSection((Element) sectionList.item(i), id));\n\t\t}\n\t\treturn n;\n\t}",
"public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }",
"public Node createDOMSubtree(final Document doc) {\n int i;\n String aName;\n Node childNode;\n Element element;\n IBiNode tmp;\n\n element = doc.createElementNS(this.namespaceURI, this.eName);\n\n // add attributes\n if (this.attrs != null) {\n for (i = 0; i < this.attrs.getLength(); i++) {\n aName = this.attrs.getLocalName(i);\n\n if (\"\".equals(aName)) {\n aName = this.attrs.getQName(i);\n }\n\n element.setAttribute(aName, this.attrs.getValue(i));\n }\n }\n\n // create DOM-tree of children\n if (this.child != null) {\n tmp = this.child;\n\n while (tmp != null) {\n childNode = tmp.createDOMSubtree(doc);\n\n if (childNode != null) {\n element.appendChild(childNode);\n }\n\n tmp = tmp.getSibling();\n }\n }\n\n this.namespaceURI = null;\n this.eName = null;\n this.attrs = null;\n\n this.setNode(element);\n return element;\n }",
"void visit(Document document);",
"private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }",
"@Override\n public Document createState(Payload payload) {\n // TODO: Use a pool of Documents so that they can be reused\n // TODO: Consider moving this to super class\n return new org.apache.lucene.document.Document();\n }",
"Node getNode();",
"@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }",
"public abstract QueueElement newQueueElement (Document doc);",
"public Mapping createInstance(Document xbrlDocument) {\n List<Document> docList = new ArrayList<>();\n docList.add(xbrlDocument);\n return createInstance(docList);\n }",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"public MyDocument() {\r\n }",
"public Node(){\n\n\t\t}",
"public Node getRootNode() throws Exception;",
"public static Document convert(final net.simpleframework.lib.org.jsoup.nodes.Document in) {\n\t\treturn (new W3CDom().fromJsoup(in));\n\t}",
"public Doc newDocument(String documentElementName) {\n return new Doc(documentElementName);\n }",
"Rule Document() {\n // Push 1 DocumentNode onto the value stack\n return Sequence(\n WhiteSpace(),\n ZeroOrMore(Header()),\n ZeroOrMore(Definition()),\n EOI,\n actions.pushDocumentNode());\n }",
"public Document readDocument();",
"public static Node copy(Node xmlXML, DOMResult xmlResult)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n return transform\r\n (xmlXML, \r\n getIdentityTransformationStylesheetDocument(),\r\n xmlResult);\r\n }",
"public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }",
"abstract public void data(Document document, Element rootElement);",
"void nodeCreate( long id );",
"public static void initXMLdoc() throws Exception {\n\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n\tdoc = impl.createDocument(null,null,null);\n }",
"void createNode(NodeKey key);",
"public void doNew() {\n\n if (!canChangeDocuments()) {\n return;\n }\n \n setDocument(fApplication.createNewDocument());\n }",
"void createNode(String path);",
"public NamespaceResolver(Document document) {\n sourceDocument = document;\n }",
"public ModDocument() {\r\n\t\tsuper();\r\n\t}",
"private Node updateNode(DocumentBuilder docBuilder, Document doc, Node parentNode, String newNode, Node oldNode) {\r\n try {\r\n Node fragmentNode = docBuilder.parse(new InputSource(new StringReader(newNode))).getDocumentElement();\r\n fragmentNode = doc.importNode(fragmentNode, true);\r\n parentNode.replaceChild(fragmentNode, oldNode);\r\n } catch (SAXException se) {\r\n se.printStackTrace();\r\n } catch (IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n return parentNode;\r\n }",
"private DocumentFragment selectFrom(Node n, Module mod) {\n DocumentFragment local_df = mod.getDoc().createDocumentFragment();\n if (isWanted(n)) {\n\n local_df.appendChild(mod.getDoc().importNode(n.cloneNode(true), true));\n if (local_df.getLastChild().getNodeName().compareToIgnoreCase(\"img\") == 0) {\n // we make this a default wxtimage or not \n //((Element)local_df.getLastChild()).setAttribute(\"class\",\"wxtimage\");\n }\n return local_df;\n }\n\n if (n.hasChildNodes()) {\n Node child = n.getFirstChild();\n while (child != null) {\n local_df.appendChild(selectFrom(child, mod));\n child = child.getNextSibling();\n }\n\n }\n return local_df;\n }",
"private Node() {\n\n }",
"private Document createDocumentForTest() {\r\n\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();\r\n em.getTransaction().begin();\r\n\r\n FilePath path = new FilePath();\r\n path.setModifyDate(new Date());\r\n path.setPath(\"path\");\r\n\r\n StudioFileType studioFileType = new StudioFileType();\r\n studioFileType.setDescription(\"description\");\r\n studioFileType.setExtension(\"extension\");\r\n studioFileType.setImageFile(true);\r\n studioFileType.setSort(1);\r\n em.persist(studioFileType);\r\n\r\n MimeType mimeType = new MimeType();\r\n mimeType.setDescription(\"description\");\r\n mimeType.setStudioFileType(studioFileType);\r\n mimeType.setMimeTypeId(1L);\r\n em.persist(mimeType);\r\n\r\n DocumentType type = new DocumentType();\r\n type.setDescription(\"description\");\r\n type.setDocumentTypeId(1L);\r\n em.persist(type);\r\n\r\n em.getTransaction().commit();\r\n em.close();\r\n\r\n Document document = new Document();\r\n document.setOriginalFileName(\"originalFileName\");\r\n document.setSystemFileName(\"systemFileName\");\r\n document.setPath(path);\r\n document.setMimeType(mimeType);\r\n document.setType(type);\r\n document.setCreateDate(new Date());\r\n\r\n return document;\r\n }",
"private void loadFromDoc(Document data) {\n if (total == null) { total = data; return; }\n\tNodeList tree = data.getDocumentElement().getChildNodes();\n\tfor (int i = 0; i < tree.getLength(); i++) {\n Node totroot = total.getDocumentElement();\n totroot.insertBefore(total.importNode(tree.item(i), true), null);\n }\n }",
"@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;",
"protected RCPOMDocument() {\n\t}",
"public RMDocument getDocument() { return _parent!=null? _parent.getDocument() : null; }"
] |
[
"0.63973206",
"0.61572367",
"0.60868883",
"0.6045998",
"0.59634495",
"0.5909197",
"0.58688635",
"0.585037",
"0.57345235",
"0.57250065",
"0.57141644",
"0.5698787",
"0.569845",
"0.5695769",
"0.56612825",
"0.56610304",
"0.56034327",
"0.5575655",
"0.5572094",
"0.5562724",
"0.55626583",
"0.5530182",
"0.55286825",
"0.55060005",
"0.5458599",
"0.5456202",
"0.5432133",
"0.54312706",
"0.5421957",
"0.5412375",
"0.5408629",
"0.54084665",
"0.5396395",
"0.5393516",
"0.5376394",
"0.5376394",
"0.5376394",
"0.5376394",
"0.53585416",
"0.53443444",
"0.5336088",
"0.5335412",
"0.5334857",
"0.5322731",
"0.5316719",
"0.5303558",
"0.5292079",
"0.5289388",
"0.5287226",
"0.52829283",
"0.5225068",
"0.522343",
"0.5222963",
"0.5222963",
"0.5222963",
"0.5222963",
"0.5215489",
"0.5208821",
"0.5190422",
"0.5190058",
"0.5180223",
"0.5176847",
"0.51700115",
"0.5163521",
"0.5161926",
"0.5157966",
"0.5149939",
"0.5143779",
"0.5139991",
"0.5136864",
"0.5134192",
"0.5133626",
"0.51327467",
"0.5132049",
"0.5130028",
"0.5127785",
"0.5127762",
"0.5127435",
"0.5125337",
"0.51225734",
"0.5112165",
"0.5110604",
"0.5110402",
"0.5107624",
"0.5102566",
"0.50991315",
"0.5096127",
"0.5090944",
"0.5089668",
"0.5087166",
"0.50863403",
"0.50843495",
"0.50822705",
"0.50771695",
"0.5076857",
"0.5075094",
"0.5070984",
"0.5068363",
"0.5065813",
"0.50632966"
] |
0.65857905
|
0
|
Pushes BindingSet up to the pipe, pushing null indicates end of data. In case you need to interrupt the tree data flow (when for example just a Slice of data is expected), it is necessary to indicate that no more data are expected down the tree (to stop feeding this pipe) by returning false and also to indicate up the tree that this is the end of data (by pushing null into the parent pipe in the evaluation tree).
|
public abstract boolean push(BindingSet bs) throws InterruptedException;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean push(BindingSet bs) throws InterruptedException {\n if (bs == null) {\n return parent.push(null);\n }\n\t\tif (QueryResults.bindingSetsCompatible(bindings, bs)) {\n // Make sure the provided problemVars are part of the returned results\n // (necessary in case of e.g. LeftJoin and Union arguments)\n QueryBindingSet extendedResult = null;\n for (String problemVar : problemVars) {\n if (!bs.hasBinding(problemVar)) {\n if (extendedResult == null) {\n extendedResult = new QueryBindingSet(bs);\n }\n extendedResult.addBinding(problemVar, bindings.getValue(problemVar));\n }\n }\n if (extendedResult != null) {\n bs = extendedResult;\n }\n return parent.push(bs);\n\t\t}\n return true;\n }",
"public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }",
"public synchronized boolean \n ready() \n throws PipeException \n {\n if (!connected) {\n throw new PipeException(\"Pipe not connected\");\n } else if (closedByReader) {\n throw new PipeException(\"Pipe closed\");\n } else if (writeSide != null && !writeSide.isAlive()\n\t && !closedByWriter && (in < 0)) {\n throw new PipeException(\"Write end dead\");\n }\n if (in < 0) {\n return false;\n } else {\n return true;\n }\n }",
"public boolean empty() {\n if (stackIn.empty() && stackOut.empty()) {\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic boolean push(T e) {\r\n\t\tif(!isFull()) {\r\n\t\t\tstack[topIndex + 1] = e;\r\n\t\t\ttopIndex++;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (!stack.isEmpty() || localRoot!=null);\n\t\t}",
"@Override\r\n\tpublic boolean pushValuesForward() {\r\n\t\tboolean isModified = false;\r\n\t\tfor (Port port : getPorts()) {\r\n\t\t\tif (port == getClockPort() || port == getResetPort()\r\n\t\t\t\t\t|| port == getGoPort() && port.getValue() == null) {\r\n\t\t\t\t/*\r\n\t\t\t\t * Do nothing for clock or reset, since they are not passed out\r\n\t\t\t\t * of the OutBuf's module. Also do nothing if the go is not\r\n\t\t\t\t * being fed with a value.\r\n\t\t\t\t */\r\n\t\t\t} else {\r\n\t\t\t\tfinal Value pushedValue = port.getValue();\r\n\t\t\t\tif (pushedValue == null) {\r\n\t\t\t\t\tthrow new NullPointerException(\r\n\t\t\t\t\t\t\t\"Null pointer on pushedValue: \"\r\n\t\t\t\t\t\t\t\t\t+ port.getPeer().showIDLogical()\r\n\t\t\t\t\t\t\t\t\t+ \" Owner: \"\r\n\t\t\t\t\t\t\t\t\t+ this.getOwner().getIDGlobalType()\r\n\t\t\t\t\t\t\t\t\t+ \" Line: \"\r\n\t\t\t\t\t\t\t\t\t+ this.getOwner().getIDSourceInfo()\r\n\t\t\t\t\t\t\t\t\t\t\t.getSourceLine());\r\n\t\t\t\t}\r\n\t\t\t\t/*\r\n\t\t\t\t * If the Bus doesn't have a Value yet, create one.\r\n\t\t\t\t */\r\n\t\t\t\tValue peerValue = port.getPeer().getValue();\r\n\t\t\t\tif (peerValue == null) {\r\n\t\t\t\t\tport.getPeer().setSize(pushedValue.getSize(),\r\n\t\t\t\t\t\t\tpushedValue.isSigned());\r\n\t\t\t\t\tpeerValue = port.getPeer().getValue();\r\n\t\t\t\t\tisModified = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Rather than depending on the behavior of\r\n\t\t\t\t * Bus.pushValueForward(Value), we need to be more precise here,\r\n\t\t\t\t * since an OutBuf is part Module and part Component. Compare\r\n\t\t\t\t * each pair of Bits.\r\n\t\t\t\t */\r\n\t\t\t\tfor (int i = 0; i < pushedValue.getSize(); i++) {\r\n\t\t\t\t\tfinal Bit pushedBit = pushedValue.getBit(i);\r\n\t\t\t\t\tfinal Bit peerBit = peerValue.getBit(i);\r\n\r\n\t\t\t\t\tif (!pushedValue.bitEquals(i, peerValue, i)\r\n\t\t\t\t\t\t\t&& peerBit.isCare()) {\r\n\t\t\t\t\t\tif (getOwner().isOpaque()) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * If this OutBuf lives in an opaque Module, then we\r\n\t\t\t\t\t\t\t * have to avoid pushing through internal non-global\r\n\t\t\t\t\t\t\t * Bits. Since we don't push don't-cares, that only\r\n\t\t\t\t\t\t\t * leaves constants as viable propagatees.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif (pushedBit.isConstant()) {\r\n\t\t\t\t\t\t\t\tpeerValue.setBit(i, pushedBit);\r\n\t\t\t\t\t\t\t\tisModified = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (pushedBit.isConstant()\r\n\t\t\t\t\t\t\t\t|| !pushedBit.isGlobal()) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Otherwise, this OutBuf lives in a transparent\r\n\t\t\t\t\t\t\t * Module, and we can push through both constant and\r\n\t\t\t\t\t\t\t * internal Bus Bits.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tpeerValue.setBit(i, pushedBit);\r\n\t\t\t\t\t\t\tisModified = true;\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 (pushedValue.getCompactedSize() != peerValue\r\n\t\t\t\t\t\t.getCompactedSize()) {\r\n\t\t\t\t\tfinal Bit msb = peerValue.getBit(pushedValue\r\n\t\t\t\t\t\t\t.getCompactedSize() - 1);\r\n\t\t\t\t\tfor (int i = pushedValue.getCompactedSize(); i < peerValue\r\n\t\t\t\t\t\t\t.getSize(); i++) {\r\n\t\t\t\t\t\tpeerValue.setBit(i, msb);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isModified;\r\n\t}",
"@Override\r\n public boolean canBePushed()\r\n {\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}",
"public boolean isSet() {\n return !this.stack.isEmpty();\n }",
"public boolean empty() {\n return stack.empty();\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}",
"public boolean isSetGpipe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GPIPE$36) != 0;\r\n }\r\n }",
"public boolean empty() {\r\n return this.stack.isEmpty();\r\n }",
"public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn bst.isEmpty();\n\t}",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}",
"public boolean empty() {\n System.out.println(stack.isEmpty());\n return stack.isEmpty();\n }",
"public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }",
"private boolean shouldAppendPackagingData(StackTraceElementProxy step, StackTraceElementProxy previousStep) {\n if (step == null || step.getClassPackagingData() == null) {\n return false;\n }\n if (previousStep == null || previousStep.getClassPackagingData() == null) {\n return true;\n }\n return !step.getClassPackagingData().equals(previousStep.getClassPackagingData());\n }",
"public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}",
"public boolean empty() {\n\t\tif(stackTmp.isEmpty() && stack.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean empty() {\n return push.isEmpty();\n }",
"public boolean empty() {\n return stack1.empty();\n }",
"@Override\r\n\t\t\tpublic boolean hasNext() {\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}",
"public boolean flushPipelinedData() throws IOException {\n if (buffer == null || (buffer.getBuffer().position() == 0 && allAreClear(state, FLUSHING))) {\n return next.flush();\n }\n return flushBuffer();\n }",
"@Override\n\tpublic boolean push(T e) throws StackOverflowException {\n\t\t//If the stack is full, throw Exception\n\t\tif(this.isFull()) throw new StackOverflowException(\"The stack is full. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\tNode newNode = new Node(e, topNode);\n\t\t\ttopNode = newNode;\n\t\t\tnodeCount++;\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }",
"public boolean isEmpty()\n {\n return stack.isEmpty();\n }",
"public boolean canStack() {\n return this.hasStacking;\n }",
"public boolean isMaterializing() {\n return this != PIPELINED;\n }",
"void setBind() {\n for (int i = 1; i < size(); i++) {\n Exp f = get(i);\n if (f.isFilter() && f.size() > 0) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND\n // no bind (?x = ?y) in case of JOIN\n && (!Query.testJoin || bind.isBindCst())) {\n int j = i - 1;\n while (j > 0 && get(j).isFilter()) {\n j--;\n }\n if (j >= 0) {\n Exp g = get(j);\n if ((g.isEdge() || g.isPath())\n && (bind.isBindCst() ? g.bind(bind.first().getNode()) : true)) {\n bind.status(true);\n g.setBind(bind);\n }\n }\n }\n }\n }\n }",
"private boolean needToGrow() {\n if(QUEUE[WRITE_PTR] != null) {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean placeStack(TakStack stack, Point p){\n // START CONDITIONS\n //----------------\n // Is the space empty that we are trying to place\n if(stacks[p.x][p.y].size() > 0) return false;\n //----------------\n // END CONDITIONS\n\n // Valid - move start operation\n // Add new piece to the stack\n stacks[p.x][p.y].add(stack);\n\n // RETURN FALSE WHILE NOT IMPLEMENTED\n return true;\n }",
"public boolean isEmpty() {\n return downStack.isEmpty();\n }",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"public boolean isFull() {\n return (this.top == this.stack.length);\n }",
"@Test\n public void whenTreeIsBlankThanHasNextIsFalse() {\n assertThat(this.tree.iterator().hasNext(), is(false));\n }",
"public boolean empty(){\n return this.top == -1;\n }",
"public boolean isEmpty() {\n return (fifoEmpty.getBoolean());\n }",
"public boolean isSetData() {\n return this.data != null;\n }",
"public boolean isEmpty() {\n return stackImpl.isEmpty();\n }",
"protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }",
"boolean hasFinalData()\r\n/* 297: */ {\r\n/* 298:322 */ return this.tail.readIndex != this.tail.get();\r\n/* 299: */ }",
"public boolean empty()\n {\n boolean check;\n if(head.data == null && tail.data == null)\n check = true;\n else\n check = false;\n return check;\n }",
"@Override\n public final PipeStep pipeStepSetNext(final PipeStep nextPipeStep) {\n // This is global to all encoders\n Encoder.nextPipeStep = nextPipeStep;\n return nextPipeStep;\n }",
"public boolean isEmpty() {return stackList.isEmpty();}",
"@Override\r\n\tpublic boolean pushValuesBackward() {\r\n\t\tboolean mod = false;\r\n\r\n\t\tValue resultBusValue = getResultBus().getValue();\r\n\r\n\t\tValue newValue = new Value(resultBusValue.getSize(),\r\n\t\t\t\tresultBusValue.isSigned());\r\n\r\n\t\tfor (int i = 0; i < resultBusValue.getSize(); i++) {\r\n\t\t\tBit bit = resultBusValue.getBit(i);\r\n\t\t\tif (!bit.isCare()) {\r\n\t\t\t\tnewValue.setBit(i, Bit.DONT_CARE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmod |= getDataPorts().get(0).pushValueBackward(newValue);\r\n\r\n\t\treturn mod;\r\n\t}",
"public boolean isEmpty() {\n \treturn stack.size() == 0;\n }",
"public boolean push(T x) throws NullPointerException\n\t{\n\t\tcheckNull(x);\n\t\treturn list.add(0, x);\n\t}",
"public boolean empty() {\n return inSt.isEmpty() && outSt.isEmpty();\n\n }",
"boolean isSetEnd();",
"public boolean isEmpty() { return curChunker() == null; }",
"public boolean empty() {\n return this.stack2.size() == 0 && this.stack1.size() == 0;\n }",
"public GlBuffer commit(boolean push){\n return commit(this.chunks, push);\n }",
"public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }",
"public boolean isEmpty()\n {\n return stack.size() == 0;\n }",
"public boolean empty() {\n return popStack.isEmpty();\n }",
"@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isEmpty() {\n return this.top == null;\n }",
"public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }",
"public boolean empty() {\n return stack1.isEmpty() && stack2.isEmpty();\n }",
"public void pipeCheck(int x, int y, Building pipe) {\t\r\n\t\tif(pipe.getInputItem(0)!=null) {\r\n\r\n\r\n\t\t\t//make variable for item in pipe\r\n\t\t\tItem pipeItem=pipe.getInputItem(0);\r\n\r\n\t\t\t//If the pipes output is upwards\r\n\t\t\tif(((Pipe) pipe).getOutput().equals(\"left\")) {\r\n\r\n\t\t\t\t//error check\r\n\t\t\t\tif(x-1>=0) {\r\n\t\t\t\t\t//Check if it can send items up and if its a pipe\r\n\t\t\t\t\tif((tileMap[x-1][y].getBuilding() instanceof Pipe)) {\r\n\r\n\t\t\t\t\t\tBuilding m=tileMap[x-1][y].getBuilding();\r\n\t\t\t\t\t\t//Only go into the other pipe if its input is down\r\n\t\t\t\t\t\tif(((Pipe) m).getInput().equals(\"right\")) {\r\n\r\n\t\t\t\t\t\t\t//Only add item if there is space or item is already in the pipe\r\n\t\t\t\t\t\t\tif(m.getInputItem(0)==null || (m.getInputItem(0).getClass().equals(pipe.getInputItem(0).getClass()))) {\r\n\r\n\t\t\t\t\t\t\t\t//add the item to the building\r\n\t\t\t\t\t\t\t\ttileMap[x-1][y].getBuilding().addInputItem(pipe.getInputItem(0));\r\n\t\t\t\t\t\t\t\ttileMap[x][y].getBuilding().removeInputItem(0);\r\n\t\t\t\t\t\t\t} //end of if checking items\r\n\t\t\t\t\t\t} //end of if checking the pipes input\r\n\t\t\t\t\t\t//if the building isnt a pipe then try to put item into building\r\n\t\t\t\t\t}else if( (tileMap[x-1][y].getBuilding()!=null) && (tileMap[x-1][y].getBuilding().getInputInventorySize()>0)) {\r\n\t\t\t\t\t\tboolean check=false;\r\n\t\t\t\t\t\t//for loop to find a spot to put into building\r\n\t\t\t\t\t\tfor(int i=0;i<tileMap[x-1][y].getBuilding().getInputInventorySize();i++) {\r\n\r\n\t\t\t\t\t\t\t//if item wasnt added already only add if there is space or it exists in the building\r\n\t\t\t\t\t\t\tif( !(check) && ( (tileMap[x-1][y].getBuilding().getInputItem(i).getClass().equals(pipeItem.getClass())) || (tileMap[x][y+1].getBuilding().getInputItem(i)==null))) {\r\n\t\t\t\t\t\t\t\tcheck=true; //change to true so it doesnt add anymore items\r\n\t\t\t\t\t\t\t\ttileMap[x-1][y].getBuilding().addInputItem(pipeItem); //adds item to the building\r\n\t\t\t\t\t\t\t}\t//end of adding check if\r\n\t\t\t\t\t\t} //end of for loop \t\r\n\t\t\t\t\t}\t//end of building add if\r\n\t\t\t\t} //end of error check if\r\n\t\t\t} //end of pipe if\r\n\r\n\t\t\t//If the pipes output is downwards\r\n\t\t\tif(((Pipe) pipe).getOutput().equals(\"right\")) {\r\n\r\n\t\t\t\tif(x+1<201){\r\n\t\t\t\t\t//Check if it can send items down and if its a pipe\r\n\t\t\t\t\tif((tileMap[x+1][y].getBuilding() instanceof Pipe)) {\r\n\r\n\t\t\t\t\t\tBuilding m=tileMap[x+1][y].getBuilding();\r\n\t\t\t\t\t\t//Only go into the other pipe if its input is up\r\n\t\t\t\t\t\tif(((Pipe) m).getInput().equals(\"left\")) {\r\n\r\n\t\t\t\t\t\t\t//Only add item if there is space or item is already in the pipe\r\n\t\t\t\t\t\t\tif(m.getInputItem(0)==null || (m.getInputItem(0).getClass().equals(pipe.getInputItem(0).getClass()))) {\r\n\r\n\t\t\t\t\t\t\t\t//add the item to the building\r\n\t\t\t\t\t\t\t\ttileMap[x+1][y].getBuilding().addInputItem(pipe.getInputItem(0));\r\n\t\t\t\t\t\t\t\ttileMap[x][y].getBuilding().removeInputItem(0);\r\n\r\n\t\t\t\t\t\t\t} //end of if checking items\r\n\t\t\t\t\t\t} //end of if checking the pipes input\r\n\r\n\t\t\t\t\t\t//if the building isnt a pipe then try to put item into building\r\n\t\t\t\t\t}else if( (tileMap[x+1][y].getBuilding()!=null) && (tileMap[x+1][y].getBuilding().getInputInventorySize()>0)) {\r\n\r\n\t\t\t\t\t\tboolean check=false;\r\n\t\t\t\t\t\t//for loop to find a spot to put into building\r\n\t\t\t\t\t\tfor(int i=0;i<tileMap[x+1][y].getBuilding().getInputInventorySize();i++) {\r\n\r\n\t\t\t\t\t\t\t//if item wasnt added already only add if there is space or it exists in the building\r\n\t\t\t\t\t\t\tif( !(check) && ( (tileMap[x+1][y].getBuilding().getInputItem(i).getClass().equals(pipeItem.getClass())) || (tileMap[x+1][y].getBuilding().getInputItem(i)==null))) {\r\n\t\t\t\t\t\t\t\tcheck=true; //change to true so it doesnt add anymore items\r\n\t\t\t\t\t\t\t\ttileMap[x+1][y].getBuilding().addInputItem(pipeItem); //adds item to the building\r\n\t\t\t\t\t\t\t}\t//end of adding check if\r\n\t\t\t\t\t\t} //end of for loop \t\r\n\t\t\t\t\t}\t//end of building add if\r\n\t\t\t\t} //end of error check if\r\n\t\t\t} //end of pipe if\r\n\r\n\r\n\t\t\t//If the pipes output is left\r\n\t\t\tif(((Pipe) pipe).getOutput().equals(\"up\")) {\r\n\r\n\r\n\t\t\t\tif (y-1>=0){\r\n\t\t\t\t\t//Check if it can send items down and if its a pipe\r\n\t\t\t\t\tif((tileMap[x][y-1].getBuilding() instanceof Pipe)) {\r\n\r\n\t\t\t\t\t\tBuilding m=tileMap[x][y-1].getBuilding();\r\n\t\t\t\t\t\t//Only go into the other pipe if its input is down\r\n\t\t\t\t\t\tif(((Pipe) m).getInput().equals(\"down\")) {\r\n\r\n\t\t\t\t\t\t\t//Only add item if there is space or item is already in the pipe\r\n\t\t\t\t\t\t\tif(m.getInputItem(0)==null || (m.getInputItem(0).getClass().equals(pipe.getInputItem(0).getClass()))) {\r\n\r\n\t\t\t\t\t\t\t\t//add the item to the building\r\n\t\t\t\t\t\t\t\ttileMap[x][y-1].getBuilding().addInputItem(pipe.getInputItem(0));\r\n\t\t\t\t\t\t\t\ttileMap[x][y].getBuilding().removeInputItem(0);\r\n\t\t\t\t\t\t\t} //end of if checking items\r\n\t\t\t\t\t\t} //end of if checking the pipes input\r\n\r\n\t\t\t\t\t\t//if the building isnt a pipe then try to put item into building\r\n\t\t\t\t\t}else if( (tileMap[x][y-1].getBuilding()!=null) && (tileMap[x][y-1].getBuilding().getInputInventorySize()>0)) {\r\n\r\n\t\t\t\t\t\tboolean check=false;\r\n\t\t\t\t\t\t//for loop to find a spot to put into building\r\n\t\t\t\t\t\tfor(int i=0;i<tileMap[x][y-1].getBuilding().getInputInventorySize();i++) {\r\n\r\n\t\t\t\t\t\t\t//if item wasnt added already only add if there is space or it exists in the building\r\n\t\t\t\t\t\t\tif( !(check) && ( (tileMap[x][y-1].getBuilding().getInputItem(i).getClass().equals(pipeItem.getClass())) || (tileMap[x][y-1].getBuilding().getInputItem(i)==null))) {\r\n\t\t\t\t\t\t\t\tcheck=true; //change to true so it doesnt add anymore items\r\n\t\t\t\t\t\t\t\ttileMap[x][y-1].getBuilding().addInputItem(pipeItem); //adds item to the building\r\n\t\t\t\t\t\t\t}\t//end of adding check if\r\n\t\t\t\t\t\t} //end of for loop \t\r\n\t\t\t\t\t}\t//end of building add if\r\n\t\t\t\t} //end of error check if\r\n\t\t\t} //end of pipe if\r\n\r\n\t\t\t//If the pipes output is downwards\r\n\t\t\tif(((Pipe) pipe).getOutput().equals(\"down\")) {\r\n\r\n\r\n\t\t\t\tif(y+1<201){\r\n\t\t\t\t\t//Check if it can send items down and if its a pipe\r\n\t\t\t\t\tif((tileMap[x][y+1].getBuilding() instanceof Pipe)) {\r\n\r\n\t\t\t\t\t\tBuilding m=tileMap[x][y+1].getBuilding();\r\n\t\t\t\t\t\t//Only go into the other pipe if its input is down\r\n\t\t\t\t\t\tif(((Pipe) m).getInput().equals(\"up\")) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"ffound pipe\");\r\n\r\n\t\t\t\t\t\t\t//Only add item if there is space or item is already in the pipe\r\n\t\t\t\t\t\t\tif(m.getInputItem(0)==null || (m.getInputItem(0).getClass().equals(pipe.getInputItem(0).getClass()))) {\r\n\r\n\t\t\t\t\t\t\t\t//add the item to the building\r\n\t\t\t\t\t\t\t\ttileMap[x][y+1].getBuilding().addInputItem(pipe.getInputItem(0));\r\n\t\t\t\t\t\t\t\ttileMap[x][y].getBuilding().removeInputItem(0);\r\n\t\t\t\t\t\t\t} //end of if checking items\r\n\t\t\t\t\t\t} //end of if checking the pipes input\r\n\r\n\t\t\t\t\t\t//if the building isnt a pipe then try to put item into building\r\n\t\t\t\t\t}else if( (tileMap[x][y+1].getBuilding()!=null) && (tileMap[x][y+1].getBuilding().getInputInventorySize()>0)) {\r\n\r\n\t\t\t\t\t\tboolean check=false;\r\n\t\t\t\t\t\t//for loop to find a spot to put into building\r\n\t\t\t\t\t\tfor(int i=0;i<tileMap[x][y+1].getBuilding().getInputInventorySize();i++) {\r\n\r\n\t\t\t\t\t\t\t//if item wasnt added already only add if there is space or it exists in the building\r\n\t\t\t\t\t\t\tif( !(check) && ( (tileMap[x][y+1].getBuilding().getInputItem(i).getClass().equals(pipeItem.getClass())) || (tileMap[x][y+1].getBuilding().getInputItem(i)==null))) {\r\n\t\t\t\t\t\t\t\tcheck=true; //change to true so it doesnt add anymore items\r\n\t\t\t\t\t\t\t\ttileMap[x][y+1].getBuilding().addInputItem(pipeItem); //adds item to the building\r\n\t\t\t\t\t\t\t}\t//end of adding check if\r\n\t\t\t\t\t\t} //end of for loop \t\r\n\t\t\t\t\t}\t//end of building add if\r\n\t\t\t\t} //end of error check if\r\n\t\t\t} //end of pipe if\r\n\t\t}//end of null item if\r\n\t}",
"public boolean isPartOfRecStack() {\n\treturn isPartOfRecStack;\n }",
"boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}",
"public boolean appendStack(final StackInterface pStack);",
"public boolean emptyStack() {\n return (expStack.size() == 0);\n }",
"public boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}",
"@Override\n\tpublic boolean isRefush() {\n\t\treturn false;\n\t}",
"public boolean needsBinding(){\n\t\tArrayList<String> bindVars = getNeedBindingVars();\n\t\tif(bindVars.isEmpty())\n\t\t\treturn false;\n\t\telse return true;\n\t}",
"public void testIsEmpty() {\n assertTrue(test1.isEmpty());\n test1.append(new Buffer(3, rec));\n assertFalse(test1.isEmpty());\n }",
"public boolean isEmpty(){ return Objects.isNull(this.begin ); }",
"public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }",
"@Override\n\tpublic void outAFalseExpr(AFalseExpr node) {\n\t\til.append(new PUSH(cp, false));\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}",
"public boolean isLeaf() { return (data.length == 0); }",
"public boolean validCommand(CommandStack stack) throws EmptyStackException {\n\t\tif(stack.peek() instanceof Maps) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\telse if(stack.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean isEmpty()\r\n {\n return this.top == null;\r\n }",
"final void makeNonRecursive() { this.unboundedBoundSymbols = null; }",
"private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}",
"public boolean drain() {\n return true;\n }",
"public boolean isRoot(){\n\t\treturn bound.isRoot();\n\t}",
"public void setHasStacking(boolean bool) {\n this.hasStacking = bool;\n }",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}",
"final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }",
"boolean hasIsBinding();",
"public boolean empty() {\n if(root.next==null)\n return true;\n return false;\n }",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"public boolean empty() \n { \n\treturn(top==-1);\n \n }",
"public boolean isDone() {\n return done.isTrue() || depth == PSymGlobal.getConfiguration().getMaxStepBound();\n }",
"public boolean isFull() {\n\t\treturn end != null;\n\t}",
"public boolean empty() {\r\n\t\treturn backSteps.empty();\r\n\t}",
"public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }",
"@Override\r\n protected TupleBatch fetchNextReady() throws DbException {\r\n final Operator child = getChild();\r\n\r\n if (child.eos()) {\r\n return getResultBatch();\r\n }\r\n\r\n TupleBatch tb = child.nextReady();\r\n while (tb != null) {\r\n for (int row = 0; row < tb.numTuples(); ++row) {\r\n int rowHash = HashUtils.hashSubRow(tb, gfields, row);\r\n IntArrayList hashMatches = groupKeyMap.get(rowHash);\r\n if (hashMatches == null) {\r\n hashMatches = newKey(rowHash);\r\n newGroup(tb, row, hashMatches);\r\n continue;\r\n }\r\n boolean found = false;\r\n for (int i = 0; i < hashMatches.size(); i++) {\r\n int value = hashMatches.get(i);\r\n if (TupleUtils.tupleEquals(tb, gfields, row, groupKeys, grpRange, value)) {\r\n updateGroup(tb, row, aggStates.get(value));\r\n found = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!found) {\r\n newGroup(tb, row, hashMatches);\r\n }\r\n Preconditions.checkState(groupKeys.numTuples() == aggStates.size());\r\n }\r\n tb = child.nextReady();\r\n }\r\n\r\n /*\r\n * We know that child.nextReady() has returned <code>null</code>, so we have processed all tuple we can. Child is\r\n * either EOS or we have to wait for more data.\r\n */\r\n if (child.eos()) {\r\n return getResultBatch();\r\n }\r\n\r\n return null;\r\n }"
] |
[
"0.5850237",
"0.5076347",
"0.5010096",
"0.49967736",
"0.49839553",
"0.49637482",
"0.49546736",
"0.49506277",
"0.49492782",
"0.491073",
"0.48917124",
"0.48848063",
"0.4860059",
"0.48431826",
"0.4839835",
"0.48120156",
"0.4804452",
"0.47954914",
"0.47819322",
"0.47819322",
"0.47798142",
"0.47762984",
"0.4759679",
"0.4739313",
"0.47309262",
"0.46998537",
"0.4694085",
"0.46745077",
"0.46731383",
"0.46705613",
"0.46673703",
"0.46655",
"0.4660838",
"0.46173447",
"0.46007127",
"0.4592848",
"0.45825523",
"0.45820683",
"0.45805484",
"0.45745856",
"0.45730007",
"0.45698947",
"0.45624015",
"0.45607802",
"0.455908",
"0.45581347",
"0.4555963",
"0.45539895",
"0.45381472",
"0.45358795",
"0.45351484",
"0.45346376",
"0.45330453",
"0.45283502",
"0.45274028",
"0.45113307",
"0.450374",
"0.44961825",
"0.4496029",
"0.44838893",
"0.44795108",
"0.44713587",
"0.44697332",
"0.4459609",
"0.44511017",
"0.4448827",
"0.44409338",
"0.44399148",
"0.44375142",
"0.44289717",
"0.44263056",
"0.44219452",
"0.44207948",
"0.44171435",
"0.44148624",
"0.44085404",
"0.44078997",
"0.44070145",
"0.44027478",
"0.44025192",
"0.44017482",
"0.43976235",
"0.43916896",
"0.4387568",
"0.4368543",
"0.43606362",
"0.43594652",
"0.4355891",
"0.43487316",
"0.43484938",
"0.43480653",
"0.43439582",
"0.4341797",
"0.43392816",
"0.43359795",
"0.43297967",
"0.43271962",
"0.43239543",
"0.43233258",
"0.43229678"
] |
0.5688607
|
1
|
Returns an iterator on the binding set pipe
|
CloseableIteration<BindingSet, QueryEvaluationException> evaluate(TupleExpr expr, BindingSet bindings) {
BindingSetPipeIterator root = new BindingSetPipeIterator();
evaluateTupleExpr(root.pipe, expr, bindings);
return root;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Iterator getBindings() {\r\n\t\treturn bindings == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(bindings.values());\r\n\t}",
"public final Iterator iterator() {\n return new SinksIterator(this);\n }",
"public Iterator<Item> iterator() {\n return new LinkedBagIterator();\n }",
"public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }",
"public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}",
"public final Iterable getChainingIterator() {\n\t// TODO: Implemente the chaining iterator and add generic type to Iterable. I suppose it is this class.\n\tthrow new IllegalAccessError(\"Not implemented yet\");\n }",
"public Iterator getBindings(QName portType) {\r\n\t\tif (portType == null || bindings == null) {\r\n\t\t\treturn EmptyStructures.EMPTY_ITERATOR;\r\n\t\t}\r\n\t\tList l = new ArrayList();\r\n\t\tfor (Iterator it = bindings.values().iterator(); it.hasNext();) {\r\n\t\t\tWSDLBinding binding = (WSDLBinding) it.next();\r\n\t\t\tif (portType.equals(binding.getTypeName())) {\r\n\t\t\t\tl.add(binding);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new ReadOnlyIterator(l);\r\n\t}",
"public Iterator<GPoint> iterator() {\n\t\treturn points.iterator();\n\t}",
"public Iterator getIterator() {\n\t\t\n\t\treturn blocks.iterator();\n\t\t\n\t}",
"@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}",
"public DCPList getBinding() {\n return binding;\n }",
"public Iterator<DystoreTuple> iterator()\t{ return tuple_data.iterator(); }",
"Iterator<Entry<String, Var>> getIterator() {\n\t\treturn iter;\n\t}",
"public Iterator <item_t> iterator () {\n return new itor ();\n }",
"public Iterator<T> iterator() {\n\t\treturn new ReferentIterator();\n\t}",
"public Iterator getPorts() throws ServiceException {\n\t\treturn null;\n\t}",
"public Iterator<K> iterator() {\n Set keySet = RBT.keySet();\n Iterator itr = keySet.iterator();\n return itr;\n }",
"void setBind() {\n for (int i = 1; i < size(); i++) {\n Exp f = get(i);\n if (f.isFilter() && f.size() > 0) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND\n // no bind (?x = ?y) in case of JOIN\n && (!Query.testJoin || bind.isBindCst())) {\n int j = i - 1;\n while (j > 0 && get(j).isFilter()) {\n j--;\n }\n if (j >= 0) {\n Exp g = get(j);\n if ((g.isEdge() || g.isPath())\n && (bind.isBindCst() ? g.bind(bind.first().getNode()) : true)) {\n bind.status(true);\n g.setBind(bind);\n }\n }\n }\n }\n }\n }",
"public Iterator<I> getReservables(){\n IterI iter = new IterI();\n return iter;\n }",
"public Iterator iterator()\n {\n return new HashSetIterator();\n }",
"public Iterator<K> iterator()\n {\n return (new HashSet<K>(verts)).iterator();\n }",
"public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }",
"public Iterator<K> iterator()\n {\n\treturn (new HashSet<K>(verts)).iterator();\n }",
"public PTIterator iterator() {\n if (iterator == null && isValid())\n iterator = new PTIteratorImpl(handle);\n return iterator;\n }",
"protected List<QueryIterator> nextStage(List<Binding> bindingsCouldBeParent) {\n\n\t\tList<QueryIterator> allIterators = new ArrayList<QueryIterator>();\n\t\tString filterType = (String) getExecContext().getContext().get(\n\t\t\t\tConstants.FILTER_TYPE);\n\t\t// creating filter Ops.\n\t\tList<Op> filterOps = QCFilter.substitute(opService,\n\t\t\t\tbindingsCouldBeParent, filterType);\n\t\tfor (int i = 0; i < filterOps.size(); i++) {\n\t\t\t// creating numeric binding list using numeric op\n\t\t\tList<Binding> bindingList = ServiceBound\n\t\t\t\t\t.exec((OpService) filterOps.get(i), getExecContext()\n\t\t\t\t\t\t\t.getContext());\n\n\t\t\t// logger.debug(\"Binding pairs is beginning to be generated...\");\n\t\t\t// long before = System.currentTimeMillis();\n\t\t\t// find binding pairs\n\t\t\tList<BindingPair> bindingPairs = generateBindingPairs(bindingList,\n\t\t\t\t\tbindingsCouldBeParent, opService.getService(),\n\t\t\t\t\t((OpService) filterOps.get(i)).getService());\n\t\t\t// long after = System.currentTimeMillis();\n\t\t\t// logger.debug(MessageFormat.format(\n\t\t\t// \"Binding pairs has been generated in \\\"{0}\\\" miliseconds\",\n\t\t\t// after - before));\n\n\t\t\t// logger.debug(\"Binding pairs is beginning to be intersected...\");\n\t\t\t// before = System.currentTimeMillis();\n\t\t\t// intersect bindings and their parents contained in binding pairs\n\t\t\tbindingPairs = intersectBindingPairs(bindingPairs);\n\t\t\t// after = System.currentTimeMillis();\n\t\t\t// logger.debug(MessageFormat\n\t\t\t// .format(\"Binding pairs has been intersected in \\\"{0}\\\" miliseconds\",\n\t\t\t// after - before));\n\n\t\t\t// logger.debug(\"Query iterators is beginning to be generated...\");\n\t\t\t// before = System.currentTimeMillis();\n\t\t\t// make query iterators using binding pairs\n\t\t\tList<QueryIterator> queryIterators = generateQueryIterators(bindingPairs);\n\t\t\t// after = System.currentTimeMillis();\n\t\t\t// logger.debug(MessageFormat\n\t\t\t// .format(\"Query iterators has been generated in \\\"{0}\\\" miliseconds\",\n\t\t\t// after - before));\n\n\t\t\t// reverse iterators\n\t\t\tCollections.reverse(queryIterators);\n\t\t\tallIterators.addAll(queryIterators);\n\t\t}\n\t\treturn allIterators;\n\t}",
"public Iterator<T> iterator() {\n return new SetIterator<T>(this.head);\n }",
"@Override\n\tpublic Iterator<Statement> iterator() {\n\t\treturn iterator(null, null, null);\n\t}",
"public BindElements getBindAccess() {\n\t\treturn pBind;\n\t}",
"public Iterable<Key> iterator() {\n Queue<Key> queue = new LinkedList<>();\n inorder(root, queue);\n return queue;\n }",
"@Override\n public Iterator<T> iterator() {\n return forwardIterator();\n }",
"@Override\n public Iterator iterator() {\n return new PairIterator();\n }",
"public Iterator iterator() {\n\t\treturn new LinkedListIterator();\n\t}",
"@Override\r\n\tpublic Iterator<K> iterator() {\n\t\treturn keys.iterator();\r\n\t}",
"public Iterator<E> iterator()\n {\n return stack.iterator();\n }",
"public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}",
"public SequenceIterator getUnderlyingIterator() {\n return base;\n }",
"@Override\n public Iterator<E> iterator() {\n return new HashBagIterator<>(this, map.entrySet().iterator());\n }",
"public T iterator();",
"@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new StackIter();\n\t}",
"public Iterator<Shape> iterator(){\n\t\treturn shapes.iterator();\n\t}",
"public Iterator<VirtualMachine> iterator() {\n return mapped_vms.iterator();\n }",
"Pipe listenedBy(PipeListener listener);",
"public DbIterator iterator() {\n\t\tif(gbfield==-1)\n\t\t\treturn new AggregateIterator(false);\n\t\treturn new AggregateIterator(true);\n\t}",
"public Iterator<T> iterator() {\r\n return byGenerations();\r\n }",
"@Override public java.util.Iterator<Function> iterator() {return new JavaIterator(begin(), end()); }",
"public Iterator<T> getIterator();",
"public interface Binding extends AutoCloseable, Consumer<Bindings> {\n\n\n}",
"public Iterator<Integer> iterator() {\n\t\treturn new WrappedIntIterator(intIterator());\n\t}",
"public Iterator<E> iterator() {\n\t\treturn new LinkedListItr();\r\n\t}",
"public SList_Iterator<T> iterator() {\n return new iterator();\n }",
"public Iterable<HashNode> iterator() {\n\t\treturn bucket;\n\t\t//for(HashTable<Character, Integer>.HashNode x : HT.iterator()) {\n\t}",
"public InstructionIterator getInstructions(AddressSetView addrSet, boolean forward);",
"public DataIterator getCompositeData(AddressSetView addrSet, boolean forward);",
"@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new StackIterator();\n\t}",
"public Iterator getPortTypes() {\r\n\t\treturn portTypes == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(portTypes.values());\r\n\t}",
"public BindingElements getBindingAccess() {\n\t\treturn pBinding;\n\t}",
"@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }",
"public Iterator<T> iterator() { return new DLLIterator(); }",
"Iterator<T> iterator();",
"public Iterator getIterator() {\n/* 87 */ return this.iterator;\n/* */ }",
"public Iterator<T> iterator(){\r\n\t\treturn new ChainedArraysIterator();\r\n\t}",
"public IntIterator intIterator() {\n\t\treturn new BufferedEWAHintIterator(this);\n\t}",
"public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }",
"public Iterator<E> iterator(){\r\n return new IteratorHelper();\r\n }",
"public ReadOnlyIterator<Relation> getIncomingRelations();",
"@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn vertices.iterator();\n\t}",
"public Iterator iterator() {\n\t\treturn new IteratorLinkedList<T>(cabeza);\r\n\t}",
"@Override\n public Iterator<T> iterator() {\n return new UsedNodesIterator<>(this);\n }",
"public Iterator<String> iterator() {\n return strings.iterator();\n }",
"public Iterator<Item> iterator() {\n return new AIterator();\n }",
"public Iterator<Join> iterator()\n {\n return joins.iterator();\n }",
"@Override\r\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator();\r\n\t}",
"@DISPID(-4)\n @PropGet\n java.util.Iterator<Com4jObject> iterator();",
"public java.lang.String[] getBindingKey() {\r\n return bindingKey;\r\n }",
"@Override\r\n public Iterator<KVPair<K, V>> iterator() {\n return new ChainedIterator<>(this.chains, load);\r\n }",
"public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }",
"public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }",
"public static ListIterator iterator() {\r\n\t\treturn getIterator(Direction.class);\r\n\t}",
"@Override\n public Iterator<Map.Entry<K, V>> iterator() {\n return new SetIterator();\n }",
"public DbIterator iterator() {\n \tTupleDesc td = generateTupleDesc();\n List<Tuple> tuples = new ArrayList<Tuple>();\n if(gbField == NO_GROUPING){\n \tTuple tuple = new Tuple(td);\n \ttuple.setField(0, new IntField(tupleCounts.get(null)));\n \ttuples.add(tuple);\n } else {\n \tfor(Object key : tupleCounts.keySet()){\n \t\tTuple tuple = new Tuple(td);\n \t\ttuple.setField(0, (Field)key);\n \t\ttuple.setField(1, new IntField(tupleCounts.get(key)));\n \t\ttuples.add(tuple);\n \t}\n }\n return new TupleIterator(td, tuples);\n }",
"public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}",
"@DISPID(-4) //= 0xfffffffc. The runtime will prefer the VTID if present\r\n @VTID(22)\r\n java.util.Iterator<Com4jObject> iterator();",
"public Iterator<T> getIterator() {\n return new Iterator(this);\n }",
"Set<Interface> getInterfacesByPort(ConnectPoint port);",
"public Iterator getIterator() {\n return myElements.iterator();\n }",
"public DbIterator iterator() {\n \t\tArrayList<Tuple> tuples = new ArrayList<Tuple>(); //tuples to return\n TupleDesc desc;\n String[] names;\n\t \tType[] types;\n\t \t// these will be the TupleDesc to return\n\t \tif (gbfield == Aggregator.NO_GROUPING){\n\t \t\tnames = new String[] {\"aggregateVal\"};\n\t \t\ttypes = new Type[] {Type.INT_TYPE};\n\t \t} else {\n\t \t\tnames = new String[] {\"groupVal\", \"aggregateVal\"};\n\t \t\ttypes = new Type[] {gbfieldtype, Type.INT_TYPE};\n\t \t}\n\t \tdesc = new TupleDesc(types, names);\n\t \t\n\t \tTuple toAdd;\n\t \t// iterate over the GROUP BY entries and make the tuples\n\t \tIterator<Map.Entry<Field, Integer>> it = gbcount.entrySet().iterator();\n\t \tMap.Entry<Field, Integer> nextfield;\n\t \tint aggregateVal = 0;\n\t \twhile(it.hasNext()) {\n\t \t\tnextfield = it.next();\n\t \t\taggregateVal = nextfield.getValue();\n\t \t\ttoAdd = new Tuple(desc);\n\t \t\tif(gbfield == Aggregator.NO_GROUPING) {\n\t \t\t\ttoAdd.setField(0, new IntField(aggregateVal));\n\t \t\t} else {\n\t \t\t\ttoAdd.setField(0, nextfield.getKey());\n\t \t\t\ttoAdd.setField(1, new IntField(aggregateVal));\n\t \t\t}\n\t \t\ttuples.add(toAdd);\n\t \t}\n\t \treturn new TupleIterator(desc, tuples);\n }",
"public Iterator<E> iterator();",
"public Iterator<E> iterator();",
"public Iterator<E> iterator();",
"public Iterator<String> iterator();",
"@Override\n\tpublic final Iterator<T> iterator() {\n\t\treturn new IteratorImpl<>(value.get());\n\t}",
"abstract public Iterator<BlockReportReplica> iterator();",
"public Iterator iterator ( ) {\n\t\tArrayList<String> it= new ArrayList();\n\t\tfor(Map.Entry<String, String> i : pwds.entrySet()) {\n\t\t\tit.add(pwds.get(i));\n\t\t\tit.add(salts.get(i));\n\t\t}\n\t\treturn it.iterator();\n\t}",
"public Iterator<T> iterator();",
"public Iterator<T> iterator();",
"public Iterator<T> iterator();",
"public Iterator<T> iterator();",
"@Override\n public Iterator<Range> iterator() {\n return iterator(defaultValueMapper);\n }",
"public DbIterator iterator() {\n // some code goes here\n ArrayList<Tuple> tuples = new ArrayList<Tuple>();\n for (Field key : m_aggregateData.keySet()) {\n \tTuple nextTuple = new Tuple(m_td);\n \tint recvValue;\n \t\n \tswitch (m_op) {\n \tcase MIN: case MAX: case SUM:\n \t\trecvValue = m_aggregateData.get(key);\n \t\tbreak;\n \tcase COUNT:\n \t\trecvValue = m_count.get(key);\n \t\tbreak;\n \tcase AVG:\n \t\trecvValue = m_aggregateData.get(key) / m_count.get(key);\n \t\tbreak;\n \tdefault:\n \t\trecvValue = setInitData(); // shouldn't reach here\n \t}\n \t\n \tField recvField = new IntField(recvValue);\n \tif (m_gbfield == NO_GROUPING) {\n \t\tnextTuple.setField(0, recvField);\n \t}\n \telse {\n \t\tnextTuple.setField(0, key);\n \t\tnextTuple.setField(1, recvField);\n \t}\n \ttuples.add(nextTuple);\n }\n return new TupleIterator(m_td, tuples);\n }",
"Iterator<E> iterator();"
] |
[
"0.7200178",
"0.6045952",
"0.594209",
"0.57776964",
"0.56614506",
"0.565056",
"0.5555096",
"0.5526934",
"0.54813975",
"0.54747176",
"0.5434892",
"0.5412634",
"0.5407789",
"0.53766507",
"0.53623366",
"0.5340708",
"0.53396904",
"0.53325015",
"0.5321897",
"0.52626723",
"0.525155",
"0.5245569",
"0.5238421",
"0.52369165",
"0.523283",
"0.5218831",
"0.52064353",
"0.52040094",
"0.5192512",
"0.5188921",
"0.5170913",
"0.5158397",
"0.5157663",
"0.5157224",
"0.51547515",
"0.51520544",
"0.5136913",
"0.5133218",
"0.51158404",
"0.51093775",
"0.5107231",
"0.51056755",
"0.5100839",
"0.50999",
"0.5090316",
"0.5088678",
"0.5088125",
"0.5083",
"0.5081233",
"0.5073831",
"0.50695074",
"0.5065125",
"0.5058261",
"0.5058221",
"0.50545615",
"0.5051135",
"0.50472116",
"0.504222",
"0.5039243",
"0.50353265",
"0.50318485",
"0.5028143",
"0.5025556",
"0.5023544",
"0.5008841",
"0.5006331",
"0.50005484",
"0.4996806",
"0.49924296",
"0.4992365",
"0.4991051",
"0.49859738",
"0.49849877",
"0.4982761",
"0.49748966",
"0.49738327",
"0.49728236",
"0.49686494",
"0.49661013",
"0.49626207",
"0.49590167",
"0.495406",
"0.49376324",
"0.49366063",
"0.4931547",
"0.49313232",
"0.4926928",
"0.4926928",
"0.4926928",
"0.4926593",
"0.4926249",
"0.4922978",
"0.49204803",
"0.4919149",
"0.4919149",
"0.4919149",
"0.4919149",
"0.4916111",
"0.49147567",
"0.4911682"
] |
0.5910253
|
3
|
Handle badly designed left join
|
@Override
public boolean push(BindingSet bs) throws InterruptedException {
if (bs == null) {
return parent.push(null);
}
if (QueryResults.bindingSetsCompatible(bindings, bs)) {
// Make sure the provided problemVars are part of the returned results
// (necessary in case of e.g. LeftJoin and Union arguments)
QueryBindingSet extendedResult = null;
for (String problemVar : problemVars) {
if (!bs.hasBinding(problemVar)) {
if (extendedResult == null) {
extendedResult = new QueryBindingSet(bs);
}
extendedResult.addBinding(problemVar, bindings.getValue(problemVar));
}
}
if (extendedResult != null) {
bs = extendedResult;
}
return parent.push(bs);
}
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test(timeout = 4000)\n public void test025() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.leftJoin(\"*nT\", stringArray0, \"tYr\", (String) null, stringArray0);\n assertEquals(\"left join tYr as null on *nT.null = null.null and *nT.null = null.null and *nT.null = null.null and *nT.null = null.null and *nT.null = null.null\", string0);\n }",
"@Test\n\tpublic void leftJoin(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t//Define Roots\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\t\t\n\t\t//Define Predicates\n\t\tJoin<Object, Object> leftJoin = courseRoot.join(\"students\",JoinType.LEFT);\n\t\t\n\t\t//Add predicates\n\t\t\n\t\t//Define TypedQuery\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\n\t\tList<Course> resultList = query.getResultList();\n\t\t\n\t\tlogger.info(\"LEFT JOINED COURSES ==> {}\", resultList);\n\t\t\n\t}",
"@Test\r\n public void testLeftJoinWhenAntonymDoNotHaveAnyKeysMatchWithSynonym() {\r\n synonym.put(\"fond\", \"enamored\");\r\n synonym.put(\"wrath\", \"anger\");\r\n synonym.put(\"diligent\", \"employed\");\r\n synonym.put(\"outfit\", \"garb\");\r\n synonym.put(\"guide\", \"usher\");\r\n\r\n antonym.put(\"love\", \"hate\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"diligent\", \"employed\", null},\r\n {\"outfit\", \"garb\", null},\r\n {\"wrath\", \"anger\", null},\r\n {\"guide\", \"usher\", null},\r\n {\"fond\", \"enamored\", null} };\r\n assertArrayEquals(expected, result);\r\n }",
"<V1, R> KTable<K, R> leftJoin(KTable<K, V1> other, ValueJoiner<V, V1, R> joiner);",
"private LeftJoin convertToLeftJoin(GraphPattern gp, ElementOptional optional) throws SemQAException {\n\t\tGraphPattern right = sparqlToSemQA(optional.getOptionalElement());\r\n\t\treturn new LeftJoin(gp, right);\r\n\t}",
"@Test(timeout = 4000)\n public void test026() throws Throwable {\n String[] stringArray0 = new String[8];\n String string0 = SQLUtil.leftJoin(\"r45_Ruks|DMzE=\", stringArray0, \"\", \" join \", stringArray0);\n assertEquals(\"left join as join on r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null and r45_Ruks|DMzE=.null = join .null\", string0);\n }",
"@Test(timeout = 4000)\n public void test010() throws Throwable {\n String[] stringArray0 = new String[1];\n String string0 = SQLUtil.leftJoin(\"aT7W`oI)N(jLl^oF<HQ\", stringArray0, \"aT7W`oI)N(jLl^oF<HQ\", \"aT7W`oI)N(jLl^oF<HQ\", stringArray0);\n assertEquals(\"left join aT7W`oI)N(jLl^oF<HQ as aT7W`oI)N(jLl^oF<HQ on aT7W`oI)N(jLl^oF<HQ.null = aT7W`oI)N(jLl^oF<HQ.null\", string0);\n }",
"@Test\r\n public void testLeftJoinWhenSynonymHasOneEntryWhileAntonymHasMany() {\r\n synonym.put(\"fond\", \"enamored\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"@Test\r\n public void testLeftJoinKeysInSynonymBothExistAndNotExistInAntonym() {\r\n synonym.put(\"fond\", \"enamored\");\r\n synonym.put(\"wrath\", \"anger\");\r\n synonym.put(\"diligent\", \"employed\");\r\n synonym.put(\"outfit\", \"garb\");\r\n synonym.put(\"guide\", \"usher\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n antonym.put(\"flow\", \"jam\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"diligent\", \"employed\", \"idle\"},\r\n {\"outfit\", \"garb\", null},\r\n {\"wrath\", \"anger\", \"delight\"},\r\n {\"guide\", \"usher\", \"follow\"},\r\n {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeftEvenWhenOnlyIdSelected() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getId());\n \n validate(\"select hobj3.id from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Override\n public void visit(final OpLeftJoin opLeftJoin) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpLeftJoin\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n addOp(OpLeftJoin.create(rewriteOp2(opLeftJoin, rewriter), rewriter.getResult(), opLeftJoin.getExprs()));\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeft() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getAge());\n \n validate(\"select hobj3.age from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Test(timeout = 4000)\n public void test028() throws Throwable {\n String[] stringArray0 = new String[8];\n String string0 = SQLUtil.leftJoin(\"\", stringArray0, \"9b41-\", \"\", stringArray0);\n assertEquals(\"left join 9b41- as on .null = .null and .null = .null and .null = .null and .null = .null and .null = .null and .null = .null and .null = .null and .null = .null\", string0);\n }",
"@Test\r\n public void testLeftJoinWhenBothHashMapAreEmpty() {\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{};\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"@Test\n public void testLeftJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"@Test\r\n public void testLeftJoinWhenAntonymHaveAllKeysMatchWithSynonym() {\r\n synonym.put(\"fond\", \"enamored\");\r\n synonym.put(\"wrath\", \"anger\");\r\n synonym.put(\"diligent\", \"employed\");\r\n synonym.put(\"guide\", \"usher\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"diligent\", \"employed\", \"idle\"},\r\n {\"wrath\", \"anger\", \"delight\"},\r\n {\"guide\", \"usher\", \"follow\"},\r\n {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"@Test(timeout = 4000)\n public void test121() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"8\", (String[]) null, \"6>tpBolA_iS93{\\\"H\", \"6>tpBolA_iS93{\\\"H\", (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 JavaPairRDD<String, Tuple2<Integer, org.apache.spark.api.java.Optional<Integer>>> leftJoinExample(){\n return firstSet\n .leftOuterJoin(secondSet);\n }",
"@Test\n public void testLeftOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"abstract protected Object joinClause(Object o1, Object o2);",
"@Test(timeout = 4000)\n public void test120() throws Throwable {\n String[] stringArray0 = new String[8];\n String string0 = SQLUtil.leftJoin(\"@H VqbTNp872Q\", stringArray0, (String) null, \"\\nLIMIT \", stringArray0);\n assertEquals(\"left join null as \\nLIMIT on @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null and @H VqbTNp872Q.null = \\nLIMIT .null\", string0);\n }",
"protected abstract Object calcJoinRow();",
"private ExampleSetBuilder performLeftJoin(ExampleSet leftExampleSet, ExampleSet rightExampleSet,\n\t\t\tList<AttributeSource> originalAttributeSources, List<Attribute> unionAttributeList,\n\t\t\tPair<Attribute[], Attribute[]> keyAttributes, Set<DoubleArrayWrapper> matchedExamplesInRightTable)\n\t\t\t\t\tthrows ProcessStoppedException {\n\t\tExampleSetBuilder builder = ExampleSets.from(unionAttributeList);\n\n\t\tAttribute[] leftKeyAttributes = null;\n\t\tAttribute[] rightKeyAttributes = null;\n\t\tMap<DoubleArrayWrapper, List<Example>> rightKeyMapping = null;\n\t\tboolean useId = getParameterAsBoolean(PARAMETER_USE_ID);\n\n\t\tleftKeyAttributes = keyAttributes.getFirst();\n\t\trightKeyAttributes = keyAttributes.getSecond();\n\t\tif (!useId) {\n\t\t\t// create key mapping for right example set\n\t\t\trightKeyMapping = createKeyMapping(rightExampleSet, rightKeyAttributes, leftKeyAttributes);\n\t\t}\n\n\t\tint progressCounter = 0;\n\t\t// iterate over all example from left table and search for matching examples in right table:\n\t\tfor (Example leftExample : leftExampleSet) {\n\t\t\tList<Example> matchingRightExamples = getMatchingExamples(leftExampleSet, rightExampleSet, leftKeyAttributes,\n\t\t\t\t\trightKeyMapping, useId, leftExample);\n\n\t\t\tif (matchingRightExamples != null) {\n\t\t\t\t// add combination of left example and all matching right examples\n\t\t\t\tfor (Example rightExample : matchingRightExamples) {\n\t\t\t\t\taddCombinedOccurence(originalAttributeSources, unionAttributeList, builder, leftExample, rightExample);\n\t\t\t\t\tif (matchedExamplesInRightTable != null) {\n\t\t\t\t\t\tmatchedExamplesInRightTable\n\t\t\t\t\t\t.add(new DoubleArrayWrapper(getKeyValues(rightExample, rightKeyAttributes)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else { // no rows with this key in right table\n\t\t\t\t// insert this row with null values for the right table\n\t\t\t\taddLeftOnlyOccurence(originalAttributeSources, unionAttributeList, builder, leftExample);\n\t\t\t}\n\t\t\t// trigger operator progress every 100 examples\n\t\t\t++progressCounter;\n\t\t\tif (progressCounter % 100 == 0) {\n\t\t\t\tgetProgress().step(100);\n\t\t\t\tprogressCounter = 0;\n\t\t\t}\n\t\t}\n\t\treturn builder;\n\t}",
"@Test(timeout = 4000)\n public void test038() throws Throwable {\n String[] stringArray0 = new String[1];\n String[] stringArray1 = new String[3];\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"aT7W`oI)N(jLl^oF<HQ.null\", stringArray1, \"aT7W`oI)N(jLl^oF<HQ\", \"aT7W`oI)N(jLl^oF<HQ\", stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void testJoinOuter() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName, c.AD_Column_ID, c.ColumnName \" + \"FROM AD_Table t LEFT OUTER JOIN AD_Column c ON (t.AD_Table_ID=c.AD_Table_ID) WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t,AD_Column=c|0]\", fixture.toString());\n }",
"public <KL, KR> DataSet<T> leftOuterJoinOnEquals(DataSet<T> rightDs,\n Function<T, KL> leftKeyFunction,\n Function<T, KR> rightKeyFunction) {\n return leftOuterJoinOnEquals(rightDs, leftKeyFunction, rightKeyFunction, DataSet::joinDefaultOneToOneCombiner);\n }",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.join(\"l+YW\", \"pvs\", stringArray0, \"/*\", stringArray0[4], stringArray0);\n assertEquals(\"l+YW join /* as null on pvs.null = null.null and pvs.null = null.null and pvs.null = null.null and pvs.null = null.null and pvs.null = null.null\", string0);\n }",
"@VisibleForTesting\n protected void appendJoinOnKeyClause(String leftAlias,\n JoinKey leftKey,\n String rightAlias,\n JoinKey rightKey,\n boolean joinOnNullKeys) {\n // ... ON [left.l1 = right.r1]\n appendEquals(leftAlias, leftKey.getFields().get(0), rightAlias, rightKey.getFields().get(0), joinOnNullKeys);\n\n for (int i = 1; i < leftKey.getFields().size(); i++) {\n // ... [AND left.rN = right.rN]\n builder.append(AND);\n appendEquals(leftAlias, leftKey.getFields().get(i), rightAlias, rightKey.getFields().get(i), joinOnNullKeys);\n }\n }",
"@VisibleForTesting\n protected void appendJoinOnKeyOperation(JoinStage left,\n JoinStage right,\n Map<String, JoinKey> stageNameToJoinKeyMap,\n boolean joinOnNullKeys) {\n // Append Join Statement for these 2 stages\n appendJoinStatement(left, right);\n\n String leftAlias = getTableAlias(left.getStageName());\n String rightAlias = getTableAlias(right.getStageName());\n\n JoinKey leftKey = stageNameToJoinKeyMap.get(left.getStageName());\n JoinKey rightKey = stageNameToJoinKeyMap.get(right.getStageName());\n\n // Append Join on key conditions\n appendJoinOnKeyClause(leftAlias, leftKey, rightAlias, rightKey, joinOnNullKeys);\n }",
"@Test(timeout = 4000)\n public void test134() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"deletesetci\", (String[]) null, \"deletesetci\", \"BouncyCastleProvider\", (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 public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Map<Car, Set<Garage>> results = new LinkedHashMap<Car, Set<Garage>>();\n for (Car car : cars.retrieve(carsQuery)) {\n Query<Garage> garagesWhichServiceThisCarInDublin\n = and(equal(Garage.BRANDS_SERVICED, car.name), equal(Garage.LOCATION, \"Dublin\"));\n for (Garage garage : garages.retrieve(garagesWhichServiceThisCarInDublin)) {\n Set<Garage> garagesWhichCanServiceThisCar = results.get(car);\n if (garagesWhichCanServiceThisCar == null) {\n garagesWhichCanServiceThisCar = new LinkedHashSet<Garage>();\n results.put(car, garagesWhichCanServiceThisCar);\n }\n garagesWhichCanServiceThisCar.add(garage);\n }\n }\n\n assertEquals(\"join results should contain 2 cars\", 2, results.size());\n Assert.assertTrue(\"join results should contain car1\", results.containsKey(car1));\n Assert.assertTrue(\"join results should contain car4\", results.containsKey(car4));\n\n assertEquals(\"join results for car1\", asSet(garage3, garage4), results.get(car1));\n assertEquals(\"join results for car4\", asSet(garage2), results.get(car4));\n }",
"private void buildRowMapping() {\n final Map<String, ColumnDescriptor> targetSource = new TreeMap<>();\n\n // build a DB path .. find parent node that terminates the joint group...\n PrefetchTreeNode jointRoot = this;\n while (jointRoot.getParent() != null && !jointRoot.isDisjointPrefetch()\n && !jointRoot.isDisjointByIdPrefetch()) {\n jointRoot = jointRoot.getParent();\n }\n\n final String prefix;\n if (jointRoot != this) {\n Expression objectPath = ExpressionFactory.pathExp(getPath(jointRoot));\n ASTPath translated = (ASTPath) ((PrefetchProcessorNode) jointRoot)\n .getResolver()\n .getEntity()\n .translateToDbPath(objectPath);\n\n // make sure we do not include \"db:\" prefix\n prefix = translated.getOperand(0) + \".\";\n } else {\n prefix = \"\";\n }\n\n // find propagated keys, assuming that only one-step joins\n // share their column(s) with parent\n\n if (getParent() != null\n && !getParent().isPhantom()\n && getIncoming() != null\n && !getIncoming().getRelationship().isFlattened()) {\n\n DbRelationship r = getIncoming()\n .getRelationship()\n .getDbRelationships()\n .get(0);\n for (final DbJoin join : r.getJoins()) {\n appendColumn(targetSource, join.getTargetName(), prefix\n + join.getTargetName());\n }\n }\n\n ClassDescriptor descriptor = resolver.getDescriptor();\n\n descriptor.visitAllProperties(new PropertyVisitor() {\n\n public boolean visitAttribute(AttributeProperty property) {\n String target = property.getAttribute().getDbAttributePath();\n if(!property.getAttribute().isLazy()) {\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n\n public boolean visitToMany(ToManyProperty property) {\n return visitRelationship(property);\n }\n\n public boolean visitToOne(ToOneProperty property) {\n return visitRelationship(property);\n }\n\n private boolean visitRelationship(ArcProperty arc) {\n DbRelationship dbRel = arc.getRelationship().getDbRelationships().get(0);\n for (DbAttribute attribute : dbRel.getSourceAttributes()) {\n String target = attribute.getName();\n\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n });\n\n // append id columns ... (some may have been appended already via relationships)\n for (String pkName : descriptor.getEntity().getPrimaryKeyNames()) {\n appendColumn(targetSource, pkName, prefix + pkName);\n }\n\n // append inheritance discriminator columns...\n for (ObjAttribute column : descriptor.getDiscriminatorColumns()) {\n String target = column.getDbAttributePath();\n appendColumn(targetSource, target, prefix + target);\n }\n\n int size = targetSource.size();\n this.rowCapacity = (int) Math.ceil(size / 0.75);\n this.columns = new ColumnDescriptor[size];\n targetSource.values().toArray(columns);\n }",
"private static void DoJoin()\n\t{\n\n\t\tArrayList<Attribute> inAttsRight = new ArrayList<Attribute>();\n\t\tinAttsRight.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAttsRight.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAttsRight.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAttsRight.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAttsRight.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAttsRight.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAttsRight.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAttsRight.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAttsRight.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> inAttsLeft = new ArrayList<Attribute>();\n\t\tinAttsLeft.add(new Attribute(\"Int\", \"c_custkey\"));\n\t\tinAttsLeft.add(new Attribute(\"Str\", \"c_name\"));\n\t\tinAttsLeft.add(new Attribute(\"Str\", \"c_address\"));\n\t\tinAttsLeft.add(new Attribute(\"Int\", \"c_nationkey\"));\n\t\tinAttsLeft.add(new Attribute(\"Str\", \"c_phone\"));\n\t\tinAttsLeft.add(new Attribute(\"Float\", \"c_acctbal\"));\n\t\tinAttsLeft.add(new Attribute(\"Str\", \"c_mktsegment\"));\n\t\tinAttsLeft.add(new Attribute(\"Str\", \"c_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att5\"));\n\n\t\tArrayList<String> leftHash = new ArrayList<String>();\n\t\tleftHash.add(\"c_custkey\");\n\n\t\tArrayList<String> rightHash = new ArrayList<String>();\n\t\trightHash.add(\"o_custkey\");\n\n\t\tString selection = \"right.o_custkey == left.c_custkey && right.o_custkey > Int (1000)\";\n\n\t\tHashMap<String, String> exprs = new HashMap<String, String>();\n\t\texprs.put(\"att1\", \"right.o_comment + Str(\\\" \\\") + left.c_comment\");\n\t\texprs.put(\"att2\", \"right.o_custkey\");\n\t\texprs.put(\"att3\", \"left.c_custkey\");\n\t\texprs.put(\"att4\", \"left.c_name\");\n\t\texprs.put(\"att5\", \"right.o_orderkey\");\n\n\t\t// run the join\n\t\ttry\n\t\t{\n\t\t\tnew Join(inAttsLeft, inAttsRight, outAtts, leftHash, rightHash, selection, exprs, \"customer.tbl\", \"orders.tbl\",\n\t\t\t\t\t\"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t}",
"@Test(timeout = 4000)\n public void test027() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.leftJoin((String) null, (String[]) null, \")xz0-CV0i;\", \"call\", (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 }",
"private ExampleSetBuilder performOuterJoin(ExampleSet leftExampleSet, ExampleSet rightExampleSet,\n\t\t\tList<AttributeSource> originalAttributeSources, List<Attribute> unionAttributeList,\n\t\t\tPair<Attribute[], Attribute[]> keyAttributes) throws ProcessStoppedException {\n\t\tExampleSetBuilder builder;\n\n\t\tAttribute[] leftKeyAttributes = keyAttributes.getFirst();\n\t\tAttribute[] rightKeyAttributes = keyAttributes.getSecond();\n\n\t\t// perform left join (an outer join is the union of a left join and a right join on the same\n\t\t// tables)\n\t\tSet<DoubleArrayWrapper> mappedRightExamples = new HashSet<>();\n\t\tbuilder = performLeftJoin(leftExampleSet, rightExampleSet, originalAttributeSources, unionAttributeList,\n\t\t\t\tkeyAttributes, mappedRightExamples);\n\n\t\tboolean keepBoth = getParameterAsBoolean(PARAMETER_KEEP_BOTH_JOIN_ATTRIBUTES);\n\t\tboolean removeDoubleAttributes = getParameterAsBoolean(PARAMETER_REMOVE_DOUBLE_ATTRIBUTES);\n\t\tint progressCounter = 0;\n\t\tfor (Example rightExample : rightExampleSet) {\n\t\t\t// perform right join, but add example only if it has not been matched during left join\n\t\t\t// above\n\t\t\tif (!mappedRightExamples.contains(new DoubleArrayWrapper(getKeyValues(rightExample, rightKeyAttributes)))) {\n\t\t\t\taddRightOnlyOccurence(originalAttributeSources, unionAttributeList, builder, rightExample, leftKeyAttributes,\n\t\t\t\t\t\trightKeyAttributes, keepBoth, removeDoubleAttributes);\n\t\t\t}\n\t\t\t// trigger operator progress every 100 examples\n\t\t\t++progressCounter;\n\t\t\tif (progressCounter % 100 == 0) {\n\t\t\t\tgetProgress().step(100);\n\t\t\t\tprogressCounter = 0;\n\t\t\t}\n\t\t}\n\t\treturn builder;\n\t}",
"private void putInLeftMap(Register[] register) {\n Object key = register[leftJoinAttributeIndex].getObject();\n List<Register[]> found = leftMap.get(key);\n if (found == null) {\n found = new ArrayList<>();\n leftMap.put(key, found);\n }\n\n found.add(register);\n }",
"@Test(timeout = 4000)\n public void test053() throws Throwable {\n String[] stringArray0 = new String[7];\n String string0 = SQLUtil.join(\"calloeqdkmcg0dtw\", \"4$\", stringArray0, stringArray0[3], \"insert\", stringArray0);\n assertEquals(\"calloeqdkmcg0dtw join null as insert on 4$.null = insert.null and 4$.null = insert.null and 4$.null = insert.null and 4$.null = insert.null and 4$.null = insert.null and 4$.null = insert.null and 4$.null = insert.null\", string0);\n }",
"@Test(timeout = 4000)\n public void test035() throws Throwable {\n String[] stringArray0 = new String[9];\n String[] stringArray1 = new String[3];\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"b>%|z7\", stringArray0, \"Zu8j\", \" from \", stringArray1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n String[] stringArray0 = new String[12];\n String string0 = SQLUtil.innerJoin(\".z$m\", stringArray0, \"\", \"h?%,\", stringArray0);\n assertEquals(\" as h?%, on .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null and .z$m.null = h?%,.null\", string0);\n }",
"private ArrayList<ArrayList<Object>> getJoinedIntermediate(List<Table> tables) {\n\t\tArrayList<ArrayList<Object>> rtn = new ArrayList<ArrayList<Object>>(); \n\n\t\ttry {\n\t\t\tfor(int iterator = 0; iterator < tables.size(); iterator++) {\n\t\t\t\tTable table = tables.get(iterator);\n\t\t\t\tif(rtn.isEmpty()) {\t\t\t\t\t\n\t\t\t\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) table.getTuples();\n\t\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\t\tArrayList<Object> objectTuple = new ArrayList<Object>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\tobjectTuple.add(field.get(tuple));\n\t\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\trtn.add(objectTuple);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint originalTableSize = rtn.size();\n\t\t\t\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) table.getTuples();\n\t\t\t\t\t\n\t\t\t\t\t// Copy existing tuples for join\n\t\t\t\t\tfor(int j = 0; j < tuples.size() - 1; j++)\n\t\t\t\t\t\tfor(int i = 0; i < originalTableSize; i++)\n\t\t\t\t\t\t\trtn.add(new ArrayList<Object>(rtn.get(i)));\n\t\t\t\t\t\n\t\t\t\t\t// Join\n\t\t\t\t\tfor(int j = 0; j < tuples.size(); j++) {\n\t\t\t\t\t\tTuple tuple = tuples.get(j);\n\t\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\t\tfor(int iter = 0; iter < originalTableSize; iter++) {\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\trtn.get(j * originalTableSize + iter).add(field.get(tuple));\n\t\t\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e)\t{\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t\treturn rtn;\n\t}",
"@SuppressWarnings(\"SuspiciousMethodCalls\")\n public <KL, KR> DataSet<T> leftOuterJoinOnEquals(DataSet<T> rightDs,\n Function<T, KL> leftKeyFunction,\n Function<T, KR> rightKeyFunction,\n BiFunction<T, T, T> combiner) {\n int rightSize = rightDs.getData().size();\n Map<KR, T> rightSet = rightDs.getDataStream()\n .collect(Collectors\n .toMap(rightKeyFunction, e -> e, (v1, v2) -> v2, () -> new HashMap<>(rightSize)));\n Stream<T> stream = this.getDataStream()\n .peek(row -> combiner.apply(row, rightSet.get(leftKeyFunction.apply(row))));\n return new DataSet<>(stream);\n }",
"public void checkNLFOJoin() {\n\n String extractedVar = \"\";\n String currQuery = \"\";\n List<Integer> sourceQueries = null;\n List<String> tmpTP = null;\n List<String> extractedVals = null;\n\n for (List<String> key : mapCTPtoQuerySrc.keySet()) {\n\n sourceQueries = mapCTPtoQuerySrc.get(key);\n\n for (int i = 0; i < sourceQueries.size(); i++) {\n\n currQuery = queries.get(sourceQueries.get(i));\n\n //Buuuuuuuuuuuuuug\n if (currQuery.contains(\"mass\")) {\n continue;\n }\n\n if (currQuery.contains(\"filter\") || currQuery.contains(\"FILTER\")) {\n\n extractedVals = myBasUtils.getFILTERvals(currQuery);\n extractedVar = myBasUtils.getFILTERvar(currQuery);\n\n if (extractedVals.size() >= 1) {\n\n if (key.get(0).equalsIgnoreCase(extractedVar) || key.get(2).equalsIgnoreCase(extractedVar)) {\n\n tmpTP = myDedUtils.getCleanTP(key);\n tmpTP.add(extractedVar);\n myBasUtils.insertToMap4(mapDTPtoAnsInverseMap, tmpTP, extractedVals);\n }\n }\n\n }\n\n }\n }\n\n }",
"@Test\n public void testMixedJoin2() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4, g5 cross join g6\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, 1, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n \n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n\n Node jpNode3 = verify(fromNode, From.CLAUSES_REF_NAME, 3, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g5\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g6\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4, g5 CROSS JOIN g6\", fileNode);\n }",
"public String getHqlJoinString(String rootKey, String entityKey) {\n ArrayList<String> joinTables = new ArrayList<>();\n for (FieldDefinition definition : this.fieldDefinitions) {\n joinTables.addAll(this.getHqlJoinParts(rootKey, definition));\n }\n if (!joinTables.isEmpty()) {\n String joinString = \" LEFT JOIN \";\n StringJoiner s = new StringJoiner(joinString);\n for (String table : joinTables) {\n s.add(table);\n }\n return joinString + s.toString();\n }\n return \"\";\n }",
"@Test\n public void testFullJoin() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG full join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_FULL_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n\n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG FULL OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"hd@\", (String[]) null, \"5|.Y]x-\", \"hd@\", (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 }",
"private ScanPrelBase findLeftScanPrel(String fieldName, RelNode leftRelNode) {\n if (leftRelNode instanceof ScanPrelBase) {\n RelDataType scanRowType = leftRelNode.getRowType();\n RelDataTypeField field = scanRowType.getField(fieldName, true, true);\n if (field != null) {\n //found\n return (ScanPrelBase) leftRelNode;\n } else {\n return null;\n }\n } else if (leftRelNode == null) {\n return null;\n } else {\n List<RelNode> relNodes = leftRelNode.getInputs();\n RelNode scanNode;\n for (RelNode node: relNodes) {\n scanNode = findLeftScanPrel(fieldName, node);\n if (scanNode != null) {\n return (ScanPrelBase) scanNode;\n }\n }\n return null;\n }\n }",
"@Test\n \tpublic void whereClauseForNodeLeftAlignment() {\n \t\tnode23.addJoin(new LeftAlignment(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.left\", \"_node42.left\")\n \t\t);\n \t}",
"@Test\n public void testMixedJoin3() throws Exception {\n String sql = \"SELECT * FROM g1, g2 inner join g3 on g2.a=g3.a\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g1\");\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, 2, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_INNER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"g2.a\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"g3.a\");\n \n verifySql(\"SELECT * FROM g1, g2 INNER JOIN g3 ON g2.a = g3.a\", fileNode);\n }",
"private void appendJoinStatement(JoinStage left,\n JoinStage right) {\n String joinType;\n\n if (left.isRequired() && right.isRequired()) {\n joinType = \"INNER\";\n } else if (left.isRequired() && !right.isRequired()) {\n joinType = \"LEFT OUTER\";\n } else if (!left.isRequired() && right.isRequired()) {\n joinType = \"RIGHT OUTER\";\n } else {\n joinType = \"FULL OUTER\";\n }\n\n // ... <join_type> JOIN <right_table> ON ...\n builder.append(joinType);\n builder.append(JOIN);\n appendFullTableNameAndAlias(right.getStageName());\n builder.append(ON);\n }",
"public void testMember(){\n\r\n parser.sqltext = \"select f from t1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_fake );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n parser.sqltext = \"select f from t as t1 join t2 on t1.f1 = t2.f1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_table );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t\") == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().getAliasClause().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join join b on a_join.f1 = b.f1;\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin = parser.sqlstatements.get(0).joins.getJoin(0);\r\n //System.out.println(lcJoin.getKind());\r\n assertTrue(lcJoin.getKind() == TBaseType.join_source_join );\r\n\r\n assertTrue(lcJoin.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n assertTrue(lcJoin.getJoin().getJoinItems().getJoinItem(0).getJoinType() == EJoinType.left);\r\n\r\n assertTrue(lcJoin.getJoinItems().getJoinItem(0).getJoinType() == EJoinType.join);\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin1 = parser.sqlstatements.get(0).joins.getJoin(0);\r\n assertTrue(lcJoin1.getKind() == TBaseType.join_source_join );\r\n assertTrue(lcJoin1.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin1.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n\r\n }",
"private Register[] createJoinResult(Register[] left, Register[] right) {\n Register[] result = new Register[left.length + right.length - 1]; // -1 because of joining key\n\n int pos = 0;\n for (int i = 0; i < left.length; i++) {\n result[pos++] = left[i];\n }\n\n for (int i = 0; i < right.length; i++) {\n if (i != rightJoinAttributeIndex) {\n result[pos++] = right[i];\n }\n }\n\n return result;\n }",
"private static boolean isSelfJoin(Join rel, RelMetadataQuery mq) {\n // Find left keys and right keys of equi-join condition\n List<Integer> leftKeys = new ArrayList<>();\n List<Integer> rightKeys = new ArrayList<>();\n RelOptUtil.splitJoinCondition(rel.getLeft(), rel.getRight(), rel.getCondition(),\n leftKeys, rightKeys, new ArrayList<>());\n if (leftKeys.isEmpty()) {\n return false;\n }\n\n // Check each pair of join key\n for (int i = 0; i < leftKeys.size(); ++i) {\n int leftKey = leftKeys.get(i);\n int rightKey = rightKeys.get(i);\n RelColumnOrigin leftColumnOrigin = mq.getColumnOrigin(rel.getLeft(), leftKey);\n RelColumnOrigin rightColumnOrigin = mq.getColumnOrigin(rel.getRight(), rightKey);\n if (leftColumnOrigin == null || rightColumnOrigin == null) {\n return false;\n }\n List<String> leftTableName = leftColumnOrigin.getOriginTable().getQualifiedName();\n List<String> rightTableName = rightColumnOrigin.getOriginTable().getQualifiedName();\n if (!leftTableName.equals(rightTableName)) {\n return false;\n }\n }\n return true;\n }",
"@Test\n public void testMixedJoin() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4\", fileNode);\n }",
"@Test\n public void testMergeJoinLowerLimit() throws Exception {\n MergeJoinPOP mergeJoin = new MergeJoinPOP(null, null,\n Lists.newArrayList(joinCond(\"c1\", \"EQUALS\", \"c2\")), JoinRelType.RIGHT);\n mockOpContext(mergeJoin, initReservation, maxAllocation);\n\n numRows = 10;\n\n // create left input rows like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : <id>\n List<String> leftJsonBatches = Lists.newArrayList();\n StringBuilder leftBatchString = new StringBuilder();\n leftBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + i + \"},\");\n }\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + numRows + \"}\");\n leftBatchString.append(\"]\");\n\n leftJsonBatches.add(leftBatchString.toString());\n\n // create right input rows like this.\n // \"a2\" : 6, \"b2\" : wideString, \"c2\" : <id>\n List<String> rightJsonBatches = Lists.newArrayList();\n StringBuilder rightBatchString = new StringBuilder();\n rightBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + i + \"},\");\n }\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + numRows + \"}\");\n rightBatchString.append(\"]\");\n rightJsonBatches.add(rightBatchString.toString());\n\n // output rows will be like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 1, \"a2\":6, \"b2\" : wideString, \"c2\": 1\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 2, \"a2\":6, \"b2\" : wideString, \"c2\": 2\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 3, \"a2\":6, \"b2\" : wideString, \"c2\": 3\n\n // set very low value of output batch size so we can do only one row per batch.\n fragContext.getOptions().setLocalOption(\"drill.exec.memory.operator.output_batch_size\", 128);\n\n LegacyOperatorTestBuilder opTestBuilder = legacyOpTestBuilder()\n .physicalOperator(mergeJoin)\n .baselineColumns(\"a1\", \"b1\", \"c1\", \"a2\", \"b2\", \"c2\")\n .expectedNumBatches(10) // verify number of batches\n .inputDataStreamsJson(Lists.newArrayList(leftJsonBatches, rightJsonBatches));\n\n for (long i = 0; i < numRows + 1; i++) {\n opTestBuilder.baselineValues(5l, wideString, i, 6l, wideString, i);\n }\n\n opTestBuilder.go();\n }",
"@Test\n public void testHashJoinLowerLimit() throws Exception {\n HashJoinPOP hashJoin = new HashJoinPOP(null, null,\n Lists.newArrayList(joinCond(\"c1\", \"EQUALS\", \"c2\")), JoinRelType.INNER);\n mockOpContext(hashJoin, initReservation, maxAllocation);\n\n numRows = 10;\n\n // create left input rows like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : <id>\n List<String> leftJsonBatches = Lists.newArrayList();\n StringBuilder leftBatchString = new StringBuilder();\n leftBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + i + \"},\");\n }\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"b1\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c1\\\" : \" + numRows + \"}\");\n leftBatchString.append(\"]\");\n\n leftJsonBatches.add(leftBatchString.toString());\n\n // create right input rows like this.\n // \"a2\" : 6, \"b2\" : wideString, \"c2\" : <id>\n List<String> rightJsonBatches = Lists.newArrayList();\n StringBuilder rightBatchString = new StringBuilder();\n rightBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + i + \"},\");\n }\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"b2\\\" : \" + \"\\\"\" + wideString + \"\\\",\" + \"\\\"c2\\\" : \" + numRows + \"}\");\n rightBatchString.append(\"]\");\n rightJsonBatches.add(rightBatchString.toString());\n\n // output rows will be like this.\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 1, \"a2\":6, \"b2\" : wideString, \"c2\": 1\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 2, \"a2\":6, \"b2\" : wideString, \"c2\": 2\n // \"a1\" : 5, \"b1\" : wideString, \"c1\" : 3, \"a2\":6, \"b2\" : wideString, \"c2\": 3\n\n // set very low value of output batch size so we can do only one row per batch.\n fragContext.getOptions().setLocalOption(\"drill.exec.memory.operator.output_batch_size\", 128);\n\n LegacyOperatorTestBuilder opTestBuilder = legacyOpTestBuilder()\n .physicalOperator(hashJoin)\n .baselineColumns(\"a1\", \"b1\", \"c1\", \"a2\", \"b2\", \"c2\")\n .expectedNumBatches(10) // verify number of batches\n .inputDataStreamsJson(Lists.newArrayList(leftJsonBatches, rightJsonBatches));\n\n for (long i = 0; i < numRows + 1; i++) {\n opTestBuilder.baselineValues(5l, wideString, i, 6l, wideString, i);\n }\n\n opTestBuilder.go();\n }",
"public FetchJoinInformation(String property) {\n\t\tthis(property, JoinType.LEFT);\n\t}",
"private void checkMappedByOneToOne(DeployBeanPropertyAssocOne<?> prop) {\n String mappedBy = prop.getMappedBy();\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedOneToOne(prop, mappedBy, targetDesc);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyWithoutType(tableJoin, true, tableJoin.getTable());\n }\n\n if (mappedAssocOne.isPrimaryKeyJoin()) {\n // bi-directional PrimaryKeyJoin ...\n mappedAssocOne.setPrimaryKeyJoin(false);\n prop.setPrimaryKeyExport();\n addPrimaryKeyJoin(prop);\n }\n }",
"public LeftJoin(final String datasetSchemaName,\n\t\t\t\tfinal String datasetTableName) {\n\t\t\tsuper(datasetSchemaName, datasetTableName);\n\t\t}",
"private void appendTempTableRightSideJoin(\r\n Object source,\r\n Attribute[] prototypeAttributes,\r\n MithraFastList<Attribute> nullAttributes,\r\n int pkAttributeCount,\r\n TupleTempContext tempContext,\r\n StringBuilder builder)\r\n {\r\n builder.append(tempContext.getFullyQualifiedTableName(source, this.getMithraObjectPortal().getPersisterId()));\r\n builder.append(\" t1 where \");\r\n this.constructJoin(prototypeAttributes, nullAttributes, pkAttributeCount, builder);\r\n }",
"@Test\n public void testFullOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG full outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_FULL_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG FULL OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"@Override\n public boolean supportsRootTreatTreatJoin() {\n return true;\n }",
"@Override\n\tpublic Table resolve(ArrayList<Table> tables) throws InvalidQueryException {\n\t\tTable left = leftTable.resolve(tables);\n\t\tTable right = rightTable.resolve(tables);\n\t\t\n\t\tString tableNameLeft = left.getName();\n\t\tString tableNameRight = right.getName();\n\n\t\t\n\t\tString columnNameLeft = leftCell.getcolumnName();\n\t\tString columnNameRight = rightCell.getcolumnName();\n\t\t\n\t\tArrayList<Column> columnsLeft = left.getColumns();\n\t\tArrayList<Column> columnsRight = right.getColumns();\n\n\t\t//Find left column\n\t\tColumn leftColumn = columnsLeft.\n\t\t\t\t\t\t\tstream().\n\t\t\t\t\t\t\tfilter(c -> {\n\t\t\t\t\t\t\t\tDebugPrinter.print(\"Found: \"+c.getName());\n\t\t\t\t\t\t\t\tDebugPrinter.print(\"Searching for: \"+tableNameLeft+\".\"+columnNameLeft);\n\t\t\t\t\t\t\t\treturn c.getName().equals(tableNameLeft+\".\"+columnNameLeft);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.findFirst().\n\t\t\t\t\t\t\torElseThrow(() -> new InvalidQueryException(\"Unable to find column \"+columnNameLeft+\" in JOIN clause\"));\n\t\t\n\t\t//Find right column\n\t\tColumn rightColumn = columnsRight.\n\t\t\t\tstream().\n\t\t\t\tfilter(c -> {\n\t\t\t\t\treturn c.getName().equals(tableNameRight+\".\"+columnNameRight);\n\t\t\t\t}).\n\t\t\t\tfindFirst().\n\t\t\t\torElseThrow(() -> new InvalidQueryException(\"Unable to find column \"+columnNameRight+\" in JOIN clause\"));\n\n\t\t\n\t\tArrayList<RowPair> matches = new ArrayList<>();\n\t\t\n\t\t//Find rows that match, save as tuples (i1, i2)\n\t\tfor (int i=0; i<leftColumn.getCells().size();i++) {\n\t\t\tfor (int j=0; j<rightColumn.getCells().size();j++) {\n\t\t\t\tif (leftColumn.getCells().get(i).getValue().equals(rightColumn.getCells().get(j).getValue())){\n\t\t\t\t\tmatches.add(new RowPair(i,j));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Create clones of the necessary columns, omitting one of \n\t\t//the columns used to join\n\t\tArrayList<Column> newColumns = new ArrayList<Column>();\n\t\tcolumnsLeft.stream()\n\t\t\t\t .forEach((c) -> createDuplicateColumn(tableNameLeft,c, newColumns));\n\t\tcolumnsRight.stream()\n\t\t\t\t\t.filter((c)->!c.getName().equals(tableNameRight+\".\"+columnNameRight))\n\t\t\t\t\t.forEach((c) -> createDuplicateColumn(tableNameRight,c,newColumns));\n\t\t\n\t\tStoredTable t = new StoredTable(left.getName());\n\t\tt.addAllColumns(newColumns);\n\t\t\n\t\t//Build new table from the list of matches (i1,i2)\n\t\tfor (RowPair p : matches) {\n\t\t\tArrayList<Cell> leftCells = left.getRowByIndex(p.getLeftIndex(),\"\");\n\t\t\tArrayList<Cell> rightCells = right.getRowByIndex(p.getRightIndex(),tableNameRight+\".\"+columnNameRight);\n\t\t\tArrayList<Cell> newRow = new ArrayList<Cell>(leftCells);\n\t\t\tnewRow.addAll(rightCells);\n\t\t\tt.addRow(newRow);\n\t\t}\n\t\tDebugPrinter.print(\"End JOIN\");\n\t\treturn t;\n\t}",
"public T caseFromJoin(FromJoin object)\n {\n return null;\n }",
"FromTableJoin createFromTableJoin();",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"CONTAINER ~-1T&NQX{&OP~@\", (String[]) null, \"CONTAINER ~-1T&NQX{&OP~@\", \"CONTAINER ~-1T&NQX{&OP~@\", (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 }",
"<V1, R> KTable<K, R> outerJoin(KTable<K, V1> other, ValueJoiner<V, V1, R> joiner);",
"private PlanNode planMergeJoin(PlanNode current, PlanNode root) throws QueryMetadataException,\n\t\t\tTeiidComponentException {\n\t\tfloat sourceCost = NewCalculateCostUtil.computeCostForTree(current.getFirstChild(), metadata);\n\t\tCriteria crit = (Criteria)current.getProperty(NodeConstants.Info.SELECT_CRITERIA);\n\t\t\n\t\tPlannedResult plannedResult = findSubquery(crit, true);\n\t\tif (plannedResult.query == null) {\n\t\t\treturn current;\n\t\t}\n\t\tif (sourceCost != NewCalculateCostUtil.UNKNOWN_VALUE \n\t\t\t\t&& sourceCost < RuleChooseDependent.DEFAULT_INDEPENDENT_CARDINALITY && !plannedResult.mergeJoin) {\n\t\t\t//TODO: see if a dependent join applies the other direction\n\t\t\treturn current;\n\t\t}\n\t\t\n\t\tRelationalPlan originalPlan = (RelationalPlan)plannedResult.query.getProcessorPlan();\n Number originalCardinality = originalPlan.getRootNode().getEstimateNodeCardinality();\n if (!plannedResult.mergeJoin && originalCardinality.floatValue() == NewCalculateCostUtil.UNKNOWN_VALUE) {\n //TODO: this check isn't really accurate - exists and scalarsubqueries will always have cardinality 2/1\n \t//if it's currently unknown, removing criteria won't make it any better\n \treturn current;\n }\n \n Collection<GroupSymbol> leftGroups = FrameUtil.findJoinSourceNode(current).getGroups();\n\n\t\tif (!planQuery(leftGroups, false, plannedResult)) {\n\t\t\tif (plannedResult.mergeJoin && analysisRecord != null && analysisRecord.recordAnnotations()) {\n\t\t\t\tthis.analysisRecord.addAnnotation(new Annotation(Annotation.HINTS, \"Could not plan as a merge join: \" + crit, \"ignoring MJ hint\", Priority.HIGH)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\treturn current;\n\t\t}\n\t\t\n\t\t//check if the child is already ordered. TODO: see if the ordering is compatible.\n\t\tPlanNode childSort = NodeEditor.findNodePreOrder(root, NodeConstants.Types.SORT, NodeConstants.Types.SOURCE | NodeConstants.Types.JOIN);\n\t\tif (childSort != null) {\n\t\t\tif (plannedResult.mergeJoin && analysisRecord != null && analysisRecord.recordAnnotations()) {\n\t\t\t\tthis.analysisRecord.addAnnotation(new Annotation(Annotation.HINTS, \"Could not plan as a merge join since the parent join requires a sort: \" + crit, \"ignoring MJ hint\", Priority.HIGH)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\treturn current;\n\t\t}\n\t\t\n\t\t//add an order by, which hopefully will get pushed down\n\t\tplannedResult.query.setOrderBy(new OrderBy(plannedResult.rightExpressions).clone());\n\t\tfor (OrderByItem item : plannedResult.query.getOrderBy().getOrderByItems()) {\n\t\t\tint index = plannedResult.query.getProjectedSymbols().indexOf(item.getSymbol());\n\t\t\tif (index >= 0 && !(item.getSymbol() instanceof ElementSymbol)) {\n\t\t\t\titem.setSymbol((Expression) plannedResult.query.getProjectedSymbols().get(index).clone());\n\t\t\t}\n\t\t\titem.setExpressionPosition(index);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//clone the symbols as they may change during planning\n\t\t\tList<Expression> projectedSymbols = LanguageObject.Util.deepClone(plannedResult.query.getProjectedSymbols(), Expression.class);\n\t\t\t//NOTE: we could tap into the relationalplanner at a lower level to get this in a plan node form,\n\t\t\t//the major benefit would be to reuse the dependent join planning logic if possible.\n\t\t\tRelationalPlan subPlan = (RelationalPlan)QueryOptimizer.optimizePlan(plannedResult.query, metadata, idGenerator, capFinder, analysisRecord, context);\n\t\t\tNumber planCardinality = subPlan.getRootNode().getEstimateNodeCardinality();\n \n\t\t\tif (!plannedResult.mergeJoin) {\n\t\t\t\t//if we don't have a specific hint, then use costing\n\t if (planCardinality.floatValue() == NewCalculateCostUtil.UNKNOWN_VALUE \n\t \t\t|| planCardinality.floatValue() > 10000000\n\t \t\t|| (sourceCost == NewCalculateCostUtil.UNKNOWN_VALUE && planCardinality.floatValue() > 1000)\n\t \t\t|| (sourceCost != NewCalculateCostUtil.UNKNOWN_VALUE && sourceCost * originalCardinality.floatValue() < planCardinality.floatValue() / (100 * Math.log(Math.max(4, sourceCost))))) {\n\t \t//bail-out if both are unknown or the new plan is too large\n\t \tif (analysisRecord != null && analysisRecord.recordDebug()) {\n\t \t\tcurrent.recordDebugAnnotation(\"cost of merge join plan was not favorable\", null, \"semi merge join will not be used\", analysisRecord, metadata); //$NON-NLS-1$ //$NON-NLS-2$\n\t \t\t\t}\n\t \treturn current;\n\t }\n\t\t\t}\n \n\t\t\t//assume dependent\n\t\t\tif ((sourceCost != NewCalculateCostUtil.UNKNOWN_VALUE && planCardinality.floatValue() != NewCalculateCostUtil.UNKNOWN_VALUE \n\t\t\t\t\t&& planCardinality.floatValue() < sourceCost / 8) || (sourceCost == NewCalculateCostUtil.UNKNOWN_VALUE && planCardinality.floatValue() <= 1000)) {\n\t\t\t\tplannedResult.makeInd = true;\n\t\t\t}\n\t\t\t\n\t\t\t/*if (plannedResult.makeInd \n\t\t\t\t\t&& plannedResult.query.getCorrelatedReferences() == null\n\t\t\t\t\t&& !plannedResult.not\n\t\t\t\t\t&& plannedResult.leftExpressions.size() == 1) {\n \t//TODO: this should just be a dependent criteria node to avoid sorts\n }*/\n\t\t\t\n\t\t\tcurrent.recordDebugAnnotation(\"Conditions met (hint or cost)\", null, \"Converting to a semi merge join\", analysisRecord, metadata); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\n PlanNode semiJoin = NodeFactory.getNewNode(NodeConstants.Types.JOIN);\n semiJoin.addGroups(current.getGroups());\n Set<GroupSymbol> groups = GroupsUsedByElementsVisitor.getGroups(plannedResult.rightExpressions);\n semiJoin.addGroups(groups);\n semiJoin.setProperty(NodeConstants.Info.JOIN_STRATEGY, JoinStrategyType.MERGE);\n semiJoin.setProperty(NodeConstants.Info.JOIN_TYPE, plannedResult.not?JoinType.JOIN_ANTI_SEMI:JoinType.JOIN_SEMI);\n semiJoin.setProperty(NodeConstants.Info.NON_EQUI_JOIN_CRITERIA, plannedResult.nonEquiJoinCriteria);\n List<Criteria> joinCriteria = new ArrayList<Criteria>();\n joinCriteria.addAll(plannedResult.nonEquiJoinCriteria);\n for (int i = 0; i < plannedResult.leftExpressions.size(); i++) {\n \tjoinCriteria.add(new CompareCriteria((Expression)plannedResult.rightExpressions.get(i), CompareCriteria.EQ, (Expression)plannedResult.leftExpressions.get(i)));\n }\n semiJoin.setProperty(NodeConstants.Info.JOIN_CRITERIA, joinCriteria);\n //nested subqueries are possibly being promoted, so they need their references updated\n List<SymbolMap> refMaps = semiJoin.getAllReferences();\n SymbolMap parentRefs = plannedResult.query.getCorrelatedReferences();\n for (SymbolMap refs : refMaps) {\n \tfor (Map.Entry<ElementSymbol, Expression> ref : refs.asUpdatableMap().entrySet()) {\n \t Expression expr = ref.getValue();\n \t if (expr instanceof ElementSymbol) {\n\t \t Expression convertedExpr = parentRefs.getMappedExpression((ElementSymbol)expr);\n\t \t if (convertedExpr != null) {\n\t \t \tref.setValue(convertedExpr);\n\t \t }\n \t }\n \t semiJoin.getGroups().addAll(GroupsUsedByElementsVisitor.getGroups(ref.getValue()));\n \t }\n }\n semiJoin.setProperty(NodeConstants.Info.LEFT_EXPRESSIONS, plannedResult.leftExpressions);\n semiJoin.getGroups().addAll(GroupsUsedByElementsVisitor.getGroups(plannedResult.leftExpressions));\n semiJoin.setProperty(NodeConstants.Info.RIGHT_EXPRESSIONS, plannedResult.rightExpressions);\n semiJoin.getGroups().addAll(GroupsUsedByElementsVisitor.getGroups(plannedResult.rightExpressions));\n semiJoin.setProperty(NodeConstants.Info.SORT_RIGHT, SortOption.ALREADY_SORTED);\n semiJoin.setProperty(NodeConstants.Info.OUTPUT_COLS, root.getProperty(NodeConstants.Info.OUTPUT_COLS));\n \n List childOutput = (List)current.getFirstChild().getProperty(NodeConstants.Info.OUTPUT_COLS);\n PlanNode toCorrect = root;\n while (toCorrect != current) {\n \ttoCorrect.setProperty(NodeConstants.Info.OUTPUT_COLS, childOutput);\n \ttoCorrect = toCorrect.getFirstChild();\n }\n \n PlanNode node = NodeFactory.getNewNode(NodeConstants.Types.ACCESS);\n node.setProperty(NodeConstants.Info.PROCESSOR_PLAN, subPlan);\n node.setProperty(NodeConstants.Info.OUTPUT_COLS, projectedSymbols);\n node.setProperty(NodeConstants.Info.EST_CARDINALITY, planCardinality);\n node.addGroups(groups);\n root.addAsParent(semiJoin);\n semiJoin.addLastChild(node);\n PlanNode result = current.getParent();\n NodeEditor.removeChildNode(result, current);\n RuleImplementJoinStrategy.insertSort(semiJoin.getFirstChild(), (List<Expression>) plannedResult.leftExpressions, semiJoin, metadata, capFinder, true, context);\n if (plannedResult.makeInd && !plannedResult.not) {\n \t//TODO: would like for an enhanced sort merge with the semi dep option to avoid the sorting\n \t//this is a little different than a typical dependent join in that the right is the independent side\n \tString id = RuleChooseDependent.nextId();\n \tPlanNode dep = RuleChooseDependent.getDependentCriteriaNode(id, plannedResult.rightExpressions, plannedResult.leftExpressions, node, metadata, null, false, null);\n \tsemiJoin.getFirstChild().addAsParent(dep);\n \tsemiJoin.setProperty(NodeConstants.Info.DEPENDENT_VALUE_SOURCE, id);\n \tthis.dependent = true;\n }\n return result;\n\t\t} catch (QueryPlannerException e) {\n\t\t\t//can't be done - probably access patterns - what about dependent\n\t\t\treturn current;\n\t\t}\n\t}",
"@VisibleForTesting\n protected void appendEquals(String leftTable,\n String leftField,\n String rightTable,\n String rightField,\n boolean joinOnNullKeys) {\n if (joinOnNullKeys) {\n builder.append(OPEN_GROUP);\n }\n\n // ...table1.column1 = table2.column2...\n builder.append(leftTable).append(DOT).append(leftField);\n builder.append(EQ);\n builder.append(rightTable).append(DOT).append(rightField);\n\n if (joinOnNullKeys) {\n // ... OR (table1.column1 IS NULL AND table2.column2 IS NULL))...\n builder.append(OR).append(OPEN_GROUP);\n builder.append(leftTable).append(DOT).append(leftField).append(IS_NULL);\n builder.append(AND);\n builder.append(rightTable).append(DOT).append(rightField).append(IS_NULL);\n builder.append(CLOSE_GROUP).append(CLOSE_GROUP);\n }\n }",
"@Test\n \tpublic void whereClauseForNodeLeftOverlap() {\n \t\tnode23.addJoin(new LeftOverlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.left\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\"),\n \t\t\t\tjoin(\"<=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}",
"@Test(timeout = 4000)\n public void test133() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin((String) null, (String[]) null, \"a6+0S\", \"a6+0S\", (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 public void testRightOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"@Test\n public void testCrossJoin() throws Exception {\n String sql = \"SELECT * FROM g1 cross join g2\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN g2\", fileNode);\n }",
"private void constructJoins(CriteriaBuilderImpl cb, AbstractCriteriaQueryImpl<?> q, RootImpl<Object> r, Tree joins) {\n \t\tfor (int i = 0; i < joins.getChildCount(); i++) {\n \t\t\tfinal Tree join = joins.getChild(i);\n \n \t\t\tJoinType joinType = JoinType.INNER;\n \n \t\t\tfinal int joinSpecification = join.getChild(0).getType();\n \t\t\tint offset = 0;\n \n \t\t\tif (joinSpecification == JpqlParser.INNER) {\n \t\t\t\toffset = 1;\n \t\t\t\tjoinType = JoinType.INNER;\n \t\t\t}\n \t\t\telse if (joinSpecification == JpqlParser.LEFT) {\n \t\t\t\toffset = 1;\n \t\t\t\tjoinType = JoinType.LEFT;\n \t\t\t}\n \n \t\t\tif (join.getChildCount() == (offset + 3)) {\n \t\t\t\tFetchParent<?, ?> parent = this.getAliased(q, join.getChild(offset).getText());\n \n \t\t\t\tfinal Qualified qualified = new Qualified(join.getChild(offset + 1).getChild(0));\n \n \t\t\t\tfor (final String segment : qualified.getSegments()) {\n \t\t\t\t\tparent = parent.fetch(segment, joinType);\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tAbstractFrom<?, ?> parent = this.getAliased(q, join.getChild(offset).getText());\n \n \t\t\t\tfinal Aliased aliased = new Aliased(join.getChild(offset + 1));\n \n \t\t\t\tint depth = 0;\n \t\t\t\tfor (final String segment : aliased.getQualified().getSegments()) {\n \t\t\t\t\tif ((depth > 0) && (parent instanceof PluralJoin)) {\n \t\t\t\t\t\tthrow new PersistenceException(\"Cannot qualify, only embeddable joins within the path allowed, \" + \"line \" + join.getLine() + \":\"\n \t\t\t\t\t\t\t+ join.getCharPositionInLine());\n \t\t\t\t\t}\n \n \t\t\t\t\tparent = parent.join(segment, joinType);\n \n \t\t\t\t\tdepth++;\n \t\t\t\t}\n \n \t\t\t\tthis.putAlias(q, join.getChild(1), aliased, parent);\n \t\t\t}\n \t\t}\n \t}",
"@Test\n public void testRightJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"@Test\r\n\tvoid join() {\r\n\t\tQuery query = entityManager.createQuery(\"Select c,s from Course c JOIN c.students s\");\r\n\t\tList<Object[]> resultList = query.getResultList();\r\n\t\tlog.info(\"Result Size -> {}\", resultList.size());\r\n\t\tfor (Object[] result : resultList) {\r\n\t\t\tlog.info(\"Course -> {}\", result[0]);\r\n\t\t\tlog.info(\"Student -> {}\", result[1]);\r\n\t\t}\r\n\t}",
"Join createJoin();",
"private void addLeftOnlyOccurence(List<AttributeSource> originalAttributeSources, List<Attribute> unionAttributeList,\n\t\t\tExampleSetBuilder builder, Example leftExample) {\n\t\tdouble[] unionDataRow = new double[unionAttributeList.size()];\n\t\tint attributeIndex = 0;\n\t\tfor (AttributeSource attributeSource : originalAttributeSources) {\n\t\t\tif (attributeSource.getSource() == AttributeSource.FIRST_SOURCE) {\n\t\t\t\tunionDataRow[attributeIndex] = leftExample.getValue(attributeSource.getAttribute());\n\t\t\t} else if (attributeSource.getSource() == AttributeSource.SECOND_SOURCE) {\n\t\t\t\tunionDataRow[attributeIndex] = Double.NaN;\n\t\t\t}\n\t\t\tattributeIndex++;\n\t\t}\n\t\tbuilder.addRow(unionDataRow);\n\t}",
"@Test(timeout = 4000)\n public void test055() throws Throwable {\n String[] stringArray0 = new String[6];\n String string0 = SQLUtil.join(\"inner\", \"alter session\", stringArray0, \"inner\", \"inner\", stringArray0);\n assertEquals(\"inner as inner on alter session.null = inner.null and alter session.null = inner.null and alter session.null = inner.null and alter session.null = inner.null and alter session.null = inner.null and alter session.null = inner.null\", string0);\n }",
"@Test\n public void testJoinOn_withTwoValidTables() {\n String table1column0 = \"user_id\";\n String table1column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n String table2column0 = \"pet_id\";\n String table2column1 = \"owner_id\";\n int pet1_id = 0;\n int pet2_id = 1;\n\n try {\n // Set up ModelExtension Table\n String sql = \"CREATE TABLE ModelExtension (\" +\n table1column0 + \" int, \" +\n table1column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n table1column0 + \", \" +\n table1column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n // Set up Test Table\n sql = \"CREATE TABLE Test (\" +\n table2column0 + \" int, \" +\n table2column1 + \" int)\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO Test (\" +\n table2column0 + \", \" +\n table2column1 + \") VALUES (\" +\n pet1_id + \", \" +\n idValue0 + \"), (\" +\n pet2_id + \", \" +\n idValue1 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll()\n .joinOn(\n new ModelExtensionWithAnnotation(), \n table1column0, \n table2column1)\n .execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(table1column0));\n assertEquals(ageValue0, models.get(0).get(table1column1));\n assertEquals(pet1_id, models.get(0).get(table2column0));\n assertEquals(idValue0, models.get(0).get(table2column1));\n\n assertEquals(idValue1, models.get(1).get(table1column0));\n assertEquals(ageValue1, models.get(1).get(table1column1));\n assertEquals(pet2_id, models.get(1).get(table2column0));\n assertEquals(idValue1, models.get(1).get(table2column1));\n }",
"public void withWhiteCompoundPk() {\n _query.xdoNss(() -> _query.queryWhiteCompoundPk());\n }",
"protected String getJoin( LogicalModel businessModel, LogicalRelationship relation,\n Map<LogicalTable, String> tableAliases, Map<String, Object> parameters, boolean genAsPreparedStatement,\n DatabaseMeta databaseMeta, String locale ) throws PentahoMetadataException {\n String join = \"\"; //$NON-NLS-1$\n if ( relation.isComplex() ) {\n try {\n // parse join as MQL\n SqlOpenFormula formula =\n new SqlOpenFormula( businessModel, databaseMeta, relation.getComplexJoin(), tableAliases, parameters,\n genAsPreparedStatement );\n formula.parseAndValidate();\n join = formula.generateSQL( locale );\n } catch ( PentahoMetadataException e ) {\n // backward compatibility, deprecate\n // FIXME: we need to get rid of this and just throw an exception\n logger.warn( Messages.getErrorString(\n \"SqlGenerator.ERROR_0017_FAILED_TO_PARSE_COMPLEX_JOIN\", relation.getComplexJoin() ), e ); //$NON-NLS-1$\n join = relation.getComplexJoin();\n }\n } else if ( relation.getFromTable() != null && relation.getToTable() != null && relation.getFromColumn() != null\n && relation.getToColumn() != null ) {\n // Left side\n String leftTableAlias = null;\n if ( tableAliases != null ) {\n leftTableAlias = tableAliases.get( relation.getFromColumn().getLogicalTable() );\n } else {\n leftTableAlias = relation.getFromColumn().getLogicalTable().getId();\n }\n\n join = databaseMeta.quoteField( leftTableAlias );\n join += \".\"; //$NON-NLS-1$\n join +=\n databaseMeta.quoteField( (String) relation.getFromColumn().getProperty( SqlPhysicalColumn.TARGET_COLUMN ) );\n\n // Equals\n join += \" = \"; //$NON-NLS-1$\n\n // Right side\n String rightTableAlias = null;\n if ( tableAliases != null ) {\n rightTableAlias = tableAliases.get( relation.getToColumn().getLogicalTable() );\n } else {\n rightTableAlias = relation.getToColumn().getLogicalTable().getId();\n }\n\n join += databaseMeta.quoteField( rightTableAlias );\n join += \".\"; //$NON-NLS-1$\n join += databaseMeta.quoteField( (String) relation.getToColumn().getProperty( SqlPhysicalColumn.TARGET_COLUMN ) );\n } else {\n throw new PentahoMetadataException( Messages.getErrorString(\n \"SqlGenerator.ERROR_0003_INVALID_RELATION\", relation.toString() ) ); //$NON-NLS-1$\n }\n\n return join;\n }",
"@Test(timeout = 4000)\n public void test071() throws Throwable {\n String[] stringArray0 = new String[2];\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"drop index\", stringArray0, \"Exception in rollback\", \"Exception in rollback\", (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 }",
"private boolean getJoinOpsAndLeafInputs(ILogicalOperator op) throws AlgebricksException {\n if (joinClause(op)) {\n JoinOperator jO = new JoinOperator((AbstractBinaryJoinOperator) op);\n allJoinOps.add(jO);\n if (op.getOperatorTag() == LogicalOperatorTag.LEFTOUTERJOIN) {\n jO.setOuterJoin(true);\n }\n\n int firstLeafInputNumber, lastLeafInputNumber;\n int k = 0;\n for (int i = 0; i < 2; i++) {\n ILogicalOperator nextOp = op.getInputs().get(i).getValue();\n firstLeafInputNumber = leafInputNumber + 1; // we are interested in the 2nd input only\n boolean canTransform = getJoinOpsAndLeafInputs(nextOp);\n if (!canTransform) {\n return false;\n }\n lastLeafInputNumber = leafInputNumber; // we are interested in the 2nd input only\n k = 0;\n // now we know the leafInput numbers that occurred on the right side of this join.\n //if ((op.getOperatorTag() == LogicalOperatorTag.LEFTOUTERJOIN) && (i == 1)) {\n if ((joinClause(op)) && (i == 1)) {\n for (int j = firstLeafInputNumber; j <= lastLeafInputNumber; j++) {\n k |= 1 << (j - 1);\n }\n // buildSets are only for outerjoins.\n if ((op.getOperatorTag() == LogicalOperatorTag.LEFTOUTERJOIN)\n && (firstLeafInputNumber < lastLeafInputNumber)) { // if more is than one leafInput, only then buildSets make sense.\n buildSets.add(new Triple<>(k, lastLeafInputNumber - firstLeafInputNumber + 1, true)); // convert the second to boolean later\n }\n boolean ret = buildDependencyList(op, jO, outerJoinsDependencyList, k);\n if (!ret) {\n return false;\n }\n }\n }\n } else {\n if (op.getOperatorTag() == LogicalOperatorTag.GROUP) { // cannot handle group by's in leaf Inputs.\n return false;\n }\n Pair<EmptyTupleSourceOperator, DataSourceScanOperator> etsDataSource = containsLeafInputOnly(op);\n if (etsDataSource != null) { // a leaf input\n EmptyTupleSourceOperator etsOp = etsDataSource.first;\n DataSourceScanOperator dataSourceOp = etsDataSource.second;\n if (op.getOperatorTag().equals(LogicalOperatorTag.DISTRIBUTE_RESULT)) {// single table query\n ILogicalOperator selectOp = findSelectOrDataScan(op);\n if (selectOp == null) {\n return false;\n } else {\n leafInputs.add(selectOp);\n }\n } else {\n leafInputNumber++;\n leafInputs.add(op);\n if (!addLeafInputNumbersToVars(op)) {\n return false;\n }\n }\n } else { // This must be an internal edge\n if (onlyAssigns(op, assignOps)) {\n ILogicalOperator skipAssisgnsOp = skipPastAssigns(op);\n boolean canTransform = getJoinOpsAndLeafInputs(skipAssisgnsOp);\n if (!canTransform) {\n return false;\n }\n } else {\n return false;\n }\n }\n }\n return true;\n }",
"<R> R join(Function<First, R> mapFirst);",
"@Test(timeout = 4000)\n public void test042() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"lx<:FnA<j|x 3)\", (String[]) null, \"|$D1C%ID/XH,\", \"0Wp5dC9\", (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 test011() throws Throwable {\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.innerJoin(\" zELECT l `kROM&\", stringArray0, \" zELECT l `kROM&\", \" zELECT l `kROM&\", stringArray0);\n assertEquals(\" zELECT l `kROM& as zELECT l `kROM& on \", string0);\n }",
"void doNestedNaturalJoin(WorkflowExpressionQuery e, NestedExpression nestedExpression, StringBuffer columns, StringBuffer where, StringBuffer whereComp, List values, List queries, StringBuffer orderBy) { // throws WorkflowStoreException {\n\n Object value;\n Field currentExpField;\n\n int numberOfExp = nestedExpression.getExpressionCount();\n\n for (int i = 0; i < numberOfExp; i++) { //ori\n\n //for (i = numberOfExp; i > 0; i--) { //reverse 1 of 3\n Expression expression = nestedExpression.getExpression(i); //ori\n\n //Expression expression = nestedExpression.getExpression(i - 1); //reverse 2 of 3\n if (!(expression.isNested())) {\n FieldExpression fieldExp = (FieldExpression) expression;\n\n FieldExpression fieldExpBeforeCurrent;\n queries.add(expression);\n\n int queryId = queries.size();\n\n if (queryId > 1) {\n columns.append(\" , \");\n }\n\n //do; OS_CURRENTSTEP AS a1 ....\n if (fieldExp.getContext() == Context.CURRENT_STEPS) {\n columns.append(currentTable + \" AS \" + 'a' + queryId);\n } else if (fieldExp.getContext() == Context.HISTORY_STEPS) {\n columns.append(historyTable + \" AS \" + 'a' + queryId);\n } else {\n columns.append(entryTable + \" AS \" + 'a' + queryId);\n }\n\n ///////// beginning of WHERE JOINS/s : //////////////////////////////////////////\n //do for first query; a1.ENTRY_ID = a1.ENTRY_ID\n if (queryId == 1) {\n where.append(\"a1\" + '.' + stepProcessId);\n where.append(\" = \");\n\n if (fieldExp.getContext() == Context.CURRENT_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else if (fieldExp.getContext() == Context.HISTORY_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else {\n where.append(\"a\" + queryId + '.' + entryId);\n }\n }\n\n //do; a1.ENTRY_ID = a2.ENTRY_ID\n if (queryId > 1) {\n fieldExpBeforeCurrent = (FieldExpression) queries.get(queryId - 2);\n\n if (fieldExpBeforeCurrent.getContext() == Context.CURRENT_STEPS) {\n where.append(\"a\" + (queryId - 1) + '.' + stepProcessId);\n } else if (fieldExpBeforeCurrent.getContext() == Context.HISTORY_STEPS) {\n where.append(\"a\" + (queryId - 1) + '.' + stepProcessId);\n } else {\n where.append(\"a\" + (queryId - 1) + '.' + entryId);\n }\n\n where.append(\" = \");\n\n if (fieldExp.getContext() == Context.CURRENT_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else if (fieldExp.getContext() == Context.HISTORY_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else {\n where.append(\"a\" + queryId + '.' + entryId);\n }\n }\n\n ///////// end of LEFT JOIN : \"LEFT JOIN OS_CURRENTSTEP a1 ON a0.ENTRY_ID = a1.ENTRY_ID\n //\n //////// BEGINNING OF WHERE clause //////////////////////////////////////////////////\n value = fieldExp.getValue();\n currentExpField = fieldExp.getField();\n\n //if the Expression is negated and FieldExpression is \"EQUALS\", we need to negate that FieldExpression\n if (expression.isNegate()) {\n //do ; a2.STATUS !=\n whereComp.append(\"a\" + queryId + '.' + fieldName(fieldExp.getField()));\n\n switch (fieldExp.getOperator()) { //WHERE a1.STATUS !=\n case EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS NOT \");\n } else {\n whereComp.append(\" != \");\n }\n\n break;\n\n case NOT_EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS \");\n } else {\n whereComp.append(\" = \");\n }\n\n break;\n\n case GT:\n whereComp.append(\" < \");\n\n break;\n\n case LT:\n whereComp.append(\" > \");\n\n break;\n\n default:\n whereComp.append(\" != \");\n\n break;\n }\n\n switch (currentExpField) {\n case START_DATE:\n case FINISH_DATE:\n values.add(new Timestamp(((java.util.Date) value).getTime()));\n\n break;\n\n default:\n\n if (value == null) {\n values.add(null);\n } else {\n values.add(value);\n }\n\n break;\n }\n } else {\n //do; a1.OWNER =\n whereComp.append(\"a\" + queryId + '.' + fieldName(fieldExp.getField()));\n\n switch (fieldExp.getOperator()) { //WHERE a2.FINISH_DATE <\n case EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS \");\n } else {\n whereComp.append(\" = \");\n }\n\n break;\n\n case NOT_EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS NOT \");\n } else {\n whereComp.append(\" <> \");\n }\n\n break;\n\n case GT:\n whereComp.append(\" > \");\n\n break;\n\n case LT:\n whereComp.append(\" < \");\n\n break;\n\n default:\n whereComp.append(\" = \");\n\n break;\n }\n\n switch (currentExpField) {\n case START_DATE:\n case FINISH_DATE:\n values.add(new Timestamp(((java.util.Date) value).getTime()));\n\n break;\n\n default:\n\n if (value == null) {\n values.add(null);\n } else {\n values.add(value);\n }\n\n break;\n }\n }\n\n //do; a1.OWNER = ? ... a2.STATUS != ?\n whereComp.append(\" ? \");\n\n //////// END OF WHERE clause////////////////////////////////////////////////////////////\n if ((e.getSortOrder() != WorkflowExpressionQuery.SORT_NONE) && (e.getOrderBy() != null)) {\n // System.out.println(\"ORDER BY ; queries.size() : \" + queries.size());\n orderBy.append(\" ORDER BY \");\n orderBy.append(\"a1\" + '.' + fieldName(e.getOrderBy()));\n\n if (e.getSortOrder() == WorkflowExpressionQuery.SORT_ASC) {\n orderBy.append(\" ASC\");\n } else if (e.getSortOrder() == WorkflowExpressionQuery.SORT_DESC) {\n orderBy.append(\" DESC\");\n }\n }\n } else {\n NestedExpression nestedExp = (NestedExpression) expression;\n\n where.append('(');\n\n doNestedNaturalJoin(e, nestedExp, columns, where, whereComp, values, queries, orderBy);\n\n where.append(')');\n }\n\n //add AND or OR clause between the queries\n if (i < (numberOfExp - 1)) { //ori\n\n //if (i > 1) { //reverse 3 of 3\n if (nestedExpression.getExpressionOperator() == LogicalOperator.AND) {\n where.append(\" AND \");\n whereComp.append(\" AND \");\n } else {\n where.append(\" OR \");\n whereComp.append(\" OR \");\n }\n }\n }\n }",
"private void leftLeftCase(NodeRB<K, V> x) {\n\t\t// Swap colors of g and p\n\t\tboolean aux = x.parent.color;\n\t\tx.parent.color = x.getGrandParent().color;\n\t\tx.getGrandParent().color = aux;\n\n\t\t// Right Rotate g\n\t\tNodeRB<K, V> g = x.getGrandParent();\n\t\tif (g.parent == null) {\n\t\t\troot = rotateRight(g);\n\t\t} else {\n\t\t\trotateRight(g);\n\t\t}\n\t}",
"<V1, R> KTable<K, R> join(KTable<K, V1> other, ValueJoiner<V, V1, R> joiner);",
"private boolean buildDependencyList(ILogicalOperator op, JoinOperator jO,\n List<Quadruple<Integer, Integer, JoinOperator, Integer>> outerJoinsDependencyList, int rightSideBits)\n throws AlgebricksException {\n AbstractBinaryJoinOperator outerJoinOp = (AbstractBinaryJoinOperator) op;\n ILogicalOperator leftOp = op.getInputs().get(0).getValue();\n ILogicalExpression expr = outerJoinOp.getCondition().getValue();\n int leftSideExprBits, rightSideExprBits;\n List<LogicalVariable> joinExprVars;\n List<Mutable<ILogicalExpression>> conjs = new ArrayList<>();\n if (expr.splitIntoConjuncts(conjs)) {\n for (Mutable<ILogicalExpression> conj : conjs) {\n joinExprVars = new ArrayList<>();\n leftSideExprBits = 0;\n rightSideExprBits = 0;\n conj.getValue().getUsedVariables(joinExprVars);\n for (LogicalVariable lv : joinExprVars) {\n int id = getLeafInputId(lv);\n if (id != -1) {\n if (foundVar(lv, leftOp)) {\n leftSideExprBits |= 1 << (id - 1);\n } else {\n rightSideExprBits |= 1 << (id - 1);\n }\n }\n }\n if (leftSideExprBits != 0 && rightSideExprBits != 0) {// avoid expressions like true\n outerJoinsDependencyList.add(new Quadruple(leftSideExprBits, rightSideBits, jO, 0));\n }\n }\n } else {\n leftSideExprBits = 0;\n rightSideExprBits = 0;\n joinExprVars = new ArrayList<>();\n expr.getUsedVariables(joinExprVars);\n for (LogicalVariable lv : joinExprVars) {\n int id = getLeafInputId(lv);\n if (id != -1) {\n if (foundVar(lv, leftOp)) {\n leftSideExprBits |= 1 << (id - 1);\n } else {\n rightSideExprBits |= 1 << (id - 1);\n }\n }\n }\n if (leftSideExprBits != 0 && rightSideExprBits != 0) {// avoid expressions like true\n outerJoinsDependencyList.add(new Quadruple(leftSideExprBits, rightSideBits, jO, 0));\n }\n }\n return true;\n }",
"@Test(timeout = 4000)\n public void test041() throws Throwable {\n String[] stringArray0 = new String[2];\n String string0 = SQLUtil.innerJoin((String) null, stringArray0, \"create materialized viewjcsh%4%|@v9\", (String) null, stringArray0);\n assertEquals(\"create materialized viewjcsh%4%|@v9 as null on null.null = null.null and null.null = null.null\", string0);\n }",
"public Object caseJoin(Join object) {\r\n\t\treturn null;\r\n\t}",
"public void testJoin() {\n\n\t\t\tSystem.out.println(\"\\nSELECT first,last,street,city,state,zip\" + \" FROM people, address\"\n\t\t\t\t\t+ \" WHERE people.addrId = address.addrId\");\n\n\t\t\t// Collection version chains to String[] version,\n\t\t\t// so this code tests both:\n\t\t\tList columns = new ArrayList();\n\t\t\tcolumns.add(\"first\");\n\t\t\tcolumns.add(\"last\");\n\t\t\tcolumns.add(\"street\");\n\t\t\tcolumns.add(\"city\");\n\t\t\tcolumns.add(\"state\");\n\t\t\tcolumns.add(\"zip\");\n\n\t\t\tList tables = new ArrayList();\n\t\t\ttables.add(address);\n\n\t\t\tTable result = // WHERE people.addrID = address.addrID\n\t\t\t\t\tpeople.select(new Selector.Adapter() {\n\t\t\t\t\t\tpublic boolean approve(Cursor[] tables) {\n\t\t\t\t\t\t\treturn tables[0].column(\"addrId\").equals(tables[1].column(\"addrId\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}, columns, tables);\n\n\t\t\tprint(result);\n\t\t\tSystem.out.println(\"\");\n\n\t\t\t// Now test a three-way join\n\t\t\t//\n\t\t\tSystem.out.println(\"\\nSELECT first,last,street,city,state,zip,text\" + \" FROM people, address, third\"\n\t\t\t\t\t+ \" WHERE (people.addrId = address.addrId)\" + \" AND (people.addrId = third.addrId)\");\n\n\t\t\tTable third = TableFactory.create(\"third\", new String[] { \"addrId\", \"text\" });\n\t\t\tthird.insert(new Object[] { \"1\", \"addrId=1\" });\n\t\t\tthird.insert(new Object[] { \"2\", \"addrId=2\" });\n\n\t\t\tresult = people.select(new Selector.Adapter() {\n\t\t\t\tpublic boolean approve(Cursor[] tables) {\n\t\t\t\t\treturn (tables[0].column(\"addrId\").equals(tables[1].column(\"addrId\"))\n\t\t\t\t\t\t\t&& tables[0].column(\"addrId\").equals(tables[2].column(\"addrId\")));\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t\t\tnew String[] { \"last\", \"first\", \"state\", \"text\" }, new Table[] { address, third });\n\n\t\t\tSystem.out.println(result.toString() + \"\\n\");\n\t\t}",
"@Override\n @Test\n public void testSimpleJoin() throws Exception { }",
"@Test(timeout = 4000)\n public void test097() throws Throwable {\n String[] stringArray0 = new String[1];\n String string0 = SQLUtil.join((String) null, \"\", stringArray0, \"org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet\", \":\", stringArray0);\n assertEquals(\"org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet as : on .null = :.null\", string0);\n }",
"private void loadCriteriaLeft() {\n for (Criteria criteria : criteriaList) {\n criteriaLeft.add(criteria.getKey());\n }\n }",
"@Test\n public void testPlan3() {\n CalciteAssert.that().with(FOODMART_CLONE).query(\"select \\\"store\\\".\\\"store_country\\\" as \\\"c0\\\", sum(\\\"inventory_fact_1997\\\".\\\"supply_time\\\") as \\\"m0\\\" from \\\"store\\\" as \\\"store\\\", \\\"inventory_fact_1997\\\" as \\\"inventory_fact_1997\\\" where \\\"inventory_fact_1997\\\".\\\"store_id\\\" = \\\"store\\\".\\\"store_id\\\" group by \\\"store\\\".\\\"store_country\\\"\").planContains(\" left.join(right, new org.apache.calcite.linq4j.function.Function1() {\\n\");\n }",
"public Joins()\n {\n joins = new ArrayList<Join>();\n }",
"public void testJoinKey() {\n em.getTransaction().begin();\n em.createQuery(\"DELETE FROM Student s\").executeUpdate();\n em.createQuery(\"DELETE FROM Course s\").executeUpdate();\n em.createQuery(\"DELETE FROM Semester s\").executeUpdate();\n em.getTransaction().commit();\n\n em.getTransaction().begin();\n Student s1 = new Student(); s1.setName(\"S1\");\n Student s2 = new Student(); s2.setName(\"S2\");\n Student s3 = new Student(); s3.setName(\"S3\");\n Student s4 = new Student(); s4.setName(\"S4\");\n Semester sm1 = new Semester(); sm1.setName(\"Summer\");\n Semester sm2 = new Semester(); sm2.setName(\"Fall\");\n Course c1 = new Course(); c1.setName(\"C1\");\n Course c2 = new Course(); c2.setName(\"C2\");\n\n s1.addToEnrollment(c1, sm1); s1.addToEnrollment(c2, sm2);\n s2.addToEnrollment(c2, sm1); s2.addToEnrollment(c1, sm2);\n s3.addToEnrollment(c1, sm2);\n s4.addToEnrollment(c2, sm1);\n\n em.persist(s1); em.persist(s2); em.persist(s3); em.persist(s4);\n em.persist(c1); em.persist(c2);\n em.persist(sm1); em.persist(sm2);\n em.getTransaction().commit();\n\n String jpql = \"select s from Student s JOIN s.enrollment e where KEY(e).name=:name\";\n List<Student> jResult = em.createQuery(jpql).setParameter(\"name\", \"C1\").getResultList();\n\n CriteriaQuery<Student> q = cb.createQuery(Student.class);\n Root<Student> s = q.from(Student.class);\n Join<Map<Course,Semester>,Course> c = ((Joins.Map)s.join(Student_.enrollment)).joinKey();\n q.where(cb.equal(c.get(Course_.name), cb.parameter(String.class, \"name\")));\n\n List<Student> cResult = em.createQuery(q).setParameter(\"name\",\"C1\").getResultList();\n\n assertFalse(jResult.isEmpty());\n assertEquals(cResult.size(), jResult.size());\n for (int i = 0; i < jResult.size(); i++) {\n assertEquals(jResult.get(i).getName(), cResult.get(i).getName());\n }\n }",
"public boolean joinHelper(Person p){\n\t return false;\n\t}"
] |
[
"0.649265",
"0.64502",
"0.64399606",
"0.6398874",
"0.63984174",
"0.63823813",
"0.63571703",
"0.6320167",
"0.62905514",
"0.6243704",
"0.6215448",
"0.6187867",
"0.6157653",
"0.61328626",
"0.6058148",
"0.6043703",
"0.59558475",
"0.5766283",
"0.5738003",
"0.57114035",
"0.56998134",
"0.56577146",
"0.564951",
"0.5606528",
"0.5581393",
"0.5502882",
"0.5466479",
"0.5400566",
"0.5392203",
"0.53868264",
"0.5381066",
"0.5370076",
"0.5366225",
"0.53453594",
"0.5337168",
"0.529862",
"0.5255626",
"0.52379125",
"0.51920855",
"0.518457",
"0.51810163",
"0.51520973",
"0.5133903",
"0.5121917",
"0.5113429",
"0.5103129",
"0.5082432",
"0.508125",
"0.5075473",
"0.5066882",
"0.5064837",
"0.506287",
"0.50621414",
"0.50611526",
"0.50345093",
"0.5026579",
"0.5023872",
"0.50216484",
"0.5013568",
"0.4985269",
"0.49833292",
"0.49792808",
"0.49390996",
"0.49190602",
"0.49074614",
"0.49074608",
"0.48991063",
"0.48859456",
"0.487515",
"0.48728827",
"0.4864966",
"0.4841058",
"0.4833568",
"0.47844386",
"0.4776977",
"0.47620884",
"0.47555295",
"0.47311884",
"0.47114664",
"0.47024536",
"0.46927884",
"0.46629092",
"0.4658516",
"0.465764",
"0.46541545",
"0.46435115",
"0.46434605",
"0.46393013",
"0.46261087",
"0.46211773",
"0.4608306",
"0.46080524",
"0.46074328",
"0.45977592",
"0.45905852",
"0.45861983",
"0.4585282",
"0.45825496",
"0.45697096",
"0.45681342",
"0.45609915"
] |
0.0
|
-1
|
Returns the limit of the current variable bindings before any further projection.
|
private static long getLimit(QueryModelNode node) {
long offset = 0;
if (node instanceof Slice) {
Slice slice = (Slice) node;
if (slice.hasOffset() && slice.hasLimit()) {
return slice.getOffset() + slice.getLimit();
} else if (slice.hasLimit()) {
return slice.getLimit();
} else if (slice.hasOffset()) {
offset = slice.getOffset();
}
}
QueryModelNode parent = node.getParentNode();
if (parent instanceof Distinct || parent instanceof Reduced || parent instanceof Slice) {
long limit = getLimit(parent);
if (offset > 0L && limit < Long.MAX_VALUE) {
return offset + limit;
} else {
return limit;
}
}
return Long.MAX_VALUE;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int capturedLimit() {\n return this.limit.get();\n }",
"public Double getLimit() {\n return limit;\n }",
"public double getLimit() {return limit;}",
"public Integer getProjlimit() {\n return projlimit;\n }",
"public int getLimit() {\n\t\treturn limit;\n\t}",
"public int getLimit() {\n\t\treturn limit;\n\t}",
"public Integer getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\r\n return limit;\r\n }",
"public int getLimit() {\n\treturn Limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n\t\t\treturn limit;\n\t\t}",
"private int getCurrentLimit(){\n\t\treturn this.LIMIT;\n\t}",
"public Long getLimit() {\n return this.limit;\n }",
"public float getLimit() {\n return limit;\n }",
"public int maxLocals();",
"public String getLimit() {\r\n\t\treturn this.limit;\r\n\t}",
"int getLimit();",
"int getLimit();",
"public Long getLimit() {\n return this.Limit;\n }",
"public Long getLimit() {\n return this.Limit;\n }",
"public int getLimitNum() {\r\n return this.limitNum;\r\n }",
"public int getWorldLimit() {\n\t\treturn worldLimit;\n\t}",
"public Integer getLimitnumber() {\n return limitnumber;\n }",
"public void setMaxLocals() {\n/* 292 */ int maxLocals = getMaxLocals();\n/* 293 */ int prevLocals = maxLocals;\n/* */ \n/* */ \n/* 296 */ LocalVariableGen[] localVars = getLocalVariables();\n/* 297 */ if (localVars != null && \n/* 298 */ localVars.length > maxLocals) {\n/* 299 */ maxLocals = localVars.length;\n/* */ }\n/* */ \n/* */ \n/* 303 */ if (maxLocals < 5) maxLocals = 5;\n/* */ \n/* 305 */ setMaxLocals(maxLocals);\n/* */ }",
"public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }",
"public int getLimit(){\r\n return limit;\r\n\r\n }",
"public int getLimitClauseStart() {\n return limitClauseStart;\n }",
"public int getLimitClauseStart() {\n return limitClauseStart;\n }",
"public void setMaxLocals(int maxLocals);",
"public int getLimitClauseCount() {\n return limitClauseCount;\n }",
"public int getLimitClauseCount() {\n return limitClauseCount;\n }",
"public long limit();",
"public Long getLimitClauseStart() {\r\n\t\treturn limitClauseStart;\r\n\t}",
"public org.apache.xmlbeans.XmlNonNegativeInteger xgetLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNonNegativeInteger target = null;\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().find_element_user(LIMIT$6, 0);\r\n return target;\r\n }\r\n }",
"public synchronized double getOutputLimit()\n {\n final String funcName = \"getOutputLimit\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", outputLimit);\n }\n\n return outputLimit;\n }",
"public int getBound();",
"public java.math.BigInteger getLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }",
"public static double calculateLimit() {\n return 500;\n }",
"public Integer getLimitStart() {\r\n return limitStart;\r\n }",
"public LinearConstraint setLimit(Double limit) {\n this.limit = limit;\n return this;\n }",
"public com.google.protobuf.Int32Value getLimit() {\n return instance.getLimit();\n }",
"public Long getLimitClauseCount() {\r\n\t\treturn limitClauseCount;\r\n\t}",
"String getLimit(boolean hasWhereClause, long limit);",
"public Integer getLimitEnd() {\r\n return limitEnd;\r\n }",
"protected Limit getLimit() {\n return new Limit(skip, limit);\n }",
"public int getLimitStart() {\n return limitStart;\n }",
"public int getLimitStart() {\n return limitStart;\n }",
"public int getLimitStart() {\n return limitStart;\n }",
"public InfinitNumber getBound() {\n\t\treturn mBound;\n\t}",
"String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);",
"public int getLimitEnd() {\n return limitEnd;\n }",
"public int getLimitEnd() {\n return limitEnd;\n }",
"private int mobLimitPlacer(){\n if (gameWorld == GameWorld.NORMAL) return\n Api.getConfigManager().getWorldMobLimit();\n else return\n Api.getConfigManager().getNetherMobLimit();\n }",
"public String getLimit_Base();",
"public double getMiterLimit(\n )\n {return miterLimit;}",
"public long getSelectionLimit()\n {\n if (this.selLimitCount == 0L) {\n this.selLimitCount = 1L;\n }\n return this.selLimitCount;\n }",
"public Byte getSourcelimit() {\n return sourcelimit;\n }",
"public int getFrameLimit() {\n\t\treturn frameLimit;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public Q limit(int limit) {\n this.limit = limit;\n return (Q) this;\n }",
"public int getMaximumPoints();",
"public com.google.protobuf.Int32Value getLimit() {\n return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_;\n }",
"@BeanTagAttribute(name = \"resultSetLimit\")\r\n public Integer getResultSetLimit() {\r\n return resultSetLimit;\r\n }",
"public int getMaximum() {\n \tcheckWidget();\n \treturn maximum;\n }",
"public ListInfrastructure limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public int getUpperBound() {\r\n return upperBound;\r\n }",
"public int getUpperBound() {\n\t\treturn upperBound;\n\t}",
"public int getUpperBound() {\n\t\treturn this.upperBound;\n\t}",
"public boolean hasLimit() {\n return instance.hasLimit();\n }",
"public abstract int getMaximumArguments();",
"@Override\n public double getMiterLimit() {\n return graphicsEnvironmentImpl.getMiterLimit(canvas);\n }",
"public void setLimit(double limit) {\n\t\tthis.limit = limit;\n\t }",
"public void SetLimit(long FaceBoundaries) {\n OCCwrapJavaJNI.BRepAlgo_NormalProjection_SetLimit__SWIG_0(swigCPtr, this, FaceBoundaries);\n }",
"private static int getMaxActiveViewScopes() {\r\n\t\tif (maxActiveViewScopes != null) {\r\n\t\t\treturn maxActiveViewScopes;\r\n\t\t}\r\n\r\n\t\tfor (String name : PARAM_NAMES_MAX_ACTIVE_VIEW_SCOPES) {\r\n\t\t\tString value = getInitParameter(name);\r\n\r\n\t\t\tif (value != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmaxActiveViewScopes = Integer.valueOf(value);\r\n\t\t\t\t\treturn maxActiveViewScopes;\r\n\t\t\t\t}\r\n\t\t\t\tcatch (NumberFormatException e) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(format(ERROR_MAX_ACTIVE_VIEW_SCOPES, name, value), e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmaxActiveViewScopes = DEFAULT_MAX_ACTIVE_VIEW_SCOPES;\r\n\t\treturn maxActiveViewScopes;\r\n\t}",
"public int getxMax() {\n\t\treturn xMax;\n\t}",
"Limits limits();",
"public ListDNS limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}",
"public float getUsedLimit() {\n return usedLimit;\n }",
"public int getMaxTPDUSizeParam() {\n return maxTPDUSizeParam;\n }",
"public boolean getIsLimited() {\n return isLimited_;\n }",
"public int getMaxModelRange(){\n\t\tint max=0;\n\t\tfor(ControlledExperiment ce : replicates)\n\t\t\tif(ce.getBindingModel().getInfluenceRange()>max)\n\t\t\t\tmax = ce.getBindingModel().getInfluenceRange();\n\t\treturn max;\n\t}",
"public Integer getResultLimit()\n {\n if (resultLimit == null)\n {\n return HPCCWsWorkUnitsClient.defaultResultLimit;\n }\n return resultLimit;\n }",
"@Override\n\tpublic int getVariableSize()\n\t{\n\t\treturn con.getVariableSize() - 1;\n\t}",
"public String getPortRangeMax() {\n return portRangeMax;\n }",
"public float getLimit_lin_x_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}",
"GridEnvelope getLimits();",
"public double getXRangeMax() {\n return xRangeMax;\n }",
"public LimitBuilder limit() {\n return memory.limit();\n }",
"public String getLowerLimit() {\n return lowerLimit;\n }",
"public void setLimit(int limit) {\n\tLimit = limit;\n }",
"public ListProxy limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"private double getMaxThreshold() {\n return maxThreshold;\n }",
"public boolean getIsLimited() {\n return isLimited_;\n }",
"public int getSizeLimit() {\n\t\treturn sizeLimit;\n\t}",
"ReadOnlyDoubleProperty maximumProperty();",
"public double getCurrentClampValue() {\r\n return currentClampValue;\r\n }",
"public final AstValidator.limit_clause_return limit_clause() throws RecognitionException {\n AstValidator.limit_clause_return retval = new AstValidator.limit_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree LIMIT282=null;\n CommonTree INTEGER284=null;\n CommonTree LONGINTEGER285=null;\n AstValidator.rel_return rel283 =null;\n\n AstValidator.expr_return expr286 =null;\n\n\n CommonTree LIMIT282_tree=null;\n CommonTree INTEGER284_tree=null;\n CommonTree LONGINTEGER285_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:14: ( ^( LIMIT rel ( INTEGER | LONGINTEGER | expr ) ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:16: ^( LIMIT rel ( INTEGER | LONGINTEGER | expr ) )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n LIMIT282=(CommonTree)match(input,LIMIT,FOLLOW_LIMIT_in_limit_clause2381); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LIMIT282_tree = (CommonTree)adaptor.dupNode(LIMIT282);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(LIMIT282_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_limit_clause2383);\n rel283=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel283.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:29: ( INTEGER | LONGINTEGER | expr )\n int alt72=3;\n switch ( input.LA(1) ) {\n case INTEGER:\n {\n int LA72_1 = input.LA(2);\n\n if ( (synpred142_AstValidator()) ) {\n alt72=1;\n }\n else if ( (true) ) {\n alt72=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 1, input);\n\n throw nvae;\n\n }\n }\n break;\n case LONGINTEGER:\n {\n int LA72_2 = input.LA(2);\n\n if ( (synpred143_AstValidator()) ) {\n alt72=2;\n }\n else if ( (true) ) {\n alt72=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 2, input);\n\n throw nvae;\n\n }\n }\n break;\n case BIGDECIMALNUMBER:\n case BIGINTEGERNUMBER:\n case CUBE:\n case DIV:\n case DOLLARVAR:\n case DOUBLENUMBER:\n case FALSE:\n case FLOATNUMBER:\n case GROUP:\n case IDENTIFIER:\n case MINUS:\n case NULL:\n case PERCENT:\n case PLUS:\n case QUOTEDSTRING:\n case STAR:\n case TRUE:\n case BAG_VAL:\n case BIN_EXPR:\n case CASE_COND:\n case CASE_EXPR:\n case CAST_EXPR:\n case EXPR_IN_PAREN:\n case FUNC_EVAL:\n case INVOKER_FUNC_EVAL:\n case MAP_VAL:\n case NEG:\n case TUPLE_VAL:\n {\n alt72=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt72) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:31: INTEGER\n {\n _last = (CommonTree)input.LT(1);\n INTEGER284=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_limit_clause2387); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER284_tree = (CommonTree)adaptor.dupNode(INTEGER284);\n\n\n adaptor.addChild(root_1, INTEGER284_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:41: LONGINTEGER\n {\n _last = (CommonTree)input.LT(1);\n LONGINTEGER285=(CommonTree)match(input,LONGINTEGER,FOLLOW_LONGINTEGER_in_limit_clause2391); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LONGINTEGER285_tree = (CommonTree)adaptor.dupNode(LONGINTEGER285);\n\n\n adaptor.addChild(root_1, LONGINTEGER285_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:55: expr\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_limit_clause2395);\n expr286=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr286.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }"
] |
[
"0.67771375",
"0.65158665",
"0.65086055",
"0.644522",
"0.64186984",
"0.64186984",
"0.63777864",
"0.6369832",
"0.634345",
"0.63344014",
"0.6323273",
"0.6323273",
"0.6323273",
"0.6317",
"0.6290363",
"0.6264054",
"0.62624395",
"0.6251857",
"0.62303495",
"0.61858594",
"0.61858594",
"0.6184886",
"0.6184886",
"0.61055017",
"0.60728747",
"0.6064328",
"0.6051047",
"0.60148424",
"0.60061175",
"0.59659934",
"0.59659934",
"0.5948489",
"0.5865115",
"0.5865115",
"0.58167523",
"0.5794017",
"0.5752499",
"0.5745164",
"0.5729969",
"0.57264966",
"0.5723293",
"0.5720403",
"0.56961614",
"0.5695621",
"0.5693051",
"0.5665026",
"0.56348765",
"0.5611482",
"0.55981505",
"0.55981505",
"0.55981505",
"0.5588404",
"0.5558797",
"0.5556861",
"0.5556861",
"0.55224216",
"0.5518679",
"0.5515775",
"0.5515019",
"0.54627174",
"0.54523486",
"0.5448704",
"0.5440641",
"0.5419651",
"0.5410979",
"0.5410158",
"0.5397966",
"0.5388989",
"0.5368344",
"0.53644663",
"0.53606534",
"0.5357503",
"0.5356031",
"0.53526115",
"0.53498554",
"0.53392726",
"0.5330591",
"0.5329052",
"0.53272945",
"0.53243124",
"0.53232914",
"0.532119",
"0.5320413",
"0.53168106",
"0.5313158",
"0.53082937",
"0.53050387",
"0.529857",
"0.5296973",
"0.5295221",
"0.52944386",
"0.52911043",
"0.5282449",
"0.5276826",
"0.5272364",
"0.5270358",
"0.5266099",
"0.52652884",
"0.52620864",
"0.5247859"
] |
0.5589824
|
51
|
Handle navigation view item clicks here.
|
@SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.nav_garagiste_crud) {
Intent navigation = new Intent(this,ListGaragisteActivity.class);
this.startActivity(navigation);
} else if (id == R.id.nav_voiture_crud) {
Intent navigation = new Intent(this,ListVoitureActivity.class);
this.startActivity(navigation);
}
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_start);
drawer.closeDrawer(GravityCompat.START);
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void onNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"void onDialogNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }",
"@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }",
"@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }",
"@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }",
"@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }",
"@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}",
"@Override\n public void OnItemClick(int position) {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}",
"@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }",
"@Override\n public void onItemClick(int pos) {\n }",
"@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }",
"private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }",
"void onMenuItemClicked();",
"@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}",
"@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}",
"@Override\n public void onItemClick(View view, String data) {\n }",
"abstract public void onSingleItemClick(View view);",
"@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }",
"@Override\n public void itemClick(int pos) {\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"@Override\n public void onItemClick(Nson parent, View view, int position) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }",
"@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }",
"@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"public void onItemClick(View view, int position);",
"@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }",
"@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }",
"@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"void onLinkClicked(@Nullable ContentId itemId);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }",
"void onItemClick(View view, int position);",
"@Override\n public void onClick(View v) {\n startNavigation();\n }",
"void onItemClick(int position);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}",
"@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }",
"void clickItem(int uid);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onItemClick(View view, int position) {\n\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }",
"public void onItemClick(View view, int position) {\n\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}",
"void onClick(View item, View widget, int position, int which);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"public void menuClicked(MenuItem menuItemSelected);",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}"
] |
[
"0.7882029",
"0.7235578",
"0.6987005",
"0.69458413",
"0.6917864",
"0.6917864",
"0.6883472",
"0.6875181",
"0.68681556",
"0.6766498",
"0.67418456",
"0.67207",
"0.6716157",
"0.6713947",
"0.6698189",
"0.66980195",
"0.66793925",
"0.66624063",
"0.66595167",
"0.6646381",
"0.6641224",
"0.66243863",
"0.6624042",
"0.66207093",
"0.6602551",
"0.6602231",
"0.6599443",
"0.65987265",
"0.65935796",
"0.6585869",
"0.658491",
"0.65811735",
"0.65765643",
"0.65751576",
"0.65694076",
"0.6561757",
"0.65582377",
"0.65581614",
"0.6552827",
"0.6552827",
"0.6549224",
"0.65389794",
"0.65345114",
"0.65337104",
"0.652419",
"0.652419",
"0.6522521",
"0.652146",
"0.6521068",
"0.6519354",
"0.65165275",
"0.65159816",
"0.65028816",
"0.6498054",
"0.6498054",
"0.64969087",
"0.64937705",
"0.6488544",
"0.64867324",
"0.64866185",
"0.64865905",
"0.6484047",
"0.6481108",
"0.6474686",
"0.64628965",
"0.64551884",
"0.6446893",
"0.64436555",
"0.64436555",
"0.64436555",
"0.64436555",
"0.64436555",
"0.64386237",
"0.643595",
"0.64356565",
"0.64329195",
"0.6432562",
"0.6429554",
"0.64255124",
"0.64255124",
"0.64121485",
"0.64102405",
"0.64095175",
"0.64095175",
"0.64094734",
"0.640727",
"0.64060104",
"0.640229",
"0.6397359",
"0.6392996",
"0.63921124",
"0.63899696",
"0.63885015",
"0.63885015",
"0.63873845",
"0.6368818",
"0.6368818",
"0.63643163",
"0.63643163",
"0.63643163",
"0.6358884"
] |
0.0
|
-1
|
Creates new form data2
|
public data2() {
initComponents();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ExtraApplyVo register_form2(int app_no) {\n ExtraApplyVo extraApplyVo = registerDao.register_form2(app_no);\n// extraApplyVo.setWayArray(wayArray);\n return extraApplyVo;\n }",
"FORM createFORM();",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\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\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}",
"public form2() {\n initComponents();\n }",
"protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t}",
"public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n //Modified for COEUSDEV-413 : Subcontract Custom data bug - Data getting wiped out - Start\r\n// if( isDataChanged() ){\r\n\t\tif( isDataChanged() || getFunctionType() == NEW_ENTRY_SUBCONTRACT || getFunctionType() == NEW_SUBCONTRACT) { //COEUSDEV-413 : End\r\n Vector genericColumnValues = customElementsForm.getOtherColumnElementData();\r\n\t\t\tif( genericColumnValues != null && genericColumnValues.size() > 0 ){\r\n\t\t\t\tCustomElementsInfoBean genericCustElementsBean = null;\r\n\t\t\t\tint dataSize = genericColumnValues.size();\r\n\t\t\t\tfor( int indx = 0; indx < dataSize; indx++ ) {\r\n\t\t\t\t\tgenericCustElementsBean = (CustomElementsInfoBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tSubContractCustomDataBean subContractCustomDataBean\r\n\t\t\t\t\t= new SubContractCustomDataBean(genericCustElementsBean);\r\n SubContractCustomDataBean oldSubContractCustomDataBean = (SubContractCustomDataBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tif(getFunctionType() == NEW_ENTRY_SUBCONTRACT) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setAcType(\"I\");\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif( INSERT_RECORD.equals(subContractCustomDataBean.getAcType()) ) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif( genericCustElementsBean instanceof SubContractCustomDataBean ) {\r\n//\t\t\t\t\t\t\tSubContractCustomDataBean oldSubContractCustomDataBean =\r\n//\t\t\t\t\t\t\t(SubContractCustomDataBean)genericCustElementsBean;\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setAcType(genericCustElementsBean.getAcType());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(oldSubContractCustomDataBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(oldSubContractCustomDataBean.getSequenceNumber());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tString custAcType = subContractCustomDataBean.getAcType();\r\n\t\t\t\t\t\tif( UPDATE_RECORD.equals(custAcType) ){\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.update(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}else if( INSERT_RECORD.equals(custAcType)){\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.insert(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}catch ( CoeusException ce ) {\r\n\t\t\t\t\t\tce.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcustomElementsForm.setSaveRequired(false);\r\n\t\t}\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 }",
"@ResponseBody\n @PostMapping(\"/createAccount\")\n public ModelAndView postCreateAccount(@RequestParam(\"passwordProfessor2\") String password2, @ModelAttribute(\"Account\") Account newAccount, Model model)\n {\n // List of possible errors to return to user\n List<String> errors = new ArrayList<>();\n ModelAndView modelAndView = new ModelAndView();\n try\n {\n if (! password2.equals(newAccount.getPassword()))\n {\n throw new IllegalStateException(\"Passwörter stimmen nicht überein\");\n }\n Optional<Account> account = accountService.createAccount(newAccount);\n account.ifPresent(accountService::saveAccount);\n \n modelAndView.setViewName(getLogin(model.addAttribute(\"registeredEmail\", newAccount.getEmail())));\n return modelAndView;\n } catch (IllegalStateException e)\n {\n errors.add(e.getMessage());\n errors.add(\"Anmeldung Fehlgeschlagen\");\n \n modelAndView.setViewName(getRegistration(model.addAttribute(\"errorList\", errors)));\n return modelAndView;\n }\n }",
"public EntityType2 post(final EntityType2 newEntityType2) throws ClientException {\n return send(HttpMethod.POST, newEntityType2);\n }",
"public void createEntity2(Entity2 entity2) throws DaoException;",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }",
"private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public Team create(TeamDTO teamForm);",
"private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"WithCreate withCreationData(CreationData creationData);",
"private void createFormTwo() throws IOException{\n\t\t\t\n\t\t\tweatherData[] tmp = new weatherData[10]; //holds weather data objects\n\t\t\ttry {\n\t\t\t\tapp.grabShortTerm(app.getVisibleLocation().getCityID(), app.getUnits()); //grabs current weather data info from database\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t} \n\t\t\ttmp = app.getShortTerm(); //grabs weatherData objects now filled with data\n\t\t\t\n\t\t\t//used for formatting\n\t\t\tJLabel lbl1 = new JLabel(\"Time: \");\n\t\t\tlbl1.setForeground(Color.WHITE);\n\t\t\tJLabel lbl2 = new JLabel(\"Temp: \");\n\t\t\tlbl2.setForeground(Color.WHITE);\n\t\t\tJLabel lbl3 = new JLabel(\"Weather Condition:\");\n\t\t\tlbl3.setForeground(Color.WHITE);\n\t\t\t\n\t\t\t//Clone of the above labels for 2nd side cell\n\t\t\tJLabel lbl4 = new JLabel(\"Time: \");\n\t\t\tlbl4.setForeground(Color.WHITE);\n\t\t\tJLabel lbl5 = new JLabel(\"Temp: \");\n\t\t\tlbl5.setForeground(Color.WHITE);\n\t\t\tJLabel lbl6 = new JLabel(\"Weather Condition:\");\n\t\t\tlbl6.setForeground(Color.WHITE);\n\n\t\t\t//Clone of the above labels for 3rd side cell\n\t\t\tJLabel lbl7 = new JLabel(\"Time: \");\n\t\t\tlbl7.setForeground(Color.WHITE);\n\t\t\tJLabel lbl8 = new JLabel(\"Temp: \");\n\t\t\tlbl8.setForeground(Color.WHITE);\n\t\t\tJLabel lbl9 = new JLabel(\"Weather Condition:\");\n\t\t\tlbl9.setForeground(Color.WHITE);\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp[0].getName() + \", \" + tmp[0].getCount() + \", \" + tmp[0].getLon() + \", \" + tmp[0].getLat() ); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tJLabel[] temp = new JLabel[9]; //array of temperature labels\n\t\t\tJLabel[] time = new JLabel[9]; //array of time stamps\n\t\t\tJLabel[] descrip = new JLabel[9]; //array of description labels\n\t\t\tJLabel[] lblPic = new JLabel[9]; //array of picture labels\n\n\t\t\t\n\t\t\tBufferedImage pic = null; //used to temporarily hold pictures\n\t\t\tJLabel hold; //temporarily hold labels for storage\n\t\t\tJLabel hold2;\n\t\t\tJLabel hold3;\n\t\t\tJLabel hold4;\n\t\t\t\n\t\t\t//fills the arrays with their respective values\n\t\t\tfor(int i =0; i<9; i++){\n\t\t\t\thold = new JLabel(\"\" +tmp[i+1].getTemp()); //creates a new label\n\t\t\t\ttemp[i] = hold; //puts it in the array\n\t\t\t\thold2 = new JLabel(\"\" +tmp[i+1].getCondit());\n\t\t\t\tdescrip[i] = hold2;\n\t\t\t\t\n\t\t\t\tpic = tmp[i+1].getIcon();\n\t\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\t\thold3 = new JLabel(new ImageIcon(pic));\n\t\t\t\tlblPic[i] = hold3;\n\t\t\t\thold4 = new JLabel(tmp[i+1].getSunrise());//timestamp stored in Sunrise, since this variable was not in use for ShorTerm\n\t\t\t\ttime[i] = hold4;\n\t\t\t\t\n\t\t\t\ttemp[i].setForeground(Color.WHITE);\n\t\t\t\tdescrip[i].setForeground(Color.WHITE);\n\t\t\t\ttime[i].setForeground(Color.WHITE);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Sub-panels within the main panel\n\t\t\tJPanel[] subShort = new JPanel[12];\n\t\t\tGroupLayout[] layout = new GroupLayout[12];\n\t\t\t\n\t\t\t//Grid format for the panel\n\t\t\tGridLayout grid = new GridLayout(3, 5);\n\t\t\tshortPanel.setLayout(grid);\n\t\t\t\n\t\t\t//Sets the ShortTerm cell colors to default values\n\t\t\tresetShortColors();\t\t\t\n\t\t\t//Initializes the sub-panels so components can be added to them \n\t\t\tmakeShortComps(subShort);\n\t\t\t\n\t\t\t//Sets the layout for each sub-panel\n\t\t\tfor(int i = 0; i < 12; i++)\n\t\t\t{\n\t\t\t\tsubShort[i].setBackground(Color.BLACK);\n\t\t\t\tlayout[i] = new GroupLayout(subShort[i]);\n\t\t\t\tlayout[i].setAutoCreateContainerGaps(true);\n\t\t\t}\n\t\t\t\n\t\t\t//Group layout used to organize GUI - sets format of top side panel\n\t\t\tlayout[0].setHorizontalGroup( layout[0].createSequentialGroup() //sets the horizontal groups\n\t\t\t\t\t\t\n\t\t\t\t\t\t.addGroup(layout[0].createParallelGroup(GroupLayout.Alignment.LEADING) //shows city data\n\t\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t\t.addGap(10)\n\t\t\t\t\t\t\t\t.addComponent(lbl1)\n\t\t\t\t\t\t\t\t.addComponent(lbl2)\n\t\t\t\t\t\t\t\t.addComponent(lbl3)\n\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);\n\t\t\tlayout[0].setVerticalGroup( layout[0].createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t.addGroup( layout[0].createParallelGroup(GroupLayout.Alignment.BASELINE)//city is in its own vertical group\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout[0].createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t.addGap(35)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout[0].createParallelGroup(GroupLayout.Alignment.LEADING) //time aligned vertically\n\t\t\t\t\t\t\t.addComponent(lbl1)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout[0].createParallelGroup(GroupLayout.Alignment.LEADING) //temp aligned vertically\n\t\t\t\t\t\t\t.addComponent(lbl2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout[0].createParallelGroup(GroupLayout.Alignment.LEADING) //weather condition alligned vertically\n\t\t\t\t\t\t\t.addComponent(lbl3)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\n\t\t\t//Sets layout for side panel #2 similar to layer[0] layout\n\t\t\tlayout[10].setHorizontalGroup( layout[10].createSequentialGroup() //sets the horizontal groups\n\t\t\t\t\t\n\t\t\t\t\t.addGroup(layout[10].createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t.addGap(10)\n\t\t\t\t\t\t\t.addComponent(lbl4)\n\t\t\t\t\t\t\t.addComponent(lbl5)\n\t\t\t\t\t\t\t.addComponent(lbl6)\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);\n\t\t//Second cell of the left side column\n\t\tlayout[10].setVerticalGroup( layout[10].createSequentialGroup() //sets the vertical groups\n\t\t\t\t.addGroup( layout[10].createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t.addGap(65)\n\t\t\t\t\t\t)\n\t\t\t\t.addGroup( layout[10].createParallelGroup(GroupLayout.Alignment.LEADING) //time aligned vertically\n\t\t\t\t\t\t.addComponent(lbl4)\n\t\t\t\t\t\t)\n\t\t\t\t.addGroup( layout[10].createParallelGroup(GroupLayout.Alignment.LEADING) //temp aligned vertically\n\t\t\t\t\t\t.addComponent(lbl5)\n\t\t\t\t\t\t)\n\t\t\t\t.addGroup( layout[10].createParallelGroup(GroupLayout.Alignment.LEADING) //weather condition alligned vertically\n\t\t\t\t\t\t.addComponent(lbl6)\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t\n\t\t//Third cell of the left side column\n\t\tlayout[11].setHorizontalGroup( layout[11].createSequentialGroup() //sets the horizontal groups\n\t\t\t\t\n\t\t\t\t.addGroup(layout[11].createParallelGroup(GroupLayout.Alignment.LEADING) //shows city data\n\t\t\t\t\t\t.addGap(10)\n\t\t\t\t\t\t.addComponent(lbl7)\n\t\t\t\t\t\t.addComponent(lbl8)\n\t\t\t\t\t\t.addComponent(lbl9)\n\t\t\t\t\t\t\n\t\t\t\t)\t\t\t\t\t\t\n\t\t\t);\n\t\t//Third cell of the left side column\n\t\tlayout[11].setVerticalGroup( layout[11].createSequentialGroup() //sets the vertical groups\n\t\t\t.addGroup( layout[11].createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t.addGap(65)\n\t\t\t\t\t)\n\t\t\t.addGroup( layout[11].createParallelGroup(GroupLayout.Alignment.LEADING) //times aligned vertically\n\t\t\t\t\t.addComponent(lbl7)\n\t\t\t\t\t)\n\t\t\t.addGroup( layout[11].createParallelGroup(GroupLayout.Alignment.LEADING) //temp aligned vertically\n\t\t\t\t\t.addComponent(lbl8)\n\t\t\t\t\t)\n\t\t\t.addGroup( layout[11].createParallelGroup(GroupLayout.Alignment.LEADING) //weather condition alligned vertically\n\t\t\t\t\t.addComponent(lbl9)\n\t\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t//Actual weather cells\n\t\t\tfor(int i = 0; i < 9; i++)\n\t\t\t{\n\t\t\t\tlayout[i+1].setHorizontalGroup( layout[i+1].createSequentialGroup() //sets the horizontal groups\n\t\t\t\t\t\t.addGroup(layout[i+1].createParallelGroup(GroupLayout.Alignment.LEADING)\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.addComponent(lblPic[i])\n\t\t\t\t\t\t\t.addComponent(time[i])\n\t\t\t\t\t\t\t.addComponent(temp[i])\n\t\t\t\t\t\t\t.addComponent(descrip[i])\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\tlayout[i+1].setVerticalGroup( layout[i+1].createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\t.addGroup( layout[i+1].createParallelGroup(GroupLayout.Alignment.BASELINE) //pics aligned vertically\n\t\t\t\t\t\t\t\t.addComponent(lblPic[i])\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t.addGroup( layout[i+1].createParallelGroup(GroupLayout.Alignment.LEADING) //times aligned vertically\n\t\t\t\t\t\t\t\t.addComponent(time[i])\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t.addGroup( layout[i+1].createParallelGroup(GroupLayout.Alignment.LEADING) //temps aligned vertically\n\t\t\t\t\t\t\t\t.addComponent(temp[i])\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t.addGroup( layout[i+1].createParallelGroup(GroupLayout.Alignment.LEADING) //conditions aligned vertically\n\t\t\t\t\t\t\t\t.addComponent(descrip[i])\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t}\n\n\t\t\tsubShort[0].setLayout(layout[0]); //sets the layout for the first left-side panel\n\t\t\tshortPanel.add(subShort[0]);\n\t\t\t\n\t\t\t//Sets the layout for each weather panel\n\t\t\tfor(int i = 1; i < 10; i++)\n\t\t\t{\n\t\t\t\tsubShort[i].setLayout(layout[i]); //sets the defined layout to the panel\n\t\t\t\tshortPanel.add(subShort[i]);\n\t\t\t\t\tsetShortBgColors(tmp[i], i, i+10);\n\t\t\t\tif(i == 3){ //sets the layout for the second left-side panel\n\t\t\t\t\tsubShort[10].setLayout(layout[10]);\n\t\t\t\t\tsubShort[10].validate();\n\t\t\t\t\tsubShort[10].repaint();\n\t\t\t\t\tshortPanel.add(subShort[10]);\n\t\t\t\t}\n\t\t\t\telse if(i == 6){ //sets the layout for the third left-side panel\n\t\t\t\t\tsubShort[11].setLayout(layout[11]);\n\t\t\t\t\tsubShort[11].validate();\n\t\t\t\t\tsubShort[11].repaint();\n\t\t\t\t\tshortPanel.add(subShort[11]);\n\t\t\t\t}\n\t\t\t\tsubShort[i].validate();\n\t\t\t\tsubShort[i].repaint();\n\t\t\t}\t\t\t\n\t\t}",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"private MetaSparqlRequest createInsertMT2() {\n\t\t//is the same of MT1\n\t\treturn createInsertMT1();\n\t}",
"public void saveFormData() throws CoeusException {\r\n ComboBoxBean cmbTypeCode =(ComboBoxBean)awardAddDocumentForm.cmbDocumentType.getSelectedItem();\r\n if(!cmbTypeCode.getCode().equals(\"\") && !cmbTypeCode.getDescription().equals(\"\")){\r\n RequesterBean requesterBean = new RequesterBean();\r\n AwardDocumentBean awardDocumentBean = new AwardDocumentBean();\r\n awardDocumentBean.setAwardNumber(awardBaseBean.getMitAwardNumber());\r\n awardDocumentBean.setSequenceNumber(awardBaseBean.getSequenceNumber());\r\n if(awardAddDocumentForm.cmbDocumentType.getSelectedItem() != null\r\n && !awardAddDocumentForm.cmbDocumentType.getSelectedItem().equals(EMPTY_STRING)){\r\n cmbTypeCode =(ComboBoxBean)awardAddDocumentForm.cmbDocumentType.getSelectedItem();\r\n awardDocumentBean.setDocumentTypeCode(Integer.parseInt(cmbTypeCode.getCode()));\r\n awardDocumentBean.setDocumentTypeDescription((awardAddDocumentForm.cmbDocumentType.getSelectedItem().toString()));\r\n docTypeEmpty = false;\r\n }else{\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"awardDocuments_NoDocType_exceptionCode.1112\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.cmbDocumentType.requestFocusInWindow(); \r\n return;\r\n }\r\n if(awardAddDocumentForm.txtDescription.getText() != null &&\r\n !awardAddDocumentForm.txtDescription.getText().equals(EMPTY_STRING)){\r\n if(awardAddDocumentForm.txtDescription.getText().length() > 200){\r\n String description = awardAddDocumentForm.txtDescription.getText().substring(0,201);\r\n awardDocumentBean.setDescription(description);\r\n docTypeEmpty = false;\r\n }else{\r\n awardDocumentBean.setDescription(awardAddDocumentForm.txtDescription.getText());\r\n }\r\n }\r\n else {\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"awardDocuments_DescDoc_exceptionCode.1115\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.txtDescription.requestFocusInWindow();\r\n return;\r\n }\r\n if(awardAddDocumentForm.txtFileName.getText() != null\r\n && !awardAddDocumentForm.txtFileName.getText().equals(EMPTY_STRING)){\r\n awardDocumentBean.setFileName(awardAddDocumentForm.txtFileName.getText());\r\n docTypeEmpty = false;\r\n }else{\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"awardDocuments_AttachDoc_exceptionCode.1113\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.btnUpload.requestFocusInWindow(); \r\n return;\r\n }\r\n if(fileSelected && getBlobData() != null){\r\n awardDocumentBean.setDocument(getBlobData());\r\n awardDocumentBean.setMimeType(getMimeType());//4007\r\n }\r\n awardDocumentBean.setAcType(\"I\");\r\n awardDocumentBean.setDocStatusCode(\"A\");\r\n awardDocumentBean.setDocStatusDescription(\"ACTIVE\");\r\n requesterBean.setDataObject(awardDocumentBean);\r\n requesterBean.setFunctionType(ADD_VOID_AWARD_DOC_DATA);\r\n AppletServletCommunicator appletServletCommunicator = new\r\n AppletServletCommunicator(AWARD_MAINTENANCE_SERVLET, requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responder = appletServletCommunicator.getResponse();\r\n if(!responder.isSuccessfulResponse()){\r\n setOkClicked(false);\r\n dlgAwardUploadDoc.dispose();\r\n CoeusOptionPane.showErrorDialog(responder.getMessage());\r\n throw new CoeusException(responder.getMessage(),0);\r\n }else{\r\n setOkClicked(true);\r\n }\r\n }else{\r\n docTypeEmpty = true;\r\n setOkClicked(false);\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"awardDocuments_NoDocType_exceptionCode.1112\"));\r\n awardAddDocumentForm.cmbDocumentType.requestFocusInWindow();\r\n return;\r\n } \r\n }",
"public FormProduct() {\n initComponents();\n getData();\n }",
"public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }",
"@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }",
"private void fillCreateOrEditForm(String name, int branchId) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByValue(xpathSelectBranch, \"number:\" + branchId);\n logger.info(\"# Select branch id: \" + branchId);\n }",
"public void post(final EntityType2 newEntityType2, final ICallback<? super EntityType2> callback) {\n send(HttpMethod.POST, callback, newEntityType2);\n }",
"CreationData creationData();",
"public void setFormData(Object data) /*throws edu.mit.coeus.exception.CoeusException*/ {\r\n try {\r\n cvHierarchyData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorHierarchyBean.class);\r\n cvSortData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorHierarchyBean.class);\r\n cvGroupsData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorMaintenanceFormBean.class);\r\n rowId = cvHierarchyData.size()+1;\r\n //Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy \r\n if(getFunctionType() != CoeusGuiConstants.DISPLAY_MODE){\r\n try{\r\n isPrintingHierarchy = canUserLoadSponsorForms();\r\n }catch (CoeusUIException coeusUIException) {\r\n CoeusOptionPane.showErrorDialog(coeusUIException.getMessage());\r\n return;\r\n }\r\n }\r\n //Case#2445 - End\r\n \r\n }catch (CoeusException coeusException) {\r\n coeusException.printStackTrace();\r\n }\r\n }",
"private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }",
"private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"private void saveForm() {\n\n if (reportWithCurrentDateExists()) {\n // Can't save this case\n return;\n }\n\n boolean isNewReport = (mRowId == null);\n\n // Get field values from the form elements\n\n // Date\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = df.format(mCalendar.getTime());\n\n // Value\n Double value;\n try {\n value = Double.valueOf(mValueText.getText().toString());\n } catch (NumberFormatException e) {\n value = 0.0;\n }\n\n // Create/update report\n boolean isSaved;\n if (isNewReport) {\n mRowId = mDbHelper.getReportPeer().createReport(mTaskId, date, value);\n isSaved = (mRowId != 0);\n } else {\n isSaved = mDbHelper.getReportPeer().updateReport(mRowId, date, value);\n }\n\n // Show toast notification\n if (isSaved) {\n int toastMessageId = isNewReport ?\n R.string.message_report_created :\n R.string.message_report_updated;\n Toast toast = Toast.makeText(getApplicationContext(), toastMessageId, Toast.LENGTH_SHORT);\n toast.show();\n }\n }",
"public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }",
"public FormInserir() {\n initComponents();\n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"private void create_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_create_btnActionPerformed\n //loadDataFromFile(); ///do not use this call!!!\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n if (!isLoggedIn && !isLoggedInNew) {\n JOptionPane.showMessageDialog(null, \"Error \", \"Please login or create a new account\", JOptionPane.ERROR_MESSAGE);\n } else {\n // error test used before form data cleared\n boolean caught = false;\n try {\n // isIncome --> true if radio selected\n boolean isIncome = income_Rad.isSelected();\n\n // dueDate --> converted from: Date => String value\n Date dateDue = dueDate_date.getDate();\n String dueDate = DateFormat.getDateInstance().format(dateDue);\n\n // title --> String var\n String title = ToFrom_Txt.getText();\n\n // amount --> cast to Double; round to 2 places\n double amountRaw = Double.parseDouble(Amount_Txt.getText());\n String rounded = String.format(\"%.2f\", amountRaw);\n double amount = Double.parseDouble(rounded);\n\n // amount converted to negative value in isIncome is false\n if (!isIncome == true) {\n amount = (abs(amount) * (-1));\n } else {\n amount = abs(amount);\n }\n // category --> cast to String value of of box selected\n String category = (String) category_comb.getSelectedItem();\n\n // freuency --> cast to String value of of box selected\n String frequency = (String) frequency_comb.getSelectedItem();\n\n // dateEnd --> converted from: Date => String value\n Date dateEnd = endBy_date.getDate();\n String endBy = DateFormat.getDateInstance().format(dateEnd);\n\n // Transaction id\n int id;\n getLastId();\n if (maxId == 0) {\n id = 1;\n } else {\n id = maxId + 1;\n }\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (!title.equals(\"\")) {\n model.addRow(new Object[]{ // add reminder object to table as row\n isIncome, dueDate, title, amount, category, frequency, endBy, id\n });\n } else {\n dm.messageFieldsIncomplete();\n }\n } catch (NullPointerException e) {\n dm.messageFieldsIncomplete();\n caught = true;\n } catch (NumberFormatException e) {\n dm.messageNumberFormat();\n caught = true;\n }\n // clear form afer Reminder is created sucsessfully\n if (!caught) {\n dm.messageReminderCreated();// user message\n clearReminderForm();// Method to clear form data\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n }\n }\n }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"private void fillCreateOrEditForm(String name, String branch) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByVisibleText(xpathSelectBranch, branch);\n logger.info(\"# Select branch name: \" + branch);\n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }",
"int insert(AbiFormsForm record);",
"@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}",
"public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}",
"public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }",
"private void createRowForNewColumnButton(Composite section2)\n {\n buttonNewColumn = toolkit.createButton(section, \"New Column...\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonNewColumn, SWT.TOP);\n buttonNewColumn.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n NewColumnPopup dialog = new NewColumnPopup(getShell());\n if (dialog.open() == Dialog.OK)\n {\n // if the first field is not set\n if (valueToRecognizeReq == null)\n {\n valueToRecognizeReq = new Column(dialog.getColumnInput(), dialog.getRegexInput());\n reqIdComponent.setValueText(valueToRecognizeReq.getText());\n }\n else\n {\n tree.add(new Column(dialog.getColumnInput(), dialog.getRegexInput()));\n listFormat.refresh();\n }\n controller.removeDocumentType();\n updateWizard();\n }\n }\n });\n\n }",
"public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"public void getFullForm(SecurityUserBaseinfoForm form,\r\n\t\t\tSecurityUserBaseinfo data) {\n\t\tthis.setForm(form, data);\r\n\t\tthis.getDetail(form);\r\n\t}",
"public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\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 }",
"private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }",
"private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }",
"public void setFormData(Object data)throws CoeusException {\r\n if(data instanceof BudgetBean) {\r\n budgetBean = (BudgetBean)data;\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(budgetBean);\r\n requesterBean.setFunctionType(BudgetSubAwardConstants.GET_BUDGET_SUB_AWARD);\r\n AppletServletCommunicator appletServletCommunicator = new AppletServletCommunicator();\r\n appletServletCommunicator.setConnectTo(connect);\r\n appletServletCommunicator.setRequest(requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responderBean = appletServletCommunicator.getResponse();\r\n \r\n //Modified and Added for Case#3404-Outstanding proposal hierarchy changes -Start\r\n// if(responderBean.hasResponse()) {\r\n// data = responderBean.getDataObject();\r\n// }\r\n Vector vecResultData = new Vector(); \r\n if(responderBean.hasResponse()) {\r\n vecResultData = responderBean.getDataObjects();\r\n data = vecResultData.get(0);\r\n cvHierarchyLinks = (Vector)vecResultData.get(1);\r\n } \r\n //Modified and Added for Case#3404-Outstanding proposal hierarchy changes -End\r\n \r\n subAwardBudget.lblProposalNumber.setText(budgetBean.getProposalNumber());\r\n subAwardBudget.lblVersionNumber.setText(\"\"+budgetBean.getVersionNumber());\r\n \r\n // JM 6-26-2013 \r\n proposalNumber = budgetBean.getProposalNumber();\r\n // JM END\r\n \r\n }\r\n this.data = (List)data;\r\n subAwardBudgetTableModel.setData(this.data);\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE) {\r\n subAwardBudgetEditor.setData(this.data);\r\n }\r\n //Select the first Row if exists\r\n if(this.data != null && this.data.size() > 0) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(0, 0);\r\n }\r\n \r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - Start\r\n // User can enter sub award details only when periods are generated\r\n //COEUSQA-4061\r\n CoeusVector cvBudgetPeriod = new CoeusVector(); \r\n \r\n cvBudgetPeriod = getBudgetPeriodData(budgetBean.getProposalNumber() , budgetBean.getVersionNumber()); \r\n \r\n if((!isPeriodsGenerated() && cvBudgetPeriod.size() != 1 )|| subAwardBudget.tblSubAwardBudget.getRowCount() < 1){\r\n subAwardBudget.btnSubAwardDetails.setEnabled(false);\r\n }\r\n //COEUSQA-4061\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - End\r\n\r\n }",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void populateFormWithExistingData(OHD ohd, OnHandForm theform) {\n\t\tif(ohd!=null){\n\t\t\tif(ohd.getMatched_incident()!=null && !ohd.getMatched_incident().isEmpty()){\n\t\t\t\tIncident inc=IncidentBMO.getIncidentByID(ohd.getMatched_incident(), null);\n\t\t\t\tif(inc!=null){\n\t\t\t\t\tif(inc.getItemlist()!=null){\n\t\t\t\t\t\ttheform.setExistMatchedItemlist(new ArrayList(inc.getItemlist()));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(inc.getItemtype()!=null){\n\t\t\t\t\t\ttheform.setExistMatchedItemType(inc.getItemtype().getItemType_ID());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(ohd.getDisposal_status()!=null){\n\t\t\t\ttheform.setExistDisposalStatus(ohd.getDisposal_status());\n\t\t\t} else {\n\t\t\t\ttheform.setExistDisposalStatus(new Status());\n\t\t\t}\n\n\t\t\tif(ohd.getRemarks()!=null){\n\t\t\t\ttheform.setExistRemarkSize(ohd.getRemarks().size());\n\t\t\t} else {\n\t\t\t\ttheform.setExistRemarkSize(1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }",
"public Formulario() {\n initComponents();\n modelo = (DefaultTableModel) jTable2.getModel();\n }",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}",
"public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }",
"private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }",
"@Override\n public void onClick(View v) {\n\n DBCreate();\n\n SubmitData2SQLiteDB();\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n data = new javax.swing.JTextField();\n data2 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n data.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dataActionPerformed(evt);\n }\n });\n\n data2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n data2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(data2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(data, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE))\n .addContainerGap(95, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(data, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(44, 44, 44)\n .addComponent(data2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(115, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"void save(DeliveryOrderForm deliveryOrderForm);",
"private void butNew_Click(Object sender, System.EventArgs e) throws Exception {\n FormProcCodeNew FormPCN = new FormProcCodeNew();\n FormPCN.ShowDialog();\n if (FormPCN.Changed)\n {\n changed = true;\n ProcedureCodes.refreshCache();\n fillGrid();\n }\n \n }",
"int insertSelective(AbiFormsForm record);",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }",
"public static void RcForm() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n String chkDte = \"SELECT Date_Created As dateCreated FROM existing_forms WHERE Date_Created IS NOT NULL AND Form_Name = '\"+ StFrmNm + \"'\";\r\n s.execute(chkDte);\r\n try (ResultSet rs1 = s.getResultSet()) {\r\n if (rs1.next()) {\r\n dteCreate = rs1.getString(\"dateCreated\");\r\n }\r\n }\r\n if (dteCreate == null) {\r\n String insertTable = \"INSERT INTO existing_forms\"\r\n + \"(Store, Form_Name, Date_Created, Last_Updated, Status) \"\r\n + \"VALUES(\"\r\n + \"'\" + GtStore.store.toLowerCase() + \"'\" + \",\"\r\n + \"'\" + StFrmNm + \"'\" + \",\"\r\n + \"'\" + GtDates.tdate + \"'\" + \",\"\r\n + \"'\" + GtDates.tdate + \"'\" + \",\"\r\n + \"'\" + \"In-Process\" + \"'\"\r\n + \")\";\r\n s.execute(insertTable); \r\n \r\n //String crtTable = \"SELECT * INTO \" + StFrmNm + \" FROM ias WHERE 1=2\";\r\n String crtTable = \"CREATE TABLE \" + StFrmNm + \" SELECT * FROM ebas\";\r\n s.execute(crtTable); \r\n }\r\n \r\n insLns();\r\n // lastUpdate();\r\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REGISTER_COURSE_REQUEST) {\n // Make sure the request was successful\n if (resultCode == RESULT_OK) {\n Course newCourse = data.getParcelableExtra(\"new course\");\n if (newCourse != null) {\n insertCourseToList(newCourse);\n } else {\n // do nothing\n }\n }\n }\n }",
"protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}",
"public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }",
"@Override public SnpAssociationForm createForm(Association association) {\n\n\n SnpAssociationStandardMultiForm form = new SnpAssociationStandardMultiForm();\n\n // Set association ID\n form.setAssociationId(association.getId());\n form.setAssociationExtension(association.getAssociationExtension());\n\n // Set simple string and float association attributes\n form.setRiskFrequency(association.getRiskFrequency());\n form.setPvalueDescription(association.getPvalueDescription());\n form.setSnpType(association.getSnpType());\n form.setMultiSnpHaplotype(association.getMultiSnpHaplotype());\n form.setSnpApproved(association.getSnpApproved());\n form.setPvalueMantissa(association.getPvalueMantissa());\n form.setPvalueExponent(association.getPvalueExponent());\n form.setStandardError(association.getStandardError());\n form.setRange(association.getRange());\n form.setDescription(association.getDescription());\n\n // Set OR/Beta values\n form.setOrPerCopyNum(association.getOrPerCopyNum());\n form.setOrPerCopyRecip(association.getOrPerCopyRecip());\n form.setOrPerCopyRecipRange(association.getOrPerCopyRecipRange());\n form.setBetaNum(association.getBetaNum());\n form.setBetaUnit(association.getBetaUnit());\n form.setBetaDirection(association.getBetaDirection());\n\n // Add collection of Efo traits\n form.setEfoTraits(association.getEfoTraits());\n\n // For each locus get genes and risk alleles\n Collection<Locus> loci = association.getLoci();\n Collection<Gene> locusGenes = new ArrayList<>();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<RiskAllele>();\n\n // For multi-snp and standard snps we assume their is only one locus\n for (Locus locus : loci) {\n locusGenes.addAll(locus.getAuthorReportedGenes());\n locusRiskAlleles.addAll(locus.getStrongestRiskAlleles()\n .stream()\n .sorted((v1, v2) -> Long.compare(v1.getId(), v2.getId()))\n .collect(Collectors.toList()));\n\n // There should only be one locus thus should be safe to set these here\n form.setMultiSnpHaplotypeNum(locus.getHaplotypeSnpCount());\n form.setMultiSnpHaplotypeDescr(locus.getDescription());\n }\n\n\n // Get name of gene and add to form\n Collection<String> authorReportedGenes = new ArrayList<>();\n for (Gene locusGene : locusGenes) {\n authorReportedGenes.add(locusGene.getGeneName());\n }\n form.setAuthorReportedGenes(authorReportedGenes);\n\n // Handle snp rows\n Collection<GenomicContext> snpGenomicContexts = new ArrayList<GenomicContext>();\n Collection<SingleNucleotidePolymorphism> snps = new ArrayList<>();\n List<SnpFormRow> snpFormRows = new ArrayList<SnpFormRow>();\n List<SnpMappingForm> snpMappingForms = new ArrayList<SnpMappingForm>();\n for (RiskAllele riskAllele : locusRiskAlleles) {\n SnpFormRow snpFormRow = new SnpFormRow();\n snpFormRow.setStrongestRiskAllele(riskAllele.getRiskAlleleName());\n\n SingleNucleotidePolymorphism snp = riskAllele.getSnp();\n snps.add(snp);\n String rsID = snp.getRsId();\n snpFormRow.setSnp(rsID);\n\n Collection<Location> locations = snp.getLocations();\n for (Location location : locations) {\n SnpMappingForm snpMappingForm = new SnpMappingForm(rsID, location);\n snpMappingForms.add(snpMappingForm);\n }\n\n // Set proxy if one is present\n Collection<String> proxySnps = new ArrayList<>();\n if (riskAllele.getProxySnps() != null) {\n for (SingleNucleotidePolymorphism riskAlleleProxySnp : riskAllele.getProxySnps()) {\n proxySnps.add(riskAlleleProxySnp.getRsId());\n }\n }\n snpFormRow.setProxySnps(proxySnps);\n\n snpGenomicContexts.addAll(genomicContextRepository.findBySnpId(snp.getId()));\n snpFormRows.add(snpFormRow);\n }\n\n form.setSnpMappingForms(snpMappingForms);\n form.setGenomicContexts(snpGenomicContexts);\n form.setSnps(snps);\n form.setSnpFormRows(snpFormRows);\n return form;\n }",
"@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }",
"public void setFormData(Object subContractBean) {\r\n\t\tthis.subContractBean = (SubContractBean)subContractBean;\r\n try{\r\n columnValues = queryEngine.executeQuery(queryKey, SubContractCustomDataBean.class, CoeusVector.FILTER_ACTIVE_BEANS); \r\n //Commented for COEUSDEV-413 : Subcontract Custom data bug - Data getting wiped out - Start\r\n// if(getFunctionType() == NEW_ENTRY_SUBCONTRACT) {\r\n// SubContractCustomDataBean subContractCustomDataBean;\r\n// for(int index = 0; index < columnValues.size(); index++) {\r\n// subContractCustomDataBean = (SubContractCustomDataBean)columnValues.get(index);\r\n// subContractCustomDataBean.setDefaultValue(subContractCustomDataBean.getColumnValue());\r\n// }//end for\r\n// }//end if NEW_CHILD_COPIED\r\n //COEUSDEV-413 : End\r\n customElementsForm.setFunctionType(getFunctionType());\r\n customElementsForm.setPersonColumnValues(columnValues);\r\n customElementsForm.setCanMaintainProposal(true);\r\n customElementsForm.setSaveRequired(false);\r\n }catch ( CoeusException ce ) {\r\n ce.printStackTrace();\r\n }\r\n\t}",
"private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n ID = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n Ph = new javax.swing.JTextField();\n Cell = new javax.swing.JTextField();\n Name = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n Email = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n Address = new javax.swing.JTextArea();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"New Supplier\");\n setResizable(false);\n\n jLabel1.setText(\"Supplier ID\");\n\n jLabel2.setFont(new java.awt.Font(\"Forte\", 1, 14));\n jLabel2.setText(\"New Supplier\");\n\n jLabel4.setText(\"Cell\");\n\n jLabel5.setText(\"TelPh\");\n\n jLabel6.setText(\"Supplier Name\");\n\n jLabel11.setText(\"Email\");\n\n jLabel12.setText(\"Address\");\n\n Address.setColumns(20);\n Address.setRows(5);\n jScrollPane1.setViewportView(Address);\n\n jButton2.setText(\"Exit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Franklin Gothic Heavy\", 1, 12)); // NOI18N\n jButton3.setText(\"Save\");\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(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(218, 218, 218))\n .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel1)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(ID, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Ph, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)\n .addComponent(Name)\n .addComponent(Cell, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))\n .addGap(6, 6, 6)))\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, 0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(87, 87, 87)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(281, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(200, 200, 200))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(84, 84, 84)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Ph, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel12)))\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cell, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)))\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jButton3)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))\n );\n\n pack();\n }",
"@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.getFieldErrors()) {\n message.append(error.getField()).append(\" - \").append(error.getRejectedValue()).append(\"\\n\");\n }\n ModelAndView modelAndView = (ModelAndView)newAuction();\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"form\", form);\n return modelAndView;\n }\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n AuctionWrapper wrapper = new AuctionWrapper();\n wrapper.setDemandResourceId(form.getDemandedResourceId());\n wrapper.setDemandAmount(form.getDemandedAmount());\n wrapper.setOfferResourceId(form.getOfferedResourceId());\n wrapper.setOfferAmount(form.getOfferedAmount());\n wrapper.setSellerId(userAuth.getPlayerId());\n auctionRestTemplate.post(auctionURL + \"/new\", wrapper, String.class);\n return new RedirectView(\"/player/trading\");\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }",
"public void saveProfileCreateData() {\r\n\r\n }",
"public void saveData(){\n String name = editTextName.getText().toString();\n if(!name.isEmpty()){\n DataManager.getInstance().addName(name);\n }\n\n finish();\n }",
"public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}",
"@Transactional\r\n\tpublic String createFormNewVersion(FormDescriptor form, String loggedinUser, String xmlPathName) {\r\n\t\t\r\n\t\tString formSeqid = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFormV2TransferObject formdto = DomainObjectTranslator.translateIntoFormDTO(form);\t\r\n\t\t\tif (formdto == null) \r\n\t\t\t\treturn null;\r\n\r\n\t\t\tformSeqid = formV2Dao.createNewFormVersionShellOnly(formdto.getFormIdseq(), formdto.getVersion(), \r\n\t\t\t\t\t\"New version form by Form Loader\", formdto.getCreatedBy());\t\t\r\n\t\t\t\r\n\t\t\tlogger.debug(\"Created new version for form. Seqid: \" + formSeqid);\r\n\t\t\t\r\n\t\t\tformdto.setFormIdseq(formSeqid);\r\n\t\t\tform.setFormSeqId(formSeqid);\r\n\r\n\t\t\tint res = formV2Dao.updateFormComponent(formdto);\r\n\t\t\tif (res != 1) {\r\n\t\t\t\tlogger.error(\"Error!! Failed to update form\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcreateFormInstructions(form, formdto);\r\n\t\t\tprocessFormdetails(form, xmlPathName, form.getIndex());\r\n\t\t\tcreateModulesInForm(form, formdto);\r\n\t\t\t\r\n\t\t\treturn form.getFormSeqId();\r\n\t\t\t\r\n\t\t} catch (DMLException dbe) {\r\n\t\t\tlogger.error(dbe.getMessage());\r\n\t\t\tform.addMessage(dbe.getMessage());\r\n\t\t\tformSeqid = null;\r\n\t\t\tform.setVersion(\"0.0\");\r\n\t\t\tform.setLoadStatus(FormDescriptor.STATUS_LOAD_FAILED);\r\n\t\t}\r\n\t\t\r\n\t\treturn formSeqid;\r\n\t}",
"public S2SSubmissionDetailForm() {\r\n initComponents();\r\n }"
] |
[
"0.6083108",
"0.6008989",
"0.5990668",
"0.586525",
"0.5649576",
"0.5637448",
"0.56304526",
"0.5563733",
"0.5543767",
"0.55289555",
"0.55163467",
"0.5507638",
"0.5451123",
"0.5427953",
"0.5425035",
"0.53920275",
"0.5375774",
"0.53599256",
"0.53311104",
"0.5324867",
"0.52926266",
"0.52530056",
"0.5252461",
"0.5247057",
"0.52425134",
"0.52277",
"0.5205542",
"0.519656",
"0.51905054",
"0.51852393",
"0.5175353",
"0.51683724",
"0.51621896",
"0.51602674",
"0.51539266",
"0.51388115",
"0.5134901",
"0.512554",
"0.5115888",
"0.51041037",
"0.508697",
"0.5085616",
"0.507794",
"0.5054863",
"0.5053679",
"0.5051813",
"0.50379664",
"0.5036718",
"0.50346446",
"0.5029873",
"0.5024654",
"0.50233984",
"0.50222665",
"0.50217026",
"0.5019955",
"0.5003793",
"0.50027466",
"0.5001655",
"0.49994978",
"0.49966222",
"0.49939466",
"0.4989297",
"0.49849558",
"0.49805507",
"0.49664548",
"0.49662942",
"0.49633306",
"0.49588627",
"0.49561802",
"0.49552009",
"0.49424505",
"0.494204",
"0.49390236",
"0.49365547",
"0.4931769",
"0.49277902",
"0.4927063",
"0.49250507",
"0.49236447",
"0.4922953",
"0.49198794",
"0.49188983",
"0.49119318",
"0.4911814",
"0.4909847",
"0.49088094",
"0.49056563",
"0.49050432",
"0.4898924",
"0.48962164",
"0.48913503",
"0.48893186",
"0.48851278",
"0.48836488",
"0.4883028",
"0.48799273",
"0.48732793",
"0.48666042",
"0.48663354",
"0.48640934"
] |
0.5293164
|
20
|
End of variables declaration//GENEND:variables
|
void setText(String string) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] |
[
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] |
0.0
|
-1
|
System.err.println("loading " + bundleName);
|
public Module createModule(String bundleName, String moduleTypeName) {
Bundle bundle = getBundle(bundleName);
if (bundle == null) {
return null;
}
//System.err.println("creating "+bundleName+":"+moduleTypeName);
CModule newModule = createCModule(bundleName, moduleTypeName);
//System.err.println("done");
return newModule;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getBundleName(){\n return localBundleName;\n }",
"public abstract void bundle(Bundle bundle);",
"@BundleStart\n public void bundleStart() {\n System.out.println(\"In bundleStart()!\");\n System.setProperty(\"test.bundle.start\", \"Jeehaa!\");\n }",
"File getBundle();",
"private static void listBundle() {\r\n\t\tSystem.out.println(\"listBundle\");\r\n\r\n\t\tif (bundles.isEmpty()){\r\n\t\t\tSystem.out.println(\"There are no bundles\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSet<Integer> bundleIds = bundles.keySet();\r\n\t\tIterator<Integer> itr = bundleIds.iterator();\r\n\r\n\t\twhile (itr.hasNext()) {\r\n\t\t\tInteger bundleId = (Integer) itr.next();\r\n\t\t\tBundle b = bundles.get(bundleId);\r\n\r\n\t\t\tprintBundle(b);\r\n\t\t}\r\n\t}",
"@NotNull\n @Generated\n @Selector(\"bundle\")\n public native NSBundle bundle();",
"public void setBundleName(java.lang.String param){\n localBundleNameTracker = true;\n \n this.localBundleName=param;\n \n\n }",
"public String getBundleName()\n {\n return _bundleName;\n }",
"protected abstract void openBundle(Bundle bundle);",
"static private void loadBundle() {\r\n\r\n\t\tfinal Locale loc;\r\n\r\n\t\t//load the default or a forced locale\r\n\t\tif (strLanguage == null) {\r\n\t\t\tloc = Locale.getDefault();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tloc = new Locale(strLanguage);\r\n\t\t}\r\n\r\n\t\tresBundle = RiskUtil.getResourceBundle(TranslationBundle.class,\"Risk\",loc);\r\n\r\n\t\t// this will work MOST of the time, but does not in lobby\r\n\t\t// for some reason it stops the classes from loading, and does not find the files\r\n\t\t//resBundle = ResourceBundle.getBundle(\"net.yura.domination.engine.translation.Risk\", loc );\r\n\r\n\r\n\t}",
"boolean generateBundle();",
"@Override\n public void startBundle(Bundle bundle) {\n mBundle = bundle;\n }",
"public void bundleByName(final String[] params, final PrintStream pStream) {\r\n for (int i = 0; i < params.length; i++) {\r\n Bundle[] b = Activator.getFrameworkInspectorImpl().getBundleForClassName(params[i]);\r\n if (b.length < 1) {\r\n pStream.println(\"Class \"\r\n + params[i] + \" was not found in any bundle.\");\r\n } else {\r\n pStream.println(\"\\nClass \"\r\n + params[i] + \" is provided by:\");\r\n for (int j = 0; j < b.length; j++) {\r\n if (b[j] == null) {\r\n // either the JVM or the App ClassLoader are able to produce that...\r\n Class<?>[] clazzes = Activator.getFrameworkInspectorImpl().getClassesForName(params[i]);\r\n // we can only have one possible class here\r\n if (clazzes[0].getClassLoader() == null) {\r\n // if no class loader is returned, it is loaded with the System CL\r\n pStream\r\n .println(\"\\tNot provided by a Bundle, but by the JVM/ System ClassLoader.\");\r\n } else {\r\n // here we have an Application ClassLoader providing the class\r\n pStream\r\n .println(\"\\tNot provided by a Bundle, but by the Application ClassLoader.\");\r\n }\r\n\r\n } else {\r\n pStream.println(\"\\tBundle: \"\r\n + b[j].getSymbolicName() + \" [\" + b[j].getBundleId() + \"]\");\r\n }\r\n }\r\n }\r\n }\r\n }",
"public long getBundleID(){\n return localBundleID;\n }",
"void mo727b(String str, Bundle bundle) throws RemoteException;",
"public String getBundleLocation() {\n return bundleLocation;\n }",
"void mo715a(String str, Bundle bundle) throws RemoteException;",
"@Override\n\tpublic void loadData(Bundle bundle) {\n\t}",
"String getString(String bundleKey, String bundleBaseName);",
"@Test\n public void shouldListBundlesInSourceCode() throws Exception {\n initializeOSGiProjectWithBundlesInSourceCode();\n resetOutput();\n getShell().execute(\"osgi listBundles\");\n Assert.assertTrue(getOutput().startsWith(\"module1\" + TestUtils.getNewLine() + \"module2\" + TestUtils.getNewLine() + \"module3\"));\n }",
"protected void openBundle(Bundle bundle){\n //set saved instance state data\n }",
"public static void printLoadingFile() {\n System.out.println(Message.LOADING_FILE);\n }",
"@Test\n public void shouldListBundlesInBndProject() throws Exception {\n initializeOSGiBNDProject();\n resetOutput();\n getShell().execute(\"osgi listBundles\");\n Assert.assertTrue(getOutput().startsWith(\"module1\" + TestUtils.getNewLine() + \"module2\" + TestUtils.getNewLine() + \"module3\"));\n }",
"protected void start() throws BundleException {\n \t\tactivator = bundle.loadBundleActivator();\n \n \t\tif (activator != null) {\n \t\t\ttry {\n \t\t\t\tstartActivator(activator);\n \t\t\t} catch (BundleException be) {\n \t\t\t\tactivator = null;\n \t\t\t\tthrow be;\n \t\t\t}\n \t\t}\n \n \t\t/* activator completed successfully. We must use this\n \t\t same activator object when we stop this bundle. */\n \t}",
"void mo733d(String str, Bundle bundle) throws RemoteException;",
"void mo3208a(String str, Bundle bundle);",
"private static void load(){\n }",
"public void tracejar()\r\n\t{\r\n\t\tSystem.out.println(\"****************************************\");\r\n\t}",
"public String getBundleString(String key){\n return dataProcessToolPanel.getBundleString(key);\n }",
"public int getResolvedBundles();",
"public int getActiveBundles();",
"public void setBundleLocation(String bundleLocation) {\n this.bundleLocation = bundleLocation;\n }",
"public static String getLabelBundle(String key){\r\n \tFacesContext context = FacesContext.getCurrentInstance();\r\n \tResourceBundle bundle = context.getApplication().getResourceBundle(context, Constantes.RESOURCE_BUNDLE_VAR);\r\n \treturn bundle.getString(key);\r\n }",
"public BundleDescription getBundle() {\n \t\treturn bundle;\n \t}",
"boolean optimizeBundle();",
"public int getInstalledBundles();",
"@Override\r\n public void onNewBundle(Bundle args) {\r\n super.onNewBundle(args);\r\n\r\n }",
"public static void printLoadingError() {\n System.out.println(Message.LOADING_ERROR);\n }",
"protected void readArguments(Bundle bundle) {\n\n }",
"void mo735e(String str, Bundle bundle) throws RemoteException;",
"private static void updateBundle() {\r\n\t\tSystem.out.println(\"updateBundle\");\r\n\t\tint id = -1;\r\n\t\t\r\n\t\tif (bundles.isEmpty()){\r\n\t\t\tSystem.out.println(\"There are no bundls added.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the id for the bundle you want to change: \\n\");\r\n\t\t\t\t\r\n\t\tid = insertInteger(\"id\");\r\n\t\tif (!bundles.containsKey(id)){\r\n\t\t\tSystem.out.println(\"There are no bundles with id \");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tBundle b = bundles.get(id);\r\n\t\tprintBundle(b);\r\n\t\tSystem.out.println(\"What do you want to change? \");\r\n\t\t\r\n\t\tint operation = 0;\r\n\t\twhile ((operation = insertInteger(\" \")) != 4){\r\n\t\t\tif (operation == 1){\r\n\t\t\t\tSystem.out.println(\"Change bundle \");\r\n\t\t\t} else if (operation == 2){\r\n\t\t\t\tSystem.out.println(\"Change path \");\r\n\t\t\t} else if (operation == 3){\r\n\t\t\t\tSystem.out.println(\"Change place \");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\" 1. Change bundle information: \\n 2. Change path information 3. Change place information\\n 4. Cancel\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unused\")\n public void modifiedBundle(Bundle bundle) {\n }",
"public void setBundle(boolean value) {\r\n this.bundle = value;\r\n }",
"public void setBundle(boolean bundle) {\r\n\t\tthis.bundle = bundle;\r\n\t}",
"@Test\n public void isBundleTest() {\n // TODO: test isBundle\n }",
"public Bundle getBundle(long id) {\n \t\treturn (framework.getBundle(id));\n \t}",
"public void start(BundleContext context) throws Exception {\n \t\tsuper.start(context);\n \t}",
"public static void load() {\n }",
"public abstract ResourceBundle getBundle();",
"public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}",
"public void beginLoad(int libraryCount);",
"String getString(String bundleKey, String bundleBaseName, Locale locale);",
"public boolean isBundle() {\r\n return bundle;\r\n }",
"public String getExternalLoadsFileName() { return analyzeTool().getExternalLoadsFileName(); }",
"ResourceBundle loadBundle (String path, Locale locale);",
"public void libraryLoaded();",
"void mo731c(String str, Bundle bundle) throws RemoteException;",
"public boolean isBundle() {\r\n\t\treturn bundle;\r\n\t}",
"public String getBundleId() {\n return this.bundleId;\n }",
"public Bundle getExtras() {\n/* 1775 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private static String m449e(Bundle bundle) {\n ArrayList<String> stringArrayList = bundle.getStringArrayList(\"pack_names\");\n if (stringArrayList != null && !stringArrayList.isEmpty()) {\n return stringArrayList.get(0);\n }\n throw new C1826bv(\"Session without pack received.\");\n }",
"public void bundleChanged(BundleEvent event) {\n\n\t\t//\n\t\t// NOTE:\n\t\t// This is synchronous - take care to not block the system !!\n\t\t//\n\n\t\tswitch (event.getType()) {\n\t\tcase BundleEvent.STARTING:\n\t\t\ttry {\n\t\t\t\tregisterBundle(event.getBundle());\n\t\t\t} catch (Throwable t) {\n\t\t\t\tservices.error(\n\t\t\t\t\t\t\"bundleChanged: Problem loading initial configuration of bundle \"\n\t\t\t\t\t\t\t\t+ event.getBundle().getSymbolicName() + \" (\"\n\t\t\t\t\t\t\t\t+ event.getBundle().getBundleId() + \")\", t);\n\t\t\t} finally {\n\t\t\t}\n\t\t\tbreak;\n\t\tcase BundleEvent.STOPPED:\n\t\t\ttry {\n\t\t\t\tunregisterBundle(event.getBundle());\n\t\t\t} catch (Throwable t) {\n\t\t\t\tservices.error(\n\t\t\t\t\t\t\"bundleChanged: Problem unloading initial configuration of bundle \"\n\t\t\t\t\t\t\t\t+ event.getBundle().getSymbolicName() + \" (\"\n\t\t\t\t\t\t\t\t+ event.getBundle().getBundleId() + \")\", t);\n\t\t\t} finally {\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"void addBundle(String bundleBaseName, Locale... locales);",
"private void loadFromBundle() {\n Bundle data = getIntent().getExtras();\n if (data == null)\n return;\n Resource resource = (Resource) data.getSerializable(PARAMETERS.RESOURCE);\n if (resource != null) {\n String geoStoreUrl = data.getString(PARAMETERS.GEOSTORE_URL);\n loadGeoStoreResource(resource, geoStoreUrl);\n }\n\n }",
"private static String m37111aD(Bundle bundle) {\n AppMethodBeat.m2504i(48990);\n String str;\n if (bundle == null) {\n str = \"\";\n AppMethodBeat.m2505o(48990);\n return str;\n }\n str = bundle.toString();\n AppMethodBeat.m2505o(48990);\n return str;\n }",
"public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }",
"@Test\n public void shouldListBundlesInMavenBndProject() throws Exception {\n initializeMavenOSGiBNDProject();\n resetOutput();\n getShell().execute(\"osgi countBundles\");\n Assert.assertTrue(getOutput().startsWith(\"Total number of bundles:3\"));\n resetOutput();\n getShell().execute(\"osgi listBundles\");\n Assert.assertTrue(getOutput().startsWith(\"module1\" + TestUtils.getNewLine() + \"module2\" + TestUtils.getNewLine() + \"module3\"));\n }",
"private void updateBundle() {\n\n this.bundle = ResourceBundle.getBundle(\"languages\", this.locales.get(this.currentLocaleIndex));\n }",
"public void load() {\n\t}",
"public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(bundleNii, strBundle);\r\n\t\tb.setNii(bundleNii);\r\n\r\n\t\twhile (finished == 1){\r\n\t\t\tpath = new Path();\r\n\t\t\tcreatePath(path);\r\n\t\t\tpathList.add(path);\r\n\t\t\tfinished = checkContinue(\"path\");\r\n\t\t}\t\t\r\n\t\tb.setPath(pathList);\r\n\t\t// Add bundle to map\r\n\t\tbundles.put(b.getId(), b);\r\n\t\tindex++;\r\n\t}",
"public void onCreate(Bundle bundle) {\n ArrayList<String> stringArrayList;\n super.onCreate(bundle);\n setContentView(R.layout.pm_activity_package_manager);\n l();\n getLoaderManager().initLoader(50, (Bundle) null, this);\n if (!(bundle == null || (stringArrayList = bundle.getStringArrayList(\"packages\")) == null || stringArrayList.size() <= 0)) {\n this.g = stringArrayList;\n }\n m();\n LocalBroadcastManager.getInstance(this).registerReceiver(this.h, new IntentFilter(\"com.miui.permcenter.install.action_data_change\"));\n }",
"public void load() {\n }",
"public void testBundleContentParentFromMultipleBundles() throws IOException{\n final String content = getContent(HTTP_BASE_URL + \"/system.1.json\", CONTENT_TYPE_JSON);\n JsonObject jsonObj = JsonUtil.parseObject(content);\n\n //provided by the servlets.post bundle\n assertTrue(\"Expected sling.js in the /system folder\", jsonObj.containsKey(\"sling.js\"));\n\n //provided by the launchpad.test-services bundle\n assertTrue(\"Expected sling-1733.txt in the /system folder\", jsonObj.containsKey(\"sling-1733.txt\"));\n }",
"private static synchronized ResourceBundle getBundle() throws IdealException {\n if (stringBundle == null) {\n if (Util.log.isDebugEnabled())\n Util.log.debug(\" Initialising Strings\");\n try {\n String bundleName = Strings.class.getPackage().getName().replace('.', '/') + \"/strings\";\n stringBundle = ResourceBundle.getBundle(bundleName);\n } catch (Exception e) {\n IdealException ex = new IdealException(ErrorCodes.IMEXME01, \"Unable to load string catalog.\", e);\n ex.setSuggestedAction(\"Distribution is corrupt, redownload from the idealdesk. \");\n throw ex;\n }\n }\n return stringBundle;\n }",
"public int getBundlesCount() {\n return bundles_.size();\n }",
"public void init(){\n System.out.println(\"SampleApplet.init() executed\");\r\n }",
"void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);",
"String getString(String bundleKey);",
"protected ResourceBundle getBundle() {\n return _bundle;\n }",
"String getMessage(String bundleKey, String bundleBaseName, Object... args);",
"@Test\n public void testBundleStatePreserved() throws Exception {\n \t{\n final Object listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, getInstallableResource(\n getTestBundle(BUNDLE_BASE_NAME + \"-testA-1.0.jar\")), null);\n this.waitForBundleEvents(\"Bundle must be installed\", listener,\n new BundleEvent(\"osgi-installer-testA\", \"1.0\", org.osgi.framework.BundleEvent.INSTALLED),\n new BundleEvent(\"osgi-installer-testA\", \"1.0\", org.osgi.framework.BundleEvent.STARTED));\n \t}\n {\n final Object listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, getInstallableResource(\n getTestBundle(BUNDLE_BASE_NAME + \"-testB-1.0.jar\")), null);\n this.waitForBundleEvents(\"Bundle must be installed\", listener,\n new BundleEvent(\"osgi-installer-testB\", \"1.0\", org.osgi.framework.BundleEvent.INSTALLED),\n new BundleEvent(\"osgi-installer-testB\", \"1.0\", org.osgi.framework.BundleEvent.STARTED));\n final Bundle b = findBundle(\"osgi-installer-testB\");\n assertNotNull(\"Test bundle B must be found\", b);\n b.stop();\n }\n\n assertBundle(\"Bundle A must be started\", \"osgi-installer-testA\", null, Bundle.ACTIVE);\n assertBundle(\"Bundle B must be stopped\", \"osgi-installer-testB\", null, Bundle.RESOLVED);\n\n \t// Execute some OsgiController operations\n Object listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.0.jar\")), null);\n sleep(150);\n installer.updateResources(URL_SCHEME, getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.2.jar\")), null);\n sleep(150);\n installer.updateResources(URL_SCHEME, getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.1.jar\")), null);\n this.waitForBundleEvents(\"Bundle must be installed\", listener,\n new BundleEvent(\"osgi-installer-testbundle\", \"1.0\", org.osgi.framework.BundleEvent.INSTALLED),\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.UPDATED),\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.STARTED));\n assertBundle(\"After installing testbundle\", \"osgi-installer-testbundle\", \"1.2\", Bundle.ACTIVE);\n\n listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, null, getNonInstallableResourceUrl(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.0.jar\")));\n sleep(150);\n this.assertNoBundleEvents(\"Update to same version should generate no OSGi tasks.\", listener, \"osgi-installer-testbundle\");\n\n listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, null, getNonInstallableResourceUrl(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.1.jar\")));\n sleep(150);\n this.assertNoBundleEvents(\"Update to same version should generate no OSGi tasks.\", listener, \"osgi-installer-testbundle\");\n\n listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, null, getNonInstallableResourceUrl(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.2.jar\")));\n this.waitForBundleEvents(\"Bundle must be uninstalled\", listener,\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.STOPPED),\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.UNINSTALLED));\n\n assertNull(\"testbundle must be gone at end of test\", findBundle(\"osgi-installer-testbundle\"));\n\n \t// Now check that bundles A and B have kept their states\n assertBundle(\"Bundle A must still be started\", \"osgi-installer-testA\", null, Bundle.ACTIVE);\n assertBundle(\"Bundle B must still be stopped\", \"osgi-installer-testB\", null, Bundle.RESOLVED);\n }",
"public void start(BundleContext context) throws Exception {\r\n\t\tsuper.start(context);\r\n\t}",
"private ResourceBundle retrieveBundle()\r\n\t{\r\n\t\tResourceBundle rsBundle = null;\r\n\r\n\t\tlogger.ctinfo(\"CTPRU00010\");\r\n\r\n\t\t// iniatializing Property file\r\n\t\tif (propertyFileName != null)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\trsBundle = PropertyResourceBundle.getBundle(propertyFileName);\r\n\t\t\t} catch (MissingResourceException rsEx)\r\n\t\t\t{\r\n\t\t\t\tlogger.cterror(\"CTPRU00011\", rsEx, propertyFileName);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTPRU00012\");\r\n\t\t}\r\n\t\tlogger.ctinfo(\"CTPRU00013\");\r\n\t\treturn rsBundle;\r\n\t}",
"public String getCustomLoaderName();",
"File getLoadLocation();",
"@Override\r\n\tprotected void initLoad() {\n\r\n\t}",
"public interface BundleLoader {\n /**\n * Returns the bundle referred to by the given path, for the given locale, or null if the\n * bundle could not be loaded.\n */\n ResourceBundle loadBundle (String path, Locale locale);\n }",
"static public ResourceBundle getBundle() {\r\n\r\n\t\tif (resBundle == null) {\r\n\t\t\tloadBundle();\r\n\t\t}\r\n\t\treturn resBundle;\r\n\t}",
"public void showLoadingError() {\n System.out.println(\"Duke has failed to load properly.\");\n }",
"@Override\n\tpublic Bundle getBundle() {\n\t\treturn null;\n\t}",
"Bundle mo741k() throws RemoteException;",
"public void setBundleId(String bundleId) {\n this.bundleId = bundleId;\n }",
"public String getBundleSymbolicName();",
"@Override\r\n public void loadResources() {\n\r\n }",
"public void printBundleResource(Bundle bundle, String resource) {\n\t\tURL entry = null;\n\t\tentry = bundle.getEntry(resource);\n\t\tif (entry != null) {\n\t\t\ttry {\n\t\t\t\tprintln(resource);\n\t\t\t\tInputStream in = entry.openStream();\n\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\tint read = 0;\n\t\t\t\ttry {\n\t\t\t\t\twhile ((read = in.read(buffer)) != -1)\n\t\t\t\t\t\tprint(new String(buffer, 0, read));\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\t\tif (in != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException e) {\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\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(NLS.bind(ConsoleMsg.CONSOLE_ERROR_READING_RESOURCE, resource));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tprintln(NLS.bind(ConsoleMsg.CONSOLE_RESOURCE_NOT_IN_BUNDLE, resource, bundle.toString()));\n\t\t}\n\t}",
"public static void printDoneLoading() {\n System.out.println(Message.DONE_LOADING);\n }",
"public void start(BundleContext context) throws Exception {\n\t\tsuper.start(context);\n\t}",
"public void mo21806a(Bundle bundle) {\n mo21795T();\n }",
"private static String m970t(Bundle bundle) {\n ArrayList<String> stringArrayList = bundle.getStringArrayList(\"pack_names\");\n if (stringArrayList != null && !stringArrayList.isEmpty()) {\n return stringArrayList.get(0);\n }\n throw new C2155bj(\"Session without pack received.\");\n }",
"public void initialize(Bundle arguments);",
"public static void RomLoadErr(){\n\t\tloadError = true;\t\t\n\t}"
] |
[
"0.6667113",
"0.66100067",
"0.6601342",
"0.6394582",
"0.6357865",
"0.6344131",
"0.6317237",
"0.63119197",
"0.62404835",
"0.62005305",
"0.61392426",
"0.60688084",
"0.6016449",
"0.59625256",
"0.5931962",
"0.5915941",
"0.58805984",
"0.5870819",
"0.5870131",
"0.58698577",
"0.58653206",
"0.5810582",
"0.5770869",
"0.57692087",
"0.57603204",
"0.5759614",
"0.57542485",
"0.5735054",
"0.57348454",
"0.5732298",
"0.5731523",
"0.5728454",
"0.5728037",
"0.5727942",
"0.5727932",
"0.5713331",
"0.5698647",
"0.5676354",
"0.5660616",
"0.5652909",
"0.56292236",
"0.5585453",
"0.557784",
"0.5571824",
"0.55342907",
"0.5524947",
"0.5524307",
"0.55224216",
"0.552087",
"0.5514359",
"0.55130786",
"0.5507863",
"0.5484279",
"0.5482598",
"0.5479763",
"0.54695237",
"0.5455734",
"0.5453792",
"0.5444131",
"0.5443541",
"0.5440793",
"0.54390985",
"0.5428241",
"0.54149413",
"0.54032254",
"0.538684",
"0.53641576",
"0.5361873",
"0.5347784",
"0.53435963",
"0.5343379",
"0.53360033",
"0.53353065",
"0.53133494",
"0.53121",
"0.5308241",
"0.5304456",
"0.5298793",
"0.529363",
"0.5286763",
"0.5284299",
"0.52760464",
"0.52644515",
"0.5264264",
"0.52598906",
"0.5257295",
"0.525608",
"0.52538866",
"0.52469987",
"0.5245388",
"0.52418435",
"0.52408904",
"0.52381605",
"0.523361",
"0.52325755",
"0.5231121",
"0.5223355",
"0.52200496",
"0.5218404",
"0.52168703",
"0.5210483"
] |
0.0
|
-1
|
used for xml parameter interpretation
|
private static Object getNativeFromString(String type, String text) {
// could find a way to reuse jna mapping but I didn't managed to :(
try {
return stringToNatives.get(type).toNative(text);
} catch (NullPointerException ex) {
System.err.println("problem with type '" + type + "' to interpret '" + text + "'");
throw ex;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getParameterFromX();",
"java.lang.String getParameterValue();",
"@Override\n public void process(ContentRequest req, XMLWriter xml) throws IOException {\n xml.openElement(\"parameters\", true);\n Enumeration<String> names = req.getParameterNames();\n while (names.hasMoreElements()) {\n String paramName = names.nextElement();\n String[] values = req.getParameterValues(paramName);\n if (values != null) {\n for (String value : values) {\n xml.openElement(\"parameter\", false);\n xml.attribute(\"name\", paramName);\n xml.writeText(value);\n xml.closeElement();\n }\n }\n }\n xml.closeElement(); // close parameters\n }",
"private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }",
"public abstract ParamNumber getParamX();",
"public boolean setIndividualParamValueFromXML(Element el) {\n\t\treturn false;\n\t}",
"public String getParam() {\n\t\treturn getTextContent(paramElem);\n\t}",
"private static void parseParameter(Element element, BufferedWriter writer) throws IOException{\n\n\t\tif (element instanceof Number_Object) {\n\t\t\tNumber_Object number = (Number_Object) element;\n\n\t\t\ttry {\n\t\t\t\tlong value = number.getValue().longValueExact();\n\t\t\t\twriter.write(String.valueOf(value));\n\t\t\t} catch (ArithmeticException e) {\n\t\t\t\tdouble value = number.getValue().doubleValue();\n\t\t\t\twriter.write(String.valueOf(value));\n\t\t\t}\n\n\t\t} else if (element instanceof State_Object) {\n\t\t\t//TODO still need to check here whether it's right.\n\t\t\tState_Object str = (State_Object) element;\n\t\t\twriter.write(str.getValue().getName());\n\n\t\t} else if (element instanceof Boolean_Object) {\n\t\t\tBoolean_Object bool = (Boolean_Object) element;\n\t\t\t//cb.parameter(bool.isValue());\n\t\t\twriter.write(String.valueOf(bool.isValue()));\n\t\t\t\n\t\t} else if (element instanceof Resource_Object) {\n\t\t\tResource_Object objRef = (Resource_Object) element;\n\t\t\tResource ref = objRef.getValue();\n\t\t\twriter.write(ref.getName()+\".get()\"); //////////////test. should think more on this...\n\t\t\t\n\t\t\t//if (triggers != null && refInList(ref, triggers)) \n\n\t\t} else {\n\t\t\tparseElement(element, writer);\n\t\t}\n\t}",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }",
"String toParameter();",
"public String paramString() {\n\t\tString tail = super.paramString();\n\t\ttail = tail.substring(tail.indexOf(')') + 1);\n\t\treturn \"points=\" + points + \", lineWidth=\" + getLineWidth() + tail;\n\t}",
"public void addToParameterNameValuePairs(entity.LoadParameter element);",
"protected String paramString() {\n return super.paramString() + \",\" + \"caretColor=\" + caretColor + \",\"\n + \"disabledTextColor=\" + disabledTextColor + \",\" + \"editable=\"\n + isEditable + \",\" + \"margin=\" + margin + \",\"\n + \"selectedTextColor=\" + selectedTextColor + \",\"\n + \"selectionColor=\" + selectionColor;\n\n }",
"public void writeParameterToX(String parameterName);",
"IFMLParameter createIFMLParameter();",
"@Override\n\tprotected void setParameterValues() {\n\t}",
"@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}",
"@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}",
"private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }",
"public interface Parameter extends Serializable {\n\n /**\n * Getter fot property 'type'.\n *\n * @return a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public String getType();\n\n /**\n * Setter for property 'type'.\n *\n * @param type a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public void setType(String type);\n\n /**\n * Getter fot property 'factor'.\n *\n * @return a double with the factor of the value in scientific notation.\n */\n public Double getFactor();\n\n /**\n * Setter for property 'factor'.\n *\n * @param factor a double with the factor of the value in scientific notation.\n */\n public void setFactor(Double factor);\n\n /**\n * Getter fot property 'base'.\n *\n * @return a integer with the base in scientific notation.\n */\n public Integer getBase();\n\n /**\n * Setter for property 'base'.\n *\n * @param base a integer with the base in scientific notation.\n */\n public void setBase(Integer base);\n\n /**\n * Getter fot property 'exponent'.\n *\n * @returna integer with exponent of the value in scientific notation.\n */\n public Integer getExponent();\n\n /**\n * Setter for property 'exponent'.\n *\n * @param exponent a integer with the exponent of the value in scientific notation.\n */\n public void setExponent(Integer exponent);\n\n /**\n * Getter fot property 'value'.\n *\n * @return a String with the representation of the parameter in scientific notation.\n */\n public String getValue();\n\n /**\n * Setter for property 'value'.\n *\n * @param value a String with the representation of the parameter in scientific notation.\n */\n public void setValue(String value);\n\n /**\n * Getter fot property 'unit'.\n *\n * @return a String with the unit of the parameter.\n */\n public String getUnit();\n\n /**\n * Setter for property 'unit'.\n *\n * @param unit a String with the unit of the parameter.\n */\n public void setUnit(String unit);\n\n /**\n * Getter fot property 'uncertainty'.\n *\n * @return a double with the uncertainty.\n */\n public Double getUncertainty();\n\n /**\n * Setter for property 'uncertainty'.\n *\n * @param uncertainty a double with the uncertainty\n */\n public void setUncertainty(Double uncertainty);\n}",
"void setParameters() {\n\t\t\n\t}",
"public String getParameterFromP();",
"@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(27)\n short parameterTreeViewWithValue();",
"private void setValue(String parameterName, String valueAsString) throws SAXException {\n if (currentNode == null)\n throw new SAXException(\"There is no current node.\");\n Parameter parameter;\n try {\n parameter = currentNode.getParameter(parameterName);\n } catch (NotFoundException e) {\n throw new SAXException(\"Node \" + currentNode.getName() + \" has no parameter '\" + parameterName + \"'\", e);\n }\n Object value;\n try {\n value = parameter.parseValue(valueAsString);\n } catch (NumberFormatException e) {\n throw new SAXException(parameter.getAbsolutePath() + \": could not parse value '\" + valueAsString + \"'\", e);\n }\n try {\n parameter.setValue(value);\n } catch (ValueError e) {\n throw new SAXException(parameter.getAbsolutePath() + \": value '\" + valueAsString + \"' invalid for parameter\", e);\n }\n }",
"@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }",
"public ParameterXML getParameter(String name) {\n return allXMLParameters.get(name);\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }",
"@Override\n public Collection<Parameter> jaxb_parameters() {\n Collection<jaxb.Parameter> pset = new HashSet<>();\n\n boolean write_quecontrol = has_queue_control;\n boolean write_min_rate = Float.isFinite(min_rate_vph);\n boolean write_max_rate = Float.isFinite(max_rate_vph);\n\n // write has_queue_control\n if(write_quecontrol){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"queue_control\");\n p.setValue(has_queue_control ? \"true\" : \"false\");\n pset.add(p);\n\n jaxb.Parameter p1 = new jaxb.Parameter();\n p1.setName(\"override_threshold\");\n p1.setValue(String.format(\"%.2f\",override_threshold));\n pset.add(p1);\n }\n\n // write min rate\n if(write_min_rate){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"min_rate_vphpl\");\n p.setValue(String.format(\"%.0f\",min_rate_vph));\n pset.add(p);\n }\n\n // write max rate\n if(write_max_rate){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"max_rate_vphpl\");\n p.setValue(String.format(\"%.0f\",max_rate_vph));\n pset.add(p);\n }\n\n return pset;\n }",
"public Map getParameters();",
"DataParamNode DataParamNode(Token t, String text);",
"public abstract String toFORMParam();",
"void setParameter(String name, String value);",
"public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }",
"@Override\n protected String getName() {return _parms.name;}",
"INDArray getParams();",
"String [] getParameters();",
"public Parameters getParameters() {\n\t\tElement params = getModelXMLElement(\"parameters\");\n\t\tif (params != null) {\n\t\t\tParameters p = new Parameters();\n\t\t\tNodeList nl = params.getElementsByTagName(\"param\");\n\t\t\tdouble[] cur = new double[nl.getLength()];\n\t\t\tfor (int i = 0; i < nl.getLength(); i++) {\n\t\t\t\tNode n = nl.item(i);\n\t\t\t\tString name = getNodeAttributeValue(n, \"name\");\n\t\t\t\t// Set \\mu_i if no name is given.\n\t\t\t\tif (name == null) {\n\t\t\t\t\tname = \"\\u00B5_\" + i;\n\t\t\t\t}\n\t\t\t\t// Add\n\t\t\t\tp.addParam(name, Double.parseDouble(getNodeAttributeValue(n, \"min\")),\n\t\t\t\t\t\tDouble.parseDouble(getNodeAttributeValue(n, \"max\")));\n\t\t\t\t// Extract default values and set as current, take min value if\n\t\t\t\t// no default is set\n\t\t\t\tString def = getNodeAttributeValue(n, \"default\");\n\t\t\t\tcur[i] = def != null ? Double.parseDouble(def) : p.getMinValue(i);\n\t\t\t}\n\t\t\tp.setCurrent(cur);\n\t\t\treturn p;\n\t\t}\n\t\treturn null;\n\t}",
"Parameter getParameter();",
"protected void setupParameters() {\n \n \n\n }",
"public Tipo visitParameter(DECAFParser.ParameterContext ctx){\r\n\t\tVarDec var =new VarDec(ctx.ID().getText(),tablaSimbolos.searchTipo(ctx.parameterType().getText()),0,position);\r\n\t\tfirmaA.addParam(var);\r\n\t\taddComment(\"paramname: \"+var.getNombre()+\"-position: \"+position);\r\n\t\tposition+=var.getByteSize();\r\n\t\treturn tablaSimbolos.correct();\r\n\t}",
"String getParam( String paraName );",
"@Override\n\tprotected void initParams() {\n\t\t\n\t}",
"public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }",
"@Override\n public StringBuilder appendAttributes(StringBuilder buf) {\n super.appendAttributes(buf);\n appendAttribute(buf, \"param\", param);\n return buf;\n }",
"public ParamNode getParamNode(int i) { return params[i]; }",
"String getExampleParameters();",
"public XMLEventProtocolParameters() {\n super(XMLEventProtocolParameters.class.getCanonicalName());\n\n // Set the event protocol properties for the XML event protocol\n this.setLabel(XML_EVENT_PROTOCOL_LABEL);\n\n // Set the starting and ending delimiters for text blocks of XML events\n this.setDelimiterToken(XML_TEXT_DELIMITER_TOKEN);\n\n // Set the event protocol plugin class\n this.setEventProtocolPluginClass(Apex2XMLEventConverter.class.getCanonicalName());\n }",
"@Override\n public String kind() {\n return \"@param\";\n }",
"@Override \n public String getParameter(String name) { \n \t// System.out.println(\"The original name received from getParameter() is:\"+name); \n String value = super.getParameter(encodeXSS(name)); \n //the following sentences will be replaced by logging sentence in actual project \n //System.out.println(\"The original value received from getParameter() is:\"+value); \n if (value != null) { \n value = encodeXSS(value); \n } \n \n //the following sentences will be replaced by logging sentence in actual project \n //System.out.println(\"After handling XSS ,the actual value is:\"+value); \n //System.out.println(); \n return value; \n }",
"@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}",
"public void readParameters() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n parameterParserXML.readParameterDefinition(configData.getParameterList());\r\n parameterParserXML.processParameterDependency();\r\n }\r\n\r\n Log.info(\"info.progress_control.load_parameter_description\");\r\n }",
"public String getParamString() {\n\t\tStringBuilder s = new StringBuilder();\n\t\tif (!((image instanceof SATImage ) ||\n\t\t\t\t(image instanceof IMAImage ))) {\n\t\t\ts.append(super.getParamString());\n\t\t} \n\t\ts.append(stringShort);\n\t\ts.append(\"(\");\n\t\ts.append(\")\");\n\t\treturn s.toString();\n\t}",
"ParameterList getParameters();",
"String extractParameters ();",
"public abstract String paramsToString();",
"public void setResponseXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localResponseXmlTracker = true;\n } else {\n localResponseXmlTracker = true;\n \n }\n \n this.localResponseXml=param;\n \n\n }",
"@DISPID(1610940429) //= 0x6005000d. The runtime will prefer the VTID if present\n @VTID(35)\n Parameters parameters();",
"protected String getParameter() {\r\n return this.parameter;\r\n }",
"protected void parametersInstantiation_EM() {\n }",
"public Param getSampleParams() throws InvalidFormatException;",
"@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}",
"public String getParam() {\n return param;\n }",
"public String getParam() {\n return param;\n }",
"@Override\n public String getParameters() {\n return parameters;\n }",
"private void SetParameters(XmlTest test){\r\n\t\t for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){\r\n\t\t\t test.addParameter(entry.getKey(), entry.getValue());\r\n\t\t }\r\n\t}",
"Object getParameter(String name);",
"Param createParam();",
"Param createParam();",
"Param createParam();",
"public void getMutliParams(String name, Collection<String> list) {\n\t\tNodeList nodes = paramElem.getElementsByTagName(name);\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tElement elem = (Element) nodes.item(i);\n\t\t\tlist.add(getTextContent(elem));\n\t\t}\n\t}",
"public Parameters getParameters();",
"Report addParameter(String parameter, Object value);",
"public java.lang.String getParam0(){\n return localParam0;\n }",
"public java.lang.String getParam0(){\n return localParam0;\n }",
"public java.lang.String getParam0(){\n return localParam0;\n }",
"public java.lang.String getParam0(){\n return localParam0;\n }",
"@Override\n public void accept(ExtractedParameterValueVisitor visitor) throws FHIRPersistenceException {\n// visitor.visit(this);\n }",
"@Override protected void outputLocalXml(IvyXmlWriter xw)\n{\n xw.field(\"KIND\",\"FLOAT\");\n}",
"public void setParameters(String parameters);",
"java.lang.String getParameterId();",
"JRParameter createJRParameter();",
"Parameter createParameter();",
"public void setInputXml(java.lang.String param) {\r\n localInputXmlTracker = param != null;\r\n\r\n this.localInputXml = param;\r\n }"
] |
[
"0.6755111",
"0.6471186",
"0.6257266",
"0.62560725",
"0.6246245",
"0.62282336",
"0.6197326",
"0.61721003",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.61075944",
"0.60439134",
"0.601358",
"0.5993184",
"0.59772116",
"0.5976794",
"0.5931543",
"0.58707386",
"0.5868166",
"0.585629",
"0.58451104",
"0.58441716",
"0.58414805",
"0.5834441",
"0.5823505",
"0.58121043",
"0.5811589",
"0.57951605",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5788793",
"0.5763723",
"0.57605404",
"0.57506526",
"0.5741796",
"0.57328725",
"0.5728964",
"0.57211274",
"0.5718318",
"0.5716566",
"0.57126755",
"0.5700746",
"0.5699642",
"0.56948066",
"0.56946164",
"0.5690976",
"0.5690404",
"0.56899005",
"0.56752014",
"0.5659171",
"0.5657332",
"0.56465006",
"0.56425637",
"0.56408817",
"0.5632929",
"0.56226605",
"0.5619044",
"0.56185234",
"0.56113285",
"0.56014484",
"0.5596964",
"0.558309",
"0.557727",
"0.5572871",
"0.55604595",
"0.55555266",
"0.55555266",
"0.55547583",
"0.554315",
"0.55430055",
"0.5542869",
"0.5542869",
"0.5542869",
"0.5538051",
"0.5535412",
"0.5512136",
"0.54963404",
"0.54963404",
"0.54963404",
"0.54963404",
"0.5491101",
"0.5488938",
"0.5485515",
"0.5480356",
"0.54740477",
"0.54726976",
"0.54701144"
] |
0.0
|
-1
|
/ contentType() based deserialization using .as() Here even if response is JSON or XML, RestAssured will handle it automatically.
|
@Test
public void testDeSerializationUsingContentType() {
ZebraRequestClassNew reqObj = new ZebraRequestClassNew();
reqObj.setAge(10);
reqObj.setWeight(100);
reqObj.setHome("India");
ZebraRequestClass respObj =
given()
.body(reqObj).
when()
.post("http://www.thomas-bayer.com/restnames/countries.groovy")
.as(ZebraRequestClass.class);
respObj.setregId(1101);
Assert.assertTrue(respObj.getregId() > 0);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public <T> T deserialize(HttpResponse response, Type returnType) throws PdfFillerAPIException {\n String body;\n if (response.getBody() != null && !response.getBody().isEmpty())\n body = response.getBody();\n else\n body = \"\";\n \n List<String> contentType = response.getHeaders().get(\"Content-Type\"); \n\n if (contentType.contains(\"application/json\")) {\n return this.deserialize(body, returnType);\n } else if (returnType.equals(String.class)) {\n // Expecting string, return the raw response body.\n return (T) body;\n } else {\n throw new PdfFillerAPIException(\n \"Content type \\\"\" + contentType + \"\\\" is not supported for type: \"\n + returnType\n );\n }\n }",
"protected static <T> T bodyAsJava(Response response, TypeToken<T> type) {\n Type type0 = type.getType();\n return new Gson().fromJson(bodyAsJson(response), type0);\n }",
"@DisplayName(\"Spartan /api/hello Endpoint Test\")\n @Test\n public void TestHello(){\n Response response = get(\"http://3.95.214.153:8000/api/hello\");\n\n // get status code out of this Response object\n System.out.println(\"response.statusCode() = \" + response.statusCode());//200\n\n // assert the status code is 200\n assertThat(response.statusCode(),is(200));\n\n // how to pretty print entire \"response body\"\n // prettyPrint() -- print and return the body as String\n String responseBodyAsString = response.prettyPrint();//print the body as a String\n\n System.out.println(\"==========================\");\n\n // assertThat the body is Hello from Sparta\n assertThat(responseBodyAsString,is(\"Hello from Sparta\"));\n\n // get the header called ContentType from the response\n //three ways of getting content-Type header in restAssure\n System.out.println(\"response.getHeader(\\\"Content-Type\\\") = \" + response.getHeader(\"Content-Type\"));//text/plain;charset=UTF-8 as String\n System.out.println(\"response.getContentType() = \" + response.getContentType());//text/plain;charset=UTF-8 as String\n System.out.println(\"response.contentType() = \" + response.contentType());//returns text/plain;charset=UTF-8 as String\n System.out.println(\"response.header(\\\"Content-Type\\\") = \" + response.header(\"Content-Type\"));//text/plain;charset=UTF-8\n\n\n // assert That Content-Type is text/plain;charset=UTF-8\n assertThat(response.contentType() , is(\"text/plain;charset=UTF-8\") );\n // assert That Content-Type startWith text\n assertThat(response.contentType(),startsWith(\"text\"));\n\n\n // Easy way to work with Content-type without typing much\n // We can use \"ContentType Enum\" from RestAssured to easily get \"main\" part content-type\n // ContentType.TEXT -->> returns text/plain as Enum(Object) not as String\n // startWith accept a String object\n // so use toString method to convert ContentType.TEXT to String so we can use it startWith\n //response.contentType() ===returns you String\n assertThat(response.contentType(),startsWith(ContentType.TEXT.toString()));// /api/hello end point returns us ONLY plain text\n\n assertThat(response.contentType() , is( not(ContentType.JSON) ) );//since end point does not return us JSON we can assert that this endpoint does not return JSON\n\n\n\n }",
"@Test\n public void VerifyContentTypeWithAssertThat(){\n given().accept(ContentType.JSON)\n .when().get(\"http://34.223.219.142:1212/ords/hr/employees/100\")\n .then().assertThat().statusCode(200)\n .and().contentType(ContentType.JSON);\n }",
"TypedResponse createTypedResponse();",
"public static <T> T unmarshallStreamingIngestResponse(\n HttpResponse response,\n Class<T> valueType,\n ApiName apiName,\n CloseableHttpClient httpClient,\n HttpUriRequest request,\n RequestBuilder requestBuilder)\n throws IOException, IngestResponseException {\n // We can't unmarshall a null response\n if (response == null) {\n LOGGER.warn(\"Null response passed to {}\", valueType.getName());\n throw new IllegalArgumentException();\n }\n\n // Handle the exceptional status code\n response =\n handleExceptionalStatus(response, null, apiName, httpClient, request, requestBuilder);\n\n // Grab the string version of the response entity\n String blob = consumeAndReturnResponseEntityAsString(response.getEntity());\n\n // Read out our blob into a pojo\n return mapper.readValue(blob, valueType);\n }",
"public <T> T getBodyFromResponse(ClientResponse response, Class<T> clazz);",
"<T> T fromJsonResult(MvcResult result, Class<T> valueType) throws Exception {\r\n return this.mapper.readValue(result.getResponse().getContentAsString(), valueType);\r\n }",
"public Result as(String contentType) {\n return new Result(header, body.as(contentType), session, flash, cookies);\n }",
"Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);",
"public RestTemplate contentTypeHelper(RestTemplate restTemplatex) {\n restTemplatex = new RestTemplateBuilder().build();\n List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();\n MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();\n converter.setSupportedMediaTypes(Collections.singletonList(MediaType.ALL));\n messageConverters.add(converter);\n restTemplatex.setMessageConverters(messageConverters);\n return restTemplatex;\n }",
"@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }",
"@Test\n\tpublic void requestDataForCustomer12212_checkContentType_expectApplicationJson() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}",
"@Test\n public void readSystemObjectClassAccDelRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountDeletionRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountDeletionRequest properly\", object.getClass(), actual.getClass());\n }",
"public abstract Object deserialize(Object object);",
"public final <T> T call(String method, String url, Object payload, Map<String, Object> urlParameters, Map<String, Object> queryParameters, Class<T> type) throws OnshapeException {\n Response response = call(method, url, payload, urlParameters, queryParameters);\n if (response.getMediaType().toString().startsWith(MediaType.APPLICATION_JSON)) {\n String stringEntity = response.readEntity(String.class);\n // Special case: If it is an array, and the response type has a single array field, then read that\n try {\n if (stringEntity.startsWith(\"[\") && type.getDeclaredFields().length == 1 && type.getDeclaredFields()[0].getType().isArray()) {\n String fieldName = type.getDeclaredFields()[0].getName();\n return objectMapper.readValue(\"{ \\\"\" + fieldName + \"\\\" : \" + stringEntity + \" }\", type);\n } else {\n return objectMapper.readValue(stringEntity, type);\n }\n } catch (IOException | SecurityException ex) {\n throw new OnshapeException(\"Error while deserializing response, response was\\n\" + stringEntity, ex);\n }\n } else {\n String ext = response.getMediaType().getSubtype();\n if (File.class.equals(type)) {\n try {\n File f = File.createTempFile(\"onshape\", \".\" + ext, workingDir);\n InputStream input = (InputStream) response.getEntity();\n try (FileOutputStream fos = new FileOutputStream(f)) {\n int n;\n byte[] buffer = new byte[1024];\n while ((n = input.read(buffer)) > -1) {\n fos.write(buffer, 0, n);\n }\n fos.flush();\n }\n return type.cast(f);\n } catch (IOException ex) {\n throw new OnshapeException(\"Error while copying to local file\", ex);\n }\n } else if (type.getDeclaredFields().length == 1 && \"file\".equals(type.getDeclaredFields()[0].getName()) && File.class.equals(type.getDeclaredFields()[0].getType())) {\n try {\n File f = File.createTempFile(\"onshape\", \".\" + ext, workingDir);\n InputStream input = (InputStream) response.getEntity();\n try (FileOutputStream fos = new FileOutputStream(f)) {\n int n;\n byte[] buffer = new byte[1024];\n while ((n = input.read(buffer)) > -1) {\n fos.write(buffer, 0, n);\n }\n fos.flush();\n }\n Constructor<T> constructor = type.getDeclaredConstructor();\n constructor.setAccessible(true);\n T out = constructor.newInstance();\n Field field = type.getDeclaredFields()[0];\n field.setAccessible(true);\n field.set(out, f);\n return out;\n } catch (IOException | IllegalArgumentException | IllegalAccessException\n | InstantiationException | InvocationTargetException\n | NoSuchMethodException | SecurityException ex) {\n throw new OnshapeException(\"Error while copying to local file\", ex);\n }\n }\n }\n throw new OnshapeException(\"Unable to convert media-type \" + response.getMediaType() + \" to type \" + type);\n }",
"private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}",
"@Override\n public final Object readFrom(final Class<Object> type,\n final Type genericType, final Annotation[] annotations,\n final MediaType mediaType,\n final MultivaluedMap<String, String> httpHeaders,\n final InputStream entityStream) throws IOException {\n InputStreamReader streamReader = new InputStreamReader(entityStream,\n \"UTF-8\");\n try {\n Type jsonType;\n if (type.equals(genericType)) {\n jsonType = type;\n } else {\n jsonType = genericType;\n }\n return getGson().fromJson(streamReader, jsonType);\n } finally {\n try {\n if (streamReader != null) {\n streamReader.close();\n }\n } catch (IOException e) {\n // ignore, nothing to be done here anyway\n }\n }\n }",
"@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }",
"@Test\n public void oneSpartanPojo(){\n Response response = given().accept(ContentType.JSON)\n .and().pathParam(\"id\", 15)\n .and().get(\"http://18.232.145.26:8000/api/spartans/{id}\");\n\n // Verify response status code should be 200\n Assert.assertEquals(response.statusCode(), 200 , \"Verify status code : \");\n\n // Convert Json to POJO( Our custom Spartan java class )\n Spartan spartan15 = response.body().as(Spartan.class);\n System.out.println(\"spartan15 = \" + spartan15);\n System.out.println(\"spartan15.getNames() = \" + spartan15.getName());\n System.out.println(\"spartan15.getId() = \" + spartan15.getId());\n\n\n }",
"@Test\n public void readSystemObjectClassMedicineOrderRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"MedicineOrderRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return MedicineOrderRequest properly\", object.getClass(), actual.getClass());\n }",
"protected <T> T getDatamodelObjectFromResponse(JsonNode response, List<String> path, Class<T> targetClass) throws JsonProcessingException {\n\t\tif(response == null) {\n\t\t\tthrow new MalformedResponseException(\"The API response is null\");\n\t\t}\n\t\tJsonNode currentNode = response;\n\t\tfor(String field : path) {\n\t\t\tif (!currentNode.has(field)) {\n\t\t\t\tthrow new MalformedResponseException(\"Field '\"+field+\"' not found in API response.\");\n\t\t\t}\n\t\t\tcurrentNode = currentNode.path(field);\n\t\t}\n\t\treturn mapper.treeToValue(currentNode, targetClass);\n\t}",
"public abstract Class<Response> getResponseClass();",
"private void setContentType(Operation operation) {\n operation.getResponses().values().forEach(response -> {\n Content content = response.getContent();\n if (content != null) {\n MediaType mediaType = content.remove(\"*/*\");\n if (mediaType != null) {\n content.addMediaType(\"application/json\", mediaType);\n }\n }\n });\n }",
"public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;",
"public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }",
"<T> T parseToObject(Object json, Class<T> classObject);",
"Object deserialize(Class objClass, InputStream stream) throws IOException;",
"@Ignore\n @Test\n public void testPostDisambiguatesOnContentType() throws ClientProtocolException, IOException\n {\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", xml, ContentType.APPLICATION_XML_TYPE), \"xml\");\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", json, ContentType.APPLICATION_JSON_TYPE), \"json\");\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", text, ContentType.TEXT_PLAIN_TYPE), \"text\");\n }",
"public <T> T deserialize(String body, Type returnType) throws PdfFillerAPIException {\n\treturn mapper.fromJson(body, returnType);\n }",
"@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }",
"public static Object parse(Payload payload) {\n Class classType = PayloadRegistry.getClassByType(payload.getMetadata().getType());\n if (classType != null) {\n ByteString byteString = payload.getBody().getValue();\n ByteBuffer byteBuffer = byteString.asReadOnlyByteBuffer();\n Object obj = JacksonUtils.toObj(new ByteBufferBackedInputStream(byteBuffer), classType);\n if (obj instanceof Request) {\n ((Request) obj).putAllHeader(payload.getMetadata().getHeadersMap());\n }\n return obj;\n } else {\n throw new RemoteException(NacosException.SERVER_ERROR,\n \"Unknown payload type:\" + payload.getMetadata().getType());\n }\n \n }",
"TargetType deserializeContents(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n super.deserializeContents(stream, builder);\n return builder.build();\n }",
"@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }",
"@Test\n public void testGetSingleSizeRecordSetDeserializationAsXmlFromStringRepresentaion() {\n WebResource r = resource().path(\"RecordSet\").path(\"Size\").path(\"Backwards\").path(\"single\");\n // Check deserialization\n RecordSet<Size> actual = r.accept(MediaType.TEXT_XML_TYPE).get(RecordSet.class);\n assertNotNull(actual);\n assertNotNull(actual.getRecords());\n assertTrue(actual.getRecords().size() == 2);\n assertTrue(actual.getRecords().iterator().next() instanceof Size);\n }",
"<T> T fromJson(String source, Class<T> type);",
"T deserialize(InputStream stream) throws IOException;",
"public static Payload convert(Response response) {\n byte[] jsonBytes = JacksonUtils.toJsonBytes(response);\n \n Metadata.Builder metaBuilder = Metadata.newBuilder().setType(response.getClass().getSimpleName());\n return Payload.newBuilder()\n .setBody(Any.newBuilder().setValue(UnsafeByteOperations.unsafeWrap(jsonBytes)))\n .setMetadata(metaBuilder.build()).build();\n }",
"<T> T fromJson(String source, JavaType type);",
"private Object deserializeObjectFromRequest(String mimeInputFormat,\n\t\tIWebSerialDeserial serialDeserial)\n\t{\n\t\tWebRequest servletRequest = AbstractRestResource.getCurrentWebRequest();\n\n\t\treturn serialDeserial.requestToObject(servletRequest, parameterClass, mimeInputFormat);\n\t}",
"InputStream deserialize(InputStream toDeserialize);",
"HarvestResponseType createHarvestResponseType();",
"@Test\n public void testGetSingleTpTagRecordSetDeserializationAsJson() {\n WebResource r = resource().path(\"RecordSet\").path(\"TpTag\").path(\"single\");\n // Check deserialization\n RecordSet<TpTag> actual = r.accept(MediaType.APPLICATION_JSON_TYPE).get(RecordSet.class);\n assertNotNull(actual);\n assertNotNull(actual.getRecords());\n assertTrue(actual.getRecords().size() == 1);\n assertTrue(expectedRecordSetTpTag.getPageSize() == actual.getPageSize());\n assertTrue(expectedRecordSetTpTag.getStartIndex() == actual.getStartIndex());\n assertTrue(expectedRecordSetTpTag.getTotalNumberOfRecords() == actual.getTotalNumberOfRecords());\n }",
"<T> T fromJson(String json, Class<T> type);",
"@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }",
"public interface Convert<T> {\n\n T convert(String response, Type type);\n\n T convert(String response, Class clazz);\n}",
"@Nullable\n <T> T getForObject(URI url, Class<T> responseType) throws RestClientException;",
"public abstract Response read(Request request, Response response);",
"@Test\n public void testDeSerialize() throws Exception {\n Writable w = new Text(\"{ \\\"ts\\\":\\\"2014-08-25T00:24:27.41103928Z\\\", \\\"t\\\":36529, \\\"Request\\\":{ \\\"path\\\":\\\"/foo/bar\\\", \\\"query\\\":{\\\"baz\\\": [\\\"ban\\\"]}, \\\"headers\\\":{ \\\"Accept\\\":[\\\"image/webp,*/*;q=0.8\\\"], \\\"Accept-Encoding\\\":[\\\"identity\\\"], \\\"Accept-Language\\\":[\\\"en-US,en;q=0.8\\\"], \\\"Connection\\\":[\\\"keep-alive\\\"], \\\"Referer\\\":[\\\"http://foo.com/bar\\\"], \\\"User-Agent\\\":[\\\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36\\\"] }, \\\"ip\\\":\\\"10.0.0.1\\\" } }\");\n\n JSONObject result = (JSONObject) instance.deserialize(w);\n \n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n \n StructField tSF = soi.getStructFieldRef(\"t\");\n assertEquals(36529, ((JavaStringIntObjectInspector)tSF.getFieldObjectInspector()).get(soi.getStructFieldData(result, tSF )));\n assertEquals(\"2014-08-25T00:24:27.41103928Z\"\n , soi.getStructFieldData(result, soi.getStructFieldRef(\"ts\")));\n \n StructField requestSF = soi.getStructFieldRef(\"request\");\n \n Object request = soi.getStructFieldData(result, requestSF);\n \n StructObjectInspector requestOI = (StructObjectInspector) requestSF.getFieldObjectInspector();\n \n assertEquals(3, requestOI.getAllStructFieldRefs().size());\n \n\n StructField headersSF = requestOI.getStructFieldRef(\"headers\");\n Object headers = requestOI.getStructFieldData(request, headersSF);\n \n assertTrue(headersSF.getFieldObjectInspector().getCategory() == Category.STRUCT);\n StructObjectInspector headersOI = (StructObjectInspector) headersSF.getFieldObjectInspector();\n \n // now get the user agent with the mapping\n StructField useragentSF = headersOI.getStructFieldRef(\"useragent\");\n Object useragent = requestOI.getStructFieldData(headers, useragentSF);\n ListObjectInspector useragentOI = (ListObjectInspector) useragentSF.getFieldObjectInspector();\n assertEquals(useragentOI.getCategory(), Category.LIST);\n \n // get value\n List d = useragentOI.getList(useragent);\n assertEquals(d.size(),1);\n }",
"@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }",
"protected <T> T deserialize(final String value, final Class<T> type) throws JsonDeserializationException {\n return json.deserialize(value, type);\n }",
"public Converter<ResponseBody, ?> responseBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit) {\n/* 23 */ if (String.class.equals(type)) {\n/* 24 */ return new Converter<ResponseBody, String>()\n/* */ {\n/* */ public String convert(ResponseBody value) throws IOException {\n/* 27 */ return value.string();\n/* */ }\n/* */ };\n/* */ }\n/* 31 */ return null;\n/* */ }",
"public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }",
"@Test\n void getAllProfessors() throws Exception{\n MvcResult result = mvc.perform(get(\"/api/v1/professors\")).andExpect(status().isOk()).andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)).andReturn();\n System.out.println(result.getResponse().getContentAsString());\n\n }",
"private OlapResult parseFromResponse(OlapMessage.Response response) throws IOException{\n switch(response.getType()){\n case NOT_SUBMITTED:\n return new NotSubmittedResult();\n case FAILED:\n OlapMessage.FailedResponse fr=response.getExtension(OlapMessage.FailedResponse.response);\n throw Exceptions.rawIOException((Throwable)OlapSerializationUtils.decode(fr.getErrorBytes()));\n case IN_PROGRESS:\n OlapMessage.ProgressResponse pr=response.getExtension(OlapMessage.ProgressResponse.response);\n return new SubmittedResult(pr.getTickTimeMillis());\n case CANCELLED:\n return new CancelledResult();\n case COMPLETED:\n OlapMessage.Result r=response.getExtension(OlapMessage.Result.response);\n return OlapSerializationUtils.decode(r.getResultBytes());\n default:\n throw new IllegalStateException(\"Programmer error: unexpected response type\");\n }\n }",
"@Test\n\t@Ignore\n\tpublic void testResponse() throws UnsupportedEncodingException {\n\t\tws = resource().path(\"omxdata\");\n\t\tClientResponse response = ws.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);\n\t\tassertEquals(200, response.getStatus());\n\t\tSystem.out.println(response.getStatus());\n\t}",
"public TargetType deserialize(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n deserialize(stream, builder);\n return builder.build();\n }",
"@Test\n public void testGetSingleTpTagRecordSetRepresentationAsString() {\n WebResource r = resource().path(\"RecordSet\").path(\"TpTag\").path(\"single\");\n // Assert String representation\n String expected = \"{\\\"startIndex\\\":0,\\\"pageSize\\\":10,\\\"totalNumberOfRecords\\\":1,\\\"records\\\":[{\\\"TpTag\\\":[{\\\"tagName\\\":\\\"tagname\\\",\\\"tpTagId\\\":10}]}]}\";\n String s = r.accept(MediaType.APPLICATION_JSON_TYPE).get(String.class);\n assertEquals(expected, s);\n }",
"public MediaType getContentType()\r\n/* 193: */ {\r\n/* 194:289 */ String value = getFirst(\"Content-Type\");\r\n/* 195:290 */ return value != null ? MediaType.parseMediaType(value) : null;\r\n/* 196: */ }",
"public void onResponse(Call call, Response response) throws IOException {\n Type arg = ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n T result = READ_MAPPER.readValue(response.body().string(), READ_MAPPER.getTypeFactory().constructType(arg));\n onResult(result);\n }",
"T fromJson(Object source);",
"boolean isJSON(Response response) {\n return response.getHeaderString(\"Content-Type\").equalsIgnoreCase(MediaType.APPLICATION_JSON);\n }",
"public void deserialize() {\n\t\t\n\t}",
"private Response toRequestedType(int id, String type) {\n\tPrediction pred = plist.find(id);\n\tif (pred == null) {\n\t String msg = id + \" is a bad ID.\\n\";\n\t return Response.status(Response.Status.BAD_REQUEST).\n\t\t entity(msg).\n\t\t type(MediaType.TEXT_PLAIN).\n\t\t build();\n\t}\n\telse if (type.contains(\"json\"))\n\t return Response.ok(toJson(pred), type).build();\n\telse\n\t return Response.ok(pred, type).build(); // toXml is automatic\n }",
"void readPropertyValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType format)\n throws ODataApplicationException, SerializerException;",
"void setContentType(HttpServletResponse response);",
"public JSONResponse convertReponse(HttpResponse response){\n\n\t\ttry {\n\t\t\tString json = EntityUtils.toString(response.getEntity(), \"UTF-8\");\n\t\t\tint statusCode = response.getStatusLine().getStatusCode();\n\t return new JSONResponse(json, statusCode);\n\t\t} catch (ParseException | IOException e) {\n\t\t\tlogger.error(\"convert http response to json failed, error={}\", e.getLocalizedMessage());\n\t\t\t// e.printStackTrace();\n\t\t\treturn null;\n\t\t} \n \n }",
"static <T extends JSONSerializable> T deserialize(String json, Class<T> type) throws Exception {\n T result = type.newInstance();\n result.jsonDeserialize(json);\n return result;\n }",
"public interface JSONDeserializer<T> {\n\t\n\t/**\n\t * Deserialize a json string\n\t * @param json object to deserialize\n\t * @return JSON representation as {@link JsonObject}\n\t */\n\tJsonObject deserialise(String json);\n\t\n\t/**\n\t * Unmarshall 'meta' section of the response\n\t * @param meta section represented as {@link JsonObject}\n\t * @return object of generic type T\n\t */\n\tT unmarshallMeta(JsonObject meta);\n\t\n\t/**\n\t * Unmarshall 'response' section of the response\n\t * @param response section represented as {@link JsonObject}\n\t * @return list of objects of generic type T\n\t */\n\tCollection<T> unmarshallResponse(JsonObject response);\n\n}",
"protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;",
"public interface JsonConverter {\n\n String toJson(Object o) throws IOException;\n\n String toJsonIgnoreException(Object o);\n\n <T> T fromJson(String json, Class<T> type) throws IOException;\n\n <T> T fromJson(String json, TypeData<T> typeData) throws IOException;\n\n <T> T convert(Object o, TypeData<T> typeData) throws IOException;\n}",
"@Test\n public void testGetSingleSizeRecordSetDeserializationAsJson() {\n WebResource r = resource().path(\"RecordSet\").path(\"Size\").path(\"single\");\n // Check deserialization\n RecordSet<Size> actual = r.accept(MediaType.APPLICATION_JSON_TYPE).get(RecordSet.class);\n assertNotNull(actual);\n assertNotNull(actual.getRecords());\n assertTrue(actual.getRecords().size() == 1);\n assertTrue(expectedRecordSetSize.getPageSize() == actual.getPageSize());\n assertTrue(expectedRecordSetSize.getStartIndex() == actual.getStartIndex());\n assertTrue(expectedRecordSetSize.getTotalNumberOfRecords() == actual.getTotalNumberOfRecords());\n }",
"@JsonProperty(\"contentType\")\n public String getContentType() {\n return contentType;\n }",
"public static ResponseWrapper fromJson(String json)\n\t{ \n\t\tResponseWrapper response = new ResponseWrapper();\n\t\tresponse.fromJsonCore(json, \"response\", (type) -> type.getResponseContentType()); \n\t\treturn response;\n\t}",
"@Test\n public void readUserClassDoctor() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Doctor\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Doctor properly\", Factory.createUser(\"Doctor\").getClass(), actual.getClass());\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n public JsonDeserializer<Object> getContentDeserializer() {\n return (JsonDeserializer<Object>) _valueDeserializer;\n }",
"public static <T> T getTestObject(String rs, Class<T> clazz) throws Exception {\n return JSON.parseObject(readSourceFile(rs), clazz);\n }",
"@BeforeClass\n public static void beforeClass() {\n \n RestAssured.registerParser(\"text/plain\", Parser.JSON);\n }",
"public void parseResponse();",
"public static <T> T createObjectInstance(String content, Class<T> valueType) {\n\t\t ObjectMapper objectMapper = new ObjectMapper();\n\t\t try {\n\t\t\treturn objectMapper.readValue(content, valueType);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t }",
"<T extends Response> T send(Request request, Class<T> responseType) throws IOException;",
"private static Sample getSample(HttpResponse<String> response){\n\t\tSample sample;\n\t\ttry {\n\t\t\tsample = new ObjectMapper().readValue(response.body(), new TypeReference<Sample>(){});\n\t\t\treturn sample;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Test\n public void testGetItem() throws Exception {\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/dummy-item\").accept(MediaType.APPLICATION_JSON);\n MvcResult mvcResult = mockMvc.perform(request)\n // perform request and check status\n .andExpect(status().isOk())\n // check content \n // if response is easy check directly\n .andExpect(content().json(\"{\\\"id\\\": 123,\\\"name\\\": \\\"Indarpreet\\\",\\\"price\\\": 120,\\\"quantity\\\": 1}\"))\n // return the object\n .andReturn();\n\n // if response is complex check using Assert Equals and other libraries \n // assertEquals(\"Hello World\", mvcResult.getResponse().getContentAsString());\n }",
"@Override\n public Optional<ApiResponse> filterResponse(ApiResponse response, Operation operation, ApiDescription api, Map<String, List<String>> params, Map<String, String> cookies, Map<String, List<String>> headers) {\n // fix spec for object media types, e.g. json\n config.getObjectMediaTypes().stream()\n .map(mts -> response.getContent().get(mts))\n .filter(mt -> mt != null && mt.getSchema() == null)\n .forEach(mt -> {\n Schema schema = new Schema();\n schema.setType(\"object\");\n mt.setSchema(schema);\n });\n\n // fix spec for binary media types\n config.getBinaryMediaTypes().stream()\n .map(mts -> response.getContent().get(mts))\n .filter(mt -> mt != null && mt.getSchema() == null)\n .forEach(mt -> {\n final Schema schema = new Schema();\n schema.setType(\"string\");\n schema.setFormat(\"binary\");\n mt.setSchema(schema);\n });\n\n return Optional.of(response);\n }",
"@GET\n @Path(\"/types\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getBlahTypes(@Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final Response response = RestUtilities.make200OkResponse(getBlahManager().getBlahTypes(LocaleId.en_us));\n getSystemManager().setResponseTime(GET_BLAH_TYPES_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } finally {\n\n }\n }",
"private void validateContentType(ODataRequest request) throws BatchDeserializerException {\n BatchParserCommon.parseContentType(request.getHeader(CONTENT_TYPE), ContentType.MULTIPART_MIXED, 0);\n }",
"@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }",
"public static GetAnimalResponse parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n GetAnimalResponse object = new GetAnimalResponse();\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 if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"GetAnimalResponse\".equals(type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (GetAnimalResponse) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\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 reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"GetAnimalResult\").equals(\n 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 object.setGetAnimalResult(null);\n reader.next();\n\n reader.next();\n } else {\n object.setGetAnimalResult(MessageResponseOfAnimalModelNuLtuh91.Factory.parse(\n reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"@Test\n public void genericTest() {\n TestObject to = testAsGeneric(ASJSON, TestObject.class);\n assertEquals(\"test\", to.getData());\n }",
"public @Nullable T getContent() {\n logger.trace(\"Get Content of Message, content type : \" + contentType + \" / Content : \" + content);\n try {\n Class type = Class.forName(contentType);\n return (T) gson.fromJson(content, type);\n } catch (ClassNotFoundException e) {\n logger.error(\"Problem when change message content (json) in object\", e);\n }\n return null;\n }",
"public TargetType deserialize(byte[] data) throws IOException {\n return deserialize(new ByteArrayInputStream(data));\n }",
"public <T> T getForObject(URI url, Class<T> responseType) throws RestClientException {\n return restTemplate.getForObject(url, responseType);\n }",
"@Override\n public GsonFooCustomObject deserialize(final HttpResponse httpResponse) {\n final String jsonAsString = SphereRequestUtils.getBodyAsString(httpResponse);\n return gson.fromJson(jsonAsString, GsonFooCustomObject.class);\n }",
"private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}",
"@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }",
"public String getContentType() {\n return this.response.getContentType();\n }",
"private static ArrayList<Classification> getClassifications(HttpResponse<String> response){\n\t\tArrayList<Classification> classifications;\n\t\ttry {\n\t\t\tclassifications = new ObjectMapper().readValue(response.body(), new TypeReference<ArrayList<Classification>>(){});\n\t\t\treturn classifications;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//return null;\n\t\treturn new ArrayList<Classification>();\n\t}",
"public static CreateAnimalResponse parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n CreateAnimalResponse object = new CreateAnimalResponse();\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 if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"CreateAnimalResponse\".equals(type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (CreateAnimalResponse) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\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 reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"CreateAnimalResult\").equals(\n 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 object.setCreateAnimalResult(null);\n reader.next();\n\n reader.next();\n } else {\n object.setCreateAnimalResult(MessageResponseOfAnimalModelNuLtuh91.Factory.parse(\n reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"boolean supports(GenericType<? extends Source<?>> type, HttpClientResponse response);"
] |
[
"0.6222492",
"0.60273135",
"0.602408",
"0.59176266",
"0.58367616",
"0.5822253",
"0.56985754",
"0.56577957",
"0.5650766",
"0.5617286",
"0.5486189",
"0.5457989",
"0.5406539",
"0.5338294",
"0.5330825",
"0.53262573",
"0.5312794",
"0.53106874",
"0.5307347",
"0.5306699",
"0.5305299",
"0.5296741",
"0.52811044",
"0.5241691",
"0.52405024",
"0.5229077",
"0.52234447",
"0.52157325",
"0.52122766",
"0.5208994",
"0.5203549",
"0.5190313",
"0.5173821",
"0.5172171",
"0.5160385",
"0.51491106",
"0.51351184",
"0.5128198",
"0.51263094",
"0.51219225",
"0.5102528",
"0.51010203",
"0.5065526",
"0.50574315",
"0.5030185",
"0.50187474",
"0.50152326",
"0.5006552",
"0.4990884",
"0.497555",
"0.4974841",
"0.49627548",
"0.4947073",
"0.49412933",
"0.49412376",
"0.49378785",
"0.49362558",
"0.49250573",
"0.49162903",
"0.49134684",
"0.4899791",
"0.4898645",
"0.48954454",
"0.48887053",
"0.48197773",
"0.48172924",
"0.48085856",
"0.48079485",
"0.4793014",
"0.47834542",
"0.47784477",
"0.4776851",
"0.47703788",
"0.4768404",
"0.476285",
"0.47567105",
"0.47566816",
"0.47533876",
"0.47515714",
"0.4747579",
"0.47280404",
"0.47108945",
"0.47085786",
"0.46965772",
"0.46944648",
"0.46891007",
"0.46884254",
"0.46861747",
"0.4680873",
"0.46748003",
"0.46732682",
"0.46724352",
"0.46719575",
"0.46648285",
"0.46621004",
"0.4658241",
"0.46565777",
"0.46550345",
"0.4652327",
"0.46457052"
] |
0.62975883
|
0
|
Set an orthographic projection
|
public void setupView(int near, int far) {
mGL.glMatrixMode(GL10.GL_PROJECTION);
mGL.glLoadIdentity();
mGL.glOrthof(0, mRenderer.getWidth(), -mRenderer.getHeight(), 0, near, far);
// Select a clean model view
mGL.glMatrixMode(GL10.GL_MODELVIEW);
mGL.glLoadIdentity();
// Rotate world by 180 around x axis so positive y is down
mGL.glRotatef(-180, 1, 0, 0);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void setOrtho(int width, int height) {\n\t\tglViewport(0, 0, width, height);\n\t\tMatrix.ortho2D(projection, 0, width, 0, height, -1, 1);\n\t}",
"protected void renderOrthographics() {\n\t\tthis.enableOrthoMode(true); // set orthographic projection mode\r\n\t\t/*\r\n\t\t * for (each node in orthoQueue) { node.draw(this); //tell node to draw\r\n\t\t * itself using this renderer }\r\n\t\t */\r\n\t\tdrawQueue(orthoQueue);\r\n\t\tthis.enableOrthoMode(false); // return to perspective projection\r\n\t}",
"abstract public void projection(GL gl,\n int width, int height);",
"public void setProjection(float l, float r, float b, float t, float n, float f) {\n projection.setProjection(l, r, b, t, n, f);\n }",
"ProjectionMode getProjectionMode();",
"public final void glOrthof(final float left, final float right, final float bottom, final float top, final float zNear, final float zFar) {\n final float dx=right-left;\n final float dy=top-bottom;\n final float dz=zFar-zNear;\n final float tx=-1.0f*(right+left)/dx;\n final float ty=-1.0f*(top+bottom)/dy;\n final float tz=-1.0f*(zFar+zNear)/dz;\n \n matrixOrtho[0+4*0] = 2.0f/dx;\n matrixOrtho[1+4*1] = 2.0f/dy;\n matrixOrtho[2+4*2] = -2.0f/dz;\n matrixOrtho[0+4*3] = tx;\n matrixOrtho[1+4*3] = ty;\n matrixOrtho[2+4*3] = tz;\n \n glMultMatrixf(matrixOrtho, 0);\n }",
"public void setProjection(String projection) {\n this.projection = projection;\n }",
"private void initGL() {\r\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\r\n glMatrixMode(GL_PROJECTION);\r\n glLoadIdentity();\r\n\r\n glOrtho(-320, 320, -240, 240, 1, -1);\r\n\r\n glMatrixMode(GL_MODELVIEW);\r\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\r\n }",
"private void setCamera(GL2 gl, GLU glu)\n {\n Boundary bc = simulation.getBoundary();\n int w = (int) (bc.getMaxSize(0)-bc.getMinSize(0));\n int h = (int) (bc.getMaxSize(1)-bc.getMinSize(1));\n\n gl.glViewport(0, 0, w, h);\n\n\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glLoadIdentity();\n //opening angle, ratio of height and width, near and far\n glu.gluPerspective(80.0, 1,0.1,3*( bc.getMaxSize(2)-bc.getMinSize(2)));\n\n gl.glTranslatef(0.5f*(float) bc.getMinSize(0),-0.5f*(float) bc.getMinSize(1),1.5f*(float) bc.getMinSize(2));\n // gl.glTranslatef(0.5f*(float) (bc.getMaxSize(0)+bc.getMinSize(0)),0.5f*(float)(bc.getMaxSize(1)+ bc.getMinSize(1)),(float) -(bc.getMaxSize(2)-bc.getMinSize(2)));\n\n }",
"private void setCamera(GL gl_, GLU glu) {\n \tGL2 gl2 = gl_.getGL2();\r\n gl2.glMatrixMode(GL2.GL_PROJECTION);\r\n gl2.glLoadIdentity();\r\n\r\n // Perspective.\r\n float widthHeightRatio = (float) getWidth() / (float) getHeight();\r\n glu.gluPerspective(45, widthHeightRatio, 1 , 4000 );\r\n glu.gluLookAt(camPosition.getEyeX(), camPosition.getCenterY(), camPosition.getCameraDist(),\r\n \t\tcamPosition.getCenterX(), \r\n \t\tcamPosition.getCenterY(), \r\n \t\t0, \r\n \t\t\t0, 1, 0);\r\n\r\n // Change back to model view matrix.\r\n gl2.glMatrixMode(GL2.GL_MODELVIEW);\r\n gl2.glLoadIdentity();\r\n }",
"public void setProjection(int projectionMode, float zNear, float zFar, float zStage) {\n if (projectionMode > PM_MAX_LEGAL || projectionMode < 0) {\n throw new Ngin3dException(\"Illegal projection mode \" + projectionMode);\n } else {\n setValue(PROP_PROJECTION,\n new ProjectionConfig(projectionMode, zNear, zFar, zStage));\n }\n }",
"private void prepareProjection(Drawable drawable) {\n Matrix4f viewMatrix = new Matrix4f();\n\n Matrix4f modelMatrix = new Matrix4f();\n\n// Translate camera\n org.lwjgl.util.vector.Matrix4f.translate(this.camera.getPosition(), viewMatrix, viewMatrix);\n\n// Scale, translate and rotate model\n Vector3f modelAngle = drawable.getModelAngle();\n Matrix4f.scale(drawable.getModelScale(), modelMatrix, modelMatrix);\n Matrix4f.translate(drawable.getPosition(), modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.z), new Vector3f(0, 0, 1),\n modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.y), new Vector3f(0, 1, 0),\n modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.x), new Vector3f(1, 0, 0),\n modelMatrix, modelMatrix);\n// Upload matrices to the uniform variables\n GL20.glUseProgram(shaderProgram.getGlProgramId());\n this.camera.getProjectionMatrix().store(matrix44Buffer);\n matrix44Buffer.flip();\n\n /// http://lwjgl.org/wiki/index.php?title=The_Quad_with_Projection,_View_and_Model_matrices\n GL20.glUniformMatrix4(projectionMatrixLocation, false, matrix44Buffer);\n viewMatrix.store(matrix44Buffer);\n matrix44Buffer.flip();\n GL20.glUniformMatrix4(viewMatrixLocation, false, matrix44Buffer);\n modelMatrix.store(matrix44Buffer);\n matrix44Buffer.flip();\n GL20.glUniformMatrix4(modelMatrixLocation, false, matrix44Buffer);\n GL20.glUseProgram(0);\n this.exitOnGLError(\"logicCycle\");\n }",
"public static Matrix4f orthographic(float left, float right, float bottom, float top, float near, float far) {\n Matrix4f ortho = new Matrix4f();\n\n float tx = -(right + left) / (right - left);\n float ty = -(top + bottom) / (top - bottom);\n float tz = -(far + near) / (far - near);\n\n ortho.m00 = 2f / (right - left);\n ortho.m11 = 2f / (top - bottom);\n ortho.m22 = -2f / (far - near);\n ortho.m03 = tx;\n ortho.m13 = ty;\n ortho.m23 = tz;\n\n return ortho;\n }",
"protected void resetProjectionMatrix()\n {\n float tan = (float)Math.tan(myHalfFOVx);\n synchronized (this)\n {\n resetProjectionMatrixClipped();\n myProjectionMatrix = new float[16];\n myProjectionMatrix[0] = 1f / tan;\n myProjectionMatrix[5] = (float)(myAspectRatio / tan);\n myProjectionMatrix[10] = -1f;\n myProjectionMatrix[11] = -1f;\n myProjectionMatrix[14] = -2f;\n clearModelToWindowTransform();\n }\n }",
"private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}",
"@Override\n\tpublic void setProjection(String epsg) {\n\t}",
"private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }",
"public static void drawOrtho(int width, int height, GLDrawable g) {\n\t\tglMatrixMode(GL_PROJECTION);\r\n\t\tglPushMatrix();\r\n\t\t// go to front in ortho mode\r\n\t\tglLoadIdentity();\r\n\t\tgluOrtho2D(0, width, 0, height);\r\n\t\t// if needed save current transformations\r\n\t\tglMatrixMode(GL_MODELVIEW);\r\n\t\tglPushMatrix();\r\n\t\tglLoadIdentity();\r\n\t\t// no depth test\r\n\t\tglDisable(GL_DEPTH_TEST);\r\n\t\t// no loghting needed\r\n\t\tglDisable(GL_LIGHTING);\r\n\t\t// draw the drawable\r\n\t\tg.draw();\r\n\t\t// back to 3D stuff\r\n\t\tglEnable(GL_LIGHTING);\r\n\t\tglEnable(GL_DEPTH_TEST);\r\n\t\tglMatrixMode(GL_PROJECTION);\r\n\t\tglPopMatrix();\r\n\t\tglMatrixMode(GL_MODELVIEW);\r\n\t\tglPopMatrix();\t\t\r\n\t}",
"public View projection(String projection) {\n setProjection(projection);\n return this;\n }",
"public void project(Projection proj)\n {\n \tPoint2D.Double pt = new Point2D.Double(this.lon, this.lat);\n\t\tpt = proj.forward(pt);\n\t\tthis.lon = pt.x;\n\t\tthis.lat = pt.y;\n }",
"private void setupCamera(GL gl) {\r\n\t\tgl.glMatrixMode(GL.GL_MODELVIEW);\r\n\t\t// If there's a rotation to make, do it before everything else\r\n\t\tgl.glLoadIdentity();\r\n if (rotationMatrix == null) {\r\n\t\t\trotationMatrix = new double[16];\r\n\t\t\tgl.glGetDoublev(GL.GL_MODELVIEW, rotationMatrix, 0);\r\n\t\t}\r\n\t\tif (nextRotationAxis != null) {\r\n\t\t\tgl.glRotated(nextRotationAngle, nextRotationAxis.x, nextRotationAxis.y, nextRotationAxis.z);\r\n\t\t\tnextRotationAngle = 0;\r\n\t\t\tnextRotationAxis = null;\r\n\t\t}\r\n\t\tgl.glMultMatrixd(rotationMatrix, 0);\r\n\t\tgl.glGetDoublev(GL.GL_MODELVIEW, rotationMatrix, 0);\r\n\t\t// Move the objects according to the camera (instead of moving the camera)\r\n\t\tif (zoom != 0) {\r\n\t\t\tdouble[] oldMatrix = new double[16];\r\n\t\t\tgl.glGetDoublev(GL.GL_MODELVIEW, oldMatrix, 0);\r\n\t\t\tgl.glLoadIdentity();\r\n\t\t\tgl.glTranslated(0, 0, zoom);\r\n\t\t\tgl.glMultMatrixd(oldMatrix, 0);\r\n\t\t}\r\n\t}",
"public Matrix4 getProjectionMatrix() {\n return projectionMatrix;\n }",
"public Coordinates projection() {\n return projection;\n }",
"<T> Setter<R> set(Projection<T> projection, T value);",
"<T> Setter<R> set(Projection<T> projection, T value);",
"float[] getProjectionMatrix();",
"public void setProjectionMatrix(float[] projectionMatrix) {\n\t\tif (projectionMatrix.length != 16)\n\t\t\tthrow new IllegalArgumentException(\"Invalid projection matrix specified!\");\n\t\t\n\t\tSystem.arraycopy(this.projectionMatrix, 0, projectionMatrix, 0, projectionMatrix.length);\n\t\tcomputeReverseMatrix();\n\t}",
"@Override\n\tpublic void onSurfaceChanged(GL10 gl, int width, int height) {\n\tgl.glViewport(0, 0, width, height);\n\t//set projection matrix as active matrix\n\tgl.glMatrixMode(GL10.GL_PROJECTION); \n\t//load identity matrix to multiply with next matrix operation\n\tgl.glLoadIdentity(); \n\t//set perspective projection(GL10,FovY,Aspect,zNear,zFar)\n\tGLU.gluPerspective(gl, 70,width/(float)height,0.1f, 10f);\n\t//set ModelView matrix as active\n\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t}",
"@Override\n public void setCamera (GL2 gl, GLU glu, GLUT glut) {\n glu.gluLookAt(0, 0, 2.5, // from position\n 0, 0, 0, // to position\n 0, 1, 0); // up direction\n }",
"private void setRotation()\n\t{\n\t\tGL11.glPushMatrix();\n\t\tGL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);\n\t}",
"private void configureCamera() {\n float fHeight = cam.getFrustumTop() - cam.getFrustumBottom();\n float fWidth = cam.getFrustumRight() - cam.getFrustumLeft();\n float fAspect = fWidth / fHeight;\n float yDegrees = 45f;\n float near = 0.02f;\n float far = 20f;\n cam.setFrustumPerspective(yDegrees, fAspect, near, far);\n\n flyCam.setMoveSpeed(5f);\n\n cam.setLocation(new Vector3f(2f, 4.7f, 0.4f));\n cam.setRotation(new Quaternion(0.348f, -0.64f, 0.4f, 0.556f));\n }",
"public String getProjection() {\n return projection;\n }",
"public void setCamera(float width, float height, float distance) {\n\t\tgl.glMatrixMode(GL2.GL_PROJECTION);\n\t\tgl.glLoadIdentity();\n\n\t\t// Perspective.\n\t\tfloat widthHeightRatio = (float) width / (float) height;\n\t\tglu.gluPerspective(25, widthHeightRatio, 1, 1000);\n\t\tglu.gluLookAt((float) vx, (float) vy - 4.5f, distance + ddist, (float) x, (float) y, 0.0f, .0f, 1,\n\t\t\t\t0);\n\t\tgl.glRotated(dangl, 0f, 0f, 1.0f);\n\t\tdangl -= 0.1f;\n\t\t// Change back to model view matrix.\n\t\tgl.glMatrixMode(GL2.GL_MODELVIEW);\n\t\tgl.glLoadIdentity();\n\t}",
"public void SetDefaultParams() {\n OCCwrapJavaJNI.BRepAlgo_NormalProjection_SetDefaultParams(swigCPtr, this);\n }",
"public void setCameraAngles(float x, float y, float z, float w) {\n\t\tthis.qx=x;\n\t\tthis.qy=y;\n\t\tthis.qz=z;\n\t\tthis.qw=w;\n\t}",
"public void initCamera(GL gl, GLU glu) {\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glLoadIdentity();\n // Perspective.\n float widthHeightRatio = (float) width / (float) height;\n glu.gluPerspective(45, widthHeightRatio, 1, 1000);\n glu.gluLookAt(camx, camy, jarak, camx, camy, 0, 0, 1, 0);\n // Change back to model view matrix.\n gl.glMatrixMode(GL.GL_MODELVIEW);\n gl.glLoadIdentity();\n }",
"public void setCenterOfProjection(Vector3f centerOfProjection) {\n\t\tthis.mCenterOfProjection = centerOfProjection;\n\t\tthis.update();\n\t}",
"public void forward(Projection projection);",
"public void setupOpenGL() {\n try {\n PixelFormat pixelFormat = new PixelFormat();\n ContextAttribs contextAtrributes = new ContextAttribs(3, 2)\n .withForwardCompatible(true)\n .withProfileCore(true);\n\n DisplayMode displayMode = new DisplayMode(WIDTH, HEIGHT);\n Display.setDisplayMode(displayMode);\n Display.setTitle(WINDOW_TITLE);\n Display.create(pixelFormat, contextAtrributes);\n\n GL11.glEnable(GL11.GL_DEPTH_TEST);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n } catch (LWJGLException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Setup an XNA like background color\n GL11.glClearColor(0.4f, 0.6f, 0.9f, 0f);\n\n // Map the internal OpenGL coordinate system to the entire screen\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n\n this.exitOnGLError(\"Error in setupOpenGL\");\n }",
"void glViewport(int x, int y, int width, int height);",
"public void setCameraRotateForPickUp(float[] quat) {\n float[] newquat = normalizeQuat(quat);\n float rollRad = getRollRad(newquat);\n //Need to convert radians to convert to rotation that camera is using\n //pass to augmented image renderer and convert back into quaternion\n augmentedImageRenderer.updateCameraRotateForPickUp(eulerAnglesRadToQuat(-rollRad, 0, 0));\n }",
"public static Matrix4f getProjectionMatrix() {\n\t\tfinal float FOV = (float) 45.0f;\n\t\tfinal float Z_NEAR = 0.01f;\n\t\tfinal float Z_FAR = 1000f;\n\t\tfloat aspectRatio = (float) WIDTH / HEIGHT;\n\t\tMatrix4f projectionMatrix = new Matrix4f().perspective(FOV, aspectRatio, Z_NEAR, Z_FAR);\n\t\treturn projectionMatrix;\n\t}",
"@SuppressWarnings(\"unused\")\n\tpublic Camera(float[] viewMatrix, float[] projectionMatrix) {\n\t\tsetViewMatrix(viewMatrix);\n\t\tsetProjectionMatrix(projectionMatrix);\n\t\tcomputeReverseMatrix();\n\t}",
"@Override\r\n\tpublic void resize(GL10 gl, int w, int h) {\n\t\t if (h == 0) \r\n\t\t\t h = 1;\r\n\r\n\t gl.glViewport(0, 0, w, h); // Reset The Current Viewport And Perspective Transformation\r\n\t gl.glMatrixMode(GL10.GL_PROJECTION); // Select The Projection Matrix\r\n\t gl.glLoadIdentity(); // Reset The Projection Matrix\r\n\t GLU.gluPerspective(gl, 45.0f, (float) w / (float) h, 0.1f, 100.0f); // Calculate The Aspect Ratio Of The Window\r\n\t GLU.gluLookAt(gl, 0, 0, -5, 0, 0, 0, 0, 1, 0);\r\n\t gl.glMatrixMode(GL10.GL_MODELVIEW); // Select The Modelview Matrix\r\n\t gl.glLoadIdentity(); // Reset The ModalView Matrix\r\n\t}",
"OrthogonalDir(int rSign, int cSign) {\r\n\r\n //self-check: code will not compile w/ non-orthogonal directions\r\n if (rSign != 0 && cSign != 0) {\r\n throw new IllegalArgumentException(\"Marble Solitaire moves must only be in one direction\");\r\n }\r\n\r\n this.rSign = rSign / Math.max(Math.abs(rSign), 1); //avoid div by 0 w/o changing behavior\r\n this.cSign = cSign / Math.max(Math.abs(cSign), 1); //avoid div by 0 w/o changing behavior\r\n }",
"public void setCameraPosition(Coord crd) {\n if(internalNative == null) {\n if(internalLightweightCmp != null) {\n internalLightweightCmp.zoomTo(crd, internalLightweightCmp.getZoomLevel());\n } else {\n // TODO: Browser component \n }\n return;\n }\n internalNative.setPosition(crd.getLatitude(), crd.getLongitude());\n }",
"private void initialRenderPhase(final GL10 gl)\n {\n gl.glViewport(0, 0, width, height);\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n gl.glMatrixMode(GL10.GL_PROJECTION);\n gl.glLoadIdentity();\n GLU.gluOrtho2D(gl, 0, width, 0, height);\n }",
"protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }",
"public CreateProjectionResponse createProjection(CreateProjectionRequest request) throws GPUdbException {\n CreateProjectionResponse actualResponse_ = new CreateProjectionResponse();\n submitRequest(\"/create/projection\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void setCameraNear(float near) {\n ProjectionConfig config = getProjectionConfig();\n setProjection(config.mode, near, config.zFar, config.zStage);\n }",
"public\n Projection project ( double x , double y , double z , ClampMode clampModeOutside , boolean extrudeInverted ) {\n boolean outsideFrustum;\n if ( this.viewport == null || this.modelview == null || this.projection == null )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n Vector3D posVec = new Vector3D ( x , y , z );\n boolean[] frustum = this.doFrustumCheck ( this.frustum , this.frustumPos , x , y , z );\n boolean bl = outsideFrustum = frustum[0] || frustum[1] || frustum[2] || frustum[3];\n if ( outsideFrustum ) {\n boolean outsideInvertedFrustum;\n boolean opposite = posVec.sub ( this.frustumPos ).dot ( this.viewVec ) <= 0.0;\n boolean[] invFrustum = this.doFrustumCheck ( this.invFrustum , this.frustumPos , x , y , z );\n boolean bl2 = outsideInvertedFrustum = invFrustum[0] || invFrustum[1] || invFrustum[2] || invFrustum[3];\n if ( extrudeInverted && ! outsideInvertedFrustum || outsideInvertedFrustum && clampModeOutside != ClampMode.NONE ) {\n if ( extrudeInverted && ! outsideInvertedFrustum || clampModeOutside == ClampMode.DIRECT && outsideInvertedFrustum ) {\n double vecX = 0.0;\n double vecY = 0.0;\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n if ( opposite ) {\n vecX = this.displayWidth * this.widthScale - (double) this.coords.get ( 0 ) * this.widthScale - this.displayWidth * this.widthScale / 2.0;\n vecY = this.displayHeight * this.heightScale - ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale - this.displayHeight * this.heightScale / 2.0;\n } else {\n vecX = (double) this.coords.get ( 0 ) * this.widthScale - this.displayWidth * this.widthScale / 2.0;\n vecY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale - this.displayHeight * this.heightScale / 2.0;\n }\n Vector3D vec = new Vector3D ( vecX , vecY , 0.0 ).snormalize ( );\n vecX = vec.x;\n vecY = vec.y;\n Line vectorLine = new Line ( this.displayWidth * this.widthScale / 2.0 , this.displayHeight * this.heightScale / 2.0 , 0.0 , vecX , vecY , 0.0 );\n double angle = Math.toDegrees ( Math.acos ( vec.y / Math.sqrt ( vec.x * vec.x + vec.y * vec.y ) ) );\n if ( vecX < 0.0 ) {\n angle = 360.0 - angle;\n }\n Vector3D intersect = new Vector3D ( 0.0 , 0.0 , 0.0 );\n intersect = angle >= this.bra && angle < this.tra ? this.rb.intersect ( vectorLine ) : ( angle >= this.tra && angle < this.tla ? this.tb.intersect ( vectorLine ) : ( angle >= this.tla && angle < this.bla ? this.lb.intersect ( vectorLine ) : this.bb.intersect ( vectorLine ) ) );\n return new Projection ( intersect.x , intersect.y , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( clampModeOutside != ClampMode.ORTHOGONAL || ! outsideInvertedFrustum )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n if ( opposite ) {\n guiX = this.displayWidth * this.widthScale - guiX;\n guiY = this.displayHeight * this.heightScale - guiY;\n }\n if ( guiX < 0.0 ) {\n guiX = 0.0;\n } else if ( guiX > this.displayWidth * this.widthScale ) {\n guiX = this.displayWidth * this.widthScale;\n }\n if ( guiY < 0.0 ) {\n guiY = 0.0;\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n } else {\n if ( ! ( guiY > this.displayHeight * this.heightScale ) )\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n guiY = this.displayHeight * this.heightScale;\n }\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n if ( ! opposite )\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n guiX = this.displayWidth * this.widthScale - guiX;\n guiY = this.displayHeight * this.heightScale - guiY;\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n return new Projection ( guiX , guiY , Projection.Type.INSIDE );\n }",
"@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n \n float ratio = (float) width / height;\n /*\n mWidth = width;\n mHeight = height;\n */\n \n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n /*\n Near / far clipping planes, in terms of units away from the camera\n Cannot be negative or 0, should not be close to 0\n */\n //Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 0.5f, 21);\n \n }",
"public void changePolyOriginal() {\n this.changePoly(this.aorg, this.borg, this.corg, this.dorg, this.yorg);\n }",
"public Object getProjection() {\n return getValue(PROP_PROJECTION);\n }",
"public Camera() {\n\t\tMatrix.setIdentityM(viewMatrix, 0);\n\t\tMatrix.setIdentityM(projectionMatrix, 0);\n\t\tcomputeReverseMatrix();\n\t}",
"public void display(GLAutoDrawable drawable){\n GL4 gl = (GL4) GLContext.getCurrentGL();\n \n gl.glClear(GL_DEPTH_BUFFER_BIT);\n \n // not needed if bkg is black\n float bkg[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n FloatBuffer bkgBuffer = Buffers.newDirectFloatBuffer(bkg);\n gl.glClearBufferfv(GL_COLOR, 0, bkgBuffer);\n\n \n gl.glUseProgram(rendering_program); // loads program from init with the two shaders\n \n // define perspective matrix \n //perspective\n float aspect = (float) myCanvas.getWidth()/(float) myCanvas.getHeight();\n Matrix3D pMat = this.perspectiveMethod(60.0f, aspect, 0.1f, 100.0f);\t\t//for persective projection /zentrische Projektion\n Matrix3D oMat = this.orthographicMethod(1.0f, -1.0f, 1.0f, -1.0f, 0.1f, 100.0f); //for orthographic projection\n \n \n //copy perspective and MV matricies to corressponding uniform variables\n int mv_loc = gl.glGetUniformLocation(rendering_program, \"mv_matrix\");\n int proj_loc = gl.glGetUniformLocation(rendering_program, \"proj_matrix\");\n \n //build view matrix\n Matrix3D vMat = new Matrix3D();\n vMat.translate(-cameraX, -cameraY, -cameraZ);\n \n //build model matrix\n Matrix3D mMat = new Matrix3D(); //for right now we dont do anything (rotate, translate etc.) in with the mMat in this project\n\n Matrix3D mvMat = new Matrix3D();\n mvMat.concatenate(vMat);\t\t\t//first view matrix \n mvMat.concatenate(mMat);\t\t\t//second we put the model matrix on it (A * B)\n \n\n //plug the mvMat and pMat into the shader uniform variables \n gl.glUniformMatrix4fv(mv_loc, 1, false, mvMat.getFloatValues(),0);\n gl.glUniformMatrix4fv(proj_loc, 1, false, pMat.getFloatValues(),0);\n \n \n //be sure to bind the vbo before assigning the attribute pointer\n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[0]); \n // now set the \"location = 0\" info in the shaders to the point info from vbo[0]\n gl.glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(0);\n \n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[1]);\n gl.glVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(1);\n \n gl.glLineWidth(10.0f);\n \n gl.glEnable(GL_DEPTH_TEST);\n gl.glDrawArrays(GL_LINES, 0, 4);\n\n }",
"public void setOrientation(LatLonAlt lla) {\r\n\tOrientation = Location.azimuth_elevation_dist(lla)[0];\r\n}",
"public void updateMvpMatrix()\n\t\t{\n\t\t\t// Set the matrix, specifying the edges of the visible canvas and the near and far clipping planes.\n\t\t\tMatrix.orthoM(mvpMatrix, 0,\n\t\t\t\t\t-viewportWidth / (2f * zoom) + cameraX,\n\t\t\t\t\tviewportWidth / (2f * zoom) + cameraX,\n\t\t\t\t\t-viewportHeight / (2f * zoom) + cameraY,\n\t\t\t\t\tviewportHeight / (2f * zoom) + cameraY, -1, 1);\n\t\t}",
"@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n gl.glViewport(0, 0, width, height);\n // To prevent divide by zero\n float aspect = (float)width / height;\n // Set the viewport (display area) to cover the entire window.\n gl.glViewport(0, 0, width, height);\n // Setup perspective projection, with aspect ratio matches viewport\n // Select projection matrix.\n gl.glMatrixMode(GL10.GL_PROJECTION);\n // Reset projection matrix.\n gl.glLoadIdentity();\n // Use perspective projection.\n GLU.gluPerspective(gl, 70, aspect, 0.1f, 200.f);\n // Select model-view matrix.\n gl.glMatrixMode(GL10.GL_MODELVIEW);\n // Reset.\n gl.glLoadIdentity();\n }",
"private static void initGL() {\n glClearColor(152/255f, 175/255f, 199/255f, 0.0f);\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n GLU.gluPerspective(100.0f, (float)displayMode.getWidth()/(float)\n displayMode.getHeight(), 0.1f, 500);\n glMatrixMode(GL_MODELVIEW);\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\n glClearDepth(1.0f);\n glEnable(GL_DEPTH_TEST);\n glEnable(GL_TEXTURE_2D);\n glEnableClientState(GL_VERTEX_ARRAY);\n glEnableClientState(GL_COLOR_ARRAY);\n glEnableClientState(GL_TEXTURE_COORD_ARRAY);\n glEnable(GL_LIGHTING);\n glEnable(GL_LIGHT0);\n glEnable(GL_NORMALIZE);\n\n }",
"void setOffsetWorldRotation(DMatrix3C R);",
"void setRotation (DMatrix3C R);",
"public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}",
"private ProjectionConfig getProjectionConfig() {\n return (ProjectionConfig) getProjection();\n }",
"private void setup2DGraphics() {\n\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\t\tGL11.glOrtho(0, width, 0, height, 1, -1);\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}",
"public void inverse(Projection projection);",
"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 }",
"private static void setUniverse(double R) {\n StdDraw.setXscale((-R), (R));\n StdDraw.setYscale((-R), (R));\n }",
"public void init()\r\n {\r\n\t\t/* initialize the widget */\r\n\t\tint width = gl.getWidth();\r\n\t\tint height = gl.getHeight();\r\n\r\n\t\t// Initialize the rendering viewport size to OpenGL\r\n\t\tgl.viewport( 0, 0, width, height );\r\n\t\tgl.matrixMode( GL.PROJECTION );\t// Set up the camera mode\r\n\t\tgl.loadIdentity();\t\t\t\t\t// Reset the transformation matrix\r\n\t\tif (width <= height)\r\n\t\t\tgl.ortho (-50.0, 50.0, -50.0*(double)height/(double)width,\r\n\t\t\t\t 50.0*(double)height/(double)width, -1.0, 1.0);\r\n\t\telse\r\n\t\t\tgl.ortho (-50.0*(double)width/(double)height,\r\n\t\t\t 50.0*(double)width/(double)height, -50.0, 50.0, -1.0, 1.0);\r\n\t\tgl.matrixMode( GL.MODELVIEW );\t\t// Reset to model transforms\r\n }",
"public void perspProjMatrix(PerspInfo p) {\r\n\t\t// First calculate the aspect ratio\r\n\t\tfloat ar = (float)p.Width / (float)p.Height;\r\n\t\t// Calculate the z range\r\n\t\tfloat zRange = p.zNear - p.zFar;\r\n\t\t// Find tan of half the field of view\r\n\t\tfloat tanHalfFOV = (float) Math.tan(Math.toRadians(p.FOV / 2.0));\r\n\r\n\t\t// Finally create a matrix from these values\r\n\t\tm[0][0] = 1.0f/(tanHalfFOV * ar); m[0][1] = 0.0f; m[0][2] = 0.0f; \t\t\t\tm[0][3] = 0.0f;\r\n\t m[1][0] = 0.0f; m[1][1] = 1.0f/tanHalfFOV; m[1][2] = 0.0f; \t\t\t\tm[1][3] = 0.0f;\r\n\t m[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = (-p.zNear - p.zFar)/zRange ; \tm[2][3] = 2f * p.zFar * (p.zNear / zRange);\r\n\t m[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 1.0f; \t\t\t\t\t\t\tm[3][3] = 0.0f;\r\n\r\n\t}",
"LProjectionDecl LProjectionDecl(Token t, ProtoModList mods,\n\t\t\tLProtoHeader header, LProtoDef def, GProtoNameNode fullname,\n\t\t\tRoleNode self);",
"@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n\n float ratio = (float) width / height;\n\n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n\n }",
"public static void main(String[] args) {\n// Vector v1 = new Vector(new double[]{0, 0, 1});\n// Vector v2 = new Vector(new double[]{1, 0, 0});\n// System.out.println(v1.dot(v2));\n System.setProperty(\"sun.java2d.opengl\", \"true\");\n \n // Make World\n //WorldSpace world = new StreetWorldSpace();\n WorldSpace world = new TestWorldSpace();\n //WorldSpace world = new BigAssPolygonSpace();\n \n // Make Frame\n JFrame frame = new JFrame();\n \n // Get effective screen size\n Dimension screenSize = getScreenDimension(frame);\n\n // Set Camera View dimensions\n int width = 730;\n int height = width;\n \n // Make Camera\n Polygon[] polygons = world.getPolygons();\n Camera camera = new Camera(polygons, width, height, frame.getGraphicsConfiguration());\n image = camera.observe();\n \n // Make Camera Control Panel\n// int controlPanelHeight = 100;\n// CameraControlPanel cameraControlPanel = new CameraControlPanel(camera);\n// cameraControlPanel.setPreferredSize(new Dimension(width, controlPanelHeight));\n// cameraControlPanel.setBorder(BorderFactory.createCompoundBorder(new LineBorder(Color.BLACK, 2, false), new EmptyBorder(10, 10, 10, 10)));\n \n // Make Camera View Component\n CameraViewComponent cameraViewComponent = new CameraViewComponent(camera);\n cameraViewComponent.updateImage(image);\n cameraViewComponent.updateData(camera.getData());\n cameraViewComponent.setPreferredSize(new Dimension(width, height));\n\n // Make Camera Panel\n JPanel cameraPanel = new JPanel();\n cameraPanel.setLayout(new BoxLayout(cameraPanel, BoxLayout.Y_AXIS));\n cameraPanel.setPreferredSize(new Dimension(width, height));// + controlPanelHeight));\n cameraPanel.add(cameraViewComponent);\n //cameraPanel.add(cameraControlPanel);\n\n // Make Camera Data Panel\n //CameraDataPanel cameraDataPanel = new CameraDataPanel(camera);\n \n // Make Master Panel\n JPanel masterPanel = new JPanel();\n masterPanel.add(cameraPanel);\n //masterPanel.add(cameraDataPanel);\n \n frame.add(masterPanel);\n frame.pack();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n\n // Make keyboard listener\n KeyListener kl = new KeyListener();\n \n // Time\n int lastTenthOfASecond = 0;\n double lastMilliSecond = 0;\n double currentMilliSecond = System.currentTimeMillis();\n double averageFrameRate = 0;\n double currentFrameRate = 0;\n long totalTime = 0;\n long totalFrames = 0;\n \n // Redraw camera view upon keyboard input\n while(true) { \n int currentTenthOfASecond = (int)((currentMilliSecond%1000)/100);\n if (currentMilliSecond/100 > lastMilliSecond/100) {\n boolean cameraMoved = false;\n if (kl.isWPressed()) {\n camera.move(FORWARD); \n cameraMoved = true;\n }\n if (kl.isSPressed()) {\n camera.move(BACKWARD); \n cameraMoved = true;\n }\n if (kl.isAPressed()) {\n camera.move(LEFT); \n cameraMoved = true;\n }\n if (kl.isDPressed()) {\n camera.move(RIGHT); \n cameraMoved = true;\n }\n if (kl.isSpacePressed()) {\n camera.move(UP); \n cameraMoved = true;\n }\n if (kl.isShiftPressed()) {\n camera.move(DOWN); \n cameraMoved = true;\n }\n if (cameraViewComponent.wasUpdated()) {\n cameraMoved = true;\n }\n// if (cameraControlPanel.getWasCameraChanged() || cameraViewComponent.wasUpdated()) {\n// cameraMoved = true;\n// }\n if (cameraMoved) {\n image = camera.observe();\n cameraViewComponent.updateImage(image);\n //cameraDataPanel.update();\n //cameraControlPanel.update(); \n totalFrames++;\n totalTime += currentMilliSecond-lastMilliSecond + 1;\n averageFrameRate = (totalFrames)/(totalTime/1000.0); \n currentFrameRate = (1000.0/(currentMilliSecond-lastMilliSecond));\n \n }\n }\n if (currentTenthOfASecond > lastTenthOfASecond) {\n \n String[] cameraData = camera.getData();\n String[] frameData = {\n \"Average Framerate: \" + String.format(\"%.2f\", averageFrameRate), \n \"Current Framerate: \" + String.format(\"%.2f\",currentFrameRate)\n };\n String[] data = new String[cameraData.length + frameData.length ];\n System.arraycopy(cameraData, 0, data, 0, cameraData.length);\n System.arraycopy(frameData, 0, data, cameraData.length, frameData.length);\n cameraViewComponent.updateData(data);\n } \n lastTenthOfASecond = currentTenthOfASecond;\n lastMilliSecond = currentMilliSecond;\n currentMilliSecond = System.currentTimeMillis(); \n }\n }",
"void applyRotationMatrix() {\n for (int i = 0; i < coors.length; i++) {\n for (int j = 0; j < coors[i].length; j++) {\n newCoors[i][j] = coors[i][0] * R[j][0] + coors[i][1] * R[j][1] + coors[i][2] * R[j][2];\n }\n // add perspective\n float scale = map(Math.abs(newCoors[i][2]), 0, (float) (halfSize * Math.sqrt(3)), 1, 1.5f);\n if (newCoors[i][2] < 0) {\n scale = 2f - scale;\n }\n for (int j = 0; j < 2; j++) {\n newCoors[i][j] *= scale;\n }\n }\n // to R2\n // just dont use Z\n setPathAndAlpha();\n }",
"@Override\n public void init(GLAutoDrawable gld) {\n GL2 gl = gld.getGL().getGL2();\n glu = new GLU();\n\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n gl.glViewport(-500, -500, 500, 500);\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glLoadIdentity();\n glu.gluOrtho2D(-500, 500, -500, 500);\n }",
"public void apply() {\n\t\tglTranslated(0, 0, -centerDistance);\n\t\tglRotated(pitch, 1, 0, 0);\n\t\tglRotated(yaw, 0, 0, 1);\n\t\tglScaled(scale, scale, scale);\n\n\t\tglTranslated(-pos.get(0), -pos.get(1), -pos.get(2));\n\t}",
"public float[] getProjectionMatrix() {\n\t\treturn projectionMatrix;\n\t}",
"@Override\r\n\tpublic void init(GLAutoDrawable gld) {\r\n\t\tGL2 gl = gld.getGL().getGL2();\r\n\t\tglu = new GLU();\r\n\r\n\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\r\n\t\tgl.glViewport(-200, -200, 200, 200);\r\n\t\tgl.glMatrixMode(GL2.GL_PROJECTION);\r\n\t\tgl.glLoadIdentity();\r\n\t\tglu.gluOrtho2D(-250.0, 250.0, -250.0, 250.0);\r\n\t}",
"public void init(int width, int height) {\n try {\n Display.setDisplayMode(new DisplayMode(width, height));\n Display.create();\n } catch (LWJGLException ex) {\n System.exit(0);\n }\n\n GL11.glEnable(GL11.GL_TEXTURE_2D);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n GL11.glTexEnvf(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_MODULATE);\n GL11.glMatrixMode(GL11.GL_PROJECTION);\n GL11.glLoadIdentity();\n GL11.glOrtho(0, GameConstants.WINDOW_WIDTH, 0, GameConstants.WINDOW_HEIGHT, 1, -1);\n GL11.glMatrixMode(GL11.GL_MODELVIEW);\n }",
"@Override\r\n protected Matrix4f genViewMatrix() {\r\n\r\n // refreshes the position\r\n position = calcPosition();\r\n\r\n // calculate the camera's coordinate system\r\n Vector3f[] coordSys = genCoordSystem(position.subtract(center));\r\n Vector3f right, up, forward;\r\n forward = coordSys[0];\r\n right = coordSys[1];\r\n up = coordSys[2];\r\n\r\n // we move the world, not the camera\r\n Vector3f position = this.position.negate();\r\n\r\n return genViewMatrix(forward, right, up, position);\r\n }",
"public boolean generate(Projection proj) {\n proj.forward(llp1, pt1);\n proj.forward(llp2, pt2);\n int dx = pt2.x - pt1.x;\n int dy = pt2.y - pt1.y;\n at.setToTranslation(pt1.x, pt1.y);\n at.rotate(Math.atan2(dy, dx) - angle, 0, 0);\n double sc = Math.sqrt(dx * dx + dy * dy);\n badprojection = (Double.isNaN(sc) || sc / distance * proj.getScale() > 1000000);\n if (badprojection)\n Debug.message(\"e00\", \"badprojection \" + str);\n else {\n sc /= w;\n at.scale(sc, sc);\n }\n return true;\n }",
"public Projection(final String code) {\n this(code, DEFAULT_UNITS, DEFAULT_AXIS_ORIENTATION);\n }",
"private void setCameraView() {\n double bottomBoundary = mUserPosition.getLatitude() - .1;\n double leftBoundary = mUserPosition.getLongitude() - .1;\n double topBoundary = mUserPosition.getLatitude() + .1;\n double rightBoundary = mUserPosition.getLongitude() + .1;\n\n mMapBoundary = new LatLngBounds(\n new LatLng(bottomBoundary, leftBoundary),\n new LatLng(topBoundary, rightBoundary)\n );\n\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(mMapBoundary, 500,500,1));\n }",
"public void restoreCamera() {\r\n float mod=1f/10f;\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n p.frustum(-(width/2)*mod, (width/2)*mod,\r\n -(height/2)*mod, (height/2)*mod,\r\n cameraZ*mod, 10000);\r\n }",
"public void switchOr() {\n if (orientation == 1) {\n orientation = 0;\n }\n else {\n orientation = 1;\n }\n }",
"void setLandscape(boolean ls);",
"private void setDefaultMode(GlobalState gs) {\n center = gs.cnt;\n double diagonal = gs.vDist * cos(gs.phi);\n double z = sin(gs.phi) * gs.vDist;\n double x = diagonal * cos(gs.theta);\n double y = diagonal * sin(gs.theta);\n \n eye = new Vector(x, y, z);\n \n }",
"private void initGL() {\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(displayWidth, displayHeight));\n\t\t\tDisplay.setVSyncEnabled(true);\n\t\t\tDisplay.setTitle(\"Shooter\");\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t// init OpenGL\n\t\tglEnable(GL_TEXTURE_2D);\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\t// enable alpha blending\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tglViewport(0, 0, displayWidth, displayHeight);\n\t\t\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\t\tglOrtho(0, displayWidth, displayHeight, 0, 1, -1);\n\t\tglMatrixMode(GL_MODELVIEW);\n\t}",
"@Override\n\tpublic void reshape(GLAutoDrawable glDrawable, int x, int y, int width, int height) {\n\t\tGL2 gl = glDrawable.getGL().getGL2();\n\t\t\n\t\t// resize the ortho view\n\t\t\n\t\t// set the matrix mode to projection\n\t\tgl.glMatrixMode(GL2.GL_PROJECTION);\n\t\t// initialize the matrix\n\t\tgl.glLoadIdentity();\n\t\t// set the view to a 2D view\n\t\tgl.glOrtho(-width / 2.0, width / 2.0, -height / 2.0, height / 2.0, 0, 1);\n\t\t\n\t\t// switch to the model view matrix\n\t\tgl.glMatrixMode(GL2.GL_MODELVIEW);\n\t\t// initialize the matrix\n\t\tgl.glLoadIdentity();\n\t\t\n\t\t// set the size\n\t\tthis.size = new Dimension(width, height);\n\t}",
"public void setOrthoSnapListeners(List<OrthoSnapListener> orthoSnapListeners) {\r\n\t\tthis.orthoSnapListeners = orthoSnapListeners;\r\n\t}",
"@Override\n\t@Transactional\n\n\tpublic void initProjection() {\n\t\tdouble[] prices=new double[] {30,50,60,70,90,100};//\n\t\tvilleRepository.findAll().forEach(ville->{\n\t\tville.getCinemas().forEach(cinema->{\n\t\tcinema.getSalles().forEach(salle->{\n\t\tfilmRepository.findAll().forEach(film->{\n\t\tseanceRepository.findAll().forEach(seance->{\n\t\tProjection projection=new Projection();\n\t\tprojection.setDateProjection(new Date());\n\t\tprojection.setFilm(film);\n\t\tprojection.setPrix(prices[new Random().nextInt(prices.length)]);\n\t\tprojection.setSalle(salle);\n\t\tprojection.setSeance(seance);\n\t\tprojectionRepository.save(projection);\n\t\t});\n\t\t});\n\t\t});\n\t\t});\n\t\t});\n\t\t\n\t}",
"private void initOpenGL(){\n\t\tcaps = GL.createCapabilities();\n\t\tglViewport(0,0,WIDTH,HEIGHT);\n\t\tif(caps.OpenGL44)System.out.println(\"All OK\");\n\t\tglEnable(GL_DEPTH_TEST);\n\t\t//glPolygonMode(GL_BACK, GL_LINE);\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t}",
"QueryProjection<R> getProjection();",
"public void setupCamera() {\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n\r\n if(isTiling) {\r\n float mod=1f/10f;\r\n p.frustum(width*((float)tileX/(float)tileNum-.5f)*mod,\r\n width*((tileX+1)/(float)tileNum-.5f)*mod,\r\n height*((float)tileY/(float)tileNum-.5f)*mod,\r\n height*((tileY+1)/(float)tileNum-.5f)*mod,\r\n cameraZ*mod, 10000);\r\n }\r\n\r\n }",
"public Projection axisOrientation(String axisOrientation) {\n setAxisOrientation(axisOrientation);\n return this;\n }",
"protected void resetProjectionMatrixClipped()\n {\n synchronized (this)\n {\n myProjectionMatrixClipped = null;\n myProjectionMatrixClippedFarToCenter = null;\n }\n }",
"public ediedProj() throws SQLException {\n this.setExtendedState(JFrame.MAXIMIZED_BOTH);\n initComponents();\n getProj();\n pnumField.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\n \n }",
"public ToggleCameraMode() {\n requires(Robot.vision);\n }",
"private void updateCamera() {\n\t\tVector3f x = new Vector3f();\n\t\tVector3f y = new Vector3f();\n\t\tVector3f z = new Vector3f();\n\t\tVector3f temp = new Vector3f(this.mCenterOfProjection);\n\n\t\ttemp.sub(this.mLookAtPoint);\n\t\ttemp.normalize();\n\t\tz.set(temp);\n\n\t\ttemp.set(this.mUpVector);\n\t\ttemp.cross(temp, z);\n\t\ttemp.normalize();\n\t\tx.set(temp);\n\n\t\ty.cross(z, x);\n\n\t\tMatrix4f newMatrix = new Matrix4f();\n\t\tnewMatrix.setColumn(0, x.getX(), x.getY(), x.getZ(), 0);\n\t\tnewMatrix.setColumn(1, y.getX(), y.getY(), y.getZ(), 0);\n\t\tnewMatrix.setColumn(2, z.getX(), z.getY(), z.getZ(), 0);\n\t\tnewMatrix.setColumn(3, mCenterOfProjection.getX(),\n\t\t\t\tmCenterOfProjection.getY(), mCenterOfProjection.getZ(), 1);\n\t\ttry {\n\t\t\tnewMatrix.invert();\n\t\t\tthis.mCameraMatrix.set(newMatrix);\n\t\t} catch (SingularMatrixException exc) {\n\t\t\tLog.d(\"Camera\",\n\t\t\t\t\t\"SingularMatrixException on Matrix: \"\n\t\t\t\t\t\t\t+ newMatrix.toString());\n\t\t}\n\t}",
"@Override\n\tpublic void initCameraGlSurfaceView() {\n\t\t\n\t}"
] |
[
"0.64944535",
"0.6316785",
"0.6297543",
"0.60696197",
"0.6054994",
"0.598456",
"0.5893639",
"0.577188",
"0.56729823",
"0.5646991",
"0.5623348",
"0.56163496",
"0.56141853",
"0.5584916",
"0.55784714",
"0.5569652",
"0.55435765",
"0.53277355",
"0.53225666",
"0.52713954",
"0.52484876",
"0.52306354",
"0.52115107",
"0.5099408",
"0.5099408",
"0.5064664",
"0.50348383",
"0.49973014",
"0.49867493",
"0.4983578",
"0.49818686",
"0.49350184",
"0.49322125",
"0.49232504",
"0.4897223",
"0.48578778",
"0.48577487",
"0.48516846",
"0.48411041",
"0.48406792",
"0.48404637",
"0.48341155",
"0.48318422",
"0.48277023",
"0.482097",
"0.4820968",
"0.47975928",
"0.47907925",
"0.4786335",
"0.47781587",
"0.47631708",
"0.47471973",
"0.4745062",
"0.47435683",
"0.4739553",
"0.47203177",
"0.4714244",
"0.47120795",
"0.47014725",
"0.470123",
"0.46840972",
"0.46759397",
"0.46757418",
"0.46756095",
"0.4672714",
"0.46727097",
"0.46612507",
"0.46401387",
"0.46392068",
"0.46385646",
"0.46366146",
"0.46334413",
"0.46312538",
"0.46307182",
"0.4619653",
"0.46050748",
"0.46010318",
"0.45889103",
"0.45881674",
"0.4574134",
"0.4568827",
"0.4563925",
"0.45471942",
"0.45360523",
"0.4532092",
"0.45194596",
"0.45179686",
"0.45166063",
"0.45139524",
"0.4499979",
"0.44976342",
"0.4494412",
"0.44938448",
"0.4488848",
"0.4486631",
"0.44850993",
"0.4448775",
"0.44460407",
"0.44395927",
"0.44336894"
] |
0.5357485
|
17
|
Draw each texture batch
|
public void endSpriteBatch() {
for (TextureBatch texBatch : drawOperationPassOrganiser.getPasses())
texBatch.draw();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void render(SpriteBatch batch){\n sprite.draw(batch);\r\n }",
"public abstract void render(SpriteBatch batch);",
"public void draw() {\r\n\r\n//\t\tif (textures.length > 1) {\r\n//\t\t\tfor (int i = 1; i < textures.length; i++) {\r\n\t\tif (textures.length > 1) {\r\n\t\t\tDrawQuadWithTexture(textures[0], x, y, width, height);\r\n\t\t\tDrawQuadWithRotatedTexture(textures[1], x, y, width, height, angle);\r\n\t\t} else {\r\n\t\t\tDrawQuadWithRotatedTexture(textures[0], x, y, width, height, angle);\r\n\t\t}\r\n\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n\t}",
"public void render(){\n spriteBatch.begin();\n drawEnemies();\n drawPlayer();\n drawBullets();\n spriteBatch.end();\n if(debug){\n drawDebug();\n }\n }",
"public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}",
"private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }",
"@Override\n public void draw(Batch batch) {\n batch.draw(sprite.getTexture(),\n this.position.x * Game.UNIT_SCALE,\n this.position.y * Game.UNIT_SCALE,\n sprite.getWidth() / 2 * Game.UNIT_SCALE,\n sprite.getHeight() / 2 * Game.UNIT_SCALE,\n this.sprite.getWidth() * Game.UNIT_SCALE,\n this.sprite.getHeight() * Game.UNIT_SCALE,\n 1.0f,\n 1.0f,\n 0,\n sprite.getRegionX(),\n sprite.getRegionY(),\n sprite.getRegionWidth(),\n sprite.getRegionHeight(),\n isFlipped, false\n );\n\n if (Game.getDebugMode()) {\n batch.draw(debug.getTexture(),\n this.position.x * Game.UNIT_SCALE,\n this.position.y * Game.UNIT_SCALE,\n aabb.getWidth() / 2 * Game.UNIT_SCALE,\n aabb.getHeight() / 2 * Game.UNIT_SCALE,\n this.aabb.getWidth() * Game.UNIT_SCALE,\n this.aabb.getHeight() * Game.UNIT_SCALE,\n 1.0f,\n 1.0f,\n 0,\n sprite.getRegionX(),\n sprite.getRegionY(),\n sprite.getRegionWidth(),\n sprite.getRegionHeight(),\n isFlipped, false\n );\n }\n }",
"public void render(SpriteBatch batch){\n Utils.drawTextureRegion(batch, region ,position.x,position.y-1, 1.0F);\n }",
"public void render (SpriteBatch batch){\n \tif(collected) return;\n \t\n \tTextureRegion reg = null; //init reg var\n \treg = (TextureRegion) animation.getKeyFrame(stateTime,true); //set reg var\n \tbatch.draw(reg.getTexture(), position.x, position.y,\n \t\t\torigin.x, origin.y, dimension.x, dimension.y, scale.x, scale.y,\n \t\t\trotation, reg.getRegionX(), reg.getRegionY(),\n \t\t\treg.getRegionWidth(), reg.getRegionHeight(), false, false);\n }",
"public void draw(Batcher batch) {\n sprite.draw(pos, batch, facing);\n }",
"public void draw(SpriteBatch batch){\n this.draw(null,batch,false);\n }",
"public void render(SpriteBatch batch){\n\n if(isInGame()) {\n draw(batch);\n }\n }",
"public abstract void render(SpriteBatch spriteBatch);",
"public void draw(GL2 gl, GLUT glut, Texture[] textures) {\n\t\t\r\n\t\tfor(int i = -10; i < 10; i++) {\r\n\t\t\tgl.glEnable(GL2.GL_TEXTURE_2D);\r\n\t\t\tgl.glBegin(GL2.GL_QUADS);\r\n\t\t\tgl.glColor3d(1, 1, 1);\r\n\t\t\t\r\n\t\t\ttextures[0].bind(gl);\r\n\t\t\ttextures[0].setTexParameterf(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_REPEAT);\r\n\t\t\ttextures[0].setTexParameterf(gl, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);\r\n\t\t\ttextures[0].setTexParameterf(gl, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);\r\n\t\t\ttextures[0].setTexParameterf(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_REPEAT);\r\n\t\t\t\r\n\t\t\tfor(int j = -10; j < 10; j++) {\r\n\t\t\t\tgl.glTexCoord2d(0, 0);\r\n\t\t\t\tgl.glVertex3d(i, y, j);\r\n\t\t\t\tgl.glTexCoord2d(1, 0);\r\n\t\t\t\tgl.glVertex3d(i + 1, y, j);\r\n\t\t\t\tgl.glTexCoord2d(1, 1);\r\n\t\t\t\tgl.glVertex3d(i + 1, y, j + 1);\r\n\t\t\t\tgl.glTexCoord2d(0, 1);\r\n\t\t\t\tgl.glVertex3d(i, y, j + 1);\r\n\t\t\t}\r\n\t\t\tgl.glEnd();\r\n\t\t}\r\n\t\t\r\n\t\tgl.glDisable(GL2.GL_TEXTURE_2D);\r\n\t}",
"@Override\n\tpublic void draw(Batch batch, float alpha) {\n\n\t\tbatch.draw(textureRegion, getX(), getY(), this.getOriginX(),\n\t\t\t\tthis.getOriginY(), this.getWidth(), this.getHeight(),\n\t\t\t\tthis.getScaleX(), this.getScaleY(), this.getRotation());\n\t}",
"public void render(SpriteBatch batch, Vector2 relPos) {\n batch.begin();\n for (int i = 0; i < ((3 * Gdx.graphics.getHeight()) / this.img.getHeight()); i++) {\n batch.draw(this.img,\n (this.pos.x - this.size.x / 2),\n (this.pos.y - relPos.y) % this.img.getHeight() + (i * this.img.getHeight()));\n }\n batch.end();\n }",
"@Override\n\tpublic void render(SpriteBatch batch) {\n\t}",
"public void render(SpriteBatch batch){\n\t\tmontagne.render(batch);\r\n\t\tnuvole.render(batch);\r\n\t\t\r\n\t\t//disegniamo tutti gli oggetti di gioco\r\n\t\tfor(MonetaDOro m:monete){\r\n\t\t\tm.render(batch);\r\n\t\t}\r\n\t\tfor(MonetaBlu m:moneteBlu){\r\n\t\t\tm.render(batch);\r\n\t\t}\t\t\r\n\t\tfor(Stella s:stelle){\r\n\t\t\ts.render(batch);\r\n\t\t}\r\n\t\tfor(Calamita c : calamite){\r\n\t\t\tc.render(batch);\r\n\t\t}\t\t\r\n\t\tfor(Scudo s : scudi){\r\n\t\t\ts.render(batch);\r\n\t\t}\t\r\n\t\tfor(Bomba b : bombe){\r\n\t\t\tb.render(batch);\r\n\t\t}\r\n\t\tfor(Nemico n:nemici){\r\n\t\t\tn.render(batch);\r\n\t\t}\t\t\r\n\t\tmissile.render(batch);\r\n\t\tif(countdown>0){\r\n\t\t\tOggetti.getInstance().fonts.goFont.draw(batch, \"Go!\", 59, 25);\r\n\t\t}\r\n\t}",
"public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}",
"public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}",
"private void renderTex() {\n final float\n w = xdim(),\n h = ydim(),\n x = xpos(),\n y = ypos() ;\n GL11.glBegin(GL11.GL_QUADS) ;\n GL11.glTexCoord2f(0, 0) ;\n GL11.glVertex2f(x, y + (h / 2)) ;\n GL11.glTexCoord2f(0, 1) ;\n GL11.glVertex2f(x + (w / 2), y + h) ;\n GL11.glTexCoord2f(1, 1) ;\n GL11.glVertex2f(x + w, y + (h / 2)) ;\n GL11.glTexCoord2f(1, 0) ;\n GL11.glVertex2f(x + (w / 2), y) ;\n GL11.glEnd() ;\n }",
"public void render(float delta) {\n\t\tGdx.gl.glClearColor(0.95F, 0.95F, 0.95F, 0.95F);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tbatch.begin(); // here goes the drawing\n\n\t\tbatch.draw(Assets.sprite_sky,0,0);\n\t\tbatch.draw(sky.getImage(), sky.getBounds().x, sky.getBounds().y);\n\t\tbatch.draw(sky.getImage(), sky.getBounds().x, sky.getBounds().y);\n\t\t\n\t\tif (sky.getBounds().x < 0) {\n\t\t\tbatch.draw(sky.getImage(), sky.getBounds().x + 640,\n\t\t\t\t\tsky.getBounds().y);\n\t\t\tif (sky.getBounds().x < -640) {\n\t\t\t\tsky.getBounds().x = 0;\n\t\t\t}\n\t\t}\n\t\tbatch.draw(mountains.getImage(), mountains.getBounds().x,\n\t\t\t\tmountains.getBounds().y);\n\t\tif (mountains.getBounds().x < 0) {\n\t\t\tbatch.draw(mountains.getImage(), mountains.getBounds().x + 640,\n\t\t\t\t\tmountains.getBounds().y);\n\t\t\tif (mountains.getBounds().x < -640) {\n\t\t\t\tmountains.getBounds().x = 0;\n\t\t\t}\n\t\t}\n\t\tbatch.draw(trees.getImage(), trees.getBounds().x, trees.getBounds().y);\n\t\tif (trees.getBounds().x < 0) {\n\t\t\tbatch.draw(trees.getImage(), trees.getBounds().x + 640,\n\t\t\t\t\ttrees.getBounds().y);\n\t\t\tif (trees.getBounds().x < -640) {\n\t\t\t\ttrees.getBounds().x = 0;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tbatch.draw(w.getImage(), w.getBounds().x, w.getBounds().y);\n\t\t}\n\n\t\t//Don't draw checkPoints since they are invisible!\n\t\t\n\t\t/*\n\t\t * for(int i = 0; i < checkPoints.size(); i++){ CheckPoint c =\n\t\t * checkPoints.get(i); //this code for drawing the score-adding\n\t\t * checkpoints batch.draw(c.getImage(),c.getBounds().x,c.getBounds().y);\n\t\t * }\n\t\t */\n\n\t\tfor (int i = 0; i < ground.size(); i++) {\n\t\t\tGround g = ground.get(i);\n\t\t\tbatch.draw(g.getImage(), g.getBounds().x, g.getBounds().y);\n\t\t}\n\n\t\tbatch.draw(player.getImage(), player.getBounds().x,\n\t\t\t\tplayer.getBounds().y, 16, 16, 32, 32, 1, 1,\n\t\t\t\tplayer.getAngle() * 5);\n\n\t\tfont.draw(batch, (\"Score: \" + score), 8, 40); // 8, 40\n\t\tfont.draw(batch, (\"High Score: \" + highScore), 280, 40); // 280,40\n\t\t\n\t\t if(!started){font.draw(batch,(\"Press 'Space'\"), 64, 148);}\n\n\t\tif (quitting) { // if quitting halt loop\n\t\t\tbigFont.draw(batch, (\"Really Quit?\"), 184, 232); // 184. 232\n\t\t\tfont.draw(batch, (\"Yes\"), 240, 280); // 240, 280\n\t\t\tfont.draw(batch, (\"No\"), 348, 280); // 348, 280\n\t\t\tif (yes) {\n\t\t\t\tfont.draw(batch, (\"-\"), 224, 280);\n\t\t\t} else {\n\t\t\t\tfont.draw(batch, (\"-\"), 332, 280);\n\t\t\t} // 224,280 && 332, 280\n\t\t} else if (paused) { // if paused halt loop\n\t\t\t\tbigFont.draw(batch, (\"Paused\"), 248, 248); // 248, 248\n\t\t\t}\n\t\t\n\t\tbatch.end();\t\n\t}",
"@Override\n public void draw(SpriteBatch batch) {\n sprite.draw(batch);\n }",
"public void render() {\r\n\t\t\r\n\t\tif (page >= 0 && page < pages.length) {\r\n\t\t\tTextures.renderQuad(pages[page][(updates / 90) % pages[page].length], 32, 32, 1024, 512);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void render() {\n\t\tupdate();\n\n\t\tGdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); // clear the screen\n\t\tbatch.begin();\n\n\t\tTextureRegion tmpRegion = null;\n\t\t\n\t\t// Draw the terrain!\n\t\tfor (int x = 0; x < 30; ++x) {\n\t\t\tfor (int y = 0; y < 20; ++y) {\n\t\t\t\ttmpRegion = new TextureRegion( tileset32Texture, (tiles[x][y] - 4) * 32, 0, 32, 32);\n\t\t\t\t//pause_button_region = new TextureRegion( spriteSheet, tiles[x][y] - 4, 0, 32, 32);\n\t\t\t\t// switch to 32x32 sprite\n\t\t\t\t//batch.draw(spriteSheet, x * 16, y * 16, tiles[x][y] * 16, 0, 16, 16);\n\t\t\t\tbatch.draw(tmpRegion, x * SQUARE_WIDTH, y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH);\n\n\t\t\t\t// Temporary, copy pasta\n\t\t\t\t/*\n\t\t\t\t * switch( movementDirs[x][y] ) { case 'N': batch.draw(\n\t\t\t\t * spriteSheet, x*16, y*16, 11*16, 0, 16, 16 ); break; case 'E':\n\t\t\t\t * batch.draw( spriteSheet, x*16, y*16, 12*16, 0, 16, 16 );\n\t\t\t\t * break; case 'W': batch.draw( spriteSheet, x*16, y*16, 13*16,\n\t\t\t\t * 0, 16, 16 ); break; case 'S': batch.draw( spriteSheet, x*16,\n\t\t\t\t * y*16, 14*16, 0, 16, 16 ); break; }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t// Draw the towers\n\t\tfor( int i = 0; i < towers.size(); ++i )\n\t\t{\n\t\t\tbatch.draw(towers.get(i).m_type.getTextureRegion(), towers.get(i).m_x * SQUARE_WIDTH, (towers.get(i).m_y) * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t//drawSprite(towers.get( i ).getIconNum(), towers.get(i).m_x, towers.get(i).m_y);\n\t\t\tif (towers.get(i).selected) {\n\t\t\t\t//batch.draw(spriteSheet, towers.get(i).m_x * SQUARE_WIDTH, towers.get(i).m_y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, towers.get(i).m_type.getSpriteLocX(), towers.get(i).m_type.getSpriteLocY(), 16, 16, false, true);\n\t\t\t\t//drawSprite(towers.get( i ).getIconNum(), towers.get(i).m_x, towers.get(i).m_y);\n\t\t\t\tbatch.draw(selectionImg, towers.get(i).m_x * SQUARE_WIDTH, towers.get(i).m_y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 0, 32, 32, false, true);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\n\t\t// Draw the creeps!\n\t\tfor( int i = 0; i < creeps.size(); ++i)\n\t\t{\n\n\t\t\tif( creeps.get(i).active ) {\n\t\t\t\tTextureRegion toUse = null;\n\t\t\t\t//TextureRegion toUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\tif (creeps.get(i).m_type == CreepType.GLOBAL_CORP) {\n\t\t\t\t\ttoUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\t} else if (creeps.get(i).m_type == CreepType.SEARCHER) {\n\t\t\t\t\ttoUse = new TextureRegion(defconZeplinTexture);\n\t\t\t\t} else if (creeps.get(i).m_type == CreepType.GOVERNMENT) {\n\t\t\t\t\ttoUse = new TextureRegion(govHeliTexture);\n\t\t\t\t} else {\n\t\t\t\t\t// TODO: Change this to difference art.\n\t\t\t\t\ttoUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\t}\n\t\t\t\tbatch.draw(toUse, creeps.get(i).x * SQUARE_WIDTH + creeps.get(i).xOffset, creeps.get(i).y * SQUARE_WIDTH + creeps.get(i).yOffset, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t\t//batch.draw(toUse, creeps.get(i).x * SQUARE_WIDTH + creeps.get(i).xOffset, creeps.get(i).y * SQUARE_WIDTH + creeps.get(i).yOffset, SQUARE_WIDTH, SQUARE_WIDTH, 0, 32, 32, 32, false, false);\n\t\t\t}\n\t\t}\n\n\t\t// Draw the projectiles!\n\t\tfor( int i = 0; i < maxProjectiles; ++i )\n\t\t{\n\t\t\tif( projectiles[i].active )\n\t\t\t{\n//\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 16*3, 16, 16, false, false);\n\t\t\t\tif (projectiles[i].towertype == \"judge\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 16*3, 16, 16, false, false);\n\t\t\t\t} else if (projectiles[i].towertype == \"teacher\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 16, 16*3, 16, 16, false, false);\n\t\t\t\t} else if (projectiles[i].towertype == \"lawyer\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 32, 16*3, 16, 16, false, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Draw the UI!\n\n\t\t// Background\n\n\t\tbatch.draw(blackBox, 0, 0, uiPanelWidth , screenHeight);\n\n\t\t// Draw the menu bar\n\t\tbatch.draw(menuTexture,-4,-190);\n\t\t//batch.draw(menu_region, 0, -100);\n\t\t\n\t\t// Draw the free towers.\n\t\t\n\t\tfor (int i = 1; i <= 3; i++) \n\t\t{\n\t\t\tif (free_towers.get(i-1) != null) \n\t\t\t{\n\t\t\t\t//tower_region.setRegion( free_towers.get(i-1).getSpriteLocX(), free_towers.get(i-1).getSpriteLocY(), 16, 16 );\n\t\t\t\tbatch.draw(free_towers.get(i-1).getTextureRegion(), 29, (screenHeight - 60 * i) + 5, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t\t//batch.draw(tower_region, 33, screenHeight - 57 * i, 16, 16);\n\t\t\t\t\n\t\t\t\tString towerPrice = \"$\" + free_towers.get(i-1).getPrice();\n\t\t\t\tTextBounds priceBounds = mFont.getBounds(towerPrice);\n\t\t\t\tColor oldColor = mFont.getColor();\n\t\t\t\tmFont.setColor(Color.GREEN);\n\t\t\t\tmFont.drawWrapped(batch, towerPrice, 10, 33 + screenHeight - 58*i + priceBounds.height, priceBounds.width);\n\t\t\t\tmFont.setColor(oldColor);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t// Keep the GC in its cage as long as possible. \n\t\tif( oldMoney != money || oldLife != life )\n\t\t{\n\t\t\tuiString = \"+: \" + life + '\\n' + \"$: \" + money;\n\t\t\tuiBounds = mFont.getMultiLineBounds(uiString);\n\t\t}\n\t\toldMoney = money;\n\t\toldLife = life;\n\t\t\t\t\n\t\t// Draw droid pause button if on an android device.\n\t\tif (runningDrd) {\n\t\t\t\n\t\t\tpause_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(pause_button_region, DRD_PAUSE_RECT.x, DRD_PAUSE_RECT.y, DRD_PAUSE_RECT.width, DRD_PAUSE_RECT.height);\n\t\t\t\n\t\t\tString pause_button_string = \"Pause\";\n\t\t\tTextBounds pauseButtonBounds = mFont.getBounds(pause_button_string);\n\t\t\tmFont.drawWrapped(batch, pause_button_string,\n\t\t\t\t\t\t\t(32 - (pauseButtonBounds.width / 2)),\n\t\t\t\t\t\t\tDRD_PAUSE_RECT.y + pauseButtonBounds.height + 4, pauseButtonBounds.width);\n\t\t}\n\t\t\n\t\t// Draw the restart button if paused or game over.\n\t\tif (life <= 0 || isPaused) {\n\t\t\t\n\t\t\trestart_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(restart_button_region, RESTART_RECT.x, RESTART_RECT.y, RESTART_RECT.width, RESTART_RECT.height);\n\t\t\t\n\t\t\tString restart_button_string = \"Restart\";\n\t\t\tTextBounds restartButtonBounds = mFont.getBounds(restart_button_string);\n\t\t\tmFont.drawWrapped(batch, restart_button_string,\n\t\t\t\t\t\t\t(32 - (restartButtonBounds.width / 2)),\n\t\t\t\t\t\t\tRESTART_RECT.y + restartButtonBounds.height + 4, restartButtonBounds.width);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Draw the start button if we are in build mode.\n\t\tif (buildMode) {\n\t\t\t\n\t\t\tstart_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(start_button_region, START_RECT.x, START_RECT.y, START_RECT.width, START_RECT.height);\n\t\t\t\n\t\t\tString start_button_string = \"Start\";\n\t\t\tTextBounds startButtonBounds = mFont.getBounds(start_button_string);\n\t\t\tmFont.drawWrapped(batch, start_button_string,\n\t\t\t\t\t\t\t(32 - (startButtonBounds.width / 2)),\n\t\t\t\t\t\t\tSTART_RECT.y + startButtonBounds.height + 4, startButtonBounds.width);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Draw the sell button if we are not paused or in build mode and a tower is selected.\n\t\tif (!isPaused && !buildMode && selected != null) {\n\t\t\t\n\t\t\tsell_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(sell_button_region, SELL_RECT.x, SELL_RECT.y, SELL_RECT.width, SELL_RECT.height);\n\t\t\t\n\t\t\tString sell_button_string = \"Sell\";\n\t\t\tTextBounds sellButtonBounds = mFont.getBounds(sell_button_string);\n\t\t\tmFont.drawWrapped(batch, sell_button_string,\n\t\t\t\t\t\t\t(32 - (sellButtonBounds.width / 2)),\n\t\t\t\t\t\t\tSTART_RECT.y + sellButtonBounds.height + 4, sellButtonBounds.width);\n\t\t}\n\t\t\n\t\t// Text\n\t\tString uiString = \"+ \" + life + '\\n' + \"$ \" + money;\n\t\tTextBounds uiBounds = mFont.getMultiLineBounds(uiString);\n\t\tColor oldColor = mFont.getColor();\n\t\tmFont.setColor(Color.RED);\n\t\tmFont.drawWrapped(batch, uiString, 3, uiBounds.height + 3, uiBounds.width);\n\t\tmFont.setColor(oldColor);\n\n\t\t// DEBUG TEXT\n\t\t//mFont.drawWrapped(batch, debugtext, 60, uiBounds.height + 3, 1000);\t\t\n\n\t\t// Draw the cursorTexture\n\t\tif (cursorState != null && cursorTexture != null) {\n\t\t\tbatch.draw(cursorTexture, cursorLocX - 8, screenHeight - cursorLocY - 8);\n\t\t}\n\t\t\n\t\t// Render Paused String if needed in bottom right corner.\n\t\tString center_string = null;\n\t\tif (isPaused) {\n\t\t\tcenter_string = \"PAUSED\";\n\t\t} else if (life <= 0) {\n\t\t\tcenter_string = \"GAME OVER\";\n\t\t}\n\t\t\n\t\tif (center_string != null) {\n\t\t\tTextBounds pausedBounds = mFont.getMultiLineBounds(center_string);\n\t\t\tColor oldColor2 = mFont.getColor();\n\t\t\tmFont.setColor(Color.RED);\n\t\t\tmFont.drawWrapped(batch, center_string,\n\t\t\t\t\t(screenWidth / 2) - (pausedBounds.width / 2),\n\t\t\t\t\t(screenHeight / 2) - (pausedBounds.height / 2), pausedBounds.width );\n\t\t\tmFont.setColor(oldColor2);\n\t\t}\n\t\t\n\t\tbatch.end();\n\t}",
"public void draw(Batch batch) {\n\n //System.out.format(\"currentFrame: %d%n\", currentFrame);\n //System.out.format(\"x: %f y: %f z: %f%n\", position.x, position.y, position.z);\n\n int scrx = (int) this.position.x;\n int scry = (int) this.position.y;\n int shadx = scrx + (int) (this.position.z / 2);\n int shady = scry + (int) (this.position.z / 2);\n\n this.currentFrame = shadx - scrx;\n if (this.currentFrame < 4) {\n //low ball, shadow contained in sprite\n scry += this.position.z / 2;\n if (this.currentFrame >= 0 && this.currentFrame < 8) {\n batch.draw(this.frames[0][this.currentFrame], scrx - SPRITE_WIDTH / 2, scry - SPRITE_HEIGHT / 2);\n }\n } else {\n //draw the shadow\n int shadowFrame = 8;\n batch.draw(this.frames[0][shadowFrame], shadx - SPRITE_WIDTH / 2, shady - SPRITE_HEIGHT / 2);\n //draw the ball\n scry += (this.position.z / 2);\n this.currentFrame = (int) Math.min(3, this.position.z / 32);\n int ballFrame = this.currentFrame + 4;\n batch.draw(this.frames[0][ballFrame], scrx - SPRITE_WIDTH / 2, scry - SPRITE_HEIGHT / 2);\n }\n }",
"public abstract void Draw(SpriteBatch spriteBatch);",
"public void render(SpriteBatch batch) {\n\t\tsuper.render(batch);\n\t\t//cam.translate(x, y);\n\t\t//cam.update();\n\t}",
"public void draw(int texture){\n\t\tGLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);\n\t\tGLES20.glUseProgram(program);\n\t\tGLES20.glDisable(GLES20.GL_BLEND);\n\n\t\tint positionHandle = GLES20.glGetAttribLocation(program, \"aPosition\");\n\t\tint textureHandle = GLES20.glGetUniformLocation(program, \"uTexture\");\n\t\tint texturePositionHandle = GLES20.glGetAttribLocation(program, \"aTexPosition\");\n\n\t\tGLES20.glVertexAttribPointer(texturePositionHandle, 2, GLES20.GL_FLOAT, false, 0, textureBuffer);\n\t\tGLES20.glEnableVertexAttribArray(texturePositionHandle);\n\n\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture);\n\t\tGLES20.glUniform1i(textureHandle, 0);\n\n\t\tGLES20.glVertexAttribPointer(positionHandle, 2, GLES20.GL_FLOAT, false, 0, verticesBuffer);\n\t\tGLES20.glEnableVertexAttribArray(positionHandle);\n\n\t\tGLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);\n\t}",
"@Override\n\tpublic void draw(Batch batch) {\n\t\tbatch.draw(textureRegion, super.getPosition().x, super.getPosition().y);\n\t}",
"@Override\n public void draw(Batch batch, float alpha) {\n \t\n \t batch.draw(tr,this.getX(), this.getY(),this.getWidth(),this.getHeight());\n }",
"public void display(GLAutoDrawable drawable) {\t\n\t\n\tSystem.out.println(times++);\n\n\t\n\tfbo.attach(gl);\n\t\n\t\tclear(gl);\n\t\t\n\t\tgl.glColor4f(1.f, 1.f, 1.f, 1f);\n\t\tgl.glBegin(GL2.GL_QUADS);\n\t\t{\n\t\t gl.glVertex3f(0.0f, 0.0f, 1.0f);\n\t\t gl.glVertex3f(0.0f, 1.0f, 1.0f);\n\t\t gl.glVertex3f(1.0f, 1.0f, 1.0f);\n\t\t gl.glVertex3f(1.0f, 0.0f, 1.0f);\n\t\t}\n\t\tgl.glEnd();\n\t\t\n\t\tgl.glColor4f(1.f, 0.f, 0.f, 1f);\n\t\tgl.glBegin(GL2.GL_TRIANGLES);\n\t\t{\n\t\t gl.glVertex3f(0.0f, 0.0f, 1.0f);\n\t\t gl.glVertex3f(0.0f, 1.0f, 1.0f);\n\t\t gl.glVertex3f(1.0f, 1.0f, 1.0f);\n\t\t}\n\t\tgl.glEnd();\n\tfbo.detach(gl);\n\n \n\tclear(gl);\n\n \n gl.glColor4f(1.f, 1.f, 1.f, 1f);\n fbo.bind(gl);\n\t gl.glBegin(GL2.GL_QUADS);\n\t {\n\t gl.glTexCoord2f(0.0f, 0.0f);\n\t \tgl.glVertex3f(0.0f, 1.0f, 1.0f);\n\t gl.glTexCoord2f(1.0f, 0.0f);\n\t \tgl.glVertex3f(1.0f, 1.0f, 1.0f);\n\t gl.glTexCoord2f(1.0f, 1.0f);\n\t \tgl.glVertex3f(1.0f, 0.0f, 1.0f);\n\t gl.glTexCoord2f(0.0f, 1.0f);\n\t \tgl.glVertex3f(0.0f, 0.0f, 1.0f);\n\t }\n gl.glEnd();\n fbo.unbind(gl);\n}",
"public void draw(SpriteBatch batch) {\n\t\t// Draw the item slots.\n\t\tfor(ItemSlot slot : itemSlots) {\n\t\t\tslot.draw(batch, slotStartPositionX, slotStartPositionY, slot == this.getSelectedSlot());\n\t\t}\n\t}",
"public void render(float f) {\n update();\n\n long currentTime = System.currentTimeMillis();\n //Divide by a thousand to convert from milliseconds to seconds\n elapsedTime = (currentTime - lastTime) % 1000.0f;\n lastTime = currentTime;\n\n batch.begin();\n bg1.draw(batch, 1);\n bg2.draw(batch, 1);\n playerSprite.draw(batch);\n\n //Draws bullets if bullet array is holding bullet objects\n if (bullets.size() > 0) {\n for (Bullet bullet : bullets) {\n bullet.getSprite().draw(batch);\n }\n }\n\n //Draws worms if worm array is holding worm objects\n if (worms.size() > 0) {\n for (Worm worm : worms) {\n worm.getSprite().draw(batch);\n }\n }\n\n //Draws trojans if trojan array is holding trojan objects\n if (trojans.size() > 0) {\n if (bigTrojan == null) {\n for (Trojan trojan : trojans) {\n trojan.getSprite().draw(batch);\n }\n } else if (bigTrojan != null) {\n bigTrojan.getSprite().draw(batch);\n }\n }\n //Draws memLeaks if memLeak array is holding memLeak objects\n if (memLeaks.size() > 0) {\n for (MemoryLeak memLeak : memLeaks) {\n memLeak.getSprite().draw(batch);\n }\n }\n\n if (elissaArray.size() > 0) {\n for (Elissa elissa : elissaArray) {\n elissa.getSprite().draw(batch);\n }\n }\n\n //Draws ElissaFiles if elissaFiles array is holding files objects\n if (elissaFiles.size() > 0) {\n for (ElissaFiles file : elissaFiles) {\n file.getSprite().draw(batch);\n }\n }\n\n //Draws files if files array is holding files objects\n if (files.size() > 0) {\n for (Files file : files) {\n file.getSprite().draw(batch);\n }\n }\n\n //particle system\n particles.render(batch);\n\n switch (gameState) {\n case PLAYING:\n //Score\n scoreTxt = \"Score: \" + String.format(Locale.US, \"%06d\", score);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n //Health\n healthTxt = \"Health: \" + player.getHp();\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n //MOVEMENT\n isTouched = Gdx.input.isTouched();\n //Gdx.app.log(\"Playing: \", \"Is touched: \" + isTouched);\n playerMovement();\n pauseButton.draw(batch, 1);\n stage.draw();\n break;\n case PAUSED:\n //Fill in pause code\n if (settingsOn == false) {\n pauseScreenRender();\n } else if (settingsOn == true) {\n settingsScreenRender();\n }\n break;\n case GAMEOVER:\n countdown = ((System.currentTimeMillis() - startTime) / 1000);\n Gdx.app.log(\"Seconds Elapsed: \", \"\" + ((System.currentTimeMillis() - startTime) / 1000));\n overlay.draw(batch, 0.5f);\n font.draw(batch, txt, WIDTH / 2 - layout.width / 2, HEIGHT / 2 + layout.height / 2);\n if (countdown == 5) {\n gameState = GameState.PLAYING;\n Lvl1.musicBackground.dispose();\n game.setScreen(AntiVirus.levelSelectScreen);\n }\n break;\n case COMPLETE:\n completeScreenRender();\n break;\n }\n batch.end();\n }",
"@Override\n public void draw(SpriteBatch batch) {\n batch.draw(image, //texture region\n position.x - (width / 2f), position.y - (height / 2f), //position\n width / 2, height / 2, //origin of rotation\n width, height, //size of region\n 0.5f, 0.5f, //scaling\n rotation); //rotation\n }",
"public void draw()\n\t{\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, texture_id);\n\t\tdrawMesh(gl);\n\t}",
"public void render() {\r\n\t\t //Draw all of the sprites in the game\r\n\t background.draw(0,backgroudY1);\r\n\t\tbackground.draw(0,backgroudY2);\r\n\t\tbackground.draw(0,backgroudY3);\r\n\t\tbackground.draw(WIDTH/2,backgroudY1);\r\n\t\tbackground.draw(WIDTH/2,backgroudY2);\r\n\t background.draw(WIDTH/2,backgroudY3);\r\n\t \r\n\t // call this method from Player class, to draw the plane.\r\n\t player.render();\r\n\t \r\n\t \r\n\t // loop through every enemy, draw enemy if it's not killed\r\n\t for(int i=0; i<enemy.length; i++) {\r\n\t \t\r\n \tif(enemy[i] != null && enemyKilled[i] == true) {\r\n \t\t\r\n\t \t\t\r\n\t enemy[i].render();\r\n\t \r\n\t \t}\r\n\t \r\n\t }\r\n\t // loop through every laser, if it has not made contact with any enemy,\r\n\t // call its render method to draw it\r\n\t for (int i = 0; i < arr_size; i++) {\r\n\t \tif (lasers[i] != null && laserUsed[i] == true) {\r\n\t lasers[i].render();\r\n \t}\r\n\t \t\r\n\t }\r\n\t \r\n\t}",
"public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void render() {\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY);\n\t\tfloat posx = startxPos;\n\t\tint[] vboIds;\n\t\tfor(int i=0;i<nbWidth;i++) {\n//\t\t\tindexBuffer = cacheBands.getDataLocalIndex(i); // mapIndexBands[i]\n//\t\t\tindexBuffer.rewind();\n\t\t\tvboIds = cacheBands.getDataLocalIndex(i);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n\t\t\tgl.glVertexPointer(3, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n\t\t\tgl.glTexCoordPointer(2, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n\t\t\tgl.glNormalPointer(GL.GL_FLOAT, 0, 0);\n\n\t\t\t\n\t\t\tgl.glPushMatrix();\n\t\t\tgl.glTranslatef(posx, startyPos,0);\n\t\t\t//gl.glCallList(cacheBands.getDataLocalIndex(i));\n\t // gl.glDrawElements(GL2.GL_QUADS, indices.capacity(), GL.GL_UNSIGNED_SHORT, 0);\n\t gl.glDrawArrays(GL2.GL_QUADS, 0, vboIds[0]); \n\t\t\tgl.glPopMatrix();\n\t\t\tposx+=blockWidth;\n\t\t}\n\t\t// unbind vbo\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glDisableClientState(GL2.GL_VERTEX_ARRAY);\n\n\t}",
"public void draw(GL10 gl)\n\t{\t\n\t\t// bind the previously generated texture\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);\n\n\t\t// Point to our buffers\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\n\t\t// Point to our vertex buffer\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);\n\n\t\tvertexBuffer.put(vertices_long);\n\t\tvertexBuffer.position(0);\n\n\t\tgl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices_long.length / 3);\n\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[1]);\n\t\tvertexBuffer.put(vertices_lat);\n\t\tvertexBuffer.position(0);\n\t\tgl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices_lat.length / 3);\n\n\t\t// Disable the client state before leaving\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t}",
"public void drawMultiLine(SpriteBatch batch, String text, float x, float y);",
"void glGenTextures(int n, int[] textures, int offset);",
"private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }",
"public void render(SpriteBatch sb) {\n\n sb.draw(tex, x - width / 2, y - height / 2);\n\n }",
"@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}",
"public void draw(SpriteBatch batch, float parentAlpha)\n\t{\n\t\tbatch.draw(background, mapPosition.x, mapPosition.y, background.getRegionWidth(), background.getRegionHeight());\n\n\t\teIter = es.iterator();\n\t\twhile(eIter.hasNext())\n\t\t{\n\t\t\te = eIter.next();\n\t\t\t\n\t\t\tif(Math.abs(e.getPosition().x + e.getWidth()/2) <= worldSize.x/2 && Math.abs(e.getPosition().y + e.getHeight()/2) <= worldSize.y/2)\n\t\t\t{\n\t\t\t\tbatch.draw(enemyDot, ((e.getPosition().x + e.getWidth()/2 + worldSize.x/2)/scalex) + mapPosition.x - enemyDot.getRegionWidth()/2,\n\t\t\t\t\t\t((e.getPosition().y + e.getHeight()/2 + worldSize.y/2)/scaley) + mapPosition.y - enemyDot.getRegionHeight()/2,\n\t\t\t\t\t\tenemyDot.getRegionWidth(), enemyDot.getRegionHeight());\n\t\t\t}\n\t\t}\n\t\t\n\t\ttIter = ts.iterator();\n\t\twhile(tIter.hasNext())\n\t\t{\n\t\t\tt = tIter.next();\n\t\t\t\n\t\t\tif(Math.abs(t.getPosition().x) <= worldSize.x/2 && Math.abs(t.getPosition().y) <= worldSize.y/2)\n\t\t\t{\n\t\t\t\tbatch.draw(tokenDot, ((t.getPosition().x + t.getWidth()/2 + worldSize.x/2)/scalex) + mapPosition.x - tokenDot.getRegionWidth()/2, \n\t\t\t\t\t\t((t.getPosition().y + t.getHeight()/2 + worldSize.y/2)/scaley) + mapPosition.y - tokenDot.getRegionHeight()/2,\n\t\t\t\t\t\ttokenDot.getRegionWidth(), tokenDot.getRegionHeight());\n\t\t\t}\n\t\t}\n\t\t\n\t\tbatch.draw(planetDot, ((planet.getPosition().x + worldSize.x/2)/scalex) + mapPosition.x - planetDot.getRegionWidth()/2,\n\t\t((planet.getPosition().y + worldSize.y/2)/scaley) + mapPosition.y - planetDot.getRegionHeight()/2,\n\t\tplanetDot.getRegionWidth(), planetDot.getRegionHeight());\n\t\t\n\t\tbatch.draw(playerDot, ((player.getPosition().x + player.getWidth()/2 + worldSize.x/2)/scalex) + mapPosition.x - playerDot.getRegionWidth()/2,\n\t\t((player.getPosition().y +player.getHeight()/2 + worldSize.y/2)/scaley) + mapPosition.y - playerDot.getRegionHeight()/2,\n\t\tplayerDot.getRegionWidth(), playerDot.getRegionHeight());\n\t\t\n\t\tbatch.draw(border, mapPosition.x - ((border.getRegionWidth() - background.getRegionWidth())/2),\n\t\t\t\tmapPosition.y - ((border.getRegionHeight() - background.getRegionHeight())/2),\n\t\t\t\tborder.getRegionWidth(), border.getRegionHeight());\n\t}",
"public void render(float delta) {\n Gdx.gl.glClearColor(0.1f, 0.1f, 0.1f, 0.1f);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n camera.update();\n game.batch.setProjectionMatrix(camera.combined);\n game.batch.begin();\n\n stage.draw();\n game.batch.end();\n game.batch.begin();\n font12.draw(game.batch, \"2Pool4Skool\", 220, 465);\n game.batch.end();\n\n }",
"public void render(SpriteBatch batch) {\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(batch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(batch, Assets.patch);\n }\n }",
"@Override\n public void draw(float delta) {\n for (int i = 0; i < cameras.length; i++) {\n FrameBuffer fbo = fbos[i];\n OrthographicCamera cam = cameras[i];\n\n fbo.begin();\n\n Gdx.gl.glClearColor(30,30,30, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n mapRenderer.setView(cam);\n mapRenderer.render();\n\n sb.setProjectionMatrix(cam.combined);\n sb.begin();\n for (Entity e : entities) {\n e.draw(sb, delta);\n }\n sb.end();\n\n debugRenderer.render(world, cam.combined);\n fbo.end();\n }\n\n // render each frame buffer as a split-screen\n sb.setProjectionMatrix(identity);\n sb.begin();\n for (int i = 0; i < fbos.length; i++) {\n // TODO(slandow) make size variable to support different # of players\n sb.draw(\n fbos[i].getColorBufferTexture(),\n -1 + i, 1f, 2, -2\n );\n }\n sb.end();\n\n }",
"@Override\n public void draw(Batch batch, float parentAlpha) {\n super.draw(batch, parentAlpha);\n batch.draw(textureRegion, textureRegionBounds1.x, textureRegionBounds1.y, Constants.APP_WIDTH,\n Constants.APP_HEIGHT);\n batch.draw(textureRegion, textureRegionBounds2.x, textureRegionBounds2.y, Constants.APP_WIDTH,\n Constants.APP_HEIGHT);\n }",
"public void draw(SpriteBatch batch) {\n sprite.setCenter((float) getPosX(), (float) getPosY());\n sprite.draw(batch);\n }",
"public void draw(SpriteBatch batch) {\n// If there is no image (word button)\n if (texture == null) {\n\n// If any menu cursor...\n for (MenuCursor cursor : Main.cursors) {\n\n// Is over the button, change the colour to the \"selected\" version\n if (isCursorOver(cursor)) {\n layout.setText(Main.menuFont, string, selectedColor, 0, Align.center, false);\n break;\n\n// Is not over the button, change the colour to the \"unselected\" version\n } else {\n layout.setText(Main.menuFont, string, unselectedColor, 0, Align.center, false);\n }\n }\n\n// Draw the text\n Main.menuFont.draw(batch, layout, pos.x, pos.y);\n\n// If there is an image\n } else {\n\n// If there is no cursors\n if (Main.cursors.size() == 0) {\n\n// If previously selected draw regular texture\n if (prevSelect) {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n\n// Otherwise, draw the selected texture\n } else {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n }\n\n// If there is a cursor\n } else {\n\n// Cycle through all cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor is over the button, draw the selected texture\n if (isCursorOver(cursor)) {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n prevSelect = false;\n break;\n\n// Otherwise, draw the regular texture, previously selected is now true\n } else {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n prevSelect = true;\n }\n }\n }\n }\n }",
"private void drawImages() {\n\t\t\r\n\t}",
"@SideOnly(Side.CLIENT)\n public static void drawTexture_Items(int x, int y, IIcon icon, int width, int height, float zLevel)\n {\n for(int i = 0; i < width; i += 16)\n for(int j = 0; j < height; j += 16)\n drawScaledTexturedRect_Items(x + i, y + j, icon, Math.min(width - i, 16), Math.min(height - j, 16),zLevel);\n \n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n }",
"@Override\n public void render(GL2 gl)\n {\n if(useClearColor)\n {\n gl.glClearColor(color[0], color[1], color[2], color[3]);\n gl.glClear(GL.GL_COLOR_BUFFER_BIT);\n }\n\n // Texture stuff now, if we have one.\n if(stateChanged)\n {\n for(int i = 0; i < 6; i++)\n {\n synchronized(textureIdMap[i])\n {\n textureIdMap[i].clear();\n }\n }\n stateChanged = false;\n }\n\n\n gl.glEnable(GL.GL_TEXTURE_2D);\n gl.glActiveTexture(GL.GL_TEXTURE0);\n gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL.GL_REPLACE);\n\n for(int i = 0; i < 6; i++)\n renderGeom(gl, i);\n }",
"private void renderWorld(SpriteBatch batch)\n {\n worldController.cameraHelper.applyTo(camera);\n batch.setProjectionMatrix(camera.combined);\n batch.begin();\n worldController.level.render(batch);\n batch.end();\n }",
"private void drawWalls(){\n for(int i = 0 ; i < wallsArrayList.size(); i++){\n wallsArrayList.get(i).drawImage(buffer);\n }\n\n }",
"public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }",
"public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }",
"@Override\n public void render(float delta) {\n if(counter>1000) counter = 1;\n super.render(delta);\n myCamera.update();\n myCamera.setCamera(renderer, batch);\n batch.begin();\n backgroundSprite.draw(batch, calculateAlpha()/2);\n batch.end();\n drawCurve();\n drawFlights();\n drawFavouritesAndLegend();\n ab.render();\n clicked = false;\n counter++;\n }",
"public void draw(SpriteBatch spriteBatch) {\n if(isMoving) {\n\t\t\t//walkingParticleEffect.scaleEffect(walkingParticleEffectScale);\n walkingParticleEffect.draw(spriteBatch);\n }\n\n spriteBatch.setColor(1, colorValue, colorValue, 1);\n\n if(isMoving) {\n\t\t\tanimation.draw(spriteBatch, hitbox.getX()+xOffset, hitbox.getY()+yOffset, spriteWidth, spriteHeight);\n\t\t} else {\n\t\t\tanimation.drawStaticFrame(spriteBatch, hitbox.getX()+xOffset, hitbox.getY()+yOffset, spriteWidth, spriteHeight);\n\t\t}\n\n\t\tspriteBatch.setColor(1, 1, 1, 1);\n\n if(damaged) {\n \t//gettingHitParticleEffect.scaleEffect(gettingHitParticleEffectScale);\n gettingHitParticleEffect.draw(spriteBatch);\n }\n\n // Draw HP bar\n hpBar.draw(spriteBatch);\n\n /*\n // Debug draw enemie sprite hitbox\n hitboxSprite.draw(spriteBatch);\n\n // Debug draw enemie bullet hitboxes sprite\n for(Sprite bulletHitbox : bulletHitboxSpriteList) {\n \tbulletHitbox.draw(spriteBatch);\n\t\t}\n\n\t\tspriteBatch.draw(mapHitboxSprite, mapHitbox.getX(), mapHitbox.getY(), mapHitbox.getWidth(), mapHitbox.getHeight());\n\t\t*/\n }",
"public void draw(SpriteBatch batch) {\n \t// Highlight world boxes if a level is set.\n \tif(currentLevel != null) {\n \t\tfor(NBPBox worldBox : currentLevel.getActiveLevelWorld().getPhysicsWorld().getWorldBoxes()) {\n \t\t\tnbpBoxHighlighter.setX((worldBox.getX() * C.LAYOUT_MULTIPLIER) + currentLevel.getLevelCamera().getX());\n \t\t\tnbpBoxHighlighter.setY((worldBox.getY() * C.LAYOUT_MULTIPLIER) + currentLevel.getLevelCamera().getY());\n \t\t\tnbpBoxHighlighter.setSize(worldBox.getWidth() * C.LAYOUT_MULTIPLIER, worldBox.getHeight() * C.LAYOUT_MULTIPLIER);\n \t\t\tnbpBoxHighlighter.draw(batch);\n \t\t}\n \t}\n \tString details = \"\";\n \t// Add the game FPS.\n \tdetails += \"FPS : \" + Gdx.graphics.getFramesPerSecond() + \"\\n\";\n \t// Add the game screen dimensions.\n \tdetails += \"Display (width/height) : \" + Gdx.graphics.getWidth() + \"/\" + Gdx.graphics.getHeight() + \"\\n\";\n \t// Add level details if a level is set.\n \tif(currentLevel != null) {\n \t\tdetails += \"Level World Physics Objects : \" + currentLevel.getActiveLevelWorld().getPhysicsWorld().getWorldBoxes().size() + \"\\n\";\n \t}\n \t// Draw the actual details to the screen.\n \tfont.draw(batch, details, 5, Gdx.graphics.getHeight() - 5, Gdx.graphics.getWidth(), Align.left, true);\n }",
"private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }",
"@Override\n\tpublic void render() {\n\t\tgraphics.clearRect(0, 0, layerWidth, layerheight);\n\t\t\n\t\tfor(int i = 0, length = renderList.size(); i < length; i++) {\n\t\t\tSprite sprite = renderList.get(i);\n\t\t\trotateImage(sprite);\n\t\t\tgraphics.drawImage(sprite.getImage(), sprite.getX(), sprite.getY());\n\t\t}\n\t\t\n\t\ttimeDelay(3000);\n\t}",
"private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }",
"public void draw(GLState pGLState, Camera pCamera) {\n this.mTiledSpriteVertexBufferObject.draw(4, this.mCurrentTileIndex * 6, 6);\n }",
"public void draw() {\n\t\t/* Clear Screen */\n\t\tGdx.graphics.getGL20().glClearColor(1,1,1,0);\n\t\tGdx.graphics.getGL20().glClear( GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT );\n\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Sort the layer. */\n\t\t\tCollections.sort(layer, new DrawableComparator());\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tDrawable drawable = jter.next();\n\t\t\t\tif (drawable.isDead()) {\n\t\t\t\t\tjter.remove(); //Remove if dead.\n\t\t\t\t}//fi\n\t\t\t\telse {\n\t\t\t\t\tdrawable.draw(this, this.scalar); //Draw the drawable.\n\t\t\t\t}//else\n\t\t\t}//elihw\n\t\t}//elihw\n\t}",
"public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }",
"public void draw() {\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tif (particles[i] != null) {\r\n\t\t\t\tglBegin(GL_QUADS);\r\n\t\t\t\t{\r\n\t\t\t\t\tparticles[i].draw();\r\n\t\t\t\t}\r\n\t\t\t\tglEnd();\r\n\t\t\t}\r\n\t\t}\r\n\t\tglColor3f(1, 1, 1);\r\n\t}",
"@Override\n public void render(float delta) {\n // Iterate with a range-based loop\n for (IComponent comp : _affectedComponents.get(0).values()) {\n ((SpriteComponent) comp).draw(_spriteBatch);\n }\n }",
"@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0,0,0,1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n batch.begin();\n background.draw(batch);\n batch.end();\n\n renderer.setView(camera);\n renderer.render();\n\n }",
"public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}",
"public Render(SpriteBatch spriteBatch) {\n _spriteBatch = spriteBatch;\n }",
"private void draw(float deltaTime) \n\t{\n\t\t//Gets the tile sprites which represent the background.\n\t\tSprite[][] tiles = background.getTiles();\n\t\t\n\t\t//Cycles through each tile and renders it to the world camera.\n\t\tfor(int i = 0; i < tiles.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < tiles[i].length; j++)\n\t\t\t{\n\t\t\t\t//Draws the tile sprite using the SpriteBatch instance stored as a member variable of this class.\n\t\t\t\ttiles[i][j].draw(batcher);\n\t\t\t}\n\t\t}\n\t}",
"private void renderGuiExtraLive (SpriteBatch batch)\n\t{\n\t\t//float x = cameraGUI.viewportWidth - 50 -\n\t\t//\t\tConstants.LIVES_START * 50;\n\t\t//float y = -15;\n\t\t//for (int i = 0; i < Constants.LIVES_START; i++)\n\t\t//{\n\t\t//\tif (worldController.lives <= i)\n\t\t//\t\tbatch.setColor(0.5f, 0.5f, 0.5f, 0.5f);\n\t\t//\tbatch.draw(Assets.instance.bird.character, \n\t\t//\t\t\tx + i * 50, y, 50, 50, 120, 100, 0.35f, -0.35f, 0);\n\t\t//\tbatch.setColor(1, 1, 1, 1);\n\t\t//}\n\t\t\n\t\tfloat x = cameraGUI.viewportWidth - 50 -\n\t\t\t\t1 * 50;\n\t\tfloat y = -15;\n\t\tfor (int i = 0; i < 1; i++)//Constants.LIVES_START; i++)\n\t\t{\n\t\t\tif (worldController.lives <= i)\n\t\t\t\tbatch.setColor(0.5f, 0.5f, 0.5f, 0.5f);\n\t\t\tbatch.draw(Assets.instance.bird.character, \n\t\t\t\t\tx + i * 50, y, 50, 50, 120, 100, 0.35f, -0.35f, 0);\n\t\t\tbatch.setColor(1, 1, 1, 1);\n\t\t}\n\t\tif (worldController.lives>= 0 &&worldController.livesVisual>worldController.lives) \n\t\t{ \n\t\t\t\n\t\t\tint i = worldController.lives;\n\t\t float alphaColor = Math.max(0, worldController.livesVisual- worldController.lives - 0.5f);\n\t\t float alphaScale = 0.35f * (2 + worldController.lives - worldController.livesVisual) * 2;\n\t\t float alphaRotate = -45 * alphaColor;\n\t\t batch.setColor(1.0f, 0.7f, 0.7f, alphaColor);\n\t\t batch.draw(Assets.instance.bird.character, x + i * 50, y, 50, 50, 120, 100, alphaScale, -alphaScale,alphaRotate);\n\t\t batch.setColor(1, 1, 1, 1);\n\t\t }\n\t}",
"@Override\r\n\tpublic void draw(Batch batch)\r\n\t{\n\t\t\r\n\t\tif(m_texRegion.isFlipX() && m_rightDirection)\r\n\t\t\tm_texRegion.flip(true, false);\r\n\t\telse if(!m_texRegion.isFlipX() && !m_rightDirection)\r\n\t\t\tm_texRegion.flip(true, false);\r\n\r\n\t\tif(this.m_isInvulnerable)\r\n\t\t\tbatch.setColor(1,1,1,0.5f);\r\n\t\telse\r\n\t\t\tbatch.setColor(new Color(Color.WHITE));\r\n\r\n\t\tthis.updateTransform();\r\n\t\tbatch.draw(m_texRegion, this.getDimension().x, this.getDimension().y, this.getTransform());\r\n\r\n\t\tbatch.setColor(new Color(Color.WHITE));\r\n\r\n\r\n\t\tm_lifeBar.setLife((int) this.m_life);\r\n\t\tm_lifeBar.setPosition(this.getPosition().add(0, 64));\r\n\t\tm_lifeBar.draw(batch);\r\n\t\t\r\n\t}",
"@Override\n public void onAdd() {\n onRemove();\n \n // Generate a list of renderable images\n MapChunk[] chunks = generateChunks(generate());\n \n // Ensure the list is valid\n if(chunks == null) {\n return;\n }\n \n // Move the textures onto Rectangle shapes\n int chunkWidth = getChunkWidth();\n int chunkHeight = getChunkHeight();\n \n int rows = getHeightInChunks();\n int cols = getWidthInChunks();\n \n // Init our storage\n mTextures = new Texture[ rows * cols ];\n mShapes = new RectangleShape[ rows * cols ];\n \n // Iterate the whole map in chunks\n for(int x = 0; x < cols; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Get the chunk for this position\n MapChunk thisChunk = chunks[ (y * cols) + x ];\n \n if(thisChunk == null) {\n // Something went wrong. Undo.\n onRemove();\n return;\n }\n \n // Convert our image into a texture\n Texture t = new Texture();\n if(t == null || !t.loadFromImage(thisChunk.image)) {\n onRemove();\n return;\n }\n \n // Store the texture for removal later on\n mTextures[ (y * cols) + x ] = t;\n \n // Create a rectangle shape\n RectangleShape r = new RectangleShape( chunkWidth, chunkHeight );\n \n // Apply some settings\n r.setTexture(t);\n r.setPosition( x * chunkWidth, y * chunkHeight );\n \n // Add this shape to the renderer\n if(mRenderer.add(r) < 0) {\n onRemove();\n return;\n }\n \n // Store the shape\n mShapes[ (y * cols) + x ] = r;\n \n }\n }\n \n }",
"public static boolean render(int coordX, int coordY, int coordZ, int texture, Texture[] textureMap) {\r\n GL11.glTranslatef(coordX, coordY, coordZ); // Absolute position in game\r\n// GL11.glRotatef(xrot, 1.0f, 0.0f, 0.0f); // Rotate On The X Axis\r\n// GL11.glRotatef(yrot, 0.0f, 1.0f, 0.0f); // Rotate On The Y Axis\r\n// GL11.glRotatef(zrot, 0.0f, 0.0f, 1.0f); // Rotate On The Z Axis\r\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, textureMap[texture].getTextureID()); // Select Our Texture\r\n GL11.glBegin(GL11.GL_QUADS);\r\n // Front Face\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Left Of The Texture and Quad\r\n // Back Face\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Bottom Left Of The Texture and Quad\r\n // Top Face\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n // Bottom Face\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n // Right face\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n // Left Face\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glEnd();\r\n\r\n// xrot += 0.3f; // X Axis Rotation\r\n// yrot += 0.2f; // Y Axis Rotation\r\n// zrot += 0.4f; // Z Axis Rotation\r\n\r\n return true;\r\n }",
"@Override\r\n\tpublic void render(SpriteBatch batch) {\n\t\tif(Camera.getCameraX() - Specular.camera.viewportWidth / 2 * Camera.getZoom() - 100 < x &&\r\n\t\t\t\tCamera.getCameraX() + Specular.camera.viewportWidth / 2 * Camera.getZoom() + 100 > x &&\r\n\t\t\t\tCamera.getCameraY() - Specular.camera.viewportHeight / 2 * Camera.getZoom() - 100 < y &&\r\n\t\t\t\tCamera.getCameraY() + Specular.camera.viewportHeight / 2 * Camera.getZoom() + 100 > y) {\r\n\t\t\t\r\n\t\t\tfloat size = Math.min((lifetime / 50f) * (lifetime / 50f), 1);\r\n\t\t\tbatch.setColor(1, 1, 1, size);\r\n\t\t\tUtil.drawCentered(batch, tex, x, y, 0);\r\n\t\t\tbatch.setColor(1, 1, 1, 1);\r\n\t\t}\r\n\t}",
"public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }",
"public void drawEnemies(){\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy) e;\n if (enemy instanceof EnemyPistol) {\n spriteBatch.draw(enemyPistolTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyAwp){\n spriteBatch.draw(enemyAWPTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyStalker){\n spriteBatch.draw(enemyStalkerTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyBoss){\n spriteBatch.draw(enemyBossTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }\n }\n }",
"public void render(GraphicsContext aGraphicsContext) {\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n currEnemyFish.getSprite().render(aGraphicsContext);\n }\n }",
"public void drawAllOn(DrawSurface d) {\r\n for (Sprite s : sprites) {\r\n s.drawOn(d);\r\n }\r\n }",
"public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }",
"private void renderHook(){\n\t\thook.setPosition(world.hook.position.x, world.hook.position.y);\n\t\thook.setRotation(world.hook.rotation);\n\t\thook.draw(batch);\n\t}",
"static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }",
"private void drawScreen(Sprite spr) {\n\t\tTexture tex = spr.getTexture();\n\t\t\n\t\ttex.bind();\n\t\t\n\t\tglBegin(GL_QUADS);\n\t\t{\n\t\t\tglTexCoord2f(0, tex.getHeight());\n\t\t\tglVertex2f(0, spr.getHeight());\n\t\t\tglTexCoord2f(tex.getWidth(), tex.getHeight());\n\t\t\tglVertex2f(spr.getWidth(), spr.getHeight());\n\t\t\tglTexCoord2f(tex.getWidth(), 0);\n\t\t\tglVertex2f(spr.getWidth(), 0);\n\t\t\tglTexCoord2f(0, 0);\n\t\t\tglVertex2f(0, 0);\n\t\t}\n\t\tglEnd();\n\t}",
"private void bufferWorld() {\r\n\t\t//Draws to a PGraphics object must be surrounded with this...\r\n\t\tthis.backgroundBuffer.beginDraw();\r\n\t\t//Set a dark grey background\r\n\t\tthis.backgroundBuffer.background(50, 50, 50);\r\n\t\t//Iterate for each hexgon in the grid\r\n\t\tfor (int row = 0; row < this.numHexRow; row++) {\r\n\t\t\tfor (int col = 0; col < this.numHexCol; col++) {\r\n\t\t\tif (this.gridCells[row][col].getAnthill() == 1) {\r\n\t\t\t\t//If it is black anthill\r\n\t\t\t\tdrawImage(this.blackAnthillTile, row, col, 1);\r\n\t\t\t} else if (this.gridCells[row][col].getAnthill() == 2) { \r\n\t\t\t\t\t//If the cell is a red ant hill\r\n\t\t\t\t\tdrawImage(this.redAnthillTile, row, col, 1);\r\n\t\t\t\t} else if (this.gridCells[row][col].isRocky()) {\r\n\t\t\t\t\t//If it's rocky, randomly pick shade of grey\r\n\t\t\t\t\tint shade = this.random.nextInt(2);\r\n\t\t\t\t\tswitch (shade) {\r\n\t\t\t\t\t\tcase 0: this.backgroundBuffer.tint(LIGHT_ROCK_TINT);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1: this.backgroundBuffer.tint(NEUTRAL_ROCK_TINT);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2: this.backgroundBuffer.tint (DARK_ROCK_TINT);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdrawImage(this.rockTile, row, col, 1);\r\n\t\t\t\t\tthis.backgroundBuffer.tint(255); //Restore default no tint\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Otherwise it is a grass tile\r\n\t\t\t\t\tdrawImage(this.grassTile, row, col, 1); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.backgroundBuffer.endDraw();\r\n\t}",
"public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);",
"public void render() {\n // Every cell is an individual quad\n for (int x = 0; x < z.length-1; x++)\n {\n beginShape(QUAD_STRIP);\n for (int y = 0; y < z[x].length; y++)\n {\n // one quad at a time\n // each quad's color is determined by the height value at each vertex\n // (clean this part up)\n stroke(0xffff69b4);\n stroke(0xffbbbbbb);\n float currentElevation = z[x][y];\n float currentShade = map(currentElevation, -120, 120, 0, 255);\n // fill(currentShade, 255);\n noFill();\n float xCoordinate = x*scl-w/2;\n float yCoordinate = y*scl-h/2;\n vertex(xCoordinate, yCoordinate, z[x][y]);\n vertex(xCoordinate + scl, yCoordinate, z[x+1][y]);\n }\n endShape();\n }\n }",
"public void renderWorld (SpriteBatch batch)\n\t{\n\t\tworldController.cameraHelper.applyTo(camera);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tbatch.begin();\n\t\tworldController.level.render(batch);\n\t\tbatch.end();\n\t\t\n\t\tif (DEBUG_DRAW_BOX2D_WORLD)\n\t\t{\n\t\t\tb2debugRenderer.render(worldController.b2world, camera.combined);\n\t\t}\n\t}",
"public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }",
"public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }",
"private void drawsegment_texture8(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) { \n // Accurate texture mode added - comments stripped from dupe code, \n // see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode) {\n // see if the precomputation goes well, if so finish the setup\n if (precomputeAccurateTexturing()) { \n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n // if the matrix inversion screwed up, revert to normal rendering \n // (something is degenerate)\n accurateMode = false; \n }\n }\n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n \n int red = m_fill & 0xFF0000;\n int grn = m_fill & 0xFF00;\n int blu = m_fill & 0xFF;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n \n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode && goingIn) {\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU;\n iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else {\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n for ( ; xstart < xend; xstart++ ) {\n if (accurateMode) {\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else {\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n // try-catch just in case pixel offset it out of range\n try {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int al0;\n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = iu & 0xFFFF;\n al0 = m_texture[ofs] & 0xFF;\n int al1 = m_texture[ofs + 1] & 0xFF;\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int al2 = m_texture[ofs] & 0xFF;\n int al3 = m_texture[ofs + 1] & 0xFF;\n al0 = al0 + (((al1-al0) * iui) >> 16);\n al2 = al2 + (((al3-al2) * iui) >> 16);\n al0 = al0 + (((al2-al0) * (iv & 0xFFFF)) >> 16);\n } else {\n al0 = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)] & 0xFF;\n }\n \n int br = m_pixels[xstart];\n int bg = (br & 0xFF00);\n int bb = (br & 0xFF);\n br = (br & 0xFF0000);\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al0) >> 8)) & 0xFF0000) | \n ((bg + (((grn - bg) * al0) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al0) >> 8)) & 0xFF);\n // m_stencil[xstart] = p;\n }\n }\n catch (Exception e) {\n }\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n zleft+=zleftadd;\n }\n }",
"@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n batch.begin();\n bitMapFont.setColor(Color.YELLOW);\n //bitMapFont.setScale(0.5f, 2);\n if(!ControladorJuego.ganar){\n batch.draw(AssetsJuego.texturePuntuacionPerder,0, 0, 800, 600);\n }\n else\n batch.draw(AssetsJuego.texturePuntuacionGanar,0, 0, 800, 600);\n bitMapFont.draw(batch, sbuffer, 30 * Mundo.PROPORCION_REAL_MUNDO_ANCHO, 450 * Mundo.PROPORCION_REAL_MUNDO_ALTO);\n batch.end();\n\n\n }",
"private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}",
"@Override\r\n\tpublic void draw(Batch batch, float alpha) {\r\n\t\tbatch.setProjectionMatrix(camera.combined);\r\n\t\theroHealth.draw(batch);\r\n\t\tcover.draw(batch);\r\n\t}",
"private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n BufferedImage img = ImageIO.read(textureURL);\n ImageUtil.flipImageVertically(img);\n Texture temp = AWTTextureIO.newTexture(GLProfile.getDefault(), img, true);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);\n textures.put(i, temp);\n }\n } catch (IOException | GLException e) {\n e.printStackTrace();\n }\n });\n textures.get(0).enable(gl);\n }",
"public void renderStats(List<StatsTexture> statsTextures){\r\n\t\t\r\n\t\tstatsShader.startProgram();\r\n\t\tglBindVertexArray(statsFrame.getVertexArrayObjectID()); // bind arrays\r\n\t\tglEnableVertexAttribArray(0); // vertex attribs\r\n\t\tglEnable(GL_BLEND); // color blending\r\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\t// color mix func\r\n\t\tfor(StatsTexture statsTexture : statsTextures){\r\n\t\t\t// for every stat that needs to be rendered\r\n\t\t\t\r\n\t\t\tglActiveTexture(GL_TEXTURE0); // activate texture\r\n\t\t\tglBindTexture(GL_TEXTURE_2D, statsTexture.getTexture()); // get texture\r\n\t\t\tMatrix4f matrix = Maths.createTransformationMatrix(statsTexture.getPosition(), statsTexture.getScale());\r\n\t\t\tstatsShader.loadTransformation(matrix); // Transform object \r\n\t\t\tglDrawArrays(GL_TRIANGLE_STRIP, 0, statsFrame.getVertexNumberOf()); // Draw object\r\n\t\t}\r\n\t\tglDisable(GL_BLEND); // After rendering all, disable color blending\r\n\t\tglDisableVertexAttribArray(0); // Disable vertex array\r\n\t\tglBindVertexArray(0); // unbind arrays\r\n\t\tstatsShader.stopProgram(); // stop shader\r\n\t}",
"private void drawBG(Batch batch) {\n\t\tbackgroundSprite.setRegion(baybayinAnimation.getKeyFrame(animationCounter, true));\n\t}"
] |
[
"0.7161849",
"0.7160238",
"0.70633364",
"0.70594865",
"0.7038607",
"0.69779664",
"0.6927223",
"0.6921636",
"0.68812156",
"0.68021655",
"0.6694847",
"0.66741365",
"0.66707426",
"0.6662885",
"0.6633274",
"0.66279304",
"0.6573181",
"0.6521693",
"0.6461674",
"0.64540887",
"0.64539146",
"0.64108366",
"0.6376821",
"0.6364684",
"0.633697",
"0.6317103",
"0.6313875",
"0.63017994",
"0.62577754",
"0.62576205",
"0.62487584",
"0.62222403",
"0.619967",
"0.6182248",
"0.61797637",
"0.61758345",
"0.6160952",
"0.61518",
"0.6137398",
"0.6117747",
"0.609207",
"0.60754615",
"0.6063119",
"0.6056642",
"0.60474473",
"0.60392016",
"0.60357654",
"0.6022686",
"0.601236",
"0.5994096",
"0.59858185",
"0.59824127",
"0.5959471",
"0.59584665",
"0.5952645",
"0.5944289",
"0.5942775",
"0.5926186",
"0.5919588",
"0.5917605",
"0.5917577",
"0.5916305",
"0.5905184",
"0.5899057",
"0.58953726",
"0.589379",
"0.5892516",
"0.5889871",
"0.5853702",
"0.5850842",
"0.584055",
"0.5822565",
"0.58220255",
"0.5790728",
"0.579058",
"0.57889116",
"0.5776964",
"0.5776753",
"0.5770276",
"0.5763218",
"0.5760944",
"0.5739839",
"0.5734755",
"0.5718669",
"0.5713239",
"0.5711535",
"0.5710618",
"0.5704071",
"0.56990707",
"0.56957513",
"0.56804377",
"0.56793433",
"0.56733125",
"0.5670044",
"0.5658514",
"0.5650432",
"0.5642285",
"0.5635543",
"0.5629599",
"0.56274116"
] |
0.69815254
|
5
|
Convert lists to arrays
|
public void draw() {
float[] vertices = new float[mVertices.size()];
for (int i = 0; i < vertices.length; i++)
vertices[i] = mVertices.get(i);
float[] textureCoords = null;
if (mTextureID != 0) {
textureCoords = new float[mTextureCoords.size()];
for (int i = 0; i < textureCoords.length; i++)
textureCoords[i] = mTextureCoords.get(i);
}
short[] indices = new short[mIndices.size()];
for (int i = 0; i < indices.length; i++)
indices[i] = mIndices.get(i);
// Get OpenGL
GL10 gl = GameGraphics2D.this.mGL;
// Set render state
gl.glDisable(GL10.GL_LIGHTING);
gl.glEnable(GL10.GL_DEPTH_TEST);
gl.glEnable(GL10.GL_BLEND);
if (mBlendingMode == BLENDING_MODE.ALPHA)
gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
else if (mBlendingMode == BLENDING_MODE.ADDITIVE)
gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);
if (mTextureID != 0)
gl.glEnable(GL10.GL_TEXTURE_2D);
else
gl.glDisable(GL10.GL_TEXTURE_2D);
// Draw the batch of textured triangles
gl.glColor4f(Color.red(mColour) / 255.0f,
Color.green(mColour) / 255.0f,
Color.blue(mColour) / 255.0f,
Color.alpha(mColour) / 255.0f);
if (mTextureID != 0) {
gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));
}
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));
gl.glDrawElements(GL10.GL_TRIANGLES, indices.length,
GL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }",
"private static double[] toArray(ArrayList<Double> dbls) {\n double[] r = new double[dbls.size()];\n int i = 0;\n for( double d:dbls ) r[i++] = d;\n return r;\n }",
"public Object[] toArray(){\n\n \tObject[] o = new Object[list.size()];\n\n o = list.toArray();\n\n \treturn o;\n\n }",
"public Object[] toArray()\n\t{\n\t\treturn list.toArray();\n\t}",
"E[] toArray();",
"public static <T> T[] listToArray (Object list) {\n\tif (! (list instanceof Collection)) {\n\t\treturn (T[]) new Object[0];\n\t}\n\treturn (T[]) ((Collection) list).toArray();\n }",
"Object[] toArray();",
"Object[] toArray();",
"Object[] toArray();",
"public List<Integer> convert (List<int[]> list) {\r\n\r\n List<Integer> result = new ArrayList<>();\r\n for(int[] array : list) {\r\n for (int i = 0; i < array.length; i++) {\r\n result.add(array[i]);\r\n }\r\n }\r\n return result;\r\n }",
"private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}",
"public static ArrayList<Double> twoDArrToArrList(Double[][] dataSet) {\n List<Double> collection = Arrays.stream(dataSet) \n .flatMap(Arrays::stream)\n .collect(Collectors.toList());\n\n ArrayList<Double> arrList = new ArrayList<Double>(collection); \n return arrList; \n }",
"private static String[] listToArray(List<String> list){\n\t\tString[] arr = new String[list.size()];\n\t\tfor (int i = 0; i < list.size(); i++){\n\t\t\t\n\t\t\tarr[i] = list.get(i);\n\t\t}\n\t\t\n\t\treturn arr;\n\t}",
"T[] toArray(T[] a);",
"public COSArray toList() \n {\n return array;\n }",
"public static Edge[] listToArray(ArrayList<Edge> list){\n\t\t\tEdge[] EdgeAry = new Edge[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tEdgeAry[i] = list.get(i);\n\t\t\t}\n\t\t\treturn EdgeAry;\n\t\t}",
"int[] toArray();",
"public static List arrayCombine(Object... items){\n if (items == null){\n throw new IllegalArgumentException(\"Arguments cannot be null\");\n }\n\n List l = new ArrayList();\n\n for (Object item: items){\n if (item != null){\n if (item instanceof Object[]){\n Object[] entries = (Object[]) item;\n for (int i = 0; i < entries.length; i++){\n l.add(entries[i]);\n }\n }\n else{\n l.add(item);\n }\n }\n }\n return l;\n }",
"@SuppressWarnings( \"rawtypes\" )\n private XmlElement toXmlArray(List list)\n {\n XmlElement array = new XmlElement(\"array\");\n for (Object o : list)\n {\n array.add(objectToXml(o));\n }\n return array;\n }",
"@Override\n public T[] toArray() {\n T[] result = (T[])new Object[numItems];\n for(int i = 0; i < numItems; i++)\n result[i] = arr[i];\n return result;\n }",
"public static int[] convertIntegersToArray(List<Integer> integers){\n \n \tint[] newArray = new int[integers.size()]; \n \tIterator<Integer> iterator = integers.iterator(); // Declare and create iterator on integers arraylist.\n \n for (int i = 0; i < newArray.length; i++){\n newArray[i] = iterator.next().intValue(); // add elements to newArray \n }\n \n return newArray;\n }",
"public double[] toArray() {\n\t\treturn acc.toArray();\n\t}",
"@Test\n public void testToArray_0args() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Object[] result = instance.toArray();\n assertArrayEquals(expResult, result);\n\n }",
"@Test\r\n\tpublic void testToArrayType() {\r\n\t\tMunitions[] sample1 = new Munitions[5];\r\n\t\tsample1 = list.toArray(sample1);\r\n\t\tAssert.assertEquals(15, sample1.length);\r\n\t\tfor (int i = 0; i < sample1.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t\tMunitions[] sample2 = new Munitions[20];\r\n\t\tsample2 = list.toArray(sample2);\r\n\t\tAssert.assertEquals(20, sample2.length);\r\n\t\tfor (int i = 0; i < sample2.length - list.size(); i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void testListToArray() throws Exception\n {\n List<PSKeyword> sourceList = new ArrayList<PSKeyword>();\n sourceList.add(createKeyword(\"1\"));\n sourceList.add(createKeyword(\"2\"));\n \n List<PSKeyword> targetList = roundTripListConversion(\n com.percussion.webservices.content.PSKeyword[].class, \n sourceList);\n\n assertTrue(sourceList.equals(targetList));\n }",
"@Override\n\tpublic Object[] toArray() {\n\t\tif (isEmpty()) {\n\t return null;\n\t }\n\n\t\tObject[] data = new Object[size()];\n\n\t ListNode tmp = head;\n\t for (int i = 0; i < size(); i++) {\n\t data[i] = tmp.datum;\n\t tmp = tmp.next;\n\t }\n\n\t return data;\t\t\n\t}",
"public abstract int[] toIntArray();",
"public static List<int[]> getArrays( List<int[]> inputs, int end ) {\n ArrayList<int[]> arrays = new ArrayList<int[]>( );\n for (int[] stArr : inputs)\n {\n if (stArr[stArr.length-1] < end )\n {\n List<int[]> newArrays = getArrays( stArr, end );\n arrays.addAll( newArrays );\n }\n }\n \n return arrays;\n }",
"public static <E extends F, F> F[] asAList(List<E> l, Class<F> theClass) {\n F[] res = (F[]) Array.newInstance(theClass, l.size());\n for (int i = 0; i < l.size(); i++) {\n res[i] = l.get(i);\n }\n return res;\n }",
"JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);",
"public static List toList(Object arr[])\r\n {\r\n return (arr == null) ? null : Arrays.asList(arr);\r\n }",
"public static byte[] convertArrayListToArray(ArrayList<Byte> bytes) {\n // Define an array of size of bytes in array list\n byte[] resultBytes = new byte[bytes.size()];\n\n // Loop through the array list and add each byte to our primitive array\n for (int i = 0; i < bytes.size(); i++) {\n resultBytes[i] = bytes.get(i);\n }\n\n // Return the primitive array\n return resultBytes;\n }",
"@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }",
"public abstract long[] toLongArray();",
"public static int[] toArray(Collection<Integer> a) {\n assert (a != null);\n int[] ret = new int[a.size()];\n int i = 0;\n for (int e : a)\n ret[i++] = e;\n return ret;\n }",
"List<byte[]> asByteArrayList();",
"private static int[] toIntArray(List<Integer> shorts) {\n int[] array = new int[shorts.size()];\n for (int i = 0; i < shorts.size(); i++)\n array[i] = shorts.get(i).shortValue();\n return array;\n }",
"private static FighterModel[] convertToArray(ArrayList<FighterModel> convertFighters) {\n if (convertFighters == null) {\n return null;\n } else {\n Collections.sort(convertFighters);\n int size = convertFighters.size();\n FighterModel[] fighters = new FighterModel[size];\n for (int i = 0; i < size; i++) {\n fighters[i] = convertFighters.get(i);\n }\n return fighters;\n }\n }",
"public double[] toArray() {\n\t\treturn new double[] {x, y, z};\n\t}",
"public O[] toArray()\r\n {\r\n\r\n @SuppressWarnings(\"unchecked\")\r\n O[] a = (O[]) new Object[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T[] asArray() {\n\t\t// have to use explicit cast because we cannot use the alternative signature of toArray(T[]), as you cannot instantiate an array of a\n\t\t// type parameter (not even an empty array)\n\t\treturn (T[]) this.itemList.toArray();\n\t}",
"public abstract double[] toDoubleArray();",
"public static String[] list2array(List<String> list) {\n return collect2array(list);\n }",
"private int[] convertDoubleListToIntArray(List<Double> doubleList){\r\n\t\t\tint[] intArray = new int[doubleList.size()];\r\n\t\t\tfor(int i =0; i<doubleList.size(); i++){\r\n\t\t\t\t//intArray[i] = Integer.parseInt(String.valueOf(intList.get(i)));\r\n\t\t\t\tintArray[i] = doubleList.get(i).intValue();\r\n\t\t\t}\r\n\t\t\treturn intArray;\r\n\t\t}",
"@Override\n public int[] toArray() {\n int[] result = new int[size];\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n result[i] = tmp.value;\n tmp = tmp.next;\n }\n return result;\n }",
"public Object[] toArray() {\n\t\tObject[] arg = new Object[size];\r\n\t\t\r\n\t\tNode<E> current = head;\r\n\t\tint i = 0;\r\n\t\twhile(current != null) {\r\n\t\t\targ[i] = current.getData();\r\n\t\t\ti++;\r\n\t\t\tcurrent = current.getNext();;\r\n\t\t}\r\n\t\treturn arg;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n protected static <V> V[] toVarArgs(List<V> list, Class<V> cls) {\n return list != null ? list.toArray((V[]) Array.newInstance(cls, list.size())) : (V[]) null;\n }",
"public double[] toArray() \r\n\t{ \r\n\t\treturn Arrays.copyOf(storico, storico.length) ; \r\n\t}",
"public Polynomial[] getAsArray() {\n Polynomial[] list = new Polynomial[collection.size()];\n\n for (int i = 0; i < collection.size(); i++) {\n list[i] = collection.get(i);\n }\n return list;\n }",
"public ArrayList<T> returnAsArray(ArrayList<T> arr) {\n\t\tif (arr == null) {\n\t\t\tarr = new ArrayList<T>();\n\t\t}\n\t\tif (this == null) {\n\t\t\treturn arr;\n\t\t}\n\t\tif (this.valCount == 0) {\n\t\t\treturn arr;\n\t\t}\n\t\tfor (int i = 0; i < childCount; ++i) {\n\t\t\tthis.children[i].returnAsArray(arr);\n\t\t\tif (i < childCount - 1) {\n\t\t\t\tarr.add(values[i]);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}",
"@Override\n public T[] toArray() {\n //create the return array\n T[] result = (T[])new Object[this.getSize()];\n //make a count variable to move through the array and a reference\n //to the first node\n int index = 0;\n Node n = first;\n //copy the node data to the array\n while(n != null){\n result[index++] = n.value;\n n = n.next;\n }\n return result;\n }",
"Array createArray();",
"private static String[] getNewArray(HashMap listas){\n ArrayList<String> result = new ArrayList<String>();\n for (int i = 0; i< listas.size(); i++ ){\n String key = \"L\" + i;\n ArrayList<String> itemsList = (ArrayList<String>) listas.get(key);\n result.addAll(itemsList);\n }\n return result.toArray(new String[0]);\n }",
"public long[] toArray() {\n/* 406 */ long[] array = new long[(int)(this.max - this.min + 1L)];\n/* 407 */ for (int i = 0; i < array.length; i++) {\n/* 408 */ array[i] = this.min + i;\n/* */ }\n/* 410 */ return array;\n/* */ }",
"private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}",
"@Override\n\tpublic Object[] toArray() {\n\t\tObject[] result = copyArray(elements, size);\n\n\t\treturn result;\n\t}",
"public static Double[] convertirTableau(ArrayList<Double> valeurs) {\n\t\tDouble[] tab = new Double[valeurs.size()];\n\t\tfor(int i = 0; i <valeurs.size(); i++) {\n\t\t\ttab[i] = valeurs.get(i);\n\t\t}\n\t\treturn tab;\n\t}",
"private String[] toStringArray(ArrayList<String> list) {\n String[] tempStrings = new String[list.size()];\n tempStrings = list.toArray(tempStrings);\n\n return tempStrings;\n }",
"private void intListToArrayList(int[] list, ArrayList<Integer> arrayList){\n for(int integer: list){\n arrayList.add(integer);\n }\n }",
"private String[] convertList(String[][] l){\n String[] list = new String[l.length];\n for(int i =0; i<list.length;i++){\n String input = l[i][1];\n System.out.println(input);\n list[i] = input;\n }\n \n return list;\n }",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[size];\n int i = 0;\n for (E e : this) {\n result[i++] = e;\n }\n return result;\n }",
"public Object[] toRawArray();",
"private static final double[][] doubleArray2d (final List points) {\n final int m = points.size();\n final int n = ((List) points.get(0)).size();\n final double[][] a = new double[m][n];\n for (int i=0;i<m;i++) {\n final List row = (List) points.get(i);\n for (int j=0;j<n;j++) {\n a[i][j] = ((Number) row.get(j)).doubleValue(); } }\n return a; }",
"public static byte[] toArray(List<Byte> list) {\n byte[] bytes = new byte[list.size()];\n for (int i = 0; i < list.size(); i++)\n bytes[i] = list.get(i);\n return bytes;\n }",
"private TaskListItem[] getListArray() {\n return allLists.toArray(new TaskListItem[allLists.size()]);\n }",
"public static List<int[]> getArrays( int start, int end )\n {\n ArrayList<int[]> arrays = new ArrayList<int[]>( );\n for (int i = start; i <= end; i++ )\n {\n int[] arr = new int[1];\n arr[0] = i;\n arrays.add( arr );\n }\n \n return arrays;\n }",
"@Override\n\tpublic Object[] toArray() {\n\t\tListNode<L> newHead=first;\n\t\tObject[] array=new Object[size];\n\t\tfor(int i =0;i<size;i++) {\n\t\t\tarray[i]=newHead.storage;\n\t\t\tnewHead=newHead.next;\n\t\t}\n\t\treturn array;\n\t}",
"public long[] toLongArray()\r\n {\r\n long[] a = new long[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Long) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"public Distributor[] toDistributorArray()\r\n {\r\n Distributor[] a = new Distributor[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Distributor) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"public int[][] toArray (List<Integer> list, int rows) {\r\n\r\n int[][] array = new int[rows][rows];\r\n\r\n Iterator<Integer> iterator = list.iterator();\r\n for (int i = 0; i < rows; i++) {\r\n for (int j = 0; j < rows; j++) {\r\n if (!iterator.hasNext()) {\r\n array[i][j] = 0;\r\n } else {\r\n array[i][j] = iterator.next();\r\n }\r\n }\r\n }\r\n return array;\r\n }",
"public <Q> Q[] asDataArray(Q[] a);",
"@Test\r\n\tpublic void testToArray() {\r\n\t\tObject[] sample = list.toArray();\r\n\t\tAssert.assertEquals(15, sample.length);\r\n\t\tfor (int i = 0; i < sample.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample[i]);\r\n\t\t}\r\n\t}",
"public Object[] toArray() {\n\t\tint k;\n\t\tNode p;\n\n\t\tObject[] retArray = new Object[mSize];\n\t\tfor (k = 0, p = mHead.next; k < mSize; k++, p = p.next)\n\t\t\tretArray[k] = p.data;\n\t\treturn retArray;\n\t}",
"public double[] asArray() {\n final double[] result = new double[COMPONENTS];\n asArray(result);\n return result;\n }",
"public <T> T[] toArray(T[] arr);",
"public static int[] convertIntegers(ArrayList<Integer> Y_list) {\r\n\t int[] Y = new int[Y_list.size()];\r\n\t Iterator<Integer> iterator = Y_list.iterator();\r\n\t for (int i = 0; i < Y.length; i++)\r\n\t {\r\n\t Y[i] = iterator.next().intValue();\r\n\t }\r\n\t return Y;\r\n\t}",
"public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);",
"public static BoolExpr[] listToArray(List<BoolExpr> list) {\n BoolExpr[] array = new BoolExpr[list.size()];\n array = list.toArray(array);\n return array;\n }",
"public default T[] toArray() {\n Object[] array = new Object[size()];\n int i = 0;\n for (T t : this) {\n array[i++] = t;\n }\n return (T[]) array;\n }",
"public Object[] toArray() {\n Object[] arr = new Object[size];\n for(int i = 0; i < this.size; i++) {\n arr[i] = this.get(i);\n }\n return arr;\n }",
"@Override\n public Object[] toArray() {\n Object[] tempArray = new Object[size];\n Node n = this.head;\n int i = 0;\n while (i<size) {\n tempArray[i] = n.getData();\n i++;\n n = n.next;\n }\n return tempArray;\n }",
"public Object[] toArray() {\r\n Object[] arr = new Object[size];\r\n Node<T> current = head.next();\r\n for (int i = 0; i < size; i++) {\r\n arr[i] = current.getData();\r\n current = current.next();\r\n }\r\n return arr;\r\n }",
"public double[] getArray(){\n\t\t\tdouble[] temp = new double[count];\n\t\t\tfor (int i = 0; i < count; i++){\n\t\t\t\ttemp[i] = anArray[i];\n\t\t\t}\n\t\t\treturn temp;\n\t\t}",
"private String[] convertToList(List<String> lstAddresses) {\r\n\t\tString[] arrayAddresses = new String[lstAddresses.size()];\r\n\t\tint index=0;\r\n\t\tfor(String strAddress: lstAddresses) {\r\n\t\t\tarrayAddresses[index++] = strAddress;\r\n\t\t}\r\n\t\treturn arrayAddresses;\r\n\t}",
"public static void main(String[] args) \r\n\t{\n\r\n\t\tint[] A = {1,5,8,7,3,6};\r\n\t\tint[] B = {2,9,4};\r\n\t\t\r\n\t\tList<Integer> list = Arrays.stream(A).boxed().collect(Collectors.toList());\r\n\t\tList<Integer> list2 = Arrays.stream(B).boxed().collect(Collectors.toList());\r\n\t\tList<Integer> combine = new ArrayList<>();\r\n\t\tcombine.addAll(list);\r\n\t\tcombine.addAll(list2);\r\n\t\t\r\n\t\tSystem.out.println(list);\r\n\t\tSystem.out.println(combine);\r\n\t\tCollections.sort(combine);\r\n\t\tSystem.out.println(combine);\r\n\t\r\n\t\tList<Integer> extractA = combine.subList(0, A.length);\r\n\t\tList<Integer> extractB = combine.subList(A.length, A.length+B.length);\r\n\t\t\r\n\t\tSystem.out.println(extractA);\r\n\t\tSystem.out.println(extractB);\r\n\t\t\r\n// second approch for integer to array\t\t\r\n\t\tint[] ints = {1, 2, 3};\r\n\t\tList<Integer> intList = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < ints.length; i++) \r\n\t\t{\r\n\t\t\t intList.add(ints[i]);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(intList);\r\n\t\t\r\n\t}",
"public Item[] toItemArray()\r\n {\r\n Item[] a = new Item[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Item) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"public java.lang.Object[] getArbolesAsArray()\r\n {\r\n return (arboles == null) ? null : arboles.toArray();\r\n }",
"public static List<Integer> asList(int[] a) {\n assert (a != null);\n List<Integer> ret = new ArrayList<>(a.length);\n for (int e : a)\n ret.add(e);\n return ret;\n }",
"public static String[][] MListToMArray(ArrayList<String[]> input)\n {\n String[][] output;\n String[][] tmp;\n String[] lvl2;\n ArrayList<String> lvl3;\n\n\n output = new String[input.size()][];\n for (int outer = 0; outer < input.size(); ++outer) {\n output[outer] = input.get(outer);\n }\n return output;\n }",
"String [][] ArrayListToArray(ArrayList<Car> cars){\n\t\t\n\t\tString[][] arrayCar = new String[cars.size()][10];\n\t\tint i =0;\n\t\t\n\t\tfor (Car car : cars) {\n\t\t\tarrayCar[i][0] = car.getPlate();\n\t\t\tarrayCar[i][1] = car.getModel();\n\t\t\tarrayCar[i][2] = car.getType();\n\t\t\tif (car instanceof Van) {\n\t\t\t\tarrayCar[i][3]=((Van) car).getSize();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCar[i][3]=\"\";\n\t\t\t}\n\t\t\tarrayCar[i][4] = car.getColour();\n\t\t\tarrayCar[i][5] = car.getMileage();\n\t\t\tarrayCar[i][6] = car.getTransmission();\n\t\t\tarrayCar[i][7] = Integer.toString(car.getPrice());\n\t\t\tarrayCar[i][8]=car.getArrivalDate();\n\t\t\tarrayCar[i][9] = car.getSellingDate();\n\t\t\t\n\t\t\ti ++;\t\t\t\n\t\t}\n\t\treturn arrayCar;\n\t}",
"private Function1<Seq<String>, String[]> arrayFunction() {\n return new AbstractFunction1<Seq<String>, String[]>() {\n @Override\n public String[] apply(Seq<String> v1) {\n String[] array = new String[v1.size()];\n v1.copyToArray(array);\n return array;\n }\n };\n }",
"private int[] arrayListToIntList(ArrayList<Integer> arrayList){\n int[] list=new int[arrayList.size()];\n for(Integer integer:arrayList){\n list[arrayList.indexOf(integer)]=integer;\n }\n return list;\n }",
"@Override\r\n\tpublic T[] toArray() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] result = (T[])new Object[topIndex + 1];\r\n\t\tfor(int index = 0; index < result.length; index ++) {\r\n\t\t\tresult[index] = stack[index];\r\n\t\t}\r\n\treturn result;\r\n\t}",
"public static <T> T[] asArray(Collection<T> ts) {\n if (ts.isEmpty()) throw new RuntimeException(\"ts may not be empty\");\n @SuppressWarnings(\"unchecked\") T[] result = (T[]) Array.newInstance(ts.iterator().next().getClass(), 0);\n return ts.toArray(result);\n }",
"static <T> T[] toArray(T... args) {\n return args;\n }",
"private List<Object> parseArray(List<XmlElement> elements) throws Exception\n {\n ArrayList<Object> list = new ArrayList<Object>(elements.size());\n for (XmlElement element : elements)\n {\n list.add(parseElementRaw(element));\n }\n return list;\n }",
"public Object[] toArray() {\n Object[] myarray = new Object[size];\n DoublyLinkedListNode<T> pointer = head;\n for (int i = 0; i < size; i++) {\n myarray[i] = pointer.getData();\n pointer = pointer.getNext();\n }\n return myarray;\n\n\n }",
"public float[] toArray() {\r\n float[] result = new float[size];\r\n System.arraycopy(elementData, 0, result, 0, size);\r\n return result;\r\n }",
"public Object[] toArray() {\n Object[] arr = new Object[size];\n Node<E> cur = head;\n for(int i = 0; i < size; i++) {\n arr[i] = cur.item;\n cur = cur.next;\n }\n return arr;\n }",
"private JSArray convertToJSArray(ArrayList<Object> row) {\n JSArray jsArray = new JSArray();\n for (int i = 0; i < row.size(); i++) {\n jsArray.put(row.get(i));\n }\n return jsArray;\n }",
"public abstract float[] toFloatArray();"
] |
[
"0.72807014",
"0.7108775",
"0.6789996",
"0.65454173",
"0.6530665",
"0.6441127",
"0.6308058",
"0.6308058",
"0.6308058",
"0.62405866",
"0.62278104",
"0.622707",
"0.62153435",
"0.616302",
"0.6158547",
"0.6136672",
"0.6053138",
"0.6040907",
"0.5983088",
"0.59707695",
"0.59472615",
"0.59407777",
"0.59341866",
"0.59268165",
"0.59258187",
"0.5919806",
"0.5917231",
"0.5916633",
"0.58807445",
"0.587022",
"0.58667934",
"0.58660865",
"0.5832254",
"0.5824539",
"0.5814935",
"0.58103263",
"0.58033234",
"0.5801416",
"0.57968867",
"0.5795222",
"0.5794767",
"0.5787036",
"0.5775686",
"0.5775176",
"0.5765083",
"0.57186806",
"0.57110095",
"0.5705131",
"0.56953824",
"0.56941664",
"0.5678679",
"0.56725854",
"0.5670049",
"0.56571996",
"0.5656871",
"0.5654691",
"0.56484663",
"0.56409305",
"0.5631565",
"0.56306237",
"0.56199133",
"0.5611475",
"0.5607887",
"0.56040496",
"0.5596934",
"0.5591245",
"0.55876607",
"0.55804807",
"0.5575339",
"0.55729777",
"0.5572949",
"0.5554362",
"0.5549329",
"0.55474013",
"0.55429435",
"0.5541619",
"0.5532068",
"0.5522258",
"0.55189645",
"0.551538",
"0.5509316",
"0.55077493",
"0.5506362",
"0.5505645",
"0.55021054",
"0.5477002",
"0.54740983",
"0.54604185",
"0.5459761",
"0.5454453",
"0.5452367",
"0.5429443",
"0.5422803",
"0.5416982",
"0.53974175",
"0.5392768",
"0.5382321",
"0.5377134",
"0.5370438",
"0.53682077",
"0.5366003"
] |
0.0
|
-1
|
/ / / / / / /
|
public GridLayoutAnimationController(Animation animation) {
/* 71 */ super((Animation)null); throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public abstract String division();",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"int getWidth() {return width;}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"double volume(){\n return width*height*depth;\n }",
"@Override\n public void bfs() {\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int width();",
"Operations operations();",
"void sharpen();",
"void sharpen();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"static void pyramid(){\n\t}",
"public Integer getWidth(){return this.width;}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public void skystonePos4() {\n }",
"void mo33732Px();",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void SubRect(){\n\t\n}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"void walk() {\n\t\t\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public double getWidth() { return _width<0? -_width : _width; }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void stg() {\n\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"double getNewWidth();",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double seBlesser();",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"public void leerPlanesDietas();",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"void block(Directions dir);",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public String getRing();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth(){\n return width;\n }",
"public int upright();",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}",
"public void snare();",
"void ringBell() {\n\n }",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public void skystonePos2() {\n }",
"public int my_leaf_count();",
"@Override\n\tpublic void draw3() {\n\n\t}"
] |
[
"0.54567957",
"0.53680295",
"0.53644985",
"0.52577376",
"0.52142847",
"0.51725817",
"0.514088",
"0.50868535",
"0.5072305",
"0.504888",
"0.502662",
"0.50005764",
"0.49740013",
"0.4944243",
"0.4941118",
"0.4937142",
"0.49095523",
"0.48940238",
"0.48719338",
"0.48613623",
"0.48604724",
"0.48558092",
"0.48546165",
"0.48490012",
"0.4843668",
"0.4843668",
"0.48420057",
"0.4839597",
"0.4832105",
"0.4817357",
"0.481569",
"0.48122767",
"0.48085573",
"0.48065376",
"0.48032433",
"0.48032212",
"0.4799707",
"0.4798766",
"0.47978994",
"0.47978172",
"0.47921672",
"0.47903922",
"0.4790111",
"0.47886384",
"0.47843018",
"0.47837785",
"0.47828907",
"0.47826976",
"0.4776919",
"0.47767594",
"0.47767594",
"0.47766045",
"0.4764252",
"0.47560593",
"0.4753577",
"0.4752732",
"0.47510985",
"0.47496924",
"0.47485355",
"0.4748455",
"0.4746839",
"0.4744132",
"0.47203988",
"0.4713808",
"0.4711382",
"0.47113234",
"0.47096533",
"0.47075558",
"0.47029856",
"0.4701444",
"0.47014076",
"0.46973658",
"0.46969122",
"0.4692372",
"0.46897912",
"0.4683049",
"0.4681391",
"0.46810925",
"0.46750805",
"0.46722633",
"0.46681988",
"0.466349",
"0.46618745",
"0.46606532",
"0.46533036",
"0.46485004",
"0.46464643",
"0.46447286",
"0.46447286",
"0.46438906",
"0.46405315",
"0.46397775",
"0.4634643",
"0.46339533",
"0.4633923",
"0.4632826",
"0.4631328",
"0.46299514",
"0.46285036",
"0.46276402",
"0.4625902"
] |
0.0
|
-1
|
/ / / / / / / / /
|
public GridLayoutAnimationController(Animation animation, float columnDelay, float rowDelay) {
/* 82 */ super((Animation)null); throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int generateRoshambo(){\n ;]\n\n }",
"Operations operations();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"static void pyramid(){\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public int my_leaf_count();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void walk() {\n\t\t\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double seBlesser();",
"void sharpen();",
"void sharpen();",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void leerPlanesDietas();",
"public String getRing();",
"static int getNumPatterns() { return 64; }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double getWidth();",
"double getWidth();"
] |
[
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.49287266",
"0.4884688",
"0.4874051",
"0.4871873",
"0.48511675",
"0.48435977",
"0.48318782",
"0.48268357",
"0.48253223",
"0.48089546",
"0.4805502",
"0.48046046",
"0.4803564",
"0.48035362",
"0.47987092",
"0.47966656",
"0.47941628",
"0.47918317",
"0.4789212",
"0.4783637",
"0.47747543",
"0.4774159",
"0.47730577",
"0.47666246",
"0.47664872",
"0.47615",
"0.4755131",
"0.47543177",
"0.47509375",
"0.47481856",
"0.47429588",
"0.47421312",
"0.47413164",
"0.47407025",
"0.47407025",
"0.47362685",
"0.47353023",
"0.47351807",
"0.47331676",
"0.47328842",
"0.47319365",
"0.4729934",
"0.47290468",
"0.47287467",
"0.47275317",
"0.47259426",
"0.47239763",
"0.4723621",
"0.4715134",
"0.47056246",
"0.47034666",
"0.47034577",
"0.4701833",
"0.46977103",
"0.46967983",
"0.46885592",
"0.46881223",
"0.46881223",
"0.4685835",
"0.4677769",
"0.46758488",
"0.46741006",
"0.46703368",
"0.46684504",
"0.4664061",
"0.4664013",
"0.46639267",
"0.46607205",
"0.4659042",
"0.46581274",
"0.4656714",
"0.46495056",
"0.464903",
"0.4648408",
"0.46467063",
"0.4643833",
"0.4643833",
"0.46426296",
"0.46422264",
"0.4639917",
"0.4639917"
] |
0.0
|
-1
|
/ / / / / / / / / / / /
|
public float getColumnDelay() {
/* 96 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int width();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public abstract String division();",
"public double getWidth() { return _width<0? -_width : _width; }",
"static int getNumPatterns() { return 64; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int my_leaf_count();",
"@Override\n public void bfs() {\n\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"int getTribeSize();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"void mo33732Px();",
"double seBlesser();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public int getWidth(){\n return width;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public void leerPlanesDietas();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"Operations operations();",
"public double getPerimiter(){return (2*height +2*width);}",
"public String getRing();",
"public void skystonePos4() {\n }",
"public abstract int getSpotsNeeded();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public abstract double getBaseWidth();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int expand();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"long getMid();",
"long getMid();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int getSpriteArraySize();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"static void pyramid(){\n\t}",
"public void SubRect(){\n\t\n}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"Parallelogram(){\n length = width = height = 0;\n }",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public String getRingback();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"int getWidth1();"
] |
[
"0.5528792",
"0.54315263",
"0.51737124",
"0.5150286",
"0.5077775",
"0.5064908",
"0.50597715",
"0.5045933",
"0.5037415",
"0.5019393",
"0.50050676",
"0.50032693",
"0.499702",
"0.49949083",
"0.49852678",
"0.4973753",
"0.4970428",
"0.49669605",
"0.49542087",
"0.4945966",
"0.4921133",
"0.49079603",
"0.4884644",
"0.4879366",
"0.48769364",
"0.48760977",
"0.48618412",
"0.4857062",
"0.4856107",
"0.4848026",
"0.48381364",
"0.4837923",
"0.48339877",
"0.48231202",
"0.48226285",
"0.48105136",
"0.4810298",
"0.48000357",
"0.47999635",
"0.47987804",
"0.47920895",
"0.4786291",
"0.47706842",
"0.47685736",
"0.47684807",
"0.4768041",
"0.47676992",
"0.47632176",
"0.4761828",
"0.4761766",
"0.47591394",
"0.47565237",
"0.47525048",
"0.4752376",
"0.47481483",
"0.4744625",
"0.4740494",
"0.47396293",
"0.4731915",
"0.47255778",
"0.47226188",
"0.4720667",
"0.47175038",
"0.47175038",
"0.47165227",
"0.47134835",
"0.47109672",
"0.47085458",
"0.47068602",
"0.470273",
"0.4697842",
"0.4696386",
"0.46950635",
"0.46950635",
"0.46914726",
"0.46891877",
"0.468772",
"0.46854112",
"0.4684771",
"0.4678754",
"0.46776247",
"0.46760088",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46702778",
"0.46682474"
] |
0.0
|
-1
|
/ / / / / / / / / / /
|
public void setColumnDelay(float columnDelay) {
/* 109 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void getTile_B8();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"int width();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public abstract String division();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\n public void bfs() {\n\n }",
"long getWidth();",
"double getNewWidth();",
"static int getNumPatterns() { return 64; }",
"public int my_leaf_count();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"void mo33732Px();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"double seBlesser();",
"int getTribeSize();",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"public int getWidth(){\n return width;\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public String getRing();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void SubRect(){\n\t\n}",
"public abstract double getBaseWidth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"static void pyramid(){\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int expand();",
"public abstract int getSpotsNeeded();",
"Parallelogram(){\n length = width = height = 0;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"void walk() {\n\t\t\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"int depth();",
"int depth();",
"long getMid();",
"long getMid();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"String directsTo();",
"int getSpriteArraySize();",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int getWidth1();",
"public String getRingback();",
"void sharpen();",
"void sharpen();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.5540745",
"0.5444497",
"0.5205538",
"0.5182055",
"0.5094161",
"0.50587463",
"0.5053648",
"0.50452423",
"0.50258267",
"0.50122976",
"0.5012191",
"0.50119436",
"0.50044477",
"0.49989554",
"0.49980396",
"0.49847832",
"0.49795863",
"0.49785143",
"0.4966902",
"0.49588826",
"0.491195",
"0.49114203",
"0.48977208",
"0.48783925",
"0.4871045",
"0.4866241",
"0.48425886",
"0.48414746",
"0.48404667",
"0.48359194",
"0.48321852",
"0.48264593",
"0.48214784",
"0.48163307",
"0.48100394",
"0.48063412",
"0.48053867",
"0.4804083",
"0.4794161",
"0.47927848",
"0.4788403",
"0.47818738",
"0.47784477",
"0.47709942",
"0.4770795",
"0.4766995",
"0.47618645",
"0.47570822",
"0.4752602",
"0.4751775",
"0.4751225",
"0.47489616",
"0.47487566",
"0.474798",
"0.47473353",
"0.47425666",
"0.47340578",
"0.47319007",
"0.47315216",
"0.4729219",
"0.4727721",
"0.47272617",
"0.47233397",
"0.47144157",
"0.47093782",
"0.47075313",
"0.47051412",
"0.47038573",
"0.46964964",
"0.4695774",
"0.46953171",
"0.46950933",
"0.46876776",
"0.46871465",
"0.46871465",
"0.46869987",
"0.46869987",
"0.4686779",
"0.46865502",
"0.46834555",
"0.46825886",
"0.46823603",
"0.46798244",
"0.4674724",
"0.46727514",
"0.46678638",
"0.4667731",
"0.4665962",
"0.4665962",
"0.46643248",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606"
] |
0.0
|
-1
|
/ / / / / / / / / / / /
|
public float getRowDelay() {
/* 123 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int width();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public abstract String division();",
"public double getWidth() { return _width<0? -_width : _width; }",
"static int getNumPatterns() { return 64; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int my_leaf_count();",
"@Override\n public void bfs() {\n\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"int getTribeSize();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"void mo33732Px();",
"double seBlesser();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public int getWidth(){\n return width;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public void leerPlanesDietas();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"Operations operations();",
"public double getPerimiter(){return (2*height +2*width);}",
"public String getRing();",
"public void skystonePos4() {\n }",
"public abstract int getSpotsNeeded();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public abstract double getBaseWidth();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int expand();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"long getMid();",
"long getMid();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int getSpriteArraySize();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"static void pyramid(){\n\t}",
"public void SubRect(){\n\t\n}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"Parallelogram(){\n length = width = height = 0;\n }",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public String getRingback();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"int getWidth1();"
] |
[
"0.5528792",
"0.54315263",
"0.51737124",
"0.5150286",
"0.5077775",
"0.5064908",
"0.50597715",
"0.5045933",
"0.5037415",
"0.5019393",
"0.50050676",
"0.50032693",
"0.499702",
"0.49949083",
"0.49852678",
"0.4973753",
"0.4970428",
"0.49669605",
"0.49542087",
"0.4945966",
"0.4921133",
"0.49079603",
"0.4884644",
"0.4879366",
"0.48769364",
"0.48760977",
"0.48618412",
"0.4857062",
"0.4856107",
"0.4848026",
"0.48381364",
"0.4837923",
"0.48339877",
"0.48231202",
"0.48226285",
"0.48105136",
"0.4810298",
"0.48000357",
"0.47999635",
"0.47987804",
"0.47920895",
"0.4786291",
"0.47706842",
"0.47685736",
"0.47684807",
"0.4768041",
"0.47676992",
"0.47632176",
"0.4761828",
"0.4761766",
"0.47591394",
"0.47565237",
"0.47525048",
"0.4752376",
"0.47481483",
"0.4744625",
"0.4740494",
"0.47396293",
"0.4731915",
"0.47255778",
"0.47226188",
"0.4720667",
"0.47175038",
"0.47175038",
"0.47165227",
"0.47134835",
"0.47109672",
"0.47085458",
"0.47068602",
"0.470273",
"0.4697842",
"0.4696386",
"0.46950635",
"0.46950635",
"0.46914726",
"0.46891877",
"0.468772",
"0.46854112",
"0.4684771",
"0.4678754",
"0.46776247",
"0.46760088",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46702778",
"0.46682474"
] |
0.0
|
-1
|
/ / / / / / / / / / /
|
public void setRowDelay(float rowDelay) {
/* 136 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void getTile_B8();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"int width();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public abstract String division();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\n public void bfs() {\n\n }",
"long getWidth();",
"double getNewWidth();",
"static int getNumPatterns() { return 64; }",
"public int my_leaf_count();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"void mo33732Px();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"double seBlesser();",
"int getTribeSize();",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"public int getWidth(){\n return width;\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public String getRing();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void SubRect(){\n\t\n}",
"public abstract double getBaseWidth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"static void pyramid(){\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int expand();",
"public abstract int getSpotsNeeded();",
"Parallelogram(){\n length = width = height = 0;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"void walk() {\n\t\t\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"int depth();",
"int depth();",
"long getMid();",
"long getMid();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"String directsTo();",
"int getSpriteArraySize();",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int getWidth1();",
"public String getRingback();",
"void sharpen();",
"void sharpen();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.5540745",
"0.5444497",
"0.5205538",
"0.5182055",
"0.5094161",
"0.50587463",
"0.5053648",
"0.50452423",
"0.50258267",
"0.50122976",
"0.5012191",
"0.50119436",
"0.50044477",
"0.49989554",
"0.49980396",
"0.49847832",
"0.49795863",
"0.49785143",
"0.4966902",
"0.49588826",
"0.491195",
"0.49114203",
"0.48977208",
"0.48783925",
"0.4871045",
"0.4866241",
"0.48425886",
"0.48414746",
"0.48404667",
"0.48359194",
"0.48321852",
"0.48264593",
"0.48214784",
"0.48163307",
"0.48100394",
"0.48063412",
"0.48053867",
"0.4804083",
"0.4794161",
"0.47927848",
"0.4788403",
"0.47818738",
"0.47784477",
"0.47709942",
"0.4770795",
"0.4766995",
"0.47618645",
"0.47570822",
"0.4752602",
"0.4751775",
"0.4751225",
"0.47489616",
"0.47487566",
"0.474798",
"0.47473353",
"0.47425666",
"0.47340578",
"0.47319007",
"0.47315216",
"0.4729219",
"0.4727721",
"0.47272617",
"0.47233397",
"0.47144157",
"0.47093782",
"0.47075313",
"0.47051412",
"0.47038573",
"0.46964964",
"0.4695774",
"0.46953171",
"0.46950933",
"0.46876776",
"0.46871465",
"0.46871465",
"0.46869987",
"0.46869987",
"0.4686779",
"0.46865502",
"0.46834555",
"0.46825886",
"0.46823603",
"0.46798244",
"0.4674724",
"0.46727514",
"0.46678638",
"0.4667731",
"0.4665962",
"0.4665962",
"0.46643248",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606"
] |
0.0
|
-1
|
/ / / / / / / / / / / / / / / /
|
public int getDirection() {
/* 154 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"public void divide() {\n\t\t\n\t}",
"int width();",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"static int getNumPatterns() { return 64; }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int getTribeSize();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"void mo33732Px();",
"long getWidth();",
"public String toString(){ return \"DIV\";}",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getNewWidth();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double seBlesser();",
"public int generateRoshambo(){\n ;]\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int my_leaf_count();",
"public abstract int getSpotsNeeded();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"@Override\n public void bfs() {\n\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract String division();",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"int getSize ();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"int expand();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"public int getWidth(){\n return width;\n }",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public abstract double getBaseWidth();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public String getRing();",
"public int getWidth()\n {return width;}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"int depth();",
"int depth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public int length() { return 1+maxidx; }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public String getRingback();",
"private void poetries() {\n\n\t}",
"String directsTo();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public int width();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int align();",
"public double width() { return _width; }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"public void method_4270() {}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.5430595",
"0.53330356",
"0.5092637",
"0.50776035",
"0.50656015",
"0.5061517",
"0.50255305",
"0.501914",
"0.5013608",
"0.5012112",
"0.50097734",
"0.49939048",
"0.49924976",
"0.49502665",
"0.4925594",
"0.4921649",
"0.49190572",
"0.49077547",
"0.49070126",
"0.49018925",
"0.48999804",
"0.488493",
"0.48846358",
"0.48739335",
"0.48632213",
"0.48605266",
"0.4857587",
"0.4850445",
"0.4847252",
"0.48460993",
"0.4840025",
"0.48375157",
"0.4835153",
"0.48279664",
"0.48260632",
"0.4825089",
"0.48174995",
"0.4810252",
"0.47989792",
"0.47930446",
"0.4789371",
"0.4776887",
"0.4776887",
"0.47760046",
"0.4774504",
"0.4767123",
"0.4766668",
"0.4761947",
"0.47615656",
"0.47611192",
"0.4757967",
"0.47522596",
"0.47508425",
"0.47504175",
"0.47475496",
"0.47463676",
"0.47461066",
"0.4736013",
"0.47317326",
"0.47290143",
"0.47165486",
"0.47142136",
"0.47133484",
"0.47119215",
"0.4709692",
"0.4696957",
"0.469671",
"0.469411",
"0.46940878",
"0.46931034",
"0.4691934",
"0.46906507",
"0.46882108",
"0.46882108",
"0.46868974",
"0.4684452",
"0.46817034",
"0.46813998",
"0.46741885",
"0.46733153",
"0.4672824",
"0.467257",
"0.467188",
"0.4666837",
"0.46659094",
"0.4664564",
"0.46611282",
"0.4659277",
"0.4656269",
"0.4654199",
"0.46540377",
"0.46501794",
"0.46494237",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437"
] |
0.0
|
-1
|
/ / / / / / / / / / / / / / / /
|
public void setDirection(int direction) {
/* 172 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"public void divide() {\n\t\t\n\t}",
"int width();",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"static int getNumPatterns() { return 64; }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int getTribeSize();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"void mo33732Px();",
"long getWidth();",
"public String toString(){ return \"DIV\";}",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getNewWidth();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double seBlesser();",
"public int generateRoshambo(){\n ;]\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int my_leaf_count();",
"public abstract int getSpotsNeeded();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"@Override\n public void bfs() {\n\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract String division();",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"int getSize ();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"int expand();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"public int getWidth(){\n return width;\n }",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public abstract double getBaseWidth();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public String getRing();",
"public int getWidth()\n {return width;}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"int depth();",
"int depth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public int length() { return 1+maxidx; }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public String getRingback();",
"private void poetries() {\n\n\t}",
"String directsTo();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public int width();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int align();",
"public double width() { return _width; }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"public void method_4270() {}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.5430595",
"0.53330356",
"0.5092637",
"0.50776035",
"0.50656015",
"0.5061517",
"0.50255305",
"0.501914",
"0.5013608",
"0.5012112",
"0.50097734",
"0.49939048",
"0.49924976",
"0.49502665",
"0.4925594",
"0.4921649",
"0.49190572",
"0.49077547",
"0.49070126",
"0.49018925",
"0.48999804",
"0.488493",
"0.48846358",
"0.48739335",
"0.48632213",
"0.48605266",
"0.4857587",
"0.4850445",
"0.4847252",
"0.48460993",
"0.4840025",
"0.48375157",
"0.4835153",
"0.48279664",
"0.48260632",
"0.4825089",
"0.48174995",
"0.4810252",
"0.47989792",
"0.47930446",
"0.4789371",
"0.4776887",
"0.4776887",
"0.47760046",
"0.4774504",
"0.4767123",
"0.4766668",
"0.4761947",
"0.47615656",
"0.47611192",
"0.4757967",
"0.47522596",
"0.47508425",
"0.47504175",
"0.47475496",
"0.47463676",
"0.47461066",
"0.4736013",
"0.47317326",
"0.47290143",
"0.47165486",
"0.47142136",
"0.47133484",
"0.47119215",
"0.4709692",
"0.4696957",
"0.469671",
"0.469411",
"0.46940878",
"0.46931034",
"0.4691934",
"0.46906507",
"0.46882108",
"0.46882108",
"0.46868974",
"0.4684452",
"0.46817034",
"0.46813998",
"0.46741885",
"0.46733153",
"0.4672824",
"0.467257",
"0.467188",
"0.4666837",
"0.46659094",
"0.4664564",
"0.46611282",
"0.4659277",
"0.4656269",
"0.4654199",
"0.46540377",
"0.46501794",
"0.46494237",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437"
] |
0.0
|
-1
|
/ / / / / / / / / / / / /
|
public int getDirectionPriority() {
/* 187 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"public String getRing();",
"int expand();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] |
[
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.49275073",
"0.49161938",
"0.48980555",
"0.48958352",
"0.48763698",
"0.48674774",
"0.48627993",
"0.48618507",
"0.48581234",
"0.48564452",
"0.48533896",
"0.48423022",
"0.48398826",
"0.4830562",
"0.4829852",
"0.4826455",
"0.48149732",
"0.47983614",
"0.4795821",
"0.4788122",
"0.4787033",
"0.47857547",
"0.477811",
"0.47777838",
"0.47773185",
"0.47716594",
"0.47687408",
"0.4767555",
"0.47666657",
"0.4758684",
"0.47540286",
"0.47495034",
"0.47482887",
"0.47468567",
"0.4746059",
"0.47443146",
"0.47432604",
"0.47399372",
"0.47395262",
"0.47395262",
"0.47393134",
"0.47377515",
"0.47242114",
"0.47205007",
"0.47204065",
"0.47149622",
"0.47073272",
"0.4706161",
"0.47017768",
"0.47002885",
"0.47002885",
"0.46916506",
"0.4688795",
"0.4688655",
"0.4687753",
"0.46866032",
"0.4685604",
"0.46824268",
"0.46817905",
"0.46811056",
"0.4677107",
"0.4671675",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4668958",
"0.46668708"
] |
0.0
|
-1
|
/ / / / / / / / / / / / /
|
public void setDirectionPriority(int directionPriority) {
/* 202 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"public String getRing();",
"int expand();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] |
[
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.49275073",
"0.49161938",
"0.48980555",
"0.48958352",
"0.48763698",
"0.48674774",
"0.48627993",
"0.48618507",
"0.48581234",
"0.48564452",
"0.48533896",
"0.48423022",
"0.48398826",
"0.4830562",
"0.4829852",
"0.4826455",
"0.48149732",
"0.47983614",
"0.4795821",
"0.4788122",
"0.4787033",
"0.47857547",
"0.477811",
"0.47777838",
"0.47773185",
"0.47716594",
"0.47687408",
"0.4767555",
"0.47666657",
"0.4758684",
"0.47540286",
"0.47495034",
"0.47482887",
"0.47468567",
"0.4746059",
"0.47443146",
"0.47432604",
"0.47399372",
"0.47395262",
"0.47395262",
"0.47393134",
"0.47377515",
"0.47242114",
"0.47205007",
"0.47204065",
"0.47149622",
"0.47073272",
"0.4706161",
"0.47017768",
"0.47002885",
"0.47002885",
"0.46916506",
"0.4688795",
"0.4688655",
"0.4687753",
"0.46866032",
"0.4685604",
"0.46824268",
"0.46817905",
"0.46811056",
"0.4677107",
"0.4671675",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4668958",
"0.46668708"
] |
0.0
|
-1
|
/ / / /
|
public boolean willOverlap() {
/* 208 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String toString(){ return \"DIV\";}",
"private int parent(int i){return (i-1)/2;}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int i){return 2*i+1;}",
"double passer();",
"static void pyramid(){\n\t}",
"public void stg() {\n\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void mo33732Px();",
"Operations operations();",
"private int rightChild(int i){return 2*i+2;}",
"private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}",
"void sharpen();",
"void sharpen();",
"double defendre();",
"public int generateRoshambo(){\n ;]\n\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"String divideAtWhite()[]{ return null; }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"public void skystonePos4() {\n }",
"void ringBell() {\n\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }",
"public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }",
"void mo21076g();",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public Divide(){\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\npublic void div(int a, int b) {\n\t\n}",
"private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"int getWidth() {return width;}",
"int width();",
"public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }",
"public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }",
"public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }",
"@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getPerimeter(){\n return 2*height+width;\n }",
"public void mo3376r() {\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"void walk() {\n\t\t\n\t}",
"public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }",
"public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}",
"@Override\n\tpublic void breath() {\n\n\t}",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}",
"public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }",
"public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }",
"private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}",
"public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}",
"@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}",
"public int upright();",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void backSlash() {\n text.append(\"\\\\\");\n }",
"public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}",
"public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}",
"AngleResource inclination();",
"public abstract void squareRootThis();",
"public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}",
"@Override\n\tpublic void space() {\n\t\t\n\t}"
] |
[
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.49150687",
"0.4878608",
"0.4873821",
"0.4873821",
"0.48564616",
"0.48415148",
"0.4840844",
"0.48408422",
"0.48392275",
"0.48380315",
"0.48342562",
"0.48335755",
"0.48189583",
"0.4816532",
"0.4803844",
"0.47991633",
"0.4790358",
"0.4785782",
"0.47707185",
"0.47659388",
"0.47607136",
"0.4756167",
"0.47525582",
"0.4750556",
"0.47465262",
"0.47439283",
"0.47427607",
"0.47368544",
"0.47283906",
"0.4719052",
"0.4715935",
"0.4711951",
"0.47046372",
"0.47023433",
"0.46957722",
"0.46894073",
"0.46882662",
"0.46872112",
"0.46870187",
"0.46838596",
"0.46826214",
"0.46721044",
"0.4671648",
"0.46691796",
"0.46658975",
"0.46658975",
"0.46634644",
"0.46593347",
"0.46569487",
"0.46532407",
"0.46484405",
"0.46472803",
"0.4647124",
"0.46426368",
"0.46379653",
"0.4635675",
"0.46356165",
"0.46343538",
"0.46343073",
"0.46324328",
"0.46307802",
"0.46292034",
"0.46249497",
"0.46220893",
"0.46138567",
"0.46130696",
"0.46125302",
"0.4608751",
"0.46084386",
"0.4605762",
"0.46052104",
"0.4602023",
"0.46015334",
"0.45995793",
"0.45948967",
"0.459342",
"0.45930445",
"0.45923406",
"0.45910415",
"0.45878932",
"0.45863274"
] |
0.0
|
-1
|
/ / / /
|
protected long getDelayForView(View view) {
/* 214 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String toString(){ return \"DIV\";}",
"private int parent(int i){return (i-1)/2;}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int i){return 2*i+1;}",
"double passer();",
"static void pyramid(){\n\t}",
"public void stg() {\n\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void mo33732Px();",
"Operations operations();",
"private int rightChild(int i){return 2*i+2;}",
"private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}",
"void sharpen();",
"void sharpen();",
"double defendre();",
"public int generateRoshambo(){\n ;]\n\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"String divideAtWhite()[]{ return null; }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"public void skystonePos4() {\n }",
"void ringBell() {\n\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }",
"public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }",
"void mo21076g();",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public Divide(){\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\npublic void div(int a, int b) {\n\t\n}",
"private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"int getWidth() {return width;}",
"int width();",
"public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }",
"public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }",
"public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }",
"@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getPerimeter(){\n return 2*height+width;\n }",
"public void mo3376r() {\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"void walk() {\n\t\t\n\t}",
"public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }",
"public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}",
"@Override\n\tpublic void breath() {\n\n\t}",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}",
"public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }",
"public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }",
"private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}",
"public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}",
"@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}",
"public int upright();",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void backSlash() {\n text.append(\"\\\\\");\n }",
"public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}",
"public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}",
"AngleResource inclination();",
"public abstract void squareRootThis();",
"public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}",
"@Override\n\tpublic void space() {\n\t\t\n\t}"
] |
[
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.49150687",
"0.4878608",
"0.4873821",
"0.4873821",
"0.48564616",
"0.48415148",
"0.4840844",
"0.48408422",
"0.48392275",
"0.48380315",
"0.48342562",
"0.48335755",
"0.48189583",
"0.4816532",
"0.4803844",
"0.47991633",
"0.4790358",
"0.4785782",
"0.47707185",
"0.47659388",
"0.47607136",
"0.4756167",
"0.47525582",
"0.4750556",
"0.47465262",
"0.47439283",
"0.47427607",
"0.47368544",
"0.47283906",
"0.4719052",
"0.4715935",
"0.4711951",
"0.47046372",
"0.47023433",
"0.46957722",
"0.46894073",
"0.46882662",
"0.46872112",
"0.46870187",
"0.46838596",
"0.46826214",
"0.46721044",
"0.4671648",
"0.46691796",
"0.46658975",
"0.46658975",
"0.46634644",
"0.46593347",
"0.46569487",
"0.46532407",
"0.46484405",
"0.46472803",
"0.4647124",
"0.46426368",
"0.46379653",
"0.4635675",
"0.46356165",
"0.46343538",
"0.46343073",
"0.46324328",
"0.46307802",
"0.46292034",
"0.46249497",
"0.46220893",
"0.46138567",
"0.46130696",
"0.46125302",
"0.4608751",
"0.46084386",
"0.4605762",
"0.46052104",
"0.4602023",
"0.46015334",
"0.45995793",
"0.45948967",
"0.459342",
"0.45930445",
"0.45923406",
"0.45910415",
"0.45878932",
"0.45863274"
] |
0.0
|
-1
|
/ / / / / / / / / / / /
|
public AnimationParameters() {
/* 279 */ throw new RuntimeException("Stub!");
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int width();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public abstract String division();",
"public double getWidth() { return _width<0? -_width : _width; }",
"static int getNumPatterns() { return 64; }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int my_leaf_count();",
"@Override\n public void bfs() {\n\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"int getTribeSize();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"void mo33732Px();",
"double seBlesser();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public int getWidth(){\n return width;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public void leerPlanesDietas();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"Operations operations();",
"public double getPerimiter(){return (2*height +2*width);}",
"public String getRing();",
"public void skystonePos4() {\n }",
"public abstract int getSpotsNeeded();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public abstract double getBaseWidth();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int expand();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"long getMid();",
"long getMid();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int getSpriteArraySize();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"static void pyramid(){\n\t}",
"public void SubRect(){\n\t\n}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"Parallelogram(){\n length = width = height = 0;\n }",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public String getRingback();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tprotected void interr() {\n\t}",
"int getWidth1();"
] |
[
"0.5528792",
"0.54315263",
"0.51737124",
"0.5150286",
"0.5077775",
"0.5064908",
"0.50597715",
"0.5045933",
"0.5037415",
"0.5019393",
"0.50050676",
"0.50032693",
"0.499702",
"0.49949083",
"0.49852678",
"0.4973753",
"0.4970428",
"0.49669605",
"0.49542087",
"0.4945966",
"0.4921133",
"0.49079603",
"0.4884644",
"0.4879366",
"0.48769364",
"0.48760977",
"0.48618412",
"0.4857062",
"0.4856107",
"0.4848026",
"0.48381364",
"0.4837923",
"0.48339877",
"0.48231202",
"0.48226285",
"0.48105136",
"0.4810298",
"0.48000357",
"0.47999635",
"0.47987804",
"0.47920895",
"0.4786291",
"0.47706842",
"0.47685736",
"0.47684807",
"0.4768041",
"0.47676992",
"0.47632176",
"0.4761828",
"0.4761766",
"0.47591394",
"0.47565237",
"0.47525048",
"0.4752376",
"0.47481483",
"0.4744625",
"0.4740494",
"0.47396293",
"0.4731915",
"0.47255778",
"0.47226188",
"0.4720667",
"0.47175038",
"0.47175038",
"0.47165227",
"0.47134835",
"0.47109672",
"0.47085458",
"0.47068602",
"0.470273",
"0.4697842",
"0.4696386",
"0.46950635",
"0.46950635",
"0.46914726",
"0.46891877",
"0.468772",
"0.46854112",
"0.4684771",
"0.4678754",
"0.46776247",
"0.46760088",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46705312",
"0.46702778",
"0.46682474"
] |
0.0
|
-1
|
Smooth scroll by a Y delta
|
private void doScrollY(int delta) {
if (delta != 0) {
if (isSmoothScrollingEnabled()) {
smoothScrollBy(0, delta);
} else {
scrollBy(0, delta);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void scroll(int scrollTop);",
"void scrollToY(int y) {\n double adjustedY = (double) y - scrollButtonTotalHeight;\n double percentage = adjustedY / (pastSize.height - scrollButtonTotalHeight);\n int minimum = getScrollBar().getModel().getMinimum();\n int maximum = getScrollBar().getModel().getMaximum();\n double range = (double) maximum - (double) minimum;\n int modelValue = (int) (percentage * range);\n getScrollBar().getModel().setValue(modelValue);\n }",
"public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\n }",
"public abstract void scroll(long ms);",
"public void scrollToYPos(int y) {\n verticalScroll = y;\n repaint();\n }",
"void setScrollTop(int scrollTop);",
"public void onScroll(State state, int positionY);",
"private float scrollToTarget(double delta, float positionToUpdate, float targetPosition) {\r\n if(positionToUpdate > targetPosition){\r\n positionToUpdate -= scrollSpeed * delta;\r\n positionToUpdate = Math.max(targetPosition, positionToUpdate);\r\n } else if (positionToUpdate < targetPosition){\r\n positionToUpdate += scrollSpeed * delta;\r\n positionToUpdate = Math.min(targetPosition, positionToUpdate);\r\n }//End if\r\n return positionToUpdate;\r\n }",
"public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}",
"private void scrollDown(int deltaY) {\n if (!mIsRefreshing && getScrollY() <= 0 && reachTopEdge()) {\n final int curHeaderViewHeight = getCurrentHeaderViewHeight();\n if (curHeaderViewHeight < mHeaderViewHeight) {\n int newHeaderViewHeight = curHeaderViewHeight + deltaY;\n if (newHeaderViewHeight < mHeaderViewHeight) {\n setHeaderViewHeight(newHeaderViewHeight);\n return ;\n } else {\n setHeaderViewHeight(mHeaderViewHeight);\n deltaY = newHeaderViewHeight - mHeaderViewHeight;\n }\n }\n }\n\n scrollBy(0, -deltaY);\n }",
"private final void smoothScrollTo(int scrollValue, long duration)\n\t{\n\t\tsmoothScrollTo(scrollValue, duration, 0, null);\n\t}",
"public void slowDownY() {\n double temp;\n temp = this.getySpeed();\n if (temp > 0.1 || temp < -0.1) {\n temp /= 1.1;\n } else {\n temp = 0;\n }\n this.setySpeed(temp);\n }",
"public void mouseWheel(MouseEvent event) {\n ackEvent();\n float e = event.getCount();\n verticalScroll -= 10 * e;\n if (verticalScroll >= MAX_SCROLL) verticalScroll = MAX_SCROLL;\n else if (verticalScroll <= MIN_SCROLL) verticalScroll = MIN_SCROLL;\n }",
"public void smoothScrollTo(int i, int i2) {\n smoothScrollTo(i, i2, 0);\n }",
"private void sendScroll() {\n\t\tfinal Handler handler = new Handler();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (mTopIndex <= mFinalIndex) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmTopIndex += 0.1;\n\t\t\t\t\t\t\tscrollView.scrollBy(0, (int) mTopIndex);\n\t\t\t\t\t\t\tif (mTopIndex >= mFinalIndex) {\n\t\t\t\t\t\t\t\tmTopIndex = 0;\n\t\t\t\t\t\t\t\tscrollView.fullScroll(ScrollView.FOCUS_UP);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Check if scroll completed or not\n\t\t\t\t\t\t\tif (mFirstScroll && (mPrevY == scrollView.getScrollY())) {\n\t\t\t\t\t\t\t\tmFinalIndex = mTopIndex + 5;\n\t\t\t\t\t\t\t\tmFirstScroll = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmPrevY = scrollView.getScrollY();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}",
"int getScrollOffsetY();",
"public void scrollUp() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value - 1000) + \");\");\n }",
"void setScrollPosition(int x, int y);",
"public String scrollVertically(String object, String data) {\n try {\n\n Thread.sleep(1000);\n int d = Integer.parseInt(data);\n ((JavascriptExecutor) driver).executeScript(\"window.scrollBy(0,\" + d + \")\", \"\");\n return Constants.KEYWORD_PASS;\n } catch (Exception e) {\n e.printStackTrace();\n return Constants.KEYWORD_FAIL + e.getMessage();\n }\n }",
"public void useScrolling() {\n\t\t((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\n\t\t\n\t\t((JavascriptExecutor)driver).executeScript(\"window.scrollBy(0, 1200)\");\n\t\t// document.getElementsByClassName(\" \");\n\t\t// document.getElementsById(\" \");\n\t\t\n\t}",
"public abstract boolean scroll(Direction direction);",
"int getScrollTop();",
"public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }",
"public static void abaixaTela(int valorY){\n\t\tjs.executeScript(\"window.scrollBy(0,\"+valorY+\")\", \"\");\n\t}",
"public void scrollDown(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + coordinatedFromTop + \");\");\n }",
"public void moveY(int deltaY) {\n\t\tmScrollTop = mScrollTop + deltaY;\n\t\tif (mScrollTop > 0) {\n\t\t\tmScrollTop = 0;\n\t\t}\n\t\tif (mScrollTop < mBottomBound) {\n\t\t\tmScrollTop = mBottomBound;\n\t\t}\n\t\tinvalidate();\n\t}",
"public void scrollScreen(){\r\n//for smile\r\n\t\tif (smile.getY() < (Constants.GAMEHEIGHT/3)){\r\n\r\n\t\t\tfor (int a = 0; a < arrayPlat.size(); a++){\r\n\r\n\t\t\t\tarrayPlat.get(a).setY(arrayPlat.get(a).getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\t\t\t\t\t\t}\r\n\t\t\t//for monster\r\n\t\t\tfor(Monster monster:arrayMonster) {\r\n\t\t\t\tmonster.setY(monster.getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsmile.setY(Constants.GAMEHEIGHT/3);\r\n\r\n\t\t}\r\n\r\n\t}",
"public static void scrollDown(WebDriver driver) {\n\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\tjse.executeScript(\"scroll(0, 250)\");\n\t}",
"public void update(double delta){\r\n if(targetX != null){\r\n x = scrollToTarget(delta, x, targetX);\r\n if(x == targetX){\r\n targetX = null;\r\n }//End if\r\n }//End if\r\n if(targetY != null){\r\n y = scrollToTarget(delta, y, targetY);\r\n if(y == targetY){\r\n targetY = null;\r\n }//End if\r\n }//End if\r\n }",
"private void scrollTo(final View view) {\n\n new Handler().post(new Runnable() {\n @Override\n public void run() {\n scroll.smoothScrollTo(0, view.getBottom());\n }\n });\n }",
"private void scrollToBottom() {\n UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());\n int deviceHeight = uiDevice.getDisplayHeight();\n\n int statusBarHeight = statusBarHeight();\n int navigationBarHeight = navigationBarHeight();\n\n int padding = 20;\n int swipeSteps = 5;\n int viewPortBottom = deviceHeight - statusBarHeight - navigationBarHeight;\n int fromY = deviceHeight - navigationBarHeight - padding;\n int toY = statusBarHeight + padding;\n int delta = fromY - toY;\n while (viewPortBottom < scaleAbsoluteCoordinateToViewCoordinate(TEST_PAGE_HEIGHT)) {\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n viewPortBottom += delta;\n }\n // Repeat an addition time to avoid flakiness.\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n }",
"@Override\n public void scrollVertical(int direction) {\n return;\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"void onScrollEnd(State state, int positionY, int duration);",
"public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }",
"@Override\n public void run() {\n\n lvMusics.smoothScrollBy(80, 10);\n handler.postDelayed(run_scroll_up, 1000);\n }",
"@Override\n public void run() {\n\n lvMusics.smoothScrollBy(-80, 10);\n handler.postDelayed(run_scroll_up, 1000);\n }",
"@Test(priority = 2)\n\tpublic void scrolling() throws InterruptedException {\n\t\tThread.sleep(800);\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"window.scrollBy(0,500)\");\n\t\tjs.executeScript(\"window.scrollBy(0,-800)\");\n\n\t}",
"@Override\n public void run() {\n\n try {\n Thread.sleep(300);\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n }\n\n while (running) {\n\n Platform.runLater(this::scrollY);\n\n try {\n sleep(15);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public static void scrollDown(int pixel) {\n\t\tgetJSObject().executeScript(\"window.scrollBy(0,\" + pixel + \")\");\n\t}",
"public synchronized void scrollDown()\r\n\t{\r\n\t\treferenceImage.scrollDown();\r\n\t\tdisplayedImage.scrollDown();\r\n\t}",
"private void scrollUp(int deltaY) {\n final int scrollY = getScrollY();\n if (scrollY < 0) {\n if (scrollY < deltaY) { // both scrollY and deltaY are less than 0\n scrollBy(0, -deltaY);\n return;\n } else {\n scrollTo(0, 0);\n deltaY -= scrollY;\n\n if (deltaY == 0) {\n return;\n }\n }\n }\n\n if (!mIsRefreshing) {\n int curHeaderViewHeight = getCurrentHeaderViewHeight();\n if (curHeaderViewHeight > 0) {\n\n int newHeaderViewHeight = curHeaderViewHeight + deltaY;\n if (newHeaderViewHeight > 0) {\n setHeaderViewHeight(newHeaderViewHeight);\n\n return;\n } else {\n setHeaderViewHeight(0);\n\n deltaY = newHeaderViewHeight;\n }\n }\n }\n\n if (reachBottomEdge()) {\n scrollBy(0, -deltaY);\n }\n }",
"public void scrollDownEvent(int timesToRepeat) throws InterruptedException {\n String currentDoc = \"\";\n for (int i = 0; i < timesToRepeat; i++) {\n currentDoc = driver.getPageSource();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n jse.executeScript(\"window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight));\");\n Thread.sleep(4000);\n }\n }",
"@Override\n\tpublic void computeScroll() {\n\t\tif (mScroller.computeScrollOffset()) {\n\t\t\tint oldX = mScrollLeft;\n\t\t\tint oldY = mScrollTop;\n\t\t\t\n\t\t\tint x = mScroller.getCurrX();\n\t\t\tint y = mScroller.getCurrY();\n\n\t\t\tif (oldX != x) {\n\t\t\t\tmoveX(x-oldX);\n\t\t\t}\n\t\t\tif (oldY != y) {\n\t\t\t\tmoveY(y-oldY);\n\t\t\t}\n\t\t}\n\t}",
"private void fling(int velocityY) {\n\t\tmPreviousScrollerY = 0;\n\n\t\tif (velocityY > 0) {\n\t\t\tmFlingScroller\n\t\t\t\t\t.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE);\n\t\t} else {\n\t\t\tmFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0, 0,\n\t\t\t\t\tInteger.MAX_VALUE);\n\t\t}\n\n\t\tinvalidate();\n\t}",
"public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }",
"public void jumpToXY(double x, double y) {\n if (!root.getChildren().contains(cursor)) {\n root.getChildren().add(cursor);\n }\n\n int targetLineNo = getTargetLineByPos(y+getScrollVal());\n if (targetLineNo >= textBuffer.getMaxLine()) {\n textBuffer.setCurToTail();\n return;\n }\n textBuffer.setCurToTargetNo(targetLineNo);\n lineJumpHelper(round(x));\n }",
"public void smoothScrollTo(int i, int i2, int i3) {\n int i4;\n if (getChildCount() == 0) {\n setScrollingCacheEnabled(false);\n return;\n }\n int scrollX = getScrollX();\n int scrollY = getScrollY();\n int i5 = i - scrollX;\n int i6 = i2 - scrollY;\n if (i5 == 0 && i6 == 0) {\n completeScroll(false);\n populate();\n setScrollState(0);\n return;\n }\n setScrollingCacheEnabled(true);\n setScrollState(2);\n int clientWidth = getClientWidth();\n int i7 = clientWidth / 2;\n float f = (float) clientWidth;\n float f2 = (float) i7;\n float distanceInfluenceForSnapDuration = f2 + (distanceInfluenceForSnapDuration(Math.min(1.0f, (((float) Math.abs(i5)) * 1.0f) / f)) * f2);\n int abs = Math.abs(i3);\n if (abs > 0) {\n i4 = Math.round(Math.abs(distanceInfluenceForSnapDuration / ((float) abs)) * 1000.0f) * 4;\n } else {\n i4 = (int) (((((float) Math.abs(i5)) / ((f * this.mAdapter.getPageWidth(this.mCurItem)) + ((float) this.mPageMargin))) + 1.0f) * 100.0f);\n }\n this.mScroller.startScroll(scrollX, scrollY, i5, i6, Math.min(i4, 600));\n ViewCompat.postInvalidateOnAnimation(this);\n }",
"public static void scrollTo(AndroidDriver<AndroidElement> driver,String direction, int times) throws InterruptedException {\n Thread.sleep(1000);\n if (direction.equals(\"down\")) {\n Dimension dim = driver.manage().window().getSize();\n int width = dim.getWidth() / 2;\n for (int i = 0; i < times; i++) {\n int startY = (int) (dim.getHeight() * 0.7);\n int endY = (int) (dim.getHeight() * 0.5);\n new TouchAction(driver).press(point(width, startY)).waitAction(waitOptions(Duration.ofSeconds(1)))\n .moveTo(point(width, endY)).release().perform();\n\n }\n\n }\n }",
"void scroll(int dir) {\n if (!isScrolling && selectedEgg - dir >= 0 && selectedEgg - dir < shopEggs.size()) {\n isScrolling = true;\n if (dir > 0) {\n setEggGoRight(selectedEgg);\n setEggGoRight(selectedEgg - 1);\n } else {\n setEggGoLeft(selectedEgg);\n setEggGoLeft(selectedEgg + 1);\n }\n selectedEgg -= dir;\n }\n }",
"public void updateScroll (float distance){\n this.updatePosition(centerX, centerY + distance);\n }",
"void onPull(int scrollY);",
"public void scrollUp() {\n JavascriptExecutor jse = (JavascriptExecutor)driver;\n jse.executeScript(\"window.scrollBy(0, -500)\", new Object[]{\"\"});\n }",
"public void setFrameY(double aY) { double y = _y + aY - getFrameY(); setY(y); }",
"public void scrollDownEvent() throws InterruptedException {\n String currentDoc = \"\";\n do {\n currentDoc = driver.getPageSource();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n jse.executeScript(\"window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight));\");\n Thread.sleep(4000);\n } while (!currentDoc.equals(driver.getPageSource()));\n System.out.println(\"We are in the end of the page\");\n }",
"@Override\n public void scrollToPosition(int position) {\n smoothScrollToPosition(position);\n }",
"public void mouseWheel(MouseEvent event) {\n\n // checks if scrolled is within the texts size\n if ( scrolled >= 0 && scrolled < scenes.texts[scene].height) {\n\n //getCount returns a positive (+1) when scrolled up, and a negative (-1) when down.\n float e = event.getCount();\n scrolled += e * scrollSpeed;\n }\n\n // checks and make sure that scrolled is never below zero or above the texts size\n if (scrolled < 0) {\n scrolled = 0;\n } else if (scrolled > scenes.texts[scene].height - (scenes.textSizeHeight / 2) ) {\n scrolled = scenes.texts[scene].height - (scenes.textSizeHeight / 2);\n }\n}",
"public void scrollDown() throws Exception {\n Dimension size = driver.manage().window().getSize();\n //Starting y location set to 80% of the height (near bottom)\n int starty = (int) (size.height * 0.80);\n //Ending y location set to 20% of the height (near top)\n int endy = (int) (size.height * 0.20);\n //endy=driver.findElement(By.xpath(\"//*[@text='Terms']\")).getLocation().getY();\n //x position set to mid-screen horizontally\n int startx = size.width / 2;\n\n TouchAction touchAction = new TouchAction(driver);\n \n int i=8;\n while(i-->0) {\n touchAction\n .press(PointOption.point(startx, starty))\n .waitAction(new WaitOptions().withDuration(Duration.ofSeconds(1)))\n .moveTo(PointOption.point(startx, endy))\n .release().perform();\n }\n// touchAction.tap(PointOption.point(startx, endy)).perform();\n// touchAction.moveTo(PointOption.point(startx, endy)).perform();\n System.out.println(\"Tap Complete\");\n \n// new TouchAction((PerformsTouchActions) driver)\n// .moveTo(new PointOption<>().point(startx, endy))\n// .release()\n// .perform();\n\n}",
"public void setScroll(int dx,int dy){\n\t\txscroll=dx;\n\t\tyscroll=dy;\n\t}",
"void onScrollingFinished(RulerWheel wheel);",
"public void autoscroll(Point p) {\r\n \t\tBasicGraphUI.autoscroll(graph, p);\r\n \t}",
"boolean hasScrollOffsetY();",
"@Override\n public void onScrollChanged(int scrollY) {\n textview.setTranslationY(scrollY);\n if(scrollY==0){\n linearLayout.setTranslationY(textview.getHeight());\n \n }\n }",
"protected void animateScrollbar(boolean isScrolling) {\n if (scrollbarAnimator != null) {\n scrollbarAnimator.cancel();\n }\n\n scrollbarAnimator = new AnimatorGroup();\n /*ObjectAnimator trackWidthAnim = ObjectAnimator.ofInt(this, \"trackWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue trackWidthAnim = new AnimatorValue();\n trackWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setTrackWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n /*ObjectAnimator thumbWidthAnim = ObjectAnimator.ofInt(this, \"thumbWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue thumbWidthAnim = new AnimatorValue();\n thumbWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setThumbWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n scrollbarAnimator.runParallel(trackWidthAnim, thumbWidthAnim);\n\n\n if (thumbActiveColor != thumbInactiveColor) {\n /*ValueAnimator colorAnimation = ValueAnimator\n .ofObject(new ArgbEvaluator(), thumbPaint.getColor(), isScrolling ? thumbActiveColor : thumbInactiveColor);\n colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n @Override\n public void onAnimationUpdate(ValueAnimator animator) {\n thumbPaint.setColor((Integer) animator.getAnimatedValue());\n recyclerView\n .invalidate(thumbOffset.x, thumbOffset.y, thumbOffset.x + thumbWidth, thumbOffset.y + thumbHeight);\n }\n });*/\n\n AnimatorValue colorAnimation = new AnimatorValue();\n colorAnimation.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n int color = getAnimatedColor(v,thumbPaint.getColor().getValue());\n thumbPaint.setColor(new Color(color));\n recyclerView.invalidate();\n }\n });\n\n scrollbarAnimator.runSerially(colorAnimation);\n }\n scrollbarAnimator.setDuration(SCROLL_BAR_VIS_DURATION);\n scrollbarAnimator.start();\n }",
"@Override\n\t public void startScroll(int startX, int startY, int dx, int dy) {\n\t super.startScroll(startX, startY, dx, dy, mDuration);\n\t }",
"@Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n float scrollTheta = vectorToScalarScroll(\n velocityX,\n velocityY,\n e2.getX() - mPieBounds.centerX(),\n e2.getY() - mPieBounds.centerY());\n mScroller.fling(\n 0,\n (int) getPieRotation(),\n 0,\n (int) scrollTheta / FLING_VELOCITY_DOWNSCALE,\n 0,\n 0,\n Integer.MIN_VALUE,\n Integer.MAX_VALUE);\n\n // Start the animator and tell it to animate for the expected duration of the fling.\n if (Build.VERSION.SDK_INT >= 11) {\n mScrollAnimator.setDuration(mScroller.getDuration());\n mScrollAnimator.start();\n }\n return true;\n }",
"@Override\r\n public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state){\r\n // Nothing to do when there are no attached items or dy = 0.\r\n if(getChildCount() == 0 || dy == 0){\r\n return 0;\r\n }\r\n return scrollBy(dy, recycler, state);\r\n\r\n }",
"@Override\r\n\tprotected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) {\r\n\t\tif (_scrollActive) {\r\n\t\t\t_curScrollValue += mouseY - _lastScrollPosY;\r\n\t\t\t_curScrollValue = Math.max(0, Math.min(_curScrollValue, _maxScrollValue));\r\n\t\t\t_lastScrollPosY = mouseY;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsuper.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick);\r\n\t}",
"@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }",
"public void computeScroll() {\n /* 93 */\n if (this.mChartTouchListener instanceof PieRadarChartTouchListener) {\n /* 94 */\n ((PieRadarChartTouchListener) this.mChartTouchListener).computeScroll();\n /* */\n }\n /* */\n }",
"void onScrollingStarted(RulerWheel wheel);",
"public int scroll( float dt, float scroll_speed, int cam_width) { \r\n\t\tfloat scroll_to_add = scroll_speed*dt;\r\n\t\ttotal_scroll += scroll_to_add;\r\n\t\tleft_map_scroll += scroll_to_add;\r\n\t\treturn check(cam_width);\r\n\t}",
"@Override\n public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {\n float scrollTheta = vectorToScalarScroll(\n distanceX,\n distanceY,\n e2.getX() - mPieBounds.centerX(),\n e2.getY() - mPieBounds.centerY());\n setPieRotation(getPieRotation() - (int) scrollTheta / FLING_VELOCITY_DOWNSCALE);\n return true;\n }",
"@Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\n return false;\r\n }",
"public void jsScroll(By locator) {\n int elementLocation = find(locator).getLocation().getY();\n JavascriptExecutor js = (JavascriptExecutor) driver;\n js.executeScript(\"window.scrollTo(0,\" + elementLocation + \")\");\n }",
"@Override\n public void startScroll(int startX, int startY, int dx, int dy) {\n super.startScroll(startX, startY, dx, dy, mDuration);\n }",
"@Override\n public void startScroll(int startX, int startY, int dx, int dy) {\n super.startScroll(startX, startY, dx, dy, mDuration);\n }",
"void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"public static void main(String[] args) {\nSystem.out.println(scroll(\"lalala\"));\n\t}",
"void moveY(float y) {\n _y += y;\n }",
"@Override\n\t public void startScroll(int startX, int startY, int dx, int dy, int duration) {\n\t super.startScroll(startX, startY, dx, dy, mDuration);\n\t }",
"@Override\n public void onAbsoluteScrollChange(int i) {\n }",
"void onFastScrollStop(FastScroller fastScroller);",
"public void yDelta(float y_delta)\n {\n super.setY(super.getY() + y_delta);\n }",
"public ScrollToEnd(IMusicModel model, IGuiView gui) {\n this.model = model;\n this.gui = gui;\n }",
"double getPositionY();",
"double getPositionY();",
"double getPositionY();",
"@Override\n public void run() {\n moveScrollDown();\n }",
"public void onScrollDown(View view) {\n if (!checkReady()) {\n return;\n }\n\n changeCamera(CameraUpdateFactory.scrollBy(0, SCROLL_BY_PX));\n }",
"@Override\n public float screenToScroll(float screenSpace) {\n return screenSpace;\n }",
"private void stopScrolling() {\n mScroller.forceFinished(true);\n if (Build.VERSION.SDK_INT >= 11) {\n mAutoCenterAnimator.cancel();\n }\n }",
"public void computeScroll() {\n if (!this.mDragHelper.continueSettling(true)) return;\n if (!this.mCanSlide) {\n this.mDragHelper.abort();\n return;\n }\n ViewCompat.postInvalidateOnAnimation((View)this);\n }",
"public void moveDown()\n {\n if (yPos == yBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive Y because we are moving DOWN!\n movementY = 0.5;\n movementX = 0;\n }",
"protected void snatchTo(int x, int y) {\r\n\t\tif (D)\r\n\t\t\tLog.d(TAG, \"SnatchTo x=\" + x + \" y=\" + y + \" startX=\"\r\n\t\t\t\t\t+ getScrollX());\r\n\r\n\t\tint startX = getScrollX();\r\n\r\n\t\tif (!mScroller.isFinished()) {\r\n\t\t\tmScroller.abortAnimation();\r\n\t\t}\r\n\t\tmScroller.startScroll(startX, getScrollY(), x - startX, getScrollY(),\r\n\t\t\t\tMath.abs(x - startX) * 2);\r\n\t\tinvalidate();\r\n\t}",
"@Override\n public void startScroll(int startX, int startY, int dx, int dy, int duration) {\n super.startScroll(startX, startY, dx, dy, mDuration);\n }",
"@Override\n public void startScroll(int startX, int startY, int dx, int dy, int duration) {\n super.startScroll(startX, startY, dx, dy, mDuration);\n }",
"public void moveY(double y) {\n this.y += y;\n }",
"public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }",
"public static void abaixaTela(int valorX,int valorY){\n\t\tjs.executeScript(\"window.scrollBy(\"+valorX+\",\"+valorY+\")\", \"\");\n\t}"
] |
[
"0.7004452",
"0.6879405",
"0.6689628",
"0.668574",
"0.66581035",
"0.62215555",
"0.62171125",
"0.62135446",
"0.6084974",
"0.6050532",
"0.6001413",
"0.59819686",
"0.5957092",
"0.58990794",
"0.5895574",
"0.58889204",
"0.5874218",
"0.58635795",
"0.5840187",
"0.5833826",
"0.5819602",
"0.58120054",
"0.5800123",
"0.57379216",
"0.5719271",
"0.5702734",
"0.5690317",
"0.5667597",
"0.5662942",
"0.56497693",
"0.5646711",
"0.5629348",
"0.5621483",
"0.56204957",
"0.56194705",
"0.56120795",
"0.5603577",
"0.55999565",
"0.55951285",
"0.55795515",
"0.5563315",
"0.5556135",
"0.5551818",
"0.5538065",
"0.5506953",
"0.5505998",
"0.5493643",
"0.5472143",
"0.5441357",
"0.5430179",
"0.5422589",
"0.5404451",
"0.53979206",
"0.5393157",
"0.53855675",
"0.536764",
"0.5366491",
"0.53573805",
"0.5353082",
"0.5333701",
"0.5321171",
"0.5320701",
"0.53185064",
"0.5316073",
"0.5298756",
"0.5298611",
"0.52978605",
"0.5295943",
"0.5295869",
"0.5290936",
"0.5278271",
"0.52619594",
"0.5252541",
"0.5250018",
"0.52321756",
"0.52255166",
"0.52255166",
"0.5212584",
"0.5211592",
"0.5198835",
"0.5187107",
"0.5184537",
"0.517588",
"0.5172637",
"0.51675266",
"0.51538336",
"0.51538336",
"0.51538336",
"0.51528376",
"0.514606",
"0.5134689",
"0.5130894",
"0.51295096",
"0.51272595",
"0.5123668",
"0.5119229",
"0.5119229",
"0.51115036",
"0.5108758",
"0.5108413"
] |
0.7189308
|
0
|
change the dataDictionary to disallow copying
|
public static void testConvertIntoCopy_copyDisallowed(MaintenanceDocument document, DataDictionaryService dataDictionaryService) throws Exception {
DataDictionary d = dataDictionaryService.getDataDictionary();
Class documentClass = document.getClass();
boolean originalValue = d.getDocumentEntry(documentClass.getName()).getAllowsCopy();
try {
d.getDocumentEntry(documentClass.getName()).setAllowsCopy(false);
boolean failedAsExpected = false;
try {
((Copyable) document).toCopy();
}
catch (IllegalStateException e) {
failedAsExpected = true;
}
assertTrue(failedAsExpected);
}
finally {
d.getDocumentEntry(documentClass.getName()).setAllowsCopy(originalValue);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setDataUnsafe(Serializable data) { this.data = data; }",
"public void setData(LinkedHashMap<Integer, Data> data){\r\n\t\tthis.data = data;\r\n\t}",
"public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"public int updateDictData(SysDictData dictData);",
"@Override\n\tpublic void changementMap(String dataName) {\n\t\talgo.setDataName(dataName);\n\t}",
"public abstract void setData(Map<ID, T> data);",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }",
"default Map<String, Object> replaceDataReferences(final Map<String, Object> input) {\n return DataContextUtils.replaceDataReferences(input, getData());\n }",
"public void copyFrom(CompoundTag data) {\n this.data.getAllKeys().clear();\n this.data.merge(data);\n }",
"public Map<T, V> copyData(Map<T, V> map) {\n Map<T, V> newMap = new HashMap<>();\n for (Map.Entry<T, V> entrySet : map.entrySet()) {\n T key = entrySet.getKey();\n V value = entrySet.getValue();\n newMap.put(key, value);\n }\n return newMap;\n }",
"@Override\n\tpublic void setDataLevel(int dataLevel) {\n\t\t_dictData.setDataLevel(dataLevel);\n\t}",
"protected boolean keepEntry(ShapeEntry shapeEntry, Map<String, Object> data) {\n\t\treturn true;\n\t}",
"public void setDataDictionaryService(DataDictionaryService dataDictionaryService) {\r\n this.dataDictionaryService = dataDictionaryService;\r\n }",
"public void setDataDictionaryService(DataDictionaryService dataDictionaryService) {\r\n this.dataDictionaryService = dataDictionaryService;\r\n }",
"public void save(HashMap<Integer, T> data) {\n\t\tthis.data.putAll(data);\n\t}",
"@Override\n\tpublic void setDictDataId(long dictDataId) {\n\t\t_dictData.setDictDataId(dictDataId);\n\t}",
"@Override\n\tpublic void setDataCode(java.lang.String dataCode) {\n\t\t_dictData.setDataCode(dataCode);\n\t}",
"static void setNotCopying(){isCopying=false;}",
"@Override\n\tpublic void updateDataListMap(List<Map<String, Object>> dataList) {\n\t\t\n\t}",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"public void updateData(Dictionary dictionary, boolean isDictionaryFrozenCheckRequired) throws LIMSRuntimeException {\n\n // bugzilla 1386 throw Exception if record already exists\n try {\n if (duplicateDictionaryExists(dictionary)) {\n throw new LIMSDuplicateRecordException(\"Duplicate record exists for \" + dictionary.getDictEntry());\n }\n } catch (Exception e) {\n // bugzilla 2154\n LogEvent.logError(\"DictionaryDAOImpl\", \"updateData()\", e.toString());\n throw new LIMSRuntimeException(\"Error in Dictionary updateData()\", e);\n }\n\n // bugzilla 1482 throw Exception if dictionary is already referenced in\n // the system\n try {\n if (isDictionaryFrozenCheckRequired) {\n if (isDictionaryFrozen(dictionary)) {\n throw new LIMSFrozenRecordException(\"Dictionary Entry is referenced \" + dictionary.getDictEntry());\n }\n }\n } catch (Exception e) {\n // bugzilla 2154\n LogEvent.logError(\"DictionaryDAOImpl\", \"updateData()\", e.toString());\n throw new LIMSRuntimeException(\"Error in Dictionary updateData()\", e);\n }\n\n Dictionary oldData = (Dictionary) readDictionary(dictionary.getId());\n Dictionary newData = dictionary;\n\n // add to audit trail\n try {\n AuditTrailDAO auditDAO = new AuditTrailDAOImpl();\n String sysUserId = dictionary.getSysUserId();\n String event = IActionConstants.AUDIT_TRAIL_UPDATE;\n String tableName = \"DICTIONARY\";\n auditDAO.saveHistory(newData, oldData, sysUserId, event, tableName);\n } catch (Exception e) {\n // bugzilla 2154\n LogEvent.logError(\"DictionaryDAOImpl\", \"updateData()\", e.toString());\n throw new LIMSRuntimeException(\"Error in Dictionary AuditTrail updateData()\", e);\n }\n\n try {\n HibernateUtil.getSession().merge(dictionary);\n HibernateUtil.getSession().flush();\n HibernateUtil.getSession().clear();\n HibernateUtil.getSession().evict(dictionary);\n HibernateUtil.getSession().refresh(dictionary);\n } catch (Exception e) {\n // bugzilla 2154\n LogEvent.logError(\"DictionaryDAOImpl\", \"updateData()\", e.toString());\n throw new LIMSRuntimeException(\"Error in Dictionary updateData()\", e);\n }\n }",
"public void setDictDataId(long dictDataId);",
"public void setData(Hashtable<String, Vector<Double>> data)\n {\n this.data = data;\n }",
"public int insertDictData(SysDictData dictData);",
"public void \n\tsetData(\n\t\t\tString key, \n\t\t\tObject value) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) {\n\t\t\t\tuser_data = new HashMap();\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\tif (user_data.containsKey(key))\n\t\t\t\t\tuser_data.remove(key);\n\t\t\t} else {\n\t\t\t\tuser_data.put(key, value);\n\t\t\t}\n\t\t}finally{\n\t\t\tthis_mon.exit();\n\t\t}\n\t}",
"public static p035ru.unicorn.ujin.ble.data.BleKeyData copyOrUpdate(p046io.realm.Realm r8, p046io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxy.BleKeyDataColumnInfo r9, p035ru.unicorn.ujin.ble.data.BleKeyData r10, boolean r11, java.util.Map<p046io.realm.RealmModel, p046io.realm.internal.RealmObjectProxy> r12, java.util.Set<p046io.realm.ImportFlag> r13) {\n /*\n boolean r0 = r10 instanceof p046io.realm.internal.RealmObjectProxy\n if (r0 == 0) goto L_0x0038\n r0 = r10\n io.realm.internal.RealmObjectProxy r0 = (p046io.realm.internal.RealmObjectProxy) r0\n io.realm.ProxyState r1 = r0.realmGet$proxyState()\n io.realm.BaseRealm r1 = r1.getRealm$realm()\n if (r1 == 0) goto L_0x0038\n io.realm.ProxyState r0 = r0.realmGet$proxyState()\n io.realm.BaseRealm r0 = r0.getRealm$realm()\n long r1 = r0.threadId\n long r3 = r8.threadId\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 != 0) goto L_0x0030\n java.lang.String r0 = r0.getPath()\n java.lang.String r1 = r8.getPath()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0038\n return r10\n L_0x0030:\n java.lang.IllegalArgumentException r8 = new java.lang.IllegalArgumentException\n java.lang.String r9 = \"Objects which belong to Realm instances in other threads cannot be copied into this Realm instance.\"\n r8.<init>(r9)\n throw r8\n L_0x0038:\n io.realm.BaseRealm$ThreadLocalRealmObjectContext r0 = p046io.realm.BaseRealm.objectContext\n java.lang.Object r0 = r0.get()\n io.realm.BaseRealm$RealmObjectContext r0 = (p046io.realm.BaseRealm.RealmObjectContext) r0\n java.lang.Object r1 = r12.get(r10)\n io.realm.internal.RealmObjectProxy r1 = (p046io.realm.internal.RealmObjectProxy) r1\n if (r1 == 0) goto L_0x004b\n ru.unicorn.ujin.ble.data.BleKeyData r1 = (p035ru.unicorn.ujin.ble.data.BleKeyData) r1\n return r1\n L_0x004b:\n r1 = 0\n if (r11 == 0) goto L_0x008c\n java.lang.Class<ru.unicorn.ujin.ble.data.BleKeyData> r2 = p035ru.unicorn.ujin.ble.data.BleKeyData.class\n io.realm.internal.Table r2 = r8.getTable(r2)\n long r3 = r9.serialNumberIndex\n r5 = r10\n io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxyInterface r5 = (p046io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxyInterface) r5\n long r5 = r5.realmGet$serialNumber()\n long r3 = r2.findFirstLong(r3, r5)\n r5 = -1\n int r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r7 != 0) goto L_0x0069\n r0 = 0\n goto L_0x008d\n L_0x0069:\n io.realm.internal.UncheckedRow r3 = r2.getUncheckedRow(r3) // Catch:{ all -> 0x0087 }\n r5 = 0\n java.util.List r6 = java.util.Collections.emptyList() // Catch:{ all -> 0x0087 }\n r1 = r0\n r2 = r8\n r4 = r9\n r1.set(r2, r3, r4, r5, r6) // Catch:{ all -> 0x0087 }\n io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxy r1 = new io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxy // Catch:{ all -> 0x0087 }\n r1.<init>() // Catch:{ all -> 0x0087 }\n r2 = r1\n io.realm.internal.RealmObjectProxy r2 = (p046io.realm.internal.RealmObjectProxy) r2 // Catch:{ all -> 0x0087 }\n r12.put(r10, r2) // Catch:{ all -> 0x0087 }\n r0.clear()\n goto L_0x008c\n L_0x0087:\n r8 = move-exception\n r0.clear()\n throw r8\n L_0x008c:\n r0 = r11\n L_0x008d:\n r3 = r1\n if (r0 == 0) goto L_0x009a\n r1 = r8\n r2 = r9\n r4 = r10\n r5 = r12\n r6 = r13\n ru.unicorn.ujin.ble.data.BleKeyData r8 = update(r1, r2, r3, r4, r5, r6)\n goto L_0x009e\n L_0x009a:\n ru.unicorn.ujin.ble.data.BleKeyData r8 = copy(r8, r9, r10, r11, r12, r13)\n L_0x009e:\n return r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p046io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxy.copyOrUpdate(io.realm.Realm, io.realm.ru_unicorn_ujin_ble_data_BleKeyDataRealmProxy$BleKeyDataColumnInfo, ru.unicorn.ujin.ble.data.BleKeyData, boolean, java.util.Map, java.util.Set):ru.unicorn.ujin.ble.data.BleKeyData\");\n }",
"protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}",
"@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}",
"public void setPreservedExistingData(Boolean preservedExistingData) {\n this.preservedExistingData = preservedExistingData;\n }",
"public static void setKPIsInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(ALL_KPI_KEY)){\n \t\tmemcache.delete(ALL_KPI_KEY);\n \t}\n \tmemcache.put(ALL_KPI_KEY, dataMap);\n\t}",
"public synchronized Object setData(Object newData) {\n Object old = data;\n data = newData;\n return old;\n }",
"static void setCopying(){isCopying=true;}",
"@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}",
"private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }",
"public void setAdditionalData(ObservableList<MapItemData> data) {\n\n\t\tthis.additionalData = data;\n\n\t}",
"private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}",
"public static void setGeoTargetsInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(ALL_GEO_TARGETS_KEY)){\n \t\tmemcache.delete(ALL_GEO_TARGETS_KEY);\n \t}\n \tmemcache.put(ALL_GEO_TARGETS_KEY, dataMap);\n\t}",
"public boolean clearData(){\r\n\t\t// Clear the map.\r\n\t\tthis.data.clear();\r\n\t\t\r\n\t\t// Verify the data is cleared\r\n\t\tif(this.data.size() > 0) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\t// end if\r\n\t}",
"public abstract Map<Integer, QuantDataset> updatedDatasets();",
"public static void setAdSizeInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADSIZE_KEY)){\n \t\tmemcache.delete(MEDIA_PLAN_ADSIZE_KEY);\n \t}\n \tmemcache.put(MEDIA_PLAN_ADSIZE_KEY, dataMap);\n\t}",
"public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }",
"protected void copy(Writable other) {\n\t\tif (other != null) {\n\t\t\ttry {\n\t\t\t\tDataOutputBuffer out = new DataOutputBuffer();\n\t\t\t\tother.write(out);\n\t\t\t\tDataInputBuffer in = new DataInputBuffer();\n\t\t\t\tin.reset(out.getData(), out.getLength());\n\t\t\t\treadFields(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"map cannot be copied: \" +\n\t\t\t\t\t\te.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"source map cannot be null\");\n\t\t}\n\t}",
"public DictionaryAdapter(Map<String,String> dict) {\n mData = new ArrayList();\n mData.addAll(dict.entrySet());\n }",
"public static HashMap<String, Blob> deepcopytracked(\n HashMap<String, Blob> original) {\n HashMap<String, Blob> copy = new HashMap<String, Blob>();\n for (Map.Entry<String, Blob> entry : original.entrySet()) {\n copy.put(entry.getKey(),\n new Blob(entry.getValue()));\n }\n return copy;\n }",
"public void setData(Object oData) { m_oData = oData; }",
"public void setDatos(HashMap datos) {\r\n this.datos = datos;\r\n }",
"private void setDictionaryImplications() {\n if (usingDictionary) {\n usingDictionaryValue = \"Yes\";\n } else {\n usingDictionaryValue = \"No\";\n }\n textMergeScript.recordScriptAction\n (ScriptConstants.OUTPUT_MODULE,\n ScriptConstants.SET_ACTION,\n ScriptConstants.NO_MODIFIER,\n ScriptConstants.USING_DICTIONARY_OBJECT,\n String.valueOf(usingDictionary));\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t\tprivate void rehash() {\r\n\t\t\t// double size of array\r\n\t\t\tTableElement<K, V>[] NewDictionary = (TableElement<K, V>[]) new TableElement[dictionary.length * 2];\r\n\r\n\t\t\tcurrentCapacity = dictionary.length * 2;\r\n\r\n\t\t\t// re-mod the keys to get new hash\r\n\t\t\tfor (int i = 0; i < dictionary.length; i++) {\r\n\t\t\t\tif (dictionary[i] != null) {\r\n\t\t\t\t\tint newHash = (Math.abs(dictionary[i].getKey().hashCode()) % currentCapacity);\r\n\r\n\t\t\t\t\t// put re-hashed keys into new array\r\n\t\t\t\t\twhile (NewDictionary[newHash] != null) {\r\n\t\t\t\t\t\tint probe = getProbed(newHash);\r\n\t\t\t\t\t\tnewHash = (newHash + probe) % currentCapacity;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tTableElement element = dictionary[i];\r\n\t\t\t\t\tNewDictionary[newHash] = element;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// set old dictionary to new dictionary\r\n\t\t\tthis.dictionary = NewDictionary;\r\n\t\t}",
"public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }",
"public static void setAdFormatInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADFORMAT_KEY)){\n \t\tmemcache.delete(MEDIA_PLAN_ADFORMAT_KEY);\n \t}\n \tmemcache.put(MEDIA_PLAN_ADFORMAT_KEY, dataMap);\n\t}",
"private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}",
"void resetData(ReadOnlyEntryBook newData);",
"static private Map<Object, Object> stripNonKeys(Object hints) {\n if (hints == null) {\n return null;\n }\n @SuppressWarnings(\"unchecked\")\n Map<Object, Object> filtered = (Map) hints;\n for (final Iterator it=hints.keySet().iterator(); it.hasNext();) {\n final Object key = it.next();\n if( key instanceof Stirng){\n \t// not formal\n if (filtered == hints) {\n // Copies the map only if needed.\n filtered = new HashMap<Object, Object>(filtered);\n }\n filtered.remove(key);\n }\n }\n return filtered;\n\t}",
"public static void setIndustriesInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(ALL_INDUSTRIES_KEY)){\n \t\tmemcache.delete(ALL_INDUSTRIES_KEY);\n \t}\n \tmemcache.put(ALL_INDUSTRIES_KEY, dataMap);\n\t}",
"@Override\n public void refreshDataEntries() {\n }",
"void setHashMap();",
"public final void copy(ColumnInfo columnInfo, ColumnInfo columnInfo2) {\n BleKeyDataColumnInfo bleKeyDataColumnInfo = (BleKeyDataColumnInfo) columnInfo;\n BleKeyDataColumnInfo bleKeyDataColumnInfo2 = (BleKeyDataColumnInfo) columnInfo2;\n bleKeyDataColumnInfo2.serialNumberIndex = bleKeyDataColumnInfo.serialNumberIndex;\n bleKeyDataColumnInfo2.keyValueIndex = bleKeyDataColumnInfo.keyValueIndex;\n bleKeyDataColumnInfo2.keyTitleIndex = bleKeyDataColumnInfo.keyTitleIndex;\n bleKeyDataColumnInfo2.keyAssignIndex = bleKeyDataColumnInfo.keyAssignIndex;\n bleKeyDataColumnInfo2.deviceClassIndex = bleKeyDataColumnInfo.deviceClassIndex;\n bleKeyDataColumnInfo2.interfaceTypeIndex = bleKeyDataColumnInfo.interfaceTypeIndex;\n bleKeyDataColumnInfo2.maxColumnIndexValue = bleKeyDataColumnInfo.maxColumnIndexValue;\n }",
"static void setNotAutoCopy(){isAutoCopying=false;}",
"private void loadDummyDataHashMap(DatabaseReference friendsReference) {\n friendsReference.setValue(DummyData.getDummyDataAsHashMap());\n }",
"public void removeVars(){\n this.values = new HashMap<>();\n }",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"protected void binaryValueUnused( BinaryKey key ) {\n }",
"protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }",
"public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }",
"protected DataHolder() {\n\t\tthis.contests = new TreeMap<>();\n\t}",
"protected void addDataMap(DataMap map, DataMap currentMap) {\n\n ProjectController mediator = getProjectController();\n\n if (currentMap != null) {\n // merge with existing map... have to memorize map state before and after\n // to do the right events\n\n Collection<ObjEntity> originalOE = new ArrayList<>(currentMap.getObjEntities());\n Collection<DbEntity> originalDE = new ArrayList<>(currentMap.getDbEntities());\n Collection<QueryDescriptor> originalQueries = new ArrayList<>(currentMap.getQueryDescriptors());\n\n currentMap.mergeWithDataMap(map);\n map = currentMap;\n\n // postprocess changes\n Collection<ObjEntity> newOE = new ArrayList<>(currentMap.getObjEntities());\n Collection<DbEntity> newDE = new ArrayList<>(currentMap.getDbEntities());\n Collection<QueryDescriptor> newQueries = new ArrayList<>(currentMap.getQueryDescriptors());\n\n EntityEvent entityEvent = new EntityEvent(Application.getFrame(), null);\n QueryEvent queryEvent = new QueryEvent(Application.getFrame(), null);\n\n // 1. ObjEntities\n Collection<ObjEntity> addedOE = new ArrayList<>(newOE);\n addedOE.removeAll(originalOE);\n for (ObjEntity e : addedOE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.ADD);\n mediator.fireObjEntityEvent(entityEvent);\n }\n\n Collection<ObjEntity> removedOE = new ArrayList<>(originalOE);\n removedOE.removeAll(newOE);\n for (ObjEntity e : removedOE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.REMOVE);\n mediator.fireObjEntityEvent(entityEvent);\n }\n\n // 2. DbEntities\n Collection<DbEntity> addedDE = new ArrayList<>(newDE);\n addedDE.removeAll(originalDE);\n for(DbEntity e: addedDE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.ADD);\n mediator.fireDbEntityEvent(entityEvent);\n }\n\n Collection<DbEntity> removedDE = new ArrayList<>(originalDE);\n removedDE.removeAll(newDE);\n for(DbEntity e: removedDE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.REMOVE);\n mediator.fireDbEntityEvent(entityEvent);\n }\n\n // 3. queries\n Collection<QueryDescriptor> addedQueries = new ArrayList<>(newQueries);\n addedQueries.removeAll(originalQueries);\n for(QueryDescriptor q: addedQueries) {\n queryEvent.setQuery(q);\n queryEvent.setId(MapEvent.ADD);\n mediator.fireQueryEvent(queryEvent);\n }\n\n Collection<QueryDescriptor> removedQueries = new ArrayList<>(originalQueries);\n removedQueries.removeAll(newQueries);\n for(QueryDescriptor q: removedQueries) {\n queryEvent.setQuery(q);\n queryEvent.setId(MapEvent.REMOVE);\n mediator.fireQueryEvent(queryEvent);\n }\n\n mediator.fireDataMapDisplayEvent(new DataMapDisplayEvent(Application\n .getFrame(), map, (DataChannelDescriptor) mediator\n .getProject()\n .getRootNode(), mediator.getCurrentDataNode()));\n }\n else {\n // fix DataMap name, as there maybe a map with the same name already\n ConfigurationNode root = mediator.getProject().getRootNode();\n map.setName(NameBuilder\n .builder(map, root)\n .baseName(map.getName())\n .name());\n\n // side effect of this operation is that if a node was created, this DataMap\n // will be linked with it...\n mediator.addDataMap(Application.getFrame(), map);\n }\n }",
"@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }",
"public static void clear() {\r\n\t\tdata.set(Collections.<String, String> emptyMap());\r\n\t}",
"private void updateQuantDatasetMap(Map<Integer, QuantDataset> quantDatasetMap) {\n\n Set<Integer> finalSelectedIds = filterSelectionUnit();\n if (finalSelectedIds.size() == quantDatasetMap.size() && finalSelectedIds.containsAll(quantDatasetMap.keySet())) {\n return;\n }\n this.quantDatasetMap = quantDatasetMap;\n updatePieChartSliceSet();\n\n }",
"@Override\r\n\tpublic void updateAccountHashmap(Account acc) {\n\t\tdataMap.put(acc.getAccountNumber(), acc);\r\n\t}",
"@Override\r\n\t\tpublic Object setUserData(String key, Object data, UserDataHandler handler)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public LinkedHashMap<String, SharedDataInfo> sharedData(){\n return new LinkedHashMap<String, SharedDataInfo>();\n }",
"public void setDataPacket(Map<String, List<ICollidable>> dataPacket)\r\n {\r\n _dataPacket = dataPacket;\r\n }",
"private void rehash( )\n {\n HashEntry<AnyType> [ ] oldArray = array;\n\n // Create a new double-sized, empty table\n allocateArray( 2 * oldArray.length );\n occupied = 0;\n theSize = 0;\n\n // Copy table over\n for( HashEntry<AnyType> entry : oldArray )\n if( entry != null) {\n \tput(entry.key, entry.value);\n }\n }",
"public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }",
"void unsetValueSampledData();",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }",
"@Override\r\n protected void prepareDataObjsProps(XmlSignedPropertiesType xmlProps)\r\n {\n XmlSignedDataObjectPropertiesType xmlSignedDataObjProps = new XmlSignedDataObjectPropertiesType();\r\n xmlProps.setSignedDataObjectProperties(xmlSignedDataObjProps);\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void rehash()\r\n\t{\r\n\t\tint M = table.length;\r\n\t\tMapEntry<K, V>[] origTable = table; // save original\r\n\t\t\r\n\t\t//new table\r\n\t\ttable = new MapEntry[2*M + 1];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\t\r\n\t\tfor (MapEntry<K, V> oe : origTable)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = oe;\r\n\t\t\tif (e != null && e != DUMMY) // No need to rehash dummy\r\n\t\t\t{\r\n\t\t\t\tint slot = findSlot(e.getKey(), true);\r\n\t\t\t\ttable[slot] = e;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void mo110858c() {\n HashMap hashMap = this.f90728d;\n if (hashMap != null) {\n hashMap.clear();\n }\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public boolean isSetDataMap() {\n return this.dataMap != null;\n }",
"public void mo86898a() {\n HashMap hashMap = this.f63015a;\n if (hashMap != null) {\n hashMap.clear();\n }\n }",
"private static void fixPopulation() {\r\n \t//get a copy of the population hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \tIterator<String> populationIterator = copy.keySet().iterator();\r\n \twhile (populationIterator.hasNext()) { \r\n String pos = populationIterator.next();\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n //clear the key if there is no more critters in that space\r\n if(critterList.size() == 0 || critterList == null) {\r\n \tpopulation.remove(pos);\r\n }\r\n \t}\r\n }",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"public ProcessedDynamicData deepCopy( ) {\r\n\r\n ProcessedDynamicData copy = new ProcessedDynamicData( this.channelId );\r\n\r\n copy.channelId = this.channelId;\r\n copy.dateTimeStamp = new java.util.Date( this.dateTimeStamp.getTime() );\r\n copy.samplingRate = this.samplingRate;\r\n copy.eu = this.eu;\r\n\r\n copy.min = this.min;\r\n copy.max = this.max;\r\n\r\n copy.measurementType = this.measurementType;\r\n copy.measurementUnit = this.measurementUnit;\r\n\r\n // data and labels\r\n List<Double> dataCopy = new Vector<Double>();\r\n for( int i = 0; i < this.data.size(); i++ ) {\r\n dataCopy.add( new Double( this.data.get( i ) ) );\r\n }\r\n copy.setData( dataCopy );\r\n\r\n List<Double> dataLabels = new Vector<Double>();\r\n for( int i = 0; i < this.dataLabels.size(); i++ ) {\r\n dataLabels.add( new Double( this.dataLabels.get( i ) ) );\r\n }\r\n copy.setDataLabels( dataLabels );\r\n\r\n // create a deep copy of overalls\r\n if( overalls != null ) {\r\n copy.overalls = new OverallLevels( this.overalls.getChannelId() );\r\n copy.overalls.setDateTimeStampMillis( this.getDateTimeStampMillis() );\r\n Vector<String> overallKeys = this.overalls.getKeys();\r\n for( int i = 0; i < overallKeys.size(); i++ ) {\r\n copy.overalls.addOverall( new String( overallKeys.elementAt( i ) ),\r\n new Double( this.overalls.getOverall( overallKeys.elementAt( i ) ) ) );\r\n }\r\n }\r\n\r\n copy.xEUnit = this.xEUnit;\r\n copy.yEUnit = this.yEUnit;\r\n\r\n copy.xSymbol = this.xSymbol;\r\n copy.ySymbol = this.ySymbol;\r\n copy.xPhysDomain = this.xPhysDomain;\r\n copy.yPhysDomain = this.yPhysDomain;\r\n \r\n copy.noOfAppendedZeros = this.noOfAppendedZeros;\r\n\r\n return copy;\r\n }",
"private Map<String, List<String>> getDictionary() {\n\t\tMap<String, List<String>> dictMap = dictionary.getMultiValueDict();\n\t\treturn dictMap;\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void copyCollectionPersister(String originalKey, String copyKey,\n SessionFactoryImpl sessionFactory) {\n try {\n Field collectionPersistersField = SessionFactoryImpl.class\n .getDeclaredField(\"collectionPersisters\");\n collectionPersistersField.setAccessible(true);\n Map collectionPersisters = (Map) collectionPersistersField.get(sessionFactory);\n if (collectionPersisters.containsKey(originalKey)) {\n Object collectionPersister = collectionPersisters.get(originalKey);\n collectionPersisters.put(copyKey, collectionPersister);\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"@Override\n public int hashCode() {\n return this.data.hashCode();\n }",
"public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}"
] |
[
"0.6205426",
"0.6171508",
"0.60406274",
"0.6013492",
"0.59546655",
"0.59058696",
"0.5854386",
"0.5827985",
"0.5814178",
"0.57445765",
"0.57437587",
"0.57051283",
"0.56008846",
"0.55930734",
"0.55907744",
"0.55907744",
"0.55835074",
"0.5562145",
"0.55618614",
"0.5549123",
"0.55457234",
"0.5543232",
"0.5532698",
"0.5508578",
"0.549607",
"0.547957",
"0.546622",
"0.5453951",
"0.5440403",
"0.5440323",
"0.543723",
"0.5433832",
"0.5432155",
"0.5410084",
"0.5401284",
"0.5393934",
"0.5380324",
"0.53746533",
"0.5360896",
"0.53525746",
"0.53441256",
"0.5325995",
"0.5313968",
"0.53066033",
"0.5295198",
"0.52927107",
"0.52850235",
"0.5284528",
"0.52842593",
"0.5282532",
"0.52819055",
"0.52810377",
"0.52668685",
"0.5264013",
"0.52571666",
"0.52429485",
"0.52408636",
"0.52381605",
"0.52313775",
"0.5231096",
"0.52282816",
"0.51993483",
"0.519672",
"0.5186475",
"0.51839703",
"0.5177978",
"0.5171948",
"0.5171808",
"0.5165674",
"0.51644534",
"0.51603585",
"0.5153853",
"0.51440436",
"0.51439184",
"0.5128108",
"0.51248205",
"0.511376",
"0.5112184",
"0.51086843",
"0.51086843",
"0.5106034",
"0.510496",
"0.5103495",
"0.5102369",
"0.50940096",
"0.50940096",
"0.50940096",
"0.50940096",
"0.50940096",
"0.50940096",
"0.50940096",
"0.50940096",
"0.50940096",
"0.5092933",
"0.5090973",
"0.50898635",
"0.50755644",
"0.50715387",
"0.50703496",
"0.5066613",
"0.5065765"
] |
0.0
|
-1
|
Initializes the variables of this class and the super class. Assign generateUniqueID() to bookID and generateRackID() to rackNo.
|
public Book(Author[] authors, int copyrightYear, double edition, Genre genre, String title) {
super(title);
this.authors = authors;
this.copyrightYear = copyrightYear;
this.edition = edition;
this.genre = genre;
this.bookID = generateUniqueID();
this.rackNo = generateRackID();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected Book() {\n this.title = \"Init\";\n this.author = \"Init\";\n this.bookCategories = new HashSet<>(10);\n }",
"public Book () {\n\t\tsuper ();\n\t\t_title = \"\";\n\t\t_text = \"\";\n\t\t_publisher = null;\n\t\t_oid = 0;\n\t\t_author = null;\n\t\t_Isbn = \"\";\n\t}",
"public Book() {\n\t\t// Default constructor\n\t}",
"public void initialize() {\n this.loadBidDetails();\n }",
"public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}",
"protected void initialize() {\n\t\televator.zeroEncoder();\n\t}",
"protected void initialize() {\n \t\n }",
"public BookRecord() {\n super(Book.BOOK);\n }",
"@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}",
"protected void initialize() {\n\t\tL.ogInit(this);\n\t\t_timesRumbled = 0;\n\t}",
"public Book() {\n\t\ttitle = null;\n\t\tauthor = null;\n\t}",
"public Book() {\n this.bookName = \"Five Point Someone\";\n this.bookAuthorName = \"Chetan Bhagat\";\n this.bookIsbnNumber = \"9788129104595\";\n\n }",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }",
"private void initialise() {\n \thashFamily = new Hash[this.r];\n for(int i= 0; i < this.r;i++)\n {\n \tthis.hashFamily[i] = new Hash(this.s * 2);\n }\n this.net = new OneSparseRec[this.r][this.s *2];\n for(int i = 0 ; i < this.r; i++)\n \tfor(int j =0 ; j< this.s * 2 ; j++)\n \t\tthis.net[i][j] = new OneSparseRec();\n \n }",
"public void initialize() {\r\n\t\tremoveAllCards();\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tfor (int j = 0; j < 13; j++) {\r\n\t\t\t\tBigTwoCard card = new BigTwoCard(i, j);\r\n\t\t\t\taddCard(card);\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}",
"private void prepareCoinRacks() {\n\t\t\n\t}",
"public Library() {\n books = new Book[0];\n numBooks = 0;\n }",
"protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }",
"@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }",
"protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}",
"protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }",
"protected void initialize() {\r\n }",
"protected void initialize() {\r\n }",
"protected void bInit()\r\n {\r\n \tSystem.out.println(\"|bInit| : expected_seq_num is: \"+expected_seq_num+\".\"); \r\n \tfor(int i=0;i<5;i++)\r\n \t\t{\r\n \t\t\tisAckedWindow[i] =ACK_NAKed;\r\n \t\t}\r\n \texpected_seq_num = FirstSeqNo;\r\n \tint check = makeCheckSum(FirstSeqNo,ACK_ACKed,DATA_EMPTY);\r\n \tpacketBuffer = new Packet (-1,ACK_ACKed,check,DATA_EMPTY);\r\n \tSystem.out.println(\"|bInit| : packet with seq number:\"+Integer.toString(packetBuffer.getSeqnum())+\" is stored in Buffer\"); \r\n \t//\tstate_receiver = STATE_WAIT_FOR_0_FROM_BELOW;\r\n }",
"protected void initialize() {\n\t\t\n\t}",
"protected void initialize() {\n\t\t\n\t}",
"protected void initialize() {\n\n\t}",
"protected abstract void initializeBartender();",
"public Booking() {\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tstartTime = new java.sql.Timestamp(date.getTime());\r\n\t\t/**\r\n\t\t*\tLet it be 0 initially and then update it at the time of checkout\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(0);\r\n\t}",
"protected void init() {\n }",
"@Override public void init()\n\t\t{\n\t\t}",
"protected void init() {\n\t}",
"protected void init() {\n\t}",
"private BookReader() {\n\t}",
"public void initializeBoundary() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\t\n\t\tSet<String> comSubNetGenes = Sets.newHashSet();\n\t\tcomSubNetGenes.addAll(this.subNetwork.keySet());\n\t\tcomSubNetGenes.addAll(this.subNetwork.values());\n\t\t\n\t\ttotalSubGeneCount = comSubNetGenes.size();\n\t\t\n\t\tcountBoundaryEdges(comSubNetGenes, oriGraphFile);\n\t\t\n\t\t\n\n\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t\tsubscribeBroadcast(TickBroadcast.class, tick_msg -> { //subscribe to timer\n\t\t\tif (!tick_msg.isRunning()){ //if reached duration time \n\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" is terminating \");\n\t\t\t\tterminate();\n\t\t\t}\n\t\t\tsetTick(tick_msg.getTick());\n\t\t\t\n\t\t\tif (curr_request!=null){\n\t\t\t\tif (curr_amount>0){\n\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" created a pair of \" +curr_request.getShoeType());\n\t\t\t\t\tcurr_amount--;\n\t\t\t\t}\n\t\t\t\telse if (curr_amount==0){\n\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" finished producing the restock request for \"+curr_request.getAmount()+\" \"+curr_request.getShoeType());\n\t\t\t\t\tReceipt r= new Receipt(getName(),\"store\",curr_request.getShoeType(),false,curr_tick,curr_request.getCurr_tick(),curr_request.getAmount());\n\t\t\t\t\tcomplete(curr_request,r);\n\t\t\t\t\tif (!restock_orders.isEmpty()){\n\t\t\t\t\t\tcurr_request = restock_orders.remove();\n\t\t\t\t\t\tcurr_amount = curr_request.getAmount();\n\t\t\t\t\t\tif (curr_amount>0){\n\t\t\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" created a pair of \" +curr_request.getShoeType());\n\t\t\t\t\t\t\tcurr_amount--;\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\tcurr_request=null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (!restock_orders.isEmpty()){\n\t\t\t\t\tsetRequest(restock_orders.remove());\n\t\t\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" created 1 pair of \"+curr_request.getShoeType());\n\t\t\t\t\tcurr_request.setAmount(curr_request.getAmount()-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsubscribeRequest(ManufacturingOrderRequest.class, man_req -> {\n\t\t\tLogger.getLogger(\"logger\").log(Level.INFO,getName()+ \" was asked from the store to produce \"+man_req.getAmount()+\" \"+man_req.getShoeType());\n\t\t\tif (curr_request==null){\n\t\t\t\tsetRequest(man_req);\n\t\t\t\tcurr_amount=man_req.getAmount();\n\t\t\t}\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\trestock_orders.put(man_req);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t});\n\t\t\n\t\tlatchObject.countDown();\n\t}",
"protected void initialize() {\n\t}",
"protected void initialize()\n\t{\n\t}",
"public Booking(String inUName, String inCarNo, int inLotNo) {\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tSet a serialized booking Number generated using the present date and time\r\n\t\t*\tThe format of this string is:\r\n\t\t*\tDayMonthYearHourMinuteSecond\r\n\t\t*/\r\n\t\tbookingNo = \"\" + (date.getDay() + 1) + (date.getMonth() + 1) + (date.getYear() + 1900) + date.getHours() + date.getMinutes() + date.getSeconds();\r\n\t\t/**\r\n\t\t*\tSet the values of these fields as passed in the arguments\r\n\t\t*/\r\n\t\tuName = inUName;\r\n\t\tcarNo = inCarNo;\r\n\t\tlotNo = inLotNo;\r\n\t\tcost = 0;\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tstartTime = new java.sql.Timestamp(date.getTime());\r\n\t\t/**\r\n\t\t*\tLet it be 0 initially and then update it at the time of checkout\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(0);\r\n\t}",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"@Override\n public java.lang.String generateRackID() {\n String randomString = \"\";\n String rackId = \"\";\n for (int i = 0; i < 2; i++) {\n char[] arr = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n int select = new Random().nextInt(arr.length);\n randomString += arr[select];\n }\n\n rackId = randomString.toUpperCase() + \".\" + rackCounter + \".\" + copyrightYear;\n rackCounter++;\n return rackId;\n }",
"protected void init() {\n // to override and use this method\n }",
"public void initialize() {\n // create a runner using a function\n this.createScreenBorders();\n // create a keyboard sensor.\n this.keyboard = this.runner.getGUI().getKeyboardSensor();\n //create the environment for the game (game environment and sprites collection)\n this.createEnvironment();\n // BACKGROUND CREATION //\n this.createBackground();\n // create the counters for the game.\n this.createCounters();\n // LISTENERS CREATION //\n //create a message printing listener.\n HitListener phl = new PrintingHitListener();\n //create a new block remover listener.\n HitListener blockrmv = new BlockRemover(this, blockCounter);\n //create a new ball remover listener.\n HitListener ballrmv = new BallRemover(this, ballCounter);\n //create a new score counter listener.\n HitListener scorelstn = new ScoreTrackingListener(this.scoreCounter);\n // BLOCKS CREATION //\n this.createBlocks(phl, blockrmv, scorelstn);\n // SIDE BLOCKS CREATION //\n this.createSideBlocks();\n // DEATH BLOCK CREATION //\n this.createDeathBlock(ballrmv);\n // LEVEL'S NAME //\n LevelsName name = new LevelsName(this.levelInfo.levelName());\n // add the whole-game indicators to the sprites list.\n this.sprites.addSprite(scoreIndi);\n this.sprites.addSprite(lifeIndi);\n this.sprites.addSprite(name);\n }",
"private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}",
"Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }",
"public bookTypes() {\r\n\t\ttitle = \"\";\r\n\t\tcopies = 0;\r\n\t\tprice = 0;\r\n\t\tauthorsNum = 0;\r\n\t\tISBN = 0;\r\n\t\tauthors = new String []{\"\",\"\",\"\",\"\"};\r\n\t\tpublisher = \"\";\r\n\t\tyear = 0;\r\n\t}",
"@Override\n\t\tprotected void initialise() {\n\n\t\t}",
"protected void initialize()\r\n {\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"public Rook()\n {\n super();\n }",
"private UniqueChromosomeReconstructor() { }",
"public Book()\n {\n title = null;\n author = null;\n }",
"public Handwritten(int bookID) {\n\t\tsuper(bookID, \"H\");\n\t}",
"public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}",
"public void initialize()\n {\n }",
"public RobotNumInit() {\n initComponents();\n setName(\"InitRobotCard\");\n }",
"protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }",
"private BookReader() {\r\n }",
"@Override\n protected void initialize() {\n ramper.reset();\n Robot.toteLifterSubsystem.setGateState(GateState.OPEN);\n }",
"public NewBook() {\n super(\"New Book\");\n initComponents();\n conn=javaconnect.ConnectDB();\n Random();\n }",
"@Override\n public String generateRackID() {\n String newRackID = generateRandomCharacter() +\"\"+\n generateRandomCharacter() +\".\"+\n rackCounter +\".\"+ getCopyrightYear();\n this.rackCounter++;\n return newRackID;\n }",
"public BookingInfo() {\n }",
"public void prepare()\n {\n // First, we assign the payload a new UUID if it does not already have one\n if(getId() == null)\n setId(UUID.randomUUID());\n \n // Set the submission date to now\n setSubmissionDate(new Date());\n }",
"protected void init(){\n }",
"public BarSeat(){\n\t\tsuper(1);\n\t}",
"protected void initialize() {\n\t\t// set the target for the PID subsystem\n\t\tRobot.minipidSubsystem.setSetpoint(90);\n\n\t\t// set the minimum and maximum output limits for the PID subsystem\n\t\tRobot.minipidSubsystem.setOutputLimits(-80, 80);\n\n\t\t// Disable safety checks on drive subsystem\n\t\tRobot.driveSubsystem.robotDrive.setSafetyEnabled(false);\n\t\t\n\t\tRobot.camera.setBrightness(0);\n\n\t}",
"protected void _init(){}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void initialize() {\n\t\t\n\t}",
"public Book() {\n }",
"protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public FixBookControl() {\r\n\t\tthis.libraryFixBook = libraryFixBook.INSTANCE(); //updated by reviewer(Dushan) - library to libraryFixBook\r\n\t\tstateCon = CONTROL_STATE.INITIALISED; //updated by reviewer(Dushan) - state to stateCon - use camelback for variables\r\n\t\r\n\t}",
"private void _init() {\n }",
"@Override\n public void initialize()\n {\n super.initialize();\n log.info(\"Initialize \" + name);\n Map<String, Collection<?>> beans;\n generator = service.getRandomSeedRepo().\n getRandomSeed(\"EvSocialClass-\" + name, 1, \"initialize\");\n\n Config.recycle();\n config = Config.getInstance();\n config.configure(service.getServerConfiguration());\n\n beans = config.getBeans();\n unpackBeans(beans);\n\n // Create and set up the customer instances\n evCustomers = new ArrayList<EvCustomer>();\n if (null == customerAttributeList) {\n // boot session - dynamic configuration\n configureForBoot(beans);\n }\n else {\n // sim session - restore from boot record\n configureForSim(beans);\n }\n }",
"public static void init() {\r\n\t\twines = read();\r\n\t\tread_tasteNotes(wines);\r\n\t\tidSorted = duplicate(wines);\r\n\t}",
"protected void initialize() {\n\n }",
"public void init() {\n\t\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}"
] |
[
"0.6412737",
"0.6024698",
"0.5844969",
"0.5820634",
"0.57924455",
"0.57716036",
"0.57253474",
"0.5707011",
"0.5665228",
"0.5652588",
"0.56416523",
"0.5641132",
"0.56199837",
"0.55873597",
"0.5586084",
"0.55701584",
"0.55646574",
"0.55548346",
"0.5545989",
"0.5537414",
"0.5533937",
"0.55087215",
"0.55077815",
"0.5480733",
"0.5480733",
"0.5475626",
"0.54711795",
"0.54711795",
"0.54695904",
"0.5463686",
"0.54497045",
"0.54423696",
"0.5436147",
"0.5429889",
"0.5429889",
"0.5427273",
"0.5424677",
"0.54218084",
"0.5420425",
"0.5414964",
"0.540743",
"0.53954446",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5390658",
"0.5387883",
"0.53869265",
"0.53819895",
"0.5375398",
"0.5359242",
"0.53539693",
"0.53428054",
"0.5334505",
"0.53299165",
"0.53299165",
"0.5328095",
"0.5325412",
"0.5311857",
"0.53100914",
"0.5304972",
"0.5302986",
"0.5300559",
"0.5295512",
"0.52856934",
"0.5277367",
"0.52743506",
"0.5273156",
"0.52666014",
"0.52475387",
"0.5244141",
"0.52363074",
"0.522955",
"0.52258104",
"0.5214718",
"0.5211823",
"0.5194496",
"0.51939917",
"0.51926243",
"0.51926243",
"0.5192594",
"0.51920235",
"0.519196",
"0.5189207",
"0.51754814",
"0.5165158",
"0.51640654"
] |
0.0
|
-1
|
Returns an array of Author
|
public Author[] getAuthors() {
return authors;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String[] getAuthor();",
"public String[] getAuthors() {\n return authors;\n }",
"public Author[] createAuthors() {\r\n Author[] authorList = new Author[10];\r\n authorList[0] = createAuthor(\"Daniel\", 1);\r\n authorList[1] = createAuthor(\"Jeremy\", 2);\r\n return authorList;\r\n }",
"public User[] getAllAuthors() {\n\t\treturn authors.toArray(new User[authors.size()]);\n\t}",
"ImmutableList<SchemaOrgType> getAuthorList();",
"public List<String> getAuthors() {\n return authors;\n }",
"public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}",
"@Override\r\n\tpublic List<Author> getAllAuthorDetails() {\n\t\treturn authorDAO.findAll();\r\n\t\t\r\n\t}",
"Set<URI> getAuthors();",
"public List<Author> selectAllAuthors();",
"protected List<AuthorNames> getAuthorNames() {\n return authors.values().stream()\n .map(a-> new AuthorNames(a.getFirstName(), a.getLastName()))\n .collect(Collectors.toList());\n }",
"public List applyAuthorRule () {\n\t\treturn authors;\n\t}",
"public List<String> getAuthors() {\n return Collections.unmodifiableList(mAuthors);\n }",
"List<String> getAuthorsList() {\r\n\t\tList<String> authorList = new ArrayList<String>() ;\r\n\t\t\r\n\t\t// Populate the list of authors\r\n\t\tfor(Collaborator c: collaborators) {\r\n\t\t\tauthorList.add(c.getAuthorName()) ;\r\n\t\t}\r\n\t\treturn authorList ;\r\n\t}",
"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}",
"java.util.List<java.lang.String>\n getAuthoritiesList();",
"public String getAuthor();",
"public Item2Vector<Author> getAuthorss() { return authorss; }",
"public String getAuthorities() {\n return authorities;\n }",
"@GetMapping\n public List<Author> getAllAuthors(){\n return authorService.getAllAuthors();\n }",
"public List<String> getPatternAuthors() {\n Set<String> authors = mapAuths.keySet();\r\n //int n = authors.size();\r\n List <String> authorList = new LinkedList<String>();\r\n //iterate through set and add to list\r\n for(String author : authors) {\r\n authorList.add(author);\r\n }\r\n\r\n Collections.sort(authorList, new Comparator<String>() {\r\n public int compare(String author1, String author2) {\r\n return author1.compareToIgnoreCase(author2);\r\n }\r\n });\r\n\r\n return authorList;\r\n }",
"String getAuthor();",
"String getAuthor();",
"@Nonnull @NonnullElements @Live public Collection<String> getAuthorities() {\n return authorities;\n }",
"public List<AuthorDto> findAll() {\n return authorRepository.findAll().stream().map(authorMapper::toAuthorDto).collect(Collectors.toList());\n }",
"public String getAuthors() {\n return getProperty(Property.AUTHORS);\n }",
"String getDocumentsAuthors(String repository, String graph);",
"public Author getAuthor() {\r\n return author;\r\n }",
"public List<Book> getByAuthor(String name );",
"public String[] getCreators() {\n/* 123 */ return getStringArray(\"creator\");\n/* */ }",
"public IAuthor getAuthor();",
"String getAuthorName();",
"public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n authorities_.makeImmutable();\n return authorities_;\n }",
"public List<AuthorPaper> getAuthorPapers(int authorId) throws SQLException;",
"public List<cn.edu.kmust.flst.domain.flst.tables.pojos.Article> fetchByArticleAuthor(String... values) {\n return fetch(Article.ARTICLE.ARTICLE_AUTHOR, values);\n }",
"java.lang.String getAuthorities(int index);",
"public abstract String getAuthor();",
"@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 }",
"public java.lang.String getAuthorities(int index) {\n return authorities_.get(index);\n }",
"@Override\n public List<Author> selectAuthorList(Author author)\n {\n return authorMapper.selectAuthorList(author);\n }",
"public String getAuthor() {\r\n return author;\r\n }",
"private static String getAuthors(JSONObject volumeInfo) throws JSONException {\n JSONArray authors = volumeInfo.optJSONArray(\"authors\");\n if (authors == null) {\n Log.e(LOG_TAG, \"No authors for this book\");\n return null;\n }\n StringBuilder authorsString = new StringBuilder();\n for (int i = 0; i < authors.length(); i++) {\n authorsString.append(authors.getString(i));\n if (i + 1 < authors.length()) {\n authorsString.append(\"\\n\");\n }\n }\n return authorsString.toString();\n }",
"public java.lang.String getAuthorities(int index) {\n return authorities_.get(index);\n }",
"public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n return authorities_;\n }",
"DefaultListModel getAuthorsModel();",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return author;\n }",
"public String getAuthor(){\n return author;\n \n }",
"public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}",
"public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}",
"private static String getAgents(ArrayList<Agent> auth){\n String agents =\"\";\n try{\n Iterator<Agent> it = auth.iterator();\n int i = 1;\n while(it.hasNext()){\n Agent currAuth = it.next();\n String authorName = currAuth.getName(); //the name should be always there\n if(authorName==null || \"\".equals(authorName)){\n authorName = \"Author\"+i;\n i++;\n }\n if(currAuth.getURL()!=null &&!\"\".equals(currAuth.getURL())){\n agents+=\"<dd><a property=\\\"dc:creator schema:author prov:wasAttributedTo\\\" resource=\\\"\"+currAuth.getURL()+\"\\\" href=\\\"\"+currAuth.getURL()+\"\\\">\"+authorName+\"</a>\";\n }else{\n agents+=\"<dd>\"+authorName;\n }\n if(currAuth.getInstitutionName()!=null && !\"\".equals(currAuth.getInstitutionName()))\n agents+=\", \"+currAuth.getInstitutionName();\n agents+=\"</dd>\";\n } \n }catch(Exception e){\n System.out.println(\"Error while writing authors, their urls or their instititions.\");\n }\n return agents;\n }",
"public String getAuthor() { return author_; }",
"public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor> fetchByAddress(java.lang.String... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.ADDRESS, values);\n\t}",
"@Override\n\tpublic ResultSet getAuthorsResultSet() {\n\t\treturn null;\n\t}",
"public String getAuthor() {\n\treturn author;\n}",
"public ArrayList<Book> getAuthorsBook(String last, String first) {\n\t\t//TO DO\n\t\tNode<ArrayList<Book>> current = head;\n\t\t\t\n\t\twhile (current.letter != last.charAt(0)) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\n\t\tif (current.data != null) {\n\t\t\treturn current.data;\n\t\t}else {\n\t\t\tthrow new IllegalArgumentException(\"getAuthorsBook: author does not have any books\");\n\t\t}\n\t}",
"@JsonIgnore\n public Person getAuthor()\n {\n if (getFetchOptions() != null && getFetchOptions().hasAuthor())\n {\n return author;\n }\n else\n {\n throw new NotFetchedException(\"Author has not been fetched.\");\n }\n }",
"public java.lang.String getAuthor() {\n return author;\n }",
"public String getAuthor() {\r\n\t\treturn author;\r\n\t}",
"public ArrayList<User> getAuthor(String article_ID) throws SQLException {\r\n\t\tConnectionManager conn=null;\r\n\t\tArrayList<User> arrayResults = new ArrayList<User>(); \r\n\t\tString queryAuthor = \"select Author.name, Author.surname, Author.email from Author INNER JOIN ArticleAuthor ON Author.authorID = ArticleAuthor.authorID INNER JOIN Article ON ArticleAuthor.articleID = Article.articleID where Article.articleID = '\" + article_ID + \"'\"; \r\n\t\ttry {\r\n\t\t\tconn = new ConnectionManager();\r\n\t\t\tStatement st = conn.getInstance().getConnection().createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(queryAuthor);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString userName = (String)rs.getObject(\"Author.name\");\r\n\t\t\t\tString userSurname = (String)rs.getObject(\"Author.surname\");\r\n\t\t\t\tString userEmail = (String)rs.getObject(\"Author.email\");\r\n\r\n\t\t\t\tUser user = new User(userName, userSurname, userEmail);\r\n\t\t\t\tarrayResults.add(user);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\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}finally{\r\n\t\t\tif (conn!=null){\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arrayResults;\r\n\t}",
"public Authors() {\n mAuthors = new TreeMap<>();\n }",
"public static ImmutableList<String> getAuthors40() {\n ArrayList<String> files = new ArrayList<String>();\n try {\n BufferedReader reader = new BufferedReader(\n new FileReader(Parameters.UBUNTU_MAIN + \"information/authors_clear_rct_only_40\"));\n String line = null;\n while ((line = reader.readLine()) != null) {\n files.add(line);\n }\n reader.close();\n } catch (Exception e) {\n System.out.println(\"GetAuthors40() exception:\" + e.toString());\n }\n Collections.sort(files);\n return ImmutableList.<String>copyOf(files);\n }",
"public void setAuthors(String[] authors) {\n this.authors = authors;\n }",
"public Author getAuthorProfile(int authorId);",
"public Author getAuthor() {\n\t\treturn this.author;\n\t}",
"public User getAuthor() {\n return author;\n }",
"public List<Book> getBooksByAuthorId(Long authId) {\n String queryStr = \"SELECT b FROM BookAuthor b where b.author.id = :coAuthor\";\n Query query = em.createQuery(queryStr);\n query.setParameter(\"coAuthor\", authId);\n\n return query.getResultList();\n }",
"String findAllPublicationsFromAuthor(final Author author) {\n\n List<Publication> publications = Stream.concat(mBooks.stream(), mMagazines.stream()).collect(Collectors.toList());\n Set<Publication> foundPublications = publications.stream()\n .filter(publication -> publication.getAuthors().contains(author.getEmail()))\n .collect(Collectors.toSet());\n\n PrintModelVisitor printVisitor = new PrintModelVisitor();\n visitPublications(foundPublications, printVisitor);\n return printVisitor.getPublications();\n }",
"public java.lang.String getAuthor() {\n return author;\n }",
"public String getAuthor() {\n return mAuthor;\n }",
"public ArrayList<Book> listOfBooksByAuthor (Author providedAuthor){\n //Array list for storing books written by provided author\n ArrayList<Book> authorBooks = new ArrayList<>();\n\n //loops through the booklist to find books with the author in the list of authors\n for (Book book : bookList) {\n //loops through the list of authors to see if the provided author is among thelist\n for (Author author1 : book.getAuthors()) {\n if (providedAuthor.equals(author1)) {\n authorBooks.add(book);\n }\n }\n }\n return authorBooks;\n }",
"public ArrayList<AuthorDTO> getAuthors(int itemID) {\n\t\tArrayList<AuthorDTO> authors = new ArrayList<AuthorDTO>();\n\t\tString sql = \"select Authors.AuthorID as AuthorID, Authors.AuthorName as AuthorName from Authors \"\n\t\t\t\t+ \"inner join AuthoredBy on AuthoredBy.AuthorID = Authors.AuthorID where AuthoredBy.ItemID = ? \";\n\t\ttry {\n\t\t\tConnection connection = dataSource.getConnection();\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setInt(1, itemID);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tAuthorDTO author = new AuthorDTO();\n\t\t\t\tauthor.setAuthorID(resultSet.getInt(\"AuthorID\"));\n\t\t\t\tauthor.setAuthorName(resultSet.getString(\"AuthorName\"));\n\t\t\t\tauthors.add(author);\n\t\t\t}\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn authors;\n\t}",
"public IPerson getAuthor() {\n\t\treturn fAuthor;\n\t}",
"public long getAuthorsInCollection()\n\tthrows DataAccessException;",
"public AuthorParameters getAuthorParameters() {\n\t\treturn authorParameters;\n\t}",
"@Override\n public String toString() {\n return getAuthor().getName();\n }",
"public AuthorInfoExtractor() {\n\t\tthis.authors = new HashMap<String, AuthorInfo>();\n\t}",
"public void setAuthors(Author[] authors) {\n this.authors = authors;\n }",
"public void setAuthors(Author[] authors) {\n this.authors = authors;\n }",
"public void setAuthors(String _authors) { authors = _authors; }",
"@Override\n public String toString() {\n String authorNames=\"\";\n for(Author a:authors){\n authorNames+=\", \"+a.toString();\n }\n return super.toString()\n +\", BookID: \"+bookID\n +\", RackNo: \"+rackNo\n +\", Edition: \"+edition\n +\", Authors: \"+(authors.length>0?authorNames.substring(2):\"\");\n }",
"public List<TilePojo> getManualAuthorCharList() {\n\t\tLOGGER.info(\"getManualAuthorCharList -> Start\");\n\t\ttry {\n\t\t\tString galleryOnPage = node.getPath();\n\t\t\tList<TilePojo> charList = tileGalleryAndLandingService.getAllTiles(galleryOnPage, galleryFor, \"gallery\",\n\t\t\t\t\ttrue);\n\t\t\tmanualAuthorCharList = getFixedNumberChar(charList, 12);\n\t\t} catch (RepositoryException e) {\n\t\t\tLOGGER.error(\"RepositoryException Occured \", e);\n\t\t}\n\t\tLOGGER.info(\"getManualAuthorCharList -> End\");\n\t\treturn manualAuthorCharList;\n\t}",
"int[] getSelectedAuthorsIndexes();",
"public String getAuthor() {\n\t\treturn auth;\n\t}",
"public String getAuthor()\r\n {\r\n return (m_author);\r\n }",
"com.google.protobuf.ByteString\n getAuthoritiesBytes(int index);",
"Collection<? extends GrantedAuthority> getAuthorities();",
"public static Object[] regexAuthor(String theRegex, String str2Check)\n\t{\n\t\t\n\t\tObject[] authorInfo = {null, null, 0};\n \tString[] authorData = {null,null};\n\t\tPattern checkRegex = Pattern.compile(theRegex);\n \tMatcher regexMatcher = checkRegex.matcher(str2Check);\n \t\n \tif (regexMatcher.find() == true)\n \t{\n \t\tif (regexMatcher.group().length() != 0)\n\t \t{\n\t \t\tif (regexMatcher.group(1).contains(\",\"))\n\t\t\t\t{\n\t\t\t\t\tauthorData = regexMatcher.group(1).trim().split(\",\");\n\t\t\t\t\tauthorData[1] = authorData[1].trim();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tauthorData[0] = regexMatcher.group(1);\n\t\t\t\t}\n\t \t\tauthorInfo[2] = regexMatcher.end();\n\t \t\n\t \t\tauthorInfo[0] = authorData[0].replaceFirst(\"(?i)by\",\"\").trim();\n\t \t\tauthorInfo[1] = authorData[1];\n\t \t\n\t \t}\n \t}\n \t\n \treturn authorInfo;\n\t}",
"public void getAnAuthor() {\n System.out.println(\"Give author name: \");\n String key = input.next();\n for (Card s: cards) {\n if (s.autherOfBook.equals(key)) {\n System.out.println(s.titleOfBook + \" \" + s.autherOfBook + \" \" + s.subjectOfBook);\n } \n }\n }"
] |
[
"0.82976323",
"0.7967743",
"0.7834438",
"0.7695633",
"0.7524993",
"0.7459372",
"0.7402289",
"0.7351347",
"0.73191714",
"0.72588676",
"0.7251155",
"0.7192051",
"0.7176381",
"0.7151304",
"0.7074987",
"0.68740964",
"0.6842911",
"0.67274994",
"0.6723378",
"0.6720282",
"0.6699473",
"0.6680638",
"0.6680638",
"0.6628349",
"0.66225857",
"0.66206074",
"0.65767473",
"0.6561339",
"0.655146",
"0.6502792",
"0.64875144",
"0.6470319",
"0.64612824",
"0.6432683",
"0.6425402",
"0.64158946",
"0.63546187",
"0.63476425",
"0.6343253",
"0.6298994",
"0.6286199",
"0.6282765",
"0.62762165",
"0.6263529",
"0.626146",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6254513",
"0.6249532",
"0.62425244",
"0.6236693",
"0.62309754",
"0.6225647",
"0.6215069",
"0.62039834",
"0.6201124",
"0.6199455",
"0.61992264",
"0.6197544",
"0.6191928",
"0.61791146",
"0.61758333",
"0.6174316",
"0.6172509",
"0.6161507",
"0.615536",
"0.6152105",
"0.61519575",
"0.6145957",
"0.61287665",
"0.610165",
"0.60979694",
"0.60688406",
"0.60658145",
"0.60649353",
"0.60556024",
"0.60531163",
"0.6033992",
"0.603308",
"0.603308",
"0.6025254",
"0.6013551",
"0.601034",
"0.6005395",
"0.60012424",
"0.5990935",
"0.5989758",
"0.5985783",
"0.5985228",
"0.59633815"
] |
0.81001794
|
2
|
Sets Authors of a book
|
public void setAuthors(Author[] authors) {
this.authors = authors;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setAuthors(String _authors) { authors = _authors; }",
"@Override\n \tpublic void setAuthors(String authors) {\n \t\t// TODO Auto-generated method stub\n \n \t}",
"public void setAuthors(String[] authors) {\n this.authors = authors;\n }",
"public void setAuthors(ArrayList<String> authors) throws BadParametersException {\n\t\tif (authors == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (authors.size() == 0)\n\t\t\tthrow new BadParametersException();\t\n\t\tthis.authors = authors;\n\t}",
"public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }",
"public void setAuthor(Person author)\n {\n this.author = author;\n }",
"public com.babbler.ws.io.avro.model.BabbleValue.Builder setAuthor(java.lang.String value) {\n validate(fields()[0], value);\n this.author = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setAuthor(String value) {\n setAttributeInternal(AUTHOR, value);\n }",
"public void updateAuthor(Author author);",
"public void setAuthor(String author) {\r\n this.author = author;\r\n }",
"public void setAuthor(String author) {\n\tthis.author = author;\n}",
"public void setAuthor(Author author) {\r\n if (author != null) {\r\n this.author = author;\r\n }\r\n }",
"@Override\r\n\tpublic void setAuthor(String author) {\n\t\tsuper.setAuthor(author);\r\n\t}",
"public final native void setAuthor(String author) /*-{\n this.setAuthor(author);\n }-*/;",
"public void setAuthor(String author) {\r\n String old = this.author;\r\n this.author = author;\r\n this.changeSupport.firePropertyChange(\"author\", old, this.author );\r\n }",
"public void setAuthor(String author) {\n this.author = author;\n }",
"public void setAuthor(String author) {\n this.author = author;\n }",
"public void setAuthor(String author) {\n this.author = author;\n }",
"public void setAuthor(String author) {\n this.author = author;\n }",
"public void setAuthor(String author) {\n this.author = author;\n }",
"Set<URI> getAuthors();",
"Builder addAuthor(String value);",
"public void setAuthor(String author) {\r\n\t\tthis.author = author;\r\n\t}",
"private void loopAuthors(Book book) {\n for (String s : book.getAuthors()) {\n print(s);\n }\n }",
"@Override\n \tpublic void setAuthorString(String authorString) {\n \t\tthis.authorString = authorString;\n \t}",
"public void setAuthorisor(String authorisor)\n\t{\n\t\tthis.authorisor = Toolbox.trim(authorisor, 4);\n\t}",
"public void setAuthorInfo(int i, String n, String s, String e)\r\n {\r\n name = n;\r\n idAuthor = i;\r\n surname = s;\r\n email = e;\r\n }",
"private static void addToAuthorTable(String author_name, String bookTitle) {\n\t\tif(ALL_AUTHORS.containsKey(author_name)) \n\t\t\tALL_AUTHORS.get(author_name).add(bookTitle);\n\t\t/*put author_name as a new key in ALL_AUTHORS*/\n\t\telse{\n\t\t\tHashSet<String> bookTitles_list = new HashSet<String>();\n\t\t\tbookTitles_list.add(bookTitle);\n\t\t\tALL_AUTHORS.put(author_name, bookTitles_list);\n\t\t}\n\t}",
"public void addAuthor(Author author){\n authors.add(author);\n }",
"public void setAuthor(Player author){\n this.playerAuthor = author;\n }",
"@Override\n\tpublic void setAuthor(java.lang.String author) {\n\t\t_news_Blogs.setAuthor(author);\n\t}",
"static void createAuthorsFile () throws IOException {\n\t\tBufferedReader dataFile = new BufferedReader(new FileReader(DATAFILE));\n\t\tString inputLine;\n\t\t\n\t\tPrintWriter isbnLabeledDataFile = new PrintWriter(new FileWriter(ISBNLABELLEDDATAFILE));\n\t\t\n\t\tSet<String> books = new HashSet<String>();\n\t\twhile ((inputLine = dataFile.readLine()) != null) {\n\t\t\tif (inputLine.indexOf('\\t') == -1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString[] fields = inputLine.split(\"\\t\");\n\t\t\tif (fields.length != 4) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinal String bookId = fields[1];\n\t\t\tif (books.contains(bookId)) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tbooks.add(bookId);\n\t\t\t\tString authorString = getAuthorString(bookId);\n\t\t\t\tisbnLabeledDataFile.println(bookId + \"\\t\" + authorString);\n\t\t\t\tout.println(bookId + \"\\t\" + authorString);\n\t\t\t}\n\t\t}\n\t\tdataFile.close();\n\t\tisbnLabeledDataFile.close();\n\t}",
"Builder addAuthor(Organization value);",
"public void setAuthor(final Author author) {\n\t\tthis.author = author;\n\t}",
"public void setAuthor(IPerson author) throws IllegalArgumentException {\n\t\tif (null == author)\n\t\t\tthrow new IllegalArgumentException(\"author null\");\n\n\t\tIPerson oldAuthor = getAuthor();\n\n\t\tif (author.equals(oldAuthor))\n\t\t\treturn;\n\n\t\tfAuthor = author;\n\n\t\tfAuthor.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\tfirePropertyChange(evt);\n\t\t\t}\n\t\t});\n\n\t\tfirePropertyChange(\"author\", oldAuthor, author);\n\t}",
"public BookAuthor(int i, String n, String s, String e)\r\n {\r\n name = n;\r\n idAuthor = i;\r\n surname = s;\r\n email = e;\r\n }",
"public void setBooks(List<Book> books) {\r\n\t\tthis.books = books;\r\n\t}",
"public void setBookAuthor(String bookAuthor) {\n this.bookAuthor = bookAuthor == null ? null : bookAuthor.trim();\n }",
"public void setBook(Book book) {\n this.book = book;\n }",
"Builder addAuthor(Person value);",
"public Authors() {\n mAuthors = new TreeMap<>();\n }",
"public String[] getAuthors() {\n return authors;\n }",
"public void setAuthorLocal(String author) {\r\n\t\toAuthor = author;\r\n\t}",
"public static Set<String> getAllAuthors(List<Book> books) {\r\n Set<String> allAuthors = new HashSet<>();\r\n for (Book book : books) {\r\n allAuthors.add(book.getAuthor());\r\n }\r\n return allAuthors;\r\n }",
"public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }",
"public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }",
"public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }",
"public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }",
"public void addAuthors(String author) {\n if (authorsList.contains(author)) {\n System.out.println(\"Author exist!!!\");\n }\n else {\n authorsList.add(author);\n System.out.println(\"Add author successfully!!!\");\n }\n }",
"public Builder setAuthorities(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAuthoritiesIsMutable();\n authorities_.set(index, value);\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }",
"public void setAuthor(String author) {\n\t\tauth = author;\n\t}",
"public void setAuthorities(String authorities) {\n this.authorities = authorities == null ? null : authorities.trim();\n }",
"public void clearAuthors() {\r\n\t\tauthorsNum = 0;\r\n\t}",
"@Override\n public void author_()\n {\n }",
"public Book addBook(){\n Book book = new Book();\r\n String t = title.getText().toString();\r\n book.setTitle(t);\r\n String[] str = author.getText().toString().split(\",\");\r\n Author[] authors = new Author[str.length];\r\n int index = 0;\r\n for(String s : str){\r\n Author a = null;\r\n String[] fml = s.split(\"\\\\s+\");\r\n if(fml.length == 1){\r\n a = new Author(fml[0]);\r\n }else if(fml.length == 2){\r\n a = new Author(fml[0], fml[1]);\r\n }else if(fml.length == 3){\r\n a = new Author(fml[0], fml[1], fml[2]);\r\n }else{\r\n Toast.makeText(this, \"Invalid Author Name\", Toast.LENGTH_LONG).show();\r\n }\r\n authors[index] = a;\r\n index++;\r\n }\r\n book.setAuthors(authors);\r\n String isb = isbn.getText().toString();\r\n book.setIsbn(isb);\r\n\r\n\t\treturn book;\r\n\t}",
"public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }",
"public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }",
"public List applyAuthorRule () {\n\t\treturn authors;\n\t}",
"public void saveCommitAuthor(String author) {\n List<String> previousCommitAuthors = myState.getPreviousCommitAuthors();\n previousCommitAuthors.remove(author);\n while (previousCommitAuthors.size() >= PREVIOUS_COMMIT_AUTHORS_LIMIT) {\n previousCommitAuthors.remove(previousCommitAuthors.size() - 1);\n }\n previousCommitAuthors.add(0, author);\n }",
"public Book(String title, List<String> authors) {\n this.title = title;\n this.authors = authors;\n // TODO write more code if necessary\n this.setParentCollection(null);\n }",
"public void setAuthorParameters(AuthorParameters authorParameters) {\n\t\tthis.authorParameters = authorParameters;\n\t}",
"public void setBookName(java.lang.String value);",
"private void setORM_Book(i_book.Book value) {\r\n\t\tthis.book = value;\r\n\t}",
"public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}",
"public void setAuthorId(String authorId) {\n this.authorId = authorId;\n }",
"public void saveAuthor(Author authorObject);",
"public List<String> getAuthors() {\n return authors;\n }",
"public void addBook(Book book) {\n \tset.add(book);\n }",
"public Builder addAuthorities(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAuthoritiesIsMutable();\n authorities_.add(value);\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }",
"Builder addAuthor(Organization.Builder value);",
"public void setAuthor(String v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_author == null)\n jcasType.jcas.throwFeatMissing(\"author\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_author, v);}",
"Book addBook(String title, String[] authors, boolean silent);",
"public void setAuthorChoice(AuthorChoice authorChoice) {\n\t\tthis.authorChoice = authorChoice;\n\t}",
"String[] getAuthor();",
"@Override\n public void author()\n {\n }",
"public void updateAuthorInfo(CommitInfo commitInfo) {\n\t\tString authorName = commitInfo.getAuthor();\n\t\tAuthorInfo authorInfo = this.authors.get(authorName);\n\t\tif (authorInfo == null) {\n\t\t\tauthorInfo = new AuthorInfo(authorName, null);\n\t\t\tthis.authors.put(authorName, authorInfo);\n\t\t}\n\t\tauthorInfo.addCommit(commitInfo.getNumChanges());\n\t}",
"public void setModifiAuthor(String modifiAuthor) {\n this.modifiAuthor = modifiAuthor;\n }",
"void setAuthorDao(final AuthorDao authorDao);",
"public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }",
"public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }",
"@Override\n\tpublic void setAuthorId(long authorId) {\n\t\t_scienceApp.setAuthorId(authorId);\n\t}",
"public String getBookAuthor() {\n return bookAuthor;\n }",
"public void setNumAuthorsAtStart(int numAuthorsAtStart)\n\t\tthrows TarlException {\n\t\tif (numAuthorsAtStart > 0)\n\t\t\tthis.numAuthorsAtStart = numAuthorsAtStart;\n\t\telse\n\t\t\tthrow (new TarlException(new String(\n\t\t\t \"Number of authors at the start cannot be zero or negative\\n\")));\n\t}",
"private List<Author> getAuthorsFromString (String authorsString) {\n \tList<Author> authors = new ArrayList<Author>();\n \t \t\n \tif (Validator.isNullorEmpty(authorsString)) {\n \t\treturn authors;\n \t}\n \t\n \tAuthor author;\n \tString[] tmp = authorsString.split(STRING_SEPARATOR);\n\t for (int i = 0; i < tmp.length; i++) {\n\t \tauthor = new Author();\n\t \tauthor.setName(tmp[i]);\n\t \tauthors.add(author);\n\t }\n \t\n \treturn authors;\n }",
"public List<String> updatePublicationAddAuthor(String firstName, String lastName, String hash) {\n\t\tfinal Post<BibTex> post = getPublicationByResourceHash(hash).get(0);\n\t\tPersonName p = new PersonName();\n\t\tp.setFirstName(firstName);\n\t\tp.setLastName(lastName);\n\t\tList<PersonName> persons = post.getResource().getAuthor();\n\t\tpersons.add(p);\n\t\tpost.getResource().setAuthor(persons);\n\t\t\n\t\treturn logic.updatePosts(Collections.<Post<? extends Resource>>singletonList(post), PostUpdateOperation.UPDATE_ALL);\n\t}",
"public Author[] getAuthors() {\n return authors;\n }",
"public Author[] getAuthors() {\n return authors;\n }",
"DefaultListModel getAuthorsBookModel();",
"public ArrayList<Book> listOfBooksByAuthor (Author providedAuthor){\n //Array list for storing books written by provided author\n ArrayList<Book> authorBooks = new ArrayList<>();\n\n //loops through the booklist to find books with the author in the list of authors\n for (Book book : bookList) {\n //loops through the list of authors to see if the provided author is among thelist\n for (Author author1 : book.getAuthors()) {\n if (providedAuthor.equals(author1)) {\n authorBooks.add(book);\n }\n }\n }\n return authorBooks;\n }",
"@Override\n \tpublic void addAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().add(this);\n \t\tauthorList.add(author);\n \t}",
"public static List<Book> selectBooksByAuthor(List<Book> books, String author) {\r\n List<Book> selectedBooks = new ArrayList<>();\r\n for (int i = 0; i < books.size(); i++) {\r\n if (books.get(i).getAuthor().equals(author)) {\r\n selectedBooks.add(books.get(i));\r\n }\r\n }\r\n return selectedBooks;\r\n }",
"public void set(Reader reader, ReaderList readerlist, BookList booklist) {\n this.booklist = booklist;\n this.readerlist = readerlist;\n this.reader = reader;\n load();\n\n }",
"@SuppressWarnings(\"UnusedParameters\")\n public void addAuthor(View view) {\n String authorName = mTextAuthor.getText().toString().trim();\n\n String errorMessage = null;\n if (authorName.length() == 0) {\n errorMessage = getString(R.string.message_author_missing);\n } else {\n if (mAuthorMap.containsKey(authorName)) {\n String message = getString(R.string.message_author_already_present);\n errorMessage = String.format(message, authorName);\n } else {\n Author a = new Author();\n a.name = authorName;\n\n Author author = authorService.getAuthorByCriteria(a);\n if (author != null) {\n a = author;\n }\n\n mAuthorMap.put(authorName, a);\n mAuthorArrayAdapter.add(a);\n\n String message = getString(R.string.message_author_added);\n message = String.format(message, authorName);\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n mTextAuthor.setText(null);\n mTextAuthor.setError(null);\n }\n }\n if (errorMessage == null) {\n mTextAuthor.setText(null);\n mTextAuthor.setError(null);\n } else {\n mTextAuthor.setError(errorMessage);\n }\n }",
"public void extractMethod(List<Book> books) {\n for (Book book : books) {\n loopAuthors(book);\n }\n }",
"public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}",
"public Book(Author[] authors, int copyrightYear, double edition, Genre genre, String title) {\n super(title);\n this.authors = authors;\n this.copyrightYear = copyrightYear;\n this.edition = edition;\n this.genre = genre;\n this.bookID = generateUniqueID();\n this.rackNo = generateRackID();\n }",
"boolean updateAuthor(Author author) throws PersistenceException, IllegalArgumentException;",
"public void addAuthor(Author a)\n {\n boolean unique = true;\n \n for(Author x : authors)\n {\n if(x == a)\n {\n unique = false;\n }\n }\n \n if(unique)\n {\n authors.add(a);\n }\n }",
"private static void queryBooksByAuthor(){\n\t\tSystem.out.println(\"===Query Books By Author===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter First Name of Author to Query Books by: \");\n\t\tString author_firstname = string_input.next();\n\t\t\n\t\tSystem.out.println(\"Enter Middle Name of Author to Query Books by (Type 'null' if Author has no middlename): \");\n\t\tString author_middlename = string_input.next();\n\t\tif(author_middlename.equalsIgnoreCase(\"null\"))\n\t\t\tauthor_middlename = \"\";\n\t\t\n\t\tSystem.out.println(\"Enter Last Name of Author to Query Books by: \");\n\t\tString author_lastname = string_input.next();\n\t\t\n\t\tString author_fullname = author_firstname + \" \" + author_middlename + \" \" + author_lastname;\n\t\t\n\t\tif(ALL_AUTHORS.containsKey(author_fullname)){//if author_full_name exists in the Hashtable then print out all of the author's book titles\n\t\t\tSystem.out.println(\"Author found!\");\n\t\t\tSystem.out.println(author_fullname + \"'s list of book titles are: \"); \n\t\t\tIterator<String> iter = ALL_AUTHORS.get(author_fullname).iterator();\n\t\t\tprintAllElements(iter);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry Author name entered does not exist in our records\");\n\t}"
] |
[
"0.75673157",
"0.75642574",
"0.7305499",
"0.7104537",
"0.68277836",
"0.6784027",
"0.6773628",
"0.67061096",
"0.66876704",
"0.6686346",
"0.6668723",
"0.6654458",
"0.66366583",
"0.66320914",
"0.6607751",
"0.6568894",
"0.6568894",
"0.6568894",
"0.6568894",
"0.6568894",
"0.6534993",
"0.6504654",
"0.6462761",
"0.64315444",
"0.63719743",
"0.6365339",
"0.63616693",
"0.6330985",
"0.6303621",
"0.6287664",
"0.62789524",
"0.625397",
"0.6248486",
"0.62278235",
"0.61756366",
"0.61487806",
"0.6130987",
"0.60811657",
"0.60784066",
"0.6040417",
"0.60361886",
"0.6005231",
"0.60039437",
"0.5994828",
"0.5987219",
"0.5987219",
"0.5987219",
"0.5987219",
"0.59786004",
"0.59566844",
"0.59462017",
"0.59298164",
"0.5898108",
"0.5892137",
"0.58440405",
"0.58428913",
"0.58428913",
"0.58413523",
"0.58313674",
"0.5803409",
"0.58027714",
"0.57905996",
"0.57864374",
"0.5774583",
"0.5729969",
"0.57111526",
"0.56963015",
"0.56827307",
"0.56823045",
"0.56604475",
"0.564736",
"0.56356364",
"0.5630857",
"0.56292295",
"0.5627631",
"0.56273067",
"0.56112707",
"0.56097835",
"0.56076634",
"0.56076634",
"0.5607433",
"0.55979335",
"0.5597078",
"0.55913675",
"0.55883986",
"0.5585199",
"0.5585199",
"0.5563603",
"0.55575883",
"0.5529839",
"0.55156726",
"0.54902834",
"0.5486966",
"0.5485608",
"0.548153",
"0.5463807",
"0.5461551",
"0.54515743",
"0.54431355"
] |
0.738966
|
3
|
Returns the copyright year of the book
|
public int getCopyrightYear() {
return copyrightYear;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getCopyrightYear()\r\n\t{\r\n\t\treturn COPYRIGHT_YEAR;\r\n\t}",
"public int getDocumentYear();",
"int getYear();",
"public String getYear() {\n\t\treturn year;\r\n\t}",
"public String getYear() {\n\t\treturn year;\n\t}",
"public String getYear() {\n\t\treturn year;\n\t}",
"public int getYear() \n\t{\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public String getYear() {\n return year.getText();\n }",
"public int getYear() {\r\n\t\treturn year;\r\n\t}",
"public String getYear()\r\n {\r\n return year;\r\n }",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year; \n\t}",
"public String getYear() {\n return year;\n }",
"public String getYear() {\n return year;\n }",
"public int getYear() {\n\treturn year;\n }",
"public int getDocumentYear() {\n\t\treturn _tempNoTiceShipMessage.getDocumentYear();\n\t}",
"public static final int getReleaseYear() { return 2019; }",
"public int getYear() {\n\t return year;\n\t}",
"public java.lang.String getRef_Doc_Year() {\r\n return ref_Doc_Year;\r\n }",
"public String getYear()\n {\n return year;\n }",
"Builder addCopyrightYear(String value);",
"@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}",
"public int getYear(){\r\n\t\treturn year;\r\n\t}",
"public int getYear() {\n\t\treturn this.year;\n\t}",
"public int getYear(){\n\t\treturn year; \n\t}",
"public int getYear(){\n\t\treturn year;\n\t}",
"public int getYear() {\r\n return year;\r\n }",
"public int getYear() {\r\n return year;\r\n }",
"public int getYear() {\r\n\t\treturn (this.year);\r\n\t}",
"public int getYear() {\n return DateUtil.YearFromString(rel);\n }",
"public int getYear() {\n return year;\n }",
"public double getYear() {\n return year;\n }",
"public final int getYYYY()\n {\n return yyyy;\n }",
"public int getYear()\n\t{\n\t\treturn m_year;\n\t}",
"public String getYear(){\n return rssData.getDate().split(\"/\")[2];\n }",
"public int getYear() {\r\n return FormatUtils.uint16ToInt(mYear);\r\n }",
"public int getYear() {\n return year;\n }",
"public int getYear() {\n return year;\n }",
"public int getYear() {\r\n return this.year;\r\n }",
"public int getYear()\n {\n return year;\n }",
"public void setCopyrightYear(int copyrightYear) {\n this.copyrightYear = copyrightYear;\n }",
"public void setCopyrightYear(int copyrightYear) {\n this.copyrightYear = copyrightYear;\n }",
"private static int returnsCurrentYear() {\n\t\treturn Calendar.getInstance().get(Calendar.YEAR);\n\t}",
"public int getYear () {\n return year;\n }",
"public Integer getYear() {\r\n return year;\r\n }",
"public Integer getYear() {\r\n return year;\r\n }",
"public int getStartingYear()\n {\n return 2013;\n }",
"Builder addCopyrightYear(Number value);",
"public int getYear() \n\t{\n\t\treturn m_calendar.get(Calendar.YEAR);\n\n\t}",
"public Integer getYear() {\n return year;\n }",
"public Integer getYear() {\n return year;\n }",
"public Integer getYear() {\n return year;\n }",
"public int getYear() { return year; }",
"public int getYear() { return year; }",
"public int getYear() {\n\treturn year;\n}",
"public int getYear()\n {\n return yr;\n }",
"public int getAuthorBirthYear(){\r\n return author.getBirthYear();\r\n }",
"public String getModelYear() {\n\t\treturn modelYear;\n\t}",
"public short getYear() {\n return year;\n }",
"public short getYear() {\r\n return year;\r\n }",
"public String getYearNumber() {\n return yearNumber.get();\n }",
"public String getYear() {\n return (String)getAttributeInternal(YEAR);\n }",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public short getYear() {\n return year;\n }",
"public int getStartYear() {\n\t\treturn startYear;\n\t}",
"@Override\n\tpublic int getYear() {\n\t\treturn _esfShooterAffiliationChrono.getYear();\n\t}",
"public short getYear() {\n return year;\n }",
"public String getRemasterYear() {\r\n\t\treturn this.remasterYear;\r\n\t}",
"public static int getCurrentYear()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.YEAR);\n\t}",
"public static final String getCopyright() { return copyright; }",
"public String getModelYear() {\r\n return (String) store.get(Names.modelYear);\r\n }",
"ImmutableList<SchemaOrgType> getCopyrightYearList();",
"public int getYear() {\n\n return this.cyear;\n\n }",
"public String getCopyright();",
"public String getCopyright();",
"public YearInformation getYearInformation() {\n\t\treturn yearInformation;\n\t}",
"public jkt.hms.masters.business.MasStoreFinancial getYear () {\n\t\treturn year;\n\t}",
"public Number getCopyrightId() {\n return (Number)getAttributeInternal(COPYRIGHTID);\n }",
"public int getYearReleased(){\n\t\treturn this.YEAR_RELEASED;\n\t}",
"public int getCalendarYear() {\r\n\t\treturn calendar.getCalendarYear();\r\n\t}",
"public int getStartYear()\n\t{\n\t\treturn this.mStartYear;\n\t}",
"Integer getTHunYear();",
"public final int getYear() {\n return yearMonthProperty().get().getYear();\n }",
"public String getCopyright() {\n return copyright;\n }",
"public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}",
"public YearCitation(Date mostRecentVersion) {\n\t\tthis.mostRecentVersion = mostRecentVersion; \n\t\tyearFormat = new SimpleDateFormat(\"yyyy\");\n\t}",
"int getExpYear(String bookingRef);",
"public String getvYear() {\n return vYear;\n }",
"int getYears();",
"private String getCurrentYear(){\n\t\tCalendar now = Calendar.getInstance();\n\t\tint year = now.get(Calendar.YEAR);\n\t\tString currentYear = String.valueOf(year);\n\t\treturn currentYear;\n\t}",
"public int getYear(){\n\t return this.year;\n }",
"public String asYear() {\n \treturn new SimpleDateFormat(\"yyyy\").format(expiredAfter);\n }",
"public void setDocumentYear(int documentYear);",
"@Override\n public int getYear() {\n return this.deadline.getYear();\n }"
] |
[
"0.8309612",
"0.75051945",
"0.74834466",
"0.74272496",
"0.74131274",
"0.74131274",
"0.73907125",
"0.7370754",
"0.73487777",
"0.7340585",
"0.7340221",
"0.733088",
"0.733088",
"0.733088",
"0.7329482",
"0.7302148",
"0.7302148",
"0.727604",
"0.7270744",
"0.7268057",
"0.7259043",
"0.7235245",
"0.7232793",
"0.722395",
"0.7218862",
"0.72176754",
"0.7217145",
"0.7215403",
"0.7212082",
"0.7196951",
"0.7188959",
"0.7184494",
"0.7183495",
"0.7169835",
"0.7168307",
"0.71664655",
"0.7149407",
"0.71445495",
"0.7143373",
"0.71246266",
"0.71128744",
"0.7085716",
"0.7061901",
"0.70580953",
"0.70580953",
"0.70518845",
"0.70444673",
"0.702991",
"0.702991",
"0.7016732",
"0.70104784",
"0.7010326",
"0.6988458",
"0.6988458",
"0.6988458",
"0.69847786",
"0.69847786",
"0.6979217",
"0.69636405",
"0.69432664",
"0.689393",
"0.68925077",
"0.68915296",
"0.68789846",
"0.6860333",
"0.6844809",
"0.6840999",
"0.6840999",
"0.6840999",
"0.68227684",
"0.682175",
"0.6821673",
"0.68180215",
"0.6816411",
"0.68114465",
"0.68085617",
"0.6802815",
"0.6769757",
"0.67620414",
"0.67620414",
"0.673946",
"0.6712034",
"0.6699589",
"0.6691995",
"0.6675026",
"0.66734457",
"0.6655813",
"0.66538966",
"0.66368186",
"0.6629311",
"0.66227853",
"0.6612418",
"0.661216",
"0.6606202",
"0.6584044",
"0.6583395",
"0.6572233",
"0.6567173",
"0.6566751"
] |
0.8275331
|
2
|
Sets the copyright year of the book
|
public void setCopyrightYear(int copyrightYear) {
this.copyrightYear = copyrightYear;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Builder addCopyrightYear(String value);",
"public void setDocumentYear(int documentYear);",
"public void setYear(int _year) { year = _year; }",
"public void setYear (int yr) {\n year = yr;\n }",
"public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}",
"public void setYear(int year) {\n\t\tthis.date.setYear(year);\n\t}",
"public void setYear(int year) {\r\n this.year = year;\r\n }",
"Builder addCopyrightYear(Number value);",
"public void setYear(int year)\n {\n this.year = year;\n }",
"public void setYear(int year) {\n this.year = year;\n }",
"public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}",
"public void setYear(int year) {\n\tthis.year = year;\n}",
"public void setYear(String year)\r\n {\r\n this.year = year; \r\n }",
"public void setYear(int year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(int year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(int value) {\n\tthis.year = value;\n }",
"public void setYear(final int year) {\n\t\tthis.year = year;\n\t}",
"public int getCopyrightYear() {\n return copyrightYear;\n }",
"public int getCopyrightYear() {\n return copyrightYear;\n }",
"public String getCopyrightYear()\r\n\t{\r\n\t\treturn COPYRIGHT_YEAR;\r\n\t}",
"public void setYear(int value) {\r\n this.year = value;\r\n }",
"public void setYear(int y){\n\t\tyear = y ; \n\t}",
"public void setYear(String year) {\n this.year = year;\n }",
"public void setYear(String year) {\n this.year = year;\n }",
"public void setYear(String value) {\n setAttributeInternal(YEAR, value);\n }",
"void setCopyrights(String copyrights);",
"@Override\n\tpublic void setYear(int year) {\n\t\t_esfShooterAffiliationChrono.setYear(year);\n\t}",
"public void setYear(String year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(Integer year) {\r\n this.year = year;\r\n }",
"public void setYear(Integer year) {\r\n this.year = year;\r\n }",
"public void setYear(int Year) {\n\t this.year= Year;\n\t}",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(String year) {\n this.put(\"year\", year);\n }",
"public void setCopyright(org.LexGrid.commonTypes.Text copyright) {\n this.copyright = copyright;\n }",
"public void setOriginalReleaseYear(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void setCalendarYear(int year) {\r\n\t\tcalendar.setCalendarYear(year);\r\n\t}",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear (jkt.hms.masters.business.MasStoreFinancial year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\r\n this.year = value;\r\n }",
"public void setYears(int years) {\n this.years = years;\n }",
"public void setSelectedYear(int year) {\n this.selectedYear = year;\n }",
"public YearCitation(Date mostRecentVersion) {\n\t\tthis.mostRecentVersion = mostRecentVersion; \n\t\tyearFormat = new SimpleDateFormat(\"yyyy\");\n\t}",
"public DueDateBuilder setYear(int year) {\n this.year = year;\n return this;\n }",
"public void setDocumentYear(int documentYear) {\n\t\t_tempNoTiceShipMessage.setDocumentYear(documentYear);\n\t}",
"@Override\n\tpublic void setYear(int year) throws RARException {\n\t\tthis.year = year;\n\t}",
"public void setSelectedYear(int selectedYear) {\n this.selectedYear = selectedYear;\n }",
"public static final int getReleaseYear() { return 2019; }",
"public void setYear(int year) throws InvalidDateException {\r\n\t\tif (year <= 2100 & year >= 2000) {\r\n\t\t\tthis.year = year;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic year for the date (between 2000 and 2100) !\");\r\n\t\t}\r\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public String getYear() {\n\t\treturn year;\r\n\t}",
"public String getYear() {\n\t\treturn year;\n\t}",
"public String getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\r\n\t\treturn year;\r\n\t}",
"public Builder setYear(final int year) {\n this.year = year;\n return this;\n }",
"public int getYear(){\r\n\t\treturn year;\r\n\t}",
"public void setStartYear(int startYear) {\n\t\tthis.startYear = startYear;\n\t}",
"public void setOriginalReleaseYear( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void setNewCopyright() {\n\n /** fetch the copyright manager */\n copyrightManager = CopyrightManager.getInstance();\n\n //\n // Fetch and Set the copyright textview\n //\n copyrightJsonObject = copyrightManager.fetchNextCopyRight();\n try {\n copyrightMD5 = copyrightJsonObject.getString(\"copyright_id_md5\");\n copyrightSHA1 = copyrightJsonObject.getString(\"copyright_id_sha1\");\n copyrightSHA256 = copyrightJsonObject.getString(\"copyright_id_sha256\");\n } catch (JSONException e) {\n Log.e(TAG, \"copyright exception:\" + e.getMessage());\n }\n }",
"public int getYear() {\n\t return year;\n\t}",
"public int getYear() {\n\t\treturn year; \n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public void setCopyrightId(Number value) {\n setAttributeInternal(COPYRIGHTID, value);\n }",
"public int getYear() {\n\treturn year;\n }",
"public int getYear(){\n\t\treturn year;\n\t}",
"public int getYear(){\n\t\treturn year; \n\t}",
"public void setYear(int year){\r\n\t\ttry{\r\n\t\t\tif(year>=1900)\r\n\t\t\tthis.year = year;\r\n\t\t\telse\r\n\t\t\t\tthrow new cardYearException();\r\n\t\t}catch(cardYearException ex){\r\n\t\t\tSystem.out.println(\"Baseball Cards weren't invented \"\r\n\t\t\t\t\t+ \"before 1900!\");\r\n\t\t\tSystem.out.print(\"Please enter a valid year: \");\r\n\t\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\tint retry = input.nextInt();\r\n\t\t\t\tsetYear(retry);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}",
"public String getYear()\r\n {\r\n return year;\r\n }",
"public static void setOriginalReleaseYear(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void setPrevYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()-1);\n\n\t}",
"public void setCopyrightOwner(String value) {\n setAttributeInternal(COPYRIGHTOWNER, value);\n }",
"public void setYear(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setYear(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setYear(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setYear(int):void\");\n }",
"public int getYear() \n\t{\n\t\treturn year;\n\t}",
"public void setRef_Doc_Year(java.lang.String ref_Doc_Year) {\r\n this.ref_Doc_Year = ref_Doc_Year;\r\n }",
"public int getYear() {\r\n return year;\r\n }",
"public void setModelYear(String modelYear) {\r\n if (modelYear != null) {\r\n store.put(Names.modelYear, modelYear);\r\n } else {\r\n \tstore.remove(Names.modelYear);\r\n }\r\n }",
"public void setvYear(String vYear) {\n this.vYear = vYear;\n }",
"public String getYear() {\n return year;\n }",
"public String getYear() {\n return year;\n }",
"public void setNumberOfYears(int numberOfYears) {\n this.numberOfYears = numberOfYears;\n }",
"public void selectBirthYear(String birthYear) {\n selectedBirthYear = birthYear;\n }",
"public void setNextYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()+1);\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\n\t}",
"public int getYear() {\n return year;\n }",
"public int getYear() {\r\n return year;\r\n }",
"public static void setOriginalReleaseYear( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void addYear(int year) {\n if (month < 0) {\n subtractYear(year);\n return;\n }\n\n this.year += year;\n }",
"public void setCurrentYear(BigDecimal currentYear) {\n this.currentYear = currentYear;\n }",
"public int getYear() {\n\t\treturn this.year;\n\t}",
"public void setYearParam(String yearParam) {\r\n this.yearParam = yearParam;\r\n }",
"public void addYear(){\n\t\tyearAdd++;\n\t}"
] |
[
"0.79874885",
"0.7830692",
"0.7809085",
"0.772369",
"0.7635869",
"0.7635688",
"0.7619702",
"0.7602247",
"0.7578736",
"0.7571005",
"0.75490814",
"0.7508194",
"0.75047475",
"0.7504591",
"0.7504591",
"0.7466997",
"0.74594164",
"0.74524313",
"0.74524313",
"0.7449082",
"0.743955",
"0.73942673",
"0.7352235",
"0.7352235",
"0.73134494",
"0.72932947",
"0.72559977",
"0.7250432",
"0.7227382",
"0.7227382",
"0.721829",
"0.71994054",
"0.71994054",
"0.71994054",
"0.71042544",
"0.7038978",
"0.7024018",
"0.69814116",
"0.69781953",
"0.690179",
"0.6893594",
"0.6893594",
"0.6893594",
"0.68709433",
"0.6869494",
"0.6860734",
"0.68279517",
"0.6805183",
"0.68049234",
"0.67960024",
"0.6790689",
"0.67839766",
"0.6729915",
"0.6724323",
"0.66915655",
"0.66597414",
"0.66549176",
"0.6642089",
"0.6642089",
"0.6622599",
"0.66103715",
"0.66090965",
"0.6590662",
"0.6586203",
"0.6583652",
"0.65828085",
"0.65816236",
"0.6578975",
"0.6578975",
"0.6578975",
"0.65662795",
"0.6565289",
"0.6561778",
"0.6560693",
"0.65580904",
"0.6547871",
"0.6546562",
"0.65447605",
"0.6539833",
"0.6531275",
"0.65247864",
"0.65238553",
"0.6513612",
"0.6506701",
"0.65032524",
"0.6502863",
"0.6497916",
"0.6497916",
"0.6488021",
"0.64839244",
"0.64835095",
"0.64581054",
"0.6448837",
"0.6436857",
"0.64304113",
"0.64214647",
"0.6413911",
"0.6411872",
"0.6409484"
] |
0.8250583
|
1
|
Returns edition of the book
|
public double getEdition() {
return edition;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookEdition();",
"public int getEdition() {\n return edition;\n }",
"public int getEdition() {\n\treturn edition;\n}",
"public Calendar getEditionDate() {\n\t\treturn editionDate;\n\t}",
"public void setBookEdition(java.lang.String value);",
"EditionPattern getEditionPattern();",
"public String getProductEdition();",
"public void setEdition(int edition) {\n\tthis.edition = edition;\n}",
"public String getEdition() {\n return FxSharedUtils.getFlexiveEdition();\n }",
"String getEditore();",
"public Integer getBookVersion() {\n return bookVersion;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookCode();",
"void printEditionInformation();",
"public void setEdition(double edition) {\n this.edition = edition;\n }",
"public void setEdition(double edition) {\n this.edition = edition;\n }",
"public String getBook() {\n\t\treturn book;\r\n\t}",
"public String getDatabaseEdition() {\n return this.databaseEdition;\n }",
"public boolean hasEditionId() {\n return result.hasEditionId();\n }",
"@Override\n\tpublic int editBook(bookInfo bookinfo) {\n\t\treturn 0;\n\t}",
"public String getBookBookcaseNo() {\n return bookBookcaseNo;\n }",
"BookSide getSide();",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"public int getEdad() {\n\t\treturn (new Date()).getYear()- fechanac.getYear();\n\t}",
"public String getResBookDesigCode() {\n return resBookDesigCode;\n }",
"Object getRev();",
"public Book getBook() {\r\n\t\treturn b;\r\n\t}",
"public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(editedbook);\n\t}",
"public String getEditionFull() {\n return FxSharedUtils.getFlexiveEditionFull();\n }",
"public int getEdad();",
"public interface Edition {\n int editionNumber = 325;\n void print();\n}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookDesc();",
"public AbstractEdificio getEdificio() {\r\n return Edificio;\r\n }",
"public int getEducationalGrade() {\n return educationalGrade;\n }",
"public String getEditorial() {\n return editorial;\n }",
"public String getRightRevision() {\n return rightRevision;\n }",
"public int getRevision()\n {\n return encryptionDictionary.getInt( \"R\", DEFAULT_VERSION );\n }",
"public String getBookAuthor() {\n return bookAuthor;\n }",
"public AuthorChoice getAuthorChoice() {\n\t\treturn authorChoice;\n\t}",
"public String getQuestion() {\n\t\treturn QAUTHOR + book.getTitle() + \"?\";\n\t}",
"public String toString() {\n\treturn \"--------------------\" +\n\t\t\t\"\\n ID: \" + this.book_id +\n\t\t\t\"\\n Title: \" + this.title +\n\t\t\t\"\\n Author: \" + this.author +\n\t\t\t\"\\n Year: \" + this.year +\n\t\t\t\"\\n Edition: \" + this.edition +\n\t\t\t\"\\n Publisher: \" + this.publisher +\n\t\t\t\"\\n ISBN: \" + this.isbn +\n\t\t\t\"\\n Cover: \" + this.cover +\n\t\t\t\"\\n Condition: \" + this.condition +\n\t\t\t\"\\n Price: \" + this.price +\n\t\t\t\"\\n Notes: \" + this.notes +\n\t\t\t\"\\n--------------------\";\n}",
"public abstract String getOntologyEditorVersion();",
"public Integer getBooked() {\n return booked;\n }",
"public int getState() {\n\treturn com.hps.july.dictionary.APPStates.EDITSTRG;\n}",
"public int getBookID() {\n return bookID;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookOffering();",
"public String getBookPress() {\n return bookPress;\n }",
"int getExpYear(String bookingRef);",
"@Override\n\tpublic String getRevision() {\n\t\treturn RevisionUtils.extract(\"$Revision$\");\n\t}",
"public Number getBookDocId() {\n return (Number)getAttributeInternal(BOOKDOCID);\n }",
"ReadOnlyEntryBook getEntryBook();",
"public Integer getRevision()\r\n {\r\n return (m_revision);\r\n }",
"public Integer getEdad() {\n Calendar fechaNac_ = Calendar.getInstance();\n fechaNac_.setTime(fechaNac);\n try {\n return Math.abs(Calendar.getInstance().get(Calendar.YEAR) - fechaNac_.get(Calendar.YEAR));\n } catch (ArithmeticException e) {\n return -1;\n }\n }",
"@Override\n public String toString() {\n return bookName + \"-\" + authorName;\n }",
"public int getEdad() {\n return edad;\n }",
"public int getEdad() {\n return edad;\n }",
"public String getRevision() {\n return RevisionUtils.extract(\"$Revision$\");\n }",
"@Override\n public String toString() {\n return \"REVIEW FOR: \" +\n \"Book Title: '\" + title + '\\'' +\n \" Author: '\" + author + '\\'';\n\n }",
"public Book getBook() {\n\t\treturn book; //changed BoOk to book\r\n\t}",
"public int getEdad() {\r\n\t\treturn edad;\r\n\t}",
"public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 8034 $\");\n }",
"public String getBookType() {\n return bookType;\n }",
"public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }",
"public Book getBook() {\n return book;\n }",
"public Book getKey() {\n return this.key;\n }",
"public int getEdad(){\n\t\treturn edad;\n\t}",
"public String getRevision() {\n\t\treturn RevisionUtils.extract(\"$Revision: 1.9 $\");\n\t}",
"long currentRevision();",
"public String getBookTitle(){\n return bookTitle.getText();\r\n }",
"long getCurrentRevision();",
"public long getBookId() {\n return _sTransaction.getBookId();\n }",
"public String toString() {\n\t\tString str = \"The specs of this book are: \";\n\t\tstr += \"\\n\\tTitle: \" + title;\n\t\tstr += \"\\n\\tAuthor: \" + author;\n\t\treturn str;\n\t}",
"public String toString()\n {\n String str = \"The specs of this book are: \";\n str += \"\\n\\t Title: \" + title;\n str += \"\\n\\t Author: \" + author;\n \n return str;\n }",
"public Integer getBookStatus() {\n return bookStatus;\n }",
"public Integer getBookStatus() {\n return bookStatus;\n }",
"public Integer getBookStatus() {\n return bookStatus;\n }",
"public String getEdited() {\n return Edited;\n }",
"public abstract String getRevision();",
"public String toString() {\r\n return books.toString();\r\n }",
"public String getRevision() {\n return revision;\n }",
"public int getBook_id() {\n\treturn book_id;\n}",
"@Override\n\tpublic java.lang.String getEditorType() {\n\t\treturn _scienceApp.getEditorType();\n\t}",
"public int getEdad() {\n return edad;\n\n }",
"public Date getEditDate() {\n return editDate;\n }",
"java.lang.String getOfficeVersion();",
"public String returnStageOfLife(){\n\t\treturn (String) stageofLifeBox.getSelectedItem();//Return the stage of life options\n\t}",
"@Override\n public String getArticleNode() {\n return ebsco_book_node;\n }",
"public String getAuthorisor()\n\t{\n\t\treturn authorisor;\n\t}",
"public java.lang.Boolean getEdit() {\n return edit;\n }",
"@Override\n public String getEISProductVersion() throws ResourceException {\n return repository.getDescriptor(Repository.REP_VERSION_DESC);\n }",
"public int getCurSeq() {\n\t\t\n\t\tint seq_read_book = readBookDao.getCurSeq();\n\t\treturn seq_read_book;\n\t}",
"public String edit() {\n return \"edit\";\n }",
"public void getBookDetails() {\n\t}",
"@Override\n\tpublic long getRecentModifierId() {\n\t\treturn _scienceApp.getRecentModifierId();\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookName();",
"public boolean getEditing() {\r\n return this.editing;\r\n }",
"public String getBookId() {\n return bookId;\n }",
"public String getBookId() {\n return bookId;\n }",
"@Override\n\tpublic int getGrade() {\n\t\treturn model.getGrade();\n\t}"
] |
[
"0.7638829",
"0.7571521",
"0.7523536",
"0.6906907",
"0.6872401",
"0.6622257",
"0.64900124",
"0.6374451",
"0.6254064",
"0.62318027",
"0.6128021",
"0.6073802",
"0.6015542",
"0.6008679",
"0.6008679",
"0.5947375",
"0.57730895",
"0.5757034",
"0.57291627",
"0.56994325",
"0.5654111",
"0.56356394",
"0.56356394",
"0.56102276",
"0.55735403",
"0.5556992",
"0.55517125",
"0.55281615",
"0.54838073",
"0.5480664",
"0.5460072",
"0.54512054",
"0.5445295",
"0.542733",
"0.5412792",
"0.5407109",
"0.53982747",
"0.53768426",
"0.53545094",
"0.53492826",
"0.5346703",
"0.5340483",
"0.53368986",
"0.5335553",
"0.5332659",
"0.5328889",
"0.53279996",
"0.531808",
"0.5307287",
"0.5293892",
"0.5292605",
"0.52907765",
"0.5289118",
"0.52831674",
"0.5278798",
"0.5278798",
"0.52646255",
"0.525084",
"0.5247774",
"0.5238886",
"0.52357686",
"0.5232367",
"0.52313864",
"0.5228778",
"0.5227734",
"0.5222029",
"0.5220202",
"0.5208765",
"0.5206763",
"0.52059317",
"0.520091",
"0.51955384",
"0.5195004",
"0.51834124",
"0.51834124",
"0.51834124",
"0.51795584",
"0.51754737",
"0.51731753",
"0.51647145",
"0.5160191",
"0.5158819",
"0.51559705",
"0.51521116",
"0.5151459",
"0.5151191",
"0.5146294",
"0.5138553",
"0.5134039",
"0.5131485",
"0.5129338",
"0.5112841",
"0.51070243",
"0.50978863",
"0.5095259",
"0.5086645",
"0.5084798",
"0.5084798",
"0.5081297"
] |
0.74820256
|
4
|
Sets edition of the book
|
public void setEdition(double edition) {
this.edition = edition;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setBookEdition(java.lang.String value);",
"public void setEdition(int edition) {\n\tthis.edition = edition;\n}",
"@Override\n\tpublic int editBook(bookInfo bookinfo) {\n\t\treturn 0;\n\t}",
"private void edit() {\n\n\t}",
"public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(editedbook);\n\t}",
"public void setBook(Book book) {\n this.book = book;\n }",
"@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookEdition();",
"private void enterAll() {\n\n String sku = \"Java1001\";\n Book book1 = new Book(\"Head First Java\", \"Kathy Sierra and Bert Bates\", \"Easy to read Java workbook\", 47.50, true);\n bookDB.put(sku, book1);\n\n sku = \"Java1002\";\n Book book2 = new Book(\"Thinking in Java\", \"Bruce Eckel\", \"Details about Java under the hood.\", 20.00, true);\n bookDB.put(sku, book2);\n\n sku = \"Orcl1003\";\n Book book3 = new Book(\"OCP: Oracle Certified Professional Jave SE\", \"Jeanne Boyarsky\", \"Everything you need to know in one place\", 45.00, true);\n bookDB.put(sku, book3);\n\n sku = \"Python1004\";\n Book book4 = new Book(\"Automate the Boring Stuff with Python\", \"Al Sweigart\", \"Fun with Python\", 10.50, true);\n bookDB.put(sku, book4);\n\n sku = \"Zombie1005\";\n Book book5 = new Book(\"The Maker's Guide to the Zombie Apocalypse\", \"Simon Monk\", \"Defend Your Base with Simple Circuits, Arduino and Raspberry Pi\", 16.50, false);\n bookDB.put(sku, book5);\n\n sku = \"Rasp1006\";\n Book book6 = new Book(\"Raspberry Pi Projects for the Evil Genius\", \"Donald Norris\", \"A dozen friendly fun projects for the Raspberry Pi!\", 14.75, true);\n bookDB.put(sku, book6);\n }",
"@Override\n\tpublic void editExchange() {\n\t\t\n\t}",
"public double getEdition() {\n return edition;\n }",
"public double getEdition() {\n return edition;\n }",
"public void editOperation() {\n\t\t\r\n\t}",
"public int getEdition() {\n\treturn edition;\n}",
"private void selectBook(Book book){\n\t\tthis.book = book;\n\t\tshowView(\"ModifyBookView\");\n\t\tif(book.isInactive()){\n\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.INFO, \"Heads Up! This book is archived. It must be recovered before it can be modified.\"));\n\t\t}else if(book.isLost()){\n\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.INFO, \"Heads Up! This book is lost. It must be recovered before it can be modified.\"));\n\t\t}\n\t}",
"void setEditore(String editore);",
"public int getEdition() {\n return edition;\n }",
"public void selectNewBook(MouseEvent e)\n\t{\n\t\tBookApp.currentBook = otherAppearances.getSelectionModel().getSelectedItem();\n\t\tcurrentBookDisplay.getItems().clear();\n\t\tcurrentBookDisplay.getItems().add(BookApp.currentBook);\n\t\tcharactersNameList.getItems().clear();\n\t\tfor(Character character : (MyLinkedList<Character>) BookApp.currentBook.getCharacterList()){\n\t\t\tcharactersNameList.getItems().add(character);\n\t\t\tcharactersNameList.getSelectionModel().getSelectedIndex();\n\t\t}\n\t\totherAppearances.getItems().clear();\n\t\tfor(int i = 0; i< BookApp.unsortedBookTable.hashTable.length; i++) {\t\t\n\t\t\tfor(Book eachBook : (MyLinkedList<Book>) BookApp.unsortedBookTable.hashTable[i]) {\n\t\t\t\tfor(Character eachCharacterInTotalList : (MyLinkedList<Character>) eachBook.getCharacterList())\n\t\t\t\t{\n\t\t\t\t\tif(eachCharacterInTotalList.equals(BookApp.currentCharacter) && eachBook.equals(BookApp.currentBook))\n\t\t\t\t\t{\n\t\t\t\t\t\totherAppearances.getItems().add(eachBook);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"void update(Book book);",
"@Override\n\tpublic void addBook() {\n\t\t\n\t}",
"private void setORM_Book(i_book.Book value) {\r\n\t\tthis.book = value;\r\n\t}",
"@Test\r\n\tpublic void editChapterDriver() {\r\n\t\tfinal Object testingData[][] = {\r\n\t\t\t{ // Successful test\r\n\t\t\t\t\"producer3\", 315, null\r\n\t\t\t}, { // A producer tries to edit a content of another producer\r\n\t\t\t\t\"producer1\", 315, IllegalArgumentException.class\r\n\t\t\t}, { // A user tries to create a content\r\n\t\t\t\t\"user3\", 315, IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++)\r\n\t\t\tthis.editionChapterTemplate((String) testingData[i][0], (Integer) testingData[i][1], (Class<?>) testingData[i][2]);\r\n\t}",
"public void setEditionDate(Calendar editionDate) throws BadParametersException {\n\t\tif (editionDate == null)\n\t\t\tthrow new BadParametersException();\n\t\t\n\t\tthis.editionDate = editionDate;\n\t}",
"public void actionPerformed(ActionEvent e){\n boolean sentinel = false;\n try{\n if(listOfEBooks.getSelectedItem() == null) {\n new errorWindow(\"No E-Book was selected\");\n return;\n }\n\n if(nameField.getText().equals(\"\")) {\n new errorWindow(\"Enter a name for the E-Book!\");\n sentinel = true;\n }\n if(classForField.getText().equals(\"\")){\n new errorWindow(\"Enter the name of the class for the E-Book\");\n sentinel = true;\n }\n if(redemptionCodeField.getText().equals(\"\")){\n new errorWindow(\"Enter the redemption code of the E-Book\");\n sentinel = true;\n }\n\n if(sentinel == true){\n return;\n }\n else {\n //Updates the E-Book when it is set to have no owner.\n if(redemptionStatusComboBox.getSelectedItem().equals(\"false\")){\n EBook temp = (EBook)listOfEBooks.getSelectedItem();\n books.remove(temp);\n redemptionCodes.remove(temp.getRedemptionCode()+\",\");\n temp.setBookName(nameField.getText());\n temp.setClassFor(classForField.getText());\n temp.setRedemptionCode(redemptionCodeField.getText());\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n books.put(temp);\n redemptionCodes.put(redemptionCodeField.getText()+\",\");\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(nameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 0);\n table.setValueAt(classForField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 1);\n table.setValueAt(redemptionCodeField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 2);\n table.setValueAt(redemptionStatusComboBox.getSelectedItem(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 3);\n dispose();\n }\n else {\n //Checks to see if the inputed changes are appropiate.\n EBook temp = (EBook)listOfEBooks.getSelectedItem();\n books.remove(temp);\n if(studentNameField.getText().equals(\"\")){\n new errorWindow(\"Insert a name\");\n sentinel = true;\n }\n if(gradeLevelField.getText().equals(\"\")){\n new errorWindow(\"Insert a grade level\");\n sentinel = true;\n }\n \n try{\n int gradeLevel = Integer.parseInt(gradeLevelField.getText().trim());\n if(Integer.parseInt(gradeLevelField.getText().trim()) < 1 || Integer.parseInt(gradeLevelField.getText().trim()) > 12){\n new errorWindow(\"Grade Level should be between 1 and 12th\");\n sentinel = true;\n }\n }catch(NumberFormatException nfe){\n new errorWindow(\"Grade Level must be a number\");\n }\n\n \n if(sentinel == true){\n return;\n }\n //Updates the E-Book for an E-Book that has no owner.\n if(temp.getRedemptionStatus() == false){\n redemptionCodes.remove(temp.getRedemptionCode()+\",\");\n unredeemedEBooks.remove(temp);\n temp.setBookName(nameField.getText());\n temp.setClassFor(classForField.getText());\n temp.setRedemptionCode(redemptionCodeField.getText());\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n temp.setOwner(new Student(studentNameField.getText(), Integer.parseInt(gradeLevelField.getText())));\n books.put(temp);\n redemptionCodes.put(redemptionCodeField.getText()+\",\");\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(nameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 0);\n table.setValueAt(classForField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 1);\n table.setValueAt(redemptionCodeField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 2);\n table.setValueAt(redemptionStatusComboBox.getSelectedItem(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 3);\n table.setValueAt(studentNameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 4);\n table.setValueAt(gradeLevelField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 5);\n dispose();\n }\n //Updates the E-Book if the E-Book already has an owner.\n else {\n redemptionCodes.remove(temp.getRedemptionCode()+\",\");\n temp.setBookName(nameField.getText());\n temp.setClassFor(classForField.getText());\n temp.setRedemptionCode(redemptionCodeField.getText());\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n temp.setOwner(new Student(studentNameField.getText(), Integer.parseInt(gradeLevelField.getText())));\n books.put(temp);\n redemptionCodes.put(redemptionCodeField.getText()+\",\");\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(nameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 0);\n table.setValueAt(classForField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 1);\n table.setValueAt(redemptionCodeField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 2);\n table.setValueAt(redemptionStatusComboBox.getSelectedItem(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 3);\n table.setValueAt(studentNameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 4);\n table.setValueAt(gradeLevelField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 5);\n dispose();\n }\n }\n }\n }catch(IOException ex){\n ex.printStackTrace();\n }\n }",
"@Override\n\tpublic void execute() {\n\t\t\n\t\tSectiune book = new Sectiune(\"S1\");\n\t\tbook.elemente.add(new Paragraf(\"P1\"));\n\t\tbook.elemente.add(new Paragraf(\"P2\"));\n\t\t\n\t\tDocumentManager.getInstance().setElement(book);\n\t\t\n\t}",
"public void updateChapter(Chapter chapter);",
"public void putDocumentAfterEdit() {\r\n\t\tif(pointer < strategy.getEntireHistory().size()-1) {\r\n\t\t\tstrategy.putVersion(currentDocument);\r\n\t\t}\r\n\t}",
"public UpdateBooks() {\n initComponents();\n showTable();\n }",
"protected void SetViewBookAfterAuthorAdd(Scene previous) {\n\t\tSystemController.stageArea.setScene(previous);\n\t}",
"@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblLibrary = new javax.swing.JLabel();\n btnAdd = new javax.swing.JButton();\n btnDelete = new javax.swing.JButton();\n btnExit = new javax.swing.JButton();\n btnModify = new javax.swing.JButton();\n lblId = new javax.swing.JLabel();\n lbIdBook = new javax.swing.JLabel();\n jScrollPane = new javax.swing.JScrollPane();\n tblBooks = new javax.swing.JTable();\n lblShelve = new javax.swing.JLabel();\n cbIDShelve = new javax.swing.JComboBox<>();\n txtExistences = new javax.swing.JTextField();\n lblExistences = new javax.swing.JLabel();\n lblAuthor = new javax.swing.JLabel();\n cbIDAuthor = new javax.swing.JComboBox<>();\n txtEditorial = new javax.swing.JTextField();\n lblEditorial = new javax.swing.JLabel();\n txtTitle = new javax.swing.JTextField();\n txtId = new javax.swing.JTextField();\n\n setLayout(null);\n\n lblLibrary.setText(\"Edit Books\");\n add(lblLibrary);\n lblLibrary.setBounds(226, 6, 80, 16);\n\n btnAdd.setText(\"add\");\n btnAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddActionPerformed(evt);\n }\n });\n add(btnAdd);\n btnAdd.setBounds(530, 290, 50, 24);\n\n btnDelete.setText(\"delete\");\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n add(btnDelete);\n btnDelete.setBounds(590, 290, 70, 24);\n\n btnExit.setText(\"exit\");\n btnExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExitActionPerformed(evt);\n }\n });\n add(btnExit);\n btnExit.setBounds(750, 290, 60, 24);\n\n btnModify.setText(\"modify\");\n btnModify.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModifyActionPerformed(evt);\n }\n });\n add(btnModify);\n btnModify.setBounds(670, 290, 70, 24);\n\n lblId.setText(\"ID\");\n add(lblId);\n lblId.setBounds(516, 56, 12, 16);\n\n lbIdBook.setText(\"Title\");\n add(lbIdBook);\n lbIdBook.setBounds(516, 86, 60, 16);\n\n tblBooks.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n tblBooks.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n tblBooks.setDoubleBuffered(true);\n tblBooks.setVerifyInputWhenFocusTarget(false);\n tblBooks.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblBooksMouseClicked(evt);\n }\n });\n jScrollPane.setViewportView(tblBooks);\n\n add(jScrollPane);\n jScrollPane.setBounds(6, 36, 500, 307);\n\n lblShelve.setText(\"id Shelve\");\n add(lblShelve);\n lblShelve.setBounds(516, 206, 60, 16);\n\n cbIDShelve.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbIDShelveActionPerformed(evt);\n }\n });\n add(cbIDShelve);\n cbIDShelve.setBounds(586, 206, 220, 26);\n add(txtExistences);\n txtExistences.setBounds(586, 176, 220, 24);\n\n lblExistences.setText(\"Existences\");\n add(lblExistences);\n lblExistences.setBounds(516, 176, 60, 16);\n\n lblAuthor.setText(\"id Author\");\n add(lblAuthor);\n lblAuthor.setBounds(516, 146, 48, 16);\n\n cbIDAuthor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbIDAuthorActionPerformed(evt);\n }\n });\n add(cbIDAuthor);\n cbIDAuthor.setBounds(586, 146, 220, 26);\n add(txtEditorial);\n txtEditorial.setBounds(586, 116, 220, 24);\n\n lblEditorial.setText(\"Editorial\");\n add(lblEditorial);\n lblEditorial.setBounds(516, 116, 45, 16);\n add(txtTitle);\n txtTitle.setBounds(586, 86, 220, 24);\n\n txtId.setFocusable(false);\n add(txtId);\n txtId.setBounds(586, 56, 60, 24);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n tfBookTitle = new javax.swing.JTextField();\n tfEdition = new javax.swing.JTextField();\n tfISBN = new javax.swing.JTextField();\n tfTotalCopy = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n taAuthors = new javax.swing.JTextArea();\n ddAuthor = new javax.swing.JComboBox<>();\n bAddAuthorDropDown = new javax.swing.JButton();\n tfCopyRight = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n bCancle = new javax.swing.JButton();\n bReset = new javax.swing.JButton();\n bUpdateFinalize = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 18)); // NOI18N\n jLabel1.setText(\"Update Book Information\");\n\n jLabel2.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel2.setText(\"Title:\");\n\n jLabel3.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel3.setText(\"Author:\");\n\n jLabel4.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel4.setText(\"ISBN No.:\");\n\n jLabel5.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel5.setText(\"Edition:\");\n\n jLabel6.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel6.setText(\"Total Copy:\");\n\n tfBookTitle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfBookTitleActionPerformed(evt);\n }\n });\n\n tfEdition.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfEditionActionPerformed(evt);\n }\n });\n\n tfISBN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfISBNActionPerformed(evt);\n }\n });\n\n tfTotalCopy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfTotalCopyActionPerformed(evt);\n }\n });\n\n taAuthors.setColumns(20);\n taAuthors.setRows(5);\n jScrollPane1.setViewportView(taAuthors);\n\n ddAuthor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n bAddAuthorDropDown.setText(\"< Add\");\n bAddAuthorDropDown.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bAddAuthorDropDownActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Copy Right:\");\n\n bCancle.setText(\"Cancel\");\n bCancle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bCancleActionPerformed(evt);\n }\n });\n\n bReset.setText(\"Reset\");\n bReset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bResetActionPerformed(evt);\n }\n });\n\n bUpdateFinalize.setText(\"Update\");\n bUpdateFinalize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bUpdateFinalizeActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(105, 105, 105)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfCopyRight, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tfTotalCopy))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(32, 32, 32)\n .addComponent(tfEdition))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(20, 20, 20)\n .addComponent(tfISBN))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tfBookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ddAuthor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bAddAuthorDropDown, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n .addGap(13, 13, 13))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bCancle, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addComponent(bReset, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(bUpdateFinalize, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(36, 36, 36)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tfBookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ddAuthor, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(bAddAuthorDropDown, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(tfISBN, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tfEdition, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tfCopyRight, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tfTotalCopy, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bUpdateFinalize, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bReset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bCancle, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {tfCopyRight, tfEdition});\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"public void setBookCode(java.lang.String value);",
"public static void courseEditOption(){\n System.out.println(\"Choose 0 to repeat the option List\");\n System.out.println(\"Choose 1 to add new Course to the List\");\n System.out.println(\"Choose 2 to edit the exisiting List\");\n System.out.println(\"Choose 3 to quit editing\");\n }",
"public void setBooked(Integer booked) {\n this.booked = booked;\n }",
"@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}",
"public boolean bookSave(Book book) {\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic Book update(Book book) {\r\n\t\treturn null;\r\n\t}",
"public Calendar getEditionDate() {\n\t\treturn editionDate;\n\t}",
"public void edit(int id, String name, String author, int issueDate, int returnDate) {\n\tListIterator<Book> listItr = list.listIterator();\n\twhile(listItr.hasNext()) {\n\t\tBook book2 = listItr.next();\n\t\tif(book2.id == id) {\n\t\t\tbook2.name = name;\n\t\t\tbook2.author = author;\n\t\t\tbook2.issueDate = issueDate;\n\t\t\tbook2.returnDate = returnDate;\n\t\t\tSystem.out.println(\"Successfully edited: \"+id);\n\t\t\treturn;\n\t\t}\n\t}\n\tSystem.out.println(\"No such Book ID exists\");\n\t\n}",
"public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n final String updatedBookName = bookEditText.getText().toString();\n final String updatedAuthorName = authorEditText.getText().toString();\n if(!updatedBookName.isEmpty()) {\n changeBook(book.getId(), updatedBookName, updatedAuthorName);\n }\n }",
"public void edit(String title){\r\n \t\t\r\n \t char inpt;\r\n \t Scanner e;\r\n \t Scanner ttl;\r\n \t String t;\r\n \t\t\r\n \t boolean found = false;\t\t\t\t\t\r\n \t Iterator<Item> i = items.iterator();\r\n \t Item current = new Item();\r\n\r\n\t while(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t\t //First we have to find the title we want to edit.\r\n\t if(title.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t System.out.println(\"Is this the item you wish to edit? (Y/N)\");\r\n\t Scanner response = new Scanner(System.in);\r\n\t char r = response.next().toUpperCase().charAt(0);\r\n\t if(r == 'Y'){\r\n\t \t \r\n\t \t\t//Check if item is Book or magazine, then ask\r\n\t \t\t//user what element they wish to change.\r\n \t\t if(current.getItemType() == Item.ItemTypes.BOOK){\r\n \t\t System.out.println(\"Edit: (T)itle or (A)uthor.\");\r\n \t\t \t e = new Scanner(System.in);\r\n \t\t inpt = e.next().toUpperCase().charAt(0);\r\n \t\t\t\r\n \t\t if(inpt == 'T'){\r\n \t\t System.out.println(\"Enter the new title: \");\r\n \t\t\t ttl = new Scanner(System.in);\r\n \t\t\t t = ttl.nextLine();\r\n \t\t\t\t\r\n \t\t\t\t\t//set new title!\r\n \t\t\t current.setTitle(t);\r\n \t\t\t\t\r\n \t\t \t }else if(inpt == 'A'){\r\n \t\t\t\t\r\n \t\t System.out.println(\"Enter new authors name: \");\r\n \t\t Scanner a = new Scanner(System.in);\r\n \t\t String author = a.nextLine();\r\n \t\t \r\n \t\t ((Book)current).setAuthor(author);\r\n \t\t \t//This needded to be cast because setAuthor\r\n \t\t \t//is a method in the child class (Book),\r\n \t\t \t//not the parent class (Item.)\t\r\n \t\t }\r\n \t\t } else if(current.getItemType() == Item.ItemTypes.MAGAZINE){\r\n \t\t System.out.println(\"Edit: (T)itle or (Y)ear.\");\r\n \t\t e = new Scanner(System.in);\r\n \t\t inpt = e.next().toUpperCase().charAt(0);\r\n \t\t\t\r\n \t\t if(inpt == 'T'){\r\n \t\t System.out.println(\"Enter the new title: \");\r\n \t\t\t ttl = new Scanner(System.in);\r\n \t\t\t t = ttl.nextLine();\r\n \t\t\t\t\r\n \t\t\t\t \t//set new title!\r\n \t\t \t current.setTitle(t);\r\n \t\t\t\t\r\n \t\t } else if (inpt == 'Y'){\r\n \t\t \t\r\n \t\t System.out.println(\"Enter new year: \");\r\n \t\t Scanner y = new Scanner(System.in);\r\n \t\t int year = y.nextInt();\r\n \t\t \r\n \t\t ((Magazine)current).setYear(year);\t\r\n \t\t \t//This needded to be cast because setAuthor\r\n \t\t \t//is a method in the child class (Book),\r\n \t\t \t//not the parent class (Item.)\t\t\r\n \t\t }\r\n \t\t }\r\n\t }\r\n\t } \r\n }\r\n \r\n \t//If the title can't be found, print this.\r\n\t if(found != true){\r\n\t System.out.println(\"Title: \" + title + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t }\r\n }",
"public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}",
"private void makeModifiable() {\n final TableEditor editor = new TableEditor(providers);\n editor.horizontalAlignment = SWT.LEFT;\n editor.grabHorizontal = true;\n editor.minimumWidth = 50;\n\n // editing the fourth column\n final int editable = 4;\n\n providers.addSelectionListener(new SelectionListener() {\n \n @Override\n public void widgetSelected(SelectionEvent exc) {\n\n TableItem item = (TableItem) exc.item;\n\n //Column should only be editable if arguments are allowed for the provider.\n if (item.getText(3).toString().equals(\"false\") || item == null) {\n return;\n }\n\n Control oldEditor = editor.getEditor();\n\n if (oldEditor != null) {\n oldEditor.dispose();\n }\n\n \n Text newEditor = new Text(providers, SWT.NONE);\n newEditor.setText(item.getText(editable));\n newEditor.addModifyListener(new ModifyListener() {\n\n \n @Override\n public void modifyText(ModifyEvent exc) {\n Text text = (Text) editor.getEditor();\n editor.getItem().setText(editable, text.getText());\n }\n });\n \n newEditor.selectAll();\n newEditor.setFocus();\n editor.setEditor(newEditor, item, editable); \n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n // TODO Auto-generated method stub\n }\n });\n \n for (int i = 0; i < TITLES.length; i++) {\n providers.getColumn(i).pack();\n }\n }",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_editor);\n\n // Check the intent that was passed to this activity to see if a book was supplied\n Intent intent = getIntent();\n currentBookUri = intent.getData();\n\n // If the intent doesn't have any data, change the title to \"Add a Book\"\n if (currentBookUri == null) {\n setTitle(getString(R.string.editor_activity_title_add_a_book));\n invalidateOptionsMenu();\n } else {\n getLoaderManager().initLoader(EDITOR_LOADER, null, this);\n }\n\n // Grab the views from the layout\n productNameEditText = findViewById(R.id.activity_editor_product_name_edit_text);\n priceEditText = findViewById(R.id.activity_editor_price_edit_text);\n supplierNameEditText = findViewById(R.id.activity_editor_supplier_name_edit_text);\n supplierPhoneEditText = findViewById(R.id.activity_editor_supplier_phone_edit_text);\n minusButton = findViewById(R.id.activity_editor_minus_button);\n plusButton = findViewById(R.id.activity_editor_plus_button);\n quantityTextView = findViewById(R.id.activity_editor_quantity_text_view);\n orderButton = findViewById(R.id.activity_editor_order_button);\n\n // Set up the OnTouchListener for the input fields\n productNameEditText.setOnTouchListener(touchListener);\n priceEditText.setOnTouchListener(touchListener);\n supplierNameEditText.setOnTouchListener(touchListener);\n supplierPhoneEditText.setOnTouchListener(touchListener);\n\n // Set up the minus button click listener\n View.OnClickListener minusOnClickListener = new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // If quantity is already zero, don't decrease it\n if (bookQuantity > 0) bookQuantity--;\n quantityTextView.setText(Integer.toString(bookQuantity));\n bookHasChanged = true;\n }\n };\n minusButton.setOnClickListener(minusOnClickListener);\n\n // Set up the plus button click listener\n View.OnClickListener plusOnClickListener = new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n bookQuantity++;\n quantityTextView.setText(Integer.toString(bookQuantity));\n bookHasChanged = true;\n }\n };\n plusButton.setOnClickListener(plusOnClickListener);\n\n // Set up the order button to dial the vendor, if it's a new entry hide the order button\n if (currentBookUri == null) {\n orderButton.setVisibility(View.GONE);\n } else {\n View.OnClickListener orderOnClickListener = new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Start phone dial intent\n String phoneNumber = supplierPhoneEditText.getText().toString().trim();\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n startActivity(intent);\n }\n };\n orderButton.setOnClickListener(orderOnClickListener);\n }\n }",
"private void saveBook() {\n // Read the data from the fields\n String productName = productNameEditText.getText().toString().trim();\n String price = priceEditText.getText().toString().trim();\n String quantity = Integer.toString(bookQuantity);\n String supplierName = supplierNameEditText.getText().toString().trim();\n String supplierPhone = supplierPhoneEditText.getText().toString().trim();\n\n // Check if any fields are empty, throw error message and return early if so\n if (productName.isEmpty() || price.isEmpty() ||\n quantity.isEmpty() || supplierName.isEmpty() ||\n supplierPhone.isEmpty()) {\n Toast.makeText(this, R.string.editor_activity_empty_message, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Format the price so it has 2 decimal places\n String priceFormatted = String.format(java.util.Locale.getDefault(), \"%.2f\", Float.parseFloat(price));\n\n // Create the ContentValue object and put the information in it\n ContentValues contentValues = new ContentValues();\n contentValues.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n contentValues.put(BookEntry.COLUMN_BOOK_PRICE, priceFormatted);\n contentValues.put(BookEntry.COLUMN_BOOK_QUANTITY, quantity);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, supplierName);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhone);\n\n // Save the book data\n if (currentBookUri == null) {\n // New book, so insert into the database\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, contentValues);\n\n // Show toast if successful or not\n if (newUri == null)\n Toast.makeText(this, getString(R.string.editor_insert_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_insert_book_successful), Toast.LENGTH_SHORT).show();\n } else {\n // Existing book, so save changes\n int rowsAffected = getContentResolver().update(currentBookUri, contentValues, null, null);\n\n // Show toast if successful or not\n if (rowsAffected == 0)\n Toast.makeText(this, getString(R.string.editor_update_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_update_book_successful), Toast.LENGTH_SHORT).show();\n\n }\n\n finish();\n }",
"@Override\n\tpublic void updateBookData() {\n\t\tList<Book> bookList = dao.findByHql(\"from Book where bookId > 1717\",null);\n\t\tString bookSnNumber = \"\";\n\t\tfor(Book book:bookList){\n\t\t\tfor (int i = 1; i <= book.getLeftAmount(); i++) {\n\t\t\t\t// 添加图书成功后,根据ISBN和图书数量自动生成每本图书SN号\n\t\t\t\tBookSn bookSn = new BookSn();\n\t\t\t\t// 每本书的bookSn号根据书的ISBN号和数量自动生成,\n\t\t\t\t// 如书的ISBN是123,数量是3,则每本书的bookSn分别是:123-1,123-2,123-3\n\t\t\t\tbookSnNumber = \"-\" + i;//book.getIsbn() + \"-\" + i;\n\t\t\t\tbookSn.setBookId(book.getBookId());\n\t\t\t\tbookSn.setBookSN(bookSnNumber);\n\t\t\t\t// 默认书的状态是0表示未借出\n\t\t\t\tbookSn.setStatus(new Short((short) 0));\n\t\t\t\t// 添加bookSn信息\n\t\t\t\tbookSnDao.save(bookSn);\n\t\t\t}\n\t\t}\n\t}",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"public void setEditor(Editor editor) {\n this.currentEditor = editor;\n refreshView();\n }",
"public void verarbeite() {\n\t\t\r\n\t}",
"void printEditionInformation();",
"@Override\r\n\tpublic int updateBookInfo(Book book, int book_id) {\n\t\treturn 0;\r\n\t}",
"public void setEditor(Editor editor)\n {\n this.editor = editor;\n }",
"public void setEditedItem(Object item) {editedItem = item;}",
"public void setInput(IWorkbenchPart part, ISelection selection) {\n\t\tsuper.setInput(part, selection);\n\n\t\tif (this.getModelObject() != null) {\n\n\t\t\t// update current mode in ui\n\t\t\tObject scurrentMode = getModelObject().getPropertyValue(\n\t\t\t\t\t\"keyAccessMode\");\n\n\t\t\tboolean bCurrentMode = (scurrentMode == null || \"0\"\n\t\t\t\t\t.equals(scurrentMode));\n\t\t\tbuttonCheckbox.setSelection(bCurrentMode);\n\t\t\tsectionAuthor.setVisible(bCurrentMode);\n\t\t\tsectionReader.setVisible(bCurrentMode);\n\n\t\t\tif (bCurrentMode) {\n\t\t\t\tupdateActors();\n\t\t\t\tdreck.pack(true);\n\t\t\t\tdreck.layout(true, true);\n\n\t\t\t\tdreck.update();\n\t\t\t}\n\n\t\t}\n\t}",
"public void setBook_id(int book_id) {\n\tthis.book_id = book_id;\n}",
"@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }",
"public void setupEditFields(Dialog dialog, HashMap bookData) {\n ButtonType addButtontype = new ButtonType(\"Confirm\", ButtonBar.ButtonData.OK_DONE);\r\n dialog.getDialogPane().getButtonTypes().addAll(addButtontype, ButtonType.CANCEL);\r\n\r\n // Creates TextFields\r\n GridPane grid = new GridPane();\r\n grid.setHgap(10);\r\n grid.setVgap(10);\r\n grid.setPadding(new Insets(20, 150, 10, 10));\r\n\r\n TextField title = new TextField();\r\n title.setPromptText(\"Book Title\");\r\n if (!bookData.isEmpty()) {\r\n title.setText(bookData.get(\"title\").toString());\r\n }\r\n\r\n TextField author = new TextField();\r\n author.setPromptText(\"Book Author\");\r\n if (!bookData.isEmpty()) {\r\n author.setText(bookData.get(\"authors\").toString());\r\n }\r\n\r\n TextField location = new TextField();\r\n location.setPromptText(\"Location\");\r\n if (!bookData.isEmpty()) {\r\n location.setText(bookData.get(\"location\").toString());\r\n }\r\n\r\n TextField copies = new TextField();\r\n copies.setPromptText(\"Copies\");\r\n if (!bookData.isEmpty()) {\r\n copies.setText(bookData.get(\"copies_in_stock\").toString());\r\n }\r\n\r\n grid.add(new Label(\"Title:\"), 0, 0);\r\n grid.add(title, 1, 0);\r\n\r\n grid.add(new Label(\"Author:\"), 0, 1);\r\n grid.add(author, 1, 1);\r\n\r\n TextField isbn = new TextField();\r\n if (bookData.isEmpty()) {\r\n isbn.setPromptText(\"ISBN\");\r\n grid.add(new Label(\"ISBN:\"), 0, 2);\r\n grid.add(isbn, 1, 2);\r\n }\r\n\r\n grid.add(new Label(\"Location:\"), 0, 3);\r\n grid.add(location, 1, 3);\r\n\r\n grid.add(new Label(\"Copies:\"), 0, 4);\r\n grid.add(copies, 1, 4);\r\n\r\n\r\n // Activate edit button when all fields have text\r\n Node addButton = dialog.getDialogPane().lookupButton(addButtontype);\r\n BooleanBinding booleanBind = title.textProperty().isEmpty()\r\n .or(author.textProperty().isEmpty())\r\n .or(location.textProperty().isEmpty())\r\n .or(copies.textProperty().isEmpty());\r\n\r\n addButton.disableProperty().bind(booleanBind);\r\n\r\n dialog.getDialogPane().setContent(grid);\r\n dialog.show();\r\n\r\n addButton.addEventFilter(ActionEvent.ACTION, clickEvent -> {\r\n try {\r\n if (this.books.getByColumn(\"isbn\", isbn.getText()).isEmpty()) {\r\n HashMap bookChange = new HashMap();\r\n if (bookData.isEmpty()) {\r\n bookChange.put(\"isbn\", isbn.getText());\r\n bookChange.put(\"title\", title.getText());\r\n bookChange.put(\"authors\", author.getText());\r\n bookChange.put(\"location\", location.getText());\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n } else {\r\n bookChange.put(\"title\", QueryBuilder.escapeValue(title.getText()));\r\n bookChange.put(\"authors\", QueryBuilder.escapeValue(author.getText()));\r\n bookChange.put(\"location\", QueryBuilder.escapeValue(location.getText()));\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n }\r\n\r\n if (bookData.isEmpty()) {\r\n this.books.insert(bookChange);\r\n } else {\r\n this.books.update(bookChange, Integer.parseInt(bookData.get(\"id\").toString()));\r\n }\r\n\r\n QueryBuilder queryBooks = new QueryBuilder(\"books\");\r\n twg.setTable(queryBooks.select(Books.memberVisibleFields).build(), tableBooks);\r\n\r\n } else {\r\n Screen.popup(\"WARNING\", \"The ISBN typed in already exists, please edit the existing entry.\");\r\n clickEvent.consume();\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n Screen.popup(\"WARNING\", \"The 'copies' field should contain a number.\");\r\n clickEvent.consume();\r\n }\r\n });\r\n\r\n Platform.runLater(() -> title.requestFocus());\r\n }",
"private void saveBook() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String productName = etTitle.getText().toString().trim();\n String author = etAuthor.getText().toString().trim();\n String price = etPrice.getText().toString().trim();\n String quantity = etEditQuantity.getText().toString().trim();\n String supplier = etSupplier.getText().toString().trim();\n String supplierPhoneNumber = etPhoneNumber.getText().toString().trim();\n\n // If this is a new book and all of the fields are blank.\n if (currentBookUri == null &&\n TextUtils.isEmpty(productName) && TextUtils.isEmpty(author) &&\n TextUtils.isEmpty(price) && quantity.equals(getString(R.string.zero)) &&\n TextUtils.isEmpty(supplier) && TextUtils.isEmpty(supplierPhoneNumber)) {\n // Exit the activity without saving a new book.\n finish();\n return;\n }\n\n // Make sure the book title is entered.\n if (TextUtils.isEmpty(productName)) {\n Toast.makeText(this, R.string.enter_title, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the author is entered.\n if (TextUtils.isEmpty(author)) {\n Toast.makeText(this, R.string.enter_author, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the price is entered.\n if (TextUtils.isEmpty(price)) {\n Toast.makeText(this, R.string.enter_price, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the quantity is entered if it is a new book.\n // Can be zero when editing book, in case the book is out of stock and user wants to change\n // other information, but hasn't received any new inventory yet.\n if (currentBookUri == null && (quantity.equals(getString(R.string.zero)) ||\n quantity.equals(\"\"))) {\n Toast.makeText(this, R.string.enter_quantity, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier is entered.\n if (TextUtils.isEmpty(supplier)) {\n Toast.makeText(this, R.string.enter_supplier, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier's phone number is entered.\n if (TextUtils.isEmpty(supplierPhoneNumber)) {\n Toast.makeText(this, R.string.enter_suppliers_phone_number,\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Convert the price to a double.\n double bookPrice = Double.parseDouble(price);\n\n // Convert the quantity to an int, if there is a quantity entered, if not set it to zero.\n int bookQuantity = 0;\n if (!quantity.equals(\"\")) {\n bookQuantity = Integer.parseInt(quantity);\n }\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n values.put(BookEntry.COLUMN_BOOK_AUTHOR, author);\n values.put(BookEntry.COLUMN_BOOK_PRICE, bookPrice);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, bookQuantity);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER, supplier);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhoneNumber);\n\n // Check if this is a new or existing book.\n if (currentBookUri == null) {\n // Insert a new book into the provider, returning the content URI for the new book.\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the row ID is null, then there was an error with insertion.\n Toast.makeText(this, R.string.save_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful, display a toast.\n Toast.makeText(this, R.string.save_successful, Toast.LENGTH_SHORT).show();\n }\n } else {\n // Check to see if any updates were made if not, no need to update the database.\n if (!bookHasChanged) {\n // Exit the activity without updating the book.\n finish();\n } else {\n // Update the book.\n int rowsUpdated = getContentResolver().update(currentBookUri, values, null,\n null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsUpdated == 0) {\n // If no rows were updated, then there was an error with the update.\n Toast.makeText(this, R.string.update_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful, display a toast.\n Toast.makeText(this, R.string.update_successful,\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n // Exit the activity, called here so the user can enter all of the required fields.\n finish();\n }",
"void setModBookFilePath(Path modBookFilePath);",
"void setActiveDescription(MultiViewDescription description) {\n \n if (currentEditor == description) return;\n MultiViewDescription old = currentEditor;\n currentEditor = description;\n // fireSelectionChanged(old, description);\n }",
"@Override\r\n\tpublic void setSelection(List<EObject> selection) {\r\n\t\tthis.selection = selection;\r\n\t\tthis.refactoringProcessor = \r\n\t\t\t\tnew InternalRefactoringProcessor(this.selection);\r\n\t}",
"public SheetEditor(Sheet sheet, ExcelContext context) {\n\t\tsuper(context);\n\t\tthis.sheet = sheet;\n\t\tsheetIndex = workBook.getSheetIndex(this.sheet);\n\t}",
"@Override\n public void seedBooks() throws IOException {\n if (this.bookRepository.count() > 0) {\n return;\n }\n\n String[] lines = this.readFileUtil.read(BOOKS_FILE_RELATIVE_PATH);\n for (int i = 0; i < lines.length; i++) {\n /* Get args */\n String[] args = lines[i].split(\"\\\\s+\");\n\n /* Get edition type */\n EditionType editionType = EditionType.values()[Integer.parseInt(args[0])];\n\n /* Get release date */\n LocalDate releaseDate = localDateUtil.parseByPattern(\"d/M/yyyy\", args[1]);\n\n /* Get copies */\n long copies = Long.parseLong(args[2]);\n\n /* Get price */\n BigDecimal price = new BigDecimal(args[3]);\n\n /* Get age restriction */\n AgeRestriction ageRestriction = AgeRestriction.values()[Integer.parseInt(args[4])];\n\n /* Get title */\n String title = Arrays.stream(args).skip(5).collect(Collectors.joining(\" \"));\n\n /* Get author */\n Author randomAuthor = this.randomAuthorUtil.getRandom();\n\n /* Get categories */\n Set<Category> randomCategories = this.randomCategoriesUtil.getRandom();\n\n /* Create book */\n Book book = new Book(ageRestriction, copies, editionType, price, releaseDate, title, randomAuthor);\n book.setCategories(randomCategories);\n\n /* Save the book */\n this.bookRepository.saveAndFlush(book);\n }\n }",
"public Book(String title, String publisher, String genre, String author, int edition, String dateOfRelease, int pages) {\n super(title, genre, publisher, author);\n this.edition = edition;\n this.dateOfRelease = dateOfRelease;\n this.pages = pages;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (column == 3) {\n\t\t\t\t\tDocument doc = new PlainDocument() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void insertString(int offs, String str, AttributeSet attr) throws BadLocationException {\n\t\t\t\t\t\t\tString newstr = str.replaceAll(\" \", \"\"); // could\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// use\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"\\\\s\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// instead\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of \"\n\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\tsuper.insertString(offs, newstr, attr);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void replace(int offs, int len, String str, AttributeSet attr)\n\t\t\t\t\t\t\t\tthrows BadLocationException {\n\t\t\t\t\t\t\tString newstr = str.replaceAll(\" \", \"\"); // could\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// use\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"\\\\s\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// instead\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of \"\n\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\tsuper.replace(offs, len, newstr, attr);\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tJTextField isbnField = new JTextField();\n\t\t\t\t\tisbnField.setDocument(doc);\n\t\t\t\t\tisbnField.setToolTipText(\"Value no longer than 13 characters\");\n\t\t\t\t\t((AbstractDocument) isbnField.getDocument()).setDocumentFilter(new DocumentFilter() {\n\t\t\t\t\t\tPattern regEx = Pattern.compile(\"\\\\d+\");\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void replace(FilterBypass fb, int offset, int length, String text, AttributeSet attrs)\n\t\t\t\t\t\t\t\tthrows BadLocationException {\n\t\t\t\t\t\t\tMatcher matcher = regEx.matcher(text);\n\t\t\t\t\t\t\tif (!matcher.matches()) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsuper.replace(fb, offset, length, text, attrs);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tJComponent[] inputs = new JComponent[] { new JLabel(\"ISBN number :\"), isbnField };\n\t\t\t\t\tint showConfirmDialog = JOptionPane.showConfirmDialog(null, inputs, \"ISBN number\",\n\t\t\t\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\n\t\t\t\t\tString value = isbnField.getText();\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Implement checking whether the ISBN value is already in\n\t\t\t\t\t * table. If so prompt user to enter correct value with\n\t\t\t\t\t * information about duplicates.\n\t\t\t\t\t */\n\t\t\t\t\tif (showConfirmDialog == 0) {\n\t\t\t\t\t\tif (!value.isEmpty()) {\n\t\t\t\t\t\t\ttableModel.setValueAt(Integer.parseInt(value), row, column);\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\t/*\n\t\t\t\t\t * Taking each column except the isbn columns\n\t\t\t\t\t */\n\t\t\t\t} else {\n\t\t\t\t\tvalue = JOptionPane.showInputDialog(null, \"Enter \" + tableModel.getColumnName(column));\n\t\t\t\t\tif (value != null) {\n\t\t\t\t\t\ttableModel.setValueAt(value, row, column);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttableModel.fireTableCellUpdated(row, column);\n\t\t\t}",
"public void save(){\n checkpoint = chapter;\n }",
"@Override\n public void edit(ReporteAccidente rep) {\n repr.save(rep);\n }",
"public void actionPerformed(ActionEvent event) {\n selectedPeriodRemove=teacherPeriodsList.getSelectedIndex();\r\n selectedTeacherRemove=editTeachersList.getSelectedIndex(); \r\n \r\n //if there is a selected period\r\n if ((selectedPeriodRemove!=-1)&&(selectedTeacherRemove!=-1)){\r\n \r\n //Clearing books with that period and teacher\r\n for (int i = 0; i < bookInv.numBookSets(); i++){\r\n for (int j = 0; j < bookInv.getBookSet(i).getSize(); j++){\r\n Book temp = bookInv.getBookSet(i).getBook(j);\r\n String teacherName = teachers.get(selectedTeacherRemove).getName();\r\n if (temp.getTeacherName() != null){\r\n if (temp.getTeacherName().equals(teacherName)){\r\n bookInv.getBookSet(i).getBook(j).setInStockStatus(true);\r\n bookInv.getBookSet(i).getBook(j).setStudentName(null);\r\n bookInv.getBookSet(i).getBook(j).setTeacherName(null);\r\n bookInv.getBookSet(i).getBook(j).setPeriodNum(-1);\r\n }\r\n }\r\n }\r\n }\r\n //Saving inventory\r\n try{\r\n bookInv.saveInv();\r\n }catch(IOException e){}\r\n \r\n teachers.get(selectedTeacherRemove).removeSinglePeriodBooks(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).removePeriod(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).writePeriodList (false); \r\n \r\n //remove the period from the list model\r\n teacherPeriodsListModel.removeElementAt(selectedPeriodRemove);\r\n } else if (selectedTeacherRemove==-1){\r\n JLabel chooseTeacher = new JLabel( \"Please select a teacher to edit!\");\r\n chooseTeacher.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), chooseTeacher, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n } else {\r\n JLabel choosePeriod = new JLabel( \"Please select a period to remove!\");\r\n choosePeriod.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), choosePeriod, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n }\r\n teacherPeriodsList.clearSelection();\r\n }",
"public void setBookVersion(Integer bookVersion) {\n this.bookVersion = bookVersion;\n }",
"void edit(Price Price);",
"@FXML\n public void returnOrBorrowBook() {\n LibrarySystem.setScene(\n new SearchBook(reader, null, readerlist, booklist));\n }",
"private void updateBook(){\n String dateStarted = ((EditText)dialogView.findViewById(R.id.input_date_started_reading))\n .getText().toString();\n book.setDateStarted(dateStarted);\n\n String dateCompleted = ((EditText)dialogView.findViewById(R.id.input_date_completed))\n .getText().toString();\n book.setDateCompleted(dateCompleted);\n\n //update the book\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\n mDatabase.child(\"books\").child(book.getId()).setValue(book);\n\n //hide dialog\n dismiss();\n }",
"public void importer() {\n\t\tString[] champs = {\n\t\t\t\"numero_edition\", \n\t\t\t\"libelle_edition\"\n\t\t};\n\t\t\n\t\tExploitation bdd = new Exploitation();\n\t\tbdd.chargerPilote();\n\t\tbdd.connexion();\n\t\tString[][] req = bdd.lister(champs, \"edition\");\n\n\t\tfor(int i=0; i<req.length; i++) {\n\t\t\tEdition e = new Edition(Integer.parseInt(req[i][0]), req[i][1]);\n\t\t\tthis.lesEditions.add(e);\n\t\t}\n\t\tbdd.deconnexion();\n\t}",
"public abstract void acceptEditing();",
"public void updateAuthor(Author author);",
"@FXML\n void handleEdit(ActionEvent event) {\n if (checkFields()) {\n\n try {\n //create a pseudo new environment with the changes but same id\n Environment newEnvironment = new Environment(oldEnvironment.getId(), editTxtName.getText(), editTxtDesc.getText(), editClrColor.getValue());\n\n //edit the oldenvironment\n Environment.edit(oldEnvironment, newEnvironment);\n } catch (SQLException exception) {\n //failed to save a environment, IO with database failed\n Manager.alertException(\n resources.getString(\"error\"),\n resources.getString(\"error.10\"),\n this.dialogStage,\n exception\n );\n }\n //close the stage\n dialogStage.close();\n } else {\n //fields are not filled valid\n Manager.alertWarning(\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid.content\"),\n this.dialogStage);\n }\n Bookmark.refreshBookmarksResultsProperty();\n }",
"public abstract void edit();",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif(table.getSelectedRow() != -1) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tatualizar(repo);\n\t\t\t\t\t} catch (RuntimeException re) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(), \"Erro ao atualizar!\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Selecione a linha a ser alterada.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}",
"public static void update( EntityManager em, UserTransaction ut, String isbn,\n String title, int year) throws Exception {\n ut.begin();\n Book book = em.find( Book.class, isbn);\n if ( title != null && !title.equals( book.title)) {\n book.setTitle( title);\n }\n if ( year != book.year) {\n book.setYear( year);\n }\n ut.commit();\n System.out.println( \"Book.update: the book \" + book + \" was updated.\");\n }",
"public void setBooked(boolean booked) {\n this.booked = booked;\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\r\n\t\t\t\t\tSave.initialize(getA1(), getA2(), getA3(), getA4(), getB1(), getB2(), getB3(), getB4(), toggle);\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t}",
"public void setBookOffering(java.lang.String value);",
"public void doEdit(TLDocument doc){\n\n\t\trememberDocument(doc);\n\t\t\n\t\t//\tSet the create and modify timestamps on the states.\n\t\tSet affectedStates = this.getAffectedStates();\n\t\tIterator iter = affectedStates.iterator();\n\t\tlong now = System.currentTimeMillis();\n\t\twhile (iter.hasNext()){\n\t\t\tTLState state = (TLState)iter.next();\n\t\t\tstate.setCreateTime(now);\n\t\t\tstate.setModifyTime(now);\n\t\t}\n\t\n\t\t//\tAsk the document to add these states.\n\t\tif (iDeleting)\n\t\t\tiDoc.editRemoveStates(this, affectedStates);\n\t\telse\n\t\t\tiDoc.editAddStates(this, affectedStates);\n\t}",
"private void setAnswer() {\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n setValue();\n }\n }",
"public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }",
"public void updateSelection() {\n\t\t\n\t}",
"public void changeACLMode(boolean b) {\n\t\tif (b)\n\t\t\tgetModelObject().setPropertyValue(\"keyAccessMode\", \"0\");\n\t\telse\n\t\t\tgetModelObject().setPropertyValue(\"keyAccessMode\", \"1\");\n\n\t\tsectionAuthor.setVisible(b);\n\t\tsectionReader.setVisible(b);\n\n\t\t// clear and backup values?\n\t\tif (!b) {\n\t\t\t// backup\n\t\t\tgetModelObject().setPropertyValue(\"keyAddReadFieldsBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"keyAddReadFields\"));\n\t\t\tgetModelObject().setPropertyValue(\"keyAddWriteFieldsBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"keyAddWriteFields\"));\n\n\t\t\tgetModelObject().setPropertyValue(\"namAddReadAccessBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"namAddReadAccess\"));\n\t\t\tgetModelObject().setPropertyValue(\"namAddWriteAccessBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"namAddWriteAccess\"));\n\n\t\t\tgetModelObject().setPropertyValue(\"namAddReadAccess\", new Vector());\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\"namAddWriteAccess\", new Vector());\n\t\t\tgetModelObject().setPropertyValue(\"keyAddReadFields\", new Vector());\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\"keyAddWriteFields\", new Vector());\n\n\t\t} else {\n\n\t\t\t// restore values - if possible\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\n\t\t\t\t\t\t\t\"keyAddReadFields\",\n\t\t\t\t\t\t\tgetModelObject().getPropertyValue(\n\t\t\t\t\t\t\t\t\t\"keyAddReadFieldsBackup\"));\n\t\t\tgetModelObject().setPropertyValue(\n\t\t\t\t\t\"keyAddWriteFields\",\n\t\t\t\t\tgetModelObject()\n\t\t\t\t\t\t\t.getPropertyValue(\"keyAddWriteFieldsBackup\"));\n\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\n\t\t\t\t\t\t\t\"namAddReadAccess\",\n\t\t\t\t\t\t\tgetModelObject().getPropertyValue(\n\t\t\t\t\t\t\t\t\t\"namAddReadAccessBackup\"));\n\t\t\tgetModelObject().setPropertyValue(\n\t\t\t\t\t\"namAddWriteAccess\",\n\t\t\t\t\tgetModelObject()\n\t\t\t\t\t\t\t.getPropertyValue(\"namAddWriteAccessBackup\"));\n\n\t\t\t// force a full redraw of all checkboxes (I think that I hate\n\t\t\t// Eclipse SWT.....)\n\t\t\tvectorNameFields = null;\n\t\t\tupdateActors();\n\n\t\t\tthis.refresh();\n\t\t\twriteCheckbox.layout(true);\n\t\t\treadCheckbox.layout(true);\n\n\t\t\tdreck.pack(true);\n\n\t\t\tdreck.layout(true, true);\n\n\t\t\tdreck.update();\n\t\t}\n\n\t}",
"public void readBook()\n\t{\n\t\tb.input();\n\t\tSystem.out.print(\"Enter number of available books:\");\n\t\tavailableBooks=sc.nextInt();\n\t}",
"public void returnBook()\n\t{\n\t\tavailableBooks++;\n\t}",
"public void actionPerformed(AnActionEvent e) {\n final Editor editor = e.getRequiredData(CommonDataKeys.EDITOR);\n final Project project = e.getProject();\n\n //Access document, caret, and selection\n final Document document = editor.getDocument();\n final SelectionModel selectionModel = editor.getSelectionModel();\n\n final int start = selectionModel.getSelectionStart();\n final int end = selectionModel.getSelectionEnd();\n\n final String s = document.getText(TextRange.from(start, end));\n\n String to = s;\n if (hasUpperCase(s)) {\n to = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_HYPHEN, s);\n } else if (s.indexOf(\"-\") > 0) {\n to = CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL, s);\n }\n\n String finalTo = to;\n WriteCommandAction.runWriteCommandAction(project, () -> document.replaceString(start, end, finalTo));\n\n selectionModel.setSelection(start, start + to.length());\n }",
"Product editProduct(Product product);",
"private void rSButton8ActionPerformed(java.awt.event.ActionEvent evt) {\n try{\n String val1=jtext15.getText();\n String val2=jtext16.getText();\n String val3;\n val3 = (String) jComboBox4.getSelectedItem();\n String val4=jtext17.getText();\n String val5=jtext18.getText();\n String val6=jtext19.getText();\n String val7=jtext20.getText();\n String val8=jtext21.getText();\n \n String sql=\"update book set book_title='\"+val2+\"',category='\"+val3+\"',author_name='\"+val4+\"',publication='\"+val5+\"',edition='\"+val6+\"',pages='\"+val7+\"',price='\"+val8+\"' where book_id='\"+val1+\"'\";\n pst=(OraclePreparedStatement) conn.prepareStatement(sql);\n pst.execute();\n JOptionPane.showMessageDialog(null,\"Book Details Modified\"); \n refresh3();\n update1();\n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null,e); \n }\n }",
"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 }",
"@Override\n public void setWrongRangeItem() { wrongLightMagicBook = new LightMagicBook(\"Wrong lightMagicBook\",0,-1,-2);}",
"public void toggleEdit()\n {\n \tif (editMode == false) {\n \t\teditMode = true;\n \t} else {\n \t\teditMode = false;\n \t}\n }",
"public void updateBook(View view){\n update();\n }"
] |
[
"0.7259165",
"0.6676143",
"0.66472644",
"0.59801376",
"0.59705824",
"0.59090465",
"0.587704",
"0.5845819",
"0.5732936",
"0.57328576",
"0.567004",
"0.567004",
"0.5668893",
"0.5660386",
"0.56593114",
"0.5655385",
"0.5645993",
"0.56174433",
"0.55426055",
"0.5493132",
"0.5492544",
"0.54680973",
"0.5466223",
"0.5463625",
"0.5408258",
"0.53920937",
"0.53796566",
"0.53644353",
"0.5346946",
"0.53468615",
"0.53383744",
"0.53316635",
"0.5299218",
"0.5269864",
"0.5267287",
"0.52559495",
"0.52524525",
"0.5242012",
"0.52345276",
"0.52224386",
"0.52189267",
"0.52163965",
"0.52149624",
"0.5212885",
"0.5201165",
"0.51928735",
"0.5189272",
"0.51891136",
"0.5180517",
"0.5170239",
"0.5169655",
"0.5169249",
"0.5165666",
"0.51634157",
"0.5160922",
"0.5159573",
"0.5152901",
"0.514765",
"0.51382333",
"0.5135237",
"0.5129683",
"0.51262075",
"0.5120011",
"0.50875473",
"0.50843394",
"0.50649905",
"0.5060652",
"0.5056186",
"0.5055098",
"0.5047348",
"0.5045296",
"0.50445557",
"0.5041708",
"0.50404036",
"0.50378096",
"0.5036163",
"0.50306505",
"0.5029068",
"0.50204957",
"0.50180537",
"0.50034183",
"0.49982998",
"0.49924335",
"0.49778613",
"0.4976299",
"0.49730018",
"0.49729988",
"0.4969528",
"0.49612325",
"0.49590668",
"0.49554828",
"0.49536562",
"0.49517763",
"0.49515456",
"0.49490798",
"0.49475467",
"0.49466532",
"0.49399346",
"0.49362707"
] |
0.6271016
|
4
|
Returns genre of the book
|
public Genre getGenre() {
return genre;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getGenre()\n {\n return bookGenre;\n }",
"public BookType getGenre() {\r\n return genre;\r\n }",
"public String getGenre() {\n return genre;\n }",
"public String getGenre() {\n return genre;\n }",
"public String getGenreString() {\r\n return genre.getTheBookType();\r\n }",
"public String getGenre()\r\n {\r\n String answer=genre;\r\n return answer;\r\n }",
"public Genre getGenre() {\n\n return genre;\n }",
"public int getGenre() {\n return genre;\n }",
"public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }",
"public TheatreGenre getGenre() {\n\t\treturn genre;\n\t}",
"public String getBasedOnGenre(String genre) {\n String cap = genre.substring(0, 1).toUpperCase() + genre.substring(1);\n StringBuilder json = new StringBuilder();\n for (Node node: books) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Book)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: music) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Music)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: movies) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Movie)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n return json.toString();\n }",
"public void setGenre(String genre) {\n this.genre = genre;\n }",
"public List<Books> findBooksByGenre(String genre) {\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n List<Genre> list = new ArrayList();\r\n Genre g = new Genre();\r\n g.setType(genre);\r\n list.add(g);\r\n session.setAttribute(\"lastGenre\",list);\r\n return bookController.findBooksByGenre(genre);\r\n }",
"public void setGenre() {\r\n this.genre = genre;\r\n }",
"public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }",
"public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }",
"public void setGenre(int genre) {\n this.genre = genre;\n }",
"public void setGenre(Genre genre) {\n this.genre = genre;\n }",
"public void setGenre(Genre genre) {\n this.genre = genre;\n }",
"private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}",
"public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}",
"public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }",
"lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre();",
"private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }",
"public String getGenreName(int g) {\n this.connect();\n String sqlGenre = \"SELECT genreType FROM genres WHERE genreID = ?\";\n String genreName = \"\";\n\n try (Connection conn = this.getConnection();\n PreparedStatement genre = conn.prepareStatement(sqlGenre)) {\n genre.setInt(1,g);\n ResultSet rsG = genre.executeQuery();\n //gets genreID\n if (rsG.next()) {\n genreName = rsG.getString(\"genreType\");\n } else {\n System.out.println(\"Genre not in database!\");\n }\n } catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n return genreName;\n }",
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"@Override\n\tpublic String addGenre(Genre songName, Genre songArtist, Genre songBpm, Genre songGenre) {\n\t\treturn null;\n\t}",
"public lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre() {\n return pictureGenre_;\n }",
"public lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre() {\n return pictureGenre_;\n }",
"public ArrayList<MovieGenreModel> getAllGenres() {\n\t\treturn null;\n\t}",
"private static int getGenreIndex(String genre){\n\t\tint index = -1;\n\t\tif(genre.equalsIgnoreCase(\"biology\"))\n\t\t\tindex = 0;\n\t\telse if(genre.equalsIgnoreCase(\"mathematics\"))\n\t\t\tindex = 1;\n\t\telse if(genre.equalsIgnoreCase(\"chemistry\"))\n\t\t\tindex = 2;\n\t\telse if(genre.equalsIgnoreCase(\"physics\"))\n\t\t\tindex = 3;\n\t\telse if(genre.equalsIgnoreCase(\"science_fiction\"))\n\t\t\tindex = 4;\n\t\telse if(genre.equalsIgnoreCase(\"fantasy\"))\n\t\t\tindex = 5;\n\t\telse if(genre.equalsIgnoreCase(\"action\"))\n\t\t\tindex = 6;\n\t\telse if(genre.equalsIgnoreCase(\"drama\"))\n\t\t\tindex = 7;\n\t\telse if(genre.equalsIgnoreCase(\"romance\"))\n\t\t\tindex = 8;\n\t\telse if(genre.equalsIgnoreCase(\"horror\"))\n\t\t\tindex = 9;\n\t\telse if(genre.equalsIgnoreCase(\"history\"))\n\t\t\tindex = 10;\n\t\telse if(genre.equalsIgnoreCase(\"autobiography\"))\n\t\t\tindex = 11;\n\t\telse if(genre.equalsIgnoreCase(\"biography\"))\n\t\t\tindex = 12;\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Genre Input: Genre entered was invalid\");\n\t\t}\n\t\treturn index;\n\t}",
"public void setGenre(TheatreGenre genre) {\n\t\tthis.genre = genre;\n\t}",
"ImmutableList<SchemaOrgType> getGenreList();",
"private static void addToGenreTable(BookDetails book, String bookTitle) {\n\t\t//ALL_GENRES representation --> Biology|Mathematics|Chemistry|Physics|Science_Fiction|Fantasy|Action|Drama|Romance|Horror|History|Autobiography|Biography \n\t\tswitch(book.getGenre()){\n\t\t\tcase Biology:\n\t\t\t\tALL_GENRES.get(0).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Mathematics:\n\t\t\t\tALL_GENRES.get(1).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Chemistry:\n\t\t\t\tALL_GENRES.get(2).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Physics:\n\t\t\t\tALL_GENRES.get(3).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Science_Fiction:\n\t\t\t\tALL_GENRES.get(4).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Fantasy:\n\t\t\t\tALL_GENRES.get(5).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Action:\n\t\t\t\tALL_GENRES.get(6).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Drama:\n\t\t\t\tALL_GENRES.get(7).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Romance:\n\t\t\t\tALL_GENRES.get(8).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Horror:\n\t\t\t\tALL_GENRES.get(9).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase History:\n\t\t\t\tALL_GENRES.get(10).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Autobiography:\n\t\t\t\tALL_GENRES.get(11).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Biography:\n\t\t\t\tALL_GENRES.get(12).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"ERROR: Invalid Genre Input\");\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public List<Film> findAllByGenre(String genre);",
"public String getGenus() {\n return genus;\n }",
"public String getBook() {\n\t\treturn book;\r\n\t}",
"public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }",
"@Nullable\n GenresPage getGenres();",
"@Override\n\tpublic List<Genre> displayAllGenres() throws MovieException {\n\t\treturn obj.displayAllGenres();\n\t}",
"private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }",
"Builder addGenre(String value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookName();",
"private static String getRatingFileName(String genre) {\n if(genre.equalsIgnoreCase(\"Fast Food\")) {\n return \"FastFoodRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Dine-In\")) {\n return \"DineInRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Italian\")) {\n return \"ItalianRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Mexican\")) {\n return \"MexicanRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Chinese\")) {\n return \"ChineseRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Sea Food\")) {\n return \"SeaFoodRatings.txt\";\n }\n else {\n return \"FastFoodRatings.txt\";\n }\n }",
"boolean hasPictureGenre();",
"public static List<Genre> get() throws IOException {\n return get(null);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookDesc();",
"@NonNull\n public final List<Genres> getGenres() {\n return this.genres;\n }",
"Builder addGenre(Text value);",
"public int compareGenre(Song other) {\n return this.genre.compareTo(other.getGenre());\n }",
"public String getBookTitle() {\n return bookTitle;\n }",
"public String getTitle()\n {\n return bookTitle;\n }",
"public String getBookTitile() {\n return bookTitile;\n }",
"public Book(String title, String genre)\n {\n bookTitle = title;\n bookGenre = genre;\n }",
"private static ArrayList<String> getGenre(String songID) throws SQLException {\n ArrayList<String> genres = new ArrayList<>();\n genreStatement = conn.createStatement();\n genreResultSet = genreStatement.executeQuery(\"SELECT * FROM genre, trackGenre WHERE trackGenre.track_id = '\" + songID + \"' AND trackGenre.genre = genre.name;\");\n while (genreResultSet.next()){\n genres.add(genreResultSet.getString(\"name\"));\n }\n return genres;\n }",
"public void testGetGenre()\r\n {\r\n assertTrue(genre.equals(song.getGenre()));\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookCode();",
"public int getGenreID(String gen) {\n this.connect();\n String sqlGenre = \"SELECT genreID FROM genres WHERE genres.genreType = ?\";\n int genID = 0;\n\n try (Connection conn = this.getConnection();\n PreparedStatement genre = conn.prepareStatement(sqlGenre)) {\n genre.setString(1,gen);\n ResultSet rsG = genre.executeQuery();\n //gets genreID\n if (rsG.next()) {\n genID = rsG.getInt(\"genreID\");\n } else {\n System.out.println(\"Genre not in database!\");\n genID = addGenre(gen);\n }\n } catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n return genID;\n }",
"private String getSelectedGender() {\n int radioButtonID = rgGender.getCheckedRadioButtonId();\n RadioButton radioButton = rgGender.findViewById(radioButtonID);\n return radioButton.getText().toString();\n }",
"public void addGenre(String genre) throws SQLException {\n myGenreManager.addGenre(genre);\n allGenres.add(genre);\n }",
"public void addGenre(String newGenre) {\n this.genre.add(newGenre);\n }",
"public static String findGender (String songName)\n {\n String songGender=\"\";\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(songName))\n { \n songGender=song.getGender();\n return (songGender);\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n return (\"Gender\");\n }",
"public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }",
"public MovieGenreModel createGenre(MovieGenreModel genre) {\n\t\treturn null;\n\t}",
"public String gender();",
"public void addGenre() {\n ResultSet result = null;\n try {\n result = server.executeStatement(\"SELECT genreID FROM productiongenre WHERE prodID = \" + \"'\" + getId() + \"'\" + \";\");\n if(result.next())\n genre = result.getString(\"genreID\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"public String getBookName()\r\n {\r\n\treturn bookName;\r\n }",
"public void randomGenre(View view) {\r\n String[] randomGenre = {\"Rock\", \"Funk\", \"Hip hop\", \"Country\", \"Pop\", \"Blues\", \"K-pop\", \"Punk\", \"House\", \"Soul\"};\r\n int index = (int) (Math.random() * 10);\r\n displayMessage(\"Your random genre is: \" + randomGenre[index]);\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Jurisdiction getBookJurisdiction();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookGroup();",
"@Test\r\n public void testGetGenreList() throws MovieDbException {\r\n LOG.info(\"getGenreList\");\r\n List<Genre> results = tmdb.getGenreList(LANGUAGE_DEFAULT);\r\n assertTrue(\"No genres found\", !results.isEmpty());\r\n }",
"public String getBookname() {\n return bookname;\n }",
"@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }",
"public static void eraseGenre(String genre){\n\t\tgenres.remove(genre);\n\t\tupdateGenres();\n\t}",
"GenreDao getGenreDao();",
"public String getBookTitle(){\n return bookTitle.getText();\r\n }",
"private static HashMap<Integer, String> getMovieGenres() {\n String url = \"http://api.themoviedb.org/3/genre/movie/list?api_key=\" + BuildConfig.APPLICATION_ID;\r\n\r\n JSONArray genres = null;\r\n Integer id;\r\n String genre;\r\n\r\n HashMap<Integer, String> movieGenresMap = new HashMap<Integer, String>();\r\n\r\n try {\r\n genres = new JSONArray(\r\n \"[{\\\"id\\\":28,\\\"name\\\":\\\"Action\\\"},{\\\"id\\\":12,\\\"name\\\":\\\"Adventure\\\"},{\\\"id\\\":16,\\\"name\\\":\\\"Animation\\\"},{\\\"id\\\":35,\\\"name\\\":\\\"Comedy\\\"},{\\\"id\\\":80,\\\"name\\\":\\\"Crime\\\"},{\\\"id\\\":99,\\\"name\\\":\\\"Documentary\\\"},{\\\"id\\\":18,\\\"name\\\":\\\"Drama\\\"},{\\\"id\\\":10751,\\\"name\\\":\\\"Family\\\"},{\\\"id\\\":14,\\\"name\\\":\\\"Fantasy\\\"},{\\\"id\\\":10769,\\\"name\\\":\\\"Foreign\\\"},{\\\"id\\\":36,\\\"name\\\":\\\"History\\\"},{\\\"id\\\":27,\\\"name\\\":\\\"Horror\\\"},{\\\"id\\\":10402,\\\"name\\\":\\\"Music\\\"},{\\\"id\\\":9648,\\\"name\\\":\\\"Mystery\\\"},{\\\"id\\\":10749,\\\"name\\\":\\\"Romance\\\"},{\\\"id\\\":878,\\\"name\\\":\\\"Science Fiction\\\"},{\\\"id\\\":10770,\\\"name\\\":\\\"TV Movie\\\"},{\\\"id\\\":53,\\\"name\\\":\\\"Thriller\\\"},{\\\"id\\\":10752,\\\"name\\\":\\\"War\\\"},{\\\"id\\\":37,\\\"name\\\":\\\"Western\\\"}]\");\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (genres != null && genres.length() > 0) {\r\n try {\r\n for (int i = 0; i < genres.length(); i++) {\r\n JSONObject genrePair = genres.getJSONObject(i);\r\n id = genrePair.getInt(\"id\");\r\n genre = genrePair.getString(\"name\");\r\n movieGenresMap.put(id, genre);\r\n\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n return movieGenresMap;\r\n\r\n }",
"@Override\n\tpublic void addGenre(Genre genre) throws MovieException {\n obj.addGenre(genre);\n\t}",
"public String getaGender() {\n return aGender;\n }",
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"public String getBookType() {\n return bookType;\n }",
"public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }",
"private String getGender() {\n\t\tswitch (rgGender.getCheckedRadioButtonId()) {\n\t\tcase R.id.rdAddMale:\n\t\t\taGender = \"Мужчина\";\n\t\t\tbreak;\n\t\tcase R.id.rdAddFemale:\n\t\t\taGender = \"Женщина\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn aGender;\n\t}",
"public String getPickedMovie() {\n return pickedMovie;\n }",
"public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }",
"public String getGender() {\r\n return gender;\r\n }",
"@Test\r\n public void testGetGenreMovies() throws MovieDbException {\r\n LOG.info(\"getGenreMovies\");\r\n List<MovieDb> results = tmdb.getGenreMovies(ID_GENRE_ACTION, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No genre movies found\", !results.isEmpty());\r\n }",
"public ArrayList<Book> gettitleBook(String title);",
"public boolean hasPictureGenre() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public String getGender() {\n return gender;\n }",
"public String getGender() {\n return gender;\n }",
"public String getGender() {\n return gender;\n }",
"public String getGender() {\n return gender;\n }",
"public String getGender() {\n return gender;\n }",
"public String getGender() {\n return gender;\n }",
"@GET(\"/v1/genres\")\r\n void getGenres( //\r\n @Query(\"apikey\") String apikey, //\r\n @Query(\"pretty\") boolean pretty, //\r\n @Query(\"catalog\") String catalog, //\r\n Callback<Collection<GenreData>> callBack);",
"public Book getBook() {\r\n\t\treturn b;\r\n\t}",
"private void populateGenres(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT DISTINCT genre FROM artist ORDER BY genre\");\n\n while(results.next()){\n String genre = results.getString(1);\n genreList.add(genre);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }"
] |
[
"0.8180793",
"0.80959404",
"0.7977019",
"0.7977019",
"0.79758525",
"0.7906534",
"0.76861185",
"0.75189036",
"0.7236018",
"0.7208696",
"0.7157137",
"0.71031094",
"0.69430566",
"0.6929422",
"0.6903926",
"0.69015354",
"0.68718886",
"0.67905194",
"0.67905194",
"0.677372",
"0.6690117",
"0.6432649",
"0.64034444",
"0.63512635",
"0.63167775",
"0.62687176",
"0.6261581",
"0.6232951",
"0.6212987",
"0.6177655",
"0.6174685",
"0.6136984",
"0.60992485",
"0.6088",
"0.60613185",
"0.6058082",
"0.6049845",
"0.60307",
"0.6022503",
"0.6014371",
"0.5996872",
"0.5980023",
"0.59780616",
"0.5964059",
"0.59408915",
"0.5935997",
"0.59066695",
"0.5886827",
"0.5866973",
"0.5839336",
"0.5829849",
"0.57985485",
"0.5795082",
"0.5773916",
"0.5750615",
"0.5745751",
"0.57452637",
"0.5733253",
"0.5713956",
"0.57037675",
"0.5701339",
"0.56841445",
"0.5660978",
"0.5647205",
"0.5635769",
"0.562778",
"0.5611726",
"0.56045985",
"0.5592805",
"0.5587347",
"0.5584194",
"0.5580497",
"0.5534697",
"0.5525899",
"0.55245274",
"0.55053335",
"0.5493972",
"0.54847616",
"0.54646343",
"0.5440672",
"0.5408531",
"0.5404253",
"0.5395415",
"0.53930885",
"0.5379436",
"0.53749573",
"0.537491",
"0.5373968",
"0.53724086",
"0.5363511",
"0.53593737",
"0.53593737",
"0.53593737",
"0.53593737",
"0.53593737",
"0.53593737",
"0.5358182",
"0.535375",
"0.53471535"
] |
0.7726004
|
7
|
Sets genre of the book
|
public void setGenre(Genre genre) {
this.genre = genre;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setGenre(int genre) {\n this.genre = genre;\n }",
"public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }",
"public void setGenre() {\r\n this.genre = genre;\r\n }",
"public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}",
"public void setGenre(String genre) {\n this.genre = genre;\n }",
"public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }",
"public void setGenre(TheatreGenre genre) {\n\t\tthis.genre = genre;\n\t}",
"public BookType getGenre() {\r\n return genre;\r\n }",
"Builder addGenre(String value);",
"public String getGenre()\n {\n return bookGenre;\n }",
"public String getGenre() {\n return genre;\n }",
"public String getGenre() {\n return genre;\n }",
"public void setGenre(String genreStr) {\n String genresRemovedCommas = genreStr.replaceAll(COMMA, EMPTY);\r\n String[] genresArray = genresRemovedCommas.split(SPACE);\r\n Collections.addAll(genres, genresArray);\r\n }",
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"public void addGenre(String newGenre) {\n this.genre.add(newGenre);\n }",
"Builder addGenre(Text value);",
"public Genre getGenre() {\n return genre;\n }",
"public Genre getGenre() {\n return genre;\n }",
"public void setFiction() {\n if (super.getGenre() == null || super.getGenre().length() == 0) {\n super.setGenre(\"Fiction\");\n } else if (!super.getGenre().contains(\"FICTION\")) {\n super.setGenre(super.getGenre() + \", Fiction\");\n }\n super.setGenre(super.getGenre().toUpperCase());\n }",
"@Override\n\tpublic void addGenre(Genre genre) throws MovieException {\n obj.addGenre(genre);\n\t}",
"public Genre getGenre() {\n\n return genre;\n }",
"public void addGenre(String genre) throws SQLException {\n myGenreManager.addGenre(genre);\n allGenres.add(genre);\n }",
"public int getGenre() {\n return genre;\n }",
"@Override\n\tpublic String addGenre(Genre songName, Genre songArtist, Genre songBpm, Genre songGenre) {\n\t\treturn null;\n\t}",
"Builder addGenre(URL value);",
"public TheatreGenre getGenre() {\n\t\treturn genre;\n\t}",
"void setGenreDao(final GenreDao genreDao);",
"public void modifyGenres(ArrayList<String> genreList)// --> Bytter ut Genre-arrayen med en ny array over de nye sjangerene for lokalet.\n\t{\n\t\tgenres = genreList;\n\t}",
"private static void addToGenreTable(BookDetails book, String bookTitle) {\n\t\t//ALL_GENRES representation --> Biology|Mathematics|Chemistry|Physics|Science_Fiction|Fantasy|Action|Drama|Romance|Horror|History|Autobiography|Biography \n\t\tswitch(book.getGenre()){\n\t\t\tcase Biology:\n\t\t\t\tALL_GENRES.get(0).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Mathematics:\n\t\t\t\tALL_GENRES.get(1).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Chemistry:\n\t\t\t\tALL_GENRES.get(2).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Physics:\n\t\t\t\tALL_GENRES.get(3).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Science_Fiction:\n\t\t\t\tALL_GENRES.get(4).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Fantasy:\n\t\t\t\tALL_GENRES.get(5).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Action:\n\t\t\t\tALL_GENRES.get(6).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Drama:\n\t\t\t\tALL_GENRES.get(7).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Romance:\n\t\t\t\tALL_GENRES.get(8).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Horror:\n\t\t\t\tALL_GENRES.get(9).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase History:\n\t\t\t\tALL_GENRES.get(10).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Autobiography:\n\t\t\t\tALL_GENRES.get(11).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Biography:\n\t\t\t\tALL_GENRES.get(12).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"ERROR: Invalid Genre Input\");\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public Book(String title, String genre)\n {\n bookTitle = title;\n bookGenre = genre;\n }",
"public String getGenre()\r\n {\r\n String answer=genre;\r\n return answer;\r\n }",
"public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }",
"public static void eraseGenre(String genre){\n\t\tgenres.remove(genre);\n\t\tupdateGenres();\n\t}",
"public String getGenreString() {\r\n return genre.getTheBookType();\r\n }",
"public List<Books> findBooksByGenre(String genre) {\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n List<Genre> list = new ArrayList();\r\n Genre g = new Genre();\r\n g.setType(genre);\r\n list.add(g);\r\n session.setAttribute(\"lastGenre\",list);\r\n return bookController.findBooksByGenre(genre);\r\n }",
"public void addGenreAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Genre\", ViewNavigator.ADD_GENRE_SCENE);\n\t}",
"public ChangeGenreDialog(java.awt.Frame parent, boolean modal) throws MovieException {\n super(parent, modal);\n initComponents();\n readGenres();\n \n }",
"public MovieGenreModel createGenre(MovieGenreModel genre) {\n\t\treturn null;\n\t}",
"public void putMovieData(String movieName, String movieDate, String genre) {\n String[] columns = {MovieUriContract.GenreEntry._ID, MovieUriContract.GenreEntry.COLUMN_NAME};\n\n try{\n Cursor cursor = providerClient.query(\n MovieUriContract.GenreEntry.CONTENT_URI,\n columns,\n null,\n null,\n null\n );\n\n int genreId = -1;\n if(cursor.moveToFirst()) {\n genreId = cursor.getColumnIndex(genre);\n }\n cursor.close();\n\n if(genreId >= 0) {\n ContentValues movieValues = new ContentValues();\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_NAME, movieName);\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_RELEASE_DATE, movieDate);\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_GENRE, genreId);\n providerClient.update(\n MovieUriContract.GenreEntry.CONTENT_URI,\n movieValues,\n null,\n null);\n }\n else {\n view.setErrorMessage();\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }",
"private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }",
"public void setBook(Book book) {\n this.book = book;\n }",
"private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}",
"public void testGetGenre()\r\n {\r\n assertTrue(genre.equals(song.getGenre()));\r\n }",
"public final void setGenres(@NonNull final List<Genres> genresParam) {\n this.genres = genresParam;\n }",
"public void setGender(String gender);",
"public void setGender(String gender);",
"public void setGender(String gender);",
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"public void setGender (boolean g) {\n gender = g;\n }",
"public void setBookName(java.lang.String value);",
"protected void setGender(Gender gender) {\n this.gender = gender;\n }",
"public void onGenreClick(View v) {\n // FIXME: 9ボタンのジャンル一覧ボタン押下時\n AppMeasurementWrapper.getInstance().initialize(getApplication());\n AppMeasurementWrapper.getInstance().storeTransitionSrcPoint(AppEffectClickPointEnum.HOME_GENRE_1);\n this.startGenreListActivity();\n }",
"public void setMusic(Music music);",
"public String getBasedOnGenre(String genre) {\n String cap = genre.substring(0, 1).toUpperCase() + genre.substring(1);\n StringBuilder json = new StringBuilder();\n for (Node node: books) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Book)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: music) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Music)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: movies) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Movie)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n return json.toString();\n }",
"public void setGenus(String genus) {\n this.genus = genus;\n }",
"public static void setUpGenres(Context context){\n SharedPreferences mSetting = context.getSharedPreferences(StaticVars.GENRE_SHARED_PREFERENCES,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSetting.edit();\n //putting genre name and its id on shikimori\n\n\n editor.putInt(\"Drama\",8);\n editor.putInt(\"Драма\",8);\n editor.putInt(\"Game\",11);\n editor.putInt(\"Игры\",11);\n editor.putInt(\"Psychological\",40);\n editor.putInt(\"Психологическое\",40);\n editor.putInt(\"Adventure\",2);\n editor.putInt(\"Приключения\",2);\n editor.putInt(\"Music\",19);\n editor.putInt(\"Музыка\",19);\n editor.putInt(\"Action\",1);\n editor.putInt(\"Экшен\",1);\n editor.putInt(\"Comedy\",4);\n editor.putInt(\"Комедия\",4);\n editor.putInt(\"Demons\",6);\n editor.putInt(\"Демоны\",6);\n editor.putInt(\"Police\",39);\n editor.putInt(\"Полиция\",39);\n editor.putInt(\"Space\",29);\n editor.putInt(\"Космос\",29);\n editor.putInt(\"Ecchi\",9);\n editor.putInt(\"Этти\",9);\n editor.putInt(\"Fantasy\",10);\n editor.putInt(\"Фэнтези\",10);\n editor.putInt(\"Historical\",13);\n editor.putInt(\"Исторический\",13);\n editor.putInt(\"Horror\",14);\n editor.putInt(\"Ужасы\",14);\n editor.putInt(\"Magic\",16);\n editor.putInt(\"Магия\",16);\n editor.putInt(\"Mecha\",18);\n editor.putInt(\"Меха\",18);\n editor.putInt(\"Parody\",20);\n editor.putInt(\"Пародия\",20);\n editor.putInt(\"Samurai\",21);\n editor.putInt(\"Самураи\",21);\n editor.putInt(\"Romance\",22);\n editor.putInt(\"Романтика\",22);\n editor.putInt(\"School\",23);\n editor.putInt(\"Школа\",23);\n editor.putInt(\"Shoujo\",25);\n editor.putInt(\"Сёдзе\",25);\n editor.putInt(\"Shounen\",27);\n editor.putInt(\"Сёнен\",27);\n editor.putInt(\"Shounen Ai\",28);\n editor.putInt(\"Сёнен Ай\",28);\n editor.putInt(\"Sports\",30);\n editor.putInt(\"Спорт\",30);\n editor.putInt(\"Vampire\",32);\n editor.putInt(\"Вампиры\",32);\n editor.putInt(\"Harem\",35);\n editor.putInt(\"Гарем\",35);\n editor.putInt(\"Slice of Life\",36);\n editor.putInt(\"Повседневность\",36);\n editor.putInt(\"Seinen\",42);\n editor.putInt(\"Сейнен\",42);\n editor.putInt(\"Josei\",43);\n editor.putInt(\"Дзёсей\",43);\n editor.putInt(\"Supernatural\",37);\n editor.putInt(\"Сверхъестественное\",37);\n editor.putInt(\"Thriller\",41);\n editor.putInt(\"Триллер\",41);\n editor.putInt(\"Shoujo Ai\",26);\n editor.putInt(\"Сёдзе Ай\",26);\n editor.putInt(\"Sci-Fi\",24);\n editor.putInt(\"Фантастика\",24);\n editor.putInt(\"Super Power\",31);\n editor.putInt(\"Супер сила\",31);\n editor.putInt(\"Military\",38);\n editor.putInt(\"Военное\",38);\n editor.putInt(\"Mystery\",7);\n editor.putInt(\"Детектив\",7);\n editor.putInt(\"Kids\",15);\n editor.putInt(\"Детское\",15);\n editor.putInt(\"Cars\",3);\n editor.putInt(\"Машины\",3);\n editor.putInt(\"Martial Arts\",17);\n editor.putInt(\"Боевые искусства\",17);\n editor.putInt(\"Dementia\",5);\n editor.putInt(\"Безумие\",5);\n\n editor.apply();\n\n\n\n }",
"@POST\n public JsonGenre createUpdateOne(JsonGenre genre) {\n \tJsonGenre jgenre = genre;\n \tif (genre.getId() == null) {\n\t \tGenre s = new Genre();\n\t \ts.setName(genre.getName());\n\t \tgenreDao.saveGenre(s);\n\t \tjgenre.setId(s.getId());\n \t} else {\n \t\tif (genre.getName().equalsIgnoreCase(Constants.DELETED)) {\n \t\t\tgenreDao.removeGenre(genreDao.getGenre(genre.getId()));\n \t\t} else {\n\t \tGenre s = genreDao.getGenre(genre.getId());\n\t\t \ts.setName(genre.getName());\n\t \tgenreDao.updateGenre(s);\n \t\t}\n \t}\n \treturn jgenre;\n }",
"public void setGender(Gender inGender)\n {\n gender = inGender;\n }",
"public void setMovie(Movie movie) {\n this.movie = movie;\n }",
"public void addGenre() {\n ResultSet result = null;\n try {\n result = server.executeStatement(\"SELECT genreID FROM productiongenre WHERE prodID = \" + \"'\" + getId() + \"'\" + \";\");\n if(result.next())\n genre = result.getString(\"genreID\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"public void setGender(Gender_Tp gender) { this.gender = gender; }",
"private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }",
"private void InitForm() {\n\t\t\t// Select default/preferred genre\n\t\tString preferredGenre = PluginPreferences.getGenre();\n\n\t if( preferredGenre != null ) {\n\t\t if( preferredGenre.equals(\"scifi\") ) {\n\t\t\t scifiRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"pirates\") ) {\n\t\t\t priratesRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"hospital\") ) {\n\t\t\t hospitalRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"esoteric\") ) {\n\t\t\t esotericRadioButton.setSelected(true);\n\t\t } else {\n\t\t\t latinRadioButton.setSelected(true);\n\t\t }\n\t }\n \n\t}",
"public void setRarity(Rarity rare)\r\n {\r\n\tthis.rare = rare;\r\n }",
"public Builder setPictureGenre(lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n pictureGenre_ = value;\n onChanged();\n return this;\n }",
"private void loadToChoice() {\n\t\tfor(Genre genre : genreList) {\n\t\t\tuploadPanel.getGenreChoice().add(genre.getName());\n\t\t}\n\t}",
"private void setORM_Book(i_book.Book value) {\r\n\t\tthis.book = value;\r\n\t}",
"Book(String t, String a, String g){\n\t\ttitle = t;\n\t\tauthor = a;\n\t\tgenre = g;\n\t\ttags = new ArrayList <String>();\n\t}",
"public void setBookGroup(java.lang.String value);",
"public void setGender(Gender gender) {\n\t\tthis.gender = gender;\n\t}",
"public void setGender(String gender){\n if(gender == \"laki\"){\r\n isMale = true;\r\n }else if(gender == \"perempuan\"){\r\n isMale = false;\r\n }\r\n }",
"public void randomGenre(View view) {\r\n String[] randomGenre = {\"Rock\", \"Funk\", \"Hip hop\", \"Country\", \"Pop\", \"Blues\", \"K-pop\", \"Punk\", \"House\", \"Soul\"};\r\n int index = (int) (Math.random() * 10);\r\n displayMessage(\"Your random genre is: \" + randomGenre[index]);\r\n }",
"public void setGenero(Genero genero)\r\n/* 148: */ {\r\n/* 149:271 */ this.genero = genero;\r\n/* 150: */ }",
"public int compareGenre(Song other) {\n return this.genre.compareTo(other.getGenre());\n }",
"public void setGender(String gender) {\r\n this.gender = gender;\r\n }",
"public void setBookEdition(java.lang.String value);",
"public void setGloss(final IWikiString gloss) {\n\t\tthis.gloss = gloss;\n\t}",
"public Song(String title, String artist, String genre) {\n\t\tthis.setTitle(title);\n\t\tthis.setArtist(artist);\n\t\tthis.setGenre(genre);\n\t}",
"public void setBookCode(java.lang.String value);",
"public void setBookDesc(java.lang.String value);",
"public void setIdentifier(String artist, String album, String track, String title, String remix) {\n\t\tsuper.setIdentifier(new SubmittedSong(artist, album, track, title, remix).getIdentifier());\n\t\tthis.release = album;\n\t\tthis.track = track;\n\t\tthis.title = title;\n\t\tthis.remix = remix;\n\t\tif (submittedRelease != null) {\n\t\t\tReleaseIdentifier releaseId = submittedRelease.getReleaseIdentifier();\n\t\t\treleaseId = new ReleaseIdentifier(((SongIdentifier)identifier).getArtistNames(), releaseId.getReleaseTitle());\n\t\t\tsubmittedRelease.setIdentifier(releaseId);\n\t\t}\t\t\n\t}",
"public void setGender(String value) {\n this.gender = value;\n }",
"public List<Film> findAllByGenre(String genre);",
"public void setGender(Integer gender) {\r\n this.gender = gender;\r\n }",
"public Song(String title, String artist, String year, String genre) {\n this.title = title;\n this.artist = artist;\n this.year = year;\n this.genre = genre;\n heardPercentCS = 0.;\n heardPercentMath = 0.;\n heardPercentEng = 0.;\n heardPercentOther = 0.;\n heardPercentSE = 0.;\n heardPercentNE = 0.;\n heardPercentUS = 0.;\n heardPercentOut = 0.;\n heardPercentMusic = 0.;\n heardPercentSports = 0.;\n heardPercentReading = 0.;\n heardPercentArt = 0.;\n }",
"public void setGender(String gender) {\n this.gender = gender;\n }",
"public Book(String title, String author, String genre, int numPage) {\n\t\tthis.title = title;\n\t\tthis.author = author;\n\t\tthis.genre = genre;\n\t\tthis.numPage = numPage;\n\n\t}",
"private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }",
"public void setGender(java.lang.String gender) {\r\n this.gender = gender;\r\n }",
"public ArrayList<MovieGenreModel> getAllGenres() {\n\t\treturn null;\n\t}",
"public int addGenre(String g) {\n this.connect();\n String sql = \"INSERT INTO genres(genreType,score) VALUES(?,?)\";\n int id = 0;\n try (Connection conn = this.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1, g);\n pstmt.setDouble(2, 0.0);\n pstmt.executeUpdate();\n id = getGenreID(g);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return id;\n }",
"public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }",
"public void setGender(Integer gender) {\n this.gender = gender;\n }",
"public void setGender(Integer gender) {\n this.gender = gender;\n }",
"public void setGender(String gender) {\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F; \n }",
"public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }",
"public void setAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}",
"public lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre() {\n return pictureGenre_;\n }",
"public void setBookJurisdiction(typekey.Jurisdiction value);"
] |
[
"0.83226067",
"0.8304321",
"0.8288892",
"0.8280425",
"0.8267248",
"0.77661234",
"0.7685851",
"0.71157306",
"0.7023663",
"0.7002985",
"0.69848096",
"0.69848096",
"0.6938555",
"0.6866929",
"0.68457705",
"0.67543054",
"0.6736703",
"0.6736703",
"0.6727591",
"0.66937363",
"0.6679449",
"0.6661924",
"0.6537373",
"0.637091",
"0.6358728",
"0.6347583",
"0.6343099",
"0.63159925",
"0.62009823",
"0.61202526",
"0.6108419",
"0.603598",
"0.60266984",
"0.60218763",
"0.5973999",
"0.59404945",
"0.5896967",
"0.58861786",
"0.5884925",
"0.58788186",
"0.5832784",
"0.5816943",
"0.57931125",
"0.57367945",
"0.5732206",
"0.5732206",
"0.5732206",
"0.5675119",
"0.56634885",
"0.56394064",
"0.56321514",
"0.56113976",
"0.56068623",
"0.5603269",
"0.5596433",
"0.55832636",
"0.5579024",
"0.55614257",
"0.555894",
"0.5556431",
"0.5482433",
"0.5475064",
"0.54713035",
"0.54507196",
"0.5416903",
"0.540659",
"0.5400739",
"0.5392125",
"0.53768814",
"0.5367757",
"0.5352707",
"0.5345478",
"0.5342724",
"0.53324777",
"0.53235584",
"0.53172976",
"0.5308235",
"0.5298303",
"0.52943563",
"0.5284945",
"0.52785325",
"0.52737796",
"0.52680105",
"0.52568203",
"0.5256104",
"0.52541995",
"0.52457",
"0.5245215",
"0.52359515",
"0.52257115",
"0.522251",
"0.52158695",
"0.5213172",
"0.5213172",
"0.5211181",
"0.5201395",
"0.5195807",
"0.51909626",
"0.5188922"
] |
0.83222055
|
2
|
This method generates rack identification number to keep the book at a particular location in the library. The rack ID is generated by using the following algorithm. Generate any two random alphabets in uppercase.rackCounter.copyrightYear Then increment the rackCounter. Examples Copyright year RackID 2011 AT.0.2011 2014 PW.1.2104
|
@Override
public String generateRackID() {
String newRackID = generateRandomCharacter() +""+
generateRandomCharacter() +"."+
rackCounter +"."+ getCopyrightYear();
this.rackCounter++;
return newRackID;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public java.lang.String generateRackID() {\n String randomString = \"\";\n String rackId = \"\";\n for (int i = 0; i < 2; i++) {\n char[] arr = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n int select = new Random().nextInt(arr.length);\n randomString += arr[select];\n }\n\n rackId = randomString.toUpperCase() + \".\" + rackCounter + \".\" + copyrightYear;\n rackCounter++;\n return rackId;\n }",
"@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }",
"@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }",
"private String genNewAccountNumber(int clientId) {\r\n\t\t// keep 4 digits\r\n\t\tint acNumber = clientId * 1000 + (int) (Math.random() * 900);\r\n\t\treturn String.valueOf(acNumber);\r\n\t}",
"private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}",
"public void studIdGenr()\n {\n \tthis.studentID = (int)(Math.random() * (2047300 - 2047100 + 1) + 2047100);\n }",
"public synchronized String generateBranchId() {\n long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis();\n byte bid[] = digester.digest(Long.toString(num).getBytes());\n return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);\n }",
"public String generateTrackingNumber() {\n String randChars = \"ABCDEFGHIJ0123456789\";\n StringBuilder trackingNumber = new StringBuilder();\n Random rand = new Random();\n \n while(trackingNumber.length() < 12) {\n int i = (int) (rand.nextFloat() * randChars.length());\n trackingNumber.append(randChars.charAt(i));\n }\n String trackingNum = trackingNumber.toString();\n return trackingNum;\n }",
"protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }",
"public static String generateCardNumber(Issuer issuer) {\n // cardNumber = Visa start with 4400, AMex: 3715, MasterCard = 3507\n String number = \"\";\n switch(issuer){\n case VISA: number += \"4400\"; break;\n case MASTER_CARD: number += \"3507\"; break;\n case AMEX: number += \"3715\"; break;\n case DISCOVER: number += \"5555\"; break;\n }\n /*\n if(issuer.equalsIgnoreCase(\"Visa\")) {\n number += \"4400\";\n }\n else if(issuer.equalsIgnoreCase(\"MasterCard\")) {\n number += \"3507\";\n }\n else if(issuer.equalsIgnoreCase(\"American Express\") \n || issuer.equalsIgnoreCase(\"Amex\")) {\n number += \"3715\";\n }\n else { // for our program, a default starting number\n number += \"5555\"; \n }\n */\n // could make random 12 digit number to add on.\n // or a counter that would add on\n number += COUNTER; \n COUNTER++;\n\n return number;\n }",
"private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }",
"private int generateId(Boat boat) {\r\n\t\tint id = (int) (Math.random() * 90) + 10;\r\n\t\tfor (int i = 0; i < boats.size(); i++) {\r\n\t\t\tif (boat.getId() == id) {\r\n\t\t\t\tid = (int) (Math.random() * 90) + 10;\r\n\t\t\t\ti = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn id;\r\n\t}",
"public static String randomIdentifier() {\r\n\t\tfinal String lexicon = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n\t\tfinal java.util.Random rand = new java.util.Random();\r\n\t\t// consider using a Map<String,Boolean> to say whether the identifier is\r\n\t\t// being used or not\r\n\t\tfinal Set<String> identifiers = new HashSet<String>();\r\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\twhile (builder.toString().length() == 0) {\r\n\t\t\tint length = rand.nextInt(5) + 5;\r\n\t\t\tfor (int i = 0; i < length; i++)\r\n\t\t\t\tbuilder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\r\n\t\t\tif (identifiers.contains(builder.toString()))\r\n\t\t\t\tbuilder = new StringBuilder();\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"public static String makeISBN()\n\t{\n\t\t// Do NOT change the declaration of the following variables!\n\t\tString laendercode;\n\t\tString bandnr;\n\t\tString verlagsnr;\n\t\tString checksum;\n\n\t\t// Much more convenient than Math.rand() - see below.\n\t\tRandom rnd = new Random();\n\n\t\tDecimalFormat formatTwoDigits = new DecimalFormat(FORMAT_TWO_DIGITS);\n\t\tDecimalFormat formatThreeDigits = new DecimalFormat(FORMAT_THREE_DIGITS);\n\n\t\t// Random numbers from 1-99: (int)[0, 99[ + 1 = (int)[1, 99]\n\t\tint laenderCodeNumeric = rnd.nextInt(99) + 1;\n\t\tint verlagsNrNumeric = rnd.nextInt(99) + 1;\n\t\t// Random number from 100-999: (int)[0, 900[ + 100 = (int)[100, 999]\n\t\tint bandNrNumeric = rnd.nextInt(900) + 100;\n\n\t\tlaendercode = formatTwoDigits.format(laenderCodeNumeric);\n\t\tbandnr = formatThreeDigits.format(bandNrNumeric);\n\t\tverlagsnr = formatTwoDigits.format(verlagsNrNumeric);\n\n\t\t// Calculate checksum\n\t\tint l1 = Integer.parseInt(laendercode.substring(0, 1));\n\t\tint l2 = Integer.parseInt(laendercode.substring(1, 2));\n\n\t\tint b1 = Integer.parseInt(bandnr.substring(0, 1));\n\t\tint b2 = Integer.parseInt(bandnr.substring(1, 2));\n\t\tint b3 = Integer.parseInt(bandnr.substring(2, 3));\n\n\t\tint v1 = Integer.parseInt(verlagsnr.substring(0, 1));\n\t\tint v2 = Integer.parseInt(verlagsnr.substring(1, 2));\n\n\t\tchecksum = Integer.toString((hashOp(l1) + l2 + hashOp(b1) + b2 + hashOp(b3) + v1 + hashOp(v2)) % 10);\n\n\t\t// Do not change the following line\n\t\treturn laendercode + \"-\" + bandnr + \"-\" + verlagsnr + \"-\" + checksum;\n\t}",
"private static int nextClientId(){\n\n\t\tint id = random.nextInt(U16_MAX +1);\n\n\t\twhile(clients.containsKey(id))\n\t\t\tid = random.nextInt(U16_MAX +1);\n\n\t\treturn id;\n\t}",
"@Override\n public long generateNewContractId() {\n return idCounter++;\n }",
"public static int makeSegID() {\n int newID = (int) (Math.random() * 100000000);\n return newID;\n }",
"static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }",
"private String genrateOrderTrakingnumber() {\n return UUID.randomUUID().toString();\n }",
"private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }",
"private static String randomYear()\r\n {\r\n String year = \"\";\r\n int number = ran.nextInt(4);\r\n switch(number)\r\n {\r\n case 0:\r\n year = \"freshman\";\r\n break;\r\n case 1:\r\n year = \"sophmore\";\r\n break;\r\n case 2:\r\n year = \"junior\";\r\n break; \r\n case 3:\r\n year = \"senior\";\r\n break;\r\n }\r\n\r\n return year;\r\n }",
"private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }",
"private static int generateId() {\n\t\treturn ++sId;\n\t}",
"public static void jerseyNum() {\n System.out.println(\"What is their jersey number? \");\n int jerseyNum= sc.nextInt();\n }",
"private int _randomCode () {\n Random random = new Random();\n code = random.nextInt(999999);\n return code;\n }",
"@Override\n\tpublic void printLotteryNo() {\n\t\tint[] prefixNums = generateNumber(35, 5);\n\t\tint[] suffixNums = generateNumber(12, 2);\n\t\tSystem.out.println(\"本期大乐透前区号码是:\" + printNums(prefixNums));\n\t\tSystem.out.println(\"本期大乐透后区号码是:\" + printNums(suffixNums));\n\t}",
"public String generateCustomer_Id() {\n\t\tString customer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkCustomerIdIfExist(customer_Id)) {\n\t\t\tcustomer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn customer_Id;\n\t}",
"static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }",
"private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }",
"private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}",
"String generateUID();",
"@Override\n\tprotected int calcBetCode(int number) {\n\t\tint street = (number - 1) / 3;\n\t\treturn street;\n\t}",
"public static String generateCustomerID() {\n\tcustomerID++;\n\treturn String.valueOf(customerID);\n }",
"private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}",
"protected void createPaymentCardNumber(int[] issuerIdentificationNumber, int diggitsNuber) {\n\n\t\tint[] paymentCardNumber = new int[diggitsNuber];\n\t\tSystem.arraycopy(issuerIdentificationNumber, 0, paymentCardNumber, 0, issuerIdentificationNumber.length);\n\t\tRandom rnd = new Random();\n\t\tfor (int i = issuerIdentificationNumber.length; i < diggitsNuber - 1; i++) {\n\t\t\tpaymentCardNumber[i] = rnd.nextInt(10);\n\t\t}\n\t\tpaymentCardNumber[paymentCardNumber.length - 1] = getLastDigitPaymentCard(paymentCardNumber);\n\t\tsetPaymentCardNumber(paymentCardNumber);\n\t}",
"private String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}",
"public static String coder(){\n Random randomGen = new Random();\n \n String letter1, letter2 = \"\";\n int random1, random2, random3, random4 = 0;\n String genome = \"\";\n \n int i = 0;\n int first = (int)((Math.random()*26)+97);\n char firstChar = Character.toUpperCase((char) first);\n genome += firstChar;\n \n int second = (int)((Math.random()*26)+97);\n char secondChar = Character.toUpperCase((char) second);\n genome += secondChar;\n \n random1 = randomGen.nextInt(10);\n genome += random1;\n \n random2 = randomGen.nextInt(10);\n genome += random2;\n \n random3 = randomGen.nextInt(10);\n genome += random3;\n \n random4 = randomGen.nextInt(10);\n genome += random4;\n \n return genome;\n }",
"private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }",
"public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }",
"public static String generateId(int digitAmount) {\n\t\t\n\t\tfinal String upperAlpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\t\t\n\t\tString brokerOrderID = \"\";\n\t\tfor (int i = 0; i < digitAmount; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tint randomAlphaIndex = ThreadLocalRandom.current().nextInt(0, 25 + 1);\n\t\t\t\tbrokerOrderID += upperAlpha.charAt(randomAlphaIndex);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint randomInteger = ThreadLocalRandom.current().nextInt(1, 9 + 1);\n\t\t\t\tbrokerOrderID += Integer.toString(randomInteger);\n\t\t\t}\n\t\t}\n\t\treturn brokerOrderID;\n\t}",
"public void generateCode() {\n code = java.util.UUID.randomUUID().toString();\n }",
"public int generatePolicyNum(){\n\t\tRandom rnd = new Random();\n\t\tint polNum = rnd.nextInt(899999) + 100000; \t\n\t\t\n\t\treturn polNum;\t\t\t\n\t}",
"private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}",
"public static String generateSaleID() {\n\tsaleID++;\n\treturn String.valueOf(saleID);\n }",
"private String genSenderID(String phoneNumber) {\r\n String sid = phoneNumber.replaceAll(senderIDRegex, \"\");\r\n return sid.length() > 11 ? sid.substring(sid.length() - 11, sid.length()) : sid;\r\n }",
"private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }",
"public void generatePlate(){\r\n\t\tfor(int i = 0; i<3; i++){ // Using math random to generate three upper case letter \r\n\t\t\tSystem.out.print((char)((int)'A'+Math.random()*((int)'Z'-(int)'A'+1)));\r\n\t\t}\r\n\t\tSystem.out.print(\"-\");\r\n\t\tfor(int i=0; i<4; i++){ // using math random to generate four integers\r\n\t\t\tSystem.out.print((int)(Math.random()*10));\r\n\t\t}\r\n\t}",
"public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t}",
"public NUID() {\n // Generate a cryto random int, 0 <= val < max to seed pseudorandom\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n pre = new char[preLen];\n for (int i = 0; i < preLen; i++) {\n pre[i] = '0';\n }\n randomizePrefix();\n }",
"private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }",
"public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMddHHmmss\");\r\n\t\tString pid = dateFormat.format(new Date()) + str_num;\r\n\t\treturn pid;\r\n\t}",
"private String generatePhone() {\n\t\tString ret = \"\";\n\t\tString[] areaCode = { \"051\", \"055\", \"045\", \"043\", \"053\" };\n\n\t\t// Gets an area code\n\t\tret = areaCode[(new Random()).nextInt(5)];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tint n = (new Random()).nextInt(9);\n\n\t\t\t// Checks if the first number is 0\n\t\t\tif (i == 0 && n == 0) {\n\t\t\t\ti -= 1;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tret += n;\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}",
"public String generateAccountNumber() {\n // Set First part of AccountNumber\n String accountNumberFirst = \"1398\";\n\n // To Make Second, Third part Get each date and time\n String currentTime = getCurrentTime();\n\n // Get year, month, day\n String date = currentTime.split(\" \")[0];\n int year, month, day;\n year = Integer.parseInt(date.split(\"-\")[0]);\n month = Integer.parseInt(date.split(\"-\")[1]);\n day = Integer.parseInt(date.split(\"-\")[2]);\n\n // Get hour, minute, second\n String time = currentTime.split(\" \")[1];\n int hour, minute, second;\n hour = Integer.parseInt(time.split(\":\")[0]);\n minute = Integer.parseInt(time.split(\":\")[1]);\n second = Integer.parseInt(time.split(\":\")[2]);\n\n // Set Second part of AccountNumber\n String accountNumberSecond;\n accountNumberSecond = Integer.toString((year % 10)) + Integer.toString((month * second) % 10) + Integer.toString((day * minute + hour) % 10);\n\n // Set Third part of AccountNumber\n String accountNumberThird;\n accountNumberThird = Integer.toString((second * hour + minute) % 10) + Integer.toString((second * day + hour) % 10) + Integer.toString((day * month + second) % 10) + Integer.toString((second * minute + day) % 10);\n\n // Set Forth part of AccountNumber\n String accountNumberForth;\n int count = (int)accountDataRepository.count();\n if(count % 100 < 10) {\n accountNumberForth = \"0\" + Integer.toString(count % 100);\n }\n else {\n accountNumberForth = Integer.toString(count % 100);\n }\n\n // Generate AccountNumber\n String accountNumber = accountNumberFirst + \"-\" + accountNumberSecond + \"-\" + accountNumberThird + \"-\" + accountNumberForth;\n\n return accountNumber;\n }",
"public static String generateId(String s){\n\t\tString date = LocalDate.now().format(DateTimeFormatter.ofPattern(\"yyMMdd\"));\n\t\tString key = s +\"_\" + date;\n\t\t//com.incr(key);\n\t\tredisTemplate.opsForValue().increment(key);\n\t\tInteger num = redisTemplate.opsForValue().get(key);\n\t\treturn date + \"-\" + String.format(\"%08d\",num);\n\t}",
"RandomIdNoLuhnProvider(int length) {\n this.length = length;\n }",
"private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }",
"private long generateID() {\n\t\treturn ++lastID;\n\t}",
"public static String generateID(int num){\n StringBuilder str=new StringBuilder();//定义变长字符串\n Random random=new Random();\n for (int i = 0; i < num; i++) {\n str.append(random.nextInt(10));\n }\n return str.toString();\n }",
"public static int generateRandomNumber(int topBoundary)\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(topBoundary);\n\t}",
"String createSessionId(long seedTerm);",
"private int genRandomWaveNum(int waveNum){\n return genRandomWaveNum(1, waveNum);\n }",
"private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }",
"org.hl7.fhir.Identifier addNewIdentifier();",
"public String reserveSeats(final int seatHoldId, final String customerEmail) {\n\n\t\tint bookinfRefNo = (int) (Math.random() * 1000000);\n\n\t\tQuery searchUserQuery = new Query(Criteria.where(\"_id\").is(seatHoldId));\n\t\tHoldSeatDTO holdSeatDTO = mongoTemplate.findOne(searchUserQuery,\n\t\t\t\tHoldSeatDTO.class);\n\t\tif (null != holdSeatDTO) {\n\t\t\tholdSeatDTO.setStatus(SeatStatus.BOOKED.toString());\n\t\t\tholdSeatDTO.setBookinfRefNo(bookinfRefNo);\n\t\t\tholdSeatDTO.setCustomerEmail(customerEmail);\n\t\t\tmongoTemplate.save(holdSeatDTO);\n\t\t\treturn holdSeatDTO.getBookinfRefNo() + \"\";\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"200001\", NOT_FOUND_ERROR);\n\t\t}\n\n\t}",
"public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }",
"public void generateCode (int counter1){\r\n\t\tint randNum;\r\n\t\tfor (int i = 0; i < counter1 ; i++){\r\n\t\t\trandNum = (int) (Math.random()*(4-1+1))+1;\r\n\t\t\tcode = code + randNum;\r\n\t\t}\r\n\t\tSystem.out.println(\"code = \" + code);\r\n\t\tanimateButtons();\r\n\t}",
"private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }",
"@Override\n\tprotected String getProgramId(HttpServletRequest request)\n\t{\n\t\treturn \"BPRA02\";\n\t}",
"public int randomNum()\r\n {\r\n Random rand = new Random();\r\n int n = rand.nextInt(52)+1;\r\n return n;\r\n }",
"Builder addCopyrightYear(Number value);",
"private String idString(int occurrence) {\n if (occurrence == 0) {\n return null;\n }\n String stringRep = \"\";\n while (occurrence > 0) {\n // generate character from A-Z and add to stringRep\n char nextChar = (char) ((occurrence - 1) % 26 + 'A');\n stringRep = nextChar + stringRep;\n occurrence = (occurrence - 1) / 26;\n }\n return stringRep;\n }",
"private int getWitchType(int zoneIndex) {\n if(HolidaySettings.isHalloweenMode()) {\n if(zoneIndex == 23) {\n return random.nextInt(2) + 2; // Only allowing 2 or 3 due to ghost graphics collision\n }\n if(zoneIndex == 6) {\n return 1;\n }\n if(zoneIndex == 8) {\n return random.nextInt(2) + 1; // Only allowing 1 or 2 due to ghost graphics collision\n }\n if(zoneIndex == 9 || zoneIndex == 18) {\n return 3;\n }\n if(zoneIndex == 10) {\n return 2;\n }\n if(zoneIndex == 11) {\n return 2;\n }\n if(zoneIndex == 13) {\n return 2;\n }\n if(zoneIndex == 17) {\n return 2;\n }\n }\n return random.nextInt(6);\n }",
"public static String generateGamecode(){\n \tboolean done = false;\n \tString gamecode = null;\n \twhile (!done){\n\t \tgamecode = RandomStringUtils.randomAlphanumeric(ServerConfiguration.feedcodeLength -1);\n\t \tgamecode = ServerConfiguration.gamePrefix + gamecode.toUpperCase();\n\t \t//check if exists\n\t \tdone = !checkGameExisits(gamecode);\n \t}\n \treturn gamecode;\n }",
"public static int generateUniqueId(){\r\n String returnme = GregorianCalendar.getInstance().getTimeInMillis() + \"\";\r\n return Integer.parseInt(returnme.substring(returnme.length() - 9, returnme.length()));\r\n }",
"public synchronized String generateCallIdentifier(String address) {\n String date = new Long(System.currentTimeMillis() + callIDCounter++ + rand.nextLong()).toString();\n byte cid[] = digester.digest(date.getBytes());\n String cidString = Utils.toHexString(cid);\n return cidString + \"@\" + address;\n }",
"private String generateOrderNumber() {\n return OBJ_PREFIX + ID_GENERATOR.getAndIncrement();\n }",
"private int randomAddress() {\n\t\tint randomAddressId = (int) (Math.random() * 603);\n\t\treturn randomAddressId;\n\t}",
"public static String generateMobNum() {\n\t\tString number = RandomStringUtils.randomNumeric(10);\t\n\t\treturn (number);\n\t}",
"public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }",
"private static int generateViewId() {\n for (;;) {\n final int result = sNextGeneratedId.get();\n // aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n int newValue = result + 1;\n if (newValue > 0x00FFFFFF) newValue = 1; // Roll over to 1, not 0.\n if (sNextGeneratedId.compareAndSet(result, newValue)) {\n return result;\n }\n }\n }",
"public String generateVSVID();",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"private String generateMake() {\n\t\tString make = \"\";\n\t\tint caseNumber = randomGenerator.nextInt(5) + 1;\n\t\t\n\t\tswitch (caseNumber) {\n\t\tcase 1: \n\t\t\tmake = \"Chevy\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tmake = \"Ford\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tmake = \"Toyota\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tmake = \"Nissan\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tmake = \"Hyundai\";\n\t\t\tbreak;\n\t\tdefault: \n\t\t\tmake = \"\";\n\t\t\tbreak;\n\t\t}\n\t\treturn make;\n\t}",
"int toIdentifier() {\n return 1000 * y + x;\n }",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }",
"private String computeHeaderIdForNumber(String header) {\n\t\tString id = header;\n\t\tif (isKramdownFix()) {\n\t\t\tid = id .replaceAll(\"\\\\.\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\tid = id.replaceAll(\"[^a-zA-Z0-9]+\", \"-\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.toLowerCase();\n\t\tid = id.replaceFirst(\"^[^a-zA-Z0-9]+\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.replaceFirst(\"[^a-zA-Z0-9]+$\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tif (Strings.isEmpty(id)) {\n\t\t\treturn \"section\"; //$NON-NLS-1$\n\t\t}\n\t\treturn id;\n\t}",
"private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}",
"private long generateNumberForShardId(String shardId, long baseTime) throws ParseException {\n if (shardId.charAt(SHARD_ID_SPLIT) != '_') {\n throw new ParseException(\"Shard id is not in expected format: yyyyMMdd_n: \" + shardId, SHARD_ID_SPLIT);\n }\n\n // turn the yyyyMMdd into the number of days until base time\n Date date = DateHelper.parse(shardId.substring(0, SHARD_ID_SPLIT));\n long daysFromBaseTime = (baseTime - (date.getTime() / MILLIS_PER_DAY));\n if (daysFromBaseTime < 0) {\n daysFromBaseTime = 0 - daysFromBaseTime;\n }\n\n // get the shard number\n int shard = Integer.parseInt(shardId.substring(SHARD_ID_SPLIT + 1));\n\n // now turn the shard id into a number that is sequential (without gaps) with all other shard ids\n\n return (daysFromBaseTime * shardIdFactory.getNumShards(date.getTime())) + shard;\n }",
"private int IdRandom() {\n\t\tRandom random = new Random();\n\t\tint id = random.nextInt(899999) + 100000;\n\t\treturn id;\n\t}",
"public static int genID(){\n Random rand = new Random();\n\n int theID = rand.nextInt(999)+1;\n\n return theID;\n\n }",
"private void prepareCoinRacks() {\n\t\t\n\t}",
"public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}",
"private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }",
"public static String generatePlate() {\n\t\t\n\t\tString s = \"\";\n\t\t\n\t\tfor (int i=0; i < 3; i++)\n\t\t\ts += generateLetter();\n\t\t\n\t\ts += '-';\n\t\t\n\t\tfor (int i=0; i < 4; i++)\n\t\t\ts += generateDigit();\n\t\t\n\t\treturn s;\n\t}",
"private int generateNumberOfDoors(String model) {\n\t\tif (model.equals(\"compact\")) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 4;\n\t\t}\n\t}",
"private static Integer generateID() {\n Integer uniqueID = -1;\n while (setOfIDs.contains(uniqueID) || !Employee.isPositive(uniqueID)) {\n uniqueID += 1;\n }\n return uniqueID;\n }",
"public String getUniqueIdentifier(){\n return (streetAddress + aptNumber + zip).toLowerCase().replaceAll(\"\\\\s+\",\"\"); \n }",
"java.lang.String getSerialNumber();"
] |
[
"0.83169776",
"0.58656824",
"0.58656824",
"0.53796726",
"0.5356688",
"0.53000927",
"0.52928793",
"0.5206237",
"0.5193616",
"0.51564306",
"0.51491773",
"0.5140457",
"0.50752383",
"0.5067891",
"0.50427616",
"0.5041185",
"0.5006429",
"0.49946007",
"0.49873245",
"0.49806383",
"0.49609864",
"0.4950765",
"0.4949256",
"0.4917052",
"0.48998007",
"0.4895973",
"0.48892614",
"0.48483106",
"0.48436952",
"0.48323962",
"0.48281035",
"0.4819243",
"0.48188075",
"0.4802872",
"0.4796793",
"0.47935146",
"0.47863498",
"0.4784136",
"0.47809938",
"0.4779099",
"0.4777799",
"0.47768167",
"0.47762635",
"0.4774872",
"0.4767899",
"0.47614798",
"0.4760602",
"0.4759535",
"0.4745385",
"0.47388366",
"0.4737632",
"0.4733766",
"0.4731461",
"0.47225764",
"0.472158",
"0.47197357",
"0.4719568",
"0.47082636",
"0.46891376",
"0.46867153",
"0.467638",
"0.4670441",
"0.46699756",
"0.46631604",
"0.46604067",
"0.4647883",
"0.46396658",
"0.46350783",
"0.46319443",
"0.46292156",
"0.46241024",
"0.4618414",
"0.46067506",
"0.46025047",
"0.46012133",
"0.46009502",
"0.45956597",
"0.4594311",
"0.45927155",
"0.459207",
"0.45790166",
"0.45787746",
"0.4578678",
"0.45786062",
"0.45757496",
"0.45731118",
"0.45727277",
"0.45689154",
"0.4563937",
"0.45575714",
"0.45539126",
"0.45538077",
"0.45517868",
"0.45385715",
"0.45349035",
"0.45327735",
"0.45325997",
"0.45315763",
"0.45313603",
"0.45272976"
] |
0.83003324
|
1
|
This method concatenates LIBRARY_CODE, "_B_", counter and returns it.
|
@Override
public String generateUniqueID() {
return LIBRARY_CODE + "_B_" + counter;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String generateCode(){\n return \"P\" + repository.getCount();\n }",
"public Number getCodeCombinationId() {\n return (Number)getAttributeInternal(CODECOMBINATIONID);\n }",
"public void incB() {\n this.countB++;\n }",
"public String code() {\r\n return code == null ? String.format(\"%s%04d\", type, num) : code;\r\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\r\n counter = 0;\r\n }\r\n counter = counter + 1; \r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }",
"public int getCode() {\r\n\t\tcode=code+1;\r\n\t\treturn code;\r\n\t}",
"String constructComponentName() {\n return base + nameCounter++;\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(System.currentTimeMillis()) + \"_\" + counter;\n }",
"private void writeCodeLine(String rCode){\n\t\tCodeCount++;{\n\t\ttry {\n\t\t\tcodes.write(CodeCount+\" \"+rCode+'\\n');;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"FileWriter Error on \"+CodeCount);\n\t\t}\n\t\treturn;\n\t\t}\n\t}",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }",
"public void generateCode() {\n code = java.util.UUID.randomUUID().toString();\n }",
"private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }",
"private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n\r\n counter = counter + 1;\r\n\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\r\n \"_\" + counter;\r\n }",
"private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n counter = counter + 1;\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }",
"private String getOrderCode(int pkgCode){\n\t\tint a = pkgCode ;\n\t\tint b = a/10 ;\n\t\tint c = b*10 ;\n//\t\tSystem.out.println(c);\n\t\treturn c+\"\" ;\n\t}",
"public String getCode() {\n String code = getPrefixCode();\r\n code += format(5, this.getNumber());\r\n return code;\r\n }",
"public String getLibraryNumber()\r\n {\r\n return libraryNumber;\r\n }",
"private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\n counter = 0;\n }\n\n counter = counter + 1;\n\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\n \"_\" + counter;\n }",
"public String addBinary(String a, String b) {\n\t\tint alen = a.length();\n\t\tint blen = b.length();\n int rslen = alen;\n\t\tif(blen > rslen)\n\t\t\trslen = blen;\n\t\trslen++;\n\t\tint[] rs = new int[rslen];\n\t\tfor(int i = 0; i < rslen; i++){\n\t\t\trs[i] = 0;\n\t\t}\n\t\tint next = 0;\n\t\tString result;\n\t\tfor(int i = rslen-1; i >= 0; i--){\n\t\t\talen--;\n\t\t\tblen--;\n\t\t\tint ae = 0;\n\t\t\tint be = 0;\n\t\t\t\n\t\t\tif(alen >= 0)\n\t\t\t\tae = (a.charAt(alen) - '0');\n\t\t\t\n\t\t\tif(blen >= 0)\n\t\t\t\tbe = (b.charAt(blen) - '0');\n\t\t\t\n\t\t\tint curr = ae + be + next;\n\t\t\tif(curr >= 2){\n\t\t\t\tnext = 1;\n\t\t\t\tcurr = curr - 2;\n\t\t\t} else\n\t\t\t\tnext = 0;\n\t\t\trs[i] = curr;\n\t\t}\n\t\t\n\t\tStringBuilder st = new StringBuilder();\n\t\tfor(int i = 0; i < rslen; i++){\n\t\t\tst.append(rs[i]);\n\t\t}\n\t\tresult = st.toString();\n\t\tif(rs[0] == 0){\n\t\t\tresult = result.substring(1);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t\n }",
"@Override\n public String generateRackID() {\n String newRackID = generateRandomCharacter() +\"\"+\n generateRandomCharacter() +\".\"+\n rackCounter +\".\"+ getCopyrightYear();\n this.rackCounter++;\n return newRackID;\n }",
"public static long generateCode() {\n long code = (long) (100000 + Math.random() * 899999l);\n return code;\n }",
"int getCombine();",
"public String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }",
"public int getLibVersionNumber();",
"public java.lang.String getBundleCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUNDLECODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public long countB() {\n return this.countB;\n }",
"public static String generateProductID() {\n\tproductID++;\n\treturn String.valueOf(productID);\n }",
"public int getmergedcounter() {\n\t\treturn mergedcounter;\r\n\t}",
"public org.apache.xmlbeans.XmlString xgetBundleCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BUNDLECODE$0, 0);\n return target;\n }\n }",
"public static int m19633b(Context context) {\n int i = 0;\n try {\n return context.getPackageManager().getPackageInfo(context.getPackageName(), i).versionCode;\n } catch (Throwable unused) {\n return i;\n }\n }",
"int addBookToLibrary(Book book) {\n\t\t\n\t\t// checks if the book is already in our library \n\t\tint checkBookId = this.getBookId(book);\n\n\t\tif (checkBookId != -1) {\n\t\t\treturn checkBookId;\n\t\t}\n\t\t\n\t\t// checks if passed the amount of books we can hold\n\t\tif (this.bookCounter >= this.maxBookCapacity) {\n\t\t\treturn -1; \n\t\t}\n\t\t\t\n\t\t// adds the book to the bookshelf\n\t\tthis.bookShelf[this.bookCounter] = book; \n\t\t\n\t\t// update the counter\n\t\tthis.bookCounter ++; \n\t\t\n\t\treturn (this.bookCounter - 1); \n\t}",
"private SparkplugBPayloadBuilder addBdSeqNum(SparkplugBPayloadBuilder payload) throws Exception {\n\t\tif (payload == null) {\n\t\t\tpayload = new SparkplugBPayloadBuilder();\n\t\t}\n\t\tif (bdSeq == 256) {\n\t\t\tbdSeq = 0;\n\t\t}\n\t\tpayload.addMetric(new MetricBuilder(\"bdSeq\", Int64, (long) bdSeq).createMetric());\n\t\tbdSeq++;\n\t\treturn payload;\n\t}",
"public void mo20817a(C3246b bVar) {\n this.f18932b.add(bVar);\n }",
"public interface TAG_JAVA_CODEBASE\n{\n\n /**\n * Class downloading is supported for stubs, ties, values, and \n * value helpers. The specification allows transmission of codebase \n * information on the wire for stubs and ties, and enables usage of \n * pre-existing ClassLoaders when relevant. \n * <p>\n * For values and value helpers, the codebase is transmitted after the \n * value tag. For stubs and ties, the codebase is transmitted as \n * the TaggedComponent <code>TAG_JAVA_CODEBASE</code> in the IOR \n * profile, where the <code>component_data</code> is a CDR encapsulation \n * of the codebase written as an IDL string. The codebase is a \n * space-separated list of one or more URLs.\n */\n public static final int value = (int)(25L);\n}",
"protected final int mo3161b() {\n int b = super.mo3161b();\n if (this.f20587a != null && this.f20587a.length > 0) {\n for (zzzg zzzg : this.f20587a) {\n if (zzzg != null) {\n b += zzyy.m12157b(1, zzzg);\n }\n }\n }\n if (this.f20588b != null) {\n b += zzyy.m12158b(2, this.f20588b);\n }\n if (this.f20589c != null) {\n b += zzyy.m12161c(3, this.f20589c.longValue());\n }\n if (this.f20590d != null) {\n b += zzyy.m12161c(4, this.f20590d.longValue());\n }\n return this.f20591e != null ? b + zzyy.m12156b(5, this.f20591e.intValue()) : b;\n }",
"public interface IPSBrandCodeConstants\n{\n public static final int REPOSITORY = 1;\n public static final int SERVER = 2;\n public static final int PUBLISHER = 4;\n public static final int DEVELOPMENT_TOOLS = 8;\n public static final int DATABASE_PUBLISHER = 16;\n public static final int BEA_ACCELERATOR = 32;\n public static final int MULTI_SERVER_MANANGER = 64;\n public static final int CONTENT_CONNECTOR = 128;\n public static final int WORD = 256;\n public static final int INLINE_EDITING = 512;\n public static final int SPRINTA = 1024;\n public static final int APPLICATION_SERVER = 2048;\n public static final int WEB_SERVICES_LISTENER = 4096;\n public static final int DOCUMENT_ASSEMBLER = 8192;\n public static final int WEBSPHERE_ACCELERATOR = 16384;\n public static final int CONVERA_SEARCH = 32768;\n public static final int EKTRON_WEP_XML = 65536;\n public static final int EKTRON_WEBIMAGEFX = 131072;\n\n \n /**\n * Represents types of servers for which codes can be generated.\n */\n public enum ServerTypes\n {\n /**\n * Development server\n */\n DEVELOPMENT(0, \"Development\"),\n \n /**\n * Production server\n */\n PRODUCTION(1, \"Production\"),\n \n /**\n * Test server\n */\n TEST(2, \"Test\"),\n \n /**\n * Failover server\n */\n FAIL0VER(3, \"Fail Over\"),\n \n /**\n * Disaster Recovery server\n */\n DISATER_RECOVERY(4, \"Disaster Recovery\"),\n \n /**\n * Publishing Hub\n */\n PUBLISHING_HUB(5, \"Publishing Hub\");\n \n /**\n * Constructor\n * \n * @param value The integer representation of this type. \n * \n * @param displayName The display name, assumed not <code>null</code> or \n * empty.\n */\n private ServerTypes(int value, String displayName)\n {\n mi_value = value;\n mi_name = displayName;\n }\n \n /**\n * Get the integer value of this server type\n * \n * @return The value\n */\n public int getValue()\n {\n return mi_value;\n }\n \n /**\n * Returns the display name of this type\n * \n * @return The name, never <code>null</code> or empty.\n */\n @Override\n public String toString()\n {\n return mi_name;\n }\n \n /**\n * Determine if this type is an extended server type. These are types\n * that are not available for codes that don't support extended product\n * info.\n * \n * @return <code>true</code> if it is extended, <code>false</code>\n * otherwise.\n */\n public boolean isExtendedServerType()\n {\n return mi_value > PRODUCTION.mi_value;\n }\n \n /**\n * Lookup enum value by ordinal. Ordinals should be unique. If they are\n * not unique, then the first enum value with a matching ordinal is\n * returned.\n * \n * @param s The enum value\n * \n * @return an enumerated value, never <code>null</code>.\n * \n * @throws IllegalArgumentException if the value does not match\n */\n public static ServerTypes valueOf(int s) throws IllegalArgumentException\n {\n ServerTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n } \n \n /**\n * Gets list of server types sorted on display name ascending \n * case-insensitive.\n * \n * @return The list, never <code>null</code> or empty.\n */\n public static List<ServerTypes> getSortedValues()\n {\n List<ServerTypes> sortedTypes = new ArrayList<ServerTypes>();\n for (ServerTypes serverTypes : values())\n sortedTypes.add(serverTypes);\n \n Collections.sort(sortedTypes, new Comparator<ServerTypes>() {\n\n public int compare(ServerTypes t1, ServerTypes t2)\n {\n return t1.mi_name.toLowerCase().compareTo(\n t2.mi_name.toLowerCase());\n }});\n \n return sortedTypes;\n }\n \n\n /**\n * The value supplied during construction, immutable.\n */\n private int mi_value;\n \n /**\n * The display name supplied during construction, immutable.\n */\n private String mi_name;\n }\n \n \n /**\n * Represents types of evals for which codes can be generated.\n */\n public enum EvalTypes\n {\n /**\n * Development server\n */\n NOT_EVAL(0, \"Non-Eval\"),\n \n /**\n * Production server\n */\n M30_DAY(1, \"30 Day Eval\"),\n \n /**\n * Test server\n */\n M60_DAY(2, \"60 Day Eval\"),\n \n /**\n * Failover server\n */\n M90_DAY(3, \"90 Day Eval\"),\n \n /**\n * Disaster Recovery server\n */\n TERM(4, \"Term License\");\n\n \n /**\n * Constructor\n * \n * @param value The integer representation of this type. \n * \n * @param displayName The display name, assumed not <code>null</code> or \n * empty.\n */\n private EvalTypes(int value, String displayName)\n {\n mi_value = value;\n mi_name = displayName;\n }\n \n /**\n * Get the integer value of this eval type\n * \n * @return The value\n */\n public int getValue()\n {\n return mi_value;\n }\n \n /**\n * Returns the display name of this type\n * \n * @return The name, never <code>null</code> or empty.\n */\n @Override\n public String toString()\n {\n return mi_name;\n }\n \n /**\n * Determine if this type is an extended server type. These are types\n * that are not available for codes that don't support extended product\n * info.\n * \n * @return <code>true</code> if it is extended, <code>false</code>\n * otherwise.\n */\n public boolean isExtendedEvalType()\n {\n return mi_value > M90_DAY.mi_value;\n }\n \n /**\n * Lookup enum value by ordinal. Ordinals should be unique. If they are\n * not unique, then the first enum value with a matching ordinal is\n * returned.\n * \n * @param s The enum value\n * \n * @return an enumerated value, never <code>null</code>.\n * \n * @throws IllegalArgumentException if the value does not match\n */\n public static EvalTypes valueOf(int s) throws IllegalArgumentException\n {\n EvalTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n } \n \n /**\n * The value supplied during construction, immutable.\n */\n private int mi_value;\n \n /**\n * The display name supplied during construction, immutable.\n */\n private String mi_name;\n } \n}",
"private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}",
"public String getBAA001() {\n return BAA001;\n }",
"protected void insertCode(SketchCode newCode) {\n ensureExistence();\n\n // add file to the code/codeCount list, resort the list\n //if (codeCount == code.length) {\n code = (SketchCode[]) PApplet.append(code, newCode);\n codeCount++;\n //}\n //code[codeCount++] = newCode;\n }",
"public int getBaseOfCode()\n throws IOException, EndOfStreamException\n {\n return peFile_.readInt32(relpos(Offsets.BASE_OF_CODE.position));\n }",
"public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}",
"private int m16126b() {\n int i;\n int i2 = f12651a;\n if (i2 >= 0) {\n return i2;\n }\n try {\n i = ((Integer) m16123a(m16122a(\"com.color.os.ColorBuild\"), \"getColorOSVERSION\", (Class[]) null, (Object[]) null)).intValue();\n } catch (Exception unused) {\n i = 0;\n }\n if (i == 0) {\n try {\n String b = m16127b(\"ro.build.version.opporom\");\n if (b.startsWith(\"V1.4\")) {\n return 3;\n }\n if (b.startsWith(\"V2.0\")) {\n return 4;\n }\n if (b.startsWith(\"V2.1\")) {\n return 5;\n }\n } catch (Exception unused2) {\n }\n }\n f12651a = i;\n return i;\n }",
"public String CodeInterpreter() {\n\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\treturn \"DA\" + \"_\" + timeStamp;\n\t}",
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public static String makeISBN()\n\t{\n\t\t// Do NOT change the declaration of the following variables!\n\t\tString laendercode;\n\t\tString bandnr;\n\t\tString verlagsnr;\n\t\tString checksum;\n\n\t\t// Much more convenient than Math.rand() - see below.\n\t\tRandom rnd = new Random();\n\n\t\tDecimalFormat formatTwoDigits = new DecimalFormat(FORMAT_TWO_DIGITS);\n\t\tDecimalFormat formatThreeDigits = new DecimalFormat(FORMAT_THREE_DIGITS);\n\n\t\t// Random numbers from 1-99: (int)[0, 99[ + 1 = (int)[1, 99]\n\t\tint laenderCodeNumeric = rnd.nextInt(99) + 1;\n\t\tint verlagsNrNumeric = rnd.nextInt(99) + 1;\n\t\t// Random number from 100-999: (int)[0, 900[ + 100 = (int)[100, 999]\n\t\tint bandNrNumeric = rnd.nextInt(900) + 100;\n\n\t\tlaendercode = formatTwoDigits.format(laenderCodeNumeric);\n\t\tbandnr = formatThreeDigits.format(bandNrNumeric);\n\t\tverlagsnr = formatTwoDigits.format(verlagsNrNumeric);\n\n\t\t// Calculate checksum\n\t\tint l1 = Integer.parseInt(laendercode.substring(0, 1));\n\t\tint l2 = Integer.parseInt(laendercode.substring(1, 2));\n\n\t\tint b1 = Integer.parseInt(bandnr.substring(0, 1));\n\t\tint b2 = Integer.parseInt(bandnr.substring(1, 2));\n\t\tint b3 = Integer.parseInt(bandnr.substring(2, 3));\n\n\t\tint v1 = Integer.parseInt(verlagsnr.substring(0, 1));\n\t\tint v2 = Integer.parseInt(verlagsnr.substring(1, 2));\n\n\t\tchecksum = Integer.toString((hashOp(l1) + l2 + hashOp(b1) + b2 + hashOp(b3) + v1 + hashOp(v2)) % 10);\n\n\t\t// Do not change the following line\n\t\treturn laendercode + \"-\" + bandnr + \"-\" + verlagsnr + \"-\" + checksum;\n\t}",
"public void mo20818b(C3246b bVar) {\n this.f18933c.add(bVar);\n }",
"private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}",
"public Long getMainCode() {\n return mainCode;\n }",
"public long getCode () {\r\n\t\treturn code;\r\n\t}",
"private long generateID() {\n\t\treturn ++lastID;\n\t}",
"private String generateOrderNumber() {\n return OBJ_PREFIX + ID_GENERATOR.getAndIncrement();\n }",
"public int getBNumber(){\n\t\t return B_number;\n\t}",
"public String getlbr_Barcode2();",
"public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}",
"String getAdditionalCode();",
"String getAdditionalCode();",
"String getAdditionalCode();",
"public String addBinary(String a, String b) {\n StringBuilder result = new StringBuilder();\n int carr = 0;\n for (int i = a.length() - 1, j = b.length() - 1; i >= 0 || j >= 0; i--, j--) {\n int ai = i >= 0 ? a.charAt(i) - '0' : 0;\n int bi = j >= 0 ? b.charAt(j) - '0' : 0;\n int sum = carr + ai + bi;\n result.append(sum & 1);\n carr = (sum >>> 1) & 1;\n }\n result.append(carr > 0 ? carr : \"\");\n return result.reverse().toString();\n }",
"public String getLcode()\n/* */ {\n/* 47 */ return this.lcode;\n/* */ }",
"protected Pair<JilExpr,List<JilStmt>> doStringConcat(Expr.BinOp bop){\n \t\tString builderLab = \"$builder\" + stringbuilder_label++;\r\n \t\tPair<JilExpr,List<JilStmt>> lhs = doExpression(bop.lhs());\r\n \t\tPair<JilExpr,List<JilStmt>> rhs = doExpression(bop.rhs());\r\n \t\t\r\n \t\tList<JilStmt> stmts = lhs.second();\r\n \t\tstmts.addAll(lhs.second());\r\n \t\tstmts.addAll(rhs.second());\r\n \t\t\r\n \t\tType.Clazz builder = new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\"StringBuilder\");\r\n \t\t\t\t\t\t\r\n \t\tstmts.add(new JilStmt.Assign(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\tnew JilExpr.New(builder, new ArrayList<JilExpr>(),\r\n \t\t\t\t\t\tnew Type.Function(T_VOID), bop.attributes())));\t\t\t\t\t\r\n \t\t\r\n \t\tType lhs_t = lhs.first().type(); \r\n \t\tif(lhs_t instanceof Type.Primitive || isString(lhs_t)) {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(lhs.first());\r\n \t\t\tstmts.add(new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder), \"append\",\r\n \t\t\t\t\tparams, new Type.Function(new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\"), lhs.first().type()), new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\")));\r\n \t\t} else {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(lhs.first());\r\n \t\t\tstmts.add(new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\t\t\"append\", params, new Type.Function(new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"),\r\n \t\t\t\t\tJAVA_LANG_OBJECT), new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\")));\t\r\n \t\t}\r\n \r\n \t\t// Now, do the right hand side\r\n \t\tJilExpr r;\r\n \t\tType rhs_t = rhs.first().type(); \r\n \t\tif(rhs_t instanceof Type.Primitive || isString(rhs_t)) {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(rhs.first());\r\n \t\t\tr = new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder), \"append\",\r\n \t\t\t\t\tparams, new Type.Function(new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\"), rhs_t), new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"));\r\n \t\t} else {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(rhs.first());\r\n \t\t\tr = new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\t\t\"append\", params, new Type.Function(new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"), JAVA_LANG_OBJECT),\r\n \t\t\t\t\tnew Type.Clazz(\"java.lang\", \"StringBuilder\"));\r\n \t\t}\r\n \r\n \t\tr = new JilExpr.Invoke(r, \"toString\", new ArrayList<JilExpr>(),\r\n \t\t\t\tnew Type.Function(JAVA_LANG_STRING), JAVA_LANG_STRING);\r\n \t\t\r\n \t\treturn new Pair<JilExpr,List<JilStmt>>(r,stmts);\r\n \t}",
"private int _randomCode () {\n Random random = new Random();\n code = random.nextInt(999999);\n return code;\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"private static void addBook() {\n\t\t\r\n\t\tString author = input(\"Enter author: \"); // varaible change A to author\r\n\t\tString title = input(\"Enter title: \"); // variable changes T to title\r\n\t\tString callNumber = input(\"Enter call number: \"); // variable name change C to callNumber\r\n\t\tbook B = lib.addBook(author, title, callNumber); //variable LIB changes to library,A to author,T to title,C to callNumber , method changes Add_book to addBook()\r\n\t\toutput(\"\\n\" + B + \"\\n\");\r\n\t\t\r\n\t}",
"public static void m94920d() {\n Application application = BaseApplication.get();\n m94915b((Context) application, C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377F1EAD6D97D\"), m94906a((Context) application, C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377F1EAD6D97D\"), 0) + 1);\n m94916b(application, C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377E6ECCED2\"), System.currentTimeMillis());\n }",
"public String getClientLibId() {\n return RcClientLib.CLIENT_LIB_ID;\n }",
"public String getBKA001() {\n return BKA001;\n }",
"private int getIDFromDb(String codeItemID) {\n\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\tcodeItemID = codeItemID.toUpperCase();\n\t\tString sql = \"SELECT max_sequence FROM do_code_maxsequence WHERE upper(code_ItemUid)=? for update\";\n\n\t\tStringBuffer insertSql = new StringBuffer(\n\t\t\t\t\"insert into do_code_maxsequence(OBJUID,SEQUENCE_NAME,CODE_ITEMUID,PROPERTYUID,PROPERTYVALUE,YEARSEQ,MAX_SEQUENCE) values(\")\n\t\t\t\t.append(\"?,?,?,null,?,?,?)\");\n\n\t\tStringBuffer sqlUpdate = new StringBuffer(\n\t\t\t\t\"update do_code_maxsequence SET max_sequence=max_sequence+1\")\n\t\t\t\t.append(\" WHERE upper(code_ItemUid)=?\");\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tDOBO bo = DOBO.getDOBOByName(\"do_authorization\");\n\t\tDODataSource dss = bo.getDataBase();\n\n\t\ttry {\n\t\t\t// query\n\t\t\tcon = dss.getConnection();\n\t\t\tcon.setAutoCommit(false);\n\t\t\tstmt = con.prepareStatement(sql, ResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t\t\t\tResultSet.CONCUR_READ_ONLY);\n\t\t\tint retId = 1;\n\n\t\t\tstmt.setString(1, codeItemID);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\tSystem.out.println(\"The SQL\" + sql);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tretId = rs.getInt(\"max_sequence\") + 1;\n\t\t\t\t// update\n\t\t\t\t// //update\n\t\t\t\tstmt = con.prepareStatement(sqlUpdate.toString());\n\t\t\t\tstmt.setString(1, codeItemID);\n\t\t\t\tstmt.execute();\n\t\t\t} else {\n\t\t\t\t// //////////////insert\n\t\t\t\tstmt = con.prepareStatement(insertSql.toString());\n\t\t\t\tstmt.setString(1, UUIDHex.getInstance().generate());\n\t\t\t\tstmt.setString(2, null);\n\t\t\t\tstmt.setString(3, codeItemID);\n\t\t\t\tstmt.setString(4, null);\n\t\t\t\tstmt.setInt(5, 0);\n\t\t\t\tstmt.setLong(6, retId);\n\t\t\t\tstmt.execute();\n\t\t\t}\n\t\t\t// stmt.close();\n\t\t\t//\n\n\t\t\tcon.commit();\n\t\t\treturn retId;\n\n\t\t} catch (SQLException ex) {\n\t\t\ttry {\n\t\t\t\tcon.rollback();\n\t\t\t} catch (SQLException e) {\n\n\t\t\t}\n\t\t\tex.printStackTrace();\n\t\t\treturn 0;\n\t\t} finally {// Close Connection\n\t\t\ttry {\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t con.close();\n\t\t\t} catch (Exception ex1) {\n\t\t\t\tex1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static String m2198c(byte[] bArr) {\n if (bArr == null) {\n return \"\";\n }\n StringBuffer stringBuffer = new StringBuffer(bArr.length * 2);\n for (byte a : bArr) {\n C0847gk.m2196a(stringBuffer, a);\n }\n return stringBuffer.toString();\n }",
"public String getLBR_ProtestCode();",
"private void buildCodeMessageDict() {\r\n if( _codeMessageDictionary == null ) {\r\n _codeMessageDictionary = new Hashtable();\r\n }\r\n _codeMessageDictionary.put( new Integer( SC_SUCCESS ), new String( SM_SUCCESS ) );\r\n _codeMessageDictionary.put( new Integer( SC_BAD_REQUEST ), new String( SM_BAD_REQUEST ) );\r\n _codeMessageDictionary.put( new Integer( SC_FORBIDDEN ), new String( SM_FORBIDDEN ) );\r\n _codeMessageDictionary.put( new Integer( SC_NOT_FOUND ), new String( SM_NOT_FOUND ) );\r\n _codeMessageDictionary.put( new Integer( SC_SERVER_ERROR ), new String( SM_SERVER_ERROR ) );\r\n _codeMessageDictionary.put( new Integer( SC_NOT_IMPLEMENTED ), new String( SM_NOT_IMPLEMENTED ) );\r\n _codeMessageDictionary.put( new Integer( SC_SERVICE_UNAVAILABLE ), new String( SM_SERVICE_UNAVAILABLE ) );\r\n }",
"public synchronized String generateBranchId() {\n long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis();\n byte bid[] = digester.digest(Long.toString(num).getBytes());\n return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);\n }",
"public static int getCounter() {return counter;}",
"public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"private static String getLibraryName(String libraryName)\n\t{\n\t\treturn libraryName + (is64Bit ? \"64.dll\" : \".dll\");\n\t}",
"public static String addBinary(String a, String b) {\r\n\r\n \r\n \tlong a1=0,b1=0;\r\n \tString s2 = \"\";\r\n \tfor(int i =a.length()-1, j=0 ; (a.length()-j)!=0;i--,j++) {\r\n \t\tint d = a.charAt(i);\r\n \t\tif(d==48)\r\n \t\t\td = 0;\r\n \t\telse\r\n \t\t\td = 50-d;\r\n \t\r\n \t\ta1 = (long) (a1+d*(Math.pow(2, j)));\r\n \t\t\r\n \t}\r\n \tfor(int i =b.length()-1, j=0 ; (b.length()-j)!=0;i--,j++) {\r\n \t\tint d = b.charAt(i);\r\n \t\tif(d==48)\r\n \t\t\td=0;\r\n \t\telse\r\n \t\t\td=50-d;\r\n \t\tb1 = (long) (b1+d*(Math.pow(2, j)));\r\n \t\t\r\n \t}\r\n \tSystem.out.println(a1+\" \"+b1);\r\n \tlong ans1 = a1+b1;\r\n \tif(ans1 == 0)\r\n \t\ts2 = \"0\";\r\n \telse\r\n \twhile(ans1>0) {\r\n \t\tlong rem = ans1%2;\r\n \t\ts2 = rem+s2;\r\n \t\tans1=ans1/2;\r\n \t}\r\n \t\r\n return s2;\r\n }",
"private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }",
"private String nextFieldCode()\r\n\t{\r\n\t\treturn \"R\" + (nextFieldId++);\r\n\t}",
"public long getCode() {\n return code;\n }",
"public String getNewModuleId() {\n String lastModuleId = null;\n String newModuleId = null;\n\n try {\n\n Connection con = DBConnection.getConnection();\n String query = \"SELECT moduleId FROM module\\n\"\n + \"order by moduleId desc limit 1;\";\n PreparedStatement preparedStmt = (PreparedStatement) con.prepareStatement(query);\n\n // execute the preparedstatement\n ResultSet rs = preparedStmt.executeQuery();\n if (rs.next()) {\n lastModuleId = rs.getString(\"moduleId\");\n }\n String last3 = lastModuleId.substring(lastModuleId.length() - 3);\n newModuleId = lastModuleId.substring(0, 4) + String.valueOf(Integer.parseInt(last3) + 1);\n\n con.close();\n\n } catch (SQLException | HeadlessException e) {\n JOptionPane.showMessageDialog(null, e);\n }\n return newModuleId;\n }",
"private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }",
"public void mo3288a(C0808b bVar) {\n this.f2576b.add(bVar);\n }",
"public String addBinary(String a, String b) {\n StringBuilder ans = new StringBuilder();\n int carry = 0, tempRes = 0;\n int indexA = a.length() - 1, indexB = b.length() - 1;\n while (indexA >= 0 || indexB >= 0) {\n int digitA = 0, digitB = 0;\n if (indexA >= 0) digitA = a.charAt(indexA) - '0';\n if (indexB >= 0) digitB = b.charAt(indexB) - '0';\n tempRes = digitA + digitB + carry;\n carry = tempRes / 2;\n char ch = (char) (tempRes % 2 + '0');\n ans.insert(0, ch);\n indexA--;\n indexB--;\n }\n if (carry > 0) {\n char ch = (char) (carry + '0');\n ans.insert(0, ch);\n }\n return ans.toString();\n }",
"java.lang.String getProductNumberCode();",
"public void characters(char ch[], int start, int length){\n \t\t\t\t\tstr = new String(ch, start, length);\n \t\t\t\t\tif(tagname.equals(\"libraryname\")){\n \t\t\t\t\t\tcounts = 0;\n \t\t\t\t\t\tSystem.out.println(\"-----IN LIB-name\"+str+\"-----\"+\" \"+counts);\n \t\t\t\t\t\tbdatalist = new ArrayList<String>();\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"librarytel\")){\n \t\t\t\t\t\tSystem.out.println(\"-LIB TEL-\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"librarysite\")){\n \t\t\t\t\t\tSystem.out.println(\"-LIB SITE-\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"libraryaddr\")){\n \t\t\t\t\t\tSystem.out.println(\"-LIB ADDR-\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"bdata\")){\n \t\t\t\t\t\tSystem.out.println(\"-FOUND NEW BOOK-\");\n \t\t\t\t\t}else if(tagname.equals(\"bookname\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-NAME\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"ISBN\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-ISBN\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"author\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-AUTHOR\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"bookshelf\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-SHELF\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"serial\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-SERIAL\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"returned\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-returned\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"checkoutdate\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-chkdate\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"returndate\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-rtndate\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}",
"private static String localUnique(){\n\t\tfinal long counterValue = instanceCounter.getAndIncrement();\n\t\tString unique = uniqueTop + String.format(\"%08d\", counterValue);\n\t\treturn unique;\t\t\n\t}",
"protected String generateCommandID()\n {\n String res = new String (_initialID);\n // \"increase\" the ID for the next call\n boolean wasIncr = false;\n for (int i = _initialID.length-1; i>=0; i--)\n {\n if (_initialID[i] >= 'Z')\n {\n _initialID[i] = 'A';\n if ( i > 0 )\n {\n _initialID[i-1]++;\n wasIncr = true;\n }\n }\n else\n {\n if (! wasIncr) _initialID[i]++;\n break;\n }\n }\n return res;\n }",
"private void mergeAB() {\r\n //merge only for the indexes of this global_count\r\n boolean a_end = false;\r\n boolean b_end = false;\r\n boolean start = false;\r\n int a_count = splitA[global_count - 1];\r\n if(a_count == A.length - 1){\r\n a_count = splitA[global_count - 2] + 1;\r\n }\r\n int b_count = splitB[global_count - 1];\r\n if(b_count == B.length - 1){\r\n if(global_count != splitB.length){\r\n start = true;\r\n b_count = 0;\r\n }\r\n else{\r\n b_count = splitB[global_count - 2] + 1;\r\n }\r\n }\r\n if(b_count == -1){\r\n b_end = true;\r\n b_count = 0;\r\n if(splitB[0] == B.length - 1){\r\n b_count = B.length;\r\n }\r\n }\r\n int c_count = a_count + b_count;\r\n while(!a_end || !b_end){\r\n if(a_end){\r\n C[c_count] = B[b_count];\r\n b_count++;\r\n }\r\n else if(b_end){\r\n C[c_count] = A[a_count];\r\n a_count++;\r\n }\r\n //if a > b\r\n else if(A[a_count] > B[b_count]){\r\n C[c_count] = B[b_count];\r\n b_count++;\r\n c_count++;\r\n }\r\n //if a <= b\r\n else{\r\n C[c_count] = A[a_count];\r\n a_count++;\r\n c_count++;\r\n }\r\n if(!start){\r\n if(a_count == splitA[global_count - 1] + 1){\r\n a_end = true;\r\n }\r\n if(b_count == splitB[global_count - 1] + 1){\r\n b_end = true;\r\n }\r\n }\r\n else{\r\n if(a_count == splitA[global_count - 1] + 1){\r\n a_end = true;\r\n }\r\n if(b_count == splitB.length){\r\n b_end = true;\r\n }\r\n }\r\n }\r\n }",
"public String code() {\n\t\treturn (\"ID\"+this.hashCode()).replace(\"-\", \"M\");\n\t}",
"public int generateHashCode() {\n int code = getClass().hashCode();\n boolean temp_fromSource = isFromSource();\n code ^= temp_fromSource ? 1231 : 1237;\n IRId temp_name = getName();\n code ^= temp_name.hashCode();\n List<IRId> temp_params = getParams();\n code ^= temp_params.hashCode();\n List<IRStmt> temp_args = getArgs();\n code ^= temp_args.hashCode();\n List<IRFunDecl> temp_fds = getFds();\n code ^= temp_fds.hashCode();\n List<IRVarStmt> temp_vds = getVds();\n code ^= temp_vds.hashCode();\n List<IRStmt> temp_body = getBody();\n code ^= temp_body.hashCode();\n return code;\n }",
"int compFunction(int code) {\n int a = 1021;\n int b = 11287;\n int p = Prime.primeLarge(sizeBucket);\n //System.out.println(\"code = \"+ code + \", p = \"+p);\n\n int index = (Math.abs(a * code + b) % p) % sizeBucket;\n return index;\n }",
"java.lang.String getCode();",
"java.lang.String getCode();",
"private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }",
"private static ArrayList<Integer> generateBinaryCodeList(ArrayList<ArrayList<Integer>> tMat){\r\n\t\tArrayList<Integer> bcList = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < tMat.size(); i++){\r\n\t\t\tint code = getBinaryCode(tMat, i);\r\n\t\t\tbcList.add(code);\r\n\t\t}\r\n\t\treturn bcList;\r\n\t}"
] |
[
"0.54504335",
"0.48892257",
"0.48739743",
"0.48541468",
"0.4829006",
"0.48092023",
"0.47920692",
"0.4774847",
"0.4774311",
"0.47696483",
"0.47696483",
"0.47696483",
"0.4763567",
"0.47622186",
"0.47431618",
"0.47353852",
"0.471642",
"0.4712267",
"0.47076058",
"0.4707353",
"0.47029215",
"0.46820548",
"0.46256015",
"0.46233195",
"0.4621031",
"0.4620886",
"0.46168408",
"0.4616785",
"0.4614528",
"0.4611647",
"0.4607256",
"0.46049607",
"0.4581551",
"0.45637345",
"0.455694",
"0.4553527",
"0.45458916",
"0.45393816",
"0.45321587",
"0.45308286",
"0.45220453",
"0.45144004",
"0.4513285",
"0.45103928",
"0.45098686",
"0.45018685",
"0.45018685",
"0.45018685",
"0.44884974",
"0.44883186",
"0.4483881",
"0.44824317",
"0.4466678",
"0.44658697",
"0.44633618",
"0.4457683",
"0.44511917",
"0.44461232",
"0.44375673",
"0.44375673",
"0.44375673",
"0.44359198",
"0.44332328",
"0.4428965",
"0.44262657",
"0.44257507",
"0.44257507",
"0.442464",
"0.44184455",
"0.44160813",
"0.44086686",
"0.4406995",
"0.43947348",
"0.4390488",
"0.43862158",
"0.438616",
"0.43750218",
"0.43712002",
"0.4362609",
"0.43596065",
"0.43581244",
"0.43544197",
"0.43427464",
"0.43402988",
"0.43399763",
"0.43376455",
"0.43371305",
"0.43364713",
"0.43323213",
"0.43307394",
"0.433036",
"0.43251815",
"0.43162376",
"0.43155456",
"0.43116513",
"0.4305628",
"0.4305628",
"0.43004724",
"0.42940372"
] |
0.7174728
|
1
|
Method to generate random character.
|
private char generateRandomCharacter(){
String alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Random rand = new Random();
int randomNumber = rand.nextInt(26);
return alphabets.charAt(randomNumber);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}",
"public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}",
"private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }",
"private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }",
"public static String randChar(){\n int n = rand.nextInt(52);\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}",
"public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}",
"protected char randomChar(int length) {\n\n int randomLetter = (int) (Math.random() * length);\n char letter = this.alphabet[randomLetter];\n return letter;\n }",
"public void generateCharacters() {\n for(int i = 0; i < 3; i++) {\n this.characters.add(getRandomCharacter());\n }\n }",
"private char getRandomChar(RandomNumberGenerator random, Transition randomTransition) {\n char randomChar;\n do {\n int diff = randomTransition.getMax() - randomTransition.getMin() + 1;\n randomChar = (char) (random.nextInt(diff) + randomTransition.getMin());\n } while (!StringUtils.isCharValidUtf8(randomChar));\n return randomChar;\n }",
"public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }",
"public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }",
"private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }",
"public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}",
"private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }",
"public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }",
"public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}",
"public static char getRandomUpperCaseLetter(){\n\t\treturn getRandomCharacter('A','Z');\n\t}",
"public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }",
"public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }",
"void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }",
"private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }",
"public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }",
"public static char getDigitCharacter(){\n\t\treturn getRandomCharacter('0','9');\n\t}",
"protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }",
"public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}",
"public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}",
"public void generateCode() {\n\t\tthis.setCharacter();\n\t}",
"public static String randSym(){\n int n = rand.nextInt(rand.nextInt(83 - 52 + 1) + 52);\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public void generateRandomPassword() {\n\t\tString randomPassword = \"\";\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\t\tjava.util.Random random = new java.util.Random();\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t char c = chars[random.nextInt(chars.length)];\n\t\t randomPassword += c;\n\t\t}\n\t\tthis.password = randomPassword;\n\t}",
"public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }",
"public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }",
"private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }",
"public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }",
"public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}",
"private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }",
"public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}",
"public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }",
"public static String getRandomBigChar(int length) {\n\t\tString ALPHABET = \"ABCDEFGHIJKLMOPQRSTUVWXYZ\";\n\t\tfinal SecureRandom RANDOM = new SecureRandom();\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(ALPHABET.charAt(RANDOM.nextInt(ALPHABET.length())));\n\n\t\treturn sb.toString();\n\t}",
"String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}",
"private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }",
"public String generatePassword() {\n List<char[]> allAllowed = new ArrayList<>();\n if (uppercase) {\n allAllowed.add(UPPERCASE);\n }\n if (lowercase) {\n allAllowed.add(LOWERCASE);\n }\n if (numbers) {\n allAllowed.add(NUMBERS);\n }\n if (symbols) {\n allAllowed.add(SYMBOLS);\n }\n\n //Use cryptographically secure random number generator\n Random random = new SecureRandom();\n\n StringBuilder password = new StringBuilder();\n\n // Random chars\n for (int i = 0; i < length - allAllowed.size(); i++) {\n char[] characterType = allAllowed.get(random.nextInt(allAllowed.size()));\n password.append(characterType[random.nextInt(characterType.length)]);\n }\n\n //Ensure password policy is met by inserting required random chars in random positions\n for (char[] category : allAllowed) {\n password.insert(random.nextInt(password.length()), category[random.nextInt(category.length)]);\n }\n return password.toString();\n }",
"public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }",
"static Card generateRandomCard()\n {\n Card.Suit suit;\n char val;\n\n int suitSelector, valSelector;\n\n // get random suit and value\n suitSelector = (int) (Math.random() * 4);\n valSelector = (int) (Math.random() * 14);\n\n // pick suit\n suit = Card.Suit.values()[suitSelector];\n\n // pick value\n valSelector++; // put in range 1-14\n switch(valSelector)\n {\n case 1:\n val = 'A';\n break;\n case 10:\n val = 'T';\n break;\n case 11:\n val = 'J';\n break;\n case 12:\n val = 'Q';\n break;\n case 13:\n val = 'K';\n break;\n case 14:\n val = 'X';\n break;\n default:\n val = (char)('0' + valSelector); // simple way to turn n into 'n' \n }\n return new Card(val, suit);\n }",
"public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }",
"public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setting password size to 6\n IntStream.range(0, password.length).forEach(i -> password[i] = values.charAt(random.nextInt(values.length())));\n return String.valueOf(password);\n }",
"private String getRandomName(){\n return rndString.nextString();\n }",
"public static String captcha(){\n\t\tString captcha=\"\";\n\t\tfor(int i=0; i<8; i+=2){\n\t\t\tcaptcha+=(char)(65+Math.random()*26)+\" \";\n\t\t\tcaptcha+=(char)(97+Math.random()*26);\n\t\t}\n\t\treturn captcha;\n\n\t}",
"protected void generateRandomKey(String randomLetters) {\n\n if (randomKeys == null || randomKeys.length == 0) {\n randomLetters = new String(new char[40]).replace(\"\\0\", randomLetters);\n randomKeys = shuffleArray(randomLetters.toCharArray());\n charCount = 0;\n //Log.d(CLASS_NAME, \"Random key generated\"+ new String(randomKeys));\n }\n\n generatedKey = String.valueOf(randomKeys[charCount++]);\n if (randomKeys.length - 1 == charCount) {\n generatedKey = \"All keys are finished\";\n }\n //setting the generatedkey to textview\n TextView generateKeyForTextView = (TextView) findViewById(R.id.textView_key);\n generateKeyForTextView.setText(generatedKey);\n }",
"public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}",
"public char throwDie() {\r\n return _chars.charAt(RAND.nextInt(DIE_SIDES));\r\n }",
"public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }",
"static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }",
"Chromosome getRandom();",
"public static String generateResetCode() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }",
"public char compChoice ()\n {\n\tint num = (int) (Math.random () * 3) + 1;\n\tif (num == 1)\n\t return 'F';\n\telse if (num == 2)\n\t return 'W';\n\telse\n\t return 'G';\n }",
"public static String randUpper(){\n int n = rand.nextInt(26)*2;\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }",
"public String randomName() {\n return RandomStringUtils.randomAlphabetic( 10 );\n }",
"public synchronized String generateTag() {\n return Integer.toHexString(rand.nextInt());\n }",
"public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }",
"public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }",
"private String generateRandomHexString(){\n return Long.toHexString(Double.doubleToLongBits(Math.random()));\n }",
"public char compChoice ()\n {\n\tint num = (int) (Math.random () * 5) + 1;\n\tif (num == 1)\n\t return 's';\n\telse if (num == 2)\n\t return 'd';\n\telse if (num == 3)\n\t return 'p';\n\telse if (num == 4)\n\t return 'h';\n\telse\n\t return 'w';\n }",
"@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}",
"private String newPassword() {\n\t\tchar[] vet = new char[10];\n\t\tfor(int i=0; i<10; i++) {\n\t\t\tvet[i] = randomChar();\n\t\t}\n\t\treturn new String(vet);\n\t}",
"private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }",
"public String randomString() {\n return new BigInteger(130, random).toString(32);\n }",
"public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}",
"public static String stringGen(int seed) {\n String word = \"\"; // holds random string\r\n String letters = \"abdefghilmnoprstuwxy\"; // usable letters\r\n char letter; // holds current letter that is added to (string)word\r\n \r\n Random randomGen = new Random();\r\n \r\n for(int x = 0; x<50; x++){ // Create a random string of 50 characters\r\n int randomInt = randomGen.nextInt(20);\r\n letter = letters.charAt(randomInt);\r\n word = word + letter;\r\n }\r\n return word; // Finalized random string\r\n }",
"public String getRandomText(int numChars)\n {\n if (myText == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n int randomIndex = myRandom.nextInt(myText.length() - myNum);\n String randomLetter = myText.substring(randomIndex, randomIndex + myNum);\n sb.append(randomLetter);\n for (int k = 0; k < numChars - myNum; k++) {\n ArrayList<String> letters = getFollows(randomLetter);\n if (letters.size() == 0)\n break;\n randomIndex = myRandom.nextInt(letters.size());\n String ourTab = letters.get(randomIndex);\n sb.append(ourTab);\n //updated the random letter by adding a new letter to it\n randomLetter = (sb.toString()).substring((sb.toString()).length()-myNum);\n }\n return sb.toString();\n }",
"public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}",
"T getRandomKey();",
"public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}",
"private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}",
"public int generateKey() {\n SecureRandom secureRandom = new SecureRandom();\n try {\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return secureRandom.nextInt(26);\n }",
"public static String generateRandomKey(int keyLength) {\n String result = \"\";\n Random rand = new Random();\n\n for(int i = 0; i<keyLength; i++) {\n result+=(char)(rand.nextInt(90-65 +1) +65);\n }\n\n return result;\n }",
"public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }",
"public String generate(final int count){\n return RandomStringUtils.random(count, true, true);\n }",
"private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }",
"public static String getRandomString() {\n \tif (random == null)\n \t\trandom = new Random();\n \treturn new BigInteger(1000, random).toString(32);\n }",
"protected static String generateString(int length) {\n String characters = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rnd = new Random(System.nanoTime());\n char[] text = new char[length];\n for (int i = 0; i < length; i++) {\n text[i] = characters.charAt(rnd.nextInt(characters.length()));\n }\n return new String(text);\n }",
"private Random rand()\n\t{\n\t\treturn new Random();\n\t}",
"public String generateMP() {\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~`!@#$%^&*()-_=+[{]}\\\\|;:\\'\\\",<.>/?\";\n\t\t\tString pwd = RandomStringUtils.random(15, 0, 0, false, false, characters.toCharArray(), new SecureRandom());\n\t\t\treturn pwd;\n\t\t}",
"public static String randInt(){\n return String.valueOf(rand.nextInt(10));\n }",
"private String generateRandomString(int length) {\n\n StringBuilder stringBuilder = new StringBuilder(length);\n int index = -1;\n while (stringBuilder.length() < length) {\n index = mRandom.nextInt(TEST_CHAR_SET_AS_STRING.length());\n stringBuilder.append(TEST_CHAR_SET_AS_STRING.charAt(index));\n }\n return stringBuilder.toString();\n }",
"public static String[] generateRegularAlphabet()\n {\n String[] regularAlphabet = new String[26];\n for(int index = 0; index<regularAlphabet.length; index++)\n {\n regularAlphabet[index] = (char)(index+65) + \"\";\n }\n return regularAlphabet;\n }",
"@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t currentLetter = generateRandomLetter();\n\n\t}",
"public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(SHORT_DEF_COUNT);\n }",
"public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }",
"public static String randAlnum(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(62);\n if (n>51){\n result = String.valueOf(n-52);\n }else {\n result = randChar(); //both\n }\n break;\n case 1:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randLower(); //lower\n }\n break;\n case 2:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randUpper(); //upper\n }\n break;\n }\n return result;\n }",
"public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }",
"public static String ranLetterString() {\n ArrayList<Character> ranCharArr = new ArrayList<Character>();\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n for ( int i = 0; i < 5; i++) {\n ranCharArr.add(letter.get(i));\n }\n System.out.println(ranCharArr);\n StringBuilder ranString = new StringBuilder();\n for(char ranChar : ranCharArr) {\n ranString.append(ranChar);\n }\n return ranString.toString();\n }",
"public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }",
"static char[] generateAZLowercaseAndNumbersAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }",
"public static String generateString(String characters, int length) {\r\n Random rng = new Random();\r\n char[] text = new char[length];\r\n for (int i = 0; i < length; i++)\r\n {\r\n text[i] = characters.charAt(rng.nextInt(characters.length()));\r\n }\r\n return new String(text);\r\n }",
"private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}",
"public static String coder(){\n Random randomGen = new Random();\n \n String letter1, letter2 = \"\";\n int random1, random2, random3, random4 = 0;\n String genome = \"\";\n \n int i = 0;\n int first = (int)((Math.random()*26)+97);\n char firstChar = Character.toUpperCase((char) first);\n genome += firstChar;\n \n int second = (int)((Math.random()*26)+97);\n char secondChar = Character.toUpperCase((char) second);\n genome += secondChar;\n \n random1 = randomGen.nextInt(10);\n genome += random1;\n \n random2 = randomGen.nextInt(10);\n genome += random2;\n \n random3 = randomGen.nextInt(10);\n genome += random3;\n \n random4 = randomGen.nextInt(10);\n genome += random4;\n \n return genome;\n }",
"public static synchronized String getRandomPassword() {\n\t\t StringBuilder password = new StringBuilder();\n\t\t int j = 0;\n\t\t for (int i = 0; i < MINLENGTHOFPASSWORD; i++) {\n\t\t \t//System.out.println(\"J is \"+j);\n\t\t password.append(getRandomPasswordCharacters(j));\n\t\t j++;\n\t\t \n\t\t if (j == 4) {\n\t\t j = 0;\n\t\t }\n\t\t }\n\t\t return password.toString();\n\t\t}"
] |
[
"0.83119637",
"0.8062001",
"0.80137897",
"0.7864158",
"0.7791094",
"0.76397085",
"0.7575812",
"0.7389763",
"0.7313268",
"0.7121923",
"0.70740676",
"0.7047098",
"0.69422936",
"0.6935026",
"0.691901",
"0.69156885",
"0.6900763",
"0.68670076",
"0.68560123",
"0.68543357",
"0.6826274",
"0.6814489",
"0.6771282",
"0.67611855",
"0.67056006",
"0.6632878",
"0.6627816",
"0.6620801",
"0.6619882",
"0.66135323",
"0.66026175",
"0.65377635",
"0.65316826",
"0.6523363",
"0.6482529",
"0.6476901",
"0.6461184",
"0.6454411",
"0.64487857",
"0.6425265",
"0.6417494",
"0.6409228",
"0.6404415",
"0.63962376",
"0.6395397",
"0.6370214",
"0.63603264",
"0.6329277",
"0.6315319",
"0.6286069",
"0.62798953",
"0.62696016",
"0.6269273",
"0.6265706",
"0.62625545",
"0.6256184",
"0.6248735",
"0.62349844",
"0.6222571",
"0.62208325",
"0.62153584",
"0.62153584",
"0.6207428",
"0.61976236",
"0.61844736",
"0.61769354",
"0.61653066",
"0.615963",
"0.6138839",
"0.61329955",
"0.61316323",
"0.6126739",
"0.6116603",
"0.6115847",
"0.60909575",
"0.6090809",
"0.6086275",
"0.6084092",
"0.60674566",
"0.60646534",
"0.60609657",
"0.605175",
"0.6045995",
"0.6040612",
"0.60384536",
"0.6034725",
"0.6021858",
"0.6021353",
"0.60199416",
"0.6015921",
"0.60068065",
"0.6000672",
"0.600032",
"0.5999192",
"0.5997617",
"0.59928435",
"0.59853023",
"0.5983022",
"0.5980818",
"0.5970219"
] |
0.84721893
|
0
|
Invoke super.toString() and concatenate bookID, rackNo, edition and authors. For Example: Title: THE HUNGER GAMES, Available: false, BookID: NWM_B_1, RackNo: EB.1.2011, Edition: 2.0, Authors: Arml, D. L., Tan, P., Teck, T.
|
@Override
public String toString() {
String authorNames="";
for(Author a:authors){
authorNames+=", "+a.toString();
}
return super.toString()
+", BookID: "+bookID
+", RackNo: "+rackNo
+", Edition: "+edition
+", Authors: "+(authors.length>0?authorNames.substring(2):"");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String toString() {\n\treturn \"--------------------\" +\n\t\t\t\"\\n ID: \" + this.book_id +\n\t\t\t\"\\n Title: \" + this.title +\n\t\t\t\"\\n Author: \" + this.author +\n\t\t\t\"\\n Year: \" + this.year +\n\t\t\t\"\\n Edition: \" + this.edition +\n\t\t\t\"\\n Publisher: \" + this.publisher +\n\t\t\t\"\\n ISBN: \" + this.isbn +\n\t\t\t\"\\n Cover: \" + this.cover +\n\t\t\t\"\\n Condition: \" + this.condition +\n\t\t\t\"\\n Price: \" + this.price +\n\t\t\t\"\\n Notes: \" + this.notes +\n\t\t\t\"\\n--------------------\";\n}",
"@Override\n public String toString() {\n return bookName + \"-\" + authorName;\n }",
"public String toString(){\r\n\t\tString a, b, c, d;\r\n\r\n\t\ta = \"Book ID: \" + (new Integer(id)).toString() + \"\\n\";\r\n\t\tb = \"Book Title: \" + title + \"\\n\";\r\n\t\tc = \"Book Author: \" + author + \"\\n\";\r\n\t\td = \"Book Date: \" + dateToString(dateOfPublication) + \"\\n\";\r\n\t\t\r\n\t\treturn a + b + c + d;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getISBN() + \", \" + getBookType() + \", \" + getTitle() + \", \" + getLanguage() + \", \" + getGenre() + \", \" + getReleaseDate() + \", \" + getPrice() + \", \" + getQuantity() + \", \" + getPageCount() + \" pages, \" + getCondition() + \" condition\";\r\n\t}",
"public String toString() {\n return \"{ isbn: '\" + this.isbn + \"', title:'\" + this.title + \"', year: '\"\n + this.year + \"'}\";\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Book[ID: \" + this.id +\", Title: \" + this.title + \n\t\t\t\t\", Author: \" + this.author + \"]\";\n\t}",
"public String toString() {\n\t\treturn this.title + \", \" + this.isbn;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"BookItem [title=\" + title + \", author=\" + author + \", year=\" + year + \", pageNumber=\" + pageNumber\n\t\t\t\t+ \", section=\" + section + \", price=\" + price + \", stock=\" + stock + \"]\";\n\t}",
"@Override\n public String toString() {\n return \"Book:\" + \" \" + itemTitle + \" \" + itemPath + \" \" + itemYear + \" \" + itemAuthor;\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb;\n\t\t\n\t\tsb = new StringBuilder();\n\t\t\n\t\t// start with the title\n\t\tsb.append('\"');\n\t\tsb.append(title);\n\t\tsb.append('\"');\n\t\t\n\t\t// then add the authors\n\t\tsb.append(\" by \");\n\t\tObject[] authors = this.authors.toArray();\n\t\tfor(Object author : authors) {\n\t\t\tsb.append(author);\n\t\t\tsb.append(\", \");\n\t\t}\n\t\tsb.delete(sb.length() - 2, sb.length());\n\t\t\n\t\t// finally, add the editor (if they exist)\n\t\tif(editor != null) {\n\t\t\tsb.append(\" and edited by \");\n\t\t\tsb.append(editor);\n\t\t}\n\t\n\t\t// and return this string\n\t\treturn sb.toString();\n\t}",
"public String toString() {\n\t\tString str = \"The specs of this book are: \";\n\t\tstr += \"\\n\\tTitle: \" + title;\n\t\tstr += \"\\n\\tAuthor: \" + author;\n\t\treturn str;\n\t}",
"public String toString()\n {\n String str = \"The specs of this book are: \";\n str += \"\\n\\t Title: \" + title;\n str += \"\\n\\t Author: \" + author;\n \n return str;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"ISBN13: \" + this.isbn13 + \"; Book: \" + this.title + \", Author: \"\n\t\t\t\t+ this.authors + \", Original Publication Year: \"\n\t\t\t\t+ this.original_publication_year + \", Language: \"\n\t\t\t\t+ this.language_code + \", Average Rating: \"\n\t\t\t\t+ this.average_rating + \", Cover Type: \" + this.cover_type\n\t\t\t\t+ \", Pages: \" + this.pages;\n\t}",
"public String toString(){\n\t\treturn \"Title: \" + super.getTitle() + \", Copies Available: \" + super.getCopiesAvailable()+\", Artist: \" + artist + \", Songs: \" + songs;\n\t}",
"public String toString(){\n return \"Title: \\\"\" + title + \"\\\", author: \" + author + \", (\" + year + \")\";\n }",
"@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder(\"Book{\");\n sb.append(\"id=\").append(id);\n sb.append(\", name='\").append(name).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"@Override\n public String toString() {\n String authorsList = \"\";\n for (Author a : authors) {\n String temp = \", \";\n if (a.equals(authors[authors.length - 1])) {\n temp = \"\";\n }\n authorsList += a.toString() + temp;\n }\n\n return \"\\n\" + super.toString() + \", BookID: \" + bookID + \", RackNo: \"\n + rackNo + \", Edition: \" + edition + \", Authors: \" + authorsList;\n }",
"public String toString(){\n\t\treturn \"Title: \" + title + \"\\nAuthor: \" + author + \"\\nSubject: \" + subject + \"\\nisbn: \" + \n\t\t\t\t\tisbn + String.format( \"\\nPrice: $%.2f\", cost );\n\t}",
"public String toString()\r\n\t{\r\n\t\tString s = \"Volume Name: \" + volumeName + \" \" + \"Number of Books: \" + numberOfBooks + \"\\n\";\r\n\r\n\t\ts = s + getBookArray();\r\n\t\treturn s;\r\n\t}",
"@Override\n public String toString() {\n return this.title + \" (\" + this.author.getName() + \"), \" + this.year;\n }",
"public String toString() {\r\n\t\treturn \"** Book \" + id + \"**\\nPlayground ID:\" + getPlaygroundID() + \"\\nPlayer ID: \" + getPlayerID() + \"\\nHour: \" + hour.toString() + \"\\nTotal Cost: \" + getCost() + \"\\nStatus: \" + status.toString();\r\n\t}",
"public String toString() {\r\n return getTitle() + \" - \" + getYear() + \" - \" + getThumbnailPath() + \" - \" + getNumCopies()\r\n + \" - \" + manufacturer + \" - \" + model + \" - \" + operatingSystem;\r\n }",
"@Override\n public String toString() {\n return \"REVIEW FOR: \" +\n \"Book Title: '\" + title + '\\'' +\n \" Author: '\" + author + '\\'';\n\n }",
"public String toString() {\r\n return books.toString();\r\n }",
"@Override\n public String toString() {\n return \"Books{\" +\n \"bookTitle='\" + bookTitle + '\\'' +\n \", bookAuthor='\" + bookAuthor + '\\'' +\n \", bookPrice=\" + bookPrice +\n \", quantity=\" + quantity +\n '}';\n }",
"@Override\n public String toString() {\n return super.toString() +\n \"\\nChemical Name: \" + chemicalName +\n \"\\nHazards: \" + hazards +\n \"\\nPrecautions: \" + precautions +\n \"\\nFirst Aid: \" + firstAid +\n \"\\nUses: \" + uses;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Title of Game: \" + super.getTitleOfGame()\n\t\t\t\t+ \"\\nPublisher: \" + super.getPublisher()\n\t\t\t\t+ \"\\nDeveloper: \" + super.getDeveloper()\n\t\t\t\t+ \"\\nDirector: \" + super.getDirector()\n\t\t\t\t+ \"\\nProducer: \" + super.getProducer()\n\t\t\t\t+ \"\\nComposer: \" + super.getComposer();\t\n\t}",
"public String toString(){\r\n return super.toString() + \",\" +\r\n this.getAuthor() + \",\" +\r\n this.getRating();\r\n }",
"public String toString(){\n\t\treturn name + \": \" + books + \" books checked out\";\n\t}",
"public String toString() {\n\t\t\r\n\t\treturn String.format(\"N%s. Title is %s, employer is %s,\"\r\n\t\t\t\t+ \"employee grade is %d, salary is %d\",super.toString(), getTitle(), employer, \r\n\t\t\t\temployeeGrade, salary);\r\n\t}",
"public String toStringTwo() {\n return \"Book Title: '\" + title + \"'\\n\" +\n \"Author: '\" + author + \"'\\n\" +\n \"Rating (Out of 5): '\" + rating + \"'\\n\" +\n \"Review: '\" + review + \"'\\n\";\n }",
"@Override\n\tpublic String toString() {\n\t\tSystem.out.println(\"_____Fiction Book_____\");\n\t\treturn \"Title :\" + getTitle() + \"\\nPrice :$\" + getPrice() + \"\\n\";\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", bookid=\").append(bookid);\n sb.append(\", bookname=\").append(bookname);\n sb.append(\", author=\").append(author);\n sb.append(\", printwhere=\").append(printwhere);\n sb.append(\", printdate=\").append(printdate);\n sb.append(\", introduction=\").append(introduction);\n sb.append(\", note=\").append(note);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public String toString() {\n\t\treturn (\"\\\"\" + title + \"\\\" by \" + band);\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\tint qty = quantity;\n\n\t\tif ( qty > 999 )\n\t\t\tqty = 999;\n\n\t\treturn Utility.pad(title, TITLE_LENGTH) + ' ' + Utility.pad(qty, QUANTITY_LENGTH) + ' ' + status.getCode() + ' ' + Utility.pad(price, PRICE_LENGTH);\n\t}",
"public String toString(){\n\t\treturn this.title+\" av \"+this.painter+\", \"+this.year;\n\t\t\n\t}",
"public String toString() {\n String ret = \"\\n*****\" + title + \"*****\" + \"\\n\" + description + \"\\nBusiness Contact: \" + contact\n + \"\\nSupply List: \";\n for (String supply : supplies) {\n ret += \"\\n-\" + supply;\n }\n ret += \"\\nPrice: $\" + price + \"\\n\";\n return ret;\n }",
"public String toString(){\n\t\tString s1 = \"\\n======= \" + title + \" =========\";\n\t\tString s3 = \"\\n========================================\\n\";\n\t\treturn s1 + \"\\nTitle: \" + title + \"\\nArtist Name: \" + artistName + \"\\nGenre: \" + genre + \n\t\t\t\t\"\\nRating: \" + rating + \"\\nLength: \" + time + s3;\n\t}",
"public String toString() {\n return getName() + \", \" + getAuthor() + \", \" + getPrice();\n }",
"public String toString()\r\n\t{\r\n\t\treturn String.format(\"%6d \" + super.getDescription() + \" \" +\r\n\t\t\t\tsuper.getPriority() + \" \" + \"%5d \" + super.getStatus() + \r\n\t\t\t\tdate, super.getIDNumber(), super.getOrder()); //make the Strings both a set length somehow\r\n\t}",
"public String toString(){\n StringBuffer sb = new StringBuffer();\n sb.append(\"*****\" + title + \"*****\");\n sb.append( \"\\n\" + description + \"\\n\");\n sb.append(\"Business Contact: \" + contact + \"\\n\");\n sb.append(\"Supply List: \\n\");\n for (String s : supplies){\n sb.append(\"- \"+ s + \"\\n\");\n\n }\n sb.append(\"Price: $\" + price + \"\\n\");\n return sb.toString();\n }",
"@Override\r\n public String toString() {\r\n return \"Biography [Author's First Name: \"+this.getAuthorFirstName()+\", Author's Last Name: \"+this.getAuthorLastName()+\", \" +\r\n \"Book Title: \"+this.getBookTitle()+\", Published Year: \"+this.getPublishedYear()+\", Subject: \"+this.getSubject()+\"]\";\r\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(\"Author: \" + authorUsername + \"; \");\n\t\tresult.append(\"Given Rating: \" + givenRating + \"%; \");\n\t\tresult.append(\"Text: \" + reviewText + \"; \");\n\t\tresult.append(\"Date: \" + reviewDate + \";\");\n\t\treturn result.toString();\n\t}",
"public String toString(){\n\t\t\tString x = (roomnumber + \" \" + nop + \" \" + equipment + \" \" + price + \" \" + priceoffer + \" \" + rating);\n\t\t\treturn x;\n\t\t}",
"public String toString()\n {\n return String.format(\"%s\\tRank: %s\\tSerialNumber: %s\"\n , super.toString()\n , getRank()\n , getSerialNumber());\n }",
"@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .addValue(this.id)\n .addValue(this.name)\n .addValue(this.author)\n .addValue(this.description)\n .addValue(this.pictureOfCover)\n .toString();\n }",
"public String toString() {\n\t\t//TO DO\n\t\tStringBuilder s = new StringBuilder();\n\t\t\n\t\tNode<ArrayList<Book>> current = head;\n\t\t\n\t\twhile (current != null) {\n\t\t\t//System.out.print(current.letter );\n\t\t\t\n\t\t\ts.append(current.letter + \":\");\n\t\t\tfor(int i = 0; i < current.data.size(); i++) {\n\t\t\t\ts.append(current.data.get(i).getTitle());\n\t\t\t\tif (i != current.data.size() -1 ) {\n\t\t\t\t\ts.append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//s.append(current.data.toString());//current.data is an array list of books\n\t\t\t\n\t\t\ts.append(System.getProperty(\"line.separator\"));\n\t\t\tcurrent = current.next;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn s.toString();\n\n\t}",
"@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }",
"public String toString() {\n return this.title + \"(\" + this.year + \")\\n\\t\" +\n \"Author: \" + this.author + \"\\n\\t\" +\n \"Pg. \" + this.pagesRead + \"/\" + this.pages;\n }",
"public String toString(){ \n\t\tString s = String.format(\"%s: %d, rating: %f, price:%f\", TITLE, YEAR_RELEASED, user_rating, getPrice());\n\t\treturn s; \n\t}",
"@Override\r\n public String toString() {\n return String.format(\"Title: %s%nPrice: %.2f%nDescription: %s%nRelease date: %s\",\r\n this.getTitle(), this.getPrice(), this.getDescription(), this.releaseDate);\r\n }",
"@Override String toString();",
"@Override\r\n\tpublic String toString() {\r\n\t\tString record;\r\n\t\trecord = getID() + \":\" + getYear() + \":\" + getMake() + \":\" + getModel() + \":\" + getNumOfSeats() + \":\"\r\n\t\t\t\t+ getStatus() + \":\" + getImageName();\r\n\t\treturn record;\r\n\t}",
"public String toString() {\n String str = \"\";\n str += getTitle() + \",\" + \" \" + getName() + \",\";\n str += \" \" + getCompletionTime() + \",\" + \" \" + getImportance() + \",\";\n str += \" \" + getUrgency() + \",\" + \" \" + getStatus();\n return str;\n }",
"public String toString(){\r\n return \"Breed: \" + this.Breed + \"\\nName: \"+ super.name + \"\\nPrimary Color: \" +this.PrimaryColor + \"\\nSize: \" + this.Size + \"\\nAge: \" + super.age;\r\n }",
"public String toString() {\n\t\treturn \"Lend ID: \" + getID() + \" \\n\" + myBook.toString() +\"\\n \" + \"due: \" + getReturnDate();\n\t}",
"@Override\n public String toString() {\n String newSubject = subject.trim();\n String newTitle = title.trim();\n String newBuilding = building.trim();\n String newDayTime = dayTime.trim();\n String newFaculty = faculty.trim();\n if (subject.length() > 5) {\n newSubject = subject.substring(0, 29);\n }\n if (title.length() > 33) {\n newTitle = title.substring(0, 29);\n }\n\n if (dayTime.length() > 34) {\n newDayTime = dayTime.substring(0, 20);\n }\n if (building.length() > 6) {\n newBuilding = building.substring(0, 29);\n }\n if (faculty.length() > 20) {\n newFaculty = faculty.substring(0, 16);\n }\n\n return String.format(\"%-11s%-38s%-34s%-15s%-10s%-25s\", \"Sub: \" + newSubject,\n \"Title: \" + newTitle, \" Day/Time: \" + newDayTime, \" Bldg: \" + newBuilding,\n \"Rm: \" + newRoom + oldRoomLetter, \" Fac: \" + newFaculty);\n\n }",
"public String toString(){\n\t\t \n\t\treturn this.scholarship + \": \" + this.student + \", Date Submitted: \" + this.date + \", GPA: \" + this.gpa + \", Education Level: \" + this.edulvl + \", Priority: \" + this.priority + \", Status: \" + this.status;\n\t}",
"public String toString() {\t\t\n\t\treturn (\"Caption: \" + this.caption + \", Filename: \" + this.filename + \", Rating: \" + this.rating);\n\t}",
"public String toString() {\n\t\treturn super.toString() + \"\\n Genre: \" + this.genre +\n\t\t\t\t\"\\n Directors: \" + this.directors +\n\t\t\t\t\"\\n Cast: \" + this.cast;\n\t}",
"public String toString() {\r\n\t\treturn officialID + \", \" + officialName;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}",
"public String toString(){\n\n\t\t/*\n\t\t *Puts the rental and due dates into two nicely formated\n\t\t *Strings.\n\t\t */\n\t\tdf.setCalendar(bought);\n\t\tString jazz = df.format(bought.getTime());\n\t\tdf.setCalendar(boughtReturn);\n\t\tString jazz2 = df.format(boughtReturn.getTime());\n\n\t\t/*\n\t\t * Returns the components of the DVD class. Categories are \n\t\t * highlighted in red using html codes.\n\t\t */\n\t\treturn \"<html><font color='red'>Name: </font>\" + \n\t\t getNameofRenter() + \", <font color='red'>Title: </font>\" + \n\t\tgetTitle() + \", <font color='red'>Rented On: </font>\"+ jazz + \n\t\t\", \" + \"<font color='red'>Due Back On: </font>\"+ jazz2;\n\n\t}",
"public String toString () {\r\n\t\t\r\n\t\treturn \"Title: \"+this.title +\", Company: \"+company+\", Annual Salary: \"+annualSalary;\r\n\t}",
"public String toString() {\n\t\treturn super.toString() + \"\\nLevel: \" + getTitle(level) + edu.toString();\n\t}",
"public String toString(){\n return \"Title: \" + title + \"\\r\\nThe release date: \" + releaseDate.toString() + \"\\r\\nThe length: \" + length + \" min\";\n }",
"@Override public String toString() {\n return(trackingNumber + \" \" + type + \" \" + specification + \" \" + mailing + \" \" + weight + \" \" + volume);\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuffer result = new StringBuffer();\n\t\t\n\t\tresult.append(\"orderYear:\" + this.orderYear);\n\t\tresult.append(\"clashDate:\" + this.clashDate);\n\t\tresult.append(\"clashBirthYear:\" + this.clashBirthYear);\n\t\tresult.append(\"name:\" + this.name);\n\t\tresult.append(\"householder:\" + this.householder);\n\t\t\n\t\treturn result.toString();\n\t}",
"public String toString() {\n return title + \" \" + firstName + \" \" + lastName;\n }",
"public String toString() {\r\n\t\treturn \"Student ID: \" + this.studentID + \"\\n\" + \r\n\t\t\t\t\"Name and surname: \" + this.name + \"\\n\" + \r\n\t\t\t\t\"Date of birth: \" + this.dateOfBirth + \"\\n\" + \r\n\t\t\t\t\"University:\" + this.universityName + \"\\n\" + \r\n\t\t\t\t\"Department code: \" + this.departmentCode + \"\\n\" + \r\n\t\t\t\t\"Department: \" + this.departmentName + \"\\n\" +\r\n\t\t\t\t\"Year of enrolment: \" + this.yearOfEnrolment;\r\n\t}",
"public String toString(){\n return \"Available information for this student: \" + fname + \" \" + lname + \", \" + college + \", \"\n + major + \" major, GPA: \" + gpa;\n }",
"public String toString() {\r\n return this.title + \" by \" + this.artist;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s,%s,%s,%s\",path, title, shortDescription, fullDescription);\n\t}",
"public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(title + \" \");\n builder.append(artist + \" \");\n builder.append(year + \" \");\n builder.append(genre + \" \");\n // majors\n builder.append(\"CS Heard \" + heardPercentCS);\n builder.append(\" CS Like \" + likePercentCS);\n builder.append(\" Math Heard \" + heardPercentMath);\n builder.append(\" Math Like \" + likePercentMath);\n builder.append(\" Eng Heard \" + heardPercentEng);\n builder.append(\" Eng Like \" + likePercentEng);\n builder.append(\" Other Heard \" + heardPercentOther);\n builder.append(\" Other Like \" + likePercentOther);\n // regions\n builder.append(\" SE Heard \" + heardPercentSE);\n builder.append(\" SE Like \" + likePercentSE);\n builder.append(\" NE Heard \" + heardPercentNE);\n builder.append(\" NE Like \" + likePercentNE);\n builder.append(\" US Heard \" + heardPercentUS);\n builder.append(\" US Like \" + likePercentUS);\n builder.append(\" Out Heard \" + heardPercentOut);\n builder.append(\" Out Like \" + likePercentOut);\n // hobbies\n builder.append(\" Music Heard \" + heardPercentMusic);\n builder.append(\" Music Like \" + likePercentMusic);\n builder.append(\" Sports Heard \" + heardPercentSports);\n builder.append(\" Sports Like \" + likePercentSports);\n builder.append(\" Art Heard \" + heardPercentArt);\n builder.append(\" Art Like \" + likePercentArt);\n builder.append(\" Reading Heard \" + heardPercentReading);\n builder.append(\" Reading Like \" + likePercentReading + \"\\n\");\n return builder.toString();\n }",
"@Override\n public String toString() {\n return getAuthor().getName();\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\treturn builder.append(title)\n\t\t\t.append(\"(\")\n\t\t\t.append(year)\n\t\t\t.append(\", \")\n\t\t\t.append(duration)\n\t\t\t.append(\" mn)#\")\n\t\t\t.append(id)\n\t\t\t.toString(); // finalize String result\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getA_title() + \",\" + getA_check() + \",\" + \n\t\t\t\tgetA_startdate() + \",\"+ getA_enddate() + \",\" + getSel_Id()+\",\" + getRemainDate();\n\t}",
"public String toString(){\n return String.format(\"%s, %s, %s, %s, %s, %s\",make,model,variant, year, quantity,price);\n }",
"public String toString() {\n\t\tif (super.toString().length() == 2)\n\t\t\treturn super.toString().substring(1);\n\t\telse\n\t\t\treturn super.toString();\n\t}",
"@Override\r\n public String toString() {\r\n String out = \"\";\r\n out += \"ID :\" + ID + AdsConstants.NEWLINE \r\n + \"title : \" + title + AdsConstants.NEWLINE \r\n + \"price : \" + price + AdsConstants.NEWLINE\r\n + \"price/m2 : \" + pricePerMeter + AdsConstants.NEWLINE\r\n + \"area : \" + area + AdsConstants.NEWLINE\r\n + \"city : \" + city + AdsConstants.NEWLINE\r\n + \"district : \" + district + AdsConstants.NEWLINE\r\n + \"street : \" + street + AdsConstants.NEWLINE\r\n + \"rooms : \" + numBedrooms + AdsConstants.NEWLINE\r\n + \"bathrooms : \" + numBathrooms + AdsConstants.NEWLINE\r\n + \"floor : \" + floor + AdsConstants.NEWLINE\r\n + \"floors in building : \" + numFloors + AdsConstants.NEWLINE\r\n + \"construction year : \" + constructionYear + AdsConstants.NEWLINE\r\n + \"description : \" + description + AdsConstants.NEWLINE\r\n + \"link : \" + link + AdsConstants.NEWLINE;\r\n \r\n return out;\r\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"(\" + this.make + \", \" + this.yearMake + \", \" + this.numOfDoors + \", \" + this.price + \")\";\r\n\t}",
"@Override\r\n\tpublic String toString(){\r\n\t\treturn String.format(\"%s, %s, %s\", getSongName(), getArtist(), getAlbum());\r\n\t}",
"@Override\n public String toString()\n {\n return super.toString() + \" \" + this.extended + \" \" + this.price + \n \" \" + this.number;\n }",
"@Override\n\tpublic String toString (int printText){\n\t\tString printOut = \"\";\n\n\t\tif(printText != 2){\n\t\t\tprintOut = super.program + \" \" + super.year + \" \" + super.average;\n\t\t\t\n\t\t\tif(printText == 1 && this.isPhD){//print the text version of the phd status\n\t\t\t\tprintOut += \" \" + this.supervisor + \" PhD \" + this.undergraduateSchool;\n\t\t\t}else if(printText == 1 && !this.isPhD){\n\t\t\t\tprintOut += \" \" + this.supervisor + \" Masters \" + this.undergraduateSchool;\n\t\t\t}\n\n\t\t\tif(printText == 0 && this.isPhD){//print the number version of the phd status\n\t\t\t\tprintOut += \" \" + this.supervisor + \" 1 \" + this.undergraduateSchool;\n\t\t\t}else if(printText == 0 && !this.isPhD){\n\t\t\t\tprintOut += \" \" + this.supervisor + \" 0 \" + this.undergraduateSchool;\n\t\t\t}\n\n\t\t\tprintOut += \" \" + this.lastName;\n\t\t}else{\n\t\t\tprintOut = super.toString(printText);//if the printText is equal to 2, concat only the program name, year, and last name\n\t\t}\n\t\treturn printOut;\n\t}",
"@Override\n public String toString(){\n \n return String.format(\"%-8d%-10s%-10s%-10s %.2f\\t%-6b\", getCustNumber(), getFirstName(), getSurname(),\n getPhoneNum(), getCredit(), canRent);\n }",
"public String toString()\n {\n\n StringBuilder sb=new StringBuilder(ID+\":\");\n // sb.append(ID + \":\");\n //sb.append(\"\\n***************************************************\");\n sb.append(title +\"#\");\n sb.append(ASIN +\"#\");\n sb.append(salesrank +\"#\");\n sb.append(avgRating +\"#\");\n sb.append(productCategories +\"\\n\");\n //sb.append(\"\\n**************************************************\\n\\n\");\n return sb.toString();\n }",
"public String toString() {\n return(\"Name: \" + name + \"\\n\" + \"Year: \" + year);\n }",
"public String toString() {\n StringBuilder str = new StringBuilder(); \n str.append(\"NAME\\t TICKER\\t PRICE\\t # SHARES\\t\\n\"); \n str.append(String.format(\"%1$-\" + 15 + \"s\", \"NAME\") +\n String.format(\"%1$-\" + 15 + \"s\", \"TICKER\") +\n String.format(\"%1$-\" + 15 + \"s\", \"PRICE\") +\n String.format(\"%1$-\" + 15 + \"s\", \"# SHARES\")); \n /*\n for (Stock s : stocks) {\n str.append(String.format(\"%1$-\" + 15 + \"s\", s.getName()) +\n String.format(\"%1$-\" + 15 + \"s\", s.getTicker()) + \n String.format(\"%1$-\" + 15 + \"s\", s.getCurrentPrice().toString()) + \n String.format(\"%1$-\" + 15 + \"s\", s.getVolume())); \n str.append(\"\\n\");\n }\n */\n return str.toString(); \n }",
"@Override\n public String toString() {\n String representation;\n representation = \"Genus: \" + genus + \"\\n\";\n representation += \"Species: \" + species + \"\\n\";\n representation += \"Age in weeks: \" + ageInWeeks + \"\\n\";\n representation += \"Is female?\" + isFemale + \"\\n\";\n representation += \"Generation number: \" + generationNumber + \"\\n\";\n representation += \"IsAlive: \" + isAlive + \"\\n\";\n representation += \"Health coefficient: \" + healthCoefficient + \"\\n\";\n representation += \"Identification number: \" + identificationNumber + \"\\n\";\n\n return representation;\n }",
"public String toString() {\n String str = \"Manufacturer: \" + manufacturer + \"\\n\";\n str += \"Serial Number: \" + serialNumber + \"\\n\";\n str += \"Date: \" + manufacturedOn + \"\\n\";\n str += \"Name: \" + name;\n return str;\n }",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }",
"@Override\n public String toString(){\n return title + \"\\n\" + date;\n }",
"public String toString(){\r\n return \"Title: \" + title + \"\\nBody: \" + body;\r\n }",
"@Override\r\n public String toString() \r\n {\r\n return (String.format(\"#%d\\t %-20s\\t %-10s\\n\", this.studentId, this.studentName, this.studentMajor));\r\n }",
"public String toString() {\n\t\treturn(\"\\nComputer Info:\" +\n\t\t\t \"\\nBrand: \" + brand +\n\t\t\t \"\\nModel: \" + model +\n\t\t\t \"\\nSN: \" + SN +\n\t\t\t \"\\nPrice: \" + price);\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}",
"public String toString() {\r\n String string; //a string is created to hold the information about the student\r\n string = \"Name: \" + getName(); //the name is added to the string\r\n string = string + \", Gender: \" + getGender(); //gender is added\r\n string = string + \", Age: \" + getAge(); //age is added\r\n string = string + \", Courses enroled: \";\r\n if (getCourse().length == 0) {\r\n string = string + \"None\"; //returns none if the student is not enroled into a course\r\n } else {\r\n for (Course course : getCourse())\r\n string = string + course.getSubject().getDescription() + \" \"; //adds the subject description if theyre in a course\r\n }\r\n string = string + \", Certificates: \";\r\n if (getCertificates().size() == 0) {\r\n string = string + \"None\"; //displays none if the student has no certificates\r\n }\r\n for (Integer id : getCertificates().toArray(new Integer[getCertificates().size()])) {\r\n string = string + id + \" \"; //adds each id of each course completed\r\n }\r\n return string + \"\\n\";\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(rank.toString());\n sb.append(\" \");\n sb.append(suit.toString());\n\n return sb.toString();\n }",
"public String toString() {\n \tStringBuffer result = new StringBuffer();\n \t\n \tresult.append(\"\\n# artists=\");\n \tresult.append(numArtistsInCollection);\n \tresult.append(\"\\navg. artist rating=\");\n \tresult.append(avgArtistRating);\n \tresult.append(\"\\n# artist ratings=\");\n \tresult.append(numRatedArtists);\n\n \tresult.append(\"\\n# labels=\");\n \tresult.append(numLabelsInCollection);\n \tresult.append(\"\\navg. label rating=\");\n \tresult.append(avgLabelRating);\n \tresult.append(\"\\n# label ratings=\");\n \tresult.append(numRatedLabels);\n \t\n \tresult.append(\"\\n# releases=\");\n \tresult.append(numReleasesInCollection);\n \tresult.append(\"\\navg. release rating=\");\n \tresult.append(avgReleaseRating);\n \tresult.append(\"\\n# release ratings=\");\n \tresult.append(numRatedReleases);\n \t\n \tresult.append(\"\\n# songs=\");\n \tresult.append(numSongsInCollection);\n \tresult.append(\"\\navg. song rating=\");\n \tresult.append(avgSongRating);\n \tresult.append(\"\\n# song ratings=\");\n \tresult.append(numRatedSongs);\n\n \tresult.append(\"\\nstyle preferences=\");\n \tresult.append(stylePreferences.toString(Database.getStyleIndex()));\n \tresult.append(\"\\ntag preferences=\");\n \tresult.append(tagPreferences.toString(Database.getTagIndex()));\n\n \tresult.append(\"\\nartist preferences=\");\n \tresult.append(artistPreferences.toString(Database.getArtistIndex()));\n \tresult.append(\"\\nlabel preferences=\");\n \tresult.append(labelPreferences.toString(Database.getLabelIndex()));\n \tresult.append(\"\\nrelease preferences=\");\n \tresult.append(releasePreferences.toString(Database.getReleaseIndex()));\n \tresult.append(\"\\nsong preferences=\");\n \tresult.append(songPreferences.toString(Database.getSongIndex()));\n \t\n \treturn result.toString();\n }"
] |
[
"0.7968008",
"0.7872416",
"0.7780897",
"0.7692864",
"0.76187277",
"0.7570063",
"0.7543679",
"0.754252",
"0.7541643",
"0.75002235",
"0.7467412",
"0.7454235",
"0.7422389",
"0.7393628",
"0.7393245",
"0.7326148",
"0.72939575",
"0.72874534",
"0.72657716",
"0.7148052",
"0.7110583",
"0.7100438",
"0.7041608",
"0.7041304",
"0.7029309",
"0.7017366",
"0.70143074",
"0.70141894",
"0.70023245",
"0.6962845",
"0.6941072",
"0.68962765",
"0.68894655",
"0.68625885",
"0.6854692",
"0.6854181",
"0.68302196",
"0.68262804",
"0.68162555",
"0.681175",
"0.6810124",
"0.67850375",
"0.6761179",
"0.6753453",
"0.6737469",
"0.6737043",
"0.67301047",
"0.67296237",
"0.67182416",
"0.67134404",
"0.66943717",
"0.6687942",
"0.6687926",
"0.6681731",
"0.6661113",
"0.66575974",
"0.66517603",
"0.66488016",
"0.6639745",
"0.6609005",
"0.65984505",
"0.6584003",
"0.6579224",
"0.6577835",
"0.6576132",
"0.65757155",
"0.65673053",
"0.65317243",
"0.65261495",
"0.6524078",
"0.65133375",
"0.65091246",
"0.6503817",
"0.65004283",
"0.64981794",
"0.64893943",
"0.6488503",
"0.64729834",
"0.64544845",
"0.64537966",
"0.64516413",
"0.6450251",
"0.64501655",
"0.6445889",
"0.64450324",
"0.64343756",
"0.6430384",
"0.64232796",
"0.64157295",
"0.6415481",
"0.64112586",
"0.6405051",
"0.64005244",
"0.6397593",
"0.63959175",
"0.63921183",
"0.6381068",
"0.63786495",
"0.6376527",
"0.637592"
] |
0.7769714
|
3
|
You are allowed to include this File in your Download, as i will not change it.
|
public interface IGregTechDeviceInformation {
/**
* Is this even a TileEntity which allows GregTech Sensor Kits?
* I need things like this Function for MetaTileEntities, you MUST check this!!!
* Do not assume that it's a Information returning Device, when it just implements this Interface.
*/
public boolean isGivingInformation();
/**
* Up to 8 Strings can be returned.
* Note: If you insert "\\\\" in the String it tries to translate seperate Parts of the String instead of the String as a whole.
* @return an Array of Information Strings. Don't return null!
*/
public String[] getInfoData();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean isDownloadable() {\n return true;\n }",
"@Override\r\n\tpublic void download() {\n\t\t\r\n\t}",
"public void download() {\n }",
"@Override\n\tpublic void fileDownLoad(HttpServletResponse response, String file_name) {\n\t\t\n\t}",
"@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}",
"void downloadingFile(String path);",
"void sendFile() {\r\n\t\t// 특정 클라이언트에게 파일을 보냄\r\n\t}",
"@Override\n public void fileDownLoad(HttpServletResponse response, String path) {\n }",
"void fileDownloaded(String path);",
"@Override\r\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\n File blueCheck = new File(request.getParameter(\"filename\"));\r\n String pathToWeb = getServletContext().getRealPath(\"/\" + blueCheck);\r\n\r\n ServletContext cntx= request.getServletContext();\r\n String mime = cntx.getMimeType(pathToWeb);\r\n\r\n response.setContentType(mime);\r\n try {\r\n File file = new File(pathToWeb);\r\n response.setContentLength((int) file.length());\r\n\r\n FileInputStream in = new FileInputStream(file);\r\n OutputStream out = response.getOutputStream();\r\n\r\n // Copy the contents of the file to the output stream\r\n byte[] buf = new byte[1024];\r\n int count;\r\n while ((count = in.read(buf)) >= 0) {\r\n out.write(buf, 0, count);\r\n }\r\n out.close();\r\n in.close();\r\n\r\n response.setHeader(\"Content-Transfer-Encoding\", \"binary\");\r\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + blueCheck.getName() + \"\\\"\");//fileName;\r\n } catch(Exception e) {\r\n response.getWriter().write(e.getMessage());\r\n }\r\n\r\n\r\n }",
"private void downFile(HttpServletRequest req, HttpServletResponse res, String file_path ,String file_id, String file_name) throws Exception{\n\t\tSystem.out.println(file_path);\n\t\tSystem.out.println(file_id);\n\t\tSystem.out.println(file_name);\n\t\tFile file = null;\n\t\tBufferedInputStream fin = null;\n\t\tBufferedOutputStream outs = null;\n\ttry {\n\n\t\tfile = new File(file_path + \"\\\\\" + file_id);\n\t // ���� ����\n\t int filelength = (int) file.length();\n\t byte[] bytestream = new byte[2048];\n\t int read = 0;\n\t \n\t if(!file.exists()){\n\t \tthrow new Exception(\"mis.file.noexist\");\n\t }\n\t\t\n\t fin = new BufferedInputStream(new FileInputStream(file));\n\t outs = new BufferedOutputStream(res.getOutputStream());\n\t \n\t\n\t\tString clientHead = req.getHeader(\"User-Agent\");\n\t\t\n\t\tres.setContentLength(filelength);\n\t\tif (clientHead.indexOf(\"MSIE 5.5\") > -1)\n\t\t{\t\t\t\n\t\t\tres.setContentType(\"application/x-filler; charset=EUC-KR\");\n\t\t\tres.setHeader(\"Content-Type\", \"doesn/matter;\");\n\t\t\tres.setHeader(\"Content-Disposition\", \"filename=\\\"\" + file_name + \"\\\";\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tres.setHeader(\"Content-Type\", \"application/octet-stream;\");\n\t\t\tres.setHeader(\"Content-Disposition\", \"attachment;filename=\\\"\" + file_name + \"\\\";\");\n\t\t}\n\t\tres.setHeader (\"Content-Length\", \"\" + filelength);\n\t\n\t //try {\n\t\tif(filelength>0) {\n\t\t\twhile ((read = fin.read(bytestream)) != -1) {\n\t\t\t\touts.write(bytestream, 0, read);\n\t\t\t}\n\t\t}\n\t \n\t //close\n\t outs.close();\n\t fin.close();\n\t} catch (Exception e) {\n\t\t\n\t} finally {\n\t\tif(outs != null) { try { outs.close(); } catch(Exception e) {} }\n\t\tif(fin != null) { try { fin.close(); } catch(Exception e) {} }\n\t}\n}",
"@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException {\r\n br = new Browser();\r\n // need to correct links that are added prior to fixing!\r\n correctDownloadLink(link);\r\n prepBrowser(br);\r\n br.setFollowRedirects(true);\r\n final URLConnectionAdapter con = br.openGetConnection(link.getDownloadURL());\r\n if (con.getResponseCode() == 503 || con.getResponseCode() == 404) {\r\n con.disconnect();\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n br.followConnection();\r\n if (br.containsHTML(\"<title>\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Access denied\r\n if (br.containsHTML(\"Access denied<|资源已被禁止访问</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Not found\r\n if (br.containsHTML(\"<span>(资源未找到|Not found)</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n /* Wrong link */\r\n if (br.containsHTML(\">Wrong</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n String filename = null, filesize = null;\r\n // if (br.getURL().matches(\"http://page\\\\d+\\\\.yunfile.com/fs/[a-z0-9]+/\")) ;\r\n filename = br.getRegex(\"Downloading: <a></a> ([^<>]*) - [^<>]+<\").getMatch(0);\r\n if (filename == null) {\r\n filename = br.getRegex(\"<title>(.*?)\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n filename = br.getRegex(\"<h2 class=\\\"title\\\">文件下载\\\\ \\\\ ([^<>\\\"]*?)</h2>\").getMatch(0);\r\n }\r\n filesize = br.getRegex(\"文件大小: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"File Size: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n }\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"id=\\\"file_show_filename\\\">[^<>]+</span> \\\\- ([^<>\\\"]+) <\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n link.setName(decode(\"111\", filename.trim()));\r\n link.setDownloadSize(SizeFormatter.getSize(filesize));\r\n return AvailableStatus.TRUE;\r\n }",
"private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }",
"File downloadExtension(DownloadExtensionRequest request);",
"void downloadSavi(File file, int id) throws IOException, SQLException;",
"void downloadNdwi6(File file, int id) throws IOException, SQLException;",
"@Override\n public String getFilename()\n {\n return \"\";\n }",
"public WebFile getFile() { return _file; }",
"public static File getDownloadingFile() {\n\t\treturn downloadingFile;\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadSuccess(String localFilPath) {\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tFailOpera.Instace(mContext).openFile(localFilPath);\n\t\t\t\t\t\t\t\t\t}",
"private static void getFile(String strFileName, String strURL, Boolean blnExtract)\r\n {\r\n String webPageContentsRaw = \"\";\r\n String webPageContentsCleaned = \"\";\r\n String webPageURL = strURL;\r\n INET net = new INET();\r\n\r\n\r\n\r\n if(!blnExtract)\r\n {\r\n System.out.println(strFileName);\r\n try {\r\n webPageContentsRaw = net.getURLRaw(webPageURL);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n webPageContentsCleaned = webPageContentsRaw.trim();\r\n\r\n if (strFileName.equals(strFileName.endsWith(\"data/FBIN.txt\")||strFileName.endsWith(\"data/World.txt\"))) {\r\n webPageContentsCleaned = net.getPREData(webPageContentsRaw);\r\n }\r\n\r\n webPageContentsCleaned = webPageContentsCleaned.trim();\r\n\r\n try {\r\n net.saveToFile(strFileName, webPageContentsCleaned);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"@Override\n public boolean downloadFile(final String url, String fileID,\n final String path) {\n DownloadFileRequest request = RequestFactory.makeDownloadFileRequest(\n fileID, \".wig\");\n\n System.out.println(\"Test: \" + fileID);\n conn.sendRequest(request, userID, \"text/plain\");\n Gson gson = new Gson();\n DownloadFileResponse response = gson.fromJson(conn.getResponseBody(),\n DownloadFileResponse.class);\n System.out.println(conn.getResponseBody());\n final DownloadHandler handler = new DownloadHandler(\"pvt\", \"pvt\");\n new Thread(new Runnable() {\n @Override\n public void run() {\n handler.download(url, path);\n }\n }).start();\n\n System.out.println(\"Test\");\n return true;\n }",
"public void downloadFile(String applicationName) throws Exception {\n\t\tApplication application = newService(ApplicationService.class, Application.class).get(new Filter(\"pgmKey\", applicationName));\n\n\t\t// verify if the user has access to the application\n\t\tList<Application> applications = AuthorizationHelper.getApplications(getUser());\n\t\tif (!applications.contains(application)) {\n\t\t\tthrow new ForbiddenException(\"User [\" + getUser().getUserName() + \"] is not allowed to [\" + applicationName + \"] the file [\" + application.getParameter() + \"]\");\n\t\t}\n\n\t\tString basePath = SystemEnv.INSTANCE.getProperties(\"config\").getProperty(\"filelink\") + File.separator;\n\n\t\tfinal File file = new File(basePath + application.getParameter());\n\t\tif (!file.exists()) {\n\t\t\tthrow new BaseException(HttpServletResponse.SC_NOT_FOUND);\n\t\t}\n\t\tUtil.downloadFile(getResponse(), file);\n\t}",
"@Override\n\t\t\t\t\tpublic void isDownload(String fileString, int DOWN_OVER) {\n\t\t\t\t\t\tmHandler.sendEmptyMessage(DOWN_OVER);\n\t\t\t\t\t\tfileName = fileString;\n\t\t\t\t\t}",
"public void downloadCompleted(File f);",
"public void onDownloadSuccess(String fileInfo);",
"public String getSourceDownloadUrl();",
"public String loadFile(HttpServletRequest request, HttpServletResponse response, String fileType) {\n try {\n List<FileItem> fileItemsList = _uploader.parseRequest(request);\n Iterator<FileItem> fileItemsIterator = fileItemsList.iterator();\n\n if (fileItemsIterator.hasNext()) {\n saveFileOnServer(fileItemsIterator, fileType);\n }\n } catch (Exception e) {\n System.out.println(\"Exception in uploading file. \" + e.getMessage());\n return \"false\";\n }\n return \"true\";\n }",
"private void setFile() {\n\t}",
"@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException {\r\n this.setBrowserExclusive();\r\n br.setFollowRedirects(true);\r\n br.getPage(link.getDownloadURL().replace(\"http://\", \"https://\"));\r\n if (br.getHttpConnection().getResponseCode() == 404) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n String filename = br.getRegex(\"property\\\\s*=\\\\s*\\\\'og:title\\\\'.*?content\\\\s*=\\\\s*\\\"([^<>\\\"]*?)\\\"\").getMatch(0);\r\n if (filename == null) {\r\n /* Fallback */\r\n filename = new Regex(link.getPluginPatternMatcher(), \"([^/]+)$\").getMatch(0);\r\n }\r\n final String uploadDate = br.getRegex(\"itemprop='uploadDate'>(\\\\d{4}-\\\\d{2}-\\\\d{2})\").getMatch(0);\r\n filename = Encoding.htmlDecode(filename.trim());\r\n if (uploadDate != null) {\r\n filename = uploadDate + \"_\" + filename;\r\n }\r\n link.setFinalFileName(filename + \".mp4\");\r\n return AvailableStatus.TRUE;\r\n }",
"void downloadEta(File file, int id) throws IOException, SQLException;",
"void downloadEvi(File file, int id) throws IOException, SQLException;",
"public void onFileDownloadComplete(String filePath);",
"public void downloadResume(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\n ResumeUploadActionForm resumeUploadActionForm = (ResumeUploadActionForm) form;\r\n HttpSession session = request.getSession();\r\n CmnUserMst lObjCmnUserMst = (CmnUserMst) session.getAttribute(\"cmnUserMst\");\r\n ResourceBundle resourceBundle = ResourceBundle.getBundle(\"common/resources/Constants\");\r\n\r\n\r\n File folder = new File(MessageFormat.format(resourceBundle.getString(\"UPLOADPATH.RESUME\"), System.getenv(resourceBundle.getString(\"UPLOADPATH.BASE\")), lObjCmnUserMst.getUserId()));\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (File file : listOfFiles) {\r\n if (file.isFile()) {\r\n \r\n// \r\n String fileName = file.getName(); \r\n response.setContentType(\"application/octet-stream\");\r\n response.setHeader(\"Content-Disposition\", \"attachment;filename=\" + fileName);\r\n\r\n try {\r\n //Get it from file system\r\n FileInputStream in = new FileInputStream(file);\r\n\r\n //Get it from web path\r\n //jndi:/localhost/StrutsExample/upload/superfish.zip\r\n //URL url = getServlet().getServletContext()\r\n // .getResource(\"upload/superfish.zip\");\r\n //InputStream in = url.openStream();\r\n\r\n //Get it from bytes array\r\n //byte[] bytes = new byte[4096];\r\n //InputStream in = new ByteArrayInputStream(bytes);\r\n\r\n ServletOutputStream out = response.getOutputStream();\r\n\r\n byte[] outputByte = new byte[4096];\r\n //copy binary content to output stream\r\n while (in.read(outputByte, 0, 4096) != -1) {\r\n out.write(outputByte, 0, 4096);\r\n }\r\n in.close();\r\n out.flush();\r\n out.close();\r\n\r\n } catch (Exception e) {\r\n\r\n e.printStackTrace();\r\n }\r\n\r\n \r\n }\r\n }\r\n\r\n\r\n\r\n\r\n }",
"void downloadFeature(File file, int id) throws IOException, SQLException;",
"void downloadNdwi5(File file, int id) throws IOException, SQLException;",
"void mo54427b(DownloadInfo downloadInfo);",
"public String download(){\r\n\t\treturn \"template\";\r\n\t}",
"public void setUseFiles(boolean yesno);",
"@Override\n public void setFile(File f) {\n \n }",
"private File getFile(String fileName, HttpServletRequest request){\n\t\tString fileSite = request.getSession().getServletContext().getRealPath(\"resources/upload\"); // 배포폴더\n\t\treturn new File(fileSite, fileName);\n\t}",
"@Override public String Async_key() {return Key_wiki_download;}",
"default String getContentType() {\n return \"application/octet-stream\";\n }",
"public boolean getSupportsDownloads() \n {\n return true; \n }",
"public boolean isFile() { return false; }",
"public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }",
"public static void testResourceFile() {\n\t\tArrayList l = new ArrayList();\n\t\tl.add(\"http://www.google.it\");\n\t\tl.add(\"http://www.microsoft.com\");\n\t\t/*\n\t\tDownloader d = new Downloader(1);\n\t\tlogger\n\t\t\t\t.log(\n\t\t\t\t\t\tLevel.INFO,\n\t\t\t\t\t\"TEST ResourceFile implementation. Url downloaded will be temporary saved to system temp directory.\");\n\n\t\t// Listener\n\t\td.addListener(new DebugListener());\n\n\t\td.setFollowRedirect(true);\n\t\td.setMaxSize(2000);\n\t\td.addURLs(l);\n\t\td.start();\n\t\td.waitDone();\n\n\t\t// Derby DBMS should be shutdown every times application goes down\n\t\tDerbyLinkQueueDB.shutdown();\n\t\t*/\n\t}",
"public abstract File mo41087j();",
"boolean checkShouldDownloadFile(String target, String name) {\n return Boolean.TRUE.equals(DOWNLOAD_FILES.retrieve(target, name));\n }",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"@RequestMapping(\"api/admin/fileDownload.do\")\n\tpublic void fileDownload(HttpServletRequest request,HttpServletResponse response,@RequestParam(value=\"fileName\")String fileName) throws IOException{\n\t\tServletContext context = request.getServletContext();\n \n // construct the complete absolute path of the file\n String fullPath = boardPath+fileName; \n File downloadFile = new File(fullPath);\n FileInputStream inputStream = new FileInputStream(downloadFile);\n \n // get MIME type of the file\n String mimeType = context.getMimeType(fullPath);\n if (mimeType == null) {\n // set to binary type if MIME mapping not found\n mimeType = \"application/octet-stream\";\n }\n System.out.println(\"MIME type: \" + mimeType);\n \n // set content attributes for the response\n response.setContentType(mimeType);\n response.setContentLength((int) downloadFile.length());\n \n // set headers for the response\n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\",\n URLEncoder.encode(downloadFile.getName(),\"UTF-8\"));\n System.out.println(downloadFile.getName());\n \n response.setHeader(headerKey, headerValue);\n \n // get output stream of the response\n OutputStream outStream = response.getOutputStream();\n \n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead = -1;\n \n // write bytes read from the input stream into the output stream\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n \n inputStream.close();\n outStream.close();\n \n \n \n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String filePath = \"/home/harun/Downloads/Q3.pdf\";\n File downloadFile = new File(filePath);\n FileInputStream inputStream = new FileInputStream(downloadFile);\n\n // Get the mimeType of the file\n ServletContext context = getServletContext();\n String mimeType = context.getMimeType(filePath);\n\n // Fetch file in binary there's no MimeType mapping\n if(mimeType==null) mimeType = \"application/octet-stream\";\n // Log the mimeType in the console\n System.out.println(mimeType);\n\n\n //Set the response mimeType/contentType and file length\n response.setContentType(\"Mime Tyoe: \" + mimeType);\n int fileLength = (int) downloadFile.length();\n response.setContentLength(fileLength);\n\n // Set the response header value// Force download\n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\", downloadFile.getName());\n response.setHeader(headerKey,headerValue);\n\n // read the input stream in buffered chunks to the output stream\n OutputStream outputStream = response.getOutputStream();\n byte[] buffer = new byte[4096]; // Buffers of 4MB's\n int c = -1;\n\n while((c = inputStream.read(buffer)) != -1){\n outputStream.write(buffer, 0, c);\n }\n\n // Close the input and output streams\n inputStream.close();\n outputStream.close();\n\n }",
"public abstract String getFileLocation();",
"public void mo210a(File file) {\n }",
"File getFile() { return user_file; }",
"private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }",
"@Override\n\tpublic byte[] fetchFile(String fileName) throws RemoteException {\n return null;\n\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public void downloadStarted();",
"protected JsManifestationFile() {\n\n\t}",
"@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }",
"@Override\r\n\tpublic void downloadHomework() {\n\t\t\r\n\t}",
"public void setFileRef() { this.fileRef = fileRef; }",
"void downloadTrmm(File file, int id) throws IOException, SQLException;",
"protected abstract File download(Exception previousException) throws Exception;",
"private void requestFile(NapFile file, Client fileOwner) {\r\n\t\ttry {\r\n\r\n\t\t\tFile localCopy = new File(\"./SharedFiles1/\" + file.FILE_NAME);\r\n\r\n\t\t\tif (localCopy.createNewFile()) {\r\n\t\t\t\tcmdDisplay.setText(cmdDisplay.getText() + \"\\n\" + \"Connecting to \" + fileOwner.IP.toString().substring(1)\r\n\t\t\t\t\t\t+ \":\" + fileOwner.PORT_NUM);\r\n\t\t\t\tSocket OwnerSocket = Net_Util.connectToServer(fileOwner.IP.toString().substring(1), fileOwner.PORT_NUM);\r\n\t\t\t\tNet_Util.send(OwnerSocket, file.FILE_NAME);\r\n\t\t\t\tString[] contents = Net_Util.recStrArr(OwnerSocket);\r\n\r\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(localCopy));\r\n\t\t\t\tfor (String lineContent : contents) {\r\n\t\t\t\t\twriter.write(lineContent + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\twriter.close();\r\n\t\t\t\twriter = new BufferedWriter(new FileWriter(\"./SharedFiles1/FileList.txt\", true));\r\n\t\t\t\twriter.newLine();\r\n\t\t\t\twriter.write(file.FILE_NAME + \"::\" + file.DESCRIPTION);\r\n\t\t\t\twriter.close();\r\n\r\n\t\t\t\tNet_Util.send(serverSocket, \"register \" + file.FILE_NAME);\r\n\r\n\t\t\t\tcmdDisplay.setText(cmdDisplay.getText() + \"\\n\" + \"File \" + file.FILE_NAME + \" retrieved sucessfully\");\r\n\t\t\t} else {\r\n\t\t\t\tcmdDisplay.setText(cmdDisplay.getText() + \"\\n\" + \"You already have a file with this name\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tcmdDisplay.setText(cmdDisplay.getText() + \"\\n\" + \"Couldn't send connect to file owner\");\r\n\t\t}\r\n\t}",
"@RequestMapping(value = CaerusAnnotationURLConstants.CANDIDATE_DOWNLOAD_CV)\n\tpublic void downloadCV(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException,CaerusCommonException\n\t{\n\t\t//Spring security authentication containing the logged in user details\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tString emailId = auth.getName();\n\t\t\n\t\t\tStudentDom file = studentManager.getDetailsByEmailId(emailId);\n\t\t\t\n\t\t\t String fileName = file.getResumeName();\n\t\t\t if(fileName != null && !fileName.equals(null))\n\t\t\t {\n\t\t \t response.setHeader(\"Content-Disposition\",\"inline; filename=\\\"\" + file.getResumeName() +\"\\\"\");\n\t\t \t FileCopyUtils.copy(file.getFileData(), response.getOutputStream());\n\t\t } \n\t\t\t else\n\t\t\t {\n\t\t \t throw new CaerusCommonException(\"Resume is not available in database, Please upload your resume\");\n\t\t\t }\n\t}",
"void downloadEto(File file, int id) throws IOException, SQLException;",
"@Override\n\tpublic boolean isFile() {\n\t\treturn true;\n\t}",
"@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}",
"void downloadNdvi(File file, int id) throws IOException, SQLException;",
"public void setFileUrl(String fileUrl);",
"public boolean getUseFiles();",
"public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }",
"private ResponseEntity<Resource> downloadFile(final String fileName) {\n Resource resource = storageMutator.loadFileAsResource(fileName); // load the specified file as a resource\n String contentType = \"application/octet-stream\";\n\n // create a response with the content type, header and body with the file data\n return ResponseEntity.ok()\n .contentType(MediaType.parseMediaType(contentType))\n .header(HttpHeaders.CONTENT_DISPOSITION,\n \"attachment; filename=\\\"\" + resource.getFilename() + \"\\\"\")\n .body(resource);\n }",
"public void download(String url,File targetFile)throws Exception{\n\t\tdownload(url, targetFile,60*10);\n\t}",
"protected void downloadTo(VFSTransfer transfer,VFile targetLocalFile)\n throws VlException\n {\n // copy contents into local file:\n vrsContext.getTransferManager().doStreamCopy(transfer,this,targetLocalFile); \n }",
"boolean fileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\tString lcname = file.getName().trim().toLowerCase();\n\t\treturn ((lcname.endsWith(LC_JAR) ||\n\t\t lcname.endsWith(LC_SVB) ||\n\t\t lcname.endsWith(LC_EXE) ||\n\t\t lcname.endsWith(LC_DAT)) &&\n\t\t (file.lastModified() > OLDEST_DATE));\n\t}",
"void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);",
"private void download(String downloadKey, HttpServletResponse response, boolean compressed){\n File file = creatorService.getDownloadFile(downloadKey, compressed);\n if(file == null){\n throw new UnipooleException(ErrorCodes.FILE_MANIPULATION, \"File not found.\");\n }\n response.setContentType(mimeTypeMap.getContentType(file.getName().toLowerCase()));\n OutputStream os = null;\n try {\n response.setHeader(\"Content-Disposition\",\n \"attachment;filename=\\\"\" + file.getName() + \"\\\"\");\n os = response.getOutputStream();\n os.write(FileCopyUtils.copyToByteArray(file));\n os.flush();\n } catch (IOException e) {\n Logger.getLogger(CreatorController.class).error(\"Failed to write file for download.\", e);\n throw new UnipooleException(ErrorCodes.FILE_MANIPULATION, \"Failed to write file for download.\", e);\n } finally {\n try {\n if(os != null){\n os.close();\n }\n } catch (Exception e) {\n }\n }\n }",
"@Override\n public void onClick(View view) {\n if(!titleNameofFiles.contains(content.getFileName())) {\n // Download the content\n //Toast.makeText(getActivity(), \"::Download process begins:: with url:\" + content.getDownloadUrl(), Toast.LENGTH_SHORT).show();\n Log.i(\"url:\", content.getDownloadUrl());\n// new ContentDownloader(getActivity()).downloadFile(content.getDownloadUrl(),content.getTitle(),choosenSubject,choosenType);\n AnotherContentDownloader.getInstance(getActivity()).downloadFile(content.getDownloadUrl(), content.getFileName(), choosenSubject, choosenType);\n\n }else{\n Toast.makeText(getActivity(),\" You already have downloaded this file!\",Toast.LENGTH_SHORT).show();\n }\n DialogFragment dialog = (DialogFragment) getFragmentManager().findFragmentByTag(\"Download\");\n dialog.dismiss();\n }",
"void downloadModis(File file, ModisProduct product, int id) throws IOException, SQLException;",
"private static void download(String arquivo, HttpServletRequest request, HttpServletResponse response) throws IOException {\n File f = new File(arquivo);\n response.setContentLength((int) f.length());\n response.setContentType(\"application/octet-stream\");\n response.setHeader(\"Content-Transfer-Encoding\", \"binary\");\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + f.getName() + \"\\\"\");\n\n byte[] buf = new byte[4096];\n BufferedInputStream in = new BufferedInputStream(new FileInputStream(f));\n BufferedOutputStream out = new BufferedOutputStream(response.getOutputStream());\n int i = 0;\n while ((i = in.read(buf)) > 0) {\n out.write(buf, 0, i);\n }\n out.close();\n in.close();\n }",
"public Blob downloadFile(String inKey, String inFileName);",
"public void onClick() {\n getRequestCycle().setRequestTarget(new IRequestTarget() {\n \n public void detach(RequestCycle requestCycle) {\n }\n \n public void respond(RequestCycle requestCycle) {\n WebResponse r = (WebResponse) requestCycle.getResponse();\n r.setAttachmentHeader(fileName);\n try {\n File file = AttachmentUtils.getFile(attachment, getJtrac().getJtracHome());\n InputStream is = new FileInputStream(file);\n try {\n Streams.copy(is, r.getOutputStream());\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n });\n }",
"boolean hasDownloadRequest();",
"public File_Delet() {\n\t\tsuper();\n\t}",
"boolean allFileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\treturn ((file.lastModified() > OLDEST_DATE));\n\t}",
"@GetMapping(\"/download/{id}\")\r\n public ResponseEntity<Resource> downloadFile(@PathVariable(value = \"id\") int fileId) {\n\r\n Files file = filesRepository.findById(fileId)\r\n .orElseThrow(() -> new ResourceNotFoundException(\"File\", \"id\", fileId));\r\n\r\n\r\n Resource resource = fileStorageService.loadFileAsResource(file.getFileName());\r\n\r\n\r\n String contentType = \"application/octet-stream\";\r\n\r\n\r\n return ResponseEntity.ok()\r\n .contentType(MediaType.parseMediaType(contentType))\r\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + resource.getFilename() + \"\\\"\")\r\n .body(resource);\r\n }",
"public boolean sendFile(String inKey, File inFile) throws NuxeoException;",
"public boolean isFile() { return true; }",
"void downloadProjectedModis(File file, ModisProduct product, int id) throws IOException, SQLException;",
"@RequestMapping(value = \"/DownloadFile\" )\r\n\tpublic void doDownload(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws IOException {\r\n\t\tint BUFFER_SIZE = 4096;\r\n\r\n\t\t/**\r\n\t\t * Path of the file to be downloaded, relative to application's directory\r\n\t\t */\r\n\t\tHttpSession session = request.getSession();\r\n\t\t//session.setAttribute(\"filePath\", filepath1);\r\n\t\t//String filePath =\"C:/Users/826862/Desktop/download.jsp\";\r\n\t\tString filePath =(String) session.getAttribute(\"docLink\");\r\n\r\n\t\tSystem.out.println(\"payth\" + filePath);\r\n\r\n\t\t/**\r\n\t\t * Method for handling file download request from client\r\n\t\t */\r\n\t\t// get absolute path of the application\r\n\t\tServletContext context = request.getServletContext();\r\n\t\tString appPath = context.getServerInfo();\r\n\r\n\t\tSystem.out.println(\"appPath = \" + appPath);\r\n\r\n\t\t// construct the complete absolute path of the file\r\n\t\tString fullPath = filePath;\t\t\r\n\t\tFile downloadFile = new File(fullPath);\r\n\t\tFileInputStream inputStream = new FileInputStream(downloadFile);\r\n\r\n\t\t// get MIME type of the file\r\n\t\tString mimeType = context.getMimeType(fullPath);\r\n\t\tif (mimeType == null) {\r\n\t\t\t// set to binary type if MIME mapping not found\r\n\t\t\tmimeType = \"application/octet-stream\";\r\n\t\t}\r\n\t\tSystem.out.println(\"MIME type: \" + mimeType);\r\n\r\n\t\t// set content attributes for the response\r\n\t\tresponse.setContentType(mimeType);\r\n\t\tresponse.setContentLength((int) downloadFile.length());\r\n\r\n\t\t// set headers for the response\r\n\t\tString headerKey = \"Content-Disposition\";\r\n\t\tString headerValue = String.format(\"attachment; filename=\\\"%s\\\"\",\r\n\t\t\t\tdownloadFile.getName());\r\n\t\tresponse.setHeader(headerKey, headerValue);\r\n\r\n\t\t// get output stream of the response\r\n\t\tOutputStream outStream = response.getOutputStream();\r\n\r\n\t\tbyte[] buffer = new byte[BUFFER_SIZE];\r\n\t\tint bytesRead = -1;\r\n\r\n\t\t// write bytes read from the input stream into the output stream\r\n\t\twhile ((bytesRead = inputStream.read(buffer)) != -1) {\r\n\t\t\toutStream.write(buffer, 0, bytesRead);\r\n\t\t}\r\n\r\n\t\tinputStream.close();\r\n\t\toutStream.close();\r\n\r\n\t}",
"private boolean isPublicallyDownloadable(DvObject dvo) {\n if (dvo instanceof DataFile) {\n // unrestricted files that are part of a release dataset \n // automatically get download permission for everybody:\n // -- L.A. 4.0 beta12\n\n DataFile df = (DataFile) dvo;\n\n if (!df.isRestricted()) {\n if (df.getOwner().getReleasedVersion() != null) {\n if (df.getOwner().getReleasedVersion().getFileMetadatas() != null) {\n for (FileMetadata fm : df.getOwner().getReleasedVersion().getFileMetadatas()) {\n if (df.equals(fm.getDataFile())) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }",
"public void exportMedia(){\r\n \r\n }",
"private void downloadFile(final File mFile, final java.io.File targetFolder) {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n if (mFile.getDownloadUrl() != null && mFile.getDownloadUrl().length() > 0) {\n try {\n com.google.api.client.http.HttpResponse resp =\n mService.getRequestFactory()\n .buildGetRequest(new GenericUrl(mFile.getDownloadUrl()))\n .execute();\n\n // gets the file's contents\n InputStream inputStream = resp.getContent();\n\n // stores the contents to the device's external storage\n try {\n final java.io.File file = new java.io.File(targetFolder, mFile.getTitle());\n System.out.println(\"Downloading: \" + mFile.getTitle() + \" to \" + file.getPath());\n //numDownloading++;\n storeFile(file, inputStream);\n } finally {\n inputStream.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n });\n t.start();\n try {\n Thread.sleep(750);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void downloadFilePagesWithoutListener(String fileKey, String fileType, Context context) {\n\n\n TransferObserver downloadObserver =\n transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey)));\n\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n // Handle a completed upload.\n\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n // Handle errors\n\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }",
"public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }",
"private void updateFiles() {\n\t}"
] |
[
"0.67799",
"0.63401395",
"0.61106837",
"0.60367423",
"0.59866977",
"0.5954315",
"0.5804533",
"0.57987505",
"0.577228",
"0.5749931",
"0.57471436",
"0.5649247",
"0.5644785",
"0.5615679",
"0.56091577",
"0.5605974",
"0.5605074",
"0.5594684",
"0.55867565",
"0.55799073",
"0.55734843",
"0.55607224",
"0.5530101",
"0.5526175",
"0.5524866",
"0.5508584",
"0.54969263",
"0.5481129",
"0.5478008",
"0.5476691",
"0.54732144",
"0.546212",
"0.5453879",
"0.5431343",
"0.5427883",
"0.542451",
"0.539446",
"0.5369454",
"0.5369044",
"0.5348428",
"0.5346874",
"0.5346494",
"0.53442985",
"0.53411055",
"0.53376544",
"0.533736",
"0.5336307",
"0.53234667",
"0.5323205",
"0.53207326",
"0.5315402",
"0.5303555",
"0.5302718",
"0.5298047",
"0.5296681",
"0.52963114",
"0.52934855",
"0.5292645",
"0.5292645",
"0.5292645",
"0.52918",
"0.5288764",
"0.52869755",
"0.52860504",
"0.52814245",
"0.5277243",
"0.52765703",
"0.52739114",
"0.52718544",
"0.5270604",
"0.5264171",
"0.5260206",
"0.5254423",
"0.5246965",
"0.5238704",
"0.5238014",
"0.5235464",
"0.52339387",
"0.52282274",
"0.5221907",
"0.5218948",
"0.5218475",
"0.5216376",
"0.52156943",
"0.5214297",
"0.52103716",
"0.520927",
"0.5206476",
"0.5203338",
"0.5197015",
"0.5195941",
"0.51958394",
"0.519206",
"0.5186072",
"0.5182431",
"0.51807904",
"0.51783425",
"0.5169309",
"0.5163459",
"0.5157651",
"0.515684"
] |
0.0
|
-1
|
Is this even a TileEntity which allows GregTech Sensor Kits? I need things like this Function for MetaTileEntities, you MUST check this!!! Do not assume that it's a Information returning Device, when it just implements this Interface.
|
public boolean isGivingInformation();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface IGregTechDeviceInformation {\n\t/**\n\t * Is this even a TileEntity which allows GregTech Sensor Kits?\n\t * I need things like this Function for MetaTileEntities, you MUST check this!!!\n\t * Do not assume that it's a Information returning Device, when it just implements this Interface.\n\t */\n\tpublic boolean isGivingInformation();\n\t\n\t/**\n\t * Up to 8 Strings can be returned.\n\t * Note: If you insert \"\\\\\\\\\" in the String it tries to translate seperate Parts of the String instead of the String as a whole.\n\t * @return an Array of Information Strings. Don't return null!\n\t */\n\tpublic String[] getInfoData();\n}",
"public TileEntity createTileEntity(World world, int metadata)\r\n/* 264: */ {\r\n/* 265:320 */ if (metadata == 13) {\r\n/* 266:321 */ return new TileEntityTransferNodeHyperEnergy();\r\n/* 267: */ }\r\n/* 268:322 */ if (metadata == 12) {\r\n/* 269:323 */ return new TileEntityTransferNodeEnergy();\r\n/* 270: */ }\r\n/* 271:324 */ if ((metadata >= 6) && (metadata < 12)) {\r\n/* 272:325 */ return new TileEntityTransferNodeLiquid();\r\n/* 273: */ }\r\n/* 274:327 */ return new TileEntityTransferNodeInventory();\r\n/* 275: */ }",
"public Class<? extends TileEntity> getTileEntity() {\n return this.tileEntity;\n }",
"@Override\n\tpublic TileEntity createTileEntity(World world, int metadata) {\n\t\treturn null;\n\t}",
"public boolean hasTileEntity(int metadata)\r\n/* 259: */ {\r\n/* 260:304 */ return true;\r\n/* 261: */ }",
"public interface ElectronicsDevice {\n}",
"@Override\n\tpublic BlockState[] getTileEntities()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"public interface IOptimisableTile {\n\n public OptimiserPacket getPacket();\n public void addPacket(OptimiserPacket packet);\n\n}",
"public interface IDeviceInfo\r\n{\r\n public DeviceInfo GetDeviceInfo();\r\n}",
"public interface TileManager {\r\n\t\r\n\tpublic String encode(long id);\r\n\t\r\n\tpublic int getNumTilesX();\r\n\t\r\n\tpublic int getNumTilesY();\r\n\t\r\n\tpublic double getTileSize();\r\n\t\r\n\tpublic String getCRS();\r\n\t\r\n\tpublic int[] getTileCoordinates(double[] bbox);\r\n\t\r\n\tpublic void setTiles(double[] geobbox);\r\n\t\r\n\tpublic List<String> getTiles(double[] geobbox);\r\n\t\r\n\tpublic List<Tile> getTiles();\r\n\t\r\n\tpublic double[] getWorldBBox();\r\n\t\t\r\n\tpublic List<String> getNeighourTiles(String code, List<String> directions);\r\n\t\r\n}",
"String getTileType();",
"public abstract boolean convertToNative(TileEntity owner);",
"public void registerTileEntities() {\n GameRegistry.registerTileEntity(TEEssenceStorage.class, ReferenceMisc.MODID + \"_essencestorage\");\n GameRegistry.registerTileEntity(TEPylon.class, ReferenceMisc.MODID + \"_pylon\");\n GameRegistry.registerTileEntity(TEVitar.class, ReferenceMisc.MODID + \"_vitar\");\n GameRegistry.registerTileEntity(TEStorage.class, ReferenceMisc.MODID + \"_storage\");\n GameRegistry.registerTileEntity(TELeo.class, ReferenceMisc.MODID + \"_leo\");\n GameRegistry.registerTileEntity(TEBreedingChamber.class, ReferenceMisc.MODID + \"_breedingChamber\");\n GameRegistry.registerTileEntity(TEIncubationChamber.class, ReferenceMisc.MODID + \"_incubationChamber\");\n\n }",
"public abstract TiledMapTileSet getTileSet();",
"public interface GearyEntity {\n\n /**\n * Get the underlying data holder for this entity.\n */\n PersistentDataHolder getDataHolder();\n\n /**\n * Gets the contained component of type {@code T} or null if this entity does not contain {@code\n * T}\n */\n <T extends Component> T getComponent(Class<T> componentClass);\n\n /**\n * Adds the provided component to this entity. Adding the same type of component a second time\n * overwrites the first one.\n */\n void addComponent(Component component);\n\n /**\n * Removes the component with this type from this entity. Noop if the component is not contained.\n */\n void removeComponent(Class<? extends Component> componentClass);\n\n /**\n * Returns true if this entity has a component with this type.\n */\n boolean hasComponent(Class<? extends Component> componentClass);\n\n /**\n * Gets the ItemStack this entity is attached to, if it exists.\n */\n Optional<ItemStack> getItemStack();\n\n /**\n * Gets this entities UUID.\n */\n UUID getUUID();\n\n /**\n * Gets the entity version this entity was created using.\n */\n long getVersion();\n\n /**\n * Gets the Player this entity is held by, if it exists.\n */\n Optional<Player> getHoldingPlayer();\n\n /**\n * Gets all components within this entity.\n */\n Set<Component> getComponents();\n}",
"@Override\n public void getTileEntities(int blockID, Set<Pair<String, Class<? extends TileEntity>>> list)\n {\n\n }",
"public interface IDeviceStateManagement extends ITenantEngineLifecycleComponent {\n\n /**\n * Create device state.\n * \n * @param request\n * @return\n * @throws SiteWhereException\n */\n IDeviceState createDeviceState(IDeviceStateCreateRequest request) throws SiteWhereException;\n\n /**\n * Get device state by unique id.\n * \n * @param id\n * @return\n * @throws SiteWhereException\n */\n IDeviceState getDeviceState(UUID id) throws SiteWhereException;\n\n /**\n * Get device state based on device assignment.\n * \n * @param assignmentId\n * @return\n * @throws SiteWhereException\n */\n IDeviceState getDeviceStateByDeviceAssignment(UUID assignmentId) throws SiteWhereException;\n\n /**\n * Get list of device states (one per device assignment) for a device.\n * \n * @param deviceId\n * @return\n * @throws SiteWhereException\n */\n List<? extends IDeviceState> getDeviceStatesForDevice(UUID deviceId) throws SiteWhereException;\n\n /**\n * Search for device states that match the given criteria.\n * \n * @param criteria\n * @return\n * @throws SiteWhereException\n */\n ISearchResults<? extends IDeviceState> searchDeviceStates(IDeviceStateSearchCriteria criteria)\n\t throws SiteWhereException;\n\n /**\n * Update existing device state.\n * \n * @param id\n * @param request\n * @return\n * @throws SiteWhereException\n */\n IDeviceState updateDeviceState(UUID id, IDeviceStateCreateRequest request) throws SiteWhereException;\n\n /**\n * Merge one or more events into the device state.\n * \n * @param id\n * @param events\n * @return\n * @throws SiteWhereException\n */\n IDeviceState merge(UUID id, IDeviceStateEventMergeRequest events) throws SiteWhereException;\n\n /**\n * Delete existing device state.\n * \n * @param id\n * @return\n * @throws SiteWhereException\n */\n IDeviceState deleteDeviceState(UUID id) throws SiteWhereException;\n}",
"public Tile getTile() { return tile; }",
"public interface IMachineGlasses \n{\n\t/**\n\t * Called on display ticks with the player to determine if the player can see complex machine interfaces. Return true to allow it.\n\t * @return True to allow the player to see complex machine interfaces.\n\t * @param player The player wearing the gear\n\t */\n\tpublic boolean isVisionary(EntityPlayer player);\n}",
"public interface StaticTESR<T extends TileEntity> {\n\n\t/**\n\t * Render the tile entity renderer.\n\t * Note that this is intended to be SUPER optimized. A buffer has been initialized and drawing started.\n\t * This only updates when block updates happen.\n\t * Also note that, while the TE position has been provided, no translation is needed and is done for you.\n\t * @param tileEntity\n\t * @param x\n\t * @param y\n\t * @param z\n\t * @param state\n\t * @param world\n\t */\n\tpublic void render(T tileEntity, double x, double y, double z, IBlockState state, World world, BufferBuilder buffer);\n\t\n}",
"public Tile getTile() {\n return tile;\n }",
"public Tile getTile() {\n return tile;\n }",
"@Override\n public TileEntity createNewTileEntity(World world)\n {\n return null;\n }",
"public interface IWeather extends IOpenScenarioModelElement {\n /**\n * From OpenSCENARIO class model specification: Definition of the cloud state, i.e. cloud state\n * and sky visualization settings.\n *\n * @return value of model property cloudState\n */\n public CloudState getCloudState();\n /**\n * From OpenSCENARIO class model specification: Definition of the sun, i.e. position and\n * intensity.\n *\n * @return value of model property sun\n */\n public ISun getSun();\n /**\n * From OpenSCENARIO class model specification: Definition of fog, i.e. visual range and bounding\n * box.\n *\n * @return value of model property fog\n */\n public IFog getFog();\n /**\n * From OpenSCENARIO class model specification: Definition of precipitation, i.e. type and\n * intensity.\n *\n * @return value of model property precipitation\n */\n public IPrecipitation getPrecipitation();\n}",
"public interface GameEntity {\n int getSize();\n\n void update(Board board);\n\n boolean isRemoved();\n\n void setRemoved(boolean removed);\n\n Command remove();\n\n ThemeableType getType();\n\n Point getPosition();\n\n void setPosition(double x, double y);\n\n void setPosition(Point position);\n}",
"public abstract Tile getTileAt(int x, int y);",
"public interface IInfoProvider {\n\n public void addInformation(@Nonnull IInformation information, @Nonnull IInfoDataAccessorBlock hitData);\n\n @Nonnull\n public NBTTagCompound getInfoNBTData(@Nonnull NBTTagCompound tag, TileEntity tile, @Nonnull EntityPlayerMP player, @Nonnull IInfoDataAccessorBlock hitData);\n\n}",
"public interface SculkSensor extends TileState {\r\n\r\n /**\r\n * Gets the last vibration frequency of this sensor.\r\n *\r\n * Different activities detected by the sensor will produce different\r\n * frequencies and dictate the output of connected comparators.\r\n *\r\n * @return frequency between 0-15.\r\n */\r\n int getLastVibrationFrequency();\r\n\r\n /**\r\n * Sets the last vibration frequency of this sensor.\r\n *\r\n * Different activities detected by the sensor will produce different\r\n * frequencies and dictate the output of connected comparators.\r\n *\r\n * @param lastVibrationFrequency frequency between 0-15.\r\n */\r\n void setLastVibrationFrequency(int lastVibrationFrequency);\r\n}",
"public interface CharacterData extends EntityData {\n\n}",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"Object getPlatform();",
"public static CraftEntity getEntity(CraftServer server, Entity entity) {\n/* 199 */ if (entity instanceof EntityLiving)\n/* */ \n/* 201 */ { if (entity instanceof EntityHuman) {\n/* 202 */ if (entity instanceof EntityPlayer) return new CraftPlayer(server, (EntityPlayer)entity); \n/* 203 */ return new CraftHumanEntity(server, (EntityHuman)entity);\n/* */ } \n/* */ \n/* 206 */ if (entity instanceof EntityWaterAnimal) {\n/* 207 */ if (entity instanceof EntitySquid) return new CraftSquid(server, (EntitySquid)entity); \n/* 208 */ if (entity instanceof EntityFish) {\n/* 209 */ if (entity instanceof EntityCod) return new CraftCod(server, (EntityCod)entity); \n/* 210 */ if (entity instanceof EntityPufferFish) return new CraftPufferFish(server, (EntityPufferFish)entity); \n/* 211 */ if (entity instanceof EntitySalmon) return new CraftSalmon(server, (EntitySalmon)entity); \n/* 212 */ if (entity instanceof EntityTropicalFish) return new CraftTropicalFish(server, (EntityTropicalFish)entity); \n/* 213 */ return new CraftFish(server, (EntityFish)entity);\n/* */ } \n/* 215 */ if (entity instanceof EntityDolphin) return new CraftDolphin(server, (EntityDolphin)entity); \n/* 216 */ return new CraftWaterMob(server, (EntityWaterAnimal)entity);\n/* */ } \n/* 218 */ if (entity instanceof EntityCreature)\n/* */ \n/* 220 */ { if (entity instanceof EntityAnimal)\n/* 221 */ { if (entity instanceof EntityChicken) return new CraftChicken(server, (EntityChicken)entity); \n/* 222 */ if (entity instanceof EntityCow) {\n/* 223 */ if (entity instanceof EntityMushroomCow) return new CraftMushroomCow(server, (EntityMushroomCow)entity); \n/* 224 */ return new CraftCow(server, (EntityCow)entity);\n/* */ } \n/* 226 */ if (entity instanceof EntityPig) return new CraftPig(server, (EntityPig)entity); \n/* 227 */ if (entity instanceof net.minecraft.server.v1_16_R2.EntityTameableAnimal) {\n/* 228 */ if (entity instanceof EntityWolf) return new CraftWolf(server, (EntityWolf)entity); \n/* 229 */ if (entity instanceof EntityCat) return new CraftCat(server, (EntityCat)entity); \n/* 230 */ if (entity instanceof EntityParrot) return new CraftParrot(server, (EntityParrot)entity); \n/* */ } else {\n/* 232 */ if (entity instanceof EntitySheep) return new CraftSheep(server, (EntitySheep)entity); \n/* 233 */ if (entity instanceof net.minecraft.server.v1_16_R2.EntityHorseAbstract)\n/* 234 */ { if (entity instanceof net.minecraft.server.v1_16_R2.EntityHorseChestedAbstract)\n/* 235 */ { if (entity instanceof EntityHorseDonkey) return new CraftDonkey(server, (EntityHorseDonkey)entity); \n/* 236 */ if (entity instanceof EntityHorseMule) return new CraftMule(server, (EntityHorseMule)entity); \n/* 237 */ if (entity instanceof EntityLlamaTrader) return new CraftTraderLlama(server, (EntityLlamaTrader)entity); \n/* 238 */ if (entity instanceof EntityLlama) return new CraftLlama(server, (EntityLlama)entity); }\n/* 239 */ else { if (entity instanceof EntityHorse) return new CraftHorse(server, (EntityHorse)entity); \n/* 240 */ if (entity instanceof EntityHorseSkeleton) return new CraftSkeletonHorse(server, (EntityHorseSkeleton)entity); \n/* 241 */ if (entity instanceof EntityHorseZombie) return new CraftZombieHorse(server, (EntityHorseZombie)entity); }\n/* */ }\n/* 243 */ else { if (entity instanceof EntityRabbit) return new CraftRabbit(server, (EntityRabbit)entity); \n/* 244 */ if (entity instanceof EntityPolarBear) return new CraftPolarBear(server, (EntityPolarBear)entity); \n/* 245 */ if (entity instanceof EntityTurtle) return new CraftTurtle(server, (EntityTurtle)entity); \n/* 246 */ if (entity instanceof EntityOcelot) return new CraftOcelot(server, (EntityOcelot)entity); \n/* 247 */ if (entity instanceof EntityPanda) return new CraftPanda(server, (EntityPanda)entity); \n/* 248 */ if (entity instanceof EntityFox) return new CraftFox(server, (EntityFox)entity); \n/* 249 */ if (entity instanceof EntityBee) return new CraftBee(server, (EntityBee)entity); \n/* 250 */ if (entity instanceof EntityHoglin) return new CraftHoglin(server, (EntityHoglin)entity); \n/* 251 */ if (entity instanceof EntityStrider) return new CraftStrider(server, (EntityStrider)entity); \n/* 252 */ return new CraftAnimals(server, (EntityAnimal)entity); }\n/* */ \n/* */ } }\n/* 255 */ else { if (entity instanceof EntityMonster) {\n/* 256 */ if (entity instanceof EntityZombie) {\n/* 257 */ if (entity instanceof EntityPigZombie) return new CraftPigZombie(server, (EntityPigZombie)entity); \n/* 258 */ if (entity instanceof EntityZombieHusk) return new CraftHusk(server, (EntityZombieHusk)entity); \n/* 259 */ if (entity instanceof EntityZombieVillager) return new CraftVillagerZombie(server, (EntityZombieVillager)entity); \n/* 260 */ if (entity instanceof EntityDrowned) return new CraftDrowned(server, (EntityDrowned)entity); \n/* 261 */ return new CraftZombie(server, (EntityZombie)entity);\n/* */ } \n/* 263 */ if (entity instanceof EntityCreeper) return new CraftCreeper(server, (EntityCreeper)entity); \n/* 264 */ if (entity instanceof EntityEnderman) return new CraftEnderman(server, (EntityEnderman)entity); \n/* 265 */ if (entity instanceof EntitySilverfish) return new CraftSilverfish(server, (EntitySilverfish)entity); \n/* 266 */ if (entity instanceof EntityGiantZombie) return new CraftGiant(server, (EntityGiantZombie)entity); \n/* 267 */ if (entity instanceof EntitySkeletonAbstract) {\n/* 268 */ if (entity instanceof EntitySkeletonStray) return new CraftStray(server, (EntitySkeletonStray)entity); \n/* 269 */ if (entity instanceof EntitySkeletonWither) return new CraftWitherSkeleton(server, (EntitySkeletonWither)entity); \n/* 270 */ return new CraftSkeleton(server, (EntitySkeletonAbstract)entity);\n/* */ } \n/* 272 */ if (entity instanceof EntityBlaze) return new CraftBlaze(server, (EntityBlaze)entity); \n/* 273 */ if (entity instanceof EntityWitch) return new CraftWitch(server, (EntityWitch)entity); \n/* 274 */ if (entity instanceof EntityWither) return new CraftWither(server, (EntityWither)entity); \n/* 275 */ if (entity instanceof EntitySpider) {\n/* 276 */ if (entity instanceof EntityCaveSpider) return new CraftCaveSpider(server, (EntityCaveSpider)entity); \n/* 277 */ return new CraftSpider(server, (EntitySpider)entity);\n/* */ } \n/* 279 */ if (entity instanceof EntityEndermite) return new CraftEndermite(server, (EntityEndermite)entity); \n/* 280 */ if (entity instanceof EntityGuardian) {\n/* 281 */ if (entity instanceof EntityGuardianElder) return new CraftElderGuardian(server, (EntityGuardianElder)entity); \n/* 282 */ return new CraftGuardian(server, (EntityGuardian)entity);\n/* */ } \n/* 284 */ if (entity instanceof EntityVex) return new CraftVex(server, (EntityVex)entity); \n/* 285 */ if (entity instanceof EntityIllagerAbstract) {\n/* 286 */ if (entity instanceof EntityIllagerWizard) {\n/* 287 */ if (entity instanceof EntityEvoker) return new CraftEvoker(server, (EntityEvoker)entity); \n/* 288 */ if (entity instanceof EntityIllagerIllusioner) return new CraftIllusioner(server, (EntityIllagerIllusioner)entity); \n/* 289 */ return new CraftSpellcaster(server, (EntityIllagerWizard)entity);\n/* */ } \n/* 291 */ if (entity instanceof EntityVindicator) return new CraftVindicator(server, (EntityVindicator)entity); \n/* 292 */ if (entity instanceof EntityPillager) return new CraftPillager(server, (EntityPillager)entity); \n/* 293 */ return new CraftIllager(server, (EntityIllagerAbstract)entity);\n/* */ } \n/* 295 */ if (entity instanceof EntityRavager) return new CraftRavager(server, (EntityRavager)entity); \n/* 296 */ if (entity instanceof EntityPiglinAbstract) {\n/* 297 */ if (entity instanceof EntityPiglin) return new CraftPiglin(server, (EntityPiglin)entity); \n/* 298 */ if (entity instanceof EntityPiglinBrute) return new CraftPiglinBrute(server, (EntityPiglinBrute)entity); \n/* 299 */ return new CraftPiglinAbstract(server, (EntityPiglinAbstract)entity);\n/* */ } \n/* 301 */ if (entity instanceof EntityZoglin) return new CraftZoglin(server, (EntityZoglin)entity);\n/* */ \n/* 303 */ return new CraftMonster(server, (EntityMonster)entity);\n/* */ } \n/* 305 */ if (entity instanceof net.minecraft.server.v1_16_R2.EntityGolem) {\n/* 306 */ if (entity instanceof EntitySnowman) return new CraftSnowman(server, (EntitySnowman)entity); \n/* 307 */ if (entity instanceof EntityIronGolem) return new CraftIronGolem(server, (EntityIronGolem)entity); \n/* 308 */ if (entity instanceof EntityShulker) return new CraftShulker(server, (EntityShulker)entity); \n/* */ } else {\n/* 310 */ if (entity instanceof EntityVillagerAbstract) {\n/* 311 */ if (entity instanceof EntityVillager) return new CraftVillager(server, (EntityVillager)entity); \n/* 312 */ if (entity instanceof EntityVillagerTrader) return new CraftWanderingTrader(server, (EntityVillagerTrader)entity); \n/* 313 */ return new CraftAbstractVillager(server, (EntityVillagerAbstract)entity);\n/* */ } \n/* 315 */ return new CraftCreature(server, (EntityCreature)entity);\n/* */ } }\n/* */ }\n/* 318 */ else { if (entity instanceof EntitySlime) {\n/* 319 */ if (entity instanceof EntityMagmaCube) return new CraftMagmaCube(server, (EntityMagmaCube)entity); \n/* 320 */ return new CraftSlime(server, (EntitySlime)entity);\n/* */ } \n/* */ \n/* 323 */ if (entity instanceof EntityFlying) {\n/* 324 */ if (entity instanceof EntityGhast) return new CraftGhast(server, (EntityGhast)entity); \n/* 325 */ if (entity instanceof EntityPhantom) return new CraftPhantom(server, (EntityPhantom)entity); \n/* 326 */ return new CraftFlying(server, (EntityFlying)entity);\n/* */ } \n/* 328 */ if (entity instanceof EntityEnderDragon) {\n/* 329 */ return new CraftEnderDragon(server, (EntityEnderDragon)entity);\n/* */ }\n/* */ \n/* 332 */ if (entity instanceof EntityAmbient) {\n/* 333 */ if (entity instanceof EntityBat) return new CraftBat(server, (EntityBat)entity); \n/* 334 */ return new CraftAmbient(server, (EntityAmbient)entity);\n/* */ } \n/* 336 */ if (entity instanceof EntityArmorStand) return new CraftArmorStand(server, (EntityArmorStand)entity); \n/* 337 */ return new CraftLivingEntity(server, (EntityLiving)entity); }\n/* */ }\n/* 339 */ else { if (entity instanceof EntityComplexPart) {\n/* 340 */ EntityComplexPart part = (EntityComplexPart)entity;\n/* 341 */ if (part.owner instanceof EntityEnderDragon) return new CraftEnderDragonPart(server, (EntityComplexPart)entity); \n/* 342 */ return new CraftComplexPart(server, (EntityComplexPart)entity);\n/* */ } \n/* 344 */ if (entity instanceof EntityExperienceOrb) return new CraftExperienceOrb(server, (EntityExperienceOrb)entity); \n/* 345 */ if (entity instanceof EntityTippedArrow) return new CraftTippedArrow(server, (EntityTippedArrow)entity); \n/* 346 */ if (entity instanceof EntitySpectralArrow) return new CraftSpectralArrow(server, (EntitySpectralArrow)entity); \n/* 347 */ if (entity instanceof EntityArrow) {\n/* 348 */ if (entity instanceof EntityThrownTrident) return new CraftTrident(server, (EntityThrownTrident)entity); \n/* 349 */ return new CraftArrow(server, (EntityArrow)entity);\n/* */ } \n/* 351 */ if (entity instanceof EntityBoat) return new CraftBoat(server, (EntityBoat)entity); \n/* 352 */ if (entity instanceof net.minecraft.server.v1_16_R2.EntityProjectile) {\n/* 353 */ if (entity instanceof EntityEgg) return new CraftEgg(server, (EntityEgg)entity); \n/* 354 */ if (entity instanceof EntitySnowball) return new CraftSnowball(server, (EntitySnowball)entity); \n/* 355 */ if (entity instanceof EntityPotion) return new CraftThrownPotion(server, (EntityPotion)entity); \n/* 356 */ if (entity instanceof EntityEnderPearl) return new CraftEnderPearl(server, (EntityEnderPearl)entity); \n/* 357 */ if (entity instanceof EntityThrownExpBottle) return new CraftThrownExpBottle(server, (EntityThrownExpBottle)entity); \n/* */ } else {\n/* 359 */ if (entity instanceof EntityFallingBlock) return new CraftFallingBlock(server, (EntityFallingBlock)entity); \n/* 360 */ if (entity instanceof EntityFireball) {\n/* 361 */ if (entity instanceof EntitySmallFireball) return new CraftSmallFireball(server, (EntitySmallFireball)entity); \n/* 362 */ if (entity instanceof EntityLargeFireball) return new CraftLargeFireball(server, (EntityLargeFireball)entity); \n/* 363 */ if (entity instanceof EntityWitherSkull) return new CraftWitherSkull(server, (EntityWitherSkull)entity); \n/* 364 */ if (entity instanceof EntityDragonFireball) return new CraftDragonFireball(server, (EntityDragonFireball)entity); \n/* 365 */ return new CraftFireball(server, (EntityFireball)entity);\n/* */ } \n/* 367 */ if (entity instanceof EntityEnderSignal) return new CraftEnderSignal(server, (EntityEnderSignal)entity); \n/* 368 */ if (entity instanceof EntityEnderCrystal) return new CraftEnderCrystal(server, (EntityEnderCrystal)entity); \n/* 369 */ if (entity instanceof EntityFishingHook) return new CraftFishHook(server, (EntityFishingHook)entity); \n/* 370 */ if (entity instanceof EntityItem) return new CraftItem(server, (EntityItem)entity); \n/* 371 */ if (entity instanceof EntityLightning) return new CraftLightningStrike(server, (EntityLightning)entity); \n/* 372 */ if (entity instanceof EntityMinecartAbstract)\n/* 373 */ { if (entity instanceof EntityMinecartFurnace) return new CraftMinecartFurnace(server, (EntityMinecartFurnace)entity); \n/* 374 */ if (entity instanceof EntityMinecartChest) return new CraftMinecartChest(server, (EntityMinecartChest)entity); \n/* 375 */ if (entity instanceof EntityMinecartTNT) return new CraftMinecartTNT(server, (EntityMinecartTNT)entity); \n/* 376 */ if (entity instanceof EntityMinecartHopper) return new CraftMinecartHopper(server, (EntityMinecartHopper)entity); \n/* 377 */ if (entity instanceof EntityMinecartMobSpawner) return new CraftMinecartMobSpawner(server, (EntityMinecartMobSpawner)entity); \n/* 378 */ if (entity instanceof net.minecraft.server.v1_16_R2.EntityMinecartRideable) return new CraftMinecartRideable(server, (EntityMinecartAbstract)entity); \n/* 379 */ if (entity instanceof EntityMinecartCommandBlock) return new CraftMinecartCommand(server, (EntityMinecartCommandBlock)entity); }\n/* 380 */ else { if (entity instanceof EntityHanging) {\n/* 381 */ if (entity instanceof EntityPainting) return new CraftPainting(server, (EntityPainting)entity); \n/* 382 */ if (entity instanceof EntityItemFrame) return new CraftItemFrame(server, (EntityItemFrame)entity); \n/* 383 */ if (entity instanceof EntityLeash) return new CraftLeash(server, (EntityLeash)entity); \n/* 384 */ return new CraftHanging(server, (EntityHanging)entity);\n/* */ } \n/* 386 */ if (entity instanceof EntityTNTPrimed) return new CraftTNTPrimed(server, (EntityTNTPrimed)entity); \n/* 387 */ if (entity instanceof EntityFireworks) return new CraftFirework(server, (EntityFireworks)entity); \n/* 388 */ if (entity instanceof EntityShulkerBullet) return new CraftShulkerBullet(server, (EntityShulkerBullet)entity); \n/* 389 */ if (entity instanceof EntityAreaEffectCloud) return new CraftAreaEffectCloud(server, (EntityAreaEffectCloud)entity); \n/* 390 */ if (entity instanceof EntityEvokerFangs) return new CraftEvokerFangs(server, (EntityEvokerFangs)entity); \n/* 391 */ if (entity instanceof EntityLlamaSpit) return new CraftLlamaSpit(server, (EntityLlamaSpit)entity); }\n/* */ \n/* */ } }\n/* 394 */ throw new AssertionError(\"Unknown entity \" + ((entity == null) ? null : entity.getClass()));\n/* */ }",
"public interface Entity {\n\n /**\n * Returns the position of this entity in the simulation system.\n *\n * @return the position of this entity.\n * @see Pasture\n * @see Point\n */\n public Point getPosition();\n\n /**\n * Sets the position of this entity.\n *\n * @param newPosition the new position of this entity.\n * @see Point\n */\n public void setPosition(Point newPosition);\n\n /**\n * Performs the relevant actions of this entity, depending on what kind of\n * entity it is.\n */\n public void tick();\n\n /**\n * Returns the icon of this entity, to be displayed by the pasture gui.\n *\n * @see PastureGUI\n */\n public ImageIcon getImage();\n\n /**\n * Returns the name of the entity\n */\n public String type();\n}",
"public void getTile_B8();",
"@Override\n public boolean isTileFriendly(){\n return false;\n }",
"public TileEntity a_()\r\n {\r\n try\r\n {\r\n return (TileEntity)this.mtPPlateEntityClass.newInstance();\r\n }\r\n catch (Exception var2)\r\n {\r\n throw new RuntimeException(var2);\r\n }\r\n }",
"public interface Entity {\r\n\r\n /**\r\n * Gets the initial (relative, map) position of the entity.\r\n * \r\n * @return the initial position of the player\r\n */\r\n Pair<Integer, Integer> getInitialPosition();\r\n\r\n /**\r\n * Gets the position of the entity on screen (absolute, pixel).\r\n * \r\n * @return entity current position on screen\r\n */\r\n Pair<Integer, Integer> getPosition();\r\n\r\n /**\r\n * Sets the position of the entity on screen.\r\n * Can be used to change an absolute position (that is grid locked because they're a multiple of a value) \r\n * to a specific position and place an object everywhere you want\r\n * \r\n * Please check {@link TestEntity} for an in-depth explanation of how this works.\r\n * \r\n * @param position defines the entity position on screen\r\n */\r\n void setPosition(Pair<Integer, Integer> position);\r\n\r\n /**\r\n * Gets the hitbox of the entity (a Rectangle if it's solid, null otherwise).\r\n * \r\n * @return the collision box of the entity.\r\n */\r\n Rectangle getCollisionBox();\r\n\r\n /**\r\n * Gets the path of the image that will be used by the view. \r\n * \r\n * @return the path where the image of the entity is located\r\n */\r\n String getImagePath();\r\n\r\n /**\r\n * Sets the path of the image that will be used by the view.\r\n * \r\n * @param path the path where the image of the entity is located\r\n */\r\n void setImagePath(String path);\r\n\r\n /**\r\n * Method that defines if the entity is destroyed or not.\r\n * \r\n * @return true if destroyed, false otherwise\r\n */\r\n boolean isDestroyed();\r\n\r\n /**\r\n * Sets the status of the entity (true if destroyed, false otherwise).\r\n * \r\n * @param destroyed defines if the entity has been destroyed or not\r\n */\r\n void setStatus(boolean destroyed);\r\n\r\n /**\r\n * Gets the entity width.\r\n * \r\n * @return entity width\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Sets the new entity width.\r\n * \r\n * @param width defines the new entity width\r\n */\r\n void setWidth(int width);\r\n\r\n /**\r\n * Gets the entity height.\r\n * \r\n * @return entity height\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Sets the new entity height.\r\n * \r\n * @param height defines the new entity width\r\n */\r\n void setHeight(int height);\r\n\r\n /**\r\n * Return the state of the block, if it is solid or not.\r\n * @return true if entity is solid, false otherwise.\r\n */\r\n boolean isSolid();\r\n\r\n /**\r\n * Sets the score value of the entity.\r\n * \r\n * @param scoreValue defines the value that will be given (added) to players score when the entity is destroyed\r\n */\r\n void setScoreValue(int scoreValue);\r\n\r\n /**\r\n * Gets the score value of the entity.\r\n * \r\n * @return a score value that defines the value of the entity\r\n */\r\n int getScoreValue();\r\n}",
"public interface MemoryEntity {\n void onCreate();\n void onLoad();\n void onMemoryLow();\n void onDestroy();\n boolean shouldLoad();\n}",
"public Tile getTile() {\n return _tile;\n }",
"public interface GeoTouchSensor extends X3DTouchSensorNode\n{\n\t// ==== Accessor methods: strongly typed get/set methods for compile-time strictness\n\n\t/**\n\t * Provide String value from inputOutput SFString field named <i>description</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> &\n\t * @return value of description field\n\t */\n\t@Override\n\tpublic String getDescription();\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>description</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> &\n\t * @param newValue is new value for the description field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setDescription(String newValue);\n\n\t/**\n\t * Provide boolean value from inputOutput SFBool field named <i>enabled</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Enables/disables node operation.\n\t * @return value of enabled field\n\t */\n\t@Override\n\tpublic boolean getEnabled();\n\n\t/**\n\t * Assign boolean value to inputOutput SFBool field named <i>enabled</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Enables/disables node operation.\n\t * @param newValue is new value for the enabled field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setEnabled(boolean newValue);\n\n\t/**\n\t * Provide GeoOrigin instance (using a properly typed node) (deprecated node, optional) from initializeOnly SFNode field <i>geoOrigin</i>.\n\t * @return value of geoOrigin field\n\t */\n\tpublic GeoOrigin getGeoOrigin(); // acceptable node types: GeoOrigin\n\n\t/**\n\t * Assign GeoOrigin instance (using a properly typed node) (deprecated node, optional) to initializeOnly SFNode field <i>geoOrigin</i>.\n\t * @param newValue is new value for the geoOrigin field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\tpublic GeoTouchSensor setGeoOrigin(GeoOrigin newValue); // acceptable node types: GeoOrigin\n\n\t/**\n\t * Provide array of String results from initializeOnly MFString field named <i>geoSystem</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Identifies spatial reference frame: Geodetic (GD), Geocentric (GC), Universal Transverse Mercator (UTM). Supported values: \"GD\" \"UTM\" or \"GC\" followed by additional quoted string parameters as appropriate for the type. Hint: see X3D Specification 25.2.2 Spatial reference frames http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Spatialreferenceframes Hint: see X3D Specification 25.2.4 Specifying geospatial coordinates http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Specifyinggeospatialcoords Hint: UTM is Universal Transverse Mercator coordinate system https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system Warning: deprecated values are GDC (use GD) and GCC (use GC).\n\t * @return value of geoSystem field\n\t */\n\tpublic String[] getGeoSystem();\n\n\t/**\n\t * Assign String array to initializeOnly MFString field named <i>geoSystem</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Identifies spatial reference frame: Geodetic (GD), Geocentric (GC), Universal Transverse Mercator (UTM). Supported values: \"GD\" \"UTM\" or \"GC\" followed by additional quoted string parameters as appropriate for the type. Hint: see X3D Specification 25.2.2 Spatial reference frames http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Spatialreferenceframes Hint: see X3D Specification 25.2.4 Specifying geospatial coordinates http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Specifyinggeospatialcoords Hint: UTM is Universal Transverse Mercator coordinate system https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system Warning: deprecated values are GDC (use GD) and GCC (use GC).\n\t * @param newValue is new value for the geoSystem field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\tpublic GeoTouchSensor setGeoSystem(String[] newValue);\n\n\t/**\n\t * Provide array of 3-tuple double results from outputOnly SFVec3d field named <i>hitGeoCoord_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing 3D point on surface of underlying geometry, given in GeoTouchSensor's local coordinate system.\n\t * @return value of hitGeoCoord_changed field\n\t */\n\tpublic double[] getHitGeoCoord();\n\t/**\n\t * Provide array of 3-tuple float results from outputOnly SFVec3f field named <i>hitNormal_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing surface normal vector at the hitGeoCoordinate.\n\t * @return value of hitNormal_changed field\n\t */\n\tpublic float[] getHitNormal();\n\t/**\n\t * Provide array of 3-tuple float results from outputOnly SFVec3f field named <i>hitPoint_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing 3D point on surface of underlying geometry, given in geometry coordinates (not geographic coordinates).\n\t * @return value of hitPoint_changed field\n\t */\n\tpublic float[] getHitPoint();\n\t/**\n\t * Provide array of 2-tuple float results from outputOnly SFVec2f field named <i>hitTexCoord_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing texture coordinates of surface at the hitGeoCoordinate.\n\t * @return value of hitTexCoord_changed field\n\t */\n\tpublic float[] getHitTexCoord();\n\t/**\n\t * Provide boolean value from outputOnly SFBool field named <i>isActive</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Select geometry by activating the pointing device (e.g. clicking the mouse) to generate isActive events. Output event isActive=true is sent when geometry is selected (e.g. when primary mouse button is pressed), output event isActive=false is sent when geometry is deselected (e.g. when primary mouse button is released).\n\t * @return value of isActive field\n\t */\n\t@Override\n\tpublic boolean getIsActive();\n\t/**\n\t * Provide boolean value from outputOnly SFBool field named <i>isOver</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Is pointing device over sensor's geometry?.\n\t * @return value of isOver field\n\t */\n\t@Override\n\tpublic boolean getIsOver();\n\t/**\n\t * Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field <i>metadata</i>.\n\t * @see <a href=\"http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Metadata\">X3D Scene Authoring Hints: Metadata Nodes</a>\n\t * @return value of metadata field\n\t */\n\t@Override\n\tpublic X3DMetadataObject getMetadata(); // acceptable node types: X3DMetadataObject\n\n\t/**\n\t * Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field <i>metadata</i>.\n\t * @see <a href=\"http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Metadata\">X3D Scene Authoring Hints: Metadata Nodes</a>\n\t * @param newValue is new value for the metadata field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setMetadata(X3DMetadataObject newValue); // acceptable node types: X3DMetadataObject\n\n\t/**\n\t * Provide double value in seconds from outputOnly SFTime field named <i>touchTime</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Time event generated when touched. Hint: touchTime event is generated when following three conditions are all met: (a) pointing device was pointing towards geometry when initially activated (isActive=true), (b) pointing device is currently pointing towards the geometry (isOver=true), and (c) pointing device selection is deactivated/deselected by user (isActive=false event is also generated).\n\t * @return value of touchTime field\n\t */\n\t@Override\n\tpublic double getTouchTime();\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>DEF</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> DEF defines a unique ID name for this node, referenceable by other nodes. Hint: descriptive DEF names improve clarity and help document a model. Hint: well-defined names can simplify design and debugging through improved author understanding. Hint: X3D Scene Authoring Hints, Naming Conventions http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions.\n\t * <br><br>\n\t * Note that setting the DEF value clears the USE value.\n\t * @param newValue is new value for the DEF field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setDEF(String newValue);\n\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>USE</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value). Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance. Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute. Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.\n\t * <br><br>\n\t * <i>Note:</i> each <code>USE</code> node is still an independent object, with the <code>USE</code> value matching the <code>DEF</code> value in the preceding object. \n\t * <br><br>\n\t * <i>WARNING:</i> invoking the <code>setUSE()</code> method resets all other fields to their default values and also releases all child nodes.<br><br>\n\t * <i>WARNING:</i> no other operations can be performed to modify a USE node other than setting an alternate containerField value.\n\t * @param newValue is new value for the USE field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setUSE(String newValue);\n\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>class</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> The class attribute is a space-separated list of classes, reserved for use by CSS cascading stylesheets. Warning: currently the class attribute is only supported in XML encoding of X3D scenes. Hint: W3C Cascading Style Sheets https://www.w3.org/Style/CSS.\n\t * @param newValue is new value for the class field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setCssClass(String newValue);\n\n}",
"public interface TileSource extends Attributed {\n\n /**\n * Specifies the different mechanisms for detecting updated tiles\n * respectively only download newer tiles than those stored locally.\n *\n * <ul>\n * <li>{@link #IfNoneMatch} Server provides ETag header entry for all tiles\n * and <b>supports</b> conditional download via <code>If-None-Match</code>\n * header entry.</li>\n * <li>{@link #ETag} Server provides ETag header entry for all tiles but\n * <b>does not support</b> conditional download via\n * <code>If-None-Match</code> header entry.</li>\n * <li>{@link #IfModifiedSince} Server provides Last-Modified header entry\n * for all tiles and <b>supports</b> conditional download via\n * <code>If-Modified-Since</code> header entry.</li>\n * <li>{@link #LastModified} Server provides Last-Modified header entry for\n * all tiles but <b>does not support</b> conditional download via\n * <code>If-Modified-Since</code> header entry.</li>\n * <li>{@link #None} The server does not support any of the listed\n * mechanisms.</li>\n * </ul>\n *\n */\n public enum TileUpdate {\n IfNoneMatch, ETag, IfModifiedSince, LastModified, None\n }\n\n /**\n * Specifies the maximum zoom value. The number of zoom levels is [0..\n * {@link #getMaxZoom()}].\n *\n * @return maximum zoom value that has to be smaller or equal to\n * {@link JMapViewer#MAX_ZOOM}\n */\n int getMaxZoom();\n\n /**\n * Specifies the minimum zoom value. This value is usually 0.\n * Only for maps that cover a certain region up to a limited zoom level\n * this method should return a value different than 0.\n *\n * @return minimum zoom value - usually 0\n */\n int getMinZoom();\n\n /**\n * @return The supported tile update mechanism\n * @see TileUpdate\n */\n TileUpdate getTileUpdate();\n\n /**\n * A tile layer name has to be unique and has to consist only of characters\n * valid for filenames.\n *\n * @return Name of the tile layer\n */\n String getName();\n\n /**\n * Constructs the tile url.\n *\n * @param zoom\n * @param tilex\n * @param tiley\n * @return fully qualified url for downloading the specified tile image\n */\n String getTileUrl(int zoom, int tilex, int tiley) throws IOException;\n\n /**\n * Specifies the tile image type. For tiles rendered by Mapnik or\n * Osmarenderer this is usually <code>\"png\"</code>.\n *\n * @return file extension of the tile image type\n */\n String getTileType();\n\n /**\n * Specifies how large each tile is.\n * @return The size of a single tile in pixels.\n */\n int getTileSize();\n\n double latToTileY(double lat, int zoom);\n\n double lonToTileX(double lon, int zoom);\n\n double tileYToLat(int y, int zoom);\n\n double tileXToLon(int x, int zoom);\n}",
"public interface Entity {\n\n\tpublic abstract Point getCenterPosition();\n\n\tpublic abstract float getHeight();\n\n\tpublic abstract Colliding getHitbox();\n\n\tpublic abstract float getLifetime();\n\n\tpublic abstract String getName();\n\n\tpublic abstract Point getPosition();\n\n\tpublic abstract Team getTeam();\n\n\tpublic abstract float getWidth();\n\n\tpublic abstract boolean hit(Bullet bullet);\n\n\tpublic abstract void render();\n\n\tpublic abstract void renderShapes();\n\n\tpublic abstract void renderText();\n\n\tpublic abstract boolean update();\n}",
"boolean isImageTileType();",
"DeviceSensor createDeviceSensor();",
"public interface IPlatform \n{\n /**\n * Main function of the interface. Returns the boolean representing if the given actor\n * can stand on it.\n * \n * @param a The entity to query\n */\n boolean canSupportEntity(Entity a);\n \n boolean bottomIsCollidable();\n}",
"public interface Generified {\n\n\n /**\n * @return The information about this entity generification.<br>\n * The generics metadata for this element\n */\n Generics generic();\n\n}",
"public interface IRobotDeviceRequest {\n\n /**\n * Returns the device name.\n * \n * @return the device name\n */\n String getDeviceName();\n\n /**\n * Returns the priority of the request.\n * \n * @return the priority of the request\n */\n int getPriority();\n\n /**\n * Returns the time-stamp of this request.\n * \n * @return the time-stamp of this request\n */\n long getTimeStamp();\n\n /**\n * Uid to differentiate the device requests.\n * \n * @return\n */\n long getUID();\n}",
"public interface IUrlTileProviderPrimitive\n extends ITileProviderPrimitive\n{\n\n public abstract int getHeight();\n\n public abstract URL getTileUrl(int i, int j, int k);\n\n public abstract int getWidth();\n}",
"SerializableState getTile(Long id, int x, int y) throws RemoteException;",
"Map<String, ISensor> getSensorMap();",
"void buildDome(Tile t);",
"public interface MoverEntity {\n\t\n\n\t/**\n\t * Request The entity notify the user of an event.\n\t * @param message The message to send to the user.\n\t */\n\tpublic void alert(String message);\n\n\t/**\n\t * Determine if the entity is at a fire port in a building.\n\t * @return The fire port or null.\n\t */\n\tpublic FirePort atFirePort();\n\n\t/** \n\t * Clear the circle order for this entity.\n\t * \n\t */\n\tpublic void clearCircle();\n\n\t/**\n\t * If the entity is at a fire port, exit it and clear the fire port.\n\t */\n\tpublic void clearFirePort();\n\t\n\t/**\n\t * Clears the order for an entity to move to a floor in a building. \n\t */\n\tpublic void clearGotoFloor();\n\n\t/**\n\t * Causes an entity to consume an amount of fuel.\n\t * @param amount The amount of fuel to consume.\n\t */\n\tpublic void consumeFuel(double amount);\n\n\t/**\n\t * Cause an entity to enter a vehicle deployed bridge.\n\t * @param bridge The bridge to enter.\n\t * @return True if the action was successful.\n\t */\n\tpublic boolean enterBridge(BridgeEntity bridge);\n\n\t/**\n\t * If the entity is in a pit, exit it.\n\t */\n\tpublic void exitPit();\n\t\n\t/**\n\t * Determine if an entity has fired recently.\n\t * @param time The current game time.\n\t * @return True if the entity has fired recently. \n\t */\n\tpublic boolean firedRecently(double time);\n\n\t/**\n\t * Get the height of the entity off the ground for ground movers.\n\t * @return Entity height.\n\t */\n\tpublic double getBaseHeight();\n\n\t/**\n\t * If this entity is capable of deploying a bridge, determine the state of the bridge.\n\t * @see sim.Constants\n\t * @return The state of the bridge.\n\t */\n\tpublic int getBridgeState();\n\n\t/**\n\t * Get the building occupied by this entity.\n\t * @return The building object or null if the entity is not in a building.\n\t */\n\tpublic Building getBuilding();\n\n\t/**\n\t * Get the status of any CBR carried by this entity.\n\t * @return The CBR status as an integer.\n\t * @see Sim.Constants\n\t */\n\tpublic int getCBRStatus();\n\n\t/**\n\t * Get the time this entity will complete its setup or packup of its CBR\n\t * @return The game time the operation will be completed.\n\t */\n\tpublic double getCBRTime();\n\t\n\t/**\n\t * If this entity is currently circling, get the coordinate for the \n\t * centre of the circle.\n\t * @return The coordinate of the centre, or null if not circling.\n\t */\n\tpublic Coordinate getCircle();\n\t\n\t/**\n\t * Identify if the entity is circling clockwise or anticlockwise.\n\t * @return True if circling clockwise, false if not.\n\t */\n\tpublic boolean getCircleClockwise();\n\t\n\t/**\n\t * Identify if the entity has been ordered to mover toward and \n\t * mount another entity, as a passenger.\n\t * @return The target carrier or null if there is no mount order.\n\t */\n\tpublic CarrierEntity getCommandMount();\n\n\t/**\n\t * Identify if the entity has been ordered to move toward and enter a pit.\n\t * @return The target pit or null if there is no pit order.\n\t */\n\tpublic Pit getCommandPit();\n\n\t/**\n\t * Get the speed this entity has been ordered to use.\n\t * @return The entities ordered speed (kph).\n\t */\n\tpublic double getCommandSpeed();\n\n\t/**\n\t * Identify if this entity is part of a convoy.\n\t * @return The entity that is leading the convoy or null if this entity is \n\t * not part of a convoy.\n\t */\n\tpublic MoverEntity getConvoyLeader();\n\n\t/**\n\t * Get the current amount of fuel available for this entity.\n\t * @return The volume of fuel available.\n\t */\n\tpublic double getCurrentFuel();\n\n\t/**\n\t * Get the actual speed this entity is currently traveling at.\n\t * @return The entity's speed (kph).\n\t */\n\tpublic double getCurrentSpeed();\n\n\t/**\n\t * Get the current defilade state for this entity.\n\t * @return The defilade state.\n\t * @see Sim.Constants\n\t */\n\tpublic int getDefilade();\n\n\t/**\n\t * Get the current delay time for this entity.\n\t * @return The delay time (secs).\n\t */\n\tpublic double getDelay();\n\n\t/**\n\t * Get the direction this entity is currently facing.\n\t * @return The direction in radians from east.\n\t */\n\tpublic double getDirectionFace();\n\n\t/**\n\t * Get the direction this entity is currently moving toward.\n\t * @return The direction in radians from east.\n\t */\n\tpublic double getDirectionMove();\n\n\t/**\n\t * Get the direction this entity is currently viewing.\n\t * @return The direction in radians from east.\n\t */\n\tpublic double getDirectionView();\n\n\t/**\n\t * If this entity is in a building, get the floor it is on.\n\t * @return The floor number.\n\t */\n\tpublic int getFloor();\n\n\t/**\n\t * Identify if this entity is part of a formation and if so, get the leader entity.\n\t * @return The entity leading the formation or null if this entity is not part \n\t * of a formation.\n\t */\n\tpublic MoverEntity getFormationLeader();\n\n\t/**\n\t * If this entity has been ordered to change floors, get the floor it has \n\t * been ordered to move to.\n\t * @return The floor number (zero = ground).\n\t */\n\tpublic int getGotoFloor();\n\n\t/**\n\t * If this entity is at a hold node, get the time it elapses.\n\t * @return The hold time in seconds, or zero if it is not holding.\n\t */\n\tpublic double getHoldTime();\n\n\t/**\n\t * Get the expanded ID of this entity.\n\t * @return A string containing the expanded ID for the entity.\n\t */\n\tpublic String getID();\n\n\t/** \n\t * Get the time this entity last moved.\n\t * @return The time (secs) or -NEVER if the entity has not moved.\n\t */\n\tpublic double getLastMoved();\n\n\t/**\n\t * Get the current location for this entity.\n\t * @return The entity's current location.\n\t */\n\tpublic Coordinate getLocation();\n\n\t/**\n\t * Get the current mine clearing mode for this entity.\n\t * @return A mine clearing mode.\n\t * @see sim.Constants\n\t */\n\tpublic int getMineClearingMode();\n\n\t/**\n\t * Get the current movement mode for this entity.\n\t * @return The movement mode.\n\t * @see sim.Constants\n\t */\n\tpublic int getMoveMode();\n\n\t/** \n\t * identify of this entity is inoperative due to BNC effects.\n\t * @return >0 if the entity is inoperative. Return code is the reason.\n\t */\n\tpublic int getNBCInoperative();\n\n\t/**\n\t * Get the number of elements in this entity (if an aggregate) that have\n\t * mobility kills.\n\t * @return The number of mobility kills.\n\t */\n\tpublic int getNonMovers();\n\n\t/**\n\t * Get the current number of living elements in this entity (if an aggregate).\n\t * @return The number of elements.\n\t */\n\tpublic int getNumberOfElements();\n\n\t/**\n\t * Identify if this entity is in a pit.\n\t * @return The pit if the entity occupies one, or null.\n\t */\n\tpublic Pit getPit();\n\n\t/** \n\t * Get the platform type for this entity.\n\t * @return The platform.\n\t */\n\tpublic Platform getPlatform();\n\n\t/**\n\t * Identify if this entity is on (or above for a flier) the roof of a building.\n\t * @return The building if the entity is on the roof, or null.\n\t */\n\tpublic Building getRoof();\n\n\t/**\n\t * Identify if the entity has a valid movement route.\n\t * @return The route if it has one, otherwise null.\n\t */\n\tpublic Route getRoute();\n\n\t/**\n\t * Get the time at which the entity will complete an upload activity.\n\t * @return The time (secs) when the upload will complete.\n\t */\n\tpublic double getUploadTime();\n\n\t/**\n\t * Get the list of weapons carried by the entity.\n\t * @return The list of weapons.\n\t */\n\tpublic Vector<EntityWeapon> getWeaponList();\n\n\t/**\n\t * Get the speed degradation factor if the entity must slow to fire a weapon.\n\t * @return The speed factor (0<=f<=1).\n\t */\n\tpublic double getSlowToFire();\n\n\t/**\n\t * Identify if the entity is currently wearing NBC protection. \n\t * @return True if set with NBC protection.\n\t */\n\tpublic boolean getMOPP();\n\n\t/**\n\t * Get the radius if the circle for an entity that is circling.\n\t * @return The radius (km).\n\t */\n\tpublic double getCircleRadius();\n\n\t/**\n\t * If an entity has a circle order, get the time the order will be completed.\n\t * @return The time (secs).\n\t */\n\tpublic double getCircleTime();\n\n\t/**\n\t * If this entity is constructing an obstacle, get the obstacle.\n\t * @return The obstacle or null.\n\t */\n\tpublic Obstacle getConstructingObstacle();\n\n\t/**\n\t * Get the location the entity is moving to if it has a move order.\n\t * @return The movement objective if it has one, otherwise null.\n\t */\n\tpublic Coordinate getMoveTo();\n\n\t/** \n\t * Get the entity that is carrying this entity if it mounted.\n\t * @return The carrier entity if mounted, otherwise null.\n\t */\n\tpublic CarrierEntity getCarrier();\n\n\t/**\n\t * Get the flight mode (AGL or AMSL) for this entity.\n\t * @return The flight mode.\n\t * @see sim.Constants\n\t */\n\tpublic int getFlightMode();\n\n\t/**\n\t * Get the altitude for this entity (if it is a flier).\n\t * @return The altitude (km).\n\t */\n\tpublic double getAltitude();\n\n\t/**\n\t * Triggers an entity at a stop or hold movement node to start moving.\n\t */\n\tpublic void go();\n\n\t/**\n\t * Order the entity to go down one floor in a building.\n\t */\n\tpublic void goDown();\n\n\t/**\n\t * Order the entity to go up one floor in a building.\n\t */\n\tpublic void goUp();\n\n\t/**\n\t * Test is the entity is using one of the move modes that represents crawling.\n\t * @return true if crawling.\n\t * @see sim.Constants\n\t */\n\tpublic boolean iAmCrawling();\n\n\t/**\n\t * Test if the entity is currently digging an obstacle.\n\t * @return True if digging.\n\t */\n\tpublic boolean iamDigging();\n\n\t/**\n\t * Test if the entity is using one of the move modes that represents running.\n\t * @return True if running.\n\t */\n\tpublic boolean iAmRunning();\n\n\t/**\n\t * Test if the entity is currently clearing mines.\n\t * @return True if clearing mines.\n\t */\n\tpublic boolean isClearingMines();\n\n\t/**\n\t * Test if the entity is using a conical view instead of the standard view.\n\t * @return True if using conical view.\n\t */\n\tpublic boolean isConicalView();\n\n\t/**\n\t * Test if the entity has its engine on.\n\t * @return True if the engine is on.\n\t */\n\tpublic boolean isEngineOn();\n\n\t/**\n\t * Test if the entity is currently holding: waiting for time to elapse before moving. \n\t * @return True if holding.\n\t */\n\tpublic boolean isHolding();\n\n\t/**\n\t * Test if the entity is currently mounted.\n\t * @return true if mounted.\n\t */\n\tpublic boolean isMounted();\n\n\t/**\n\t * Test if the entity is currently at a stop node.\n\t * @return True if stopped.\n\t */\n\tpublic boolean isStopped();\n\n\t/**\n\t * Test if the entity is currently suppressed.\n\t * @return true if suppressed.\n\t */\n\tpublic boolean isSuppressed();\n\n\t/**\n\t * Test if tracing has been requested for this entity.\n\t * @return True if tracing is active.\n\t */\n\tpublic boolean isTracing();\n\n\t/**\n\t * Test if this entity is currently uploading, given the current clock. \n\t * @param clock The current game time.\n\t * @return True if the entity is still uploading.\n\t */\n\tpublic boolean isUploading(double clock);\n\n\t/**\n\t * Order the entity to mount a carrier that is already nearby.\n\t * @param carrier The carrier to mount.\n\t */\n\tpublic void mount(CarrierEntity carrier);\n\n\t/**\n\t * Order the entity to move to and occupy a pit.\n\t * @param pit The pit to occupy.\n\t */\n\tpublic void occupyPit(Pit pit);\n\n\t/**\n\t * Test if the entity is currently on a bridge.\n\t * @return The bridge, or null if not on a bridge.\n\t */\n\tpublic BridgeEntity onBridge();\n\n\t/**\n\t * Order an entity to recover a bridge.\n\t * @param clock The current game time.\n\t * @return True if the bridge is already recovered (or the entity is not a bridge layer).\n\t */\n\tpublic boolean recoverBridge(double clock);\n\n\t/**\n\t * Reset the fuel warning flag for an entity.\n\t */\n\tpublic void resetFuelWarning();\n\n\t/**\n\t * Order the entity to start or stop clearing mines.\n\t * @param b If true, the entity will start clearing mines, otherwise it will stop.\n\t */\n\tpublic void setClearMines(boolean b);\n\n\t/**\n\t * Order the entity to move toward and mount another entity.\n\t * @param carrier The entity to mount.\n\t */\n\tpublic void setCommandMount(CarrierEntity carrier);\n\n\t/**\n\t * Order the entity to construct an obstacle.\n\t * @param obstacle The obstacle to construct.\n\t */\n\tpublic void setConstructingObstacle(Obstacle obstacle);\n\n\t/**\n\t * Order the entity to travel at a specific speed.\n\t * @param speed The speed to use (kph).\n\t */\n\tpublic void setCurrentSpeed (double speed);\n\n\t/**\n\t * Set the defilade state for the entity.\n\t * @param defiladeState The defilade state.\n\t * @see sim.Constants\n\t */\n\tpublic void setDefilade(int defiladeState);\n\n\t/**\n\t * Set a delay for this entity.\n\t * @param clock The time at which the delay elapses.\n\t */\n\tpublic void setDelay(double clock);\n\n\t/**\n\t * Set the direction of movement.\n\t * @param direction Direction in radians from east.\n\t */\n\tpublic void setDirectionMove(double direction);\n\n\t/**\n\t * Turn the entity's engine off.\n\t */\n\tpublic void setEngineOff();\n\n\t/**\n\t * Turn the entity's engine on.\n\t */\n\tpublic void setEngineOn();\n\n\t/**\n\t * Record the time at which the entity last moved.\n\t * @param time The time the entity moved (seconds).\n\t */\n\tpublic void setLastMoved(double time);\n\n\t/**\n\t * Update the entity's location. \n\t * @param coordinate The new location.\n\t */\n\tpublic void setLocation(Coordinate coordinate);\n\n\t/**\n\t * Set the location the entity has been ordered to move to.\n\t * @param coordinate The location to move to. If null, the entity will cancel its \n\t * command move order.\n\t */\n\tpublic void setMoveTo(Coordinate coordinate);\n\n\t/**\n\t * Set the roof that the entity is on or above (if an aircraft).\n\t * @param building\n\t */\n\tpublic void setRoof(Building building);\n\n\t/**\n\t * Order the entity to stop moving.\n\t */\n\tpublic void stop();\n\n\t/**\n\t * Order the entity to stop moving and send a message to the user explaining why.\n\t * @param message The message to send.\n\t */\n\tpublic void stop (String message);\n\n\t/**\n\t * Force the entity to recalculate its conical view settings.\n\t */\n\tpublic void updateConicalView();\n\n\t/**\n\t * Update the entity's direction of view relative to its current direction of movement.\n\t */\n\tpublic void updateDirectionView();\n\n\t/**\n\t * Update the entity's direction of facing relative to its current direction of movement.\n\t */\n\tpublic void updateDirectionFace();\n\n\t/**\n\t * Force the entity to recalculate its mounted status.\n\t */\n\tpublic void updateMount();\n}",
"@Override\n\tpublic TileEntity createNewTileEntity(World worldIn, int meta) {\n\t\treturn new TileTable();\n\t}",
"Sensor getSensor();",
"public interface DeviceResource extends GpoResource, GpiResource {\n\n public String getId();\n}",
"public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}",
"public interface Clash extends EntityComponent {\r\n}",
"Entity getShooter();",
"public static ElectronicDevice getDevice(){\n\t\treturn new Television();\n\t\t\n\t}",
"@Override\n\tpublic TileEntity createNewTileEntity(World world) {\n\t\treturn new TileEntityGrinder();\n\t}",
"public Tile getTileAt(Position p);",
"public interface DeviceBasedTask {\n\n\tpublic Device getDevice();\n\n\tpublic void setDevice(Device device);\n}",
"@NotNull\r\n BlockState[] getTileEntities();",
"DeviceId deviceId();",
"DeviceId deviceId();",
"public interface IEntity {\n\n\t/**\n\t * Get the modifier used for an defensive action of the specified type\n\t * \n\t * @param type\n\t * The type of action being undertaken\n\t * @return The modifier to use for the action being taken\n\t */\n\tint getDefensiveMod(ActionType type);\n\n\t/**\n\t * Get the modifier used for an offensive action of the specified type\n\t * \n\t * @param type\n\t * The type of action being undertaken\n\t * @return The modifier to use for the action being taken\n\t */\n\tint getOffensiveMod(ActionType type);\n\n\t/**\n\t * Give the entity a specified amount of combat damage\n\t * \n\t * @param damage\n\t * The amount of the damage the entity takes\n\t * @return Whether or not the entity is still alive\n\t */\n\tboolean takeDamage(DamageCount damage);\n}",
"public TileEntity createTileEntity(World world, int metadata)\n {\n if (metadata==0||metadata==1)\n {\n \treturn createNewTileEntity(world,0);\n }\n if(metadata == 2||metadata==3)\n \treturn new TileEntityMultiBlockPart();\n return null;\n }",
"boolean canBuildDome(Tile t);",
"public TileEntity a_()\n {\n return new TileMarker();\n }",
"public interface INutritionInformation extends IStructuredValue{\r\n\t\r\n\t\r\n\t/**\r\n\t * The number of grams of protein.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getProteinContent() throws ClassCastException;\r\n\t\r\n\tpublic void setProteinContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of sugar.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getSugarContent() throws ClassCastException;\r\n\t\r\n\tpublic void setSugarContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of unsaturated fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getUnsaturatedFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setUnsaturatedFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of calories.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Energy getCalories() throws ClassCastException;\r\n\t\r\n\tpublic void setCalories(Energy value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of saturated fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getSaturatedFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setSaturatedFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The serving size, in terms of the number of volume or mass.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic String getServingSize() throws ClassCastException;\r\n\t\r\n\tpublic void setServingSize(String value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of fiber.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getFiberContent() throws ClassCastException;\r\n\t\r\n\tpublic void setFiberContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of carbohydrates.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getCarbohydrateContent() throws ClassCastException;\r\n\t\r\n\tpublic void setCarbohydrateContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of trans fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getTransFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setTransFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of milligrams of cholesterol.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getCholesterolContent() throws ClassCastException;\r\n\t\r\n\tpublic void setCholesterolContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of milligrams of sodium.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getSodiumContent() throws ClassCastException;\r\n\t\r\n\tpublic void setSodiumContent(Mass value) throws ClassCastException;\r\n}",
"DeviceClass getDeviceClass();",
"public interface SmartDevicesDb {\n\t\n\tpublic static String INTERFACES = \"smart-interfaces\";\n\tpublic static String DEVICES = \"smart-devices\";\n\t\n\t/**\n\t * Add a new interface for smart devices, e.g. a smart home HUB or MQTT broker.\n\t * @param data - object with e.g. id, type, name, host, auth_info, auth_data, etc.\n\t * @return result code (0 - all good, 1 - no connection or error, 2 - invalid data)\n\t */\n\tpublic int addOrUpdateInterface(JSONObject data);\n\t/**\n\t * Remove interface with given ID.\n\t * @param id - ID of the interface, e.g. fhem2\n\t * @return result code (0 - all good, 1 - no connection or error)\n\t */\n\tpublic int removeInterface(String id);\n\t/**\n\t * Load all known interfaces.\n\t * @return Map with interface IDs as keys, empty map or null (error during load)\n\t */\n\tpublic Map<String, SmartHomeHub> loadInterfaces();\n\t/**\n\t * Return a cached map of interfaces (to reduce database i/o).\t\n\t */\n\tpublic Map<String, SmartHomeHub> getCachedInterfaces();\n\t\n\t/**\n\t * Add a custom smart device.\n\t * @param data - object with e.g. name, type, room, custom_commands, etc.\n\t * @return JSON with device (doc) \"id\" (if new) and result \"code\" (0=good, 1=connection err, 2=other err)\n\t */\n\tpublic JSONObject addOrUpdateCustomDevice(JSONObject data);\n\t/**\n\t * Remove custom smart device with given ID.\n\t * @param id - ID of the device\n\t * @return result code\n\t */\n\tpublic int removeCustomDevice(String id);\n\t/**\n\t * Get custom smart device with given ID.\n\t * @param id - ID of the device\n\t * @return\n\t */\n\tpublic SmartHomeDevice getCustomDevice(String id);\n\t/**\n\t * Get all custom smart devices that correspond to filter set.<br>\n\t * NOTE: If you add multiple filters the method will try to get the best fit but may return partial fits! Be sure to check the result again afterwards. \n\t * @param filters - Map with filters, e.g. type=\"light\" ({@link SmartDevice.Types}) or typeArray=\"heater, fan\" (string or collection), room=\"livingroom\" ({@link Room.Types}) or roomArray, etc.\n\t * @return\n\t */\n\tpublic Map<String, SmartHomeDevice> getCustomDevices(Map<String, Object> filters);\n\t\n\t/**\n\t * Returns a map with device type as key and a set of device names for this type as value.<br> \n\t * The method is meant to be used for example by NLU parameters to extract entities. It should return a buffered result for super fast\n\t * access.<br>\n\t * Note for developers: AVOID RELOADING during the call (except on first call) since this can slow down SEPIA's NLU chain dramatically!\n\t * @return set of device names by type\n\t */\n\tpublic Map<String, Set<String>> getBufferedDeviceNamesByType();\n\t/**\n\t * Clear device name buffer.\n\t * @return success/fail\n\t */\n\tpublic boolean clearDeviceTypeAndNameBuffer();\n\t\n}",
"private void createTileEntity(StringTokenizer tiler, World world,\n\t\t\tint xplane, int yplane, int zplane, List <ItemStack> contents,\n\t\t\tRandom random) {\n\t\t\n\t\t\n\t\t String type = tiler.nextToken(\"(\");\n\t\t String tileID = tiler.nextToken(\",\");\n\t\t String blockID = tileID.substring(1);\n\t\t String tmetaData = tiler.nextToken(\")\");\n\t\t TileEntity tile;\n\t\t String metaData = tmetaData.substring(1);\n\t\t ItemStack[] myStack;\n\t\t \n\t\t//Piston \n\t\tif (Integer.parseInt(blockID) == 29)\n\t\t{ \n\t\t\tworld.setBlockAndMetadata(xplane, yplane, zplane, Integer.parseInt(blockID),Integer.parseInt(metaData));\n\t\t}\n\t\t//Chest\n\t\tif (Integer.parseInt(blockID) == 54)\n\t\t{\n\t\t\tworld.setBlockWithNotify(xplane, yplane, zplane, Block.chest.blockID);\n TileEntityChest chest = (TileEntityChest)world.getBlockTileEntity(xplane, yplane, zplane);\n\t\t\tworld.setBlockMetadata(xplane, yplane, zplane, Integer.parseInt(metaData));\n\t\t\tmyStack = contents.toArray(new ItemStack [36]);\n\t\t\tfor(int iii = 0; iii < myStack.length;iii++)\n\t\t\t{\n\t\t\tchest.setInventorySlotContents(iii, myStack[iii]);\n\t\t\t}\n\t\t}\n\t\t//Dipenser\n\t\tif (Integer.parseInt(blockID) == 23)\n\t\t{\n\t\t\tworld.setBlockWithNotify(xplane, yplane, zplane, Block.dispenser.blockID);\n TileEntityDispenser dispenser = (TileEntityDispenser)world.getBlockTileEntity(xplane, yplane, zplane);\n\t\t\tworld.setBlockMetadata(xplane, yplane, zplane, Integer.parseInt(metaData));\n\t\t\tmyStack = contents.toArray(new ItemStack [9]);\n\t\t\tfor(int iii = 0; iii < myStack.length;iii++)\n\t\t\t{\n\t\t\t\tdispenser.setInventorySlotContents(iii, myStack[iii]);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void updateTileEntity(IBlockAccess world, int x, int y, int z) {\n }",
"PhysicalThing createPhysicalThing();",
"public void renderTileEntityAt(TileEntity var1, double var2, double var4, double var6, float var8) {}",
"@Override\n\tpublic Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {\n\t TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n\t if(tileEntity instanceof TileEntityBioCarbonizer){\n\t \treturn new ContainerBioCarbonizer(player.inventory, (TileEntityBioCarbonizer)tileEntity);\n\t }else if(tileEntity instanceof TileEntityBlast){\n\t \treturn new ContainerBlast(player.inventory,(TileEntityBlast)tileEntity);\n\t }else if(tileEntity instanceof TileEntityIncinerator){\n\t \treturn new ContainerIncinerator(player.inventory,(TileEntityIncinerator)tileEntity);\n\t }\n return null;\n}",
"public interface ISchemaEntity {\n\t\n\tpublic static final String KEY_NAME = \"Name\";\n\t\n\t\n\t/**\n\t * Vraca sucelje sklopa koji se modelira\n\t * u schematicu - broj i vrstu portova.\n\t * \n\t */\n\tCircuitInterface getCircuitInterface(ISchemaInfo info);\n\t\n\t\n\t/**\n\t * Vraca mapu parametara komponente\n\t * koja se modelira u schematicu.\n\t * Na temelju dijela ove kolekcije biti ce kasnije\n\t * izgraden generic blok pri generiranju\n\t * strukturnog VHDLa.\n\t * \n\t */\n\tIParameterCollection getParameters();\n\t\n\t/**\n\t * Postavlja parametre (vidi metodu\n\t * getParameters()).\n\t * \n\t * @param parameters\n\t */\n\tvoid setParameters(IParameterCollection parameters);\n\t\n\t/**\n\t * Vraca vrijednost uvijek prisutnog parametra pod kljucem KEY_NAME,\n\t * koji oznacava ime entity-a.\n\t */\n\tCaseless getName();\n\t\n\t/**\n\t * Dohvaca portove sucelja modelirane komponente.\n\t * \n\t */\n\tpublic List<Port> getPorts(ISchemaInfo info);\n\t\n\t/**\n\t * Brise portove i ne-defaultne parametre.\n\t *\n\t */\n\tvoid reset();\n\t\n}",
"public TileEntity createNewTileEntity(World par1World) {\n\t\ttry {\n\t\t\treturn (TileEntity) this.signEntityClass.newInstance();\n\t\t} catch (Exception var3) {\n\t\t\tthrow new RuntimeException(var3);\n\t\t}\n\t}",
"public interface Meta {\r\n\r\n /**\r\n * Get the Type of the OSM object\r\n * \r\n * @return the Type\r\n */\r\n @NotNull\r\n default Type getType() {\r\n throw new IllegalArgumentException(\"getType is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM elements tags\r\n * \r\n * @return a Map of KV tupels\r\n */\r\n @Nullable\r\n default Map<String, String> getTags() {\r\n throw new IllegalArgumentException(\"getTags is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM display name\r\n * \r\n * @return the OSM display name\r\n */\r\n String getUser();\r\n\r\n /**\r\n * Get the OSM id of the object\r\n * \r\n * @return the OSM id of the object\r\n */\r\n long getId();\r\n\r\n /**\r\n * Get the version of the object\r\n * \r\n * @return the version of the object\r\n */\r\n long getVersion();\r\n\r\n /**\r\n * Get the changeset id for this object\r\n * \r\n * @return the changeset id for this object\r\n */\r\n long getChangeset();\r\n\r\n /**\r\n * Get the timestamp (when this version of the object was created)\r\n * \r\n * @return the timestamp in seconds since the Unic EPOCH\r\n */\r\n long getTimestamp();\r\n\r\n /**\r\n * Get the state of the object\r\n * \r\n * @return a State\r\n */\r\n @NotNull\r\n State getState();\r\n\r\n /**\r\n * If the object is a Way check if it is closed\r\n * \r\n * @return true if the way is closed\r\n */\r\n boolean isClosed();\r\n\r\n /**\r\n * If the object is a Way return the number of way nodes\r\n * \r\n * @return the number of way nodes\r\n */\r\n int getNodeCount();\r\n\r\n /**\r\n * If the object is a Node return the number of ways it is a member of\r\n * \r\n * @return the number of ways the Node is a member of\r\n */\r\n int getWayCount();\r\n\r\n /**\r\n * If the object is a Relation return the number of members it has\r\n * \r\n * If not implemented this returns -1 which should always evaluate to false\r\n * \r\n * @return the number of members the Relation has\r\n */\r\n default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }\r\n\r\n /**\r\n * If the object is a Way and closed return the area it covers\r\n * \r\n * @return the area it covers in m^2\r\n */\r\n int getAreaSize();\r\n\r\n /**\r\n * If the object is a Way return its length\r\n * \r\n * @return the the length in m\r\n */\r\n int getWayLength();\r\n\r\n /**\r\n * Get any roles the element has in Relations\r\n * \r\n * @return a Collection containing the roles\r\n */\r\n @NotNull\r\n Collection<String> getRoles();\r\n\r\n /**\r\n * Check if the element is selected\r\n * \r\n * @return true if selected\r\n */\r\n boolean isSelected();\r\n\r\n /**\r\n * Check if a relation has a member with role\r\n * \r\n * @param role the role\r\n * @return true if there is a member with the role\r\n */\r\n boolean hasRole(@NotNull String role);\r\n\r\n /**\r\n * Get a preset from a path specification\r\n * \r\n * @param presetPath the path\r\n * @return an Object that should be a instance of a preset for the syste,\r\n */\r\n @Nullable\r\n Object getPreset(@NotNull String presetPath);\r\n\r\n /**\r\n * Check if the object matches with a preset or a preset group\r\n * \r\n * @param preset the path to the preset or group\r\n * @return true if the object matches\r\n */\r\n boolean matchesPreset(@NotNull Object preset);\r\n\r\n /**\r\n * Check if the element is incomplete (this is not defined in the documentation)\r\n * \r\n * @return true if incomplete\r\n */\r\n boolean isIncomplete();\r\n\r\n /**\r\n * Check if the element is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInview();\r\n\r\n /**\r\n * Check if the element and all member elements is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInview();\r\n\r\n /**\r\n * Check if the element is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInDownloadedArea();\r\n\r\n /**\r\n * Check if the element and all member elements is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInDownloadedArea();\r\n\r\n /**\r\n * Check if the current element is a child of an element\r\n * \r\n * @param type type of the element\r\n * @param element the meta interface to the element\r\n * @param parents a List of elements\r\n * @return true if element is a child\r\n */\r\n default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if the current element is a parent of an element\r\n * \r\n * @param type type of the element\r\n * @param meta the meta interface to the element\r\n * @param children a List of elements\r\n * @return true if element is a parent\r\n */\r\n default boolean isParent(@NotNull Type type, @NotNull Meta meta, @NotNull List<Object> children) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Return a List of Elements that match the condition c\r\n * \r\n * This is necessary so that we can cache these results in the caller\r\n * \r\n * @param c the Condition\r\n * @return a List of elements\r\n */\r\n @NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }\r\n \r\n /**\r\n * Get an Meta implementing object \r\n * \r\n * @param o imput object\r\n * @return returns something that implements this interface\r\n */\r\n @NotNull\r\n Meta wrap(Object o);\r\n}",
"@Override\n public void visitCode() {\n try {\n InstructionInjector injector = new InstructionInjector(mv);\n if (tileEntity) {\n injector.begin();\n injector.addThisObjectToStack();\n injector.addThisObjectToStack();\n injector.addInstanceVarToStack(info.className.replace(\".\", \"/\"), info.facingVar, info.varType);\n injector.addThisObjectToStack();\n injector.addStaticMethodCall(ASMHelper.class.getCanonicalName().replace(\".\", \"/\"), \"canMine\",\n new MethodDescriptor(\"boolean\", new String[] {\n TileEntity.class.getCanonicalName().replace(\".\", \"/\"),\n byte.class.getCanonicalName(),\n Object.class.getCanonicalName().replace(\".\", \"/\")\n }));\n Label l1 = injector.addIfNotEqual();\n injector.addReturn(info.desc.getReturnType(), l1);\n injector.end();\n } else {\n Map<String, Integer> indexes = info.desc.getParamIndexes(new String[] {\n EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"),\n \"XCOORD\",\n \"YCOORD\",\n \"ZCOORD\"\n });\n if(indexes.containsKey(\"XCOORD\") && indexes.containsKey(\"YCOORD\") && indexes.containsKey(\"ZCOORD\")) {\n // We can pass coordinates to use...\n injector.begin();\n injector.addLocalVarToStack(Object.class, indexes.get(EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\")));\n injector.addLocalVarToStack(int.class, indexes.get(\"XCOORD\"));\n injector.addLocalVarToStack(int.class, indexes.get(\"YCOORD\"));\n injector.addLocalVarToStack(int.class, indexes.get(\"ZCOORD\"));\n injector.addThisObjectToStack();\n injector.addStaticMethodCall(ASMHelper.class.getCanonicalName().replace(\".\", \"/\"), \"canMine\",\n new MethodDescriptor(\"boolean\", new String[] {\n EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"),\n int.class.getCanonicalName(),\n int.class.getCanonicalName(),\n int.class.getCanonicalName(),\n Object.class.getCanonicalName().replace(\".\", \"/\")\n }));\n Label l1 = injector.addIfNotEqual();\n injector.addReturn(info.desc.getReturnType(), l1);\n injector.end();\n } else if(indexes.containsKey(EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"))) {\n // We'll have to figure out coordinates on our own based on where the player is looking...\n injector.begin();\n injector.addLocalVarToStack(Object.class, indexes.get(EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\")));\n injector.addThisObjectToStack();\n injector.addStaticMethodCall(ASMHelper.class.getCanonicalName().replace(\".\", \"/\"), \"canMine\",\n new MethodDescriptor(\"boolean\", new String[] {\n EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"),\n Object.class.getCanonicalName().replace(\".\", \"/\")\n }));\n Label l1 = injector.addIfNotEqual();\n injector.addReturn(info.desc.getReturnType(), l1);\n injector.end();\n }\n }\n } catch (Throwable e) {\n FMLLog.log(\"Canine\", Level.WARN, \"%s\", \"Failed to find or patch class: \" + info.className);\n e.printStackTrace();\n }\n }",
"public interface Sensor {\n\n\n\n\n /**\n * Each sensor simulator must collect and\n * report on the temperature of the oven simulator every 100 milliseconds.\n *\n * Each report must include a time stamp and a sensor identifier.\n */\n public abstract void temperatureReport();\n\n public abstract void timer(long milliseconds);\n\n public abstract void updateTemperature(int ovenTemperature);\n\n public abstract void updateTimestamp();\n\n /**\n * To set sensor on or off.\n * @param state set sensor on or off based on oven.\n */\n public abstract void setSensorState(boolean state);\n\n\n\n}",
"public SmartHomeDevice getCustomDevice(String id);",
"public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}",
"public interface IModuleContextTabletActivity extends IModuleContext {\n}",
"public interface Entity {\n /**\n * Method's purpose it to update any relevant state in the entity.\n * Meant to be called before every render, and allows\n * for entities to move or change over time.\n *\n * @param delta time step from when this was last called.\n */\n void update(float delta);\n\n /**\n * Method's purpose is to draw the entity on the screen.\n * Meant to be called every frame, and allows\n * for entities to show be viewed by humans.\n *\n * @param rendererTool Object with which the entity will use to render itself.\n */\n void render(Object rendererTool);\n\n /**\n * Method's purpose it to allow entities to either be drawn with a\n * ShapeRenderer or SpriteBatch. Must be respected when calling render.\n *\n * @return SHAPE_RENDERER if the Entity must be rendered with a ShapeRenderer\n * SPRITE_BATCH if the Entity must be rendered with a SpriteBatch\n */\n RenderTool getRenderTool();\n\n /**\n * Enum that represents the different render tools entity's can use to render\n * themselves.\n */\n enum RenderTool {\n SHAPE_RENDERER, SPRITE_BATCH\n }\n\n /**\n * Method's purpose is to be able to tell when to entities collide,\n * as this is the most common form of interaction between to entities\n * Currently, what to do when a collision occurs is governed by the\n * Collisions class. Calls Collisions.collided(this, other) if\n * this and other overlap with each other.\n *\n * @param other The entity this one is being checked against.\n */\n void checkCollision(Entity other);\n\n /**\n * Method's purpose is to allow an EntityObserver\n * to get notified when the entity expires.\n *\n * @param observer EntityObserver to add to the list of observers\n * to notify when the entity expires.\n */\n void addObserver(EntityObserver observer);\n\n /**\n * Method's purpose is to allow an EntityObserver\n * to cleanse itself from it's responsibilities to\n * the entity class by ignoring the Entity's expiration.\n *\n * @param observer EntityObserver to remove from the list of observers\n * to notify when the entity expires.\n */\n void removeObserver(EntityObserver observer);\n\n /**\n * Method's purpose is to allow the Entity\n * to tell all of it's observers that it has\n * expired, and thus all references of the\n * Entity should be removed, and the other\n * methods of this interface should not\n * be called.\n */\n @SuppressWarnings(\"unused\")\n void expire();\n\n /**\n * Method's purpose is to allow the Entity\n * to tell all of it's observers that it\n * has spawned a new Entity and to add\n * this new Entity to it's list of entities.\n *\n * @param entity The entity to be spawned.\n */\n @SuppressWarnings(\"unused\")\n void spawn(Entity entity);\n}",
"public void onFirstTick_EM(IGregTechTileEntity aBaseMetaTileEntity) {\n }",
"@Override\n\tpublic Class<NewEquipmentRegister> getEntityInstanceClass() {\n\t\treturn NewEquipmentRegister.class;\n\t}",
"public TileEntity getTileEntity(final int x, final int y, final int z) {\n\t\tif(y < 0 || y > 255)\n\t\t\treturn null;\n\t\t\n\t\tfinal int arrayX = (x >> 4) - this.chunkX;\n\t\tfinal int arrayZ = (z >> 4) - this.chunkZ;\n\t\tassert (arrayX >= 0 && arrayX < this.dimX && arrayZ >= 0 && arrayZ < this.dimZ);\n\t\t// if (l >= 0 && l < this.dimX && i1 >= 0 && i1 < this.dimZ)\n\t\treturn this.chunkArray[arrayX + arrayZ * this.dimX].func_150806_e(x & 15, y, z & 15);\n\t}",
"public interface MetaInfo {\n\n String DIR_EMPTY = \"empty\";\n\n\n //===========================\n float WEIGHT_CAMERA_MOTION = 1;\n float WEIGHT_LOCATION = 1;\n float WEIGHT_MEDIA_TYPE = 1;\n float WEIGHT_SHORT_TYPE = 1;\n\n float WEIGHT_MEDIA_DIR = 3f;\n float WEIGHT_TIME = 3;\n float WEIGHT_VIDEO_TAG = 2.5f;\n float WEIGHT_SHOT_KEY = 5f;\n float WEIGHT_SHOT_CATEGORY = 2.5f;\n\n int FLAG_TIME = 0x0001;\n int FLAG_LOCATION = 0x0002;\n int FLAG_MEDIA_TYPE = 0x0004;\n int FLAG_MEDIA_DIR = 0x0008;\n int FLAG_SHOT_TYPE = 0x0010;\n int FLAG_CAMERA_MOTION = 0x0020;\n int FLAG_VIDEO_TAG = 0x0040;\n int FLAG_SHOT_KEY = 0x0080;\n int FLAG_SHOT_CATEGORY = 0x0100;\n\n //================= location ==================\n int LOCATION_NEAR_GPS = 1;\n int LOCATION_SAME_COUNTRY = 2;\n int LOCATION_SAME_PROVINCE = 3; //省,市,区\n int LOCATION_SAME_CITY = 4;\n int LOCATION_SAME_REGION = 5;\n\n //=================== for camera motion ====================\n int STILL = 0; // 静止, class 0\n int ZOOM = 3; // 前后移动(zoomIn or zoomOut), class 1\n int ZOOM_IN = 4;\n int ZOOM_OUT = 5;\n int PAN = 6; // 横向移动(leftRight or rightLeft), class 2\n int PAN_LEFT_RIGHT = 7;\n int PAN_RIGHT_LEFT = 8;\n int TILT = 9; // 纵向移动(upDown or downUp), class 3\n int TILT_UP_DOWN = 10;\n int TILT_DOWN_UP = 11;\n int CATEGORY_STILL = 1;\n int CATEGORY_ZOOM = 2;\n int CATEGORY_PAN = 3;\n int CATEGORY_TILT = 4;\n\n //图像类型。视频,图片。 已有\n\n //============== shooting device =================\n /**\n * the shoot device: cell phone\n */\n int SHOOTING_DEVICE_CELLPHONE = 1;\n /**\n * the shoot device: camera\n */\n int SHOOTING_DEVICE_CAMERA = 2;\n\n /**\n * the shoot device: drone\n */\n int SHOOTING_DEVICE_DRONE = 3; //无人机\n\n\n //====================== shooting mode ===========================\n /**\n * shooting mode: normal\n */\n int SHOOTING_MODE_NORMAL = 1;\n /**\n * shooting mode: slow motion\n */\n int SHOOTING_MODE_SLOW_MOTION = 2;\n /**\n * shooting mode: time lapse\n */\n int SHOOTING_MODE_TIME_LAPSE = 3;\n\n //=========================== shot type =======================\n /**\n * shot type: big - long- short ( 大远景)\n */\n int SHOT_TYPE_BIG_LONG_SHORT = 5;\n /**\n * shot type: long short ( 远景)\n */\n int SHOT_TYPE_LONG_SHORT = 4;\n\n /** medium long shot. (中远景) */\n int SHOT_TYPE_MEDIUM_LONG_SHOT = 3;\n /**\n * shot type: medium shot(中景)\n */\n int SHOT_TYPE_MEDIUM_SHOT = 2;\n /**\n * shot type: close up - chest ( 特写-胸)\n */\n int SHOT_TYPE_MEDIUM_CLOSE_UP = 1;\n\n /**\n * shot type: close up -head ( 特写-头)\n */\n int SHOT_TYPE_CLOSE_UP = 0;\n\n int SHOT_TYPE_NONE = -1;\n\n int CATEGORY_CLOSE_UP = 12; //特写/近景\n int CATEGORY_MIDDLE_VIEW = 11; //中景\n int CATEGORY_VISION = 10; //远景\n\n //========================== time ==========================\n int[] MORNING_HOURS = {7, 8, 9, 10, 11};\n int[] AFTERNOON_HOURS = {12, 13, 14, 15, 16, 17};\n //int[] NIGHT_HOURS = {18, 19, 20, 21, 22, 24, 1, 2, 3, 4, 5, 6};\n int TIME_SAME_DAY = 1;\n int TIME_SAME_PERIOD_IN_DAY = 2; //timeSamePeriodInDay\n\n class LocationMeta {\n private double longitude, latitude;\n /**\n * 高程精度比水平精度低原因,主要是GPS测出的是WGS-84坐标系下的大地高,而我们工程上,也就是电子地图上采用的高程一般是正常高,\n * 它们之间的转化受到高程异常和大地水准面等误差的制约。\n * 卫星在径向的定轨精度较差,也限制了GPS垂直方向的精度。\n */\n private int gpsHeight; //精度不高\n private String country, province, city, region; //国家, 省, 市, 区\n\n public double getLongitude() {\n return longitude;\n }\n\n public void setLongitude(double longitude) {\n this.longitude = longitude;\n }\n\n public double getLatitude() {\n return latitude;\n }\n\n public void setLatitude(double latitude) {\n this.latitude = latitude;\n }\n\n public String getCountry() {\n return country;\n }\n\n public void setCountry(String country) {\n this.country = country;\n }\n\n public String getProvince() {\n return province;\n }\n\n public void setProvince(String province) {\n this.province = province;\n }\n\n public String getCity() {\n return city;\n }\n\n public void setCity(String city) {\n this.city = city;\n }\n\n public String getRegion() {\n return region;\n }\n\n public void setRegion(String region) {\n this.region = region;\n }\n\n public int getGpsHeight() {\n return gpsHeight;\n }\n\n public void setGpsHeight(int gpsHeight) {\n this.gpsHeight = gpsHeight;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n LocationMeta that = (LocationMeta) o;\n\n if (Double.compare(that.longitude, longitude) != 0) return false;\n if (Double.compare(that.latitude, latitude) != 0) return false;\n if (gpsHeight != that.gpsHeight) return false;\n if (country != null ? !country.equals(that.country) : that.country != null)\n return false;\n if (province != null ? !province.equals(that.province) : that.province != null)\n return false;\n if (city != null ? !city.equals(that.city) : that.city != null) return false;\n return region != null ? region.equals(that.region) : that.region == null;\n }\n }\n\n /**\n * the meta data of image/video ,something may from 'AI'.\n */\n class ImageMeta extends SimpleCopyDelegate{\n private String path;\n private int mediaType;\n /** in mills */\n private long date;\n\n /** in mill-seconds */\n private long duration;\n private int width, height;\n\n private LocationMeta location;\n\n /**\n * frames/second\n */\n private int fps = 30;\n /** see {@linkplain IShotRecognizer#CATEGORY_ENV} and etc. */\n private int shotCategory;\n /**\n * the shot type\n */\n private String shotType;\n\n /** shot key */\n private String shotKey;\n /**\n * 相机运动\n */\n private String cameraMotion;\n /** video tags */\n private List<List<Integer>> tags;\n\n /** the whole frame data of video(from analyse , like AI. ), after read should not change */\n private SparseArray<VideoDataLoadUtils.FrameData> frameDataMap;\n /** the high light data. key is the time in seconds. */\n private SparseArray<List<? extends IHighLightData>> highLightMap;\n private HighLightHelper mHighLightHelper;\n\n /** 主人脸个数 */\n private int mainFaceCount = -1;\n private int mBodyCount = -1;\n\n /** 通用tag信息 */\n private List<FrameTags> rawVideoTags;\n /** 人脸框信息 */\n private List<FrameFaceRects> rawFaceRects;\n\n //tag indexes\n private List<Integer> nounTags;\n private List<Integer> domainTags;\n private List<Integer> adjTags;\n\n private Location subjectLocation;\n\n //-------------------------- start High-Light ----------------------------\n /** set metadata for high light data. (from load high light) */\n public void setMediaData(MediaData mediaData) {\n List<MediaData.HighLightPair> hlMap = mediaData.getHighLightDataMap();\n if(!Predicates.isEmpty(hlMap)) {\n highLightMap = new SparseArray<>();\n VisitServices.from(hlMap).fire(new FireVisitor<MediaData.HighLightPair>() {\n @Override\n public Boolean visit(MediaData.HighLightPair pair, Object param) {\n List<MediaData.HighLightData> highLightData = VEGapUtils.filterHighLightByScore(pair.getDatas());\n if(!Predicates.isEmpty(highLightData)){\n highLightMap.put(pair.getTime(), highLightData);\n }\n return null;\n }\n });\n }\n mHighLightHelper = new HighLightHelper(highLightMap, mediaType == IPathTimeTraveller.TYPE_IMAGE);\n }\n @SuppressWarnings(\"unchecked\")\n public KeyValuePair<Integer, List<IHighLightData>> getHighLight(int time){\n return mHighLightHelper.getHighLight(time);\n }\n @SuppressWarnings(\"unchecked\")\n public KeyValuePair<Integer, List<IHighLightData>> getHighLight(ColorGapContext context, ITimeTraveller tt){\n return mHighLightHelper.getHighLight(context, tt);\n }\n\n public List<KeyValuePair<Integer, List<IHighLightData>>> getHighLights(ColorGapContext context, ITimeTraveller tt){\n return mHighLightHelper.getHighLights(context, tt);\n }\n @SuppressWarnings(\"unchecked\")\n public HighLightArea getHighLightArea(ColorGapContext context, ITimeTraveller tt){\n return mHighLightHelper.getHighLightArea(context, tt);\n }\n\n public void setHighLightMap(SparseArray<List<? extends IHighLightData>> highLightMap) {\n this.highLightMap = highLightMap;\n this.mHighLightHelper = new HighLightHelper(highLightMap, mediaType == IPathTimeTraveller.TYPE_IMAGE);\n }\n\n //-------------------------- end High-Light ----------------------------\n public SparseArray<VideoDataLoadUtils.FrameData> getFrameDataMap() {\n if(frameDataMap == null){\n frameDataMap = new SparseArray<>();\n }\n return frameDataMap;\n }\n public void setFrameDataMap(SparseArray<VideoDataLoadUtils.FrameData> frameDataMap) {\n this.frameDataMap = frameDataMap;\n }\n public void travelAllFrameDatas(Map.MapTravelCallback<Integer, VideoDataLoadUtils.FrameData> traveller){\n Throwables.checkNull(frameDataMap);\n CollectionUtils.travel(frameDataMap, traveller);\n }\n\n public List<Integer> getNounTags() {\n return nounTags != null ? nounTags : Collections.emptyList();\n }\n public void setNounTags(List<Integer> nounTags) {\n this.nounTags = nounTags;\n }\n\n public List<Integer> getDomainTags() {\n return domainTags != null ? domainTags : Collections.emptyList();\n }\n public void setDomainTags(List<Integer> domainTags) {\n this.domainTags = domainTags;\n }\n\n public List<Integer> getAdjTags() {\n return adjTags != null ? adjTags : Collections.emptyList();\n }\n public void setAdjTags(List<Integer> adjTags) {\n this.adjTags = adjTags;\n }\n public void setShotCategory(int shotCategory) {\n this.shotCategory = shotCategory;\n }\n\n public int getShotCategory() {\n return shotCategory;\n }\n public String getShotKey() {\n return shotKey;\n }\n public void setShotKey(String shotKey) {\n this.shotKey = shotKey;\n }\n\n public int getMainFaceCount() {\n return mainFaceCount;\n }\n public void setMainFaceCount(int mainFaceCount) {\n this.mainFaceCount = mainFaceCount;\n }\n public int getMediaType() {\n return mediaType;\n }\n public void setMediaType(int mediaType) {\n this.mediaType = mediaType;\n }\n\n public String getPath() {\n return path;\n }\n\n public void setPath(String path) {\n this.path = path;\n }\n\n /** date in mills */\n public long getDate() {\n return date;\n }\n /** date in mills */\n public void setDate(long date) {\n this.date = date;\n }\n\n public long getDuration() {\n return duration;\n }\n\n /** set duration in mill-seconds */\n public void setDuration(long duration) {\n this.duration = duration;\n }\n\n public int getWidth() {\n return width;\n }\n\n public void setWidth(int width) {\n this.width = width;\n }\n\n public int getHeight() {\n return height;\n }\n\n public void setHeight(int height) {\n this.height = height;\n }\n\n public int getFps() {\n return fps;\n }\n\n public void setFps(int fps) {\n this.fps = fps;\n }\n\n public String getShotType() {\n return shotType;\n }\n\n public void setShotType(String shotType) {\n this.shotType = shotType;\n }\n\n public String getCameraMotion() {\n return cameraMotion;\n }\n\n public void setCameraMotion(String cameraMotion) {\n this.cameraMotion = cameraMotion;\n }\n\n public List<List<Integer>> getTags() {\n return tags;\n }\n public void setTags(List<List<Integer>> tags) {\n this.tags = tags;\n }\n public LocationMeta getLocation() {\n return location;\n }\n public void setLocation(LocationMeta location) {\n this.location = location;\n }\n public void setBodyCount(int size) {\n this.mBodyCount = size;\n }\n public int getBodyCount(){\n return mBodyCount;\n }\n public int getPersonCount() {\n return Math.max(mBodyCount, mainFaceCount);\n }\n\n public Location getSubjectLocation() {\n return subjectLocation;\n }\n public void setSubjectLocation(Location subjectLocation) {\n this.subjectLocation = subjectLocation;\n }\n\n //============================================================\n public List<FrameFaceRects> getAllFaceRects() {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameFaceRects> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n FrameFaceRects faceRects = frameDataMap.valueAt(i).getFaceRects();\n if(faceRects != null) {\n result.add(faceRects);\n }else{\n //no face we just add a mock\n }\n }\n return result;\n }\n public List<FrameTags> getVideoTags(ITimeTraveller part) {\n return getVideoTags(part.getStartTime(), part.getEndTime());\n }\n\n /** get all video tags. startTime and endTime in frames */\n public List<FrameTags> getVideoTags(long startTime, long endTime) {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameTags> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n if(key >= startTime && key <= endTime){\n FrameTags tag = frameDataMap.valueAt(i).getTag();\n if(tag != null) {\n result.add(tag);\n }\n }\n }\n return result;\n }\n public List<FrameTags> getAllVideoTags() {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameTags> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n //long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n FrameTags tag = frameDataMap.valueAt(i).getTag();\n if(tag != null) {\n result.add(tag);\n }\n }\n return result;\n }\n public List<FrameFaceRects> getFaceRects(ITimeTraveller part) {\n return getFaceRects(part.getStartTime(), part.getEndTime());\n }\n /** get all face rects. startTime and endTime in frames */\n public List<FrameFaceRects> getFaceRects(long startTime, long endTime) {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameFaceRects> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n if(key >= startTime && key <= endTime){\n FrameFaceRects faceRects = frameDataMap.valueAt(i).getFaceRects();\n if(faceRects != null) {\n result.add(faceRects);\n }\n }\n }\n return result;\n }\n\n public void setRawVideoTags(List<FrameTags> tags) {\n rawVideoTags = tags;\n }\n public List<FrameTags> getRawVideoTags() {\n return rawVideoTags;\n }\n\n public List<FrameFaceRects> getRawFaceRects() {\n return rawFaceRects;\n }\n public void setRawFaceRects(List<FrameFaceRects> rawFaceRects) {\n this.rawFaceRects = rawFaceRects;\n }\n /** 判断这段原始视频内容是否是“人脸为主”. work before cut */\n public boolean containsFaces(){\n if(rawFaceRects == null){\n if(frameDataMap == null){\n return false;\n }\n rawFaceRects = getAllFaceRects();\n }\n if(Predicates.isEmpty(rawFaceRects)){\n return false;\n }\n List<FrameFaceRects> tempList = new ArrayList<>();\n VisitServices.from(rawFaceRects).visitForQueryList((ffr, param) -> ffr.hasRect(), tempList);\n float result = tempList.size() * 1f / rawFaceRects.size();\n Logger.d(\"ImageMeta\", \"isHumanContent\", \"human.percent = \"\n + result + \" ,path = \" + path);\n return result > 0.55f;\n }\n\n /** 判断这段原始视频是否被标记原始tag(人脸 or 通用) . work before cut */\n public boolean hasRawTags(){\n return frameDataMap != null && frameDataMap.size() > 0;\n }\n\n @Override\n public void setFrom(SimpleCopyDelegate sc) {\n if(sc instanceof ImageMeta){\n ImageMeta src = (ImageMeta) sc;\n setShotType(src.getShotType());\n setShotCategory(src.getShotCategory());\n setShotKey(src.getShotKey());\n\n setMainFaceCount(src.getMainFaceCount());\n setDuration(src.getDuration());\n setMediaType(src.getMediaType());\n setPath(src.getPath());\n setCameraMotion(src.getCameraMotion());\n setDate(src.getDate());\n setFps(src.getFps());\n setHeight(src.getHeight());\n setWidth(src.getWidth());\n //not deep copy\n setTags(src.tags);\n setAdjTags(src.adjTags);\n setNounTags(src.nounTags);\n setDomainTags(src.domainTags);\n\n setLocation(src.getLocation());\n setRawFaceRects(src.getRawFaceRects());\n setRawVideoTags(src.getRawVideoTags());\n setFrameDataMap(src.frameDataMap);\n setHighLightMap(src.highLightMap);\n }\n }\n }\n\n}",
"public interface Entity {\n}",
"private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }",
"public void registerTileEntitySpecialRenderer()\n {\n }",
"@Override\r\n\tpublic TechnicalInformation getTechnicalInformation() {\n\t\treturn null;\r\n\t}",
"@Override\n public final boolean checkMachine(IGregTechTileEntity iGregTechTileEntity, ItemStack itemStack) {\n return checkMachine_EM(iGregTechTileEntity, itemStack);\n }",
"Reference getDevice();",
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"@Override\n IDeviceFactory getFactory();",
"Device createDevice();",
"private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public interface IHasWork {\n\t/**\n\t * Check if the Tile Entity is currently doing any work.\n\t * @return True if the Tile Entity is doing work.\n\t */\n\tboolean hasWork();\n}"
] |
[
"0.7624385",
"0.6228258",
"0.60546756",
"0.60324764",
"0.602317",
"0.59444654",
"0.59311706",
"0.5927082",
"0.5854119",
"0.5800055",
"0.57862276",
"0.5773751",
"0.57389694",
"0.5724743",
"0.570939",
"0.57079273",
"0.57020503",
"0.56871724",
"0.56232285",
"0.5618072",
"0.5604568",
"0.5604568",
"0.55932546",
"0.55847883",
"0.5559453",
"0.5553345",
"0.5541007",
"0.5529466",
"0.55160755",
"0.55046535",
"0.5501027",
"0.549942",
"0.54920334",
"0.5491855",
"0.548859",
"0.54838294",
"0.54775745",
"0.5470072",
"0.5466643",
"0.5465603",
"0.54277647",
"0.5417968",
"0.5416518",
"0.54121625",
"0.54109424",
"0.54042745",
"0.5379411",
"0.53730154",
"0.5361398",
"0.5351211",
"0.5329332",
"0.5326082",
"0.53096706",
"0.5309347",
"0.5308009",
"0.53055733",
"0.5304227",
"0.52995807",
"0.5292009",
"0.5290921",
"0.52868724",
"0.52723145",
"0.5262317",
"0.5261138",
"0.5261138",
"0.5237417",
"0.5236081",
"0.5226457",
"0.52131444",
"0.52057284",
"0.520525",
"0.5192826",
"0.5190046",
"0.5189997",
"0.51861465",
"0.51845807",
"0.5177056",
"0.5171962",
"0.51718366",
"0.5168978",
"0.5154211",
"0.51535773",
"0.515338",
"0.5145051",
"0.5139764",
"0.5132297",
"0.5128465",
"0.5127604",
"0.51255244",
"0.51236707",
"0.5107548",
"0.51024705",
"0.5098548",
"0.5096797",
"0.5086915",
"0.5085214",
"0.50844264",
"0.5077161",
"0.5074496",
"0.5071847",
"0.50527847"
] |
0.0
|
-1
|
Up to 8 Strings can be returned. Note: If you insert "\\\\" in the String it tries to translate seperate Parts of the String instead of the String as a whole.
|
public String[] getInfoData();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static java.lang.String m25224a(java.lang.String r7, java.lang.String r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"\";\n r1 = \"\\\\?\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r2 = 1;\n if (r1 <= r2) goto L_0x0033;\n L_0x000c:\n r7 = r7[r2];\n r1 = \"&\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r3 = 0;\n r4 = r0;\n r0 = 0;\n L_0x0018:\n if (r0 >= r1) goto L_0x0032;\n L_0x001a:\n r5 = r7[r0];\n r6 = \"=\";\n r5 = r5.split(r6);\n r6 = r5.length;\n if (r6 <= r2) goto L_0x002f;\n L_0x0025:\n r6 = r5[r3];\n r6 = r6.equals(r8);\n if (r6 == 0) goto L_0x002f;\n L_0x002d:\n r4 = r5[r2];\n L_0x002f:\n r0 = r0 + 1;\n goto L_0x0018;\n L_0x0032:\n r0 = r4;\n L_0x0033:\n r7 = \"UTF-8\";\t Catch:{ Exception -> 0x003a }\n r7 = java.net.URLDecoder.decode(r0, r7);\t Catch:{ Exception -> 0x003a }\n goto L_0x003b;\n L_0x003a:\n r7 = r0;\n L_0x003b:\n return r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.messagetemplates.BaseMessageDialog.a(java.lang.String, java.lang.String):java.lang.String\");\n }",
"private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}",
"@Override\n\t\tprotected String[] handleIrregulars(String s) {\n\t\t\treturn null;\n\t\t}",
"java.lang.String getS8();",
"@Test\r\n\tpublic void testGetString() {\r\n\t\tString s = lattice1.getString();\r\n\t\tString ss = \"[10. 6. 4.](12.328828005937952)\"\r\n\t\t\t\t+ \"[7. 11. 5.](13.96424004376894)\"\r\n\t\t\t\t+ \"[6.8 -4. -9.](11.968291440301744)\";\r\n\t\tAssert.assertEquals(\"getString\", s, ss);\r\n\t}",
"private static String handleEscapes(String s) {\n final String UNLIKELY_STRING = \"___~~~~$$$$___\";\n return s.replace(\"\\\\\\\\\", UNLIKELY_STRING).replace(\"\\\\\", \"\").replace(UNLIKELY_STRING, \"\\\\\");\n }",
"private String fixSlashes(String str) {\n\t\tstr = str.replace('\\\\', '/');\r\n\t\t// compress multiples into singles;\r\n\t\t// do in 2 steps with dummy string\r\n\t\t// to avoid infinte loop\r\n\t\tstr = replaceString(str, \"//\", \"_____\");\r\n\t\tstr = replaceString(str, \"_____\", \"/\");\r\n\t\treturn str;\r\n\t}",
"String remEscapes(String str){\n StringBuilder retval = new StringBuilder();\n\n // remove leading/trailing \" or '\r\n int start = 1, end = str.length() - 1;\n\n if ((str.startsWith(SQ3) && str.endsWith(SQ3)) ||\n (str.startsWith(SSQ3) && str.endsWith(SSQ3))){\n // remove leading/trailing \"\"\" or '''\r\n start = 3;\n end = str.length() - 3;\n }\n\n for (int i = start; i < end; i++) {\n\n if (str.charAt(i) == '\\\\' && i+1 < str.length()){\n i += 1;\n switch (str.charAt(i)){\n\n case 'b':\n retval.append('\\b');\n continue;\n case 't':\n retval.append('\\t');\n continue;\n case 'n':\n retval.append('\\n');\n continue;\n case 'f':\n retval.append('\\f');\n continue;\n case 'r':\n retval.append('\\r');\n continue;\n case '\"':\n retval.append('\\\"');\n continue;\n case '\\'':\n retval.append('\\'');\n continue;\n case '\\\\':\n retval.append('\\\\');\n continue;\n }\n\n }\n else {\n retval.append(str.charAt(i));\n }\n }\n\n return retval.toString();\n }",
"private String ensureWellFormed(String res)\r\n {\r\n String resource = res;\r\n int idx;\r\n\r\n // replace all occurances of '.*' with '*'\r\n while( (idx = resource.indexOf(TIGHT_BINDING+LOOSE_BINDING)) != -1)\r\n {\r\n if (idx == 0)\r\n {\r\n resource = LOOSE_BINDING +\r\n resource.substring(TIGHT_BINDING_LEN+LOOSE_BINDING_LEN);\r\n }\r\n else\r\n {\r\n resource = resource.substring(0, idx) + LOOSE_BINDING +\r\n resource.substring(idx+TIGHT_BINDING_LEN+LOOSE_BINDING_LEN);\r\n }\r\n }\r\n\r\n // replace all occurances of '*.' with '*'\r\n while( (idx = resource.indexOf(LOOSE_BINDING+TIGHT_BINDING)) != -1)\r\n {\r\n if (idx == 0)\r\n {\r\n resource = LOOSE_BINDING +\r\n resource.substring(TIGHT_BINDING_LEN+LOOSE_BINDING_LEN);\r\n }\r\n else\r\n {\r\n resource = resource.substring(0, idx) + LOOSE_BINDING +\r\n resource.substring(idx+LOOSE_BINDING_LEN+TIGHT_BINDING_LEN);\r\n }\r\n }\r\n\r\n return resource;\r\n }",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"private static String escapeSequences(String currentString) {\n return currentString.replace(\"\\\\\\\"\", \"\\\"\").replace(\"\\\\\\\\\", \"\\\\\");\n }",
"@Test\n public void testExtractTextFromDocument_String_String()\n {\n String splitCharacter = \"\\n\";\n\n PDFExtractor instance = new PDFExtractor();\n \n String expResult = page1 + splitCharacter + page2;\n String result = instance.extractTextFromDocument(pathToFile, splitCharacter);\n \n assertEquals(expResult, result);\n }",
"public String mo10088a(String str, List<String> list) {\n if (C1277l.m3042b(str)) {\n Uri parse = Uri.parse(str);\n if (parse == null) {\n mo10068a(\"Nothing to cache, skipping...\");\n return null;\n }\n String lastPathSegment = parse.getLastPathSegment();\n if (C1277l.m3042b(this.f2759a.mo9869G())) {\n StringBuilder sb = new StringBuilder();\n sb.append(this.f2759a.mo9869G());\n sb.append(lastPathSegment);\n lastPathSegment = sb.toString();\n }\n File a = this.f2761d.mo10273a(lastPathSegment, mo10075g());\n ByteArrayOutputStream a2 = (a == null || !a.exists()) ? null : this.f2761d.mo10271a(a);\n if (a2 == null) {\n a2 = this.f2761d.mo10272a(str, list, true);\n if (a2 != null) {\n this.f2761d.mo10277a(a2, a);\n this.f2763f.mo10020a((long) a2.size());\n }\n } else {\n this.f2763f.mo10021b((long) a2.size());\n }\n try {\n return a2.toString(\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n mo10069a(\"UTF-8 encoding not supported.\", e);\n } catch (Throwable th) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"String resource at \");\n sb2.append(str);\n sb2.append(\" failed to load.\");\n mo10069a(sb2.toString(), th);\n return null;\n }\n }\n return null;\n }",
"public static void updateStrings() {\n String pathName;\n switch (Parameters.getLanguage()) {\n case ENGLISH:\n default:\n pathName = englishStringPath;\n break;\n case SPANISH:\n pathName = spanishStringPath;\n break;\n case CATALAN:\n pathName = catalanStringPath;\n break;\n }\n updateStrings(pathName);\n }",
"@Test public void readStringDescriptionsNotJustSingleWord() {\n fail( \"Not yet implemented\" );\n }",
"public void test001GetStringAPI() {\n String[] actualArray = mStringReplacement.getSaveLocationString();\n assertEquals(mExpectedArray[0], actualArray[0]);\n assertEquals(mExpectedArray[1], actualArray[1]);\n\n assertEquals(mExpectedStrings[IStringReplacement.SAVE_MSG_TO_CARD - 1],\n mStringReplacement.getCTStrings(IStringReplacement.SAVE_MSG_TO_CARD));\n assertEquals(mExpectedStrings[IStringReplacement.SELECT_CARD - 1],\n mStringReplacement.getCTStrings(IStringReplacement.SELECT_CARD));\n assertEquals(mExpectedStrings[IStringReplacement.MANAGE_CARD_MSG_TITLE - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MANAGE_CARD_MSG_TITLE));\n assertEquals(mExpectedStrings[IStringReplacement.MANAGE_CARD_MSG_SUMMARY - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MANAGE_CARD_MSG_SUMMARY));\n assertEquals(mExpectedStrings[IStringReplacement.MANAGE_UIM_MESSAGE - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MANAGE_UIM_MESSAGE));\n assertEquals(mExpectedStrings[IStringReplacement.UIM_EMPTY - 1],\n mStringReplacement.getCTStrings(IStringReplacement.UIM_EMPTY));\n assertEquals(mExpectedStrings[IStringReplacement.GET_CAPACITY_FAILED - 1],\n mStringReplacement.getCTStrings(IStringReplacement.GET_CAPACITY_FAILED));\n assertEquals(mExpectedStrings[IStringReplacement.CONFIRM_DELETE_MSG - 1],\n mStringReplacement.getCTStrings(IStringReplacement.CONFIRM_DELETE_MSG));\n assertEquals(mExpectedStrings[IStringReplacement.UIM_FULL_TITLE - 1],\n mStringReplacement.getCTStrings(IStringReplacement.UIM_FULL_TITLE));\n assertEquals(mExpectedStrings[IStringReplacement.MESSAGE_CANNOT_BE_OPERATED - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MESSAGE_CANNOT_BE_OPERATED));\n assertEquals(mExpectedStrings[IStringReplacement.CONFIRM_DELETE_SELECTED_MESSAGES - 1],\n mStringReplacement.getCTStrings(IStringReplacement.CONFIRM_DELETE_SELECTED_MESSAGES));\n }",
"@Test\n public void testPathParsing_withAlternateSeparator() {\n PathService windowsPathService = PathServiceTest.fakeWindowsPathService();\n assertEquals(\n windowsPathService.parsePath(\"foo\\\\bar\\\\baz\"), windowsPathService.parsePath(\"foo/bar/baz\"));\n assertEquals(\n windowsPathService.parsePath(\"C:\\\\foo\\\\bar\"), windowsPathService.parsePath(\"C:\\\\foo/bar\"));\n assertEquals(\n windowsPathService.parsePath(\"c:\\\\foo\\\\bar\\\\baz\"),\n windowsPathService.parsePath(\"c:\", \"foo/\", \"bar/baz\"));\n }",
"protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }",
"abstract String mo1747a(String str);",
"public abstract String read_wstring();",
"String getStringList();",
"public CharSequence ZawGyiToUni(String myString1, Boolean unicode) {\n\t\t String uni = \"[\"\n\t + \" {\\\"from\\\": \\\"(\\u103D|\\u1087)\\\",\\\"to\\\":\\\"\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\\",\\\"to\\\":\\\"\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103B|\\u107E|\\u107F|\\u1080|\\u1081|\\u1082|\\u1083|\\u1084)\\\",\\\"to\\\":\\\"\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103A|\\u107D)\\\",\\\"to\\\":\\\"\\u103B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\\",\\\"to\\\":\\\"\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106A\\\",\\\"to\\\":\\\"\\u1009\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106B\\\",\\\"to\\\":\\\"\\u100A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106C\\\",\\\"to\\\":\\\"\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106D\\\",\\\"to\\\":\\\"\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106E\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106F\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1070\\\",\\\"to\\\":\\\"\\u1039\\u100F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1071|\\u1072)\\\",\\\"to\\\":\\\"\\u1039\\u1010\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1060\\\",\\\"to\\\":\\\"\\u1039\\u1000\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1061\\\",\\\"to\\\":\\\"\\u1039\\u1001\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1062\\\",\\\"to\\\":\\\"\\u1039\\u1002\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1063\\\",\\\"to\\\":\\\"\\u1039\\u1003\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1065\\\",\\\"to\\\":\\\"\\u1039\\u1005\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1068\\\",\\\"to\\\":\\\"\\u1039\\u1007\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1069\\\",\\\"to\\\":\\\"\\u1039\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"/(\\u1073|\\u1074)/g\\\",\\\"to\\\":\\\"\\u1039\\u1011\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1075\\\",\\\"to\\\":\\\"\\u1039\\u1012\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1076\\\",\\\"to\\\":\\\"\\u1039\\u1013\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1077\\\",\\\"to\\\":\\\"\\u1039\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1078\\\",\\\"to\\\":\\\"\\u1039\\u1015\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1079\\\",\\\"to\\\":\\\"\\u1039\\u1016\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107A\\\",\\\"to\\\":\\\"\\u1039\\u1017\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107C\\\",\\\"to\\\":\\\"\\u1039\\u1019\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1085\\\",\\\"to\\\":\\\"\\u1039\\u101C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1033\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1034\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103F\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1086\\\",\\\"to\\\":\\\"\\u103F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1088\\\",\\\"to\\\":\\\"\\u103E\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1089\\\",\\\"to\\\":\\\"\\u103E\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108A\\\",\\\"to\\\":\\\"\\u103D\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1064\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108B\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102D\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108C\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108D\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108E\\\",\\\"to\\\":\\\"\\u102D\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108F\\\",\\\"to\\\":\\\"\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1090\\\",\\\"to\\\":\\\"\\u101B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1091\\\",\\\"to\\\":\\\"\\u100F\\u1039\\u1091\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1019\\u102C(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u1019\\u1039\\u1018\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u103A\\u1018\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1094|\\u1095)\\\",\\\"to\\\":\\\"\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1096\\\",\\\"to\\\":\\\"\\u1039\\u1010\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1097\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C([\\u1000-\\u1021])([\\u1000-\\u1021])?\\\",\\\"to\\\":\\\"$1\\u103C$2\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u103C\\u103A\\\",\\\"to\\\":\\\"\\u103C$1\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031([\\u1000-\\u1021])(\\u103E)?(\\u103B)?\\\",\\\"to\\\":\\\"$1$2$3\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1031(\\u103B|\\u103C|\\u103D)\\\",\\\"to\\\":\\\"$1$2\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1032\\u103D\\\",\\\"to\\\":\\\"\\u103D\\u1032\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103D\\u103B\\\",\\\"to\\\":\\\"\\u103B\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103A\\u1037\\\",\\\"to\\\":\\\"\\u1037\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F(\\u102D|\\u102E|\\u1036|\\u1037)\\u102F\\\",\\\"to\\\":\\\"\\u102F$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F\\u102F\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102F|\\u1030)(\\u102D|\\u102E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103E)(\\u103B|\\u1037)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025(\\u103A|\\u102C)\\\",\\\"to\\\":\\\"\\u1009$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u102E\\\",\\\"to\\\":\\\"\\u1026\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1005\\u103B\\\",\\\"to\\\":\\\"\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036(\\u102F|\\u1030)\\\",\\\"to\\\":\\\"$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u1037\\u103E\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103E\\u102C\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u105A\\\",\\\"to\\\":\\\"\\u102B\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103B\\u103E\\\",\\\"to\\\":\\\"\\u103B\\u103E\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102D|\\u102E)(\\u103D|\\u103E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1004\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\u103C\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1092\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u104E\\\",\\\"to\\\":\\\"\\u104E\\u1004\\u103A\\u1038\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1040(\\u102B|\\u102C|\\u1036)\\\",\\\"to\\\":\\\"\\u101D$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u1039\\\",\\\"to\\\":\\\"\\u1009\\u1039\\\"}\" + \"]\";\n\t\t \n\t\t String zawgyi = \"[ { \\\"from\\\": \\\"င်္\\\", \\\"to\\\": \\\"ၤ\\\" }, { \\\"from\\\": \\\"္တွ\\\", \\\"to\\\": \\\"႖\\\" }, { \\\"from\\\": \\\"န(?=[ူွှု္])\\\", \\\"to\\\": \\\"ႏ\\\" }, { \\\"from\\\": \\\"ါ်\\\", \\\"to\\\": \\\"ၚ\\\" }, { \\\"from\\\": \\\"ဋ္ဌ\\\", \\\"to\\\": \\\"႒\\\" }, { \\\"from\\\": \\\"ိံ\\\", \\\"to\\\": \\\"ႎ\\\" }, { \\\"from\\\": \\\"၎င်း\\\", \\\"to\\\": \\\"၎\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[္ုူ])\\\", \\\"to\\\": \\\"ၪ\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[်])\\\", \\\"to\\\": \\\"ဥ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူွ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ု\\\", \\\"to\\\": \\\"$1ဳ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ူ\\\", \\\"to\\\": \\\"$1ဴ\\\" }, { \\\"from\\\": \\\"္က\\\", \\\"to\\\": \\\"ၠ\\\" }, { \\\"from\\\": \\\"္ခ\\\", \\\"to\\\": \\\"ၡ\\\" }, { \\\"from\\\": \\\"္ဂ\\\", \\\"to\\\": \\\"ၢ\\\" }, { \\\"from\\\": \\\"္ဃ\\\", \\\"to\\\": \\\"ၣ\\\" }, { \\\"from\\\": \\\"္စ\\\", \\\"to\\\": \\\"ၥ\\\" }, { \\\"from\\\": \\\"္ဆ\\\", \\\"to\\\": \\\"ၦ\\\" }, { \\\"from\\\": \\\"္ဇ\\\", \\\"to\\\": \\\"ၨ\\\" }, { \\\"from\\\": \\\"္ဈ\\\", \\\"to\\\": \\\"ၩ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"္ဋ\\\", \\\"to\\\": \\\"ၬ\\\" }, { \\\"from\\\": \\\"္ဌ\\\", \\\"to\\\": \\\"ၭ\\\" }, { \\\"from\\\": \\\"ဍ္ဍ\\\", \\\"to\\\": \\\"ၮ\\\" }, { \\\"from\\\": \\\"ဎ္ဍ\\\", \\\"to\\\": \\\"ၯ\\\" }, { \\\"from\\\": \\\"္ဏ\\\", \\\"to\\\": \\\"ၰ\\\" }, { \\\"from\\\": \\\"္တ\\\", \\\"to\\\": \\\"ၱ\\\" }, { \\\"from\\\": \\\"္ထ\\\", \\\"to\\\": \\\"ၳ\\\" }, { \\\"from\\\": \\\"္ဒ\\\", \\\"to\\\": \\\"ၵ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္န\\\", \\\"to\\\": \\\"ၷ\\\" }, { \\\"from\\\": \\\"္ပ\\\", \\\"to\\\": \\\"ၸ\\\" }, { \\\"from\\\": \\\"္ဖ\\\", \\\"to\\\": \\\"ၹ\\\" }, { \\\"from\\\": \\\"္ဗ\\\", \\\"to\\\": \\\"ၺ\\\" }, { \\\"from\\\": \\\"္ဘ\\\", \\\"to\\\": \\\"ၻ\\\" }, { \\\"from\\\": \\\"္မ\\\", \\\"to\\\": \\\"ၼ\\\" }, { \\\"from\\\": \\\"္လ\\\", \\\"to\\\": \\\"ႅ\\\" }, { \\\"from\\\": \\\"ဿ\\\", \\\"to\\\": \\\"ႆ\\\" }, { \\\"from\\\": \\\"(ြ)ှ\\\", \\\"to\\\": \\\"$1ႇ\\\" }, { \\\"from\\\": \\\"ွှ\\\", \\\"to\\\": \\\"ႊ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ိ\\\", \\\"to\\\": \\\"$2$3$4ႋ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ီ\\\", \\\"to\\\": \\\"$2$3$4ႌ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ံ\\\", \\\"to\\\": \\\"$2$3$4ႍ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])\\\", \\\"to\\\": \\\"$2$3$4$1\\\" }, { \\\"from\\\": \\\"ရ(?=[ုူွႊ])\\\", \\\"to\\\": \\\"႐\\\" }, { \\\"from\\\": \\\"ဏ္ဍ\\\", \\\"to\\\": \\\"႑\\\" }, { \\\"from\\\": \\\"ဋ္ဋ\\\", \\\"to\\\": \\\"႗\\\" }, { \\\"from\\\": \\\"([က-အႏဩ႐])([ၠ-ၩၬၭၰ-ၼႅႊ])?([ျ-ှ]*)?ေ\\\", \\\"to\\\": \\\"ေ$1$2$3\\\" }, { \\\"from\\\": \\\"([က-အဩ])([ၠ-ၩၬၭၰ-ၼႅ])?(ြ)\\\", \\\"to\\\": \\\"$3$1$2\\\" }, { \\\"from\\\": \\\"်\\\", \\\"to\\\": \\\"္\\\" }, { \\\"from\\\": \\\"ျ\\\", \\\"to\\\": \\\"်\\\" }, { \\\"from\\\": \\\"ြ\\\", \\\"to\\\": \\\"ျ\\\" }, { \\\"from\\\": \\\"ွ\\\", \\\"to\\\": \\\"ြ\\\" }, { \\\"from\\\": \\\"ှ\\\", \\\"to\\\": \\\"ွ\\\" }, { \\\"from\\\": \\\"ွု\\\", \\\"to\\\": \\\"ႈ\\\" }, { \\\"from\\\": \\\"([ုူနရြႊွႈ])([ဲံ]{0,1})့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"ု႕\\\", \\\"to\\\": \\\"ု႔\\\" }, { \\\"from\\\": \\\"([နရ])([ဲံိီႋႌႍႎ])့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"႕္\\\", \\\"to\\\": \\\"႔္\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ု\\\", \\\"to\\\": \\\"$1$2$3ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ူ\\\", \\\"to\\\": \\\"$1$2$3ဴ\\\" }, { \\\"from\\\": \\\"်ု\\\", \\\"to\\\": \\\"်ဳ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ု\\\", \\\"to\\\": \\\"်$1ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])ူ\\\", \\\"to\\\": \\\"$1$2ဴ\\\" }, { \\\"from\\\": \\\"်ူ\\\", \\\"to\\\": \\\"်ဴ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ူ\\\", \\\"to\\\": \\\"်$1ဴ\\\" }, { \\\"from\\\": \\\"ွူ\\\", \\\"to\\\": \\\"ႉ\\\" }, { \\\"from\\\": \\\"ျ([ကဃဆဏတထဘယလယသဟ])\\\", \\\"to\\\": \\\"ၾ$1\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႄ$1$2$3\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])\\\", \\\"to\\\": \\\"ႂ$1$2\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႀ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႃ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])\\\", \\\"to\\\": \\\"ႁ$1$2\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ၿ$1$2$3\\\" }, { \\\"from\\\": \\\"်ွ\\\", \\\"to\\\": \\\"ွ်\\\" }, { \\\"from\\\": \\\"်([ြႊ])\\\", \\\"to\\\": \\\"$1ၽ\\\" }, { \\\"from\\\": \\\"([ဳဴ])႔\\\", \\\"to\\\": \\\"$1႕\\\" }, { \\\"from\\\": \\\"ႏၱ\\\", \\\"to\\\" : \\\"ႏၲ\\\" }, { \\\"from\\\": \\\"([က-အ])([ၻၦ])ာ\\\", \\\"to\\\": \\\"$1ာ$2\\\" }, { \\\"from\\\": \\\"ာ([ၻၦ])့\\\", \\\"to\\\": \\\"ာ$1႔\\\" }]\";\n\t\t \n\t\t if(unicode==true) {\n\t\treturn replacewithUni(uni, myString1);\n\t\t } else {\n\t\t\t return replacewithZawgyi(zawgyi, myString1);\n\t\t }\n\t}",
"private String addSlashes(String in) {\n StringBuffer sb = new StringBuffer();\n int index = 0;\n int i = in.indexOf(\"\\\\\");\n int ii = in.indexOf(\"\\\\\\\\\");\n\n if (i == -1) {\n return in;\n }\n\n if (i != ii) {\n sb.append(in.substring(index,i+1)+\"\\\\\");\n }\n index = i+1;\n boolean done = false;\n while (!done) {\n i = in.indexOf(\"\\\\\", index);\n ii = in.indexOf(\"\\\\\\\\\", index);\n if (i == -1) {\n sb.append(in.substring(index));\n done = true;\n }\n else if (i != ii) {\n sb.append(in.substring(index,i+1)+\"\\\\\");\n index = i+1;\n }\n }\n return sb.toString();\n }",
"private String literal(String str) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"'\");\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\'':\n buffer.append(\"''\");\n break;\n default:\n buffer.append(str.charAt(i));\n break;\n }\n }\n buffer.append(\"'\");\n return buffer.toString();\n }",
"StringCursor getAllStrings() throws RemoteException;",
"public Vector<String> LCS_Allstrings(String X, String Y) {\r\n int len = LCS_length(X,Y);\r\n Vector<String> ans = new Vector<String>();\r\n LCS_Allstrings(ans,X,Y,X.length(),Y.length(),len,\"\");\r\n return ans;\r\n }",
"public abstract String read_string();",
"@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 }",
"public static String utf8strToHexStr_Slash_U(String multlangStr) throws Exception {\n\t\tProperties profile = new Properties();\n\t\tint strLen = multlangStr.length();\n\t\tString resultStr = \"\";\n\t\tfor (int i= 0; i< strLen ; i++) {\n\t\t\tint intChar = multlangStr.codePointAt(i);\n\t\t\tString strChar = \"\\\\u\" + Integer.toHexString(intChar) ;\n\t\t\tresultStr = resultStr + strChar;\n\t\t}\n\t\treturn resultStr;\n\t}",
"@Test\n\t public void teststringAPI_success() {\n\t\tString testData = \"My data is right\";\n\t\tchar charData='a';\n\t\tString expected = \"My dt is right\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tSystem.out.println(actualStr);\n\t\tassertEquals(\"Got Expected Result\", expected, actualStr);\n\t }",
"private String readString() throws ParseException {\n int stringStart = pos;\n while (pos < length) {\n char c = src.charAt(pos++);\n if (c <= '\\u001F') {\n throw new ParseException(\"String contains control character\");\n } else if (c == '\\\\') {\n break;\n } else if (c == '\"') {\n return src.substring(stringStart, pos - 1);\n }\n }\n\n /*\n * Slow case: string contains escaped characters. Copy a maximal sequence\n * of unescaped characters into a temporary buffer, then an escaped\n * character, and repeat until the entire string is consumed.\n */\n StringBuilder b = new StringBuilder();\n while (pos < length) {\n assert src.charAt(pos - 1) == '\\\\';\n b.append(src, stringStart, pos - 1);\n if (pos >= length) {\n throw new ParseException(\"Unterminated string\");\n }\n char c = src.charAt(pos++);\n switch (c) {\n case '\"':\n b.append('\"');\n break;\n case '\\\\':\n b.append('\\\\');\n break;\n case '/':\n b.append('/');\n break;\n case 'b':\n b.append('\\b');\n break;\n case 'f':\n b.append('\\f');\n break;\n case 'n':\n b.append('\\n');\n break;\n case 'r':\n b.append('\\r');\n break;\n case 't':\n b.append('\\t');\n break;\n case 'u':\n if (length - pos < 5) {\n throw new ParseException(\"Invalid character code: \\\\u\" + src.substring(pos));\n }\n int code = fromHex(src.charAt(pos + 0)) << 12\n | fromHex(src.charAt(pos + 1)) << 8\n | fromHex(src.charAt(pos + 2)) << 4\n | fromHex(src.charAt(pos + 3));\n if (code < 0) {\n throw new ParseException(\"Invalid character code: \" + src.substring(pos, pos + 4));\n }\n pos += 4;\n b.append((char) code);\n break;\n default:\n throw new ParseException(\"Unexpected character in string: '\\\\\" + c + \"'\");\n }\n stringStart = pos;\n while (pos < length) {\n c = src.charAt(pos++);\n if (c <= '\\u001F') {\n throw new ParseException(\"String contains control character\");\n } else if (c == '\\\\') {\n break;\n } else if (c == '\"') {\n b.append(src, stringStart, pos - 1);\n return b.toString();\n }\n }\n }\n throw new ParseException(\"Unterminated string literal\");\n }",
"@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}",
"String getString();",
"String getString();",
"String getString();",
"public abstract String mo24851a(String str);",
"public void fixmetestPositiveStringArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final String[] stringArray = {};\n final String[] stringArray1 = { \"abc\" };\n final String[] stringArray2 = { \"abc\", \"de,f\" };\n\n value = LocaleConvertUtils.convert(\"\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\" \", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{}\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{ }\", stringArray.getClass());\n checkStringArray(value, stringArray);\n\n value = LocaleConvertUtils.convert(\"abc\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{abc}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"'abc'\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{'abc'}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n\n value = LocaleConvertUtils.convert(\"abc 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{abc, 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\",\\\"de,f\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\" 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"'abc' 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{'abc', \\\"de,f\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n\n }",
"public static String javaStringEscape(String str)\n {\n test:\n {\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\n':\n case '\\r':\n case '\\\"':\n case '\\\\':\n break test;\n }\n }\n return str;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n switch (ch) {\n default:\n sb.append(ch);\n break;\n case '\\n':\n sb.append(\"\\\\n\");\n break;\n case '\\r':\n sb.append(\"\\\\r\");\n break;\n case '\\\"':\n sb.append(\"\\\\\\\"\");\n break;\n case '\\\\':\n sb.append(\"\\\\\\\\\");\n break;\n }\n }\n return sb.toString();\n }",
"private String readString(int startCh, int endCh, boolean strEscapes) {\n stringBuilder.setLength(0);\n\n // Assumes first char read already.\n // int ch0 = reader.readChar() ;\n // if ( ch0 != startCh )\n // exception(\"Broken org.rdf4led.sparql.parser\", y, x) ;\n\n for (; ; ) {\n int ch = reader.readChar();\n if (ch == Chars.EOF) {\n // if ( endNL ) return stringBuilder.toString() ;\n exception(\"Broken token: \" + stringBuilder.toString());\n }\n\n if (ch == '\\n') exception(\"Broken token (newline): \" + stringBuilder.toString());\n\n if (ch == endCh) {\n // sb.append(((char)ch)) ;\n return stringBuilder.toString();\n }\n\n if (ch == '\\\\') {\n ch = strEscapes ? readLiteralEscape() : readUnicodeEscape();\n // Drop through.\n }\n insertCodepoint(stringBuilder, ch);\n }\n }",
"public final ArrayList<String> GetStringsForCurrentUnit(boolean otherStringsToo)\n {\n return MethodsUnitP.GetStringsUnitCommon(Unit, otherStringsToo);\n }",
"private static String escape(String in) {\n // After regexp escaping \\\\\\\\ = 1 slash, \\\\\\\\\\\\\\\\ = 2 slashes.\n\n // Also, the second args of replaceAll are neither strings nor regexps, and\n // are instead a special DSL used by Matcher. Therefore, we need to double\n // escape slashes (4 slashes) and quotes (3 slashes + \") in those strings.\n // Since we need to write \\\\ and \\\", we end up with 8 and 7 slashes,\n // respectively.\n return in.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"\\\"\", \"\\\\\\\\\\\\\\\"\");\n }",
"public EncodeAndDecodeStrings() {}",
"private String m2343a(String str, String str2) {\n StringBuilder sb;\n String replace = str2.replace(Constants.URL_PATH_DELIMITER, \"_\");\n String G = this.f2759a.mo9869G();\n if (C1277l.m3042b(G)) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(G);\n sb2.append(replace);\n replace = sb2.toString();\n }\n File a = this.f2761d.mo10273a(replace, this.f2745b.mo10179D());\n if (a == null) {\n return null;\n }\n String str3 = \"file://\";\n if (a.exists()) {\n this.f2763f.mo10021b(a.length());\n sb = new StringBuilder();\n } else {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(str);\n sb3.append(str2);\n if (!this.f2761d.mo10278a(a, sb3.toString(), Arrays.asList(new String[]{str}), this.f2763f)) {\n return null;\n }\n sb = new StringBuilder();\n }\n sb.append(str3);\n sb.append(a.getAbsolutePath());\n return sb.toString();\n }",
"private String m81844c(String str) {\n Uri uri;\n String a = UrlUtil.m84494a(this.f58071c, str);\n return (!TextUtils.isEmpty(a) || (uri = this.f58072d) == null) ? a : UrlUtil.m84494a(uri, str);\n }",
"public static void main3(String[] args) {\n String str = \"192*168*1*1\";\n\n //String [] strings = str.split(\"\\\\.\");\n String [] strings = str.split(\"\\\\*\");\n //为什么需要两个斜杠 在本来的情况下 \\ +要转义的字符就可以了\n //但是此时在在\"\"里面不知道\\是干什么的 需要两个斜杠\n for(String s : strings) {\n System.out.println(s);\n }\n }",
"protected String add_escapes(String str) {\n StringBuffer retval = new StringBuffer();\n char ch;\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case 0:\n continue;\n case '\\b':\n retval.append(\"\\\\b\");\n continue;\n case '\\t':\n retval.append(\"\\\\t\");\n continue;\n case '\\n':\n retval.append(\"\\\\n\");\n continue;\n case '\\f':\n retval.append(\"\\\\f\");\n continue;\n case '\\r':\n retval.append(\"\\\\r\");\n continue;\n case '\\\"':\n retval.append(\"\\\\\\\"\");\n continue;\n case '\\'':\n retval.append(\"\\\\\\'\");\n continue;\n case '\\\\':\n retval.append(\"\\\\\\\\\");\n continue;\n default:\n if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {\n String s = \"0000\" + Integer.toString(ch, 16);\n retval.append(\"\\\\u\" + s.substring(s.length() - 4, s.length()));\n } else {\n retval.append(ch);\n }\n continue;\n }\n }\n return retval.toString();\n }",
"protected String getString () {\n int utf = 0;\n skipSpaces ();\n if (!eatChar ('\"')) { return null; }\n m_sb.setLength (0);\n char c = getChar ();\n while ( c != '\\0' && c != '\"' ) {\n if (c == '\\\\') {\n c = getNextChar ();\n switch (c) {\n case '\"': c = '\"'; break;\n case '\\\\': c = '\\\\'; break;\n case '/' : c = '/'; break;\n case 'b' : c = '\\b'; break;\n case 'f' : c = '\\f'; break;\n case 'n' : c = '\\n'; break;\n case 'r' : c = '\\r'; break;\n case 't' : c = '\\t'; break;\n case 'u' :\n utf = 0;\n utf += Character.digit(getNextChar (), 16) << 12;\n utf += Character.digit(getNextChar (), 16) << 8;\n utf += Character.digit(getNextChar (), 16) << 4;\n utf += Character.digit(getNextChar (), 16);\n c = (char)utf;\n break;\n }\n }\n m_sb.append (c);\n c = getNextChar ();\n }\n return eatChar ('\"') ? m_sb.toString () : null;\n }",
"public void testReadAsString() throws Exception {\n\t\tString foundText = te.getTextAsString();\n\n\t\t// Turn the string array into a single string\n\t\tStringBuffer expectTextSB = new StringBuffer();\n\t\tfor(int i=0; i<allTheText.length; i++) {\n\t\t\texpectTextSB.append(allTheText[i]);\n\t\t\texpectTextSB.append('\\n');\n\t\t}\n\t\tString expectText = expectTextSB.toString();\n\n\t\t// Ensure they match\n\t\tassertEquals(expectText,foundText);\n\t}",
"public static void main (String args []) {\n\r\n String str = \"\\\"क\\\", \\\"का\\\", \\\"कि\\\", \\\"की\\\", \\\"कु\\\", \\\"कू\\\", \\\"के\\\", \\\"कै\\\", \\\"को\\\", \\\"कौ\\\", \\\"कं\\\", \\\"क:\\\"\" ;\r\n String strEng = \"\\\"ka\\\", \\\"kā\\\", \\\"ki\\\", \\\"kī\\\", \\\"ku\\\", \\\"kū\\\", \\\"kē\\\", \\\"kai\\\", \\\"ko\\\", \\\"kau\\\", \\\"kṁ\\\", \\\"ka:\\\"\" ;\r\n\r\n String additionalConsonants = \"\\\"क़\\\", \\\"क़ा\\\", \\\"क़ि\\\", \\\"क़ी\\\", \\\"क़ु\\\", \\\"क़ू\\\", \\\"क़े\\\", \\\"क़ै\\\", \\\"क़ो\\\", \\\"क़ौ\\\", \\\"क़ं\\\", \\\"क़:\\\"\"; \r\n String additionalConsonantsEng = \"\\\"qa\\\", \\\"qā\\\", \\\"qi\\\", \\\"qī\\\", \\\"qu\\\", \\\"qū\\\", \\\"qē\\\", \\\"qai\\\", \\\"qo\\\", \\\"qau\\\", \\\"qṁ\\\", \\\"qa:\\\"\" ;\r\n\r\n //String str = \"क, का, कि, की, कु, कू, के, कै, को, कौ, कं, क:\" ;\r\n \r\n \r\n \r\n //generateNP(str);\r\n //generateEN(strEng);\r\n //System.out.println();\r\n generateNPAdditionalConsonants(additionalConsonants);\r\n generateENAdditionalConsonants(additionalConsonantsEng);\r\n\r\n\r\n\r\n }",
"public String LCS_string_Recursion(String X, String Y) {\r\n int len = LCS_length(X,Y);\r\n return LCS_string_Recursion(X,Y,X.length(),Y.length(),len);\r\n }",
"@Override\r\n\tprotected void convertStringConst(String str) {\r\n\t\tappend(\"\\'\\\"\", str.replace(\"\\'\",\"\\'\\'\"), \"\\\"\\'\");\r\n\t}",
"public String[] getString();",
"private static String m33066X(String str, String str2, String str3) {\n String str4;\n int i = 1;\n AppMethodBeat.m2504i(135623);\n C5728b c5728b = new C5728b(str);\n if (!c5728b.exists()) {\n c5728b.mkdirs();\n }\n if (C5046bo.isNullOrNil(str2)) {\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n } else {\n if (!(C5046bo.isNullOrNil(str3) || str2.endsWith(str3))) {\n str2 = str2 + \".\" + str3;\n }\n str4 = str + str2;\n if (C5730e.m8628ct(str4)) {\n while (i < 20) {\n if (!C5730e.m8628ct(str + i + \"_\" + str2)) {\n str4 = str + i + \"_\" + str2;\n break;\n }\n i++;\n }\n if (i == 20) {\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n }\n }\n }\n try {\n if (!C5736j.m8649w(new C5728b(str4).dMC().dMD()).equalsIgnoreCase(C5736j.m8649w(new C5728b(str).dMD()))) {\n str4 = str + \"da_\" + C5046bo.anU();\n C4990ab.m7421w(\"MicroMsg.AppMsgLogic\", \"maybe DirTraversal attach. %s\", str4);\n }\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.AppMsgLogic\", e, \"\", new Object[0]);\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n }\n AppMethodBeat.m2505o(135623);\n return str4;\n }",
"public String readString(boolean inc)\r\n {\n switch(vp.types[vp.dataPos])\r\n {\r\n case VirtualPointer.StringAscii:\r\n return readString(inc, false);\r\n case VirtualPointer.StringUnicode:\r\n return readString(inc, true);\r\n }\r\n//#endif\r\n //Need to figure out String type\r\n int len = vp.data.length;\r\n for (int i = vp.dataPos; i < len; i++)\r\n {\r\n if ((vp.data[i] & 0xFF) > 0x7F)\r\n {\r\n \t//Byte has the high-bit set, this means UTF-8\r\n return readString(inc, true);\r\n }\r\n }\r\n //ASCII\r\n return readString(inc, false);\r\n }",
"String processing();",
"public static String fromEscapedUnicode(String escapedUnicodeString)\n\t{\n\t\tint off = 0;\n\t\tchar[] in = escapedUnicodeString.toCharArray();\n\t\tint len = in.length;\n\t\tchar[] convtBuf = new char[len];\n\n\t\tif (convtBuf.length < len)\n\t\t{\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0)\n\t\t\t{\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end)\n\t\t{\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\')\n\t\t\t{\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u')\n\t\t\t\t{\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase '0' :\n\t\t\t\t\t\t\tcase '1' :\n\t\t\t\t\t\t\tcase '2' :\n\t\t\t\t\t\t\tcase '3' :\n\t\t\t\t\t\t\tcase '4' :\n\t\t\t\t\t\t\tcase '5' :\n\t\t\t\t\t\t\tcase '6' :\n\t\t\t\t\t\t\tcase '7' :\n\t\t\t\t\t\t\tcase '8' :\n\t\t\t\t\t\t\tcase '9' :\n\t\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'a' :\n\t\t\t\t\t\t\tcase 'b' :\n\t\t\t\t\t\t\tcase 'c' :\n\t\t\t\t\t\t\tcase 'd' :\n\t\t\t\t\t\t\tcase 'e' :\n\t\t\t\t\t\t\tcase 'f' :\n\t\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'A' :\n\t\t\t\t\t\t\tcase 'B' :\n\t\t\t\t\t\t\tcase 'C' :\n\t\t\t\t\t\t\tcase 'D' :\n\t\t\t\t\t\t\tcase 'E' :\n\t\t\t\t\t\t\tcase 'F' :\n\t\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char)value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\t}\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\t}\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\t}\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}",
"public static String convertText(String s) {\r\n StringCharacterIterator stringcharacteriterator = new StringCharacterIterator(s);\r\n StringBuffer stringbuffer = new StringBuffer();\r\n int ai[] = new int[s.length()];\r\n int i = 0;\r\n int j = 0;\r\n for(char c = stringcharacteriterator.first(); c != '\\uFFFF'; c = stringcharacteriterator.next())\r\n if(c == '%')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c != '%')\r\n {\r\n stringbuffer.append('%');\r\n c = stringcharacteriterator.previous();\r\n } else\r\n {\r\n c = stringcharacteriterator.next();\r\n switch(c)\r\n {\r\n case 37: // '%'\r\n stringbuffer.append('%');\r\n break;\r\n\r\n case 80: // 'P'\r\n case 112: // 'p'\r\n stringbuffer.append('\\361');\r\n break;\r\n\r\n case 67: // 'C'\r\n case 99: // 'c'\r\n stringbuffer.append('\\355');\r\n break;\r\n\r\n case 68: // 'D'\r\n case 100: // 'd'\r\n stringbuffer.append('\\u00b0');\r\n break;\r\n\r\n case 85: // 'U'\r\n case 117: // 'u'\r\n ai[stringbuffer.length()] ^= 1;\r\n i++;\r\n break;\r\n\r\n case 79: // 'O'\r\n case 111: // 'o'\r\n ai[stringbuffer.length()] ^= 2;\r\n j++;\r\n break;\r\n\r\n default:\r\n if(c >= '0' && c <= '9')\r\n {\r\n int k = 3;\r\n char c1 = (char)(c - 48);\r\n for(c = stringcharacteriterator.next(); c >= '0' && c <= '9' && --k > 0; c = stringcharacteriterator.next())\r\n c1 = (char)(10 * c1 + (c - 48));\r\n\r\n stringbuffer.append(c1);\r\n }\r\n c = stringcharacteriterator.previous();\r\n break;\r\n }\r\n }\r\n } else\r\n if(c == '^')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c == ' ')\r\n stringbuffer.append('^');\r\n } else\r\n {\r\n stringbuffer.append(c);\r\n }\r\n s = Unicode.char2DOS437(stringbuffer, 2, '?');\r\n\r\n\t\tString ss = s;\r\n\t\treturn ss;\r\n\t}",
"private static String zzgr(String string2) {\n int n = string2.length();\n StringBuilder stringBuilder = new StringBuilder(n);\n int n2 = 0;\n while (n2 < n) {\n char c = string2.charAt(n2);\n if (c >= ' ' && c <= '~' && c != '\\\"' && c != '\\'') {\n stringBuilder.append(c);\n } else {\n stringBuilder.append(String.format(\"\\\\u%04x\", c));\n }\n ++n2;\n }\n return stringBuilder.toString();\n }",
"public static String toEscapedUnicode(String unicodeString)\n\t{\n\t\tint len = unicodeString.length();\n\t\tint bufLen = len * 2;\n\t\tStringBuffer outBuffer = new StringBuffer(bufLen);\n\t\tfor (int x = 0; x < len; x++)\n\t\t{\n\t\t\tchar aChar = unicodeString.charAt(x);\n\t\t\t// Handle common case first, selecting largest block that\n\t\t\t// avoids the specials below\n\t\t\tif ((aChar > 61) && (aChar < 127))\n\t\t\t{\n\t\t\t\tif (aChar == '\\\\')\n\t\t\t\t{\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\toutBuffer.append(aChar);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tswitch (aChar)\n\t\t\t{\n\t\t\t\tcase ' ' :\n\t\t\t\t\tif (x == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\t}\n\t\t\t\t\toutBuffer.append(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\t' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('t');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('n');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\r' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('r');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\f' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('f');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '=' : // Fall through\n\t\t\t\tcase ':' : // Fall through\n\t\t\t\tcase '#' : // Fall through\n\t\t\t\tcase '!' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append(aChar);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tif ((aChar < 0x0020) || (aChar > 0x007e))\n\t\t\t\t\t{\n\t\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\t\toutBuffer.append('u');\n\t\t\t\t\t\toutBuffer.append(toHex((aChar >> 12) & 0xF));\n\t\t\t\t\t\toutBuffer.append(toHex((aChar >> 8) & 0xF));\n\t\t\t\t\t\toutBuffer.append(toHex((aChar >> 4) & 0xF));\n\t\t\t\t\t\toutBuffer.append(toHex(aChar & 0xF));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toutBuffer.append(aChar);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn outBuffer.toString();\n\t}",
"FPNode_Strings(){\r\n\t\t\r\n\t}",
"private String getAllStringForValue(final String value) {\n\t\treturn \"\\\"\" + value + \"\\\"\";\n\t}",
"@Test\n void labTask() {\n String s = \"abczefoh\";\n List<String> result = StringSplitter.labTask(s);\n\n String first = result.get(0);\n assertEquals(3, first.length());\n assertEquals('a', first.charAt(0));\n assertFalse(\"abc\".contains(String.valueOf(first.charAt(1))));\n assertEquals('c', first.charAt(2));\n\n String second = result.get(1);\n assertEquals(2, second.length());\n assertEquals('o', second.charAt(0));\n assertFalse(\"oh\".contains(String.valueOf(second.charAt(1))));\n\n String third = result.get(2);\n assertEquals(3, third.length());\n assertEquals('z', third.charAt(0));\n assertFalse(\"zef\".contains(String.valueOf(second.charAt(1))));\n assertEquals('f', third.charAt(2));\n }",
"@Test\r\n public void testGetStringRepresentation() {\r\n }",
"public void testSimplePropFindWithNonLatinWithFakePathWS() throws Exception\n {\n testSimplePropFindWithNonLatin(getFakePathWS());\n }",
"public IAstRlsString[] getRlsStrings();",
"private Strings()\n\t{\n\t}",
"private Strings()\n\t{\n\t}",
"private String removeSlashes(String in) {\n StringBuffer sb = new StringBuffer();\n int i = in.indexOf(\"\\\\\\\\\");\n if (i != -1) {\n return in;\n }\n\n sb.append(in.substring(0,i+1));\n \n int index = i+2;\n boolean done = false;\n while (!done) {\n i = in.indexOf(\"\\\\\\\\\",index);\n if (i == -1) {\n sb.append(in.substring(index));\n done = true;\n }\n else {\n sb.append(in.substring(index,i+1)+\"\\\\\");\n index = i+2;\n }\n }\n return sb.toString();\n }",
"public abstract String getString();",
"public abstract String getString();",
"public CharSequence XtremeUni(String myString1, Boolean Uni) {\n\t\t\n String uni = \"[\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1000\t\t\\\",\\\"to\\\":\\\"\t\\u1EF5\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1001\t\t\\\",\\\"to\\\":\\\"\t\\u1EF6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1002\t\t\\\",\\\"to\\\":\\\"\t\\u1EF7\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1003\t\t\\\",\\\"to\\\":\\\"\t\\u1EF8\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1004\t\t\\\",\\\"to\\\":\\\"\t\\u1EF9\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1005\t\t\\\",\\\"to\\\":\\\"\t\\u1F00\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1006\t\t\\\",\\\"to\\\":\\\"\t\\u1F01\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1007\t\t\\\",\\\"to\\\":\\\"\t\\u1F02\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1008\t\t\\\",\\\"to\\\":\\\"\t\\u1F03\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1009\t\t\\\",\\\"to\\\":\\\"\t\\u1F04\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u100A\t\t\\\",\\\"to\\\":\\\"\t\\u1F05\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u100B\t\t\\\",\\\"to\\\":\\\"\t\\u1F06\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u100C\t\t\\\",\\\"to\\\":\\\"\t\\u1F07\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u100D\t\t\\\",\\\"to\\\":\\\"\t\\u1F08\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u100E\t\t\\\",\\\"to\\\":\\\"\t\\u1F09\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u100F\t\t\\\",\\\"to\\\":\\\"\t\\u1F0A\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1010\t\t\\\",\\\"to\\\":\\\"\t\\u1F0B\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1011\t\t\\\",\\\"to\\\":\\\"\t\\u1F0C\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1012\t\t\\\",\\\"to\\\":\\\"\t\\u1F0D\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1013\t\t\\\",\\\"to\\\":\\\"\t\\u1F0E\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1014\t\t\\\",\\\"to\\\":\\\"\t\\u1F0F\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1015\t\t\\\",\\\"to\\\":\\\"\t\\u1F10\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1016\t\t\\\",\\\"to\\\":\\\"\t\\u1F11\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1017\t\t\\\",\\\"to\\\":\\\"\t\\u1F12\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1018\t\t\\\",\\\"to\\\":\\\"\t\\u1F13\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1019\t\t\\\",\\\"to\\\":\\\"\t\\u1F14\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u101A\t\t\\\",\\\"to\\\":\\\"\t\\u1F15\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u101B\t\t\\\",\\\"to\\\":\\\"\t\\u1F18\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u101C\t\t\\\",\\\"to\\\":\\\"\t\\u1F19\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u101D\t\t\\\",\\\"to\\\":\\\"\t\\u1F1A\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u101E\t\t\\\",\\\"to\\\":\\\"\t\\u1F1B\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u101F\t\t\\\",\\\"to\\\":\\\"\t\\u1F1C\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1020\t\t\\\",\\\"to\\\":\\\"\t\\u1F1D\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1021\t\t\\\",\\\"to\\\":\\\"\t\\u1F20\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1023\t\t\\\",\\\"to\\\":\\\"\t\\u1F21\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1024\t\t\\\",\\\"to\\\":\\\"\t\\u1F22\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1025\t\t\\\",\\\"to\\\":\\\"\t\\u1F23\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1026\t\t\\\",\\\"to\\\":\\\"\t\\u1F24\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1027\t\t\\\",\\\"to\\\":\\\"\t\\u1F25\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1029\t\t\\\",\\\"to\\\":\\\"\t\\u1F26\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u102A\t\t\\\",\\\"to\\\":\\\"\t\\u1F27\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u102B\t\t\\\",\\\"to\\\":\\\"\t\\u1EC0\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u102C\t\t\\\",\\\"to\\\":\\\"\t\\u1EC1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u102D\t\t\\\",\\\"to\\\":\\\"\t\\u1EC2\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u102E\t\t\\\",\\\"to\\\":\\\"\t\\u1EC3\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u102F\t\t\\\",\\\"to\\\":\\\"\t\\u1EC4\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1030\t\t\\\",\\\"to\\\":\\\"\t\\u1EC5\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1031\t\t\\\",\\\"to\\\":\\\"\t\\u1EC6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1032\t\t\\\",\\\"to\\\":\\\"\t\\u1EC7\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1033\t\t\\\",\\\"to\\\":\\\"\t\\u1EE5\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1034\t\t\\\",\\\"to\\\":\\\"\t\\u1EE6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1036\t\t\\\",\\\"to\\\":\\\"\t\\u1EC8\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1037\t\t\\\",\\\"to\\\":\\\"\t\\u1EC9\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1038\t\t\\\",\\\"to\\\":\\\"\t\\u1ECA\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1039\t\t\\\",\\\"to\\\":\\\"\t\\u1ECB\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u103A\t\t\\\",\\\"to\\\":\\\"\t\\u1ECC\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u103B|\\u103C)\t\t\\\",\\\"to\\\":\\\"\t\\u1ED8\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u103B\t\t\\\",\\\"to\\\":\\\"\t\\u1ED0\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u103C\t\t\\\",\\\"to\\\":\\\"\t\\u1ECD\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u103D\t\t\\\",\\\"to\\\":\\\"\t\\u1ECE\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1040\t\t\\\",\\\"to\\\":\\\"\t\\u1F29\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1041\t\t\\\",\\\"to\\\":\\\"\t\\u1F2A\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1042\t\t\\\",\\\"to\\\":\\\"\t\\u1F2B\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1043\t\t\\\",\\\"to\\\":\\\"\t\\u1F2C\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1044\t\t\\\",\\\"to\\\":\\\"\t\\u1F2D\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1045\t\t\\\",\\\"to\\\":\\\"\t\\u1F2E\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1046\t\t\\\",\\\"to\\\":\\\"\t\\u1F2F\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1047\t\t\\\",\\\"to\\\":\\\"\t\\u1F30\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1048\t\t\\\",\\\"to\\\":\\\"\t\\u1F31\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1049\t\t\\\",\\\"to\\\":\\\"\t\\u1F32\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u104A\t\t\\\",\\\"to\\\":\\\"\t\\u1F33\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u104B\t\t\\\",\\\"to\\\":\\\"\t\\u1F34\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u104C\t\t\\\",\\\"to\\\":\\\"\t\\u1F35\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u104D\t\t\\\",\\\"to\\\":\\\"\t\\u1F36\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u104E\t\t\\\",\\\"to\\\":\\\"\t(\\u1F37|\\u1EF9|\\u1ECB)\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u104F\t\t\\\",\\\"to\\\":\\\"\t\\u1F38\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u105A\t\t\\\",\\\"to\\\":\\\"\t\\u1ECF\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1060\t\t\\\",\\\"to\\\":\\\"\t\\u1EA0\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1061\t\t\\\",\\\"to\\\":\\\"\t\\u1EA1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1062\t\t\\\",\\\"to\\\":\\\"\t\\u1EA2\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1063\t\t\\\",\\\"to\\\":\\\"\t\\u1EA3\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1064\t\t\\\",\\\"to\\\":\\\"\t\\u1EDC\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1065\t\t\\\",\\\"to\\\":\\\"\t\\u1EA5\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1066\t\t\\\",\\\"to\\\":\\\"\t\\u1EA6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1067\t\t\\\",\\\"to\\\":\\\"\t\\u1EA6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1068\t\t\\\",\\\"to\\\":\\\"\t\\u1EA7\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1069\t\t\\\",\\\"to\\\":\\\"\t\\u1EA8\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u106A\t\t\\\",\\\"to\\\":\\\"\t\\u1EE9\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u106B\t\t\\\",\\\"to\\\":\\\"\t\\u1EE7\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u106C\t\t\\\",\\\"to\\\":\\\"\t\\u1EAB\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u106D\t\t\\\",\\\"to\\\":\\\"\t\\u1EAC\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u106E\t\t\\\",\\\"to\\\":\\\"\t\\u1EF1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u106F\t\t\\\",\\\"to\\\":\\\"\t\\u1EEC\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1070\t\t\\\",\\\"to\\\":\\\"\t\\u1EAF\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1071\t\t\\\",\\\"to\\\":\\\"\t\\u1EB0\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1072\t\t\\\",\\\"to\\\":\\\"\t\\u1EB0\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1073\t\t\\\",\\\"to\\\":\\\"\t\\u1EB1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1074\t\t\\\",\\\"to\\\":\\\"\t\\u1EB1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1075\t\t\\\",\\\"to\\\":\\\"\t\\u1EB2\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1076\t\t\\\",\\\"to\\\":\\\"\t\\u1EB3\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1077\t\t\\\",\\\"to\\\":\\\"\t\\u1EB4\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1078\t\t\\\",\\\"to\\\":\\\"\t\\u1EB5\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1079\t\t\\\",\\\"to\\\":\\\"\t\\u1EB6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u107A\t\t\\\",\\\"to\\\":\\\"\t\\u1EB7\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u107B\t\t\\\",\\\"to\\\":\\\"\t\\u1EB8\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u107C\t\t\\\",\\\"to\\\":\\\"\t\\u1EB9\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u107D|\\u103C)\\\",\\\"to\\\":\\\"\t\\u1ED7\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u107D|\\u108A)\\\",\\\"to\\\":\\\"\t\\u1EDB\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u103D|\\u107D)\\\",\\\"to\\\":\\\"\t\\u1EDA\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u107E|\\u103C)\t\t\\\",\\\"to\\\":\\\"\t\\u1ED9\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u107E\t\t\\\",\\\"to\\\":\\\"\t\\u1ED1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u107F\t\t\\\",\\\"to\\\":\\\"\t\\u1ED2\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1080\t\t\\\",\\\"to\\\":\\\"\t\\u1ED3\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1081\t\t\\\",\\\"to\\\":\\\"\t\\u1ED4\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1082\t\t\\\",\\\"to\\\":\\\"\t\\u1ED5\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u1083|\\u103C)\\\",\\\"to\\\":\\\"\t\\u1ED8\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u1083|\\u108A)\\\",\\\"to\\\":\\\"\t\\u1EDC\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t(\\u1084|\\u103C)\\\",\\\"to\\\":\\\"\t\\u1ED9\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"(\\u1084|\\u108A)\t\\\",\\\"to\\\":\\\"\t\\u1EDD\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1085\t\t\\\",\\\"to\\\":\\\"\t\\u1EBC\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1086\t\t\\\",\\\"to\\\":\\\"\t\\u1F28\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1087\t\t\\\",\\\"to\\\":\\\"\t\\u1EE3\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1088\t\t\\\",\\\"to\\\":\\\"\t\\u1EE4\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1089\t\t\\\",\\\"to\\\":\\\"\t(\\u1ECE|\\u1EE6)\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u108A\t\t\\\",\\\"to\\\":\\\"\t\\u1ED6\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u108B\t\t\\\",\\\"to\\\":\\\"\t\\u1EDF\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u108C\t\t\\\",\\\"to\\\":\\\"\t\\u1EE0\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u108D\t\t\\\",\\\"to\\\":\\\"\t\\u1EE1\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u108E\t\t\\\",\\\"to\\\":\\\"\t\\u1EE2\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u108F\t\t\\\",\\\"to\\\":\\\"\t\\u1EEA\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1090\t\t\\\",\\\"to\\\":\\\"\t\\u1EEB\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1091\t\t\\\",\\\"to\\\":\\\"\t\\u1EEE\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1092\t\t\\\",\\\"to\\\":\\\"\t\\u1EED\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1094\t\t\\\",\\\"to\\\":\\\"\t\\u1EF3\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1095\t\t\\\",\\\"to\\\":\\\"\t\\u1EF4\t\t\t\\\"},\"\n \t\t+\t \" {\\\"from\\\": \\\"\t\\u1097\t\t\\\",\\\"to\\\":\\\"\t\\u1EF0\t\t\t\\\"},\"\n+ \"]\";\n if(Uni) {\n \t\tString temp = (String) ZawGyiToUni(myString1, false);\n \t\treturn replacewithXUi(uni, temp);\n \t\t} else {\n return replacewithXUi(uni, myString1);\n \t\t}\n }",
"@Deprecated\r\n\tpublic static String addSlashesString(String str) {\r\n\t\tif (str == null)\r\n\t\t\treturn str;\r\n\r\n\t\tString newStr = \"\";\r\n\t\tfor (int i = 0; i < str.length(); ++i) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tswitch (c) {\r\n\t\t\tcase '\\n':\r\n\t\t\t\tnewStr += \"\\\\n\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\r':\r\n\t\t\t\tnewStr += \"\\\\r\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\t':\r\n\t\t\t\tnewStr += \"\\\\t\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\\\':\r\n\t\t\t\tnewStr += \"\\\\\\\\\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tnewStr += c;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newStr;\r\n\t}",
"public final ArrayList<String> GetStringsForCurrentTypeAndSystem(boolean otherStringsToo)\n {\n return MethodsUnitP.GetStringsTypeAndSystemCommon\n (\n \tUnitType, UnitSystem, otherStringsToo\n );\n }",
"private Token getNextString() {\n StringBuilder sb = new StringBuilder();\n sb.append(this.data[currentIndex++]);\n\n while (currentIndex < this.data.length) {\n char currChar = this.data[currentIndex];\n\n if (currChar == '\\\\') {\n char nextChar = this.data[currentIndex + 1];\n\n if (nextChar == '\\\"') {\n sb.append(\"\\\"\");\n currentIndex += 2;\n } else if (nextChar == 'r' || nextChar == 't' || nextChar == 'n') {\n sb.append(currChar).append(nextChar);\n currentIndex += 2;\n } else {\n throw new LexerException(\"Invalid sequence starting with \\\\\");\n }\n\n continue;\n }\n\n sb.append(currChar);\n currentIndex++;\n\n if (currChar == '\\\"') {\n break;\n }\n }\n\n return new Token(TokenType.STRING, sb.toString());\n }",
"public List<String> decode(String s) {\n List<String> res = new ArrayList<String>();\n int i = 0;\n while(i < s.length())\n {\n int pre = i;\n while(s.charAt(i)!='/') ++i;\n int len = Integer.valueOf(s.substring(pre,i));\n ++i;\n res.add(s.substring(i,i+len));\n i = i+len;\n }\n return res;\n }",
"public String mo27425a(String str) {\n return str + File.separator + this.f17426b + this.f17425a;\n }",
"@Override\n\tpublic List<String> getAllString() {\n\t\treturn null;\n\t}",
"private String fixedStringToXpath(String s) {\n return \"\\\"\" + s.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\").replaceAll(\"\\\"\", \"\\\\\\\"\") + \"\\\"\";\n }",
"String mo2801a(String str);",
"public void testSimplePropFindWithNonLatin() throws Exception\n {\n testSimplePropFindWithNonLatin(getPathWS());\n }",
"public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }",
"public static String isoToUTF8(String value) throws Exception{\n \treturn value;\n\t}",
"String getString_lit();",
"private char[] getProperty(String string) {\n\t\treturn null;\r\n\t}",
"private JSONDocument parseString(String data){\n JSONDocument temp = null;\n int pointer = 0;\n boolean firstValidCharReached = false;\n do{\n char c = data.charAt(pointer ++);\n switch (c) {\n case '{':\n HashMap thm = this.parseMap(this.getFull(data.substring(pointer),0));\n temp = new JSONDocument(thm);\n firstValidCharReached = true;\n break;\n case '[':\n ArrayList tal = this.parseList(this.getFull(data.substring(pointer),1));\n temp = new JSONDocument(tal);\n firstValidCharReached = true;\n break;\n }\n }while (!firstValidCharReached);\n return temp;\n }",
"public static String[] readStrings() {\n return readAllStrings();\n }",
"@Test\n public void testunicode32() {\n assertEquals(\"\\uD834\\uDD1E\", JsonReader.read(\"\\\"\\\\uD834\\\\uDD1E\\\"\"));\n }",
"@Deprecated\r\n\tpublic static String removeSlashesString(String str) {\r\n\r\n\t\tif (str == null)\r\n\t\t\treturn str;\r\n\r\n\t\tString newStr = \"\";\r\n\t\tfor (int i = 0; i < str.length(); ++i) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tif (c == '\\\\' && str.length() > i + 1) {\r\n\t\t\t\ti++;\r\n\t\t\t\tchar c2 = str.charAt(i);\r\n\t\t\t\tswitch (c2) {\r\n\t\t\t\tcase 'n':\r\n\t\t\t\t\tnewStr += \"\\n\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'r':\r\n\t\t\t\t\tnewStr += \"\\r\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 't':\r\n\t\t\t\t\tnewStr += \"\\t\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\\\\':\r\n\t\t\t\t\tnewStr += \"\\\\\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault: {\r\n\t\t\t\t\tnewStr += c;\r\n\t\t\t\t\tnewStr += c2;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tnewStr += c;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn newStr;\r\n\t}",
"public String getStringContent() throws IOException;",
"String mo1888b(String str, String str2, String str3, String str4);",
"public String getString();",
"@Test\n public void testStringToList() {\n // test whether empty string converts to empty list\n logger.trace(\"Empty string handled?\");\n String string = \"\";\n List<String> list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single space converts to empty list\n logger.trace(\"Single space handled?\");\n string = \" \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single item surrounded by spaces converts to list of size 1\n logger.trace(\"Item surrounded by spaces handled?\");\n string = \" foo \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 1);\n\n // test whether two item string converts to list of size 2\n logger.trace(\"Two item string handled?\");\n string = \" foo bar \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 2);\n }",
"private String avoidErrorChar (String original) {\n\t\tStringBuffer modSB = new StringBuffer();\n\t\tfor (int j=0; j < original.length(); j++) {\n\t\t\tchar c = original.charAt(j);\n\t\t\tif (c == '\\n') {\n\t\t\t\tmodSB.append(\"\\\\n\"); // rimpiazzo il ritorno a capo con il simbolo \\n\n\t\t\t} else if (c == '\"') {\n\t\t\t\tmodSB.append(\"''\"); // rimpiazzo le doppie virgolette (\") con due apostofi ('')\n\t\t\t} else if ((int)c > 31 || (int)c !=127){ // non stampo i primi 32 caratteri di controllo\n\t\t\t\tmodSB.append(c);\n\t\t\t}\n\t\t}\n\t\treturn modSB.toString();\n\t}",
"private String d(String paramString)\r\n/* 561: */ {\r\n/* 562:566 */ while ((paramString != null) && (paramString.endsWith(\"\\n\"))) {\r\n/* 563:567 */ paramString = paramString.substring(0, paramString.length() - 1);\r\n/* 564: */ }\r\n/* 565:569 */ return paramString;\r\n/* 566: */ }",
"private static java.lang.String readStringFromFile(java.io.File r9) {\n /*\n r5 = 0\n r3 = 0\n java.io.FileReader r4 = new java.io.FileReader // Catch:{ FileNotFoundException -> 0x0059, IOException -> 0x0038 }\n r4.<init>(r9) // Catch:{ FileNotFoundException -> 0x0059, IOException -> 0x0038 }\n r7 = 128(0x80, float:1.794E-43)\n char[] r0 = new char[r7] // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n r6.<init>() // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n L_0x0010:\n int r1 = r4.read(r0) // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n if (r1 <= 0) goto L_0x002a\n r7 = 0\n r6.append(r0, r7, r1) // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n goto L_0x0010\n L_0x001b:\n r2 = move-exception\n r3 = r4\n L_0x001d:\n java.lang.String r7 = \"PluginNativeHelper\"\n java.lang.String r8 = \"cannot find file to read\"\n com.tencent.component.utils.log.LogUtil.d(r7, r8, r2) // Catch:{ all -> 0x0048 }\n if (r3 == 0) goto L_0x0029\n r3.close() // Catch:{ IOException -> 0x004f }\n L_0x0029:\n return r5\n L_0x002a:\n java.lang.String r5 = r6.toString() // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n if (r4 == 0) goto L_0x005b\n r4.close() // Catch:{ IOException -> 0x0035 }\n r3 = r4\n goto L_0x0029\n L_0x0035:\n r7 = move-exception\n r3 = r4\n goto L_0x0029\n L_0x0038:\n r2 = move-exception\n L_0x0039:\n java.lang.String r7 = \"PluginNativeHelper\"\n java.lang.String r8 = \"error occurs while reading file\"\n com.tencent.component.utils.log.LogUtil.d(r7, r8, r2) // Catch:{ all -> 0x0048 }\n if (r3 == 0) goto L_0x0029\n r3.close() // Catch:{ IOException -> 0x0046 }\n goto L_0x0029\n L_0x0046:\n r7 = move-exception\n goto L_0x0029\n L_0x0048:\n r7 = move-exception\n L_0x0049:\n if (r3 == 0) goto L_0x004e\n r3.close() // Catch:{ IOException -> 0x0051 }\n L_0x004e:\n throw r7\n L_0x004f:\n r7 = move-exception\n goto L_0x0029\n L_0x0051:\n r8 = move-exception\n goto L_0x004e\n L_0x0053:\n r7 = move-exception\n r3 = r4\n goto L_0x0049\n L_0x0056:\n r2 = move-exception\n r3 = r4\n goto L_0x0039\n L_0x0059:\n r2 = move-exception\n goto L_0x001d\n L_0x005b:\n r3 = r4\n goto L_0x0029\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.component.plugin.PluginNativeHelper.readStringFromFile(java.io.File):java.lang.String\");\n }",
"private String parseString () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n fBuffer.delete(0, fBuffer.length());//empty string buffer\r\n \r\n char chr=next();//consume opening quote\r\n assert chr=='\"';//assert quote found\r\n chr=next();//get next character\r\n if (chr=='\"') return \"\";//return empty string if closing quote\r\n while (chr!='\"') {//until closing quote reached\r\n if (chr==NONE) throw new RuntimeException(\"Invalid syntax : \"+context());//Awwww....\r\n if (chr=='\\\\') {//if escape character\r\n fBuffer.append('\\\\');//append escape character\r\n chr=next();//get next character\r\n }//if escape character\r\n fBuffer.append(chr);//append character to the string\r\n chr=next();//get the next character\r\n }//until closing quote reached \r\n \r\n return fBuffer.toString();//return string in buffer\r\n \r\n }",
"public String getString(String name)\n/* */ {\n/* 827 */ return getString(name, null);\n/* */ }",
"private void createString() {\n\n\t\tString value = String.valueOf(data[currentIndex++]);\n\t\twhile (currentIndex < data.length && data[currentIndex] != '\"') {\n\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tif (currentIndex >= data.length) {\n\t\t\t\t\tthrow new LexerException(\n\t\t\t\t\t\t\t\"Invalid escaping in STRING token.\");\n\t\t\t\t}\n\n\t\t\t\tswitch (data[currentIndex]) {\n\t\t\t\tcase '\"':\n\t\t\t\tcase '\\\\':\n\t\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'n':\n\t\t\t\t\tvalue += '\\n';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'r':\n\t\t\t\t\tvalue += '\\r';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 't':\n\t\t\t\t\tvalue += '\\t';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new LexerException(\n\t\t\t\t\t\t\t\"Invalid escaping in STRING token.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t}\n\t\t}\n\n\t\tif (currentIndex < data.length) {\n\t\t\tvalue += data[currentIndex++];\n\t\t} else {\n\t\t\tthrow new LexerException(\"Missing end: \\\".\");\n\t\t}\n\n\t\ttoken = new Token(TokenType.STRING, value);\n\t}",
"String mo1889a(String str, String str2, String str3, String str4);",
"boolean mo1887a(String str);",
"String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}"
] |
[
"0.55554736",
"0.55449647",
"0.54591215",
"0.54103106",
"0.5396199",
"0.53694826",
"0.5330149",
"0.5306443",
"0.5284564",
"0.52758443",
"0.5253855",
"0.5233269",
"0.5229318",
"0.5213217",
"0.5207564",
"0.5182187",
"0.51741755",
"0.51658916",
"0.51610506",
"0.51587105",
"0.513251",
"0.51290196",
"0.5108481",
"0.5107101",
"0.5077765",
"0.5070787",
"0.5057221",
"0.50523216",
"0.5038342",
"0.5023844",
"0.50226474",
"0.49976832",
"0.4997174",
"0.4997174",
"0.4997174",
"0.49960157",
"0.49928156",
"0.49885085",
"0.4980386",
"0.49677545",
"0.4966703",
"0.49654466",
"0.49567044",
"0.49541733",
"0.49530903",
"0.49449417",
"0.4942152",
"0.49400792",
"0.4939963",
"0.4931052",
"0.49260986",
"0.49121162",
"0.4897059",
"0.48947746",
"0.4892907",
"0.4892174",
"0.48911068",
"0.48752743",
"0.4872266",
"0.48677298",
"0.48663917",
"0.48658258",
"0.48626795",
"0.48590946",
"0.48555318",
"0.48478583",
"0.48478583",
"0.48435947",
"0.4836822",
"0.4836822",
"0.48345748",
"0.48341846",
"0.48212528",
"0.48206183",
"0.48027194",
"0.4792617",
"0.47923335",
"0.47911325",
"0.47901893",
"0.4787662",
"0.4785629",
"0.47842005",
"0.47788444",
"0.47775444",
"0.47696403",
"0.4754416",
"0.47449186",
"0.4740517",
"0.47379643",
"0.4735254",
"0.47178",
"0.4715197",
"0.47121862",
"0.4710787",
"0.47036391",
"0.4702963",
"0.4701782",
"0.4698131",
"0.46934023",
"0.46933806",
"0.4691178"
] |
0.0
|
-1
|
Creates a nQueen problem with only binary constraints. n queens must be placed on a nxn chessboard. The variables can be accessed though the hook name "vars".
|
@SuppressWarnings("Duplicates")
public static Solver makeNQueenWithBinaryConstraints(int n){
Solver solver = new Solver();
IntVar[] vars = new IntVar[n];
for (int i = 0; i < vars.length; i++) {
vars[i] = VariableFactory.enumerated("Q_" + i, 1, n, solver);
}
solver.addHook("vars", vars);
for (int i = 0; i < n - 1; i++) {
for (int j = i + 1; j < n; j++) {
int k = j - i;
solver.post(IntConstraintFactory.arithm(vars[i], "!=", vars[j]));
solver.post(IntConstraintFactory.arithm(vars[i], "!=", vars[j], "+", -k));
solver.post(IntConstraintFactory.arithm(vars[i], "!=", vars[j], "+", k));
}
}
return solver;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void queenSet() {\n\n boolean[][] boxes = new boolean[4][4];\n // System.out.println(queenPermutation2D(boxes, 4, 0, \"\"));\n System.out.println(queenCombination2D(boxes, 4, 0, \"\"));\n }",
"public ArrayList<String[]> solveNQueens(int n) {\n ArrayList<String[]> res= new ArrayList<String[]>();\n int[] board=new int[n];\n dfs(res,board,n,0);\n return res;\n }",
"public static void main(String[] args) {\n\t\tScanner sc= new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the number of queens\");\r\n\t\tint n=sc.nextInt();\r\n\t\tint[] X= new int[n];\r\n\t\tint k=0;\r\n\t\tfor(int i=0;i<n;i++) {\r\n\t\t\tX[i]=0;\r\n\t\t}\r\n\t\twhile(k>=0) {\r\n\t\t\tX[k]=X[k]+1;\r\n\t\t\twhile(X[k]<=n && !place(k,X)) {\r\n\t\t\t\tX[k]=X[k]+1;\r\n\t\t\t}\r\n\t\t\tif(X[k]<=n) {\r\n\t\t\t\tif(k==n-1) {\r\n\t\t\t\t\tfor(int m=0;m<n;m++) {\r\n\t\t\t\t\t\tSystem.out.print(X[m]+\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tk=k+1;\r\n\t\t\t\t\tX[k]=0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tk=k-1;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Board(int n){\n attackLeftDiag = new boolean[2*n - 1];\n attackRightDiag = new boolean[2*n - 1];\n attackSide = new boolean[n];\n \n sizeOfBoard = n;\n numberOfQueensPlaced = 0;\n \n rowUsedByColNumber = new int[n];\n validConfigOfQueens = new ArrayList<String[]>();\n QueenInRow = generatePositions();\n }",
"public ArrayList<String[]> solveNQueens(int n) {\n int[] board=new int[n];\n res=new ArrayList<String[]>();\n dfs(board,0);\n return res;\n }",
"public Board(int n){\n openPositions = new boolean[n][n];\n numberOfQueensPlaced = 0;\n rowUsedByColNumber = new int[n];\n validConfigOfQueens = new ArrayList<String[]>();\n sizeOfBoard = n;\n QueenInRow = generatePositions();\n }",
"public int totalNQueens(int n) {\r\n\t\t// Note: The Solution object is instantiated only once and is reused by\r\n\t\t// each test case.\r\n\t\tint[] cols = new int[n];\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tcols[i] = -1;\r\n\t\t}\r\n\t\tint number = createNQueens(n, cols, 0);\r\n\t\treturn number;\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tNQueensProblem nQueen=new NQueensProblem();\n\t\tint board[][]=new int[N][N];\n\t\tnQueen.inputData(board);\n\t\tif(solveQueenProblem(board,0))\n\t\tnQueen.printResult(board);\n\t\telse {\n\t\t\tSystem.out.println(\"Not Exist\");\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tboolean[][] board=new boolean[n][n];\n\t\tplaceofqueen(board,0,0,n,0,\"\");\n}",
"public List<List<Integer>> nqueens(int n) {\n\t\tList<List<Integer>> result = new ArrayList<List<Integer>>();\n\t\t// cur will be a list of size n, and cur[i] is the column number where the queen\n\t\t// on row i positioned\n\t\tList<Integer> cur = new ArrayList<Integer>();\n\t\thelper(n, cur, result);\n\t\treturn result;\n\t}",
"ArrayList<ArrayList<String>> solveNQueens(int n) {\n ArrayList<ArrayList<String>> results = new ArrayList<>();\n if (n <= 0) {\n return results;\n }\n\n search(results, new ArrayList<Integer>(), n);\n return results;\n }",
"public static void main(String[] args) {\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tSystem.out.println(\"Input the number n : \");\n\t\tint n = keyboard.nextInt();\n\t\t// Integer can't deal with number which is larger than 32 bits. \n\t\tif ((n < 1) || (n > 32)) {\n\t\t\tSystem.out.println(\"It can only calculate 1-32.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tSystem.out.printf(\"%d Queens\\n\", n);\n\t\tN_Queens_high nq6 = new N_Queens_high();\n\t\tlong preTime = System.currentTimeMillis();\n\t\t// N queens only use n bits to store.\n\t\t// When there is a queen on a certain column, its bit is 1. \n\t upperlim = (upperlim << n) - 1;\n\t\tnq6.test(0, 0, 0);\n\t\tlong aftTime = System.currentTimeMillis();\n\t\tlong useTime = aftTime - preTime;\n\t\tSystem.out.print(\"Total solution : \" + sum + \" , Time : \" + useTime + \" ms\\n\");\n\t\t\n\t\tkeyboard.close();\n\t}",
"public List<List<Integer>> nqueens(int n) {\n List<List<Integer>> solu = new ArrayList<List<Integer>>();\n List<Integer> curr = new ArrayList<Integer>();\n if (n <=0)\n return solu;\n nqueens(n, 0, curr, solu);\n return solu;\n }",
"public List<List<String>> solveNQueens(int n) {\n if (n < 1) return Collections.EMPTY_LIST;\n\n char[][] board = new char[n][n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) board[i][j] = '.';\n }\n\n List<List<String>> result = new ArrayList<>();\n boolean[][] visited = new boolean[3][2 * n];\n backtracking(0, n, board, result, visited);\n return result;\n }",
"public List<List<String>> solveNQueens(int n) {\n N = n;\n results = new ArrayList<List<String>>();\n\n putQueenInRow(0, null, null);\n\n return results;\n }",
"public static void main(String[] args) {\n\t\tnqueen2 as = new nqueen2();\n\t\tas.solveNQueens(9);\n\n\t}",
"public int totalNQueens(int n) {\n return backtrack(0, new int[n]);\n }",
"public int totalNQueens(int n) {\n mRet = 0;\n mSize = n;\n mMask = (1 << mSize) - 1;\n queen(0, 0, 0, 0);\n return mRet;\n }",
"public static NQueensParameters parse(String[] args) {\n\t\tNQueensParameters params = new NQueensParameters();\n\t\tparams.args = args;\n\t\t\n\t\tif(args.length < 1) {\n\t\t\tprintHelp();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < args.length; i++) {\n\t\t\tswitch(args[i]) {\n\t\t\tcase \"-help\":\n\t\t\t\tprintHelp();\n\t\t\t\tbreak;\n\t\t\tcase \"-threads\":\n\t\t\t\tif(i + 1 >= args.length) {\n\t\t\t\t\tSystem.out.println(\"-threads: Number of threads is required\");\n\t\t\t\t\tprintHelp();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tparams.numThreads = Integer.parseInt(args[i + 1]);\n\t\t\t\t\tif(params.numThreads < 1) {\n\t\t\t\t\t\tparams.numThreads = 1;\n\t\t\t\t\t}\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"-threads: Invalid number of threads: \" + args[i]);\n\t\t\t\t\tprintHelp();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t\tbreak;\n\t\t\tcase \"-classic\":\n\t\t\t\tparams.isClassic = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(i == args.length - 1) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparams.size = Integer.parseInt(args[i]);\n\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"Invalid board size: \" + args[i]);\n\t\t\t\t\t\tprintHelp();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(args[i] + \": Invalid option\");\n\t\t\t\t\tprintHelp();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(params.size <= 0) {\n\t\t\tSystem.out.println(\"Invalid board size: \" + params.size);\n\t\t\tprintHelp();\n\t\t}\n\t\t\n\t\treturn params;\n\t}",
"public int totalNQueens(int n) {\n count = 0;\n // 1 n=4->size=01111\n size = (1 << n) - 1;\n solve(0, 0, 0, 0);\n return count;\n }",
"public boolean SolveNQueenProblem(int columIndex) {\n if (columIndex >= this.SIZE_OF_CHESS_BOARD) {\n return true;\n }\n\n for (int i = 0; i < this.SIZE_OF_CHESS_BOARD; i++) {\n if (this.IsSafe(i, columIndex)) {\n this.maps[i][columIndex] = true;\n\n //if this case is true and we can set all queen i the chess board\n if (this.SolveNQueenProblem(columIndex + 1) == true) {\n return true;\n }\n this.maps[i][columIndex] = false;//back tracking\n }\n }\n return false;\n }",
"int n_queens(int n, ArrayList<Integer> board){\n System.out.println(board.toString());\n\n if(n == board.size()){\n return 1;\n }\n\n int count = 0;\n\n for(int i = 0; i < n; i++){\n // make sure we haven't included it\n if(!board.contains(i)){\n board.add(i);\n System.out.println(\"!! \" + i);\n if(isValid(board)){\n count += n_queens(n,board);\n }\n board.remove(board.size()-1);\n }\n }\n\n return count;\n }",
"public static void run(){\n\t\t\n\t\tMatrix A = null;\n\t\tVector b = null;\n\t\tVector c = null;\n\t\t\n\t\tfor (int n= 3; n<=11; n+=2 )\n\t\t{\n\t\t\tk=n-2;\n\t\t\tA = createConstraint(n, k) ;\n\t\t\tb = create_b(k, 0.5);\n\t\t\tc = create_c(n);\n\t\t\ttable = new SimplexTable(A, b, c, SimplexTable.MODE.EQUALITY);\n\t\t table.solve(); \n\t\t\tp(\"q_n( n=\"+n+\")= \" + (double) table.getMaxValue()); //(Math.round() / 100000);\n\t\t}\n\t\t\n\t}",
"public Percolation(int n){\n\t\tif (n <= 0)\n\t\t\tthrow new IllegalArgumentException(\"input must be greater than 0\");\n\t\tstoreVar = n; \n\t\tgrid = new boolean[n*n + 2]; \n\t\tfullgrid = new boolean[n*n + 2];\n\t\tvirtualTop = 0; \n\t\tvirtualBottom = grid.length-1; \n\t\tgrid[0] = true; \n\t\tgrid[grid.length-1] = true; \n\t\tfullgrid[0] = true;\n\t\tunionFind = new WeightedQuickUnionUF(grid.length);\n\t\tbackwash = new WeightedQuickUnionUF(n*n + 1);\n\t\topenSites = 0;\n\n\t}",
"public NQueens() {\n\n //Creates a new Scanner which is used for getting input from the console.\n Scanner scanner = new Scanner(System.in);\n\n //Variable for use later.\n String line;\n\n //Simple print to tell the user what we want them to input.\n System.out.print(\"Please enter the number of queens you would like: \");\n\n //This loop will run until the input is \"quit\" or \"exit\". Each time the loop runs it grabs the next line\n //of input from the console and runs the code inside the loop against that.\n while((line = scanner.nextLine()) != null && line != \"quit\" && line != \"exit\") {\n\n //Used to store the n value entered by the user.\n int amount;\n\n try {\n //Parse the string value to an integer.\n amount = Integer.parseInt(line);\n } catch(NumberFormatException e) {\n //Error if the string entered was not a number and ask for input again.\n System.err.println(\"The provided number was not an integer.\");\n System.out.print(\"Please enter the number of queens you would like: \");\n continue;\n }\n\n //Checks that the value of n provided is within the bounds that were specified by the specification.\n if(amount < 11 && amount > 3) {\n\n //Creates a new ProblemCalculator object, passing the value of n that was\n //provided and then telling the calculator to run.\n new ProblemCalculator(amount).run();\n }\n\n //Print out an empty line to keep the console a little cleaner and then ask for another input.\n System.out.println();\n System.out.print(\"Please enter the number of queens you would like: \");\n }\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(nQueens(10));\r\n\t}",
"public int totalNQueens(int n) {\n\n if (n <= 0){\n return 0;\n }\n // int count = 0不行\n int[] count = new int[1];\n List<Integer> cur = new ArrayList<Integer>();\n dfs(n, cur, count);\n return count[0];\n }",
"public int totalNQueens(int n) {\n if(n<=0) return 0;\n dfs(0, n);\n return res;\n }",
"static private ArrayList<Node> addViableConstraints(Node node, int v) {\r\n\r\n\t\t// for building list of neighbors\r\n\t\tArrayList<Node> changedNodes = new ArrayList<Node>(dimensions);\r\n\r\n\t\t// Check columns, similar to logic in viable()\r\n\t\tfor (int i = 0; i < dimensions; i++) {\r\n\t\t\tNode cNode = puzzle[i][node.getColumn()];\r\n\t\t\tif (cNode.getValue() == 0 && node.getRow() != i && !cNode.getConstraints().contains(v)) {\r\n\t\t\t\tcNode.getConstraints().add(v);\r\n\t\t\t\tif (!changedNodes.contains(cNode))\r\n\t\t\t\t\tchangedNodes.add(cNode);\r\n\t\t\t}\r\n\t\t\tNode rNode = puzzle[node.getRow()][i];\r\n\t\t\tif (rNode.getValue() == 0 && node.getColumn() != i && !rNode.getConstraints().contains(v)) {\r\n\t\t\t\trNode.getConstraints().add(v);\r\n\t\t\t\tif (!changedNodes.contains(rNode))\r\n\t\t\t\t\tchangedNodes.add(rNode);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Now to manipulate the boxes/subGrids...\r\n\t\tint rOffset = (node.getRow() / subGrids) * subGrids;\r\n\t\tint cOffset = (node.getColumn() / subGrids) * subGrids;\r\n\t\tfor (int x = rOffset; x < rOffset + subGrids; x++)\r\n\t\t\tfor (int y = cOffset; y < cOffset + subGrids; y++) {\r\n\t\t\t\tif (puzzle[x][y].getValue() != 0 || (x == node.getRow() && y == node.getColumn())) {\r\n\t\t\t\t\t// break; - this doesn't work as it exits the entire\r\n\t\t\t\t\t// function!\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tNode boxNode = puzzle[x][y];\r\n\t\t\t\tif (!boxNode.getConstraints().contains(v)) {\r\n\t\t\t\t\tboxNode.getConstraints().add(v); // add value if value not\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// present\r\n\t\t\t\t\tif (!changedNodes.contains(boxNode)) {\r\n\t\t\t\t\t\tchangedNodes.add(boxNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn changedNodes;\r\n\t}",
"public static void main(String[] args) {\n\n\t\tchar[][] board = makeBoard(4);\n\t\tnqueens(board);\n\n\t}",
"ArrayList<ArrayList<String>> solveNQueens(int n) {\n // write your code here\n\n ArrayList<ArrayList<String>> result = new ArrayList<ArrayList<String>>();\n ArrayList<ArrayList<Integer>> res = new ArrayList<ArrayList<Integer>>();\n ArrayList<Integer> solution = new ArrayList<Integer>();\n\n helper(res, solution, n);\n\n for(int i = 0; i < res.size(); i++){\n ArrayList<Integer> temp = res.get(i);\n ArrayList<String> str = new ArrayList<String>();\n StringBuilder s = new StringBuilder();\n for(int j = 0; j < n; j++){\n int position = temp.get(j);\n\n for(int k = 0; k < n; k++){\n if(k == position)\n s.append('Q');\n else\n s.append('.');\n }\n str.add(s.toString());\n s = new StringBuilder();\n }\n\n result.add(str);\n }\n\n return result;\n }",
"public NQueens cloneSolution() {\n NQueens clone = new NQueens();\n clone.id = id;\n List<Queen> clonedQueenList = new ArrayList<Queen>(queenList.size());\n for (Queen queen : queenList) {\n clonedQueenList.add(queen.clone());\n }\n clone.queenList = clonedQueenList;\n return clone;\n }",
"public void initConstraints() {\n\n\t\tfor (int i = 0; i < Sudoku.ROWS; i++) {\n\t\t\tfor (int j = 0; j < Sudoku.COLUMNS; j++) {\n\t\t\t\t// set row constraints\n\t\t\t\tfor (int row = 0; row < Sudoku.ROWS; row++) {\n\t\t\t\t\tif (row != j)\n\t\t\t\t\t\tSudoku.grid[i][j].constraints.add(new Constraint(i, row));\n\t\t\t\t}\n\t\t\t\t// set column constraints\n\t\t\t\tfor (int col = 0; col < Sudoku.COLUMNS; ++col) {\n\t\t\t\t\tif (col != i)\n\t\t\t\t\t\tSudoku.grid[i][j].constraints.add(new Constraint(col, j));\n\t\t\t\t}\n\n\t\t\t\t// set box constraints\n\t\t\t\tint top_row = (i/3) * 3;\n\t\t\t\tint bottom_row = top_row + 3;\n\t\t\t\tint left_col = (j/3) * 3;\n\t\t\t\tint right_col = left_col + 3;\n\t\t\t\tfor (int row_unit = top_row; row_unit < bottom_row; row_unit++) {\n\t\t\t\t\tfor (int col_unit = left_col; col_unit < right_col; col_unit++) {\n\t\t\t\t\t\tif (row_unit != i && col_unit != j) {\n\t\t\t\t\t\t\tSudoku.grid[i][j].constraints.add(new Constraint(row_unit, col_unit));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int totalNQueens(int n) {\n\t\tcount = 0;\n\t\tallQueen = (1 << n) - 1;\n\t\tcal(0, 0, 0);\n\t\treturn count;\n\t}",
"public static void main(String[] args) \r\n\t{\n\t\tNQueen refVar = new NQueen(4);\r\n\t\trefVar.method();\r\n\r\n\t}",
"@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tplaceNQueen(n);\n\n\t}",
"private void printNQueen(int[] x2) {\n\t\t\r\n\t\tint N = x2.length;\r\n\t\t\r\n\t\tfor(int i=0;i<N;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<N;j++)\r\n\t\t\t{\r\n\t\t\t\tif(x[i] == j)\r\n\t\t\t\t\tSystem.out.print(\"Q\");\r\n\t\t\t\telse \r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t}",
"@Test\n\tpublic void positiveTest() {\n\t\tint input[] ={1, 4, 5, 6, 15};\n\t\t//here 1 represent that NQueen arrangement is possible\n\t\t// We have to type cast boolean to int because JUnit Array Equals function does'nt support boolean array\n\t\tint expecteds[] = {1, 1, 1, 1, 1};\n\t\tint actuals[] = new int[input.length];\n\t\tfor(int i=0; i<input.length; i++){\n\t\t\tNQueen q = new NQueen(input[i]);\n\t\t\tactuals[i] = q.nQueen(0) ? 1 : 0;\n\t\t}\n\t\tassertArrayEquals(expecteds, actuals);\n\t}",
"public static int queensAttack(int n, int k, int r_q, int c_q, List<List<Integer>> obstacles)\n {\n int squaresQueenCanAttack = 0;\n int r_RightObs = -1;\n int c_RightObs = -1;\n int r_BelowRightObs = -1;\n int c_BelowRightObs = -1;\n int r_BelowObs = -1;\n int c_BelowObs = -1;\n int r_BelowLeftObs = -1;\n int c_BelowLeftObs = -1;\n int r_LeftObs = -1;\n int c_LeftObs = -1;\n int r_AboveLeftObs = -1;\n int c_AboveLeftObs = -1;\n int r_AboveObs = -1;\n int c_AboveObs = -1;\n int r_AboveRightObs = -1;\n int c_AboveRightObs = -1;\n for (int i = 0; i < k; i++) { // Find the closest obstacles in each direction\n int r_obs = obstacles.get(i).get(0);\n int c_obs = obstacles.get(i).get(1);\n // Above\n if ((r_obs < r_AboveObs || r_AboveObs == -1) && r_obs > r_q && c_obs == c_q) {\n r_AboveObs = r_obs;\n c_AboveObs = c_obs;\n }\n // Below\n if ((r_obs > r_BelowObs || r_BelowObs == -1) && r_obs < r_q && c_obs == c_q) {\n r_BelowObs = r_obs;\n c_BelowObs = c_obs;\n }\n // Left\n if ((c_obs > c_LeftObs || r_LeftObs == -1) && c_obs < c_q && r_obs == r_q) {\n r_LeftObs = r_obs;\n c_LeftObs = c_obs;\n }\n // Right\n if ((c_obs < c_RightObs || r_RightObs == -1) && c_obs > c_q && r_obs == r_q) {\n r_RightObs = r_obs;\n c_RightObs = c_obs;\n }\n // Above Left\n if (c_q - c_obs == r_obs - r_q && c_obs < c_q && r_obs > r_q && ((r_obs < r_AboveLeftObs && c_obs > c_AboveLeftObs) || r_AboveLeftObs == -1)) {\n r_AboveLeftObs = r_obs;\n c_AboveLeftObs = c_obs;\n }\n // Above Right\n if (r_obs - r_q == c_obs - c_q && c_obs > c_q && r_obs > r_q && ((r_obs < r_AboveRightObs && c_obs < c_AboveRightObs) || r_AboveRightObs == -1)) {\n r_AboveRightObs = r_obs;\n c_AboveRightObs = c_obs;\n }\n // Below Left\n if (r_q - r_obs == c_q - c_obs && c_obs < c_q && r_obs < r_q && ((r_obs > r_BelowLeftObs && c_obs > c_BelowLeftObs) || r_BelowLeftObs == -1)) {\n r_BelowLeftObs = r_obs;\n c_BelowLeftObs = c_obs;\n }\n // Below Right\n if (r_q - r_obs == c_obs - c_q && c_obs > c_q && r_obs < r_q && ((r_obs > r_BelowRightObs && c_obs < c_BelowRightObs) || r_BelowRightObs == -1)) {\n r_BelowRightObs = r_obs;\n c_BelowRightObs = c_obs;\n }\n }\n squaresQueenCanAttack += (r_AboveObs != -1) ? (r_AboveObs - r_q - 1) : n - r_q; // Squares the queen can attack above\n squaresQueenCanAttack += (r_BelowObs != -1) ? (r_q - r_BelowObs - 1) : r_q - 1; // Squares the queen can attack below\n squaresQueenCanAttack += (c_LeftObs != -1) ? (c_q - c_LeftObs - 1) : c_q - 1; // Squares the queen can attack to the left\n squaresQueenCanAttack += (c_RightObs != -1) ? (c_RightObs - c_q - 1) : n - c_q; // Squares the queen can attack to the right\n squaresQueenCanAttack += (c_AboveLeftObs != -1) ? (c_q - c_AboveLeftObs - 1) : Math.min(c_q - 1, n - r_q); // Squares the queen can attack above and left\n squaresQueenCanAttack += (r_AboveRightObs != -1) ? (c_AboveRightObs - c_q - 1) : Math.min(n - c_q, n - r_q); // Squares the queen can attack above and right\n squaresQueenCanAttack += (r_BelowLeftObs != -1) ? (c_q - c_BelowLeftObs - 1) : Math.min(c_q - 1, r_q - 1); // Squares the queen can attack below and left\n squaresQueenCanAttack += (c_BelowRightObs != -1) ? (c_BelowRightObs - c_q - 1) : Math.min(n - c_q, r_q - 1); // Squares the queen can attack below and right\n return squaresQueenCanAttack;\n }",
"public static void main(String[] args) {\n NQueen queen = new NQueen();\n\n queen.calculation(0);\n\n System.out.println(queen.resultNum);\n }",
"public Design_Tic_Tac_Toe_p348_sol1(int n) {\n rows = new int[n];\n cols = new int[n];\n size = n;\n diagonal = 0;\n anti_diagonal = 0;\n }",
"public int g(Variable n)\n { \n int id = n.getID();\n int row_num = id / issue.getSize();\n int col_num = id % issue.getSize();\n int box_num = ((col_num / issue.getSqrtSize()) * 3 +\n (row_num / issue.getSqrtSize()));\n List<Integer> buffer = new ArrayList<Integer>();\n\n for (int i = 0; i < issue.getRows()[row_num].length; i++)\n {\n Variable slot = issue.getRows()[row_num][i];\n\n if (!(slot.hasValue()))\n { \n buffer.add(slot.getID());\n }\n }\n\n for (int i = 0; i < issue.getCols()[col_num].length; i++)\n {\n Variable slot = issue.getCols()[col_num][i];\n if (!(slot.hasValue()))\n {\n buffer.add(slot.getID());\n }\n }\n\n for (int i = 0; i < issue.getBoxes()[box_num].length; i++)\n {\n Variable slot = issue.getBoxes()[box_num][i];\n if ((!(issue.getRows()[row_num][i].hasValue())) &&\n (!(buffer.contains(slot.getID()))))\n {\n buffer.add(slot.getID());\n }\n }\n\n int cost = 27 - buffer.size();\n return cost;\n }",
"public static INeighbor blackBox(IntVar... vars) {\n return sequencer(\n propagationGuided(vars),\n reversedPropagationGuided(vars),\n random(vars)\n );\n }",
"private Sudoku(int BlockSize) {\n\t\tB = BlockSize;\n\t\tN = B * B;\n\t\tpuzzle = new int[N + 1][N + 1];\n\t\tconstraints = new BitSet[N + 2][N + 1];\n\t\tnonAssignedCells = new ArrayList<Pair<Integer, Integer>>();\n\t}",
"@SuppressWarnings(\"Duplicates\")\n public static Solver makeCostasArrays(int n){\n Solver solver = new Solver();\n IntVar[] vars = VariableFactory.enumeratedArray(\"v\", n, 0, n - 1, solver);\n IntVar[] vectors = new IntVar[(n*(n-1))/2];\n IntVar[][] diff = new IntVar[n][n];\n int idx = 0;\n for (int i = 0; i < n; i++) {\n for (int j = i+1; j < n; j++) {\n IntVar k = VariableFactory.enumerated(StringUtils.randomName(), -n, n, solver);\n solver.post(ICF.arithm(k,\"!=\",0));\n solver.post(IntConstraintFactory.sum(new IntVar[]{vars[i],k},vars[j]));\n vectors[idx] = VariableFactory.offset(k, 2 * n * (j - i));\n diff[i][j] = k;\n idx++;\n }\n }\n solver.addHook(\"vars\", vars);\n solver.addHook(\"vectors\", vectors);\n\n solver.post(IntConstraintFactory.alldifferent(vars, \"AC\"));\n solver.post(IntConstraintFactory.alldifferent(vectors, \"BC\"));\n\n // symmetry-breaking\n solver.post(ICF.arithm(vars[0],\"<\",vars[n-1]));\n return solver;\n }",
"public MinCQueenState(int[] state) {\r\n super(state);\r\n }",
"private void makePrioQ()\n\t{\n\t\tprioQ = new PrioQ();\n\t\t\n\t\tfor(int i = 0; i < canonLengths.length; i++)\n\t\t{\n\t\t\tif(canonLengths[i] == 0)\n\t\t\t\tcontinue;\n\t\t\tNode node = new Node(i, canonLengths[i]);\n\t\t\tprioQ.insert(node);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// Func(new boolean[4], 0, 2, \"\");\r\n\t\tSystem.out.println();\r\n\t\t// FuncBits(4, 0, 2,\"\");\r\n\t\t\r\n\t\t//place 4 queens in a 4 by 4 chess board so that none cut none\r\n\t\t\tQueen2D(new boolean[4][4], 0, \"\", 0);\r\n\r\n\t}",
"public static MinCQueenState generateRandomQueen(int number) {\r\n int[] array = new int[number];\r\n\r\n Random r = new Random();\r\n for (int i = 0; i < number; i++) {\r\n // set a random position for a queen. The position range is from 0 to number.\r\n array[i] = r.nextInt(number);\r\n }\r\n\r\n MinCQueenState qState = new MinCQueenState(array);\r\n\r\n return qState;\r\n }",
"public RandomNeighborhoodOperator(int nbRelaxedVars)\n{\n\tthis(nbRelaxedVars, 0);\n}",
"public int toLinearIndex(int nQueens) {\n return row * nQueens + column;\n }",
"public Queen(int r, int c)\r\n {\r\n row = r;\r\n column = c;\r\n }",
"public Queen(int initX, int initY, Color color, StandardBoard board) {\n\t\tsuper(initX, initY, color, board);\n\t\tthis.nameOfPiece = \"queen\";\n\t}",
"@Test\n public void testPuzzle3x3Unsolvable() {\n int[][] block = generateBlock(new int[]{1, 2, 3, 4, 6, 5, 7, 8, 0});\n Solver solver = new Solver(new Board(block));\n assertFalse(solver.isSolvable());\n }",
"private boolean isValid(char [][] nQueens, int row, int col, int n){\n\t\tfor(int i=0;i!=row;i++){\n\t\t\tif(nQueens[i][col] == 'Q') return false;\n\t\t}\n\t\t//diagonal\n\t\tfor(int i=row-1, j=col-1;i>=0 &&j>=0;i--,j--){\n\t\t\tif(nQueens[i][j] == 'Q') return false;\n\t\t}\n\t\t//check another diagonal\n\t\tfor(int i=row-1, j=col+1;i>=0 && j<n; i--,j++){\n\t\t\tif(nQueens[i][j] == 'Q') return false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void runFunc() {\n\t\tsolveNQueens(1);\r\n\r\n\t}",
"public static boolean SolveNinePuzzle(int board [][]){\n\t\tfor(int i = 0; i < board.length;i++){\n\t\t\t\tfor (int j = 0;j < board[i].length;j++) {\n\t\t\t\t\tSystem.out.print(board[i][j] + \" \");\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Attempting to solve board ...\");\n \n\t\tQueue node_queue = new Queue();\n\t\tBoard start_board = new Board(board);\n\t\tint goal_board [][] = {{1,2,3},{4,5,6},{7,8,0}}; \n\t\tBoard goal = new Board(goal_board);\n\t\t//check if the start board is the solved board\n\t\tif(start_board.compare(goal)){\n\t\t\treturn true;\n\t\t}\n\t\t//new tree for unique moves; root node is start board\n\t\tBoard_Tree result_tree = new Board_Tree(start_board);\n\t\tnode_queue.enqueue(start_board);\n\t\t//add root node string representation to hashset\n\t\tvertex_check.add(start_board.board_string);\n\t\twhile(!node_queue.isEmpty()){\n\t\t\tBoard v = node_queue.dequeue();\n\t\t\tcompute_possible_moves(v);\n\t\t\tfor(Board s: possible_boards){\n\t\t\t\tif(s.compare(goal)){\n\t\t\t\t\tresult_tree.insert(v,s);\n\t\t\t\t\tresult_tree.goal_board(s);\n\t\t\t\t\treturn true;\n\t\t\t\t}else if(!(vertex_check.contains(s.board_string))){\n\t\t\t\t\tvertex_check.add(s.board_string);\n\t\t\t\t\tnode_queue.enqueue(s);\n\t\t\t\t\tresult_tree.insert(v,s);\n\t\t\t\t}else{\n\t\t\t\t\t//ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public Percolation(int n) {\n if (n <= 0) throw new IllegalArgumentException(\"Bad Input\");\n else {\n size = n;\n // mainObject includes the vsite1 and vsite2 hence it is 2 nos. greater.\n mainObject = new WeightedQuickUnionUF(n * n + 2);\n\n grid = new boolean[n][n];\n vsite1 = 0;\n vsite2 = n*n+1;\n }\n }",
"@Test\n public void testQueenLabel() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(\"Q\", chessBoard.getPiece(0, 3).getLabel());\n assertEquals(\"Q\", chessBoard.getPiece(7, 3).getLabel());\n }",
"void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }",
"public Queens(int[] riesenie) {\n this.riesenie = riesenie.clone();\n }",
"private boolean isQueen(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_QUEEN || aux == Cells.RED_QUEEN);\r\n }",
"public Sudoku(int n) {\n\t\tthis.n = n;\n\t\tthis.s = (int) Math.sqrt(n);\n\t\tthis.grid = new int[n][n];\n\t}",
"@Test\n public void testQueenPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 3).getRow());\n assertEquals(3, chessBoard.getPiece(0, 3).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 3).getRow());\n assertEquals(3, chessBoard.getPiece(7, 3).getColumn());\n }",
"private void addVertexNonEdgeConstraint(){\n for (int i=0; i < g.nonEdges.size(); i++){\n Edge edge = g.nonEdges.get(i);\n int vertex1 = edge.from;\n int vertex2 = edge.to;\n for (int pCount =0; pCount < positionCount-1; pCount++){\n ArrayList<Integer> values = new ArrayList<>();\n values.add((variables[vertex1][pCount] * -1));\n values.add((variables[vertex2][pCount+1] * -1));\n clauses.add(values);\n values = new ArrayList<>();\n values.add((variables[vertex1][pCount+1] * -1));\n values.add((variables[vertex2][pCount] * -1));\n clauses.add(values);\n }\n\n }\n }",
"public void toQueen(Point pos){\r\n model.getCurrentPlayer().setQueenNumber(+1);\r\n if(isBlack(pos)){ \r\n model.setValueAt(pos,Cells.BLACK_QUEEN);\r\n model.setBlackQueenCount(+1);\r\n model.setBlackCount(-1);\r\n } else {\r\n model.setValueAt(pos,Cells.RED_QUEEN);\r\n model.setRedQueenCount(+1);\r\n model.setRedCount(-1);\r\n }\r\n }",
"public Percolation(int n)\r\n {\r\n //Throw an IllegalArgumentException in the constructor if n ≤ 0.\r\n if (n <= 0) throw new IllegalArgumentException(\"error range\");\r\n\r\n dimension = n;\r\n uf = new WeightedQuickUnionUF(dimension*dimension + 2);\r\n grids = new boolean[dimension*dimension + 1]; // array elements are false\r\n\r\n }",
"public Percolation(final int n) {\n size = n;\n grid = new boolean[n][n];\n wqf = new WeightedQuickUnionUF(n * n);\n }",
"public int createNQueens(int col, int[] rows, int row) {\n\t\tint number = 0;\r\n\t\tfor (int i = 0; i < col; i++) {\r\n\t\t\tint j;\r\n\t\t\tfor (j = 0; j < row; j++) {\r\n\t\t\t\tif (rows[j] == i || (row - j == Math.abs(rows[j] - i))) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (j < row) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\trows[row] = i;\r\n\t\t\tif (row == col - 1) {\r\n\t\t\t\trows[row] = -1;\r\n\t\t\t\treturn 1;\r\n\t\t\t} else {\r\n\t\t\t\tint tmp = createNQueens(col, rows, row + 1);\r\n\t\t\t\tnumber += tmp;\r\n\t\t\t}\r\n\t\t\trows[row] = -1;\r\n\r\n\t\t}\r\n\t\treturn number;\r\n\t}",
"public static void buildConstraints(SOS2Primitive constraint,Matrix matrix){\n\t\tint row=matrix.numRows();\n\t\t// First the reference row \t\t\n\t\tMatrixRow rowpointer =new MatrixRow(0,0,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"ReferenceRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(0),-1));\n\t\tfor(int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),constraint.xVals[i]));\n\t\t}\n\t\t\n\t\t// Now the convexity row\n\t\trowpointer =new MatrixRow(1,1,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"ConvexityRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\tfor(int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),1));\n\t\t}\n\t\t\n\t\tint firstBinVarColumn=constraint.xVals.length+1;\n\t\t// Constraint to ensure one and only one non-zero binary variable\n\t\trowpointer =new MatrixRow(1,1,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"BinaryNZRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\tfor(int i=0;i<(constraint.xVals.length-1);i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+firstBinVarColumn),1));\n\t\t}\n\t\t\n\t\t// Now we need several rows to ensure the SOS2 property\n\t\tfor( int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer =new MatrixRow(0,0,LPX.LPX_LO,\n\t\t\t\t\trow,constraint.label,\"SOS2Row\"+i);\n\t\t\tmatrix.addRow(rowpointer);\t\t\n\t\t\trow++;\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),-1));\n\t\t\tfor( int b=0;b<2;b++){\n\t\t\t\tint bc=i-b+firstBinVarColumn; // Column index for associated binary variable\n\t\t\t\tif ( bc >=firstBinVarColumn && bc < (firstBinVarColumn+constraint.xVals.length-1)){\n\t\t\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(bc),1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\n\t}",
"public Solver(final Board initial) {\n\n Node solutionNodeTwin; // Solution node twin\n MinPQ<Node> thePQ; // Minimum priority queue\n MinPQ<Node> thePQTwin; // Minimum priority queue for the twin\n boolean initialSolvableTwin = false; // is initial twin board solvable\n\n solutionNode = new Node();\n solutionNodeTwin = new Node();\n\n solutionNode.theBoard = initial;\n solutionNodeTwin.theBoard = initial.twin();\n\n solutionNode.previousNode = null;\n solutionNodeTwin.previousNode = null;\n\n thePQ = new MinPQ<>(boardOrder());\n thePQTwin = new MinPQ<>(boardOrder());\n\n thePQ.insert(solutionNode);\n thePQTwin.insert(solutionNodeTwin);\n solutionBoards = new Queue<>();\n\n int count = 0;\n while (!solutionNode.theBoard.isGoal()\n || !solutionNodeTwin.theBoard.isGoal()) {\n\n solutionNode = thePQ.delMin();\n solutionBoards.enqueue(solutionNode.theBoard);\n\n if (solutionNode.theBoard.isGoal()) {\n initialSolvable = true;\n break;\n } else {\n solutionNode.numberOfMovesMade++;\n Iterable<Board> neighborBoards = solutionNode.theBoard.neighbors();\n Iterator<Board> itr = neighborBoards.iterator();\n while (itr.hasNext()) {\n Node neighborNode = new Node();\n neighborNode.theBoard = itr.next();\n neighborNode.numberOfMovesMade = solutionNode.numberOfMovesMade;\n neighborNode.previousNode = solutionNode;\n if (count == 0) {\n thePQ.insert((neighborNode));\n } else if (!neighborNode.theBoard.equals(solutionNode\n .previousNode.theBoard)) {\n thePQ.insert(neighborNode);\n }\n }\n }\n\n solutionNodeTwin = thePQTwin.delMin();\n if (solutionNodeTwin.theBoard.isGoal()) {\n initialSolvableTwin = true;\n break;\n } else {\n solutionNodeTwin.numberOfMovesMade++;\n Iterable<Board> neighborBoardsTwin = solutionNodeTwin.theBoard.neighbors();\n Iterator<Board> itr2 = neighborBoardsTwin.iterator();\n while (itr2.hasNext()) {\n Node neighborNodeTwin = new Node();\n neighborNodeTwin.theBoard = itr2.next();\n neighborNodeTwin.numberOfMovesMade = solutionNodeTwin.numberOfMovesMade;\n neighborNodeTwin.previousNode = solutionNodeTwin;\n if (count == 0) {\n thePQTwin.insert(neighborNodeTwin);\n } else if (!neighborNodeTwin.theBoard.equals(solutionNodeTwin.previousNode.theBoard)) {\n thePQTwin.insert(neighborNodeTwin);\n }\n }\n }\n count++;\n }\n }",
"public Percolation(int n) {\n if(n<=0) {\n throw new IllegalArgumentException();\n }\n size = n;\n numOpen = 0;\n // 0th position is unused in grid arrays, UF, UF2\n grid = new boolean[n+1][n+1];\n UF = new WeightedQuickUnionUF(n*n + 3);\n UF2 = new WeightedQuickUnionUF(n*n + 2);\n top = n*n+1;\n bottom = n*n+2;\n }",
"public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}",
"private void generateVariablesAndConstraints() {\n\t\tVariable norwegian=new Variable(generateDomain(), \"norwegian\");\n\t\tVariable english=new Variable(generateDomain(), \"english\");\n\t\tVariable dane=new Variable(generateDomain(), \"dane\");\n\t\tVariable german=new Variable(generateDomain(), \"german\");\n\t\tVariable swede=new Variable(generateDomain(), \"swede\");\n\t\t//colors: \"red\", \"green\", \"white\", \"yellow\", \"blue\"\n\t\tVariable red=new Variable(generateDomain(), \"red\");\n\t\tVariable green=new Variable(generateDomain(), \"green\");\n\t\tVariable white=new Variable(generateDomain(), \"white\");\n\t\tVariable yellow=new Variable(generateDomain(), \"yellow\");\n\t\tVariable blue=new Variable(generateDomain(), \"blue\");\n\t\t//tobaccos: \"light\", \"cigar\", \"pipe\", \"unfiltered\", \"menthol\"\n\t\tVariable light=new Variable(generateDomain(), \"light\");\n\t\tVariable cigar=new Variable(generateDomain(), \"cigar\");\n\t\tVariable pipe=new Variable(generateDomain(), \"pipe\");\n\t\tVariable unfiltered=new Variable(generateDomain(), \"unfiltered\");\n\t\tVariable menthol=new Variable(generateDomain(), \"menthol\");\n\t\t//drinks: \"tea\", \"milk\", \"water\", \"beer\", \"coffee\"\n\t\tVariable tea=new Variable(generateDomain(), \"tea\");\n\t\tVariable milk=new Variable(generateDomain(), \"milk\");\n\t\tVariable water=new Variable(generateDomain(), \"water\");\n\t\tVariable beer=new Variable(generateDomain(), \"beer\");\n\t\tVariable coffee=new Variable(generateDomain(), \"coffee\");\n\t\t//pets: \"fish\", \"cat\", \"bird\", \"dog\", \"horse\"\n\t\tVariable fish=new Variable(generateDomain(), \"fish\");\n\t\tVariable cat=new Variable(generateDomain(), \"cat\");\n\t\tVariable bird=new Variable(generateDomain(), \"bird\");\n\t\tVariable dog=new Variable(generateDomain(), \"dog\");\n\t\tVariable horse=new Variable(generateDomain(), \"horse\");\n\t\t\n\t\tvariables= new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tred, green, white, yellow, blue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlight, cigar, pipe, unfiltered, menthol,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttea, milk, water, beer, coffee,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfish, cat, bird, dog, horse));\n\t\t\n\t\tconstraints=new ArrayList<Constraint>();\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(red, green, white, yellow, blue))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(light, cigar, pipe, unfiltered, menthol))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(tea, milk, water, beer, coffee))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(fish, cat, bird, dog, horse))).toneq()));\n\t\tconstraints.add(new equnary(norwegian, 1)); //Norweg zamieszkuje pierwszy dom\n\t\tconstraints.add(new eq(english, red));//Anglik mieszka w czerwonym domu.\n\t\tconstraints.add(new lt(green, white));//Zielony dom znajduje się bezpośrednio po lewej stronie domu białego.\n\t\tconstraints.add(new eq(dane, tea));//Duńczyk pija herbatkę.\n\t\tconstraints.add(new nextto(light, cat));//Palacz papierosów light mieszka obok hodowcy kotów.\n\t\tconstraints.add(new eq(yellow, cigar));//Mieszkaniec żółtego domu pali cygara.\n\t\tconstraints.add(new eq(german, pipe));//Niemiec pali fajkę.\n\t\tconstraints.add(new equnary(milk, 3));//Mieszkaniec środkowego domu pija mleko.\n\t\tconstraints.add(new nextto(light, water));//Palacz papierosów light ma sąsiada, który pija wodę.\n\t\tconstraints.add(new eq(unfiltered, bird));//Palacz papierosów bez filtra hoduje ptaki.\n\t\tconstraints.add(new eq(swede, dog));//Szwed hoduje psy.\n\t\tconstraints.add(new nextto(norwegian, blue));//Norweg mieszka obok niebieskiego domu.\n\t\tconstraints.add(new nextto(horse, yellow));//Hodowca koni mieszka obok żółtego domu.\n\t\tconstraints.add(new eq(menthol, beer));//Palacz mentolowych pija piwo.\n\t\tconstraints.add(new eq(green, coffee));//W zielonym domu pija się kawę\n\t}",
"public MinPQ(int maxN) {\n\t\tpq = (Key[]) new Comparable[maxN+1];\n\t}",
"private void printQueens() {\n StringBuffer buffer = new StringBuffer();\n\n for (int i = 0; i < Main.N; ++i) {\n for (int j = 0; j < Main.N; ++j) {\n if (j == positions[i]) {\n buffer.append(\"Q\");\n } else {\n buffer.append(\"-\");\n }\n }\n\n buffer.append(\"\\n\");\n }\n\n System.out.println(buffer);\n \n }",
"public TicTacToe(int n) {\n this.n = n;\n rows = new int[n][3];\n cols = new int[n][3];\n diagonals = new int[2][3];\n }",
"public static int[][] queenMoves(int[] currentQueen, BoardModel model) {\n\n int[][] moveLevel = new int[10][10];\n boolean[][] visited = new boolean[10][10];\n Queue<int[]> nodesToCheck = new LinkedList<>();\n //initialize the queen array to show the location of the queen and the \n // number of moves it takes to get to the queen. \n int[] initQueen = new int[3];\n initQueen[0] = currentQueen[0];\n initQueen[1] = currentQueen[1];\n initQueen[2] = 0;\n moveLevel[initQueen[0]][initQueen[1]] = initQueen[2];\n nodesToCheck.add(initQueen);\n while (!nodesToCheck.isEmpty()) {\n int[] neighbourNode = nodesToCheck.poll();\n // search nodes above until positions are no longer available; \n for (int i = neighbourNode[0] + 1; i < 10; i++) {\n if (!visited[i][neighbourNode[1]]) {\n if (model.getTile(i, neighbourNode[1]) == BoardModel.POS_AVAILABLE) {\n visited[i][neighbourNode[1]] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = i;\n initCurrentSpot[1] = neighbourNode[1];\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n\n nodesToCheck.add(initCurrentSpot);\n\n } else {\n break;\n\n }\n }\n }\n // search nodes below until positions are no longer available\n for (int i = neighbourNode[0] - 1; i >= 0; i--) {\n if (!visited[i][neighbourNode[1]]) {\n if (model.getTile(i, neighbourNode[1]) == BoardModel.POS_AVAILABLE) {\n visited[i][neighbourNode[1]] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = i;\n initCurrentSpot[1] = neighbourNode[1];\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n\n }\n // search nodes to the right until positions are no longer available\n for (int i = neighbourNode[1] + 1; i < 10; i++) {\n if (!visited[neighbourNode[0]][i]) {\n if (model.getTile(neighbourNode[0], i) == BoardModel.POS_AVAILABLE) {\n visited[neighbourNode[0]][i] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = neighbourNode[0];\n initCurrentSpot[1] = i;\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n }\n\n // search nodes to the left until position are no longer available; \n for (int i = neighbourNode[1] - 1; i >= 0; i--) {\n if (!visited[neighbourNode[0]][i]) {\n if (model.getTile(neighbourNode[0], i) == BoardModel.POS_AVAILABLE) {\n visited[neighbourNode[0]][i] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = neighbourNode[0];\n initCurrentSpot[1] = i;\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n }\n // search nodes diagonally up and right until positions are no longer available;\n // up == decreasing in row, right == increasing in column \n for (int i = 1; neighbourNode[0] - i >= 0 && neighbourNode[1] + i < 10; i++) {\n if (!visited[neighbourNode[0] - i][neighbourNode[1] + i]) {\n if (model.getTile(neighbourNode[0] - i, neighbourNode[1] + i) == BoardModel.POS_AVAILABLE) {\n visited[neighbourNode[0] - i][neighbourNode[1] + i] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = neighbourNode[0] - i;\n initCurrentSpot[1] = neighbourNode[1] + i;\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n }\n\n //search nodes diagonally down and left until positions are no longer available \n for (int i = 1; neighbourNode[0] + i < 10 && neighbourNode[1] - i >= 0; i++) {\n if (!visited[neighbourNode[0] + i][neighbourNode[1] - i]) {\n if (model.getTile(neighbourNode[0] + i, neighbourNode[1] - i) == BoardModel.POS_AVAILABLE) {\n visited[neighbourNode[0] + i][neighbourNode[1] - i] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = neighbourNode[0] + i;\n initCurrentSpot[1] = neighbourNode[1] - i;\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n }\n\n // search nodes diagonally up and left until positions are no longer available \n for (int i = 1; neighbourNode[0] - i >= 0 && neighbourNode[1] - i >= 0; i++) {\n if (!visited[neighbourNode[0] - i][neighbourNode[1] - i]) {\n if (model.getTile(neighbourNode[0] - i, neighbourNode[1] - i) == BoardModel.POS_AVAILABLE) {\n visited[neighbourNode[0] - i][neighbourNode[1] - i] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = neighbourNode[0] - i;\n initCurrentSpot[1] = neighbourNode[1] - i;\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n }\n\n // search nodes diagonally down and right until positions are no longer available\n for (int i = 1; neighbourNode[0] + i < 10 && neighbourNode[1] + i < 10; i++) {\n if (!visited[neighbourNode[0] + i][neighbourNode[1] + i]) {\n if (model.getTile(neighbourNode[0] + i, neighbourNode[1] + i) == BoardModel.POS_AVAILABLE) {\n visited[neighbourNode[0] + i][neighbourNode[1] + i] = true;\n int[] initCurrentSpot = new int[3];\n initCurrentSpot[0] = neighbourNode[0] + i;\n initCurrentSpot[1] = neighbourNode[1] + i;\n initCurrentSpot[2] = neighbourNode[2] + 1;\n moveLevel[initCurrentSpot[0]][initCurrentSpot[1]] = initCurrentSpot[2];\n nodesToCheck.add(initCurrentSpot);\n } else {\n break;\n }\n }\n }\n\n }\n return moveLevel;\n }",
"public static int queensAttack(int n, int k, int r_q, int c_q, ArrayList<ArrayList<Integer>> obstacles) \r\n {\n int atakBolgeSayisi = 0;\r\n \r\n //engeller 1\r\n //bosluklar 0\r\n int[][] satrancTahta = new int[n][n];\r\n \r\n for(int i = 0; i < obstacles.size(); i++)\r\n {\r\n for(int j = 0; j < obstacles.get(i).size(); j++)\r\n {\r\n satrancTahta[i][j] = obstacles.get(i).get(j);\r\n }\r\n }\r\n \r\n \r\n \r\n \r\n \r\n return atakBolgeSayisi;\r\n }",
"public void backtracking(int row, int n){\n if(row == n){\n res++;\n return;\n }\n //我们只要看列和对角线就可以了, 因为我们是row by row的dfs,一行放一个queen,因为同行不能有其他queen.\n for(int col=0; col<n; col++){\n if(cols[col] || digl1[row+col] || digl2[row-col+n-1]){\n continue;\n }\n cols[col] = true;\n digl1[row+col] = true;\n digl2[row-col+n-1] = true;\n backtracking(row+1, n);\n cols[col] = false;\n digl1[row+col] = false;\n digl2[row-col+n-1] = false;\n }\n }",
"public static void main(String[] args) {\n\t\tqueencomb(new boolean[4], 0, 2, \"\",-1);\n\t}",
"private static void addQueenMoves(BitBoard board, LinkedList<Move> moveList, int index,\n\t\t\tint side) {\n\t\tint pieceType = (side == 0) ? CoreConstants.WHITE_QUEEN : CoreConstants.BLACK_QUEEN;\n\t\tlong rookBlockers = (board.getBitBoards()[CoreConstants.WHITE]\n\t\t\t\t| board.getBitBoards()[CoreConstants.BLACK])\n\t\t\t\t& CoreConstants.occupancyMaskRook[index];\n\t\tint lookupIndexRook = (int) ((rookBlockers\n\t\t\t\t* CoreConstants.magicNumbersRook[index]) >>> CoreConstants.magicShiftRook[index]);\n\t\tlong moveSquaresRook = CoreConstants.magicMovesRook[index][lookupIndexRook]\n\t\t\t\t& ~board.getBitBoards()[side];\n\n\t\tlong bishopBlockers = (board.getBitBoards()[CoreConstants.WHITE]\n\t\t\t\t| board.getBitBoards()[CoreConstants.BLACK])\n\t\t\t\t& CoreConstants.occupancyMaskBishop[index];\n\t\tint lookupIndexBishop = (int) ((bishopBlockers\n\t\t\t\t* CoreConstants.magicNumbersBishop[index]) >>> CoreConstants.magicShiftBishop[index]);\n\t\tlong moveSquaresBishop = CoreConstants.magicMovesBishop[index][lookupIndexBishop]\n\t\t\t\t& ~board.getBitBoards()[side];\n\n\t\tlong queenMoves = moveSquaresRook | moveSquaresBishop;\n\t\taddMoves(pieceType, index, queenMoves, moveList, false, false, CoreConstants.noCastle);\n\t}",
"public Sudoku() {\n\t\tgrid = new Variable[ROWS][COLUMNS];\n\t}",
"public boolean isPuzzleSolved() {\n\t\t// check rows/col/block )\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tif ((this.constraints[i][0].nextClearBit(1) < N + 1) || (this.constraints[0][i].nextClearBit(1) < N + 1)\n\t\t\t\t\t|| (this.constraints[N + 1][i].nextClearBit(1) < N + 1))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static void validateInitialConstraints(Constraints constraints) \n throws InvalidInputDataException, ArrayIndexOutOfBoundsException { \n \t\n \tint[][] constraintsArray = Utilities.convertSolutionToArray(constraints);\n \t//check that no non-zero number appears twice in a row\n \tfor (int x=0; x<constraints.getDimSq(); x++) {\n \t\tList<Integer> cellList = new ArrayList<Integer>();\n \t\tfor(int y=0; y<constraints.getDimSq(); y++) {\n \tif (constraintsArray[x][y] != 0){\n \t\tif ((constraintsArray[x][y] < 0) || (constraintsArray[x][y] > constraints.getDimSq())) {\n \t\t\tthrow new InvalidInputDataException(\"Out-of-range value \" + constraintsArray[x][y] + \" found at cell x = \" + x + \" y = \" + y);\n \t\t}\n \t\tInteger currentValue = new Integer(constraintsArray[x][y]);\n \t\tif (cellList.contains(currentValue)){\n \t\t\tthrow new InvalidInputDataException(\"Value \" + currentValue.intValue() + \" found twice in row \" + x);\n \t\t}\n \t\tcellList.add(currentValue);\n \t}\n }\n }\n //check that non-zero number appears twice in a column\n for (int y=0; y<constraints.getDimSq(); y++) {\n List<Integer> cellList = new ArrayList<Integer>();\n for(int x=0; x<constraints.getDimSq(); x++) {\n \tif (constraintsArray[x][y] != 0){\n \t\tInteger currentValue = new Integer(constraintsArray[x][y]);\n \t\tif (cellList.contains(currentValue)) {\n \t\t\tthrow new InvalidInputDataException(\"Value \" + currentValue.intValue() + \" found twice in column \" + y);\n \t\t}\n \t\tcellList.add(currentValue);\n \t}\n }\n }\n //check that no non-zero number appears twice in the same box\n for (int bx=0;bx<constraints.getDim();bx++){\n for (int by=0;by<constraints.getDim();by++) {\n \tList<Integer> cellList = new ArrayList<Integer>();\n \tfor (int x=0; x<constraints.getDimSq(); x++) {\n \t for(int y=0; y<constraints.getDimSq(); y++) {\n \t \tif ((x / constraints.getDim() == bx) && (y / constraints.getDim() == by)){\n \t \tif (constraintsArray[x][y] != 0){\n \t \t\tInteger currentValue = new Integer(constraintsArray[x][y]);\n \t \t\tif (cellList.contains(currentValue)) {\n \t \t\t\tthrow new InvalidInputDataException(\"Value \" + currentValue.intValue() + \" found twice in box \" + bx + \" \" + by);\n \t \t\t}\n \t \t\tcellList.add(currentValue);\n \t \t}\n \t \t}\n \t }\n \t}\n }\n }\n }",
"public LSMOP9(String solutionType, Integer numberOfVariables,\r\n\t\t\tInteger numberOfObjectives) {\r\n\t\tsuper(solutionType, numberOfVariables, numberOfObjectives);\r\n\t\tnumberOfVariables_ = numberOfVariables;\r\n\t\tnumberOfObjectives_ = numberOfObjectives;\r\n\t\tnumberOfConstraints_ = 0;\r\n\t\tproblemName_ = \"LSMOP9\";\r\n\r\n\t\tnk = 5;\r\n\t\tc = new double[numberOfObjectives_];\r\n\t\tc[0] = 3.8*0.1*(1.0-0.1);\r\n\t\tdouble sumC = c[0];\r\n\t\tfor(int i = 1; i < numberOfObjectives_; i++){\r\n\t\t\tc[i] = 3.8*c[i-1]*(1.0-c[i-1]);\r\n\t\t\tsumC += c[i];\r\n\t\t}\r\n\t\tsublen = new int[numberOfObjectives_];\r\n\t\tfor(int i = 0; i < numberOfObjectives_; i++){\r\n\t\t\t//sublen[i] = (int)Math.ceil(Math.round(numberOfVariables_*c[i]/sumC)/nk);\r\n\t\t\t//sublen[i] = (int)Math.floor(numberOfVariables_*c[i]/sumC/nk);\r\n\t\t\tsublen[i] = (int)Math.floor((numberOfVariables_-numberOfObjectives_+1)*c[i]/sumC/nk);\r\n\t\t}\r\n\t\tlen = new int[numberOfObjectives_+1]; \r\n\t\tlen[0] = 0;\r\n\t\tfor(int i = 0; i < numberOfObjectives_; i++){\r\n\t\t\tlen[i+1] = len[i] + nk*sublen[i];\r\n\t\t}\r\n\t\tlowerLimit_ = new double[numberOfVariables_];\r\n\t\tupperLimit_ = new double[numberOfVariables_];\r\n\t\tfor (int var = 0; var < numberOfObjectives_ - 1; var++) {\r\n\t\t\tlowerLimit_[var] = 0.0;\r\n\t\t\tupperLimit_[var] = 1.0;\r\n\t\t} // for\r\n\t\t\r\n\t\tfor (int var = numberOfObjectives_ - 1; var < numberOfVariables_; var++) {\r\n\t\t\tlowerLimit_[var] = 0.0;\r\n\t\t\tupperLimit_[var] = 10.0;\r\n\t\t} // for\r\n\r\n\t\tif (solutionType.compareTo(\"BinaryReal\") == 0)\r\n\t\t\tsolutionType_ = new BinaryRealSolutionType(this);\r\n\t\telse if (solutionType.compareTo(\"Real\") == 0)\r\n\t\t\tsolutionType_ = new RealSolutionType(this);\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Error: solution type \" + solutionType\r\n\t\t\t\t\t+ \" invalid\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"public TicTacToe(int n) {\n board = new int[n][n];\n this.n = n;\n }",
"private boolean[][] makeSet(int[] sol, int n) {\n boolean[][] ret = new boolean[n][universalSetSize];\n int r = 0;\n for (int i = 0; i < n; i++) { // Row\n int row = sol[i];\n System.arraycopy(input[row], 0, ret[r], 0, input[i].length);\n r++;\n }\n return ret;\n }",
"public GameBoard(int n) {\n\t\t\n\t\t//Initialize the window\n\t\tsuper(\"Sudoku\");\n\n\t\t//Set up JButton\n\t\tsolve = new JButton(\"Solve!\");\n\t\tsolve.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//SudokuSolver.solveRequest(); TODO - Fix this\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Set up JPanel for the gameboard\n\t\tp = new JPanel(new GridLayout(n, n));\n\t\tp.setPreferredSize(new Dimension(600, 600));\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<n; j++) {\n\t\t\t\tp.add(new Cell(600/n));\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set up JPanel for the buttons/options\n\t\tp2 = new JPanel();\n\t\tp2.setPreferredSize(new Dimension(600, 50));\n\t\tp2.add(solve, new GridLayout(1, 1));\n\t\t\n\t\t//Set up the frame\n\t\tsetSize(new Dimension(600, 651));\n\t\tsetPreferredSize(new Dimension(600, 650));\n\t\tsetLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tadd(p);\n\t\tadd(p2);\n\t\tsetVisible(true);\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tStringTokenizer st = new StringTokenizer(in.readLine());\r\n\t\tString str;\r\n\t\tN = Integer.parseInt(st.nextToken());\r\n\t\tarray = new int[N + 2][N + 2];\r\n\t\tboolArray = new boolean[N + 2][N + 2];\r\n\t\tQueue<Integer> queue = new PriorityQueue<Integer>();\r\n\t\tfor (int i = 1; i < N + 1; i++) {\r\n\t\t\tst = new StringTokenizer(in.readLine());\r\n\t\t\tstr = st.nextToken();\r\n\t\t\tfor (int j = 1; j < N + 1; j++) {\r\n\t\t\t\tif (str.charAt(j - 1) == '1') {\r\n\t\t\t\t\tarray[i][j] = 1;\r\n\t\t\t\t\tboolArray[i][j] = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < N + 1; i++) {\r\n\t\t\tfor (int j = 1; j < N + 1; j++) {\r\n\t\t\t\tif (boolArray[i][j]) {\r\n\r\n\t\t\t\t\tboolArray[i][j] = false;\r\n\t\t\t\t\tqueue.offer(dfs(i, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(queue.size());\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tSystem.out.println(queue.poll());\r\n\t\t}\r\n\r\n\t}",
"private void makeMove(int n) {\n int rowIndex = partialSol[n];\n List<Integer> row = sparseInput.get(rowIndex);\n for (int i = 0; i < row.size(); i++) {\n if (includedElements[row.get(i)] == 0) {\n includedCount++;\n boolIncluded[row.get(i)] = true;\n }\n includedElements[row.get(i)]++;\n }\n }",
"public static int queenCombination(int tboxes, int tnq, int qpsf, int bn, String ans) {\n if (qpsf == tnq) {\n System.out.println(ans);\n return 1;\n }\n\n int count = 0;\n for (int i = bn; i < tboxes; i++) {\n count += queenCombination(tboxes, tnq, qpsf + 1, i + 1, ans + \"b\" + i + \"q\" + qpsf + \" \");\n }\n return count;\n }",
"private Binomial(int n) {\n N = n;\n }",
"public void InitializeConstraints(boundkey[] bkc, double[] blc, NodesVector nvector, PipesVector pvector,\n\t\t\tTapsVector tvector, double outflow, double PrixMax, double lcom) {\n\t\tNodes nodes;\n\t\tPipes pipes;\n\t\tTaps taps;\n\n\t\t/* Contraintes sur les Nodes - taps */\n\t\tfor (int i = 0; i < (NbNodes - NbTaps - 1); i++) {\n\t\t\tnodes = (Nodes) nvector.elementAt(i + 1);\n\t\t\tCste[i] = -nodes.height;\n\t\t\tbkc[i] = mosek.boundkey.up;\n\t\t\tblc[i] = -1.0e30;\n\t\t}\n\n\t\t/* Contraintes sur les Taps */\n\t\tfor (int i = NbNodes - NbTaps - 1; i < (NbNodes - 1); i++) {\n\t\t\tnodes = (Nodes) nvector.elementAt(i + 1);\n\t\t\ttaps = (Taps) tvector.elementAt(i - (NbNodes - NbTaps - 1));\n\n\t\t\tif (taps.orifice == Orifices.MAXDIAM) {\n\t\t\t\tCste[i] = -nodes.height - ((outflow * outflow) / taps.faucetCoef);\n\t\t\t} else {\n\t\t\t\tCste[i] = (-nodes.height\n\t\t\t\t\t\t- (outflow * outflow * ((1 / taps.faucetCoef) + Math.pow(CoefOrif / taps.orifice, 4))));\n\t\t\t}\n\n\t\t\tbkc[i] = mosek.boundkey.up;\n\t\t\tblc[i] = -1.0e30;\n\t\t}\n\n\t\t/* Contraintes sur les longueurs des Pipes */\n\t\tfor (int i = NbNodes - 1; i < (m - 1); i++) {\n\t\t\tpipes = (Pipes) pvector.elementAt(i - NbNodes + 1);\n\n\t\t\tCste[i] = pipes.length;\n\n\t\t\tbkc[i] = mosek.boundkey.fx;\n\t\t\tblc[i] = Cste[i];\n\t\t}\n\n\t\t/* contrainte de prix max */\n\t\tCste[m - 1] = PrixMax;\n\t\tbkc[m - 1] = mosek.boundkey.up;\n\t\tblc[m - 1] = -1.0e30;\n\t}",
"public Percolation(int n) {\n if (n < 1) {\n throw new IllegalArgumentException();\n }\n\n gridDimension = n;\n\n unionFind = new WeightedQuickUnionUF(gridDimension * gridDimension + 2);\n fullSites = new WeightedQuickUnionUF(gridDimension * gridDimension + 1);\n\n bottomRoot = gridDimension * gridDimension + 1;\n topRoot = gridDimension * gridDimension;\n\n\n sites = new boolean[gridDimension][gridDimension];\n\n }",
"public static void main(String[] args) \r\n\t{\n\t\tint [][]board = new int[][]{\r\n\t\t\t{5,8,0,1,7,0,3,0,0},\r\n\t\t\t{0,0,9,0,0,8,0,1,0},\r\n\t\t\t{0,0,3,0,0,0,0,0,8},\r\n\t\t\t{4,0,6,8,0,7,0,0,5},\r\n\t\t\t{8,3,0,0,0,0,0,7,4},\r\n\t\t\t{2,0,0,6,0,5,8,0,3},\r\n\t\t\t{3,0,0,0,0,0,5,0,0},\r\n\t\t\t{0,6,0,5,0,0,2,0,0},\r\n\t\t\t{0,0,7,0,8,3,0,6,9}};\r\n\t\t//create the board\r\n\t\tBaseBoard x = new BaseBoard(board);\t\r\n\t\t//print the unsolved board\r\n\t\tSystem.out.println(\"Unsolved Board X:\");\r\n\t\tx.print();\r\n\t\t//if the board is completely solved then print it\r\n\t\tif(solved(x)) {\r\n\t\t\tSystem.out.println(\"\\n\\nSolved Sudoku Board X:\");\r\n\t\t\tx.print();\r\n\t\t}\r\n\t\t//extra board for a second test - Hard\r\n\t\tint [][]board2 = new int[][]{\r\n\t\t\t{0,0,0,0,0,4,3,7,0},\r\n\t\t\t{6,3,0,0,7,0,2,0,0},\r\n\t\t\t{0,0,0,8,6,0,0,0,0},\r\n\t\t\t{1,0,9,0,0,6,0,0,0},\r\n\t\t\t{0,0,4,0,0,0,9,0,0},\r\n\t\t\t{0,0,0,1,0,0,4,0,8},\r\n\t\t\t{0,0,0,0,4,7,0,0,0},\r\n\t\t\t{0,0,7,0,2,0,0,4,1},\r\n\t\t\t{0,2,8,9,0,0,0,0,0}};\r\n\t\t//create board\r\n\t\tBaseBoard y = new BaseBoard(board2);\r\n\t\t//print unsolved board\r\n\t\tSystem.out.println(\"\\n\\nUnsolved Board Y:\");\r\n\t\ty.print();\r\n\t\t//if the board is completely solved then print it\r\n\t\tif(solved(y)) {\r\n\t\t\tSystem.out.println(\"\\n\\nSolved Sudoku Board Y:\");\r\n\t\t\ty.print();\r\n\t\t}\r\n\t}",
"public Percolation(int n) {\n if (n <= 0) {\n throw new IllegalArgumentException(\"'n' cannot be less than 1\");\n }\n\n // grid\n // 0 --> blocked\n // 1 --> open\n // every index will be initialized with 0 by default\n this.grid = new int[n][n];\n this.openSitesCount = 0;\n this.gridSize = n;\n this.virtualTopSiteIndex = (gridSize * gridSize);\n this.virtualBottomSiteIndex = (gridSize * gridSize) + 1;\n // add 1 to accommodate virtual top site in union find data structure\n this.wquf = new WeightedQuickUnionUF((gridSize * gridSize) + 1);\n // add 2 to accommodate virtual sites in union find data structure\n this.wquf2 = new WeightedQuickUnionUF((gridSize * gridSize) + 2);\n }",
"public void solve(int x, int y) {\n\tif ( numQ == xLen ) \n\t solved = true; \n //Checks if you're able to place queen on current space\n\telse if ( board[x][y] == 0 ) {\n\t fill(x,y);\n\t board[x][y] = 9;\n\t numQ++;\n\t //Attempts to call solve for every spot on the board\n\t for ( int r =0; r < xLen; r++ ) {\n\t\tfor ( int c = 0; c < yLen; c++ ) {\n\t\t if (!solved) \n\t\t\tsolve(r,c);\n\t\t \n\t\t}\n\t }\n\t /* Though I got my code to work for the 5x5 example, I had \n\t trouble extending it to larger boards. Essentially my solve\n\t places a queen in the first non-\"threatened\" spot on the board\n\t available, but doesn't go back to try another configuration if\n\t the program runs into a dead-end. */\n\t}\n }",
"public QuickUnionUF(int n) {\n nodes = new int[n];\n for(int i = 0; i < n; ++i) {\n nodes[i] = i;\n }\n }"
] |
[
"0.5870368",
"0.585188",
"0.5818497",
"0.57947046",
"0.57538253",
"0.57497835",
"0.5748025",
"0.5730976",
"0.5724145",
"0.5627157",
"0.562103",
"0.5617845",
"0.5598565",
"0.5584065",
"0.5572025",
"0.55466384",
"0.55349666",
"0.5517157",
"0.54929876",
"0.544797",
"0.5406325",
"0.53869784",
"0.5384273",
"0.5383393",
"0.535904",
"0.5357435",
"0.5342366",
"0.52879167",
"0.5283001",
"0.5278748",
"0.5276774",
"0.52588063",
"0.5253697",
"0.52365696",
"0.52271974",
"0.5177294",
"0.5173146",
"0.5129982",
"0.51276386",
"0.511126",
"0.51006293",
"0.50977504",
"0.5095502",
"0.5080057",
"0.50794935",
"0.5071455",
"0.5061188",
"0.5043951",
"0.50433326",
"0.5036321",
"0.5022624",
"0.5006833",
"0.50040215",
"0.50008965",
"0.50000566",
"0.49885947",
"0.49865046",
"0.49813962",
"0.49812135",
"0.49763903",
"0.4964324",
"0.4958181",
"0.49490708",
"0.4941035",
"0.49364066",
"0.49102375",
"0.49039456",
"0.4878734",
"0.48762664",
"0.48748946",
"0.48620713",
"0.48604634",
"0.48500982",
"0.4849994",
"0.48468727",
"0.4834762",
"0.483339",
"0.48285148",
"0.48281613",
"0.48195946",
"0.48181432",
"0.48160002",
"0.48109084",
"0.4807406",
"0.48073435",
"0.48034993",
"0.4788167",
"0.47852615",
"0.477908",
"0.4773794",
"0.47736594",
"0.47522244",
"0.47431853",
"0.47399783",
"0.4737309",
"0.47351447",
"0.4732726",
"0.473143",
"0.4722289",
"0.4712091"
] |
0.81209064
|
0
|
Creates a Costas array problem of size n. Two AllDifferent constraints are used, on achieving AC, the other BC. The variables can be accessed though the hook name "vars" and "vectors".
|
@SuppressWarnings("Duplicates")
public static Solver makeCostasArrays(int n){
Solver solver = new Solver();
IntVar[] vars = VariableFactory.enumeratedArray("v", n, 0, n - 1, solver);
IntVar[] vectors = new IntVar[(n*(n-1))/2];
IntVar[][] diff = new IntVar[n][n];
int idx = 0;
for (int i = 0; i < n; i++) {
for (int j = i+1; j < n; j++) {
IntVar k = VariableFactory.enumerated(StringUtils.randomName(), -n, n, solver);
solver.post(ICF.arithm(k,"!=",0));
solver.post(IntConstraintFactory.sum(new IntVar[]{vars[i],k},vars[j]));
vectors[idx] = VariableFactory.offset(k, 2 * n * (j - i));
diff[i][j] = k;
idx++;
}
}
solver.addHook("vars", vars);
solver.addHook("vectors", vectors);
solver.post(IntConstraintFactory.alldifferent(vars, "AC"));
solver.post(IntConstraintFactory.alldifferent(vectors, "BC"));
// symmetry-breaking
solver.post(ICF.arithm(vars[0],"<",vars[n-1]));
return solver;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@SuppressWarnings(\"Duplicates\")\n public static Solver makeNQueenWithBinaryConstraints(int n){\n Solver solver = new Solver();\n IntVar[] vars = new IntVar[n];\n for (int i = 0; i < vars.length; i++) {\n vars[i] = VariableFactory.enumerated(\"Q_\" + i, 1, n, solver);\n }\n solver.addHook(\"vars\", vars);\n for (int i = 0; i < n - 1; i++) {\n for (int j = i + 1; j < n; j++) {\n int k = j - i;\n solver.post(IntConstraintFactory.arithm(vars[i], \"!=\", vars[j]));\n solver.post(IntConstraintFactory.arithm(vars[i], \"!=\", vars[j], \"+\", -k));\n solver.post(IntConstraintFactory.arithm(vars[i], \"!=\", vars[j], \"+\", k));\n }\n }\n return solver;\n }",
"@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }",
"public static void run(){\n\t\t\n\t\tMatrix A = null;\n\t\tVector b = null;\n\t\tVector c = null;\n\t\t\n\t\tfor (int n= 3; n<=11; n+=2 )\n\t\t{\n\t\t\tk=n-2;\n\t\t\tA = createConstraint(n, k) ;\n\t\t\tb = create_b(k, 0.5);\n\t\t\tc = create_c(n);\n\t\t\ttable = new SimplexTable(A, b, c, SimplexTable.MODE.EQUALITY);\n\t\t table.solve(); \n\t\t\tp(\"q_n( n=\"+n+\")= \" + (double) table.getMaxValue()); //(Math.round() / 100000);\n\t\t}\n\t\t\n\t}",
"private void generateVariablesAndConstraints() {\n\t\tVariable norwegian=new Variable(generateDomain(), \"norwegian\");\n\t\tVariable english=new Variable(generateDomain(), \"english\");\n\t\tVariable dane=new Variable(generateDomain(), \"dane\");\n\t\tVariable german=new Variable(generateDomain(), \"german\");\n\t\tVariable swede=new Variable(generateDomain(), \"swede\");\n\t\t//colors: \"red\", \"green\", \"white\", \"yellow\", \"blue\"\n\t\tVariable red=new Variable(generateDomain(), \"red\");\n\t\tVariable green=new Variable(generateDomain(), \"green\");\n\t\tVariable white=new Variable(generateDomain(), \"white\");\n\t\tVariable yellow=new Variable(generateDomain(), \"yellow\");\n\t\tVariable blue=new Variable(generateDomain(), \"blue\");\n\t\t//tobaccos: \"light\", \"cigar\", \"pipe\", \"unfiltered\", \"menthol\"\n\t\tVariable light=new Variable(generateDomain(), \"light\");\n\t\tVariable cigar=new Variable(generateDomain(), \"cigar\");\n\t\tVariable pipe=new Variable(generateDomain(), \"pipe\");\n\t\tVariable unfiltered=new Variable(generateDomain(), \"unfiltered\");\n\t\tVariable menthol=new Variable(generateDomain(), \"menthol\");\n\t\t//drinks: \"tea\", \"milk\", \"water\", \"beer\", \"coffee\"\n\t\tVariable tea=new Variable(generateDomain(), \"tea\");\n\t\tVariable milk=new Variable(generateDomain(), \"milk\");\n\t\tVariable water=new Variable(generateDomain(), \"water\");\n\t\tVariable beer=new Variable(generateDomain(), \"beer\");\n\t\tVariable coffee=new Variable(generateDomain(), \"coffee\");\n\t\t//pets: \"fish\", \"cat\", \"bird\", \"dog\", \"horse\"\n\t\tVariable fish=new Variable(generateDomain(), \"fish\");\n\t\tVariable cat=new Variable(generateDomain(), \"cat\");\n\t\tVariable bird=new Variable(generateDomain(), \"bird\");\n\t\tVariable dog=new Variable(generateDomain(), \"dog\");\n\t\tVariable horse=new Variable(generateDomain(), \"horse\");\n\t\t\n\t\tvariables= new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tred, green, white, yellow, blue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlight, cigar, pipe, unfiltered, menthol,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttea, milk, water, beer, coffee,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfish, cat, bird, dog, horse));\n\t\t\n\t\tconstraints=new ArrayList<Constraint>();\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(red, green, white, yellow, blue))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(light, cigar, pipe, unfiltered, menthol))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(tea, milk, water, beer, coffee))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(fish, cat, bird, dog, horse))).toneq()));\n\t\tconstraints.add(new equnary(norwegian, 1)); //Norweg zamieszkuje pierwszy dom\n\t\tconstraints.add(new eq(english, red));//Anglik mieszka w czerwonym domu.\n\t\tconstraints.add(new lt(green, white));//Zielony dom znajduje się bezpośrednio po lewej stronie domu białego.\n\t\tconstraints.add(new eq(dane, tea));//Duńczyk pija herbatkę.\n\t\tconstraints.add(new nextto(light, cat));//Palacz papierosów light mieszka obok hodowcy kotów.\n\t\tconstraints.add(new eq(yellow, cigar));//Mieszkaniec żółtego domu pali cygara.\n\t\tconstraints.add(new eq(german, pipe));//Niemiec pali fajkę.\n\t\tconstraints.add(new equnary(milk, 3));//Mieszkaniec środkowego domu pija mleko.\n\t\tconstraints.add(new nextto(light, water));//Palacz papierosów light ma sąsiada, który pija wodę.\n\t\tconstraints.add(new eq(unfiltered, bird));//Palacz papierosów bez filtra hoduje ptaki.\n\t\tconstraints.add(new eq(swede, dog));//Szwed hoduje psy.\n\t\tconstraints.add(new nextto(norwegian, blue));//Norweg mieszka obok niebieskiego domu.\n\t\tconstraints.add(new nextto(horse, yellow));//Hodowca koni mieszka obok żółtego domu.\n\t\tconstraints.add(new eq(menthol, beer));//Palacz mentolowych pija piwo.\n\t\tconstraints.add(new eq(green, coffee));//W zielonym domu pija się kawę\n\t}",
"protected void addConstraints() throws IloException {\n// Constrain (2)\n for (int i = 0; i < m; i++) {\n IloLinearNumExpr expr_2 = model.linearNumExpr();\n for (int j = 0; j < n; j++) {\n expr_2.addTerm(x[i][j], 1);\n }\n model.addLe(expr_2, supply[i]);\n }\n\n // Constrain (3)\n for (int j = 0; j < n; j++) {\n IloLinearNumExpr expr_3 = model.linearNumExpr();\n for (int i = 0; i < m; i++) {\n expr_3.addTerm(x[i][j], 1);\n }\n model.addEq(expr_3, demands[j]);\n }\n }",
"public Design_Tic_Tac_Toe_p348_sol1(int n) {\n rows = new int[n];\n cols = new int[n];\n size = n;\n diagonal = 0;\n anti_diagonal = 0;\n }",
"public void InitializeConstraints(boundkey[] bkc, double[] blc, NodesVector nvector, PipesVector pvector,\n\t\t\tTapsVector tvector, double outflow, double PrixMax, double lcom) {\n\t\tNodes nodes;\n\t\tPipes pipes;\n\t\tTaps taps;\n\n\t\t/* Contraintes sur les Nodes - taps */\n\t\tfor (int i = 0; i < (NbNodes - NbTaps - 1); i++) {\n\t\t\tnodes = (Nodes) nvector.elementAt(i + 1);\n\t\t\tCste[i] = -nodes.height;\n\t\t\tbkc[i] = mosek.boundkey.up;\n\t\t\tblc[i] = -1.0e30;\n\t\t}\n\n\t\t/* Contraintes sur les Taps */\n\t\tfor (int i = NbNodes - NbTaps - 1; i < (NbNodes - 1); i++) {\n\t\t\tnodes = (Nodes) nvector.elementAt(i + 1);\n\t\t\ttaps = (Taps) tvector.elementAt(i - (NbNodes - NbTaps - 1));\n\n\t\t\tif (taps.orifice == Orifices.MAXDIAM) {\n\t\t\t\tCste[i] = -nodes.height - ((outflow * outflow) / taps.faucetCoef);\n\t\t\t} else {\n\t\t\t\tCste[i] = (-nodes.height\n\t\t\t\t\t\t- (outflow * outflow * ((1 / taps.faucetCoef) + Math.pow(CoefOrif / taps.orifice, 4))));\n\t\t\t}\n\n\t\t\tbkc[i] = mosek.boundkey.up;\n\t\t\tblc[i] = -1.0e30;\n\t\t}\n\n\t\t/* Contraintes sur les longueurs des Pipes */\n\t\tfor (int i = NbNodes - 1; i < (m - 1); i++) {\n\t\t\tpipes = (Pipes) pvector.elementAt(i - NbNodes + 1);\n\n\t\t\tCste[i] = pipes.length;\n\n\t\t\tbkc[i] = mosek.boundkey.fx;\n\t\t\tblc[i] = Cste[i];\n\t\t}\n\n\t\t/* contrainte de prix max */\n\t\tCste[m - 1] = PrixMax;\n\t\tbkc[m - 1] = mosek.boundkey.up;\n\t\tblc[m - 1] = -1.0e30;\n\t}",
"private int[] constructCandidates1(int n) {\n int cands[] = new int[subsetCount];\n for (int i = 0; i < subsetCount; i++) {\n cands[i] = i;\n }\n for (int i = 0; i < n; i++) { // Remove currently used sets in partialSol.\n cands[partialSol[i]] = DNU;\n }\n for (int i = 0; i < n; i++) {\n if (getDiff(cands, i, n) == 0) {\n cands[i] = DNU;\n }\n }\n int dnuCount = 0;\n for (int i = 0; i < cands.length; i++) {\n if (cands[i] == DNU) {\n dnuCount++;\n }\n }\n int[] ret = new int[cands.length - dnuCount];\n int retIndex = 0;\n for (int i = 0; i < cands.length; i++) {\n if (cands[i] != DNU) {\n ret[retIndex] = i;\n retIndex++;\n }\n }\n return sortCandidates(ret, n);\n// return ret;\n }",
"public void addRestrictions()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\t\t\t\t\n\t\t\t\tif(restriction[i][j] == 1 )\n\t\t\t\t{\n\t\t\t\t\tcost[i][j] = 1000000000;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void addC2Constraints(double[] alpha, GRBVar[][] xVars, GRBVar[][] yVars, GRBModel model)\n\t\t\tthrows GRBException {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString constraintName = \"constraintC2_\" + i;\n\t\t\t// out_x(i) + out_y(i) - in_y(i) = alpha_i\n\t\t\tGRBLinExpr constraintLinExpr = new GRBLinExpr();\n\n\t\t\t// Expression += out_x(i)\n\t\t\tGRBSolverUtils.addOutTerm(i, 1, mExplicitMDP, xVars, constraintLinExpr);\n\n\t\t\t// Expression += out_y(i)\n\t\t\tGRBSolverUtils.addOutTerm(i, 1, mExplicitMDP, yVars, constraintLinExpr);\n\n\t\t\t// Expression -= in_y(i)\n\t\t\tGRBSolverUtils.addInTerm(i, -1, mExplicitMDP, yVars, constraintLinExpr);\n\n\t\t\t// Add constraint\n\t\t\tmodel.addConstr(constraintLinExpr, GRB.EQUAL, alpha[i], constraintName);\n\t\t}\n\t}",
"public Percolation(int n){\n\t\tif (n <= 0)\n\t\t\tthrow new IllegalArgumentException(\"input must be greater than 0\");\n\t\tstoreVar = n; \n\t\tgrid = new boolean[n*n + 2]; \n\t\tfullgrid = new boolean[n*n + 2];\n\t\tvirtualTop = 0; \n\t\tvirtualBottom = grid.length-1; \n\t\tgrid[0] = true; \n\t\tgrid[grid.length-1] = true; \n\t\tfullgrid[0] = true;\n\t\tunionFind = new WeightedQuickUnionUF(grid.length);\n\t\tbackwash = new WeightedQuickUnionUF(n*n + 1);\n\t\topenSites = 0;\n\n\t}",
"private void prac(int n, int[] x, int[] z, int[] xT, int[] zT, int[] xT2, int[] zT2) {\r\n\t\tint d, e, r, i;\r\n\t\tint[] t;\r\n\t\tint[] xA = x, zA = z;\r\n\t\tint[] xB = fieldAux1, zB = fieldAux2;\r\n\t\tint[] xC = fieldAux3, zC = fieldAux4;\r\n\t\tdouble v[] = { 1.61803398875, 1.72360679775, 1.618347119656, 1.617914406529, 1.612429949509, 1.632839806089, 1.620181980807, 1.580178728295,\r\n\t\t\t\t1.617214616534, 1.38196601125 };\r\n\r\n\t\t/* chooses the best value of v */\r\n\t\tr = lucas_cost(n, v[0]);\r\n\t\ti = 0;\r\n\t\tfor (d = 1; d < 10; d++) {\r\n\t\t\te = lucas_cost(n, v[d]);\r\n\t\t\tif (e < r) {\r\n\t\t\t\tr = e;\r\n\t\t\t\ti = d;\r\n\t\t\t}\r\n\t\t}\r\n\t\td = n;\r\n\t\tr = (int) ((double) d / v[i] + 0.5);\r\n\t\t/* first iteration always begins by Condition 3, then a swap */\r\n\t\td = n - r;\r\n\t\te = 2 * r - n;\r\n\t\tSystem.arraycopy(xA, 0, xB, 0, NumberLength); // B = A\r\n\t\tSystem.arraycopy(zA, 0, zB, 0, NumberLength);\r\n\t\tSystem.arraycopy(xA, 0, xC, 0, NumberLength); // C = A\r\n\t\tSystem.arraycopy(zA, 0, zC, 0, NumberLength);\r\n\t\tduplicate(xA, zA, xA, zA); /* A=2*A */\r\n\t\twhile (d != e) {\r\n\t\t\tif (d < e) {\r\n\t\t\t\tr = d;\r\n\t\t\t\td = e;\r\n\t\t\t\te = r;\r\n\t\t\t\tt = xA;\r\n\t\t\t\txA = xB;\r\n\t\t\t\txB = t;\r\n\t\t\t\tt = zA;\r\n\t\t\t\tzA = zB;\r\n\t\t\t\tzB = t;\r\n\t\t\t}\r\n\t\t\t/* do the first line of Table 4 whose condition qualifies */\r\n\t\t\tif (4 * d <= 5 * e && ((d + e) % 3) == 0) { /* condition 1 */\r\n\t\t\t\tr = (2 * d - e) / 3;\r\n\t\t\t\te = (2 * e - d) / 3;\r\n\t\t\t\td = r;\r\n\t\t\t\tadd3(xT, zT, xA, zA, xB, zB, xC, zC); /* T = f(A,B,C) */\r\n\t\t\t\tadd3(xT2, zT2, xT, zT, xA, zA, xB, zB); /* T2 = f(T,A,B) */\r\n\t\t\t\tadd3(xB, zB, xB, zB, xT, zT, xA, zA); /* B = f(B,T,A) */\r\n\t\t\t\tt = xA;\r\n\t\t\t\txA = xT2;\r\n\t\t\t\txT2 = t;\r\n\t\t\t\tt = zA;\r\n\t\t\t\tzA = zT2;\r\n\t\t\t\tzT2 = t; /* swap A and T2 */\r\n\t\t\t} else if (4 * d <= 5 * e && (d - e) % 6 == 0) { /* condition 2 */\r\n\t\t\t\td = (d - e) / 2;\r\n\t\t\t\tadd3(xB, zB, xA, zA, xB, zB, xC, zC); /* B = f(A,B,C) */\r\n\t\t\t\tduplicate(xA, zA, xA, zA); /* A = 2*A */\r\n\t\t\t} else if (d <= (4 * e)) { /* condition 3 */\r\n\t\t\t\td -= e;\r\n\t\t\t\tadd3(xT, zT, xB, zB, xA, zA, xC, zC); /* T = f(B,A,C) */\r\n\t\t\t\tt = xB;\r\n\t\t\t\txB = xT;\r\n\t\t\t\txT = xC;\r\n\t\t\t\txC = t;\r\n\t\t\t\tt = zB;\r\n\t\t\t\tzB = zT;\r\n\t\t\t\tzT = zC;\r\n\t\t\t\tzC = t; /* circular permutation (B,T,C) */\r\n\t\t\t} else if ((d + e) % 2 == 0) { /* condition 4 */\r\n\t\t\t\td = (d - e) / 2;\r\n\t\t\t\tadd3(xB, zB, xB, zB, xA, zA, xC, zC); /* B = f(B,A,C) */\r\n\t\t\t\tduplicate(xA, zA, xA, zA); /* A = 2*A */\r\n\t\t\t} else if (d % 2 == 0) { /* condition 5 */\r\n\t\t\t\td /= 2;\r\n\t\t\t\tadd3(xC, zC, xC, zC, xA, zA, xB, zB); /* C = f(C,A,B) */\r\n\t\t\t\tduplicate(xA, zA, xA, zA); /* A = 2*A */\r\n\t\t\t} else if (d % 3 == 0) { /* condition 6 */\r\n\t\t\t\td = d / 3 - e;\r\n\t\t\t\tduplicate(xT, zT, xA, zA); /* T1 = 2*A */\r\n\t\t\t\tadd3(xT2, zT2, xA, zA, xB, zB, xC, zC); /* T2 = f(A,B,C) */\r\n\t\t\t\tadd3(xA, zA, xT, zT, xA, zA, xA, zA); /* A = f(T1,A,A) */\r\n\t\t\t\tadd3(xT, zT, xT, zT, xT2, zT2, xC, zC); /* T1 = f(T1,T2,C) */\r\n\t\t\t\tt = xC;\r\n\t\t\t\txC = xB;\r\n\t\t\t\txB = xT;\r\n\t\t\t\txT = t;\r\n\t\t\t\tt = zC;\r\n\t\t\t\tzC = zB;\r\n\t\t\t\tzB = zT;\r\n\t\t\t\tzT = t; /* circular permutation (C,B,T) */\r\n\t\t\t} else if ((d + e) % 3 == 0) { /* condition 7 */\r\n\t\t\t\td = (d - 2 * e) / 3;\r\n\t\t\t\tadd3(xT, zT, xA, zA, xB, zB, xC, zC); /* T1 = f(A,B,C) */\r\n\t\t\t\tadd3(xB, zB, xT, zT, xA, zA, xB, zB); /* B = f(T1,A,B) */\r\n\t\t\t\tduplicate(xT, zT, xA, zA);\r\n\t\t\t\tadd3(xA, zA, xA, zA, xT, zT, xA, zA); /* A = 3*A */\r\n\t\t\t} else if ((d - e) % 3 == 0) { /* condition 8 */\r\n\t\t\t\td = (d - e) / 3;\r\n\t\t\t\tadd3(xT, zT, xA, zA, xB, zB, xC, zC); /* T1 = f(A,B,C) */\r\n\t\t\t\tadd3(xC, zC, xC, zC, xA, zA, xB, zB); /* C = f(A,C,B) */\r\n\t\t\t\tt = xB;\r\n\t\t\t\txB = xT;\r\n\t\t\t\txT = t;\r\n\t\t\t\tt = zB;\r\n\t\t\t\tzB = zT;\r\n\t\t\t\tzT = t; /* swap B and T */\r\n\t\t\t\tduplicate(xT, zT, xA, zA);\r\n\t\t\t\tadd3(xA, zA, xA, zA, xT, zT, xA, zA); /* A = 3*A */\r\n\t\t\t} else if (e % 2 == 0) { /* condition 9 */\r\n\t\t\t\te /= 2;\r\n\t\t\t\tadd3(xC, zC, xC, zC, xB, zB, xA, zA); /* C = f(C,B,A) */\r\n\t\t\t\tduplicate(xB, zB, xB, zB); /* B = 2*B */\r\n\t\t\t}\r\n\t\t}\r\n\t\tadd3(x, z, xA, zA, xB, zB, xC, zC);\r\n\t}",
"public static int dynamicProgramming(int n) {\n for (int i=0; i<=n; i++) {\n table[0][i] = 1;\n }\n\n for (int j=1; j<4; j++) { //this loops the different denominations.\n for (int i=0; i<=n; i++) { //this loops through the amount we have to make change for\n\n //hard to explain, create a table and look at it. For j=1 (nickel), for anything less than\n //5 cents, we just copy the value down from j=0 (penny). The nickel has no effect for anything less than 5 cents.\n if (i < denominations[j]) {\n table[j][i] = table[j-1][i];\n continue;\n }\n\n //For example, j=1 (nickel), i = 11 cents. the number of ways to make 11 cents is equal to\n //the number of ways to make 11 cents without using nickel (table[j-1][i]) plus the number\n //of ways to 6 cents (table[j][i-denomination[j]).\n table[j][i] = table[j-1][i] + table[j][i-denominations[j]];\n }\n }\n return table[3][n];\n }",
"private Behaviour objectiveSimulation(int n) {\n\n //System.out.println(\"Simulation: running objective simulation\");\n\n start();\n double distanceTravelled = 0;\n\n for(int i = 0; i < n; i++) {\n\n schedule.step(this);\n }\n\n ArrayList<RobotObject> tempBots = robotFactory.getPlacedRobots();\n ArrayList<ResourceObject> tempResources = resourceFactory.getPlacedResources();\n\n construction.updateConstructionZones();\n\n //THIS IS FOR THE OBJECTIVE FITNESS\n Behaviour behaviour = new Behaviour(construction, schemaConfigNum);\n\n finish();\n\n return behaviour;\n\n }",
"@Test\n public void testBuildGraph_FactorArr_booleanArrArr() {\n\n char[][] adjacency = new char[][]{\n {0, 0, 0, 0, 0, 0, 0, 1, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 1, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 1, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 1, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 1, 0, 0, 0},\n {1, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 1, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 1, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 1, 0},\n };\n\n CostFunction[][] factors = new CostFunction[][]{\n {factory.buildCostFunction( new Variable[]{v[0],v[7]}, 0 )},\n {},\n {factory.buildCostFunction( new Variable[]{v[1],v[2]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[2],v[3]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[3],v[4]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[1],v[3],v[4]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[1],v[5]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[2],v[6]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[1],v[6],v[7]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[6]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[3],v[7]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[4],v[8]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[5],v[8]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[8]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[2],v[5],v[9]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[5],v[6],v[9]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[4],v[7],v[9]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[8],v[9]}, 0 )},\n };\n\n GdlFactory gf = new GdlFactory();\n UPGraph result = JunctionTreeAlgo.buildGraph(gf, factors, adjacency);\n //System.out.println(result);\n }",
"public BnB(ObjectiveType objectiveType, double c0, double[] c, double[][] a, Sign[] signs, double[] b, int[] freeVars, int[] intVars) {\n this(objectiveType, c0, c, a, signs, b, freeVars, intVars, Maths.EMPTY_INT_ARRAY);\n }",
"public int g(Variable n)\n { \n int id = n.getID();\n int row_num = id / issue.getSize();\n int col_num = id % issue.getSize();\n int box_num = ((col_num / issue.getSqrtSize()) * 3 +\n (row_num / issue.getSqrtSize()));\n List<Integer> buffer = new ArrayList<Integer>();\n\n for (int i = 0; i < issue.getRows()[row_num].length; i++)\n {\n Variable slot = issue.getRows()[row_num][i];\n\n if (!(slot.hasValue()))\n { \n buffer.add(slot.getID());\n }\n }\n\n for (int i = 0; i < issue.getCols()[col_num].length; i++)\n {\n Variable slot = issue.getCols()[col_num][i];\n if (!(slot.hasValue()))\n {\n buffer.add(slot.getID());\n }\n }\n\n for (int i = 0; i < issue.getBoxes()[box_num].length; i++)\n {\n Variable slot = issue.getBoxes()[box_num][i];\n if ((!(issue.getRows()[row_num][i].hasValue())) &&\n (!(buffer.contains(slot.getID()))))\n {\n buffer.add(slot.getID());\n }\n }\n\n int cost = 27 - buffer.size();\n return cost;\n }",
"@Override\n protected void doAlgorithmA1() {\n int xP = 0;\n int yP = 0;\n\n\n //Taking the variable out of the list that are in the bounds\n //Testing that the bound has variables\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n xP = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX().getPosition();\n }\n int xU = 0;\n int xL = 0;\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY() != null) {\n yP = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY().getPosition();\n }\n int yU = 0;\n int yL = 0;\n int cright = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getCright();\n int cleft = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getCleft();\n\n\n\n for (Variable variable : csp.getVars()) {\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n if (variable.getPosition() == xP) {\n xU = variable.getUpperDomainBound();\n xL = variable.getLowerDomainBound();\n }\n }\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY() != null) {\n if (variable.getPosition() == yP) {\n yU = variable.getUpperDomainBound();\n yL = variable.getLowerDomainBound();\n }\n }\n }\n\n boolean first = false;\n boolean second = false;\n\n //Testing if the bound is true, false or inconclusive\n\n if (xL + cleft >= yU + cright) {\n first = true;\n }\n if (xU + cleft < yL + cright) {\n second = true;\n }\n\n //are first and second not equal is the bound not inconclusive\n if (first != second) {\n if (first) { //a true Simple Bound was found\n //checks if it was the last constraint in a csp\n //If so the csp is true\n //else check the next constraint and do this method again\n if (csp.getSimpleConstraints().size() - 1 == cIndex) {\n System.out.println(\"P is satisfiable\");\n System.out.println(System.nanoTime()-startTime);\n return;\n } else {\n bIndex = 0;\n cIndex++;\n unit=false;\n doAlgorithmA1();\n }\n } else if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().size() - 1 == bIndex) { //a false Simple Bound was found\n //\n bIndex = 0;\n cIndex = 0;\n if (isInconclusive) {\n if(unit){\n doDeduction();\n }else {\n doAlgorithmA3();\n }\n } else {\n doAlgorithmA2();\n }\n } else {\n bIndex++;\n doAlgorithmA1();\n }\n } else {//an inconclusive Simple Bound was found\n //checks if the bound wasn't already inconclusive\n if(!isInconclusive){\n unit=true;\n unitSB = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex);\n }else {\n unit=false;\n }\n isInconclusive = true;\n\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().size() - 1 == bIndex) {\n cIndex = 0;\n bIndex = 0;\n if(unit){\n doDeduction();\n }else {\n doAlgorithmA3();\n }\n } else {\n bIndex++;\n doAlgorithmA1();\n }\n }\n }",
"private void m1247a(LinearSystem eVar, boolean z, SolverVariable hVar, SolverVariable hVar2, EnumC0282a aVar, boolean z2, ConstraintAnchor eVar2, ConstraintAnchor eVar3, int i, int i2, int i3, int i4, float f, boolean z3, boolean z4, int i5, int i6, int i7, float f2, boolean z5) {\n SolverVariable hVar3;\n boolean z6;\n int i8;\n int i9;\n SolverVariable hVar4;\n SolverVariable hVar5;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n SolverVariable hVar6;\n boolean z7;\n int i15;\n SolverVariable hVar7;\n boolean z8;\n boolean z9;\n SolverVariable hVar8;\n SolverVariable hVar9;\n int i16;\n int i17;\n boolean z10;\n int i18;\n boolean z11;\n int i19;\n int i20;\n int i21;\n int i22;\n int i23;\n boolean z12;\n int i24;\n int i25;\n SolverVariable hVar10;\n SolverVariable hVar11;\n int i26;\n SolverVariable a = eVar.mo3927a(eVar2);\n SolverVariable a2 = eVar.mo3927a(eVar3);\n SolverVariable a3 = eVar.mo3927a(eVar2.mo3761g());\n SolverVariable a4 = eVar.mo3927a(eVar3.mo3761g());\n if (eVar.f1585c && eVar2.mo3751a().f1561i == 1 && eVar3.mo3751a().f1561i == 1) {\n if (LinearSystem.m1445a() != null) {\n LinearSystem.m1445a().f1621s++;\n }\n eVar2.mo3751a().mo3877a(eVar);\n eVar3.mo3751a().mo3877a(eVar);\n if (!z4 && z) {\n eVar.mo3935a(hVar2, a2, 0, 6);\n return;\n }\n return;\n }\n if (LinearSystem.m1445a() != null) {\n hVar3 = a4;\n LinearSystem.m1445a().f1600B++;\n } else {\n hVar3 = a4;\n }\n boolean j = eVar2.mo3764j();\n boolean j2 = eVar3.mo3764j();\n boolean j3 = this.f1497z.mo3764j();\n int i27 = j ? 1 : 0;\n if (j2) {\n i27++;\n }\n if (j3) {\n i27++;\n }\n int i28 = z3 ? 3 : i5;\n switch (aVar) {\n case FIXED:\n z6 = false;\n break;\n case WRAP_CONTENT:\n z6 = false;\n break;\n case MATCH_PARENT:\n z6 = false;\n break;\n case MATCH_CONSTRAINT:\n if (i28 != 4) {\n z6 = true;\n break;\n } else {\n z6 = false;\n break;\n }\n default:\n z6 = false;\n break;\n }\n if (this.f1470as == 8) {\n i8 = 0;\n z6 = false;\n } else {\n i8 = i2;\n }\n if (z5) {\n if (!j && !j2 && !j3) {\n eVar.mo3933a(a, i);\n } else if (j && !j2) {\n eVar.mo3943c(a, a3, eVar2.mo3759e(), 6);\n }\n }\n if (!z6) {\n if (z2) {\n eVar.mo3943c(a2, a, 0, 3);\n if (i3 > 0) {\n i26 = 6;\n eVar.mo3935a(a2, a, i3, 6);\n } else {\n i26 = 6;\n }\n if (i4 < Integer.MAX_VALUE) {\n eVar.mo3940b(a2, a, i4, i26);\n }\n } else {\n eVar.mo3943c(a2, a, i8, 6);\n }\n i11 = i6;\n i9 = i28;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i7;\n } else {\n if (i6 == -2) {\n i20 = i7;\n i21 = i8;\n } else {\n i21 = i6;\n i20 = i7;\n }\n if (i20 == -2) {\n i20 = i8;\n }\n if (i21 > 0) {\n i22 = 6;\n eVar.mo3935a(a2, a, i21, 6);\n i8 = Math.max(i8, i21);\n } else {\n i22 = 6;\n }\n if (i20 > 0) {\n eVar.mo3940b(a2, a, i20, i22);\n i8 = Math.min(i8, i20);\n i23 = 1;\n } else {\n i23 = 1;\n }\n if (i28 == i23) {\n if (z) {\n eVar.mo3943c(a2, a, i8, 6);\n i9 = i28;\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n } else if (z4) {\n eVar.mo3943c(a2, a, i8, 4);\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n i9 = i28;\n } else {\n eVar.mo3943c(a2, a, i8, 1);\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n i9 = i28;\n }\n } else if (i28 == 2) {\n if (eVar2.mo3758d() == ConstraintAnchor.EnumC0280c.TOP || eVar2.mo3758d() == ConstraintAnchor.EnumC0280c.BOTTOM) {\n hVar10 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.TOP));\n hVar11 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.BOTTOM));\n } else {\n hVar10 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.LEFT));\n hVar11 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.RIGHT));\n }\n i11 = i21;\n i24 = i8;\n hVar5 = a3;\n i12 = i20;\n i9 = i28;\n i10 = i27;\n hVar4 = hVar3;\n eVar.mo3929a(eVar.mo3942c().mo3906a(a2, a, hVar11, hVar10, f2));\n z12 = false;\n if (z12 || i10 == 2 || z3) {\n z6 = z12;\n } else {\n int max = Math.max(i11, i24);\n if (i12 > 0) {\n max = Math.min(i12, max);\n i25 = 6;\n } else {\n i25 = 6;\n }\n eVar.mo3943c(a2, a, max, i25);\n z6 = false;\n }\n } else {\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n i9 = i28;\n }\n z12 = z6;\n if (z12) {\n }\n z6 = z12;\n }\n if (z5 && !z4) {\n if (j || j2 || j3) {\n if (!j || j2) {\n if (!j && j2) {\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), 6);\n if (z) {\n eVar.mo3935a(a, hVar, 0, 5);\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n }\n } else if (!j || !j2) {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n if (z6) {\n if (z && i3 == 0) {\n eVar.mo3935a(a2, a, 0, 6);\n }\n if (i9 == 0) {\n if (i12 > 0 || i11 > 0) {\n i19 = 4;\n z11 = true;\n } else {\n i19 = 6;\n z11 = false;\n }\n hVar7 = hVar5;\n eVar.mo3943c(a, hVar7, eVar2.mo3759e(), i19);\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), i19);\n z8 = i12 > 0 || i11 > 0;\n z7 = z11;\n i15 = 5;\n } else {\n hVar7 = hVar5;\n if (i9 == 1) {\n z8 = true;\n i15 = 6;\n z7 = true;\n } else if (i9 == 3) {\n if (!z3) {\n if (this.f1487p != -1 && i12 <= 0) {\n i18 = 6;\n eVar.mo3943c(a, hVar7, eVar2.mo3759e(), i18);\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), i18);\n z8 = true;\n i15 = 5;\n z7 = true;\n }\n }\n i18 = 4;\n eVar.mo3943c(a, hVar7, eVar2.mo3759e(), i18);\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), i18);\n z8 = true;\n i15 = 5;\n z7 = true;\n } else {\n z8 = false;\n i15 = 5;\n z7 = false;\n }\n }\n } else {\n hVar7 = hVar5;\n z8 = true;\n i15 = 5;\n z7 = false;\n }\n if (z8) {\n hVar9 = hVar4;\n hVar8 = hVar7;\n hVar6 = a2;\n eVar.mo3934a(a, hVar7, eVar2.mo3759e(), f, hVar4, a2, eVar3.mo3759e(), i15);\n boolean z13 = eVar2.f1416c.f1414a instanceof Barrier;\n boolean z14 = eVar3.f1416c.f1414a instanceof Barrier;\n if (z13 && !z14) {\n z9 = z;\n z10 = true;\n i17 = 5;\n i16 = 6;\n if (z7) {\n }\n eVar.mo3935a(a, hVar8, eVar2.mo3759e(), i17);\n eVar.mo3940b(hVar6, hVar9, -eVar3.mo3759e(), i16);\n if (z) {\n }\n } else if (!z13 && z14) {\n z10 = z;\n i17 = 6;\n i16 = 5;\n z9 = true;\n if (z7) {\n i17 = 6;\n i16 = 6;\n }\n if ((!z6 && z9) || z7) {\n eVar.mo3935a(a, hVar8, eVar2.mo3759e(), i17);\n }\n if ((!z6 && z10) || z7) {\n eVar.mo3940b(hVar6, hVar9, -eVar3.mo3759e(), i16);\n }\n if (z) {\n i14 = 0;\n i13 = 6;\n eVar.mo3935a(a, hVar, 0, 6);\n } else {\n i14 = 0;\n i13 = 6;\n }\n }\n } else {\n hVar8 = hVar7;\n hVar9 = hVar4;\n hVar6 = a2;\n }\n z10 = z;\n z9 = z10;\n i17 = 5;\n i16 = 5;\n if (z7) {\n }\n eVar.mo3935a(a, hVar8, eVar2.mo3759e(), i17);\n eVar.mo3940b(hVar6, hVar9, -eVar3.mo3759e(), i16);\n if (z) {\n }\n }\n } else if (z) {\n eVar.mo3935a(hVar2, a2, 0, 5);\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n }\n } else if (z) {\n eVar.mo3935a(hVar2, a2, 0, 5);\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n }\n if (z) {\n eVar.mo3935a(hVar2, hVar6, i14, i13);\n }\n } else if (i10 < 2 && z) {\n eVar.mo3935a(a, hVar, 0, 6);\n eVar.mo3935a(hVar2, a2, 0, 6);\n }\n }",
"public static int[] constructor(int n) {\r\n int v[] = new int[n];\r\n\r\n for (int i = 0; i < v.length; i++) {\r\n int dato = (int) (Math.random() * 20);\r\n v[i] = dato;\r\n }\r\n return v;\r\n }",
"private static int lucas_cost(int n, double v) {\r\n\t\tint c, d, e, r;\r\n\r\n\t\td = n;\r\n\t\tr = (int) ((double) d / v + 0.5);\r\n\t\tif (r >= n)\r\n\t\t\treturn (ADD * n);\r\n\t\td = n - r;\r\n\t\te = 2 * r - n;\r\n\t\tc = DUP + ADD; /* initial duplicate and final addition */\r\n\t\twhile (d != e) {\r\n\t\t\tif (d < e) {\r\n\t\t\t\tr = d;\r\n\t\t\t\td = e;\r\n\t\t\t\te = r;\r\n\t\t\t}\r\n\t\t\tif (4 * d <= 5 * e && ((d + e) % 3) == 0) { /* condition 1 */\r\n\t\t\t\tr = (2 * d - e) / 3;\r\n\t\t\t\te = (2 * e - d) / 3;\r\n\t\t\t\td = r;\r\n\t\t\t\tc += 3 * ADD; /* 3 additions */\r\n\t\t\t} else if (4 * d <= 5 * e && (d - e) % 6 == 0) { /* condition 2 */\r\n\t\t\t\td = (d - e) / 2;\r\n\t\t\t\tc += ADD + DUP; /* one addition, one duplicate */\r\n\t\t\t} else if (d <= (4 * e)) { /* condition 3 */\r\n\t\t\t\td -= e;\r\n\t\t\t\tc += ADD; /* one addition */\r\n\t\t\t} else if ((d + e) % 2 == 0) { /* condition 4 */\r\n\t\t\t\td = (d - e) / 2;\r\n\t\t\t\tc += ADD + DUP; /* one addition, one duplicate */\r\n\t\t\t} else if (d % 2 == 0) { /* condition 5 */\r\n\t\t\t\td /= 2;\r\n\t\t\t\tc += ADD + DUP; /* one addition, one duplicate */\r\n\t\t\t} else if (d % 3 == 0) { /* condition 6 */\r\n\t\t\t\td = d / 3 - e;\r\n\t\t\t\tc += 3 * ADD + DUP; /* three additions, one duplicate */\r\n\t\t\t} else if ((d + e) % 3 == 0) { /* condition 7 */\r\n\t\t\t\td = (d - 2 * e) / 3;\r\n\t\t\t\tc += 3 * ADD + DUP; /* three additions, one duplicate */\r\n\t\t\t} else if ((d - e) % 3 == 0) { /* condition 8 */\r\n\t\t\t\td = (d - e) / 3;\r\n\t\t\t\tc += 3 * ADD + DUP; /* three additions, one duplicate */\r\n\t\t\t} else if (e % 2 == 0) { /* condition 9 */\r\n\t\t\t\te /= 2;\r\n\t\t\t\tc += ADD + DUP; /* one addition, one duplicate */\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (c);\r\n\t}",
"public Percolation(int n) {\n if (n <= 0) throw new IllegalArgumentException(\"Bad Input\");\n else {\n size = n;\n // mainObject includes the vsite1 and vsite2 hence it is 2 nos. greater.\n mainObject = new WeightedQuickUnionUF(n * n + 2);\n\n grid = new boolean[n][n];\n vsite1 = 0;\n vsite2 = n*n+1;\n }\n }",
"public LSMOP9(String solutionType, Integer numberOfVariables,\r\n\t\t\tInteger numberOfObjectives) {\r\n\t\tsuper(solutionType, numberOfVariables, numberOfObjectives);\r\n\t\tnumberOfVariables_ = numberOfVariables;\r\n\t\tnumberOfObjectives_ = numberOfObjectives;\r\n\t\tnumberOfConstraints_ = 0;\r\n\t\tproblemName_ = \"LSMOP9\";\r\n\r\n\t\tnk = 5;\r\n\t\tc = new double[numberOfObjectives_];\r\n\t\tc[0] = 3.8*0.1*(1.0-0.1);\r\n\t\tdouble sumC = c[0];\r\n\t\tfor(int i = 1; i < numberOfObjectives_; i++){\r\n\t\t\tc[i] = 3.8*c[i-1]*(1.0-c[i-1]);\r\n\t\t\tsumC += c[i];\r\n\t\t}\r\n\t\tsublen = new int[numberOfObjectives_];\r\n\t\tfor(int i = 0; i < numberOfObjectives_; i++){\r\n\t\t\t//sublen[i] = (int)Math.ceil(Math.round(numberOfVariables_*c[i]/sumC)/nk);\r\n\t\t\t//sublen[i] = (int)Math.floor(numberOfVariables_*c[i]/sumC/nk);\r\n\t\t\tsublen[i] = (int)Math.floor((numberOfVariables_-numberOfObjectives_+1)*c[i]/sumC/nk);\r\n\t\t}\r\n\t\tlen = new int[numberOfObjectives_+1]; \r\n\t\tlen[0] = 0;\r\n\t\tfor(int i = 0; i < numberOfObjectives_; i++){\r\n\t\t\tlen[i+1] = len[i] + nk*sublen[i];\r\n\t\t}\r\n\t\tlowerLimit_ = new double[numberOfVariables_];\r\n\t\tupperLimit_ = new double[numberOfVariables_];\r\n\t\tfor (int var = 0; var < numberOfObjectives_ - 1; var++) {\r\n\t\t\tlowerLimit_[var] = 0.0;\r\n\t\t\tupperLimit_[var] = 1.0;\r\n\t\t} // for\r\n\t\t\r\n\t\tfor (int var = numberOfObjectives_ - 1; var < numberOfVariables_; var++) {\r\n\t\t\tlowerLimit_[var] = 0.0;\r\n\t\t\tupperLimit_[var] = 10.0;\r\n\t\t} // for\r\n\r\n\t\tif (solutionType.compareTo(\"BinaryReal\") == 0)\r\n\t\t\tsolutionType_ = new BinaryRealSolutionType(this);\r\n\t\telse if (solutionType.compareTo(\"Real\") == 0)\r\n\t\t\tsolutionType_ = new RealSolutionType(this);\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Error: solution type \" + solutionType\r\n\t\t\t\t\t+ \" invalid\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"public CollisionPrevention3D(int n) {\r\n this.numberOfBees = n;\r\n this.beesArray = new Bee3D[n];\r\n }",
"@Override\n public Constraint converConstrain(String classname, String parvarn1, String parvarn2, String parvarn3) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {\n IntVar varConverX = new IntVar(); IntVar varConverY = new IntVar(); IntVar varConverZ = new IntVar(); varConverX.id = parvarn1;varConverY.id = parvarn2; varConverZ.id = parvarn3 ;\n Class<?> clasCon = Class.forName(classname);\n Constructor<?> constru2 = clasCon.getDeclaredConstructor(new Class<?>[] {JaCoP.core.IntVar.class,JaCoP.core.IntVar.class, JaCoP.core.IntVar.class});\n Constraint c = (Constraint) constru2.newInstance(varConverX,varConverY, varConverZ);\n return c;\n }",
"private void addC1Constraints(GRBVar[][] xVars, GRBModel model) throws GRBException {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString constraintName = \"constraintC1_\" + i;\n\t\t\t// out_x(i) - in_x(i) = 0\n\t\t\tGRBLinExpr constraintLinExpr = new GRBLinExpr();\n\n\t\t\t// Expression += out_x(i)\n\t\t\tGRBSolverUtils.addOutTerm(i, 1, mExplicitMDP, xVars, constraintLinExpr);\n\n\t\t\t// Expression -= in_x(i)\n\t\t\tGRBSolverUtils.addInTerm(i, -1, mExplicitMDP, xVars, constraintLinExpr);\n\n\t\t\t// Add constraint\n\t\t\tmodel.addConstr(constraintLinExpr, GRB.EQUAL, 0, constraintName);\n\t\t}\n\t}",
"private double[][] a2() {\n double[][] r = a;\n for (int j = 0; j < nBinVars; j++) {\n final int v = intVars[j];\n if (existsBinConstraint(v)) {\n LOG.debug(\"existsBinConstraint\", v);\n this.nBinVars2--;\n continue;\n }\n double[] constraint = new double[n];\n constraint[v - 1] = 1d;\n r = Maths.append(r, constraint);\n }\n return r;\n }",
"protected double getCost(double[] n) throws Exception {\n\t\tdouble[] da = this.outputDifferences(n);\n\t\tdouble o = 0;\n\t\tfor (double d : da) o += d*d;\n\t\treturn o;\n\t}",
"public static void buildCombination(Variable arr[], int n, int r, List<Variable[]> output) {\n // A temporary array to store all combination one by one \n Variable data[] = new Variable[r];\n\n // Print all combination using temprary array 'data[]' \n combinationUtil(arr, data, 0, n - 1, 0, r, output);\n }",
"public TicTacToe(int n) {\n this.n = n;\n rows = new int[n][3];\n cols = new int[n][3];\n diagonals = new int[2][3];\n }",
"int catalanDP(int n) {\n int[] catalan = new int[n+1]; \n \n // Initialize first two values in table \n catalan[0] = catalan[1] = 1; \n\n // Fill entries in catalan[] using recursive formula \n for (int i=2; i<=n; i++) { \n catalan[i] = 0; \n for (int j=0; j<i; j++) \n catalan[i] += catalan[j] * catalan[i-j-1]; \n } \n \n // Return last entry \n return catalan[n]; \n }",
"public Percolation(int n)\r\n {\r\n //Throw an IllegalArgumentException in the constructor if n ≤ 0.\r\n if (n <= 0) throw new IllegalArgumentException(\"error range\");\r\n\r\n dimension = n;\r\n uf = new WeightedQuickUnionUF(dimension*dimension + 2);\r\n grids = new boolean[dimension*dimension + 1]; // array elements are false\r\n\r\n }",
"public static int maxCuts(int n,int a,int b,int c){\n\n int DP[] =new int[n+1];\n\n DP[0] = 0;\n\n for (int i=1;i<n;i++){\n DP[i] = -1;\n if (i - a >= 0)\n DP[i] = Math.max(DP[i],DP[i-a]);\n if (i - b >= 0)\n DP[i] = Math.max(DP[i],DP[i-b]);\n if (i - c >= 0)\n DP[i] = Math.max(DP[i],DP[i-c]);\n\n\n if (DP[i]!=-1)\n DP[i] = DP[i] + 1;\n\n }\n\n\n return DP[n];\n }",
"public Percolation(final int n) {\n size = n;\n grid = new boolean[n][n];\n wqf = new WeightedQuickUnionUF(n * n);\n }",
"Constraint createConstraint();",
"Constraint createConstraint();",
"public TSPMSTSolution(int iterations)\n {\n// System.out.println(\"NODE CREATED\");\n this.included = new int[0];\n this.includedT = new int[0];\n this.excluded = new int[0];\n this.excludedT = new int[0];\n this.iterations = iterations;\n }",
"public TriDiagonalMatrixF(int n) {\n this.A = new double[n];\n this.B = new double[n];\n this.C = new double[n];\n }",
"private void createLayers(boolean bl, int[] arrn) {\n ILayer[] arriLayer = this.mLayers;\n if (bl) {\n for (int i = -1 + this.mLayerCount; i >= 0; --i) {\n arriLayer[i] = new FixedCapacityLayer(arrn[i]);\n }\n return;\n }\n for (int i = -1 + this.mLayerCount; i >= 0; --i) {\n arriLayer[i] = new DynamicCapacityLayer(arrn[i]);\n }\n }",
"public GenerateRandomInstances(int n) {\r\n this.sources = new Source[n];\r\n this.sources[0] = new Factory(\"S\" + 0, (int) (Math.random() * 50) + 10);\r\n for (int i = 1; i < n; i++) { // generate random values for supply\r\n this.sources[i] = new Warehouse(\"S\" + i, (int) (Math.random() * 50) + 10);\r\n //sum += this.sources[i].getSupply();\r\n }\r\n this.destinations = new Destination[n];\r\n for (int i = 0; i < n; i++) { // generate random values for supply\r\n this.destinations[i] = new Destination(\"D\" + i, (int) (Math.random() * 50) + 10);\r\n }\r\n this.costMatrix = new int[n][n];\r\n for (int k = 0; k < n; k++) { // generate random values for cost matrix\r\n for (int j = 0; j < n; j++) {\r\n this.costMatrix[k][j] = (int) (Math.random() * 9) + 1;\r\n }\r\n }\r\n }",
"public void calculaMatrizCostes() {\n int i, j;\n double xd, yd;\n costes = new int[n][n];\n for (i = 0; i < n; i++) {\n for (j = 0; j < n; j++) {\n xd = vx[i] - vx[j];\n yd = vy[i] - vy[j];\n costes[i][j] = (int) Math.round(Math.sqrt((xd * xd) + (yd * yd)));\n }\n }\n }",
"MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }",
"public Percolation(int n) {\n if (n < 1) {\n throw new IllegalArgumentException();\n }\n\n gridDimension = n;\n\n unionFind = new WeightedQuickUnionUF(gridDimension * gridDimension + 2);\n fullSites = new WeightedQuickUnionUF(gridDimension * gridDimension + 1);\n\n bottomRoot = gridDimension * gridDimension + 1;\n topRoot = gridDimension * gridDimension;\n\n\n sites = new boolean[gridDimension][gridDimension];\n\n }",
"public Tablero(int n, int m) {\n taxis = new HashMap<>();\n casillas = new Casilla[n][m];\n sigueEnOptimo = new HashMap<>();\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n casillas[i][j] = new Casilla(Estado.LIBRE, 0, i, j);\n }\n }\n numFilas = n;\n numColumnas = m;\n }",
"static void setExample(int n) throws Exception {\n int j=n-1;\n PetriNet net = new PetriNet(n);\n PetriNet.setNet(net);\n \n int[] eins=new int[n]; \n Arrays.fill(eins, 1);\n m0 = new Marking(eins);\n \n int[] zwei=new int[n]; \n Arrays.fill(zwei, 2); \n mF = new Marking(zwei);\n \n for (int i = 0; i < n; i++) {\n int[] tmin = new int[n]; \n int[] tdelta = new int[n]; \n Arrays.fill(tmin, 1);\n Arrays.fill(tdelta, -1); \n tdelta[i]=n-1;\n if(i==j) tdelta[i]=n;\n PNTransition t = new PNTransition(tmin, tdelta);\n net.addTransition(t);\n }\n int[] temp=new int[n]; \n Arrays.fill(temp, -n-1); \n temp[j]=-n;\n Inequality ineq=new Inequality(temp);\n boolean findC = ineq.findC();\n System.out.println(\"check-k for: \"+n+\": \"+findC);\n System.out.println(ineq.toString());\n\n }",
"public static void generateRandomNumbers(int n)\n\t{\n\t\t\tlong startTime = 0;\n\t\t\tlong endTime = 0;\n\t\t\tlong timeTaken = 0;\n\t\t\tint minimum = -20;\n\t\t\tint maximum = 20;\n\t\t\t//maximum subarray\n\t\t\tint maximumSum=0;\n\t\t\t// initialize length of array of integers to n\n\t\t \tint A [] = new int[n];\n\t\t \t// get instance of Random() to generate random numbers between -20 and 20\n\t\t \tRandom rand = new Random();\n\t for(int k =0;k<n;k++)\n\t {\n\t \tint randomNum = minimum + rand.nextInt((maximum - minimum) + 1);\n\t \t\tA [k]= randomNum;\n\t \t}\n\t startTime = System.currentTimeMillis();\n\t maximumSum = jKadaneAlgo(A,n);\n\t // System.out.println(\"Maximum Subarray: \"+maximumSum);\n\t // time in milliseconds after completion of J Kadane Algorithm logic\n\t endTime = System.currentTimeMillis();\n\t // calculate total time taken\n\t timeTaken = endTime-startTime;\n\t System.out.println(\"Total time - J Kadane dynamic programming algo: \"+timeTaken+\"ms\");\n\t // time in milliseconds before calling J Kadane Algorithm logic\n\t startTime = System.currentTimeMillis();\n\t \n\t}",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tint N= Integer.parseInt(st.nextToken());\n\t\tint T= Integer.parseInt(st.nextToken());\n\t\t\n\t\t//for each N, three possible problem sets (P, A, G)\n\t\t//and P (prep time: min), V (value)\n\t\t//P <= A <= G\n\t\t\n\t\t//given limit T\n\t\t//find max profit\n\t\tint[][] v = new int[N+1][3+1];\n\t\tint[][] w = new int[N+1][3+1];\n\t\t\n\t\t//one \n\t\t\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tfor (int j = 1; j <= 3; j++) {\n\t\t\t\tw[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t\tv[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t}\n//\t\tfor (int i = 1; i <= N; i++) {\n//\t\t\tfor (int j = 1; j <= 3; j++) {\n//\t\t\t\tSystem.out.println(w[i][j] + \" \"+ v[i][j]);\n//\t\t\t}\n//\t\t}\n\t\tint[][] dp = new int[2][T+1];\n\t\t//where k looks at the kth row of the values/weight array\n\t\tfor (int k = 1; k <= N; k++) {\n\t\t\tfor (int x = 0; x <= T; x++) {\n\t\t\t\t//going through each weight and value\n\t\t\t\tboolean ran = false;\n\t\t\t\tfor (int a = 1; a <= 3; a++) {\t\t\t\t\t\n\t\t\t\t\tif (w[k][a] > x) {\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\tran = true;\n\t\t\t\t\t\tdp[1][x] = Math.max(Math.max(dp[0][x],dp[0][x-w[k][a]] + v[k][a]),dp[1][x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!ran) {\n\t\t\t\t\tdp[1][x] = dp[0][x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tdp[0] = dp[1].clone();\n//\t\t\tfor (int[] row: dp) {\n//\t\t\t\tfor (int m: row) {\n//\t\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int[] row: dp) {\n//\t\t\tfor (int m: row) {\n//\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\tSystem.out.println(dp[1][T]);\n\t}",
"@Override\n\tpublic List<Variable> applyConstraints(List<Variable> variableList) {\n\t\tconstraintVariables.clear();\n\t\tvariables.clear();\n\n\t\tthis.variables = variableList;\n\n\t\tSystem.out.println(\"GAC:\");\n\n\t\treduceArc();\n\n\t\tsolved = GACSolve(queue.poll().number,variables);\n\n\t\tif (!solved){\n\t\t\tSystem.out.println(\"cannot be solved\");\n\t\t}\n\n\t\treturn variables;\n\t}",
"Bolsa(int n) {\r\n\t\tbolsa = new int[n];\r\n\t\tRandom rnd=new Random();\r\n\t\tbolsa[n-1] = 1;\r\n\t}",
"private void addVertexNonEdgeConstraint(){\n for (int i=0; i < g.nonEdges.size(); i++){\n Edge edge = g.nonEdges.get(i);\n int vertex1 = edge.from;\n int vertex2 = edge.to;\n for (int pCount =0; pCount < positionCount-1; pCount++){\n ArrayList<Integer> values = new ArrayList<>();\n values.add((variables[vertex1][pCount] * -1));\n values.add((variables[vertex2][pCount+1] * -1));\n clauses.add(values);\n values = new ArrayList<>();\n values.add((variables[vertex1][pCount+1] * -1));\n values.add((variables[vertex2][pCount] * -1));\n clauses.add(values);\n }\n\n }\n }",
"private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }",
"public double[] createMesh(float a,int n, float dt){\n double[] mesh = new double[n];\r\n mesh[0] = a;\r\n for (int i = 1; i < n; i++){\r\n mesh[i] = mesh[i-1] + dt ;\r\n }\r\n return mesh;\r\n }",
"public Percolation(int n) {\n if (n < 1) throw new IllegalArgumentException(\"n is not positive\");\n virtualTopId = 0;\n virtualBottomId = n * n + 1;\n size = n;\n grid = new boolean[n][n];\n final int componentAmount = n * n + 2;\n mainUnion = new WeightedQuickUnionUF(componentAmount);\n backwashAwareUnion = new WeightedQuickUnionUF(componentAmount);\n }",
"public void SteadyStepReproductionCAN (TableVar Variables) {\r\n\r\n int i, j, pos;\r\n int[] indices = new int[long_poblacion];\r\n float[] fit = new float[long_poblacion];\r\n \r\n for (i=0; i<long_poblacion; i++) {\r\n fit[i]= poblac.getIndivFitness(i);\r\n indices[i] = i; \r\n }\r\n \r\n // Sort the fitness array of actual population and store the values at \"indices\"\r\n Utils.OrDecIndex (fit,0,long_poblacion-1,indices); // To maximise\r\n \r\n for (i=0; i<descendientes; i++) {\t// For each descendant\r\n pos = indices[long_poblacion-1-i];\t\t\r\n for (j=0; j<Variables.getNVars(); j++) {\r\n poblac.setCromElem(pos, j, Des.getCromElem(i,j));\r\n }\r\n poblac.setIndivEvaluated(pos,false);\r\n }\r\n\r\n }",
"private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}",
"public static int feibona(int n) {\r\n int a = 1;\r\n int b = 1;\r\n int c = 0;\r\n for(int i = 3;i <= n;i++) {\r\n c = a + b;\r\n\r\n a = b;\r\n b = c;\r\n }\r\n return c;\r\n }",
"public Polynomial(int n, double[] x, double[] y) {\n\t int np1 = n + 1;\n\t // double[] parameters = new double[np1];\n\t // setParameters(parameters);\n\t double X[][] = new double[x.length][np1];\n\t for (int i = 0; i < x.length; i++) {\n\t\tdouble xi = x[i];\n\t\tdouble prod = 1.0;\n\t\tfor (int j = 0; j < np1; j++) {\n\t\t X[i][j] = prod;\n\t\t prod *= xi;\n\t\t}\n\t }\n\t double[] tmp = new double[np1];\n\t double[][] H = new double[np1][np1];\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int j = 0; j < np1; j++) {\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t tmp[j] += X[i][j]*y[i];\n\t\t}\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t state.c = 0.0;\n\t\t state.total = 0.0;\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble yy = (X[k][i]*X[k][j]) - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\n\t /*\n\t TriangularDecomp decomp = new CholeskyDecomp(H, H);\n\t setDecomp(decomp);\n\t decomp.solve(parameters, tmp);\n\t */\n\t setDecomp(H);\n\t QRDecomp qr = new QRDecomp(X);\n\t setParameters(qr.solve(y));\n\t if (x.length == np1) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble sumsq = LeastSquaresFit.sumOfSquares(this, x, y);\n\t\tdouble variance = sumsq / (x.length - np1);\n\t\t// Chi-square is sumsq divided by the variance because\n\t\t// the sigmas all have the same value, but that just\n\t\t// gives x.length - np1. This happens because we don't have\n\t\t// an independent estimate of the variance, so we are\n\t\t// implicitly assuming we have the right fit.\n\t\tsetChiSquare(x.length - np1);\n\t\tsetDegreesOfFreedom(x.length - np1);\n\t\t// reducedChiSquare = ChiSquare divided by the degrees \n\t\t// of freedom.\n\t\tsetReducedChiSquare(1.0);\n\t\t// the H matrix used sigma=1, so we should have divided it by\n\t\t// the variance, which we didn't know. The covariance is the\n\t\t// inverse of H, so we should multiply it by the variance to\n\t\t// get the right value.\n\t\tsetVariance(variance);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] *= variance;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();",
"private void createOriginalCSP (int[][] variables){\n\t\t\n\t\tnumberOfVariables = variables[0].length;\n\t\tchocoModel = new Model(\"OriginalCSP\");\n\t\tnumberOfProducts = variables.length;\n\t\tcreateNewVar(); // FIRST VAR is PRODUCT ID , varID = 0\n\t\t\n\t\tint varID =0;\n\t\t\n\t\tfor(int i=0;i<variables[0].length;i++){\n\t\t\tcreateNewVar(); // ADD FEATURE SET OF CAMERAS\n\t\t}\n\t\tallVarsAreCreated = true;\n\t\t\n\t\taddProductConstraints(variables);\n\t\t\n\t\t\n\t}",
"public Percolation(int n) {\n\t\tif (n <= 0) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tsize = n;\n\t\tgrid = new boolean[n][n];\n\t\tuf = new WeightedQuickUnionUF(n * n + 2);\n\t}",
"public static void knapsackDynamicProgramming(objects[] items, int capacity, int n) \r\n { \r\n\t\t//use bubble sort to sort item by their weight\t\t\t\t\r\n\t\tfor (int i = 0; i < n-1; i++) \t\t\t\t\r\n\t\t{ \t\t \r\n\t\t\tfor (int j = 0; j < (n-i-1); j++) \t\t \r\n\t\t\t{\t\t \r\n\t\t\t\tif (items[j].weight < items[j+1].weight) \t\t \r\n\t\t\t\t{ \t\t \t\r\n\t\t\t\t\tobjects temp = items[j]; \t\t \r\n\t\t\t\t\titems[j] = items[j+1]; \t\t \r\n\t\t\t\t\titems[j+1] = temp; \t\t \t\t\t\t\t\r\n\t\t\t\t}\t\t \r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n \tif(n <= 0 || capacity <= 0)\r\n \t{\r\n \t\tSystem.out.print(\"Error capacity and object numbers can't be 0\");\r\n \t}\r\n \r\n \tint matrixTable[][] = new int[n+1][capacity+1]; \r\n \r\n \tfor (int i = 0; i <= n; i++) \r\n \t{ \r\n \t\tfor (int j = 0; j <= capacity; j++) \r\n \t\t{ \r\n \t\t\t//Preset row 0 value and column value to 0\r\n \t\t\tif (i==0 || j==0) \r\n \t {\r\n \t\t\t\tmatrixTable[i][j] = 0; \r\n \t }\r\n \r\n \t\t\t//If current row number is greater than current weight number\r\n \t\t\telse if (items[i-1].weight <= j) \r\n \t\t\t{\r\n \t\t\t\t//Compare the top value with top value plus value(use weight as the value to go left)result\r\n \t\t\t\t//and use the greatest value for the current one.\r\n \t\t\t\tmatrixTable[i][j] = Math.max(items[i-1].profit + matrixTable[i-1][j-items[i-1].weight], matrixTable[i-1][j]); \r\n \t\t\t}\r\n \t\t\t//If row number is less than current weight number just use the top value\r\n \t\t\telse \r\n \t\t\t{ \t \r\n \t\t\t\tmatrixTable[i][j] = matrixTable[i-1][j];\r\n \t\t\t}\r\n \t\t} \t\r\n \t} \r\n \t\r\n\t\tint totalProfit = matrixTable[n][capacity]; \t\t\r\n\t\tint temp = matrixTable[n][capacity];\r\n\t\tint [] itemInKnapsack = new int [n];\r\n\t\t\r\n\t\t//solving which item is in the knapsack\r\n for (int i = n; i > 0 && temp > 0; i--) { \r\n \r\n \r\n \tif (temp == matrixTable[i - 1][capacity]) \r\n \t{\r\n continue;\r\n \t}\r\n \t//if the top value is different than it is include in the knapsack\r\n else \r\n { \r\n itemInKnapsack[i-1] = items[i-1].index; //Save item number\r\n temp = temp - items[i - 1].profit; \r\n capacity = capacity - items[i - 1].weight; \r\n } \r\n } \r\n \r\n printResult(itemInKnapsack, totalProfit, 2); //Call print result\r\n }",
"private boolean[][] makeSet(int[] sol, int n) {\n boolean[][] ret = new boolean[n][universalSetSize];\n int r = 0;\n for (int i = 0; i < n; i++) { // Row\n int row = sol[i];\n System.arraycopy(input[row], 0, ret[r], 0, input[i].length);\n r++;\n }\n return ret;\n }",
"public void mo3743a(LinearSystem eVar) {\n boolean z;\n boolean z2;\n boolean z3;\n boolean z4;\n int i;\n int i2;\n boolean z5;\n int i3;\n int i4;\n SolverVariable hVar;\n boolean z6;\n SolverVariable hVar2;\n SolverVariable hVar3;\n boolean z7;\n SolverVariable hVar4;\n SolverVariable hVar5;\n ConstraintWidget fVar;\n boolean z8;\n LinearSystem eVar2;\n SolverVariable hVar6;\n ConstraintWidget fVar2;\n int i5;\n boolean z9;\n boolean z10;\n SolverVariable a = eVar.mo3927a(this.f1490s);\n SolverVariable a2 = eVar.mo3927a(this.f1492u);\n SolverVariable a3 = eVar.mo3927a(this.f1491t);\n SolverVariable a4 = eVar.mo3927a(this.f1493v);\n SolverVariable a5 = eVar.mo3927a(this.f1494w);\n ConstraintWidget fVar3 = this.f1429D;\n if (fVar3 != null) {\n z4 = fVar3 != null && fVar3.f1428C[0] == EnumC0282a.WRAP_CONTENT;\n ConstraintWidget fVar4 = this.f1429D;\n boolean z11 = fVar4 != null && fVar4.f1428C[1] == EnumC0282a.WRAP_CONTENT;\n if (mo3742a(0)) {\n ((ConstraintWidgetContainer) this.f1429D).mo3854a(this, 0);\n z9 = true;\n } else {\n z9 = mo3774I();\n }\n if (mo3742a(1)) {\n ((ConstraintWidgetContainer) this.f1429D).mo3854a(this, 1);\n z10 = true;\n } else {\n z10 = mo3775J();\n }\n if (z4 && this.f1470as != 8 && this.f1490s.f1416c == null && this.f1492u.f1416c == null) {\n eVar.mo3935a(eVar.mo3927a(this.f1429D.f1492u), a2, 0, 1);\n }\n if (z11 && this.f1470as != 8 && this.f1491t.f1416c == null && this.f1493v.f1416c == null && this.f1494w == null) {\n eVar.mo3935a(eVar.mo3927a(this.f1429D.f1493v), a4, 0, 1);\n }\n z3 = z11;\n z2 = z9;\n z = z10;\n } else {\n z4 = false;\n z3 = false;\n z2 = false;\n z = false;\n }\n int i6 = this.f1430E;\n int i7 = this.f1441P;\n if (i6 < i7) {\n i6 = i7;\n }\n int i8 = this.f1431F;\n int i9 = this.f1442Q;\n if (i8 < i9) {\n i8 = i9;\n }\n boolean z12 = this.f1428C[0] != EnumC0282a.MATCH_CONSTRAINT;\n boolean z13 = this.f1428C[1] != EnumC0282a.MATCH_CONSTRAINT;\n this.f1487p = this.f1433H;\n float f = this.f1432G;\n this.f1488q = f;\n int i10 = this.f1476e;\n int i11 = this.f1477f;\n if (f <= 0.0f || this.f1470as == 8) {\n hVar = a5;\n i4 = i10;\n i2 = i6;\n i = i8;\n i3 = i11;\n z5 = false;\n } else {\n hVar = a5;\n if (this.f1428C[0] == EnumC0282a.MATCH_CONSTRAINT && i10 == 0) {\n i10 = 3;\n }\n if (this.f1428C[1] == EnumC0282a.MATCH_CONSTRAINT && i11 == 0) {\n i11 = 3;\n }\n if (this.f1428C[0] == EnumC0282a.MATCH_CONSTRAINT && this.f1428C[1] == EnumC0282a.MATCH_CONSTRAINT && i10 == 3 && i11 == 3) {\n mo3789a(z4, z3, z12, z13);\n } else if (this.f1428C[0] == EnumC0282a.MATCH_CONSTRAINT && i10 == 3) {\n this.f1487p = 0;\n int i12 = (int) (this.f1488q * ((float) this.f1431F));\n if (this.f1428C[1] != EnumC0282a.MATCH_CONSTRAINT) {\n i2 = i12;\n i = i8;\n i3 = i11;\n i4 = 4;\n z5 = false;\n } else {\n i2 = i12;\n i4 = i10;\n i = i8;\n i3 = i11;\n z5 = true;\n }\n } else if (this.f1428C[1] == EnumC0282a.MATCH_CONSTRAINT && i11 == 3) {\n this.f1487p = 1;\n if (this.f1433H == -1) {\n this.f1488q = 1.0f / this.f1488q;\n }\n int i13 = (int) (this.f1488q * ((float) this.f1430E));\n if (this.f1428C[0] != EnumC0282a.MATCH_CONSTRAINT) {\n i = i13;\n i4 = i10;\n i2 = i6;\n i3 = 4;\n z5 = false;\n } else {\n i = i13;\n i4 = i10;\n i2 = i6;\n i3 = i11;\n z5 = true;\n }\n }\n i4 = i10;\n i2 = i6;\n i = i8;\n i3 = i11;\n z5 = true;\n }\n int[] iArr = this.f1478g;\n iArr[0] = i4;\n iArr[1] = i3;\n if (z5) {\n int i14 = this.f1487p;\n if (i14 != 0) {\n }\n z6 = true;\n boolean z14 = this.f1428C[0] != EnumC0282a.WRAP_CONTENT && (this instanceof ConstraintWidgetContainer);\n boolean z15 = !this.f1497z.mo3764j();\n if (this.f1451a == 2) {\n ConstraintWidget fVar5 = this.f1429D;\n SolverVariable a6 = fVar5 != null ? eVar.mo3927a(fVar5.f1492u) : null;\n ConstraintWidget fVar6 = this.f1429D;\n z7 = z3;\n hVar3 = hVar;\n hVar5 = a4;\n hVar2 = a3;\n hVar4 = a2;\n m1247a(eVar, z4, fVar6 != null ? eVar.mo3927a(fVar6.f1490s) : null, a6, this.f1428C[0], z14, this.f1490s, this.f1492u, this.f1434I, i2, this.f1441P, this.f1460ai[0], this.f1443S, z6, z2, i4, this.f1479h, this.f1480i, this.f1481j, z15);\n fVar = this;\n } else {\n hVar2 = a3;\n hVar4 = a2;\n z7 = z3;\n hVar3 = hVar;\n hVar5 = a4;\n fVar = this;\n }\n if (fVar.f1473b == 2) {\n boolean z16 = fVar.f1428C[1] == EnumC0282a.WRAP_CONTENT && (fVar instanceof ConstraintWidgetContainer);\n boolean z17 = z5 && ((i5 = fVar.f1487p) == 1 || i5 == -1);\n if (fVar.f1440O <= 0) {\n hVar6 = hVar2;\n eVar2 = eVar;\n } else if (fVar.f1494w.mo3751a().f1561i == 1) {\n eVar2 = eVar;\n fVar.f1494w.mo3751a().mo3877a(eVar2);\n hVar6 = hVar2;\n } else {\n eVar2 = eVar;\n hVar6 = hVar2;\n eVar2.mo3943c(hVar3, hVar6, mo3767B(), 6);\n if (fVar.f1494w.f1416c != null) {\n eVar2.mo3943c(hVar3, eVar2.mo3927a(fVar.f1494w.f1416c), 0, 6);\n z8 = false;\n ConstraintWidget fVar7 = fVar.f1429D;\n SolverVariable a7 = fVar7 == null ? eVar2.mo3927a(fVar7.f1493v) : null;\n ConstraintWidget fVar8 = fVar.f1429D;\n m1247a(eVar, z7, fVar8 == null ? eVar2.mo3927a(fVar8.f1491t) : null, a7, fVar.f1428C[1], z16, fVar.f1491t, fVar.f1493v, fVar.f1435J, i, fVar.f1442Q, fVar.f1460ai[1], fVar.f1444T, z17, z, i3, fVar.f1482k, fVar.f1483l, fVar.f1484m, z8);\n if (!z5) {\n fVar2 = this;\n if (fVar2.f1487p == 1) {\n eVar.mo3936a(hVar5, hVar6, hVar4, a, fVar2.f1488q, 6);\n } else {\n eVar.mo3936a(hVar4, a, hVar5, hVar6, fVar2.f1488q, 6);\n }\n } else {\n fVar2 = this;\n }\n if (!fVar2.f1497z.mo3764j()) {\n eVar.mo3928a(fVar2, fVar2.f1497z.mo3761g().mo3757c(), (float) Math.toRadians((double) (fVar2.f1461aj + 90.0f)), fVar2.f1497z.mo3759e());\n return;\n }\n return;\n }\n }\n z8 = z15;\n ConstraintWidget fVar72 = fVar.f1429D;\n if (fVar72 == null) {\n }\n ConstraintWidget fVar82 = fVar.f1429D;\n m1247a(eVar, z7, fVar82 == null ? eVar2.mo3927a(fVar82.f1491t) : null, a7, fVar.f1428C[1], z16, fVar.f1491t, fVar.f1493v, fVar.f1435J, i, fVar.f1442Q, fVar.f1460ai[1], fVar.f1444T, z17, z, i3, fVar.f1482k, fVar.f1483l, fVar.f1484m, z8);\n if (!z5) {\n }\n if (!fVar2.f1497z.mo3764j()) {\n }\n } else {\n return;\n }\n }\n z6 = false;\n if (this.f1428C[0] != EnumC0282a.WRAP_CONTENT) {\n }\n boolean z152 = !this.f1497z.mo3764j();\n if (this.f1451a == 2) {\n }\n if (fVar.f1473b == 2) {\n }\n }",
"public Board(int n){\n attackLeftDiag = new boolean[2*n - 1];\n attackRightDiag = new boolean[2*n - 1];\n attackSide = new boolean[n];\n \n sizeOfBoard = n;\n numberOfQueensPlaced = 0;\n \n rowUsedByColNumber = new int[n];\n validConfigOfQueens = new ArrayList<String[]>();\n QueenInRow = generatePositions();\n }",
"public void initConstraints() {\n\n\t\tfor (int i = 0; i < Sudoku.ROWS; i++) {\n\t\t\tfor (int j = 0; j < Sudoku.COLUMNS; j++) {\n\t\t\t\t// set row constraints\n\t\t\t\tfor (int row = 0; row < Sudoku.ROWS; row++) {\n\t\t\t\t\tif (row != j)\n\t\t\t\t\t\tSudoku.grid[i][j].constraints.add(new Constraint(i, row));\n\t\t\t\t}\n\t\t\t\t// set column constraints\n\t\t\t\tfor (int col = 0; col < Sudoku.COLUMNS; ++col) {\n\t\t\t\t\tif (col != i)\n\t\t\t\t\t\tSudoku.grid[i][j].constraints.add(new Constraint(col, j));\n\t\t\t\t}\n\n\t\t\t\t// set box constraints\n\t\t\t\tint top_row = (i/3) * 3;\n\t\t\t\tint bottom_row = top_row + 3;\n\t\t\t\tint left_col = (j/3) * 3;\n\t\t\t\tint right_col = left_col + 3;\n\t\t\t\tfor (int row_unit = top_row; row_unit < bottom_row; row_unit++) {\n\t\t\t\t\tfor (int col_unit = left_col; col_unit < right_col; col_unit++) {\n\t\t\t\t\t\tif (row_unit != i && col_unit != j) {\n\t\t\t\t\t\t\tSudoku.grid[i][j].constraints.add(new Constraint(row_unit, col_unit));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<String[]> solveNQueens(int n) {\n ArrayList<String[]> res= new ArrayList<String[]>();\n int[] board=new int[n];\n dfs(res,board,n,0);\n return res;\n }",
"private static int[] computePermutations(int n) {\n final int[] indexes = new int[n];\n for (int i = 0; i < n; i++) {\n indexes[i] = i;\n //indexes[i] = i + 1;\n }\n\n final int total = computePermutations(indexes, 0, n);\n System.out.println(\"# \" + np + \"; total = \" + total);\n\n return indexes;\n }",
"private void addBinders(int n, Binder[] binder, List<Condition> conds)\n {\n List<Binder> binder0 = new ArrayList<Binder>(n);\n for (int i=0; i<n; i++)\n binder0.add(transform(binder[i]));\n for (Condition c : conds)\n {\n Expression ce = n == 0 ? c.exp : new LetExp(binder0, c.exp);\n conditions.add(c.clone(ce));\n }\n }",
"public ArrayList<String[]> solveNQueens(int n) {\n int[] board=new int[n];\n res=new ArrayList<String[]>();\n dfs(board,0);\n return res;\n }",
"public Solver() {\n\t\t// TODO: Initialize the powersOf2 array with the first 16 powers of 2.\n\t}",
"public double[][] cofactors(double[][] X, int n) {\n\t\tdouble[][] Y = new double[n][n];\n\t\tif (n == 1)\n\t\t\tY[0][0] = X[0][0];\n\t\telse {\n\t\t\tdouble cof;\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tdouble[][] S = new double[n - 1][n - 1];\n\t\t\t\t\tint row_no = 0, col_no = 0;\n\t\t\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\t\t\tif (k != i) {\n\t\t\t\t\t\t\tfor (int l = 0; l < n; l++)\n\t\t\t\t\t\t\t\tif (l != j) {\n\t\t\t\t\t\t\t\t\tS[row_no][col_no] = X[k][l];\n\t\t\t\t\t\t\t\t\tcol_no++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trow_no++;\n\t\t\t\t\t\t\tcol_no = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\tcof = Math.pow(-1, i + j) * determinant(S, n - 1);\n\t\t\t\t\tY[i][j] = cof;\n\t\t\t\t}\n\t\t}\n\t\treturn Y;\n\t}",
"public static int[][] getN(int n) {\n\t\t\tint a=0;\n\t\t\tint i=1;\n\t\t\tint b=n-1;\n\t\t\tint[][] arr=new int[n][n];\n\t\t\tfoo(arr,a,b,i,n);\n\t\t\treturn arr;\n\t\t}",
"Solucao(int n_timeslots,int n_salas,int n_professores,int n_disciplinas){\r\n \r\n disciplinaTimeSlot = new Hashtable <Integer,DisciplinaTimeSlotID>();\r\n //tamanho da matriz\r\n this.n_timeslots = n_timeslots; \r\n this.n_salas = n_salas;\r\n this.n_professores = n_professores;\r\n this.n_disciplinas = n_disciplinas;\r\n \r\n //matrizes\r\n salas = new byte[n_salas][n_timeslots]; //sala - horario\r\n professores = new byte[n_professores][n_timeslots]; //professores - timeslot\r\n disciplinas = new byte[n_disciplinas][n_timeslots]; //disciplinas - timeslot\r\n \r\n initSolucao();\r\n \r\n solucao = new Object[5];\r\n solucao[0] = salas;\r\n solucao[1] = professores;\r\n solucao[2] = disciplinas;\r\n \r\n \r\n }",
"public static int[][] hgAlgorithm(double[][] array, String sumType) {\r\n\t\tdouble[][] cost = copyOf(array); // Create the cost matrix\r\n\r\n\t\tif (sumType.equalsIgnoreCase(\"max\")) // Then array is weight array. Must\r\n\t\t\t\t\t\t\t\t\t\t\t\t// change to cost.\r\n\t\t{\r\n\t\t\tdouble maxWeight = findLargest(cost);\r\n\t\t\tfor (int i = 0; i < cost.length; i++) // Generate cost by\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// subtracting.\r\n\t\t\t{\r\n\t\t\t\tfor (int j = 0; j < cost[i].length; j++) {\r\n\t\t\t\t\tcost[i][j] = (maxWeight - cost[i][j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble maxCost = findLargest(cost); // Find largest cost matrix element\r\n\t\t\t\t\t\t\t\t\t\t\t// (needed for step 6).\r\n\r\n\t\tint[][] mask = new int[cost.length][cost[0].length]; // The mask array.\r\n\t\tint[] rowCover = new int[cost.length]; // The row covering vector.\r\n\t\tint[] colCover = new int[cost[0].length]; // The column covering vector.\r\n\t\tint[] zero_RC = new int[2]; // Position of last zero from Step 4.\r\n\t\tint step = 1;\r\n\t\tboolean done = false;\r\n\t\twhile (done == false) // main execution loop\r\n\t\t{\r\n\t\t\tswitch (step) {\r\n\t\t\tcase 1:\r\n\t\t\t\tstep = hg_step1(step, cost);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tstep = hg_step2(step, cost, mask, rowCover, colCover);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tstep = hg_step3(step, mask, colCover);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tstep = hg_step4(step, cost, mask, rowCover, colCover, zero_RC);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tstep = hg_step5(step, mask, rowCover, colCover, zero_RC);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\tstep = hg_step6(step, cost, rowCover, colCover, maxCost);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\tdone = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}// end while\r\n\r\n\t\tint[][] assignment = new int[array.length][2]; // Create the returned\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// array.\r\n\t\tfor (int i = 0; i < mask.length; i++) {\r\n\t\t\tfor (int j = 0; j < mask[i].length; j++) {\r\n\t\t\t\tif (mask[i][j] == 1) {\r\n\t\t\t\t\tassignment[i][0] = i;\r\n\t\t\t\t\tassignment[i][1] = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If you want to return the min or max sum, in your own main method\r\n\t\t// instead of the assignment array, then use the following code:\r\n\t\t/*\r\n\t\t * double sum = 0; for (int i=0; i<assignment.length; i++) { sum = sum +\r\n\t\t * array[assignment[i][0]][assignment[i][1]]; } return sum;\r\n\t\t */\r\n\t\t// Of course you must also change the header of the method to:\r\n\t\t// public static double hgAlgorithm (double[][] array, String sumType)\r\n\r\n\t\treturn assignment;\r\n\t}",
"public void SelectCAN(TableVar Variables) {\r\n float perf;\r\n int i, j, k, best, posicion[];\r\n\r\n posicion = new int[long_poblacion];\r\n for (i=0;i<long_poblacion;i++) {\r\n posicion[i] = 0;\r\n }\r\n \r\n // Compute the ranking of each individual of the population: element 0 is the better\r\n for (i=0;i<long_poblacion;i++) {\r\n // Find better individual of the rest\r\n best=-1; \r\n perf=0;\r\n for (j=0;j<long_poblacion;j++) {\r\n if (posicion[j]==0 && (best==-1 || Utils.BETTER(poblac.getIndivFitness(j), perf))) {\r\n // If the individual is better\r\n perf = poblac.getIndivFitness(j);\r\n best = j;\r\n }\r\n }\r\n // Mark the individual with the ranking\r\n posicion[best] = i; \r\n }\r\n \r\n // The intermediary population is the ordered copy\r\n for (i=0;i<long_poblacion;i++) {\r\n k = posicion[i];\r\n for (j=0;j<Variables.getNVars();j++)\r\n Inter.setCromElem(k,j, poblac.getCromElem(i,j));\r\n Inter.setIndivFitness(k, poblac.getIndivFitness(i));\r\n Inter.setIndivEvaluated(k,true);\r\n }\r\n \r\n }",
"private void intervalsToPTreeCredalSet(PotentialInterval intervalSet,ProbabilityTree probTree,\n Configuration conf,int nvar){\n Vector vars=intervalSet.getVariables();\n \n if(nvar<vars.size()){ // make the top part of the tree with variables in X_I\n FiniteStates currentVar=(FiniteStates)vars.elementAt(nvar);\n int ncases=currentVar.getNumStates();\n probTree.assignVar(currentVar);\n conf.insert(currentVar, 0);\n for(int i=0;i<ncases;i++){\n conf.putValue(currentVar,i);\n intervalsToPTreeCredalSet(intervalSet,probTree.getChild(i),conf,nvar+1);\n }\n } // end if\n else{\n FiniteStates conditionalVar=(FiniteStates)(intervalSet.getVariables().elementAt(0));\n PotentialInterval intervalSetRestricted = (PotentialInterval)intervalSet.restrictVariable(conf);\n Vector extremePoints=intervalSetRestricted.getListExtrems();\n int nExtrems=extremePoints.size();\n FiniteStates transp=appendTransparentVariable(nExtrems);\n int ncases=conditionalVar.getNumStates();\n \n probTree.assignVar(transp);\n for(int i=0;i<nExtrems;i++){\n double array[]=(double [])(extremePoints.elementAt(i));\n probTree.getChild(i).assignVar(conditionalVar);\n for(int j=0;j<ncases;j++){\n probTree.getChild(i).getChild(j).assignProb(array[j]);\n }\n }\n } // end else\n }",
"@Override\n public void addEnviroment(String clasname, String parvarn1, Integer parvarn2, Integer unit) throws ClassNotFoundException, SecurityException,\n NoSuchMethodException, IllegalArgumentException,\n InstantiationException, IllegalAccessException,\n InvocationTargetException {\n\n Constraint c = converConstrain(clasname,parvarn1,parvarn2);\n AmbientC varsConst = new AmbientC(); //Campo que implementa la clase AmbienC para transformar los constraint\n varsConst.addAmbientCon(parvarn1, parvarn2,unit,c); //\n super.getVarsEnviromen().add(varsConst);\n\n\n }",
"public Percolation(int n) {\n if (n <= 0) {\n throw new IllegalArgumentException(\"Percolation grid size : \" + n + \" is <= 0\");\n }\n\n size = n;\n gridNumber = size * size;\n gridGraphVirtualTopBottom = new WeightedQuickUnionUF(gridNumber + 2); // 0 to gridNumber+1\n gridGraphVirtualTop = new WeightedQuickUnionUF(gridNumber + 1); // 0 to gridNumber \n virtualTopGridIndex = gridNumber;\n virtualBottomGridIndex = gridNumber + 1;\n gridState = new boolean[size][size];\n }",
"public Percolation(int n) {\n if (n < 1) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n grid = new boolean[n][n];\n openNum = 0;\n uf = new WeightedQuickUnionUF(n * n + 2);\n uTopBottem();\n }",
"private void linbcg( int n, double b[], double x[], int itol, double tol, int itmax,\n double sa[], int ija[] ) {\n // FIXME check itol and those numbers that start from 1 in here\n double ak, akden, bk, bkden = 0, bknum, bnrm = 0, dxnrm, xnrm, zm1nrm, znrm = 0;\n\n double[] p = new double[n];\n double[] pp = new double[n];\n double[] r = new double[n];\n double[] rr = new double[n];\n double[] z = new double[n];\n double[] zz = new double[n];\n\n int iter = 0;\n double err = 0;\n atimes(n, x, r, false, sa, ija);\n for( int j = 0; j < n; j++ ) {\n r[j] = b[j] - r[j];\n rr[j] = r[j];\n }\n if (itol == 1) {\n bnrm = snrm(n, b, itol);\n asolve(n, r, z, sa);\n } else if (itol == 2) {\n asolve(n, b, z, sa);\n bnrm = snrm(n, z, itol);\n asolve(n, r, z, sa);\n } else if (itol == 3 || itol == 4) {\n asolve(n, b, z, sa);\n bnrm = snrm(n, z, itol);\n asolve(n, r, z, sa);\n znrm = snrm(n, z, itol);\n } else\n System.out.println(\"illegal itol in linbcg\"); //$NON-NLS-1$\n\n while( iter <= itmax ) {\n ++iter;\n asolve(n, rr, zz, sa);\n bknum = 0.0;\n for( int j = 0; j < n; j++ )\n bknum += z[j] * rr[j];\n if (iter == 1) {\n for( int j = 0; j < n; j++ ) {\n p[j] = z[j];\n pp[j] = zz[j];\n }\n } else {\n bk = bknum / bkden;\n for( int j = 0; j < n; j++ ) {\n p[j] = bk * p[j] + z[j];\n pp[j] = bk * pp[j] + zz[j];\n }\n }\n bkden = bknum;\n atimes(n, p, z, false, sa, ija);\n akden = 0.0;\n for( int j = 0; j < n; j++ )\n akden += z[j] * pp[j];\n ak = bknum / akden;\n atimes(n, pp, zz, true, sa, ija);\n for( int j = 0; j < n; j++ ) {\n x[j] += ak * p[j];\n r[j] -= ak * z[j];\n rr[j] -= ak * zz[j];\n }\n asolve(n, r, z, sa);\n if (itol == 1)\n err = snrm(n, r, itol) / bnrm;\n else if (itol == 2)\n err = snrm(n, z, itol) / bnrm;\n else if (itol == 3 || itol == 4) {\n zm1nrm = znrm;\n znrm = snrm(n, z, itol);\n if (Math.abs(zm1nrm - znrm) > EPS * znrm) {\n dxnrm = Math.abs(ak) * snrm(n, p, itol);\n err = znrm / Math.abs(zm1nrm - znrm) * dxnrm;\n } else {\n err = znrm / bnrm;\n continue;\n }\n xnrm = snrm(n, x, itol);\n if (err <= 0.5 * xnrm)\n err /= xnrm;\n else {\n err = znrm / bnrm;\n continue;\n }\n }\n if (err <= tol)\n break;\n }\n }",
"public Constraint(int i, int j, int constraintValue, Direction direction, int numberOfRelatedVar) {\n super(i, j);\n this.constraintValue = constraintValue;\n this.direction = direction;\n this.numberOfRelatedVar = numberOfRelatedVar;\n already_sum = 0;\n upperBound = upperBound_calculate(constraintValue, numberOfRelatedVar);\n lowerBound = lowerBound_calculate(constraintValue, numberOfRelatedVar);\n }",
"public void fillHeuristicArrayTD(){\n int[] temp;\n //every var gets a score based on how many clauses it satisfies\n for(int i = 0; i< heuristicArrayTD.length; i++){\n temp=variables.clone();\n temp[i]=0;\n heuristicArrayTD[i]=testAstar(temp);\n temp[i]=1;\n heuristicArrayTD[i]+=testAstar(temp);\n }\n }",
"@Override\n\tpublic Constraint converConstrain(String classname, String parvarn1, String parvarn2) throws ClassNotFoundException,\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\n\t\t\tInstantiationException, IllegalAccessException,\n\t\t\tInvocationTargetException {\n\n\t\tIntVar varConverX = new IntVar(); IntVar varConverY = new IntVar(); varConverX.id = parvarn1;varConverY.id = parvarn2; \n\t\tClass<?> clasCon = Class.forName(classname);\n\t\tConstructor<?> constru2 = clasCon.getDeclaredConstructor(new Class<?>[] {JaCoP.core.IntVar.class,JaCoP.core.IntVar.class});\n\t\tConstraint c = (Constraint) constru2.newInstance(varConverX,varConverY);\n\t\treturn c;\n\t}",
"public static void experiment(String name) {\n \tString probName = \"NQueensProblem\";\n \tList<OptimizationAlgorithm> algs = new ArrayList<>();\n int[] ranges = new int[N];\n Random random = new Random(N);\n for (int i = 0; i < N; i++) {\n \tranges[i] = random.nextInt();\n }\n NQueensFitnessFunction ef = new NQueensFitnessFunction();\n Distribution odd = new DiscretePermutationDistribution(N);\n NeighborFunction nf = new SwapNeighbor();\n MutationFunction mf = new SwapMutation();\n CrossoverFunction cf = new SingleCrossOver();\n Distribution df = new DiscreteDependencyTree(.1); \n \n HillClimbingProblem hcp = new GenericHillClimbingProblem(ef, odd, nf);\n GeneticAlgorithmProblem gap = new GenericGeneticAlgorithmProblem(ef, odd, mf, cf);\n ProbabilisticOptimizationProblem pop = new GenericProbabilisticOptimizationProblem(ef, odd, df);\n \n RandomizedHillClimbing rhc = new RandomizedHillClimbing(hcp); \n SimulatedAnnealing sa = new SimulatedAnnealing(1E1, .1, hcp);\n StandardGeneticAlgorithm ga = new StandardGeneticAlgorithm(200, 0, 10, gap);\n MIMIC mimic = new MIMIC(200, 10, pop);\n \n algs.add(rhc);\n algs.add(sa);\n algs.add(ga);\n algs.add(mimic);\n Experiment newExp = new Experiment();\n \n newExp.experiments(algs, ef, name);\n \n // test temperature for SA\n String paramName = \"Temperature\";\n String algName = \"SA\";\n List<Double> params2 = new ArrayList<>();\n List<OptimizationAlgorithm> algsTest = new ArrayList<>();\n for (double i = 1.0; i < 100.5; i+=1.0){\n \tparams2.add(i);\n \tsa = new SimulatedAnnealing(i, .1, hcp);\n \talgsTest.add(sa);\n }\n newExp.optParams(algsTest, ef, paramName, null, params2, algName, probName);\n \n // test cooling rate for SA\n paramName = \"CoolingRate\";\n params2 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (double i = 0.01; i < 0.51; i+=0.005){\n \tparams2.add(i);\n \tsa = new SimulatedAnnealing(1E1, i, hcp);\n \talgsTest.add(sa);\n }\n newExp.optParams(algsTest, ef, paramName, null, params2, algName, probName);\n \n // test populationSize for GA\n paramName = \"populationSize\";\n algName = \"GA\";\n List<Integer> params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 10; i < 1001; i+=10){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(i, 0, 10, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test toMate for GA\n paramName = \"toMate\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 0; i < 100; i+=1){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(200, i, 10, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test toMutate for GA\n paramName = \"toMutate\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 10; i < 1001; i+=10){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(200, 0, i, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test samples for MIMIC\n paramName = \"samples\";\n algName = \"MIMIC\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 100; i < 1101; i += 10){\n \tparams1.add(i);\n \tmimic = new MIMIC(i, 10, pop);\n \talgsTest.add(mimic);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test tokeep for MIMIC\n paramName = \"tokeeep\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 1; i < 101; i+=1){\n \tparams1.add(i);\n \tmimic = new MIMIC(200, i, pop);\n \talgsTest.add(mimic);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n \n // test different algorithms with various NQueensProblems\n // set up algorithms\n algs = new ArrayList<>();\n ga = new StandardGeneticAlgorithm(150, 98, 70, gap);\n algs.add(rhc);\n algs.add(sa);\n algs.add(ga);\n algs.add(mimic);\n // set up different efs\n List<EvaluationFunction> efs = new ArrayList<>();\n for (int i = 0; i < 50; i++){\n \tef = new NQueensFitnessFunction();\n \tefs.add(ef);\n }\n newExp.voteBest(algs, efs, 2000, probName);\n \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 void initial()\n\t{ \n\t\tint i,j; \n\t\tint tempValue=0;\n\t\tfor(i=0; i<n; i++) \n\t\t{ \n\t\t\tfor(j=0; j<n; j++)\n\t\t\t {\n\t\t\t\tif(j==0)\n\t\t\t\t{\n\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(tempValue> cost[i][j])\n\t\t\t\t\t{\n\t\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tfor (j=0; j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j]- tempValue;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tfor(j=0;j<n;j++)\n\t\t{\n\t\t\tfor (i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tif(i==0)\n\t\t\t\t{\n\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t if(tempValue> cost[i][j])\n\t\t\t\t {\n\t\t\t\t \ttempValue = cost[i][j];\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j] - tempValue;\n\t\t\t}\n\t\t}\t\n\t}",
"public static void model1() {\n try {\n IloCplex cplex = new IloCplex();\n \n //variables\n IloNumVar x = cplex.numVar(0, Double.MAX_VALUE, \"x\"); //x >= 0\n IloNumVar y = cplex.numVar(0, Double.MAX_VALUE, \"y\"); //y >= 0\n \n //expressions\n IloLinearNumExpr objective = cplex.linearNumExpr();\n objective.addTerm(0.12, x);\n objective.addTerm(0.15, y);\n \n //define objective\n cplex.addMinimize(objective);\n \n //define constraints\n cplex.addGe(cplex.sum(cplex.prod(60, x), cplex.prod(60, y)), 300);\n cplex.addGe(cplex.sum(cplex.prod(12, x), cplex.prod(6, y)), 36);\n cplex.addGe(cplex.sum(cplex.prod(10, x), cplex.prod(30, y)), 90);\n \n //solve\n if (cplex.solve()) {\n System.out.println(\"Obj = \" + cplex.getObjValue());\n System.out.println(\"Obj = \" + cplex.getValue(objective));\n System.out.println(\"x = \" + cplex.getValue(x));\n System.out.println(\"y = \" + cplex.getValue(y));\n } else {\n System.out.println(\"Solution not found.\");\n }\n } catch (IloException ex) {\n ex.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tint[][] costs = new int[n][3];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tcosts[i][j] = scn.nextInt();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(minCost(costs));\n\t}",
"Variables createVariables();",
"public Percolation(int n) {\n if (n <= 0) {\n throw new IllegalArgumentException(\"'n' cannot be less than 1\");\n }\n\n // grid\n // 0 --> blocked\n // 1 --> open\n // every index will be initialized with 0 by default\n this.grid = new int[n][n];\n this.openSitesCount = 0;\n this.gridSize = n;\n this.virtualTopSiteIndex = (gridSize * gridSize);\n this.virtualBottomSiteIndex = (gridSize * gridSize) + 1;\n // add 1 to accommodate virtual top site in union find data structure\n this.wquf = new WeightedQuickUnionUF((gridSize * gridSize) + 1);\n // add 2 to accommodate virtual sites in union find data structure\n this.wquf2 = new WeightedQuickUnionUF((gridSize * gridSize) + 2);\n }",
"protected void initVar2Factor(int[] nodes)\n {\n for(int x=0, N=nodes.length; x < N; x++)\n {\n int n = nodes[x];\n VariableNode vn = _fg.getVarNode(n);\n ProbTable pt = vn.getProbs();\n \n List messages = _fg.getAdjacentMessages(n);\n for(int m=0, M=messages.size(); m < M; m++)\n {\n EdgeMessage em = (EdgeMessage) messages.get(m);\n em.v2f(pt);\n }\n }\n }",
"public static List<String> getStrncatConstraints(String dest, String src, String n, String result){\n\t\tList<String> constraints = new ArrayList<String>();\n\t\t//String copyLengthAssertion = \"(assert (= copyLength (+ (length dest) (ite (> (length src) n) (length src) n))))\";\n\t\tString copyLengthAssertion = \"(assert(= (length \"+ result + \") \" + \"(+ (length \" + dest +\") \"+ n + \")))\";\n\t\tString assertion = \"(assert \" + \"(forall ((index Int))\" + \"(ite \"\n\t\t\t\t+ \"(and\" + \"(>= index 0)\" + \"(< index (length \"\n\t\t\t\t+ dest\n\t\t\t\t+ \")))\"\n\t\t\t\t+ \"(= (charOf \"\n\t\t\t\t+ result\n\t\t\t\t+ \" index) (charOf \"\n\t\t\t\t+ dest\n\t\t\t\t+ \" index))\"\n\t\t\t\t+ \"(ite \"\n\t\t\t\t+ \"(and\"\n\t\t\t\t+ \"(>= index (length \"\n\t\t\t\t+ dest\n\t\t\t\t+ \"))\"\n\t\t\t\t+ \"(< index \"\n\t\t\t\t+ dest\n\t\t\t\t+ \"(length \" + result + \" )\" + \"))\"\n\t\t\t\t+ \"(= (charOf \"\n\t\t\t\t+ result\n\t\t\t\t+ \" index) (charOf \"\n\t\t\t\t+ src\n\t\t\t\t+ \" (- index (length \" + dest + \"))))\" + \"true))))\";\n\t\tString length2 = \"(assert (>= (length \" + dest + \") 0))\";\n\t\tString length3 = \"(assert (>= (length \" + result + \") 0))\";\n\t\tString length4 = \"(assert (>= (length \" + src + \") 0))\";\n\t\tconstraints.add(assertion);\n\t\tconstraints.add(length2);\n\t\tconstraints.add(length3);\n\t\tconstraints.add(length4);\n\t\tconstraints.add(copyLengthAssertion);\n\t\treturn constraints;\n\t}",
"public double[] genDiscreteDistribution(int n) {\n\t\tRandom generator = null;\n\t\tgenerator = new Random();\n\t\tdouble[] res = allocateVector(n);\n\t\tdo {\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = generator.nextDouble();\n\t\t\t}\n\t\t} while (sum(res) == 0);\n\t\tdivideAssign(res, sum(res));\n\t\treturn res;\n\t}",
"public abstract void build(Nation n) throws NotEnoughResourcesException;",
"public UnboundedKnapsack(int[] vol, int[] ben, int n, int V)\r\n {\r\n\r\n M = new int[n+1][V+1];\r\n objects = new int[n+1];\r\n Knapsack(vol, ben, n, V, this.M);\r\n ObjectsKnapsack(vol, this.M, n, V, this.objects);\r\n res = result(this.objects, vol, ben);\r\n }",
"@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }",
"public Percolation(int n) {\n if(n<=0) {\n throw new IllegalArgumentException();\n }\n size = n;\n numOpen = 0;\n // 0th position is unused in grid arrays, UF, UF2\n grid = new boolean[n+1][n+1];\n UF = new WeightedQuickUnionUF(n*n + 3);\n UF2 = new WeightedQuickUnionUF(n*n + 2);\n top = n*n+1;\n bottom = n*n+2;\n }",
"public static long[][] tabulation(int n, List<Long> c) {\n int type = c.size();\n int[] intC = new int[type];\n for (int i = 0; i < type; i++) {\n intC[i] = c.get(i).intValue();\n }\n\n long[][] table = new long[n + 1][type];\n for (int i = 0; i < n + 1; i++) {\n for (int j = 0; j < type; j++) {\n if (i == 0) {\n table[0][j] = 1; // only one way : not using coin\n } else {\n long excludeNewCoin = 0, includeNewCoin = 0;\n if (j != 0) {\n excludeNewCoin = table[i][j - 1];\n }\n if (i - intC[j] >= 0) {\n includeNewCoin = table[i - intC[j]][j];\n }\n table[i][j] = excludeNewCoin + includeNewCoin;\n }\n }\n }\n return table;\n }",
"private Binomial(int n) {\n N = n;\n }",
"public TicTacToe(int n) {\n board = new int[n][n];\n this.n = n;\n }"
] |
[
"0.655952",
"0.6025633",
"0.57334596",
"0.5702172",
"0.55039835",
"0.5481387",
"0.5468625",
"0.5440458",
"0.54297435",
"0.5380632",
"0.5368334",
"0.531703",
"0.53118837",
"0.5242405",
"0.5234234",
"0.52303123",
"0.51510113",
"0.51439154",
"0.5117949",
"0.50991327",
"0.50903976",
"0.5090395",
"0.5057081",
"0.50546676",
"0.50540984",
"0.5045897",
"0.5035257",
"0.4993401",
"0.4976948",
"0.49632493",
"0.4962179",
"0.49484622",
"0.49405032",
"0.49208924",
"0.49158803",
"0.49158803",
"0.49058604",
"0.4879653",
"0.48766387",
"0.48617223",
"0.4851796",
"0.48360348",
"0.48207617",
"0.48198682",
"0.47757253",
"0.47755566",
"0.47686163",
"0.4757017",
"0.47553092",
"0.47469985",
"0.4746664",
"0.4742259",
"0.47345504",
"0.47336468",
"0.47162718",
"0.47060964",
"0.4704442",
"0.47015086",
"0.4701438",
"0.4698488",
"0.46978876",
"0.46972516",
"0.4694089",
"0.46686468",
"0.46564054",
"0.46463716",
"0.4627085",
"0.4621169",
"0.46197927",
"0.46139026",
"0.46086955",
"0.46066904",
"0.45943356",
"0.4586233",
"0.4585906",
"0.45763135",
"0.45742637",
"0.45570278",
"0.45509875",
"0.4548472",
"0.4545695",
"0.45394164",
"0.45389548",
"0.45378244",
"0.45310086",
"0.4530976",
"0.45286828",
"0.45231956",
"0.4519905",
"0.4518288",
"0.4514783",
"0.45100462",
"0.45041972",
"0.45019737",
"0.44964924",
"0.44899592",
"0.44895253",
"0.44860286",
"0.44823468",
"0.4481194"
] |
0.83111364
|
0
|
Creates a Golomb ruler problem of size m. The variables can be accessed though the hook name "ticks" and "diffs".
|
@SuppressWarnings("Duplicates")
public static Solver makeGolombRuler(int m){
Solver solver = new Solver();
IntVar[] ticks = VariableFactory.enumeratedArray("a", m, 0, ((m < 31) ? (1 << (m + 1)) - 1 : 9999), solver);
solver.addHook("ticks", ticks);
solver.post(IntConstraintFactory.arithm(ticks[0], "=", 0));
for (int i = 0; i < m - 1; i++) {
solver.post(IntConstraintFactory.arithm(ticks[i + 1], ">", ticks[i]));
}
IntVar[] diffs = VariableFactory.enumeratedArray("d", (m * m - m) / 2, 0, ((m < 31) ? (1 << (m + 1)) - 1 : 9999), solver);
solver.addHook("diffs", diffs);
IntVar[][] m_diffs = new IntVar[m][m];
for (int k = 0, i = 0; i < m - 1; i++) {
for (int j = i + 1; j < m; j++, k++) {
// d[k] is m[j]-m[i] and must be at least sum of first j-i integers
// <cpru 04/03/12> it is worth adding a constraint instead of a view
solver.post(IntConstraintFactory.scalar(new IntVar[]{ticks[j], ticks[i]}, new int[]{1, -1}, diffs[k]));
solver.post(IntConstraintFactory.arithm(diffs[k], ">=", (j - i) * (j - i + 1) / 2));
solver.post(IntConstraintFactory.arithm(diffs[k], "-", ticks[m - 1], "<=", -((m - 1 - j + i) * (m - j + i)) / 2));
solver.post(IntConstraintFactory.arithm(diffs[k], "<=", ticks[m - 1], "-", ((m - 1 - j + i) * (m - j + i)) / 2));
m_diffs[i][j] = diffs[k];
}
}
solver.post(IntConstraintFactory.alldifferent(diffs, "BC"));
// break symetries
if (m > 2) {
solver.post(IntConstraintFactory.arithm(diffs[0], "<", diffs[diffs.length - 1]));
}
solver.setObjectives(ticks[m-1]);
return solver;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Millimeter createMillimeter();",
"MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }",
"@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tint length = cont.getLength();\n\t\tint start = cont.getStart();\n\t\tint stop = cont.getStop();\n\n\t\tg.drawString(String.valueOf(length)+\"bp\",(int)(this.getSize().getWidth()/2),15); // tekend de lengte in baseparen in het midden van de panel\n\t\tg.fillRect(5,40,(int)(this.getSize().getWidth()-10),5);\n\n\t\tint stepSize = calculateStepSize(length);\n\t\tint first = (start - (start % stepSize)) + stepSize - 1;\t// de waarde van first is gelijk aan de positie in de sequentie van de\n\t\t// eerste nucleotide waarboven de eerste ruler lijn getekend word\n\n\t\tfor (int j = first; j < stop; j+= stepSize){\n\n\n\t\t\tint pos = (int) DrawingTools.calculateLetterPosition(this.getWidth(), length,Double.valueOf(j-start)); //schaald de posities in sequentie naar de breedte van de panel\n\t\t\tg.drawLine(pos,40,pos,30);\t\t\t\t\t\t\t\t// draws line on the ruler\n\t\t\tg.drawString(String.valueOf(j + 1) , pos, 30);\t\t// draws the nucleotide position(in sequence) above the line\n\n\t\t}\n\n\t\tint alpha = 127; // 50% transparent/\n\t\tColor myColour = new Color(255, 0, 0, alpha);\n\t\tg.setColor(myColour);\n\n\t\tif (x < x2){\n\t\t\tg.fillRect(x,0,x2-x,getHeight()); //selectie rechthoek\n\t\t}\n\t\telse{\n\t\t\tg.fillRect(x2,0,x-x2,getHeight()); //inverse rechthoek.\n\t\t}\n\t}",
"private void molCalculator() {\n\t\tdouble finalMolRMultiplier = 100000000;\n\t\tint finalMolRIndex = 0;\n\t\tdouble finalMolPMultiplier = 100000000;\n\t\tint finalMolPIndex = 0;\n\t\tdouble finalMol = 0;\n\t\tint finalMolAmt = 0;\n\n\t\t/* Finds the limiting moles on the reactant side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\tif (reactantAmt[i] == 0) {\n\t\t\t\t\treactantTextAmt.get(i).setText(\"1\");\n\t\t\t\t\treactantAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\treactantTextAmt.get(i).setText(reactantAmt[i] + \"\");\n\t\t\t\tif (!(reactantMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = reactantMoles[i] / reactantAmt[i];\n\t\t\t\t\tif (finalMolRMultiplier > temp) {\n\t\t\t\t\t\tfinalMolRMultiplier = temp;\n\t\t\t\t\t\tfinalMolRIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Finds the limiting moles on the product side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\tif (productAmt[i] == 0) {\n\t\t\t\t\tproductTextAmt.get(i).setText(\"1\");\n\t\t\t\t\tproductAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\tproductTextAmt.get(i).setText(productAmt[i] + \"\");\n\t\t\t\tif (!(productMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = productMoles[i] / productAmt[i];\n\t\t\t\t\tif (finalMolPMultiplier > temp) {\n\t\t\t\t\t\tfinalMolPMultiplier = temp;\n\t\t\t\t\t\tfinalMolPIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Finds the final limiting moles\n\t\tif (finalMolRMultiplier > finalMolPMultiplier) {\n\t\t\tfinalMol = productMoles[finalMolPIndex];\n\t\t\tfinalMolAmt = productAmt[finalMolPIndex];\n\t\t} else {\n\t\t\tfinalMol = reactantMoles[finalMolRIndex];\n\t\t\tfinalMolAmt = reactantAmt[finalMolRIndex];\n\t\t}\n\n\t\t// Stores the final limiting moles of each reactant\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the reactant side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format((reactantAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolAmt = 1;\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format(reactantAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Stores the final limiting moles of each product\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the product side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format((productAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format(productAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void makeLongComps(JPanel[] subLong){\n\t\t\tsubLong[0] = new JPanel();\n\t\t\tsubLong[1] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[0], 0, h, longColors[5]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[2] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[1], 0, h, longColors[6]); \n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[3] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[2], 0, h, longColors[7]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[4] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[3], 0, h, longColors[8]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[5] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[4], 0, h, longColors[9]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\tsubLong[6] = new JPanel();\n\t\t}",
"public Difficulty(int xAxis, int yAxis, int numOfMines) {\r\n\t\tthis.xAxis = xAxis;\r\n\t\tthis.yAxis = yAxis;\r\n\t\tthis.numOfMines = numOfMines;\r\n\t}",
"public void _setTicks() {\n if (!Double.isNaN(tickIncrement)) {\n setTicksByIncr(tickIncrement);\n return;\n }\n double diff = Math.abs(max - min);\n if (!(diff > 0.)) {\n int tn = 2;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n ticks = new double[tn];\n int i = 0;\n if (nanW > 0) {\n ticks[i++] = 0.;\n ticks[i++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NaN;\n }\n }\n if (negW > 0) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n ticks[i++] = 0. + nanW + negW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n }\n ticks[i++] = 0. + nanW + posW;\n ticks[i++] = min;\n if (posW > 0) {\n ticks[i++] = size-posW+1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n ticks[i++] = size-1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n }\n return;\n }\n double exp = Math.log(diff) * 0.43429448190325176; // log10\n int expi = -(int)Math.floor(exp);\n double scale = Math.pow(10.,expi);\n double smin = Math.floor(min * scale);\n double smax = Math.ceil(max * scale);\n int siz = size - nanW - negW - nanW;\n int sdiff = (int)(smax - smin);\n if (sdiff > siz/2)\n scale *= .5;\n else if (sdiff < 3)\n scale *= 4;\n else if (sdiff < 5)\n scale *= 2;\n double incr = 1./scale;\n int count = 0;\n double sval = smin / scale;\n if (max > min) {\n smin = Math.ceil(min * scale);\n smax = Math.floor(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval <= smax ) {\n count+=2;\n sval += incr;\n }\n } else {\n incr *= -1.;\n smin = Math.floor(min * scale);\n smax = Math.ceil(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval >= smax ) {\n count+=2;\n sval += incr;\n }\n }\n int tn = count;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n sval = smin / scale;\n ticks = new double[tn];\n int pi = 0; // pixelIndex\n if (nanW > 0 && pi < tn) {\n ticks[pi++] = 0.;\n ticks[pi++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NaN;\n }\n }\n if (negW > 0 && pi < tn) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n ticks[pi++] = 0. + nanW + negW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n }\n for (int i = 0; i < count && pi < tn; i += 2) {\n ticks[pi++] = nanW + negW + (siz - 1) * ((sval - min ) / (max - min));\n ticks[pi++] = Math.round(sval*scale)/scale;\n sval += incr;\n }\n if (posW > 0 && pi < tn) {\n ticks[pi++] = size-posW+1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n ticks[pi++] = size-1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n }\n }",
"Dimension_longueur createDimension_longueur();",
"double getStepSize();",
"public void createMandelbrot(int steps) {\r\n if (initialValue == null) {\r\n System.out.println(\"Initial value for Mandelbrot set undefined\");\r\n return;\r\n }\r\n if (colors.size() < 2) {\r\n System.out.println(\"At least two colors are needed to calculate Mandelbrot set value color\");\r\n return;\r\n }\r\n \r\n // Creating BufferedImage to store calculated image\r\n BufferedImage ncanvas = new BufferedImage(dimensions.width, dimensions.height, BufferedImage.TYPE_INT_ARGB);\r\n \r\n // Calculating steps in imaginary window to check\r\n double stepx = window.getWidth() / (double)dimensions.width;\r\n double stepy = window.getHeight() / (double)dimensions.height;\r\n \r\n // Evaluating each pixel in image\r\n for (int y = 0; y < dimensions.height; y++) {\r\n for (int x = 0; x < dimensions.width; x++) {\r\n // Calculating 'c' (xx + yyi) to check in Mandelbrot set:\r\n // Z(0) = 'initialValue'\r\n // Z(n+1) = Z(n)^2 + c \r\n double xx = (double)x * stepx + window.getXMin();\r\n double yy = (double)y * stepy + window.getYMin();\r\n \r\n // Evaluating steps to determine if value xx+yyi allows to Mandelbrot set\r\n int s = IFCMath.isMandelbrot(initialValue, new Complex(xx, yy), steps);\r\n \r\n // Evaluating color for this value\r\n ncanvas.setRGB(x, y, s == steps ? mandelbrotColor.getRGB() : getColor(colors, s, steps).getRGB());\r\n }\r\n }\r\n \r\n // Adding produced image to array\r\n canvas.add(ncanvas);\r\n }",
"LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }",
"public float sizeMultiplier();",
"@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }",
"public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }",
"void setStepCounterTileXY();",
"public RK(int m) {\n\t\tthis.exponent = exponent;\n\t\tthis.hash = 0;\n\t\tthis.workingHash = 0;\n\t\tthis.deletion = 0;\n\t\tthis.querySize = m;\n\t\tthis.buffer = new int [m];\n\t\tfor (int j = 0; j<m; j++){\n\t\t\texponent = (31*exponent)%511;\n\t\t}\n\t\tthis.index = 0;\n\t\t\n\t}",
"public static double fluidOuncesToMillilitres(double num) { return (num*29.574); }",
"public JPanel graficarMem (){\r\n\t\tJPanel panel = new JPanel(){\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\t// dibujo la memoria\r\n\t\t\t\tint xpoints[] = { 20, 20, 140, 140};\r\n\t\t\t\tint ypoints[] = { 0, 15 * tamaņo,15 * tamaņo, 0 };\r\n\t\t\t\tint npoints = 4;\r\n\t\t\t\tg.drawPolygon(xpoints, ypoints, npoints);\r\n\t\t\t\t\r\n\t\t\t\t// dibujo las lineas de separacion de los espacios de la memoria\r\n\t\t\t\tint altura = 0;\r\n\t\t\t\tint sumaEspacios = 0;\r\n\t\t\t\tg.drawString(sumaEspacios + \"\", 0, 15);\r\n\t\t\t\tfor(int i = 0; i < numEspacios; i++){\r\n\t\t\t\t\taltura += espacios[i].getTamaņo() * 15;\r\n\t\t\t\t\tsumaEspacios += espacios[i].getTamaņo();\r\n\t\t\t\t\tg.drawString(sumaEspacios + \"\", 0, altura);\r\n\t\t\t\t\tg.drawString(espacios[i].getTamaņo() + \"\", 140, altura - (espacios[i].getTamaņo() * 15) / 2);\r\n\t\t\t\t\tg.drawLine(20, altura, 140, altura);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// dibujo las variables de los espacios\r\n\t\t\t\tint altura1 = 0;\r\n\t\t\t\tBasicStroke Bs = new BasicStroke(2f);\r\n\t\t\t\tGraphics2D g2D = (Graphics2D) g;\r\n\t\t\t\tg2D.setStroke(Bs);\r\n\t\t\t\tfor (int i = 0; i < numEspacios; i++) {\r\n\t\t\t\t\tint tamV = 0;\r\n\t\t\t\t\tint tamE = espacios[i].getTamaņo() * 15;\r\n\t\t\t\t\tint alturaV = altura1; \r\n\t\t\t\t\tfor (int j = 0; j < espacios[i].getVarEnMem().size(); j++) {\r\n\t\t\t\t\t\ttamV = espacios[i].getVarEnMem().get(j).getTamaņo() * 15;\r\n\t\t\t\t\t\tint puntosY[] = { alturaV, alturaV + tamV, alturaV + tamV, alturaV};\r\n\t\t\t\t\t\tg2D.setColor(espacios[i].getVarEnMem().get(j).getColor());\r\n\t\t\t\t\t\tif (espacios[i].getVarEnMem().get(j).getTamaņo() > 1) {\r\n\t\t\t\t\t\t\tg2D.drawString(espacios[i].getVarEnMem().get(j).getNombre() + \" \" + espacios[i].getVarEnMem().get(j).getTamaņo() + \"M\", 90, alturaV + (tamV / 2));\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tg2D.drawString(espacios[i].getVarEnMem().get(j).getNombre() + \" \" + espacios[i].getVarEnMem().get(j).getTamaņo() + \"M\", 90, alturaV + tamV);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tg2D.drawPolygon(xpoints, puntosY, npoints);\r\n\t\t\t\t\t\talturaV += tamV; \r\n\t\t\t\t\t}\r\n\t\t\t\t\taltura1 += tamE;\r\n\t\t\t\t}\r\n\t\t\t\tg2D.setColor(Color.BLACK);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tpanel.setPreferredSize(new Dimension(160, 15*this.getTamaņo() + 10));\r\n\t\t\r\n\t\treturn panel;\r\n\t}",
"public void lungs(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-45);\n double r2 = angle + Math.toRadians(45);\n double r3 = angle + Math.toRadians(135);\n double r4 = angle + Math.toRadians(-135);\n\n //length modifications of the different branches\n double l1 = length/1.3 + (l1I*5);\n double l2 = length/1.3 + (l2I*5);\n double l3 = length/1.3 + (l3I*5);\n double l4 = length/1.3 + (l4I*5);\n\n //x and y points of the end of the different branches\n int ax = (int)(x - Math.sin(r1)*l1)+(int)(l1I);\n int ay = (int)(y - Math.cos(r1)*l1)+(int)(l1I);\n int bx = (int)(x - Math.sin(r2)*l2)+(int)(l2I);\n int by = (int)(y - Math.cos(r2)*l2)+(int)(l2I);\n int cx = (int)(x - Math.sin(r3)*l3)+(int)(l3I);\n int cy = (int)(y - Math.cos(r3)*l3)+(int)(l3I);\n int dx = (int)(x - Math.sin(r4)*l4)+(int)(l4I);\n int dy = (int)(y - Math.cos(r4)*l4)+(int)(l4I);\n\n if(n == 0){\n return;\n }\n\n\n increment();\n Color fluidC = new Color(colorR,colorG,colorB);\n //bbg.setColor(new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random()*255)));\n bbg.setColor(fluidC);\n\n\n //draw different branches\n bbg.drawLine(x,y,ax,ay);\n bbg.drawLine(x,y,bx,by);\n bbg.drawLine(x,y,cx,cy);\n bbg.drawLine(x,y,dx,dy);\n\n\n\n //call recursively to draw fractal\n lungs(bbg, n - 1, (int)l1, ax,ay,r1);\n lungs(bbg, n - 1, (int)l2, bx,by,r2);\n lungs(bbg, n - 1, (int)l3, cx,cy,r3);\n lungs(bbg, n - 1, (int)l4, dx,dy,r4);\n\n\n }",
"@Override\n\tpublic int newtomMeterTorque() {\n\t\treturn 0;\n\t}",
"public void diffuse() {\r\n\t\tdouble[][][] before = quantity;\r\n\t\t/* Index of the box in positive (negative) .. direction, taking account of the boundary conditions */\r\n\t\tint xAbove, xBelow, yAbove, yBelow, zAbove, zBelow;\r\n\t\t/* Quantity of chemical leaving the box in the positive (negative) .. direction */\r\n\t\tdouble qxAbove, qxBelow, qyAbove, qyBelow, qzAbove, qzBelow;\r\n\t\t/* Flags for leakiness at borders */\r\n\t\tboolean leaky[] = sim.getLeaky();\r\n\t\tdouble leakyRate[] = sim.getLeakyRate();\r\n\t\t/*\r\n\t\t * Flux of molecules crossing in the positive x-direction (Fick's law)\r\n\t\t * \tJ = -D(dC/dx) = -D*(C(x+dx)-C(x))/dx = -D*(N(x+dx)-N(x))/((dx)^2*dy*dz) molecules/(micron)^2/sec\r\n\t\t * Number of molecules transferred in the positive x-direction over dt\r\n\t\t * \txAbove = J*(dy*dz)*dt = -((D*dt)/(dx)^2)*(N(x+dx)-N(x)) = -kX*(N(x+dx)-N(x))\r\n\t\t * where kX = (D*dt)/(dx)^2 is a dimensionless constant\r\n\t\t */\r\n\t\tdouble normX = sim.getDt()/Math.pow(box[0],2);\r\n\t\tdouble normY = sim.getDt()/Math.pow(box[1],2);\r\n\t\tdouble normZ = sim.getDt()/Math.pow(box[2],2);\r\n\t\tdouble kX = diffusivity*normX;\r\n\t\tdouble kY = diffusivity*normY;\r\n\t\tdouble kZ = diffusivity*normZ;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) {\t\r\n\t\t\t\t\t/* Is this box the last box? \r\n\t\t\t\t\t * \tIf so, is the boundary solid? If so, there is no box above, else, the box 'above' is the first box\r\n\t\t\t\t\t * \tElse, the box above is the next box */\r\n\t\t\t\t\txAbove = (i == boxes[0]-1 ? (sim.getSolid()[0] ? -1 : 0) : i+1);\r\n\t\t\t\t\txBelow = (i == 0 ? (sim.getSolid()[0] ? -1 : boxes[0]-1) : i-1);\r\n\t\t\t\t\tyAbove = (j == boxes[1]-1 ? (sim.getSolid()[1] ? -1 : 0) : j+1);\r\n\t\t\t\t\tyBelow = (j == 0 ? (sim.getSolid()[1] ? -1 : boxes[1]-1) : j-1);\r\n\t\t\t\t\tzAbove = (k == boxes[2]-1 ? (sim.getSolid()[2] ? -1 : 0) : k+1);\r\n\t\t\t\t\tzBelow = (k == 0 ? (sim.getSolid()[2] ? -1 : boxes[2]-1) : k-1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(xAbove != -1) {\r\n\t\t\t\t\t\t/* Calculate the quantity of chemical leaving the box in this direction */\r\n\t\t\t\t\t\tqxAbove = -kX*(before[xAbove][j][k]-before[i][j][k]);\r\n\t\t\t\t\t\t/* Add that quantity to the box above */ \r\n\t\t\t\t\t\tquantity[xAbove][j][k] += qxAbove;\r\n\t\t\t\t\t\t/* Remove it from this box */\r\n\t\t\t\t\t\tquantity[i][j][k] -= qxAbove;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[0]) {\r\n\t\t\t\t\t\t\t/* Calculate the quantity of chemical leaving the box in this direction (0 outside box if leaky)*/\r\n\t\t\t\t\t\t\tqxAbove = normX*leakyRate[0]*before[i][j][k];\r\n\t\t\t\t\t\t\t/* Remove it from this box */\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qxAbove;\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\tif(xBelow != -1) {\r\n\t\t\t\t\t\tqxBelow = -kX*(before[xBelow][j][k]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[xBelow][j][k] += qxBelow;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qxBelow;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[1]) {\r\n\t\t\t\t\t\t\tqxBelow = normX*leakyRate[1]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qxBelow;\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\tif(yAbove != -1) {\r\n\t\t\t\t\t\tqyAbove = -kY*(before[i][yAbove][k]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][yAbove][k] += qyAbove;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qyAbove;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[2]) {\r\n\t\t\t\t\t\t\tqyAbove = normY*leakyRate[2]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qyAbove;\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\tif(yBelow != -1) {\r\n\t\t\t\t\t\tqyBelow = -kY*(before[i][yBelow][k]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][yBelow][k] += qyBelow;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qyBelow;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[3]) {\r\n\t\t\t\t\t\t\tqyBelow = normY*leakyRate[3]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qyBelow;\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\tif(zAbove != -1) {\r\n\t\t\t\t\t\tqzAbove = -kZ*(before[i][j][zAbove]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][j][zAbove] += qzAbove;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qzAbove;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[4]) {\r\n\t\t\t\t\t\t\tqzAbove = normZ*leakyRate[4]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qzAbove;\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\tif(zBelow != -1) {\r\n\t\t\t\t\t\tqzBelow = -kZ*(before[i][j][zBelow]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][j][zBelow] += qzBelow;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qzBelow;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[3]) {\r\n\t\t\t\t\t\t\tqzBelow = normZ*leakyRate[5]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qzBelow;\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}",
"private int[] defineGrowths() {\n\t\tint[] growth = new int[2];\n\t\tif(dir == NL) {\n\t\t\tgrowth[0] = -1;\n\t\t\tgrowth[1] = -1;\n\t\t}else if(dir == NR) {\n\t\t\tgrowth[0] = -1;\n\t\t\tgrowth[1] = 1;\n\t\t}else if(dir == SL) {\n\t\t\tgrowth[0] = 1;\n\t\t\tgrowth[1] = -1;\n\t\t}else if(dir == SR){\n\t\t\tgrowth[0] = 1;\n\t\t\tgrowth[1] = 1;\n\t\t}\n\t\treturn growth;\n\t}",
"public JComponent addModulation(Color color)\n {\n Category category = new Category(this, \"Modulation Matrix\", color);\n \n JComponent comp;\n String[] params;\n HBox hbox = new HBox();\n VBox outer = new VBox();\n \n for(int mod = 1; mod <= 16; mod++) // note <=\n {\n VBox vbox = new VBox();\n params = MOD_SOURCES;\n comp = new Chooser(\"Source \" + mod, this, \"mod\" + mod + \"source\", params);\n vbox.add(comp);\n\n params = (mod > 2 ? EXTENDED_MOD_DESTINATIONS : MOD_DESTINATIONS);\n comp = new Chooser(\"Destination \" + mod, this, \"mod\" + mod + \"destination\", params);\n vbox.add(comp);\n\n hbox.add(vbox);\n\n comp = new LabelledDial(\"Amount \" + mod, this, \"mod\" + mod + \"scaling\", color, 0, 127)\n {\n public boolean isSymmetric() { return true; }\n public String map(int value)\n {\n if (value <= 64) return \"\" + (((value - 64) * 100) / 64) + \"%\";\n else return \"\" + (((value - 64) * 100) / 63) + \"%\";\n }\n };\n hbox.add(comp);\n \n if (mod == 4 || mod == 8 || mod == 12 || mod == 16)\n {\n outer.add(hbox);\n if (mod == 4 || mod == 8 || mod == 12)\n outer.add(Strut.makeVerticalStrut(20));\n hbox = new HBox();\n }\n }\n \n category.add(outer, BorderLayout.CENTER);\n return category;\n }",
"@Override\n\tpublic double mangeLegumes() {\n\t\treturn quantiteLegumes*this.getPoids();\n\t}",
"public PropGeost(IntVar[] vars, int k, List<GeostObject> objects, List<ShiftedBox> shiftedBoxes,\n List<ExternalConstraint> ectr, List<int[]> ctrlVs, boolean memo_active,\n HashMap<Pair<Integer, Integer>, Boolean> included,\n boolean increment_, Solver solver) {\n\n super(vars, PropagatorPriority.VERY_SLOW, false);\n\n cst = new Constants();\n stp = new Setup(cst, solver.getEngine(), this);\n intermediateLayer = new IntermediateLayer();\n externalLayer = new ExternalLayer(cst, stp);\n geometricKernel = new GeometricKernel(cst, stp, externalLayer, intermediateLayer, memo_active, included, solver, this);\n\n cst.setDIM(k);\n this.ctrlVs = ctrlVs;\n\n stp.SetupTheProblem(objects, shiftedBoxes, ectr);\n\n //this should be changed and be provided globally to the system\n oIDs = new int[stp.getNbOfObjects()];\n for (int i = 0; i < stp.getNbOfObjects(); i++) {\n oIDs[i] = objects.get(i).getObjectId();\n }\n lastNonFixedO = solver.getEnvironment().makeInt(oIDs.length);\n\n this.s = solver;\n this.mengine = (MutePropagationEngine) solver.getEngine();\n this.greedyMode = 1;\n this.increment = increment_;\n\n\n// IntVar D = VariableFactory.bounded(\"D\", 0, 100, s);\n\n\n }",
"public static int createnumOfMutationss(){\n\t\tint totalMut = 0;\n\t\t\n\t\tint[] gen0 = new int[(int) Math.pow(2,0)]; //size of numOfMutations is based on exponential growth by generation number\n\t\t\tmutate(gen0); //function to mutate\n\t\t\ttotalMut = totalMut + totalMutations(gen0);\n\t\tint[] gen1 = new int[(int) Math.pow(2,1)];\n\t\t\tcheckMutations(gen0, gen1); //checks for previous generation mutations\n\t\t\tmutate(gen1);\n\t\t\ttotalMut = totalMut + totalMutations(gen1);\n\t\tint[] gen2 = new int[(int) Math.pow(2,2)];\n\t\t\tcheckMutations(gen1, gen2);\n\t\t\tmutate(gen2);\n\t\t\ttotalMut = totalMut + totalMutations(gen2);\n\t\tint[] gen3 = new int[(int) Math.pow(2,3)];\n\t\t\tcheckMutations(gen2, gen3);\n\t\t\tmutate(gen3);\n\t\t\ttotalMut = totalMut + totalMutations(gen3);\n\t\tint[] gen4 = new int[(int) Math.pow(2,4)];\n\t\t\tcheckMutations(gen3, gen4);\n\t\t\tmutate(gen4);\n\t\t\ttotalMut = totalMut + totalMutations(gen4);\n\t\tint[] gen5 = new int[(int) Math.pow(2,5)];\n\t\t\tcheckMutations(gen4, gen5);\n\t\t\tmutate(gen5);\n\t\t\ttotalMut = totalMut + totalMutations(gen5);\n\t\tint[] gen6 = new int[(int) Math.pow(2,6)];\n\t\t\tcheckMutations(gen5, gen6);\n\t\t\tmutate(gen6);\n\t\t\ttotalMut = totalMut + totalMutations(gen6);\n\t\tint[] gen7 = new int[(int) Math.pow(2,7)];\n\t\t\tcheckMutations(gen6, gen7);\n\t\t\tmutate(gen7);\n\t\t\ttotalMut = totalMut + totalMutations(gen7);\n\t\tint[] gen8 = new int[(int) Math.pow(2,8)];\n\t\t\tcheckMutations(gen7, gen8);\n\t\t\tmutate(gen8);\n\t\t\ttotalMut = totalMut + totalMutations(gen8);\n\t\tint[] gen9 = new int[(int) Math.pow(2,9)];\n\t\t\tcheckMutations(gen8, gen9);\n\t\t\tmutate(gen9);\n\t\t\ttotalMut = totalMut + totalMutations(gen9);\n\t\tint[] gen10 = new int[(int) Math.pow(2,10)];\n\t\t\tcheckMutations(gen9, gen10);\n\t\t\tmutate(gen10);\n\t\t\ttotalMut = totalMut + totalMutations(gen10);\n\t\t\t\n\t\t\treturn totalMut;\n\t\n\t}",
"private Proof notDividesStepGreater(int n, int m, Expression z) {\n Expression a = intToLit(n); //[n]\n Expression b = intToLit(m); //[m]\n java.util.function.Function<Proof, Proof> stepFunction = p -> faxm2ConvertTwice(faxm8Gen(a, z), p);\n Expression equal = equal(multi(a, succ(z)), b); //a * z' = b\n Proof notGreaterLemma = notGreaterLemma(multi(a, z), n, m); //!(a*z+[n]=[m])\n return subNot(equal, notGreaterLemma, stepFunction); //(a*z'=b) -> (!a*z+[n]=[m]) -> ... -> !([n]*z'=m)\n }",
"private void addGUIComponents() {\n\t\t\n\t\t/*length panel*/\n\t\tJPanel lengthPanel = new JPanel();\n\t\tlengthPanel.setBackground(new Color(109,109,109));\n\t\tGridLayout layout = new GridLayout(1,2);\n\t\tlayout.setHgap(20);\n\t\tlengthPanel.setLayout(layout);\n\n\t\tJPanel lengthLeftPan = new JPanel();\n\t\tlengthLeftPan.setBackground(new Color(109,109,109));\n\t\tlengthLeftPan.setLayout(new GridLayout(9,2));\n\t\tlengthLeftPan.add(_X_A0_lb);\n\t\tlengthLeftPan.add(_X_A0);\n\t\tlengthLeftPan.add(_Y_A0_lb);\n\t\tlengthLeftPan.add(_Y_A0);\n\t\tlengthLeftPan.add(_X_d_lb);\n\t\tlengthLeftPan.add(_X_d);\n\t\tlengthLeftPan.add(_Y_d_lb);\n\t\tlengthLeftPan.add(_Y_d);\n\t\tlengthLeftPan.add(_X_s_lb);\n\t\tlengthLeftPan.add(_X_s);\n\t\tlengthLeftPan.add(_Y_s_lb);\n\t\tlengthLeftPan.add(_Y_s);\n\t\tlengthLeftPan.add(_ro_min_lb);\n\t\tlengthLeftPan.add(_ro_min);\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\n\t\tJPanel lengthRightPan = new JPanel(new GridLayout(10,2));\n\t\tlengthRightPan.setBackground(new Color(109,109,109));\n\t\tlengthRightPan.add(_L3_lb);\n\t\tlengthRightPan.add(_L3);\n\t\tlengthRightPan.add(_L31_lb);\n\t\tlengthRightPan.add(_L31);\n\t\tlengthRightPan.add(_L3p_lb);\n\t\tlengthRightPan.add(_L3p);\n\t\tlengthRightPan.add(_L4_lb);\n\t\tlengthRightPan.add(_L4);\n\t\tlengthRightPan.add(_L5_lb);\n\t\tlengthRightPan.add(_L5);\n\t\tlengthRightPan.add(_L1_lb);\n\t\tlengthRightPan.add(_L1);\n\t\tlengthRightPan.add(_rR_lb);\n\t\tlengthRightPan.add(_rR);\n\t\tlengthRightPan.add(_rG_lb);\n\t\tlengthRightPan.add(_rG);\n\t\tlengthRightPan.add(_ep_lb);\n\t\tlengthRightPan.add(_ep);\n\t\tlengthRightPan.add(_y_lb);\n\t\tlengthRightPan.add(_y);\n\t\t\n\t\tlengthPanel.add(lengthLeftPan);\n\t\tlengthPanel.add(lengthRightPan);\n\t\t\n\t\t/*angle panel*/\n\t\tJPanel anglePanel = new JPanel(new GridLayout(5,2));\n\t\tanglePanel.setBackground(new Color(109,109,109));\n\t\tanglePanel.add(_delta_lb);\n\t\tanglePanel.add(_delta);\n\t\tanglePanel.add(_gama_lb);\n\t\tanglePanel.add(_gama);\n\t\tanglePanel.add(_miu_an_min_lb);\n\t\tanglePanel.add(_miu_an_min);\n\t\tanglePanel.add(_miu_ab_min_lb);\n\t\tanglePanel.add(_miu_ab_min);\n\t\tanglePanel.add(_n_lb);\n\t\tanglePanel.add(_n);\n\t\t\n\t\t\n\t\t/*Title label for the length panel*/\n\t\tJLabel lengthPanelTitle = new JLabel(LanguageFactory.getInstance().getExpresion(LENGTH_TITLE_NAME));\n\t\t/*Title label for the angle panel*/\n\t\tJLabel anglePanelTitle = new JLabel(LanguageFactory.getInstance().getExpresion(ANGLE_TITLE_NAME));\n\t\t\n\t\t/*Wave radius textbox label*/\n\t\tJLabel waveRadius = new JLabel(LanguageFactory.getInstance().getExpresion(WAVE_RADIUS_LABEL_NAME));\n\t\t/*Seiben (???) radius textbox label*/\n\t\tJLabel seibenRadius = new JLabel(LanguageFactory.getInstance().getExpresion(SEIBEN_RADIUS_LABEL_NAME));\n\t\t\n\t\t\n\t\tJPanel radiusPan = new JPanel(new GridLayout(2,2));\n\t\tradiusPan.setBackground(new Color(109,109,109));\n\t\tradiusPan.add(waveRadius);\n\t\tradiusPan.add(_waveRad);\n\t\tradiusPan.add(seibenRadius);\n\t\tradiusPan.add(_siebenRad);\n\t\t\n\t\t\n\t\tJPanel leftPan = new JPanel(new GridBagLayout());\n\t\tleftPan.setBorder(BorderFactory.createRaisedBevelBorder());\n\t\tleftPan.setBackground(new Color(109,109,109));\n\t\tleftPan.add(lengthPanelTitle, new GBC(0,0).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0,10,50,10));\n\t\tleftPan.add(lengthPanel, new GBC(0,1).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0, 10, 0, 10));\n\t\tleftPan.add(radiusPan, new GBC(0,2).setFill(GBC.NONE).setAnchor(GBC.NORTHWEST).setInsets(20, 10, 0, 10));\n\t\t\n\t\tJPanel rightPan = new JPanel(new GridBagLayout());\n\t\trightPan.setBorder(BorderFactory.createRaisedBevelBorder());\n\t\trightPan.setBackground(new Color(109,109,109));\n\t\trightPan.add(anglePanelTitle, new GBC(1,0).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0,10,50,10));\n\t\trightPan.add(anglePanel, new GBC(1,1).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0, 10, 0, 10));\n\t\t\n\t\t/*adding the two panels to the layout*/\n\t\tJPanel mainPan = new JPanel(new GridBagLayout());\n\t\tmainPan.add(leftPan, new GBC(0, 0).setFill(GBC.VERTICAL).setAnchor(GBC.NORTH).setInsets(0, 0, 0, 20).setWeight(100, 100));\n\t\tmainPan.add(rightPan, new GBC(1, 0).setFill(GBC.VERTICAL).setAnchor(GBC.NORTH).setInsets(0, 20, 0, 0).setWeight(100, 100));\n\t\tmainPan.add(_drawing_btn, new GBC(2, 0, 1, 2).setFill(GBC.NONE).setAnchor(GBC.NORTH));\n\t\t\n\t\tsetLayout(new BorderLayout());\n\t\tadd(mainPan, BorderLayout.CENTER);\n\t\tsetPreferredSize(new Dimension(800, 400));\n\t\tsetSize(getPreferredSize());\n\n\t}",
"private void generateLayout() {\n\t\tJPanel generatePanel = new JPanel();\n\t\tgeneratePanel.setLayout(new GridBagLayout());\n\t\tJButton generatePrimes = new JButton(\"Generate Primes\");\n\t\tgeneratePrimes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgeneratePrimesPopup();\n\t\t\t}\n\t\t});\n\t\tJButton generateHex = new JButton(\"Generate Hex Cross\");\n\t\tgenerateHex.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprimes.clearCrosses();\n\t\t\t\tprimes.generateHexPrimes();\n\t\t\t\tupdateValues(\"Succesful Hex Cross Prime Numbers Generated\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\tgbc.fill = GridBagConstraints.CENTER;\n\t\tgbc.insets = new Insets(1,1,0,0);\n\t\tJPanel digitsPanel = new JPanel();\n\t\tdigitsPanel.setLayout(new GridLayout(2,1));\n\t\tLPrimedigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tLHexDigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tdigitsPanel.add(LPrimedigits);\n\t\tdigitsPanel.add(LHexDigits);\n\t\tgbc.gridx = 0;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(generatePrimes,gbc);\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(digitsPanel,gbc);\n\t\tgbc.weightx = 0.1;\n\t\tgbc.gridx = 2;\n\t\tgeneratePanel.add(generateHex,gbc);\n\t\tgeneratePanel.setBorder(BorderFactory.createLineBorder(new Color(150,0,0), 2));\n\t\tmainLayout.add(generatePanel);\n\t}",
"public void createGestionnaireMeubles(){\n this.gestionaireMeubles = new GestionaireMeubles(panneaux.cuisine);\n this.panneaux.leftPanel.getCtrl().bindTotalPrice(this.gestionaireMeubles.totalPricePanierProperty());\n }",
"public static void main(String[] args) {\n\t\tint a = Integer.parseInt(args[0]);\n\t\tint c = Integer.parseInt(args[1]);\n\t\tint m = Integer.parseInt(args[2]);\n\t\tint x0 = Integer.parseInt(args[3]);\n\t\tint n = Integer.parseInt(args[4]);\n\n\t\t// conditions 1, 2, and 3 as defined in header comment\n\t\tboolean condition1 = (a > 0 && c > 0);\n\t\tboolean condition2 = (a < m && c < m && x0 < m);\n\t\tboolean condition3 = gcd(c, m) == 1;\n\n\t\t// with conditions checked, and since x % y = x % (-y)\n\t\t// under java's modulus operator, we will take the\n\t\t// absolute value of m to prevent any possible\n\t\t// exceptions resulting from negative values for m\n\t\tif (m < 0) {\n\t\t\tm *= -1;\n\t\t}\n\n\t\t// create 10 buckets to tally the LCF's distribution\n\t\t// each bucket is initialized to 0\n\t\tint[] distribution = new int[10];\n\n\t\t// find distribution\n\t\tint x = x0; // function initial value\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = (a * x + c) % m; // x has value x_i\n\n\t\t\t// since we want outputs from 0 to m-1\n\t\t\t// inclusive, and since java's modulus\n\t\t\t// operator produces negative output only\n\t\t\t// when the dividend is negative, and since\n\t\t\t// negative values for x_0 are acceptable;\n\t\t\t// we must perform negative checks on x\n\t\t\tif (x < 0) { // -m < x < 0\n\t\t\t\tx += m; // 0 < x < m\n\t\t\t}\n\n\t\t\t// find bucket for this x\n\t\t\tint bucket = 9;\n\n\t\t\t// since x < m, 10x < 10m\n\t\t\t// in this way, each bucket has a range\n\t\t\t// differing by at most 1 from each other\n\t\t\t// bucket\n\t\t\twhile (10 * x < bucket * m) {\n\t\t\t\tbucket--;\n\t\t\t}\n\t\t\t// increment count for the bucket of this x\n\t\t\tdistribution[bucket]++;\n\t\t}\n\n\t\t// calculate V as defined in header comment\n\t\tdouble v = pearsonChiSquare(distribution, n);\n\n\t\t// assemble output\n\t\tString output = \"\";\n\n\t\t// report condition check results\n\t\tif (condition1 && condition2 && condition3) {\n\t\t\toutput += \"Conditions satisfied\";\n\t\t} else { // at least one condition not satisfied\n\t\t\tif (!condition1) {\n\t\t\t\toutput += \"Condition 1 not satisfied\";\n\t\t\t}\n\n\t\t\tif (!condition2) {\n\t\t\t\t// check if line break needed\n\t\t\t\tif (!condition1) {\n\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t}\n\n\t\t\t\toutput += \"Condition 2 not satisfied\";\n\t\t\t}\n\n\t\t\tif (!condition3) {\n\t\t\t\t// check if line break needed\n\t\t\t\tif (!(condition1 && condition2)) {\n\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t}\n\n\t\t\t\toutput+= \"Condition 3 not satisfied\";\n\t\t\t}\n\t\t}\n\n\n\t\t// report V and decide function suitability\n\n\t\t// format V\n\t\tDecimalFormat fourPlaces = new DecimalFormat(\"0.0000\");\n\t\toutput += \"\\nV = \" + fourPlaces.format(v) + \"; \";\n\n\t\t// report conclusion\n\t\toutput += \"this function is \";\n\t\tif (v >= 3.325 && v <= 16.92) {\n\t\t\toutput += \"ok\";\n\t\t} else if (v >= 2.088 && v <= 21.67) {\n\t\t\toutput += \"suspicious\";\n\t\t} else {\n\t\t\toutput += \"rejected\";\n\t\t}\n\n\t\t// print report to standard output\n\t\tSystem.out.println(output);\n\t}",
"float getLgap();",
"public ULongParser(int startBit, int size, double multiplier, double offset, String name) {\n super(startBit, size, multiplier, offset, name);\n }",
"public abstract void setMovementPerTick(float step);",
"@Override\r\n public void doModifyWagerPool(double factor, String msg)\r\n {\n }",
"public Steps(int steps){\n\t\tthis.steps = steps;\n\t\tmax = (int) Math.sqrt(steps);\n\t\tmem = new Integer[steps + 1][max + 1];\n\t}",
"private static int[] calculateLotto(int size, int min, int max) {\n int[] lotto = new int [size];\n int[] numbers = new int [max - min + 1];\n for(int i = 0; i < numbers.length; i++) {\n numbers [i] = min + i;\n }\n for(int i = 0; i < lotto.length; i++) {\n int index = Math.getRandom(0, numbers.length - 1);\n lotto [i] = numbers [index];\n numbers = Arrays.removeIndex(numbers, index);\n }\n return lotto;\n }",
"public LevelGenerator(GameDescription game, ElapsedCpuTimer elapsedTimer){\n\t\trandom = new Random();\n\t\tminSize = 4;\n\t\tmaxSize = 18;\n\n\t\temptyPercentage = 0.9;\n\t}",
"List<Long> generatePrimes(long lowerBound, long upperBound);",
"public void calculateDimensions(Paint var1_1, ViewPortHandler var2_2) {\n block21 : {\n block23 : {\n block22 : {\n block20 : {\n var3_7 = Utils.convertDpToPixel(this.mFormSize);\n var4_8 = Utils.convertDpToPixel(this.mStackSpace);\n var5_9 = Utils.convertDpToPixel(this.mFormToTextSpace);\n var6_10 = Utils.convertDpToPixel(this.mXEntrySpace);\n var7_11 = Utils.convertDpToPixel(this.mYEntrySpace);\n var8_12 = this.mWordWrapEnabled;\n var9_13 = this.mEntries;\n var10_17 = var9_13.length;\n this.mTextWidthMax = this.getMaximumEntryWidth(var1_1);\n this.mTextHeightMax = this.getMaximumEntryHeight(var1_1);\n var11_18 = 1.$SwitchMap$com$github$mikephil$charting$components$Legend$LegendOrientation[this.mOrientation.ordinal()];\n if (var11_18 == 1) break block20;\n if (var11_18 != 2) break block21;\n var12_19 = Utils.getLineHeight(var1_1);\n var13_20 = Utils.getLineSpacing(var1_1);\n var14_21 = var2_2.contentWidth();\n var15_22 = this.mMaxSizePercent;\n this.mCalculatedLabelBreakPoints.clear();\n this.mCalculatedLabelSizes.clear();\n this.mCalculatedLineSizes.clear();\n var16_23 = -1;\n var17_25 = 0.0f;\n var18_27 = 0.0f;\n var19_28 = 0.0f;\n var2_3 = var9_13;\n var20_30 = var4_8;\n var21_32 = var3_7;\n break block22;\n }\n var19_29 = Utils.getLineHeight(var1_1);\n var21_33 = 0.0f;\n var6_10 = 0.0f;\n var23_37 = 0.0f;\n var11_18 = 0;\n break block23;\n }\n for (var11_18 = 0; var11_18 < var10_17; ++var11_18) {\n block25 : {\n block24 : {\n var9_15 = var2_3[var11_18];\n var22_34 = var9_15.form != LegendForm.NONE ? 1 : 0;\n var23_36 = Float.isNaN(var9_15.formSize) != false ? var21_32 : Utils.convertDpToPixel(var9_15.formSize);\n var9_16 = var9_15.label;\n this.mCalculatedLabelBreakPoints.add(false);\n var3_7 = var16_23 == -1 ? 0.0f : var18_27 + var20_30;\n if (var9_16 != null) {\n this.mCalculatedLabelSizes.add(Utils.calcTextSize(var1_1, var9_16));\n var23_36 = var22_34 != 0 ? var5_9 + var23_36 : 0.0f;\n var23_36 = var3_7 + var23_36 + this.mCalculatedLabelSizes.get((int)var11_18).width;\n var22_34 = var16_23;\n } else {\n this.mCalculatedLabelSizes.add(FSize.getInstance(0.0f, 0.0f));\n if (var22_34 == 0) {\n var23_36 = 0.0f;\n }\n var3_7 += var23_36;\n var23_36 = var3_7;\n var22_34 = var16_23;\n if (var16_23 == -1) {\n var22_34 = var11_18;\n var23_36 = var3_7;\n }\n }\n if (var9_16 != null) break block24;\n var3_7 = var17_25;\n var4_8 = var19_28;\n if (var11_18 != var10_17 - 1) break block25;\n }\n var18_27 = (var16_23 = (int)(var19_28 FCMPL 0.0f)) == 0 ? 0.0f : var6_10;\n if (var8_12 && var16_23 != 0 && !(var14_21 * var15_22 - var19_28 >= var18_27 + var23_36)) {\n this.mCalculatedLineSizes.add(FSize.getInstance(var19_28, var12_19));\n var3_7 = Math.max(var17_25, var19_28);\n var24_38 = this.mCalculatedLabelBreakPoints;\n var16_23 = var22_34 > -1 ? var22_34 : var11_18;\n var24_38.set(var16_23, true);\n var17_25 = var23_36;\n } else {\n var3_7 = var17_25;\n var17_25 = var19_28 + (var18_27 + var23_36);\n }\n if (var11_18 == var10_17 - 1) {\n this.mCalculatedLineSizes.add(FSize.getInstance(var17_25, var12_19));\n var3_7 = Math.max(var3_7, var17_25);\n }\n var4_8 = var17_25;\n }\n if (var9_16 != null) {\n var22_34 = -1;\n }\n var16_23 = var22_34;\n var17_25 = var3_7;\n var18_27 = var23_36;\n var19_28 = var4_8;\n }\n this.mNeededWidth = var17_25;\n var23_36 = this.mCalculatedLineSizes.size();\n var11_18 = this.mCalculatedLineSizes.size() == 0 ? 0 : this.mCalculatedLineSizes.size() - 1;\n this.mNeededHeight = var12_19 * var23_36 + (var13_20 + var7_11) * (float)var11_18;\n break block21;\n }\n for (var22_35 = 0; var22_35 < var10_17; ++var22_35) {\n block28 : {\n block26 : {\n block27 : {\n var2_5 = var9_13[var22_35];\n var16_24 = var2_5.form != LegendForm.NONE;\n var20_31 = Float.isNaN(var2_5.formSize) != false ? var3_7 : Utils.convertDpToPixel(var2_5.formSize);\n var2_6 = var2_5.label;\n if (var11_18 == 0) {\n var6_10 = 0.0f;\n }\n var17_26 = var6_10;\n if (var16_24) {\n var17_26 = var6_10;\n if (var11_18 != 0) {\n var17_26 = var6_10 + var4_8;\n }\n var17_26 += var20_31;\n }\n if (var2_6 == null) break block26;\n if (!var16_24 || var11_18 != 0) break block27;\n var6_10 = var17_26 + var5_9;\n ** GOTO lbl-1000\n }\n var6_10 = var17_26;\n if (var11_18 != 0) {\n var23_37 = Math.max(var23_37, var17_26);\n var21_33 += var19_29 + var7_11;\n var17_26 = 0.0f;\n var11_18 = 0;\n } else lbl-1000: // 2 sources:\n {\n var17_26 = var6_10;\n }\n var20_31 = Utils.calcTextWidth(var1_1, var2_6);\n var6_10 = var21_33;\n if (var22_35 < var10_17 - 1) {\n var6_10 = var21_33 + (var19_29 + var7_11);\n }\n var21_33 = var6_10;\n var6_10 = var17_26 += var20_31;\n break block28;\n }\n var6_10 = var17_26 += var20_31;\n if (var22_35 < var10_17 - 1) {\n var6_10 = var17_26 + var4_8;\n }\n var11_18 = 1;\n }\n var23_37 = Math.max(var23_37, var6_10);\n }\n this.mNeededWidth = var23_37;\n this.mNeededHeight = var21_33;\n }\n this.mNeededHeight += this.mYOffset;\n this.mNeededWidth += this.mXOffset;\n }\n\n public List<Boolean> getCalculatedLabelBreakPoints() {\n return this.mCalculatedLabelBreakPoints;\n }\n\n public List<FSize> getCalculatedLabelSizes() {\n return this.mCalculatedLabelSizes;\n }\n\n public List<FSize> getCalculatedLineSizes() {\n return this.mCalculatedLineSizes;\n }\n\n public LegendDirection getDirection() {\n return this.mDirection;\n }\n\n public LegendEntry[] getEntries() {\n return this.mEntries;\n }\n\n public LegendEntry[] getExtraEntries() {\n return this.mExtraEntries;\n }\n\n public LegendForm getForm() {\n return this.mShape;\n }\n\n public DashPathEffect getFormLineDashEffect() {\n return this.mFormLineDashEffect;\n }\n\n public float getFormLineWidth() {\n return this.mFormLineWidth;\n }\n\n public float getFormSize() {\n return this.mFormSize;\n }\n\n public float getFormToTextSpace() {\n return this.mFormToTextSpace;\n }\n\n public LegendHorizontalAlignment getHorizontalAlignment() {\n return this.mHorizontalAlignment;\n }\n\n public float getMaxSizePercent() {\n return this.mMaxSizePercent;\n }\n\n public float getMaximumEntryHeight(Paint paint) {\n LegendEntry[] arrlegendEntry = this.mEntries;\n int n = arrlegendEntry.length;\n float f = 0.0f;\n int n2 = 0;\n while (n2 < n) {\n float f2;\n String string2 = arrlegendEntry[n2].label;\n if (string2 == null) {\n f2 = f;\n } else {\n float f3 = Utils.calcTextHeight(paint, string2);\n f2 = f;\n if (f3 > f) {\n f2 = f3;\n }\n }\n ++n2;\n f = f2;\n }\n return f;\n }\n\n public float getMaximumEntryWidth(Paint paint) {\n float f = Utils.convertDpToPixel(this.mFormToTextSpace);\n LegendEntry[] arrlegendEntry = this.mEntries;\n int n = arrlegendEntry.length;\n float f2 = 0.0f;\n float f3 = 0.0f;\n int n2 = 0;\n while (n2 < n) {\n Object object = arrlegendEntry[n2];\n float f4 = Float.isNaN(((LegendEntry)object).formSize) ? this.mFormSize : ((LegendEntry)object).formSize;\n float f5 = Utils.convertDpToPixel(f4);\n f4 = f3;\n if (f5 > f3) {\n f4 = f5;\n }\n if ((object = ((LegendEntry)object).label) == null) {\n f3 = f2;\n } else {\n f5 = Utils.calcTextWidth(paint, (String)object);\n f3 = f2;\n if (f5 > f2) {\n f3 = f5;\n }\n }\n ++n2;\n f2 = f3;\n f3 = f4;\n }\n return f2 + f3 + f;\n }\n\n public LegendOrientation getOrientation() {\n return this.mOrientation;\n }\n\n public float getStackSpace() {\n return this.mStackSpace;\n }\n\n public LegendVerticalAlignment getVerticalAlignment() {\n return this.mVerticalAlignment;\n }\n\n public float getXEntrySpace() {\n return this.mXEntrySpace;\n }\n\n public float getYEntrySpace() {\n return this.mYEntrySpace;\n }\n\n public boolean isDrawInsideEnabled() {\n return this.mDrawInside;\n }\n\n public boolean isLegendCustom() {\n return this.mIsLegendCustom;\n }\n\n public boolean isWordWrapEnabled() {\n return this.mWordWrapEnabled;\n }\n\n public void resetCustom() {\n this.mIsLegendCustom = false;\n }\n\n public void setCustom(List<LegendEntry> list) {\n this.mEntries = list.toArray(new LegendEntry[list.size()]);\n this.mIsLegendCustom = true;\n }\n\n public void setCustom(LegendEntry[] arrlegendEntry) {\n this.mEntries = arrlegendEntry;\n this.mIsLegendCustom = true;\n }\n\n public void setDirection(LegendDirection legendDirection) {\n this.mDirection = legendDirection;\n }\n\n public void setDrawInside(boolean bl) {\n this.mDrawInside = bl;\n }\n\n public void setEntries(List<LegendEntry> list) {\n this.mEntries = list.toArray(new LegendEntry[list.size()]);\n }\n\n public void setExtra(List<LegendEntry> list) {\n this.mExtraEntries = list.toArray(new LegendEntry[list.size()]);\n }\n\n public void setExtra(int[] arrn, String[] arrstring) {\n ArrayList<LegendEntry> arrayList = new ArrayList<LegendEntry>();\n int n = 0;\n do {\n if (n >= Math.min(arrn.length, arrstring.length)) {\n this.mExtraEntries = arrayList.toArray(new LegendEntry[arrayList.size()]);\n return;\n }\n LegendEntry legendEntry = new LegendEntry();\n legendEntry.formColor = arrn[n];\n legendEntry.label = arrstring[n];\n if (legendEntry.formColor != 1122868 && legendEntry.formColor != 0) {\n if (legendEntry.formColor == 1122867) {\n legendEntry.form = LegendForm.EMPTY;\n }\n } else {\n legendEntry.form = LegendForm.NONE;\n }\n arrayList.add(legendEntry);\n ++n;\n } while (true);\n }\n\n public void setExtra(LegendEntry[] arrlegendEntry) {\n LegendEntry[] arrlegendEntry2 = arrlegendEntry;\n if (arrlegendEntry == null) {\n arrlegendEntry2 = new LegendEntry[]{};\n }\n this.mExtraEntries = arrlegendEntry2;\n }\n\n public void setForm(LegendForm legendForm) {\n this.mShape = legendForm;\n }\n\n public void setFormLineDashEffect(DashPathEffect dashPathEffect) {\n this.mFormLineDashEffect = dashPathEffect;\n }\n\n public void setFormLineWidth(float f) {\n this.mFormLineWidth = f;\n }\n\n public void setFormSize(float f) {\n this.mFormSize = f;\n }\n\n public void setFormToTextSpace(float f) {\n this.mFormToTextSpace = f;\n }\n\n public void setHorizontalAlignment(LegendHorizontalAlignment legendHorizontalAlignment) {\n this.mHorizontalAlignment = legendHorizontalAlignment;\n }\n\n public void setMaxSizePercent(float f) {\n this.mMaxSizePercent = f;\n }\n\n public void setOrientation(LegendOrientation legendOrientation) {\n this.mOrientation = legendOrientation;\n }\n\n public void setStackSpace(float f) {\n this.mStackSpace = f;\n }\n\n public void setVerticalAlignment(LegendVerticalAlignment legendVerticalAlignment) {\n this.mVerticalAlignment = legendVerticalAlignment;\n }\n\n public void setWordWrapEnabled(boolean bl) {\n this.mWordWrapEnabled = bl;\n }\n\n public void setXEntrySpace(float f) {\n this.mXEntrySpace = f;\n }\n\n public void setYEntrySpace(float f) {\n this.mYEntrySpace = f;\n }\n\n public static final class LegendDirection\n extends Enum<LegendDirection> {\n private static final /* synthetic */ LegendDirection[] $VALUES;\n public static final /* enum */ LegendDirection LEFT_TO_RIGHT;\n public static final /* enum */ LegendDirection RIGHT_TO_LEFT;\n\n static {\n LegendDirection legendDirection;\n LEFT_TO_RIGHT = new LegendDirection();\n RIGHT_TO_LEFT = legendDirection = new LegendDirection();\n $VALUES = new LegendDirection[]{LEFT_TO_RIGHT, legendDirection};\n }\n\n public static LegendDirection valueOf(String string2) {\n return Enum.valueOf(LegendDirection.class, string2);\n }\n\n public static LegendDirection[] values() {\n return (LegendDirection[])$VALUES.clone();\n }\n }\n\n public static final class LegendForm\n extends Enum<LegendForm> {\n private static final /* synthetic */ LegendForm[] $VALUES;\n public static final /* enum */ LegendForm CIRCLE;\n public static final /* enum */ LegendForm DEFAULT;\n public static final /* enum */ LegendForm EMPTY;\n public static final /* enum */ LegendForm LINE;\n public static final /* enum */ LegendForm NONE;\n public static final /* enum */ LegendForm SQUARE;\n\n static {\n LegendForm legendForm;\n NONE = new LegendForm();\n EMPTY = new LegendForm();\n DEFAULT = new LegendForm();\n SQUARE = new LegendForm();\n CIRCLE = new LegendForm();\n LINE = legendForm = new LegendForm();\n $VALUES = new LegendForm[]{NONE, EMPTY, DEFAULT, SQUARE, CIRCLE, legendForm};\n }\n\n public static LegendForm valueOf(String string2) {\n return Enum.valueOf(LegendForm.class, string2);\n }\n\n public static LegendForm[] values() {\n return (LegendForm[])$VALUES.clone();\n }\n }\n\n public static final class LegendHorizontalAlignment\n extends Enum<LegendHorizontalAlignment> {\n private static final /* synthetic */ LegendHorizontalAlignment[] $VALUES;\n public static final /* enum */ LegendHorizontalAlignment CENTER;\n public static final /* enum */ LegendHorizontalAlignment LEFT;\n public static final /* enum */ LegendHorizontalAlignment RIGHT;\n\n static {\n LegendHorizontalAlignment legendHorizontalAlignment;\n LEFT = new LegendHorizontalAlignment();\n CENTER = new LegendHorizontalAlignment();\n RIGHT = legendHorizontalAlignment = new LegendHorizontalAlignment();\n $VALUES = new LegendHorizontalAlignment[]{LEFT, CENTER, legendHorizontalAlignment};\n }\n\n public static LegendHorizontalAlignment valueOf(String string2) {\n return Enum.valueOf(LegendHorizontalAlignment.class, string2);\n }\n\n public static LegendHorizontalAlignment[] values() {\n return (LegendHorizontalAlignment[])$VALUES.clone();\n }\n }\n\n public static final class LegendOrientation\n extends Enum<LegendOrientation> {\n private static final /* synthetic */ LegendOrientation[] $VALUES;\n public static final /* enum */ LegendOrientation HORIZONTAL;\n public static final /* enum */ LegendOrientation VERTICAL;\n\n static {\n LegendOrientation legendOrientation;\n HORIZONTAL = new LegendOrientation();\n VERTICAL = legendOrientation = new LegendOrientation();\n $VALUES = new LegendOrientation[]{HORIZONTAL, legendOrientation};\n }\n\n public static LegendOrientation valueOf(String string2) {\n return Enum.valueOf(LegendOrientation.class, string2);\n }\n\n public static LegendOrientation[] values() {\n return (LegendOrientation[])$VALUES.clone();\n }\n }\n\n public static final class LegendVerticalAlignment\n extends Enum<LegendVerticalAlignment> {\n private static final /* synthetic */ LegendVerticalAlignment[] $VALUES;\n public static final /* enum */ LegendVerticalAlignment BOTTOM;\n public static final /* enum */ LegendVerticalAlignment CENTER;\n public static final /* enum */ LegendVerticalAlignment TOP;\n\n static {\n LegendVerticalAlignment legendVerticalAlignment;\n TOP = new LegendVerticalAlignment();\n CENTER = new LegendVerticalAlignment();\n BOTTOM = legendVerticalAlignment = new LegendVerticalAlignment();\n $VALUES = new LegendVerticalAlignment[]{TOP, CENTER, legendVerticalAlignment};\n }\n\n public static LegendVerticalAlignment valueOf(String string2) {\n return Enum.valueOf(LegendVerticalAlignment.class, string2);\n }\n\n public static LegendVerticalAlignment[] values() {\n return (LegendVerticalAlignment[])$VALUES.clone();\n }\n }\n\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 }",
"protected int get_max_litter_size()\n {\n return max_litter_size;\n }",
"public PropGeost(IntVar[] vars, int k, List<GeostObject> objects, List<ShiftedBox> shiftedBoxes,\n List<ExternalConstraint> ectr, boolean memo, HashMap<Pair<Integer, Integer>,\n Boolean> included, Solver solver) {\n super(vars, PropagatorPriority.VERY_SLOW, false);\n\n cst = new Constants();\n stp = new Setup(cst, solver.getEngine(), this);\n intermediateLayer = new IntermediateLayer();\n externalLayer = new ExternalLayer(cst, stp);\n geometricKernel = new GeometricKernel(cst, stp, externalLayer, intermediateLayer, memo, included, solver, this);\n\n cst.setDIM(k);\n\n stp.SetupTheProblem(objects, shiftedBoxes, ectr);\n\n //this should be changed and be provided globally to the system\n oIDs = new int[stp.getNbOfObjects()];\n for (int i = 0; i < stp.getNbOfObjects(); i++) {\n oIDs[i] = objects.get(i).getObjectId();\n }\n lastNonFixedO = solver.getEnvironment().makeInt(oIDs.length);\n\n this.s = solver;\n this.mengine = (MutePropagationEngine) solver.getEngine();\n }",
"Integer getLNDFlgs();",
"private void computeBinDelta(float delta, float delLbl) {\n float ee = (float) Math.pow(10, (int) Math.log10(delta));\n delta /= ee;\n while (delta > 10) {\n delta /= 10;\n ee *= 10;\n }\n while (delta < 1) {\n delta *= 10;\n ee /= 10;\n }\n if (delta > 7) {\n delta = 10 * ee;\n delLbl = 50 * ee;\n } else if (delta < 1.414) {\n delta = ee;\n delLbl = 5 * ee;\n } else if (delta > 3.333) {\n delta = 5 * ee;\n delLbl = 20 * ee;\n } else {\n delta = 2 * ee;\n delLbl = 10 * ee;\n }\n }",
"protected void calcMinMax() {\n }",
"private static long x(long d, long m, long over) {\n if (d > over) {\n return Long.MAX_VALUE;\n }\n if (d < -over) {\n return Long.MIN_VALUE;\n }\n return d * m;\n }",
"float getXStepMax();",
"private double ticsCalc(double deltaRange, int ticlimit){\n\t\t\tdouble tics = Math.pow(10, (int)Math.log10(deltaRange/ticlimit));\n\t\t\twhile(2.0*(deltaRange/(tics)) <= ticlimit) {\n\t\t\t\ttics /= 2.0;\n\t\t\t}\n\t\t\twhile((deltaRange/(tics))/2 >= ticlimit) {\n\t\t\t\ttics *= 2.0;\n\t\t\t}\n\t\t\treturn tics;\n\t\t}",
"public int getSizeMultipler() {\n return (int) Math.ceil(numberOfWordsOriginal / Parameters.SIZE_MULTIPLIER);\n }",
"public static void main(String[] args) {\n\n\t\tEuler40 eu=new Euler40(1000000);\n\t\tSystem.out.println(eu.get(0)*eu.get(9)*eu.get(99)*eu.get(999)*eu.get(9999)*eu.get(99999)*eu.get(999999));\n\t\t\n \n\t\t\n\t}",
"public float centimetresToGridUnits(float cm);",
"private void createMulLong(Code32 code, int op, int cond, int RdHigh, int RdLow, int Rn, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (RdHigh << 16) | (RdLow << 12) | (Rm << 8) | (0x9 << 4) | Rn;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private void initialize() {\n // Create a panel with the labels for the colorbar.\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.LINE_AXIS));\n labelPanel.add(minLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(medLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(maxLabel);\n\n // Add the color panel\n gradientPanel = new LinearGradientTools.ColorGradientPanel();\n\n // Add the panel indicating the error value color.\n errorPanel = new JPanel();\n //errorPanel.setBackground(heatMapModel.getColorScheme().getErrorReadoutColor());\n\n // Create a label for the panel indicating the missing value color.\n errorLabel = new JLabel(\" Err \");\n errorLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Add the panel indicating the missing value color.\n JPanel emptyPanel = new JPanel();\n emptyPanel.setBackground(ColorScheme.EMPTY_READOUT);\n\n // Create a label for the panel indicating the missing value color.\n emptyLabel = new JLabel(\" Empty \");\n emptyLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Set the font of the labels\n setLabelFont(labelFontSize);\n\n // Add the component to the main panel\n setLayout(new GridBagLayout());\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 0.9;\n constraints.fill = GridBagConstraints.BOTH;\n add(gradientPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(labelPanel, constraints);\n\n constraints.gridx = 1;\n constraints.weightx = -1;\n add(errorLabel, constraints);\n constraints.gridy = 0;\n constraints.weighty = 0.9;\n add(errorPanel, constraints);\n\n constraints.gridx = 2;\n add(emptyPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(emptyLabel, constraints);\n }",
"protected double Klm(Element elem, Integer l, Integer m){\n return elem.getElemFunc().integrate(ElemFuncType.dFdx, ElemFuncType.dFdx, l, m)+elem.getElemFunc().integrate(ElemFuncType.F, ElemFuncType.F, l, m);\r\n }",
"public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMandelbrotSet man = new MandelbrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = man.mandelbrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}",
"public void run(int runIndex, String fullPath) throws ClassNotFoundException, IOException, JMException {\n long seed = (long) 100;//can be randomly seeded.\n RandomGenerator RG = new RandomGenerator(seed);\n\n MetricsUtilPlus utils_ = new MetricsUtilPlus();\n Properties config = new Properties();\n\n String configFile = \"HF_Config_Benchmark/RealProblemSetting.txt\";\n String algorithms[] = {\"NSGAII\", \"SPEA2\", \"IBEA\", \"mIBEA\", \"GDE3\"};\n\n try {\n config.load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Failed to load configuration file!\");\n System.exit(-1);\n }\n\n int totalEval = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n int decisionPoints = Integer.parseInt(config.getProperty(\"DecisionPoints\"));//50 iterations\n\n int arcSize = Integer.parseInt(config.getProperty(\"ArchiveSize\"));\n populationSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n arcSize=100;\n populationSize=100;\n totalEval=250*100;\n totalEval=1000*100;\n \n //arcSize=30;\n //populationSize=30;\n //totalEval=30*50;\n\n //int populationSize = popSize;\n int fixedSolutionEvl = (int) (totalEval / decisionPoints);\n \n System.out.println(\"CF; decision=\"+decisionPoints+\";fixed=\"+fixedSolutionEvl+\";total=\"+totalEval);\n\n MetricsUtil util = new MetricsUtil();\n\n int maxEvals = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n\n String SolutionType = config.getProperty(\"SolutionType\");\n int popSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n popSize=100;\n //popSize=30;\n\n Problem[] problemInstances = new Problem[problemCreator.getQtdProblem()];\n int[] numberOfVar = new int[problemCreator.getQtdProblem()];\n double[] mutationProb = new double[problemCreator.getQtdProblem()];\n Operator[] mutations = new Operator[problemCreator.getQtdProblem()];\n\n //reference point for hypervolume calculation\n /*HyperVolumeMinimizationProblem hyp = new HyperVolumeMinimizationProblem();*/\n /*double[] truePFhypervolume = new double[problemCreator.getQtdProblem()];*/\n for (int problemIndex = 0; problemIndex < problemCreator.getQtdProblem(); problemIndex++) {\n\n problemInstances[problemIndex] = problemCreator.getProblemInstance(problemIndex);\n numberOfVar[problemIndex] = problemInstances[problemIndex].getNumberOfVariables();\n mutationProb[problemIndex] = (Double) 1.0 / numberOfVar[problemIndex];\n HashMap parameters = new HashMap();\n parameters.put(\"probability\", mutationProb[problemIndex]);\n double mutationDistributionIndex = Double.parseDouble(config.getProperty(\"MutationDistributionIndex\"));\n parameters.put(\"distributionIndex\", mutationDistributionIndex);\n String mutationType = config.getProperty(\"MutationType\");\n mutations[problemIndex] = new PolynomialMutation(mutationProb[problemIndex], mutationDistributionIndex);\n }\n\n LLHInterface[] algorithm = new LLHInterface[problemCreator.getQtdProblem()];\n\n System.out.println(\"Run \" + runIndex + \"....\");\n\n choiceFunction CF = new choiceFunction();\n\n for (int instanceIndex = 6; instanceIndex < problemInstances.length; instanceIndex++) {\n numberOfObj=problemInstances[instanceIndex].getNumberOfObjectives();\n reference = new double[numberOfObj];\n Arrays.fill(reference,1.0);\n minimumValues = new double[numberOfObj];\n maximumValues = new double[numberOfObj];\n\n for (int i = 0; i < numberOfObj; i++) {\n reference[i] = 1.0;\n }\n\n int remainEval = totalEval;\n List<S> inputPop = null;\n ArrayList<Integer> heuristicList = new ArrayList<Integer>();\n\n int chosenHeuristic = -1;\n\n QualityIndicators quality = new QualityIndicators();\n double[][] algorithmEffortArray = new double[algorithms.length][2];\n double[][] ROIArray = new double[algorithms.length][2];\n double[][] hyperVolumeArray = new double[algorithms.length][2];\n double[][] uniformDistributionArray = new double[algorithms.length][2];\n\n // for the purpose of computing hypervolume.\n initialiseExtremeValues();\n\n long[] elapsedTime = new long[algorithms.length];\n long[] lastInvokeTime = new long[algorithms.length];\n long[] executionTimeArray = new long[algorithms.length];\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = 0;\n }\n\n //initialise population for each instance which is used for each algorithm\n List<S> initialPopulation = ProblemCreator.generateInitialPopulation(problemInstances[instanceIndex], popSize);\n \n List[] resultSolutions = new List[algorithms.length];\n List[] inputSolutions = new List[algorithms.length];\n\n for (int i = 0; i < algorithms.length; i++) {\n inputSolutions[i] = new ArrayList(popSize);\n // at the beginning, all inputsolutions are set as the initialPopulation\n inputSolutions[i] = initialPopulation;\n resultSolutions[i] = new ArrayList(popSize);\n }\n LLHInterface eachAlgorithm = null;\n AlgorithmCreator ac = new AlgorithmCreator(problemInstances[instanceIndex]);\n System.out.println(problemInstances[instanceIndex].getName() + \" \" + problemInstances[instanceIndex].getNumberOfObjectives() + \" \" + problemInstances[instanceIndex].getNumberOfVariables());\n ac.setMaxEvaluationsAndPopulation(totalEval, populationSize);\n //Initialise the choice function matrix and get the initial algorithm\n for (int algorithmIndex = 0; algorithmIndex < algorithms.length; algorithmIndex++) {\n //initialise last invoke time (the start time of calling this algorithm) of each algorithm;\n heuristicList.add(algorithmIndex);\n lastInvokeTime[algorithmIndex] = System.currentTimeMillis();\n\n eachAlgorithm=ac.create(algorithmIndex, remainEval);\n\n long startTime = System.currentTimeMillis();\n\n try {\n resultSolutions[algorithmIndex] = eachAlgorithm.execute(/*initialPopulation*/inputSolutions[algorithmIndex], fixedSolutionEvl);\n } catch (Exception e) {\n e.printStackTrace();\n }\n //record the execution time of each algorithm\n long executionTime = System.currentTimeMillis() - startTime;\n executionTimeArray[algorithmIndex] = executionTime;\n\n remainEval -= fixedSolutionEvl;\n\n //iteration += 2;\n inputSolutions[algorithmIndex] = resultSolutions[algorithmIndex];\n //After executed the algorithm, compute the elapsed time. The end time of called this algorithm\n\n }// end algorithmIndex, executing each algorithm for initialisation the choice function matrix\n\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n // find worst points and best points for all the three populations\n for (int i = 0; i < algorithms.length; i++) {\n updateExtremeValues(resultSolutions[i]);\n }\n\n for (int i = 0; i < algorithms.length; i++) {\n algorithmEffortArray[i][0] = i;\n algorithmEffortArray[i][1] = quality.getAlgorithmEffort(executionTimeArray[i], fixedSolutionEvl);\n\n ROIArray[i][0] = i;\n ROIArray[i][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[i]);\n\n hyperVolumeArray[i][0] = i;\n\n hyperVolumeArray[i][1] = computeScaledHypervolume(resultSolutions[i]);\n //hyperVolumeArray[i][1] = quality.getHyperVolume(resultSolutions[i],realReference);\n\n uniformDistributionArray[i][0] = i;\n uniformDistributionArray[i][1] = quality.getUniformDistribution(resultSolutions[i]);\n\n }\n\n int numberOfMeasures = 4;\n int alpha = 30;//alpha =100;//if turbine number is 30\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //the result population of the chosen heuristic is served as the input population\n inputPop = resultSolutions[chosenHeuristic];\n\n while (remainEval > 0) {\n algorithm[instanceIndex]=ac.create(chosenHeuristic, remainEval);\n\n long beginTime = System.currentTimeMillis();\n //execute the chosen algorithm\n heuristicList.add(chosenHeuristic);\n if (fixedSolutionEvl > remainEval) {\n fixedSolutionEvl = remainEval;\n }\n //warranty size. necessary for small pop\n Random rsn=new SecureRandom();\n while(inputPop.size() < populationSize){\n inputPop.add(inputPop.get(rsn.nextInt(inputPop.size())));\n }\n resultSolutions[chosenHeuristic] = algorithm[instanceIndex].execute(inputPop, fixedSolutionEvl);\n inputPop = resultSolutions[chosenHeuristic];\n \n remainEval -= fixedSolutionEvl;\n\n // update executionTimeArray\n executionTimeArray[chosenHeuristic] = System.currentTimeMillis() - beginTime;\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n algorithmEffortArray[chosenHeuristic][1] = quality.getAlgorithmEffort(executionTimeArray[chosenHeuristic], fixedSolutionEvl);\n\n ROIArray[chosenHeuristic][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[chosenHeuristic]);\n\n updateExtremeValues(resultSolutions[chosenHeuristic]);\n hyperVolumeArray[chosenHeuristic][1] = computeScaledHypervolume(resultSolutions[chosenHeuristic]);\n //hyperVolumeArray[chosenHeuristic][1] = quality.getHyperVolume(resultSolutions[chosenHeuristic],realReference);\n\n uniformDistributionArray[chosenHeuristic][1] = quality.getUniformDistribution(resultSolutions[chosenHeuristic]);\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //heuristicList.add(chosenHeuristic);\t\t\n }//end while(remainEvl >0)\n \n String arrayListPath = fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"_ChosenHeuristic.txt\";\n utils_.printArrayListInteger(heuristicList, arrayListPath);\n List<S> obtainedSolutionSet = SolutionListUtils.getNondominatedSolutions(inputPop);\n new SolutionListOutput(obtainedSolutionSet)\n .setSeparator(\"\\t\")\n .setFunFileOutputContext(new DefaultFileOutputContext(fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"CF_FinalParetoFront\"\n + runIndex + \".txt\"))\n .print();\n //print out true front's hypervolume\n\n }//end each problem instance\n\n System.out.println(\"Finished\");\n\n }",
"private void construireGrilleParDefaut() {\r\n\t\tthis.m_builder = new BuilderHerbe();\r\n\t\tCircuit.getInstance().clearElements();\r\n\t\t\r\n\t\tfor(int x=0;x<this.m_nbLignes;x++) {\r\n\t\t\tfor(int y=0;y<this.m_nbColonnes;y++) {\r\n\t\t\t\tthis.m_builder.creerElement(this,x+\"_\"+y);\r\n\t\t\t\tthis.m_builder.getElement().setBorderElement(new PointillerBorder(Color.GRAY,1));\r\n\t\t\t\tthis.m_panelGrid.add((Element)this.m_builder.getElement());\r\n\t\t\t\t\r\n\t\t\t\tCircuit.getInstance().addElement(this.m_builder.getElement());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int getDelta(int histogramType);",
"Double getMultiplier();",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"private JPanel getJpanelStep5() {\n\t\tif (jpanelStep5 == null) {\n\t\t\tjlblTotalGradientDelayVolume = new JLabel();\n\t\t\tjlblTotalGradientDelayVolume.setText(\"\");\n\t\t\tjlblTotalGradientDelayVolume.setSize(new Dimension(145, 16));\n\t\t\tjlblTotalGradientDelayVolume.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n\t\t\tjlblTotalGradientDelayVolume.setLocation(new Point(260, 444));\n\t\t\tjlblNonMixingVolume = new JLabel();\n\t\t\tjlblNonMixingVolume.setText(\"\");\n\t\t\tjlblNonMixingVolume.setSize(new Dimension(145, 16));\n\t\t\tjlblNonMixingVolume.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblNonMixingVolume.setLocation(new Point(260, 424));\n\t\t\tjlblMixingVolume = new JLabel();\n\t\t\tjlblMixingVolume.setText(\"\");\n\t\t\tjlblMixingVolume.setSize(new Dimension(145, 16));\n\t\t\tjlblMixingVolume.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblMixingVolume.setLocation(new Point(260, 404));\n\t\t\tjlblTotalGradientDelayVolumeLabel = new JLabel();\n\t\t\tjlblTotalGradientDelayVolumeLabel.setBounds(new Rectangle(56, 444, 197, 16));\n\t\t\tjlblTotalGradientDelayVolumeLabel.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n\t\t\tjlblTotalGradientDelayVolumeLabel.setText(\"Total gradient delay volume:\");\n\t\t\tjlblNonMixingVolumeLabel = new JLabel();\n\t\t\tjlblNonMixingVolumeLabel.setBounds(new Rectangle(56, 424, 197, 16));\n\t\t\tjlblNonMixingVolumeLabel.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblNonMixingVolumeLabel.setText(\"Non-mixing volume:\");\n\t\t\tjlblMixingVolumeLabel = new JLabel();\n\t\t\tjlblMixingVolumeLabel.setBounds(new Rectangle(56, 404, 197, 16));\n\t\t\tjlblMixingVolumeLabel.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblMixingVolumeLabel.setText(\"Mixing volume:\");\n\t\t\tjlblPreColumnVolume = new JLabel();\n\t\t\tjlblPreColumnVolume.setBounds(new Rectangle(40, 384, 213, 16));\n\t\t\tjlblPreColumnVolume.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblPreColumnVolume.setText(\"Pre-column volume:\");\n\t\t\tjLabel1111 = new JLabel();\n\t\t\tjLabel1111.setBounds(new Rectangle(40, 472, 173, 16));\n\t\t\tjLabel1111.setText(\"Status:\");\n\t\t\tjlblPercentImprovement = new JLabel();\n\t\t\tjlblPercentImprovement.setBounds(new Rectangle(260, 316, 145, 17));\n\t\t\tjlblPercentImprovement.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblPercentImprovement.setText(\"\");\n\t\t\tjLabel121 = new JLabel();\n\t\t\tjLabel121.setBounds(new Rectangle(40, 316, 213, 16));\n\t\t\tjLabel121.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel121.setText(\"% improvement:\");\n\t\t\tjlblLastVariance = new JLabel();\n\t\t\tjlblLastVariance.setBounds(new Rectangle(260, 296, 145, 17));\n\t\t\tjlblLastVariance.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblLastVariance.setText(\"\");\n\t\t\tjLabel12 = new JLabel();\n\t\t\tjLabel12.setBounds(new Rectangle(40, 296, 213, 16));\n\t\t\tjLabel12.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel12.setText(\"Last iteration variance:\");\n\t\t\tjlblTimeElapsed = new JLabel();\n\t\t\tjlblTimeElapsed.setBounds(new Rectangle(260, 356, 145, 17));\n\t\t\tjlblTimeElapsed.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblTimeElapsed.setText(\"\");\n\t\t\tjlblPhase = new JLabel();\n\t\t\tjlblPhase.setBounds(new Rectangle(260, 336, 145, 17));\n\t\t\tjlblPhase.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblPhase.setText(\"I\");\n\t\t\tjlblVariance = new JLabel();\n\t\t\tjlblVariance.setBounds(new Rectangle(260, 276, 145, 16));\n\t\t\tjlblVariance.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblVariance.setText(\"\");\n\t\t\tjLabel111 = new JLabel();\n\t\t\tjLabel111.setBounds(new Rectangle(40, 356, 213, 16));\n\t\t\tjLabel111.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel111.setText(\"Time Elapsed:\");\n\t\t\tjLabel11 = new JLabel();\n\t\t\tjLabel11.setBounds(new Rectangle(40, 336, 213, 16));\n\t\t\tjLabel11.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel11.setText(\"Phase:\");\n\t\t\tjLabel1 = new JLabel();\n\t\t\tjLabel1.setBounds(new Rectangle(40, 276, 213, 16));\n\t\t\tjLabel1.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel1.setText(\"Variance (\\u03C3\\u00B2):\");\n\t\t\tjLabel = new JLabel();\n\t\t\tjLabel.setBounds(new Rectangle(40, 256, 213, 16));\n\t\t\tjLabel.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel.setText(\"Iteration #:\");\n\t\t\tjlblIterationNumber = new JLabel();\n\t\t\tjlblIterationNumber.setBounds(new Rectangle(260, 256, 145, 16));\n\t\t\tjlblIterationNumber.setDisplayedMnemonic(KeyEvent.VK_UNDEFINED);\n\t\t\tjlblIterationNumber.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjlblIterationNumber.setText(\"\");\n\t\t\tjpanelStep5 = new JPanel();\n\t\t\tjpanelStep5.setLayout(null);\n\t\t\tjpanelStep5.setBorder(BorderFactory.createTitledBorder(null, \"Step #4: Back-Calculate Gradient and Dead Time Profiles\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font(\"Dialog\", Font.BOLD, 12), new Color(51, 51, 51)));\n\t\t\tjpanelStep5.setBackground(Color.white);\n\t\t\tjpanelStep5.setBounds(new Rectangle(476, 0, 461, 569));\n\t\t\tjpanelStep5.add(getJScrollPane(), null);\n\t\t\tjpanelStep5.add(getJbtnCalculate(), null);\n\t\t\tjpanelStep5.add(jlblIterationNumber, null);\n\t\t\tjpanelStep5.add(jLabel, null);\n\t\t\tjpanelStep5.add(jLabel1, null);\n\t\t\tjpanelStep5.add(jLabel11, null);\n\t\t\tjpanelStep5.add(jLabel111, null);\n\t\t\tjpanelStep5.add(jlblVariance, null);\n\t\t\tjpanelStep5.add(jlblPhase, null);\n\t\t\tjpanelStep5.add(jlblTimeElapsed, null);\n\t\t\tjpanelStep5.add(jLabel12, null);\n\t\t\tjpanelStep5.add(jlblLastVariance, null);\n\t\t\tjpanelStep5.add(jLabel121, null);\n\t\t\tjpanelStep5.add(jlblPercentImprovement, null);\n\t\t\tjpanelStep5.add(getJProgressBar(), null);\n\t\t\tjpanelStep5.add(jLabel1111, null);\n\t\t\tjpanelStep5.add(jlblPreColumnVolume, null);\n\t\t\tjpanelStep5.add(jlblMixingVolumeLabel, null);\n\t\t\tjpanelStep5.add(jlblNonMixingVolumeLabel, null);\n\t\t\tjpanelStep5.add(jlblTotalGradientDelayVolumeLabel, null);\n\t\t\tjpanelStep5.add(jlblMixingVolume, null);\n\t\t\tjpanelStep5.add(jlblNonMixingVolume, null);\n\t\t\tjpanelStep5.add(jlblTotalGradientDelayVolume, null);\n\t\t}\n\t\treturn jpanelStep5;\n\t}",
"public MathProblem generateProblem(Difficulty difficulty) {\n\t\tMathProblemType operator = generateProblemType();\n\t\tint[] numbers = operator.generateNumbers(difficulty);\n\n\t\treturn new MathProblem(numbers, operator);\n\t}",
"public static long stepPerms(int n) {\n long[] d = new long[n];\n\n for (int j = 0; j < Math.min(3, n); j++) {\n d[j] = 1;\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n if (i > j) {\n d[i] += d[i - j - 1];\n }\n d[i] %= MOD;\n }\n }\n return d[n - 1];\n }",
"public void dormbr_(CHARACTER VECT,CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\n }",
"public ColorComponentScaler(double rm, double gm, double bm) {\n canFilterIndexColorModel = true;\n redMultiplier = rm;\n greenMultiplier = gm;\n blueMultiplier = bm;\n h = 0;\n s = 0;\n l = 0;\n }",
"public DancingBug(int[] steps) {\r\n\t\tnumber = 0;\r\n\t\tthis.steps = steps;\r\n\t}",
"public static void main(String[] args) {\n\t\tint lol = (int)(-1 % 6);\n\t\tint lol2 = (int)(-2 % 6);\n\t\tSystem.out.printf(\"%d %d\\n\", lol, lol2);\n\t\tVector3 megaCoords = Position.scaleToCoordinates(new Vector3(-200, 0, 5), CHUNK_MAX_SIZE);\n\t\tSystem.out.println(megaCoords);\n\t}",
"abstract int calculateMaximumSize(int axis);",
"private static int multAndDivFixer(int size){\n return size;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint[] nums = {1,0};\n\t\tSol_376.wiggleMaxLength(nums);\n\n\t}",
"int getTickLength();",
"public PlotBoltzmann(List<Atom> atoms) {\n super(atoms, \"Распределение Больцмана\");\n\n numberOfBars = 25;\n resolution = HEIGHT / numberOfBars;\n\n a = 2 * boltzmannAcceleration / meanSquareSpeed();\n\n xyChart.setXAxisTitle(\"Высота, пикс\");\n xyChart.setYAxisTitle(\"Концентрация * dV\");\n render();\n }",
"public static long g (int n, int m)\n\t{\n\t\tif (n == m)\n\t\t\treturn 1;\n\t\telse if (m == n-1)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn Multinomials.multinomial((n-m), m) * h(n-m); \n\t}",
"int getMaxTicksLimit();",
"private void montarLabelNumeros() {\n\r\n\t\tlblNumeros = new JLabel[this.dificuldade.getValor()][this.dificuldade.getValor()];\r\n\r\n\t\tBorder borda = BorderFactory.createLineBorder(Color.BLACK, 2);\r\n\r\n\t\tfor (int i = 0; i < lblNumeros.length; i++) {\r\n\t\t\tfor (int j = 0; j < lblNumeros.length; j++) {\r\n\t\t\t\tlblNumeros[i][j] = new JLabel(\"\", SwingConstants.CENTER);\r\n\t\t\t\tlblNumeros[i][j].setVisible(true);\r\n\r\n\t\t\t\tconfiguraFonteNumeros(lblNumeros[i][j]);//CHAMA PRA CONFIGURAR A FONTE BASEADO NA DIFICULDADE\r\n\r\n\t\t\t\tthis.painelJogo2.add(lblNumeros[i][j]);//ADICIONA NO PAINEL\r\n\t\t\t\tif (this.mapa.getCelula(i, j).isBomba() == false) {//\r\n\t\t\t\t\tif (this.mapa.getCelula(i, j).isEmBranco() == false) {//SE NAO FOR BOMBA NEM EM BRANCO CONFIGURA OS NUMEROS DAQUELE LABEL\r\n\t\t\t\t\t\tconfigurarNumeros(i, j);\r\n\t\t\t\t\t} \r\n\t\t\t\t} else {//SE FOR BOMBA, DEIXA OPACO, DEIXA O BACKGROUND VERMELHO E COLOCA O ICONE\r\n\t\t\t\t\tlblNumeros[i][j].setOpaque(true);\r\n\t\t\t\t\tlblNumeros[i][j].setBackground(Color.RED);\r\n\t\t\t\t\tlblNumeros[i][j].setIcon(iconBomba);\r\n\t\t\t\t}\r\n\t\t\t\tlblNumeros[i][j].setBorder(borda);//COLOCA UMA BORDA NO LABEL\r\n\t\t\t\tlblNumeros[i][j].setVisible(false);//DEIXA INVISIVEL, SO FICA VISIVEL QND O BOTAO DA MESMA POSICAO EH ABERTO\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public double getMiterLimit(\n )\n {return miterLimit;}",
"protected RealValuedPot createPot(int knobSize, String label, String labelsString,\r\n\t\t\t\t\t\t\tdouble maxValue, double minValue) {\r\n\t\t\r\n\t\tRealValuedPot p = new RealValuedPot(maxValue, minValue);\r\n\t\tconfigPot(p, knobSize, label, labelsString);\r\n\t\treturn p;\r\n\t}",
"public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}",
"@Override\r\n public long problem0(int size) {\r\n System.out.println(\"This is just an example, but please follow this template.\");\r\n String s = \"\";\r\n long start = System.currentTimeMillis();\r\n\r\n for (int i=0; i<size; i++) {\r\n s = s + i;\r\n }\r\n \r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }",
"private StringBuffer2D makeNumberLegend(int number){\n StringBuffer2D sb = new StringBuffer2D();\n //empty first lines\n for(int i=0; i<cellWidth-1 && i<2; i++) {\n sb.appendln(Color.GREEN.escape(\" \"));\n }\n\n //worker line\n sb.appendln(Color.GREEN.escape(Integer.toString(number)+\" \"));\n\n //level and row first lines and row bottom\n for(int i=0; i<cellWidth-2 && i<1; i++) {\n sb.appendln(Color.GREEN.escape(\" \"));\n }\n for(int n=0; n<2; n++){\n sb.appendln(Color.GREEN.escape(\" \"));\n }\n return sb;\n }",
"public static void highlyDivisibleTriangularNumber(){\n\n int position = 1;\n long triangleNumber;\n Long[] factors;\n do{\n position ++;\n triangleNumber = getTriangleNumber(position);\n factors = getFactors(triangleNumber); \n }while(factors.length <= 500);\n\n System.out.println(triangleNumber);\n}",
"@Test\n public void test84() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation(0.0, 0.0);\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getItemLabelPaint(871, (-1498));\n Number[][] numberArray0 = new Number[5][3];\n Number[] numberArray1 = new Number[2];\n int int0 = Calendar.LONG_FORMAT;\n numberArray1[0] = (Number) 2;\n int int1 = Float.SIZE;\n numberArray1[1] = (Number) 32;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[4];\n numberArray2[0] = (Number) 0.0;\n numberArray2[1] = (Number) 0.0;\n numberArray2[2] = (Number) 0.0;\n numberArray2[3] = (Number) 0.0;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[1];\n numberArray3[0] = (Number) 0.0;\n numberArray0[2] = numberArray3;\n Number[] numberArray4 = new Number[7];\n numberArray4[0] = (Number) 0.0;\n long long0 = XYBubbleRenderer.serialVersionUID;\n numberArray4[1] = (Number) (-5221991598674249125L);\n numberArray4[2] = (Number) 0.0;\n numberArray4[3] = (Number) 0.0;\n numberArray4[4] = (Number) 0.0;\n int int2 = JDesktopPane.LIVE_DRAG_MODE;\n numberArray4[5] = (Number) 0;\n numberArray4[6] = (Number) 0.0;\n numberArray0[3] = numberArray4;\n Number[] numberArray5 = new Number[9];\n numberArray5[0] = (Number) 0.0;\n numberArray5[1] = (Number) 0.0;\n numberArray5[2] = (Number) 0.0;\n numberArray5[3] = (Number) 0.0;\n numberArray5[4] = (Number) 0.0;\n numberArray5[5] = (Number) 0.0;\n numberArray5[6] = (Number) 0.0;\n numberArray5[7] = (Number) 0.0;\n int int3 = SwingConstants.HORIZONTAL;\n numberArray5[8] = (Number) 0;\n numberArray0[4] = numberArray5;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"org.jfree.data.ComparableObjectItem\");\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer();\n CategoryPlot categoryPlot0 = null;\n try {\n categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, categoryAxis0, (ValueAxis) logarithmicAxis0, (CategoryItemRenderer) lineAndShapeRenderer0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n assertThrownBy(\"org.jfree.data.category.DefaultIntervalCategoryDataset\", e);\n }\n }",
"@LargeTest\n public void testMandelbrotfp64() {\n TestAction ta = new TestAction(TestName.MANDELBROT_DOUBLE);\n runTest(ta, TestName.MANDELBROT_DOUBLE.name());\n }",
"NumarAndDenom Spigot_Level_2(int startVal, int increment, int numTimes)\n\t{\n\t\t\t\t\n\t\tBigDecimal totalNumar = new BigDecimal(0.0);\n\t\tBigDecimal totalDenom = new BigDecimal(1.0);\n\n\t\tBigDecimal sixTeen = new BigDecimal(16);\n\t\tBigDecimal sixTeenPow = new BigDecimal(1.0);\n\t\t\n\t\tBigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tint endVal = startVal + increment * numTimes;\n\t\t\n\t\tfor(int k=endVal ; k>startVal; k -= increment)\n\t\t{\n\t\t\tNumarAndDenom nd = Spigot_Level_1(k-increment, k);\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\ttotalNumar = totalNumar.multiply( nd.denom ).add( totalDenom.multiply( nd.numar ) );\n\t\t\ttotalDenom = totalDenom.multiply( nd.denom );\n\t\t\t\n\t\t\tif(k-increment != startVal)\n\t\t\t\ttotalDenom = totalDenom.multiply( sixTeenPowIncrement );\n\t\t\t\n\t\t\ttotTimeToMultiply += System.currentTimeMillis() - startTime;\n\t\t}\n\t\t\n\t\t//System.out.println(\"totalNumar precision : \"+totalNumar.precision());\n\t\t//System.out.println(\"totalDenom precision : \"+totalDenom.precision());\n\t\t\n\t\tNumarAndDenom numerAndDenom = new NumarAndDenom();\n\t\t\n\t\tnumerAndDenom.numar = totalNumar;\n\t\tnumerAndDenom.denom = totalDenom;\t\t\n\t\t\n\t\treturn numerAndDenom;\t\t\n\t}",
"private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}",
"public Biglietto(double prezzo, CodeEnum classe, boolean checkIn, boolean imbarcato, String numeroVolo, Cliente cliente) {\n this.prezzo = prezzo;\n this.posto = posto;\n this.classe = classe;\n this.checkIn = checkIn;\n this.imbarcato = imbarcato;\n this.numeroVolo = numeroVolo;\n this.cliente = cliente;\n }",
"public void setMiterLimit(float limit);",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in) ;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter number of equations(x%num=rem)\");\r\n\t\tint count = scan.nextInt() ;\r\n\t\t\r\n\t\tint[] num = new int[count] ;\r\n\t\tSystem.out.println(\"Enter num values\");\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\tnum[i] = scan.nextInt() ;\r\n\t\t}\r\n\t\t\r\n\t\tint[] rem = new int[count] ;\r\n\t\tSystem.out.println(\"Enter rem values\");\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\trem[i] = scan.nextInt() ;\r\n\t\t}\r\n\t\t\r\n\t\tint M = 1 ;\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\tM = M * num[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] m = new int[count] ;\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\tm[i] = M / num[i] ;\r\n\t\t}\r\n\t\t\r\n\t\tint[] y = new int[count] ;\r\n\t\tfor(int i = 0 ; i < count ; i++)\r\n\t\t{\r\n\t\t\tif(m[i] > num[i])\r\n\t\t\t{\r\n\t\t\t\ty[i] = m[i] % num[i] ;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//Use eegcd\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\tint x = 0;\r\n\t\tfor(int i = 0 ; i < count ; i++)\r\n\t\t{\r\n\t\t\tx = x + y[i]*m[i]*rem[i];\r\n\t\t}\r\n\t\tx = x%M ;\r\n\t\tSystem.out.println(\"X = \" + x);\r\n\t}",
"public void populateGrid(int grid_size,int [][] mine_positions,int tot_mines){\n\t\tfor(int row=0;row<grid_size;row++){\n\t\t\tfor(int col=0;col<grid_size;col++){\n\t\t\t\n\t\t\t\tfor(int k=0;k<tot_mines;k++){\n\t\t\t\t\tif(row==mine_positions[k][0]&&col==mine_positions[k][1]){\n\t\t\t\t\t\tgrid[row][col].content='M';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint mine_ctr=0;\n\t\t//Populating all cells\n\t\tfor(int row=0;row<grid_size;row++){\n\t\t\tfor(int col=0;col<grid_size;col++){\n\t\t\t\t\n\t\t\t\tmine_ctr=0;\n\t\t\t\t//Checking number of mines surrounding each cell\n\t\t\t\tif(grid[row][col].content=='M'){\n\t\t\t\t\tgrid[row][col].no_of_mines=0;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t//Top left\n\t\t\t\t\tif(grid[row][col].top_left==1&&grid[row-1][col-1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Top \n\t\t\t\t\tif(grid[row][col].top==1&&grid[row-1][col].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Top right\n\t\t\t\t\tif(grid[row][col].top_right==1&&grid[row-1][col+1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Left\n\t\t\t\t\tif(grid[row][col].left==1&&grid[row][col-1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Right\n\t\t\t\t\tif(grid[row][col].right==1&&grid[row][col+1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Bottom left\n\t\t\t\t\tif(grid[row][col].bottom_left==1&&grid[row+1][col-1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\t\n\t\t\t\t\t//Bottom\n\t\t\t\t\tif(grid[row][col].bottom==1&&grid[row+1][col].content=='M')\n\t\t\t\t\t\tmine_ctr++;\t\n\t\t\t\t\t\n\t\t\t\t\t//Bottom right\n\t\t\t\t\tif(grid[row][col].bottom_right==1&&grid[row+1][col+1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[row][col].no_of_mines=mine_ctr;\n\t\t\t}\n\t\t}\n\t}",
"void updateLT (int size, LeapNode [][] pa, LeapNode [][] na, LeapNode[] n, LeapNode[][] newNode, int[] maxHeight,\n\t\t\t\t\t\t\t\tboolean[] changed){\n\t}",
"private void paintSteps(Graphics2D g2d, int startX, int startY,\r\n\t\t\t\tint stepNumber, Color bullit, Color text) {\r\n\t\t\tint x = startX;\r\n\t\t\tint y = startY;\r\n\t\t\tint ellipseSize = 5;\r\n\t\t\ty = y + stepNumber * 15;\r\n\t\t\tg2d.setColor(bullit);\r\n\t\t\tEllipse2D.Float e = new Ellipse2D.Float(x, y, ellipseSize,\r\n\t\t\t\t\tellipseSize);\r\n\t\t\tg2d.fillOval(x, y, ellipseSize, ellipseSize);\r\n\t\t\tg2d.draw(e);\r\n\t\t\tg2d.setColor(text);\r\n\t\t\tg2d.drawString(this.steps[stepNumber], x + 12, y + 7);\r\n\t\t}",
"ArrayList<Integer> getStepCounterTileX();",
"@Override\n public double getMiterLimit() {\n return graphicsEnvironmentImpl.getMiterLimit(canvas);\n }",
"private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }",
"public PantallaFinal(PantallaIntermedia g, boolean m, long tiempoFinal) {\n initComponents();\n this.gui = g;\n this.multi = m;\n this.tiempoFinal = tiempoFinal;\n if (this.tiempoFinal / 60 == 0) {\n\n jLabel1.setText(jLabel1.getText() + tiempoFinal % 60 + \"s\");\n\n } else {\n jLabel1.setText(jLabel1.getText() + tiempoFinal / 60 + \"m\" + tiempoFinal % 60 + \"s\");\n\n }\n\n }",
"public GoogleplexBase(int level, boolean playingMath)\n\t{\n\t\tsuper();\n\t\t\n\t\tisPlayingMath = playingMath;\n\t\t\n\t\tres = ResourceBundle.getBundle(\"Resource\"); //first line\n\t\t\t\t\n\t\tContainer c = getContentPane();\n\t\tc.setLayout(null);\n\t\tc.setBackground(Color.WHITE);\t\t\n\t\tsetSize(1200, 900);\n\t\t\n\t\t//makes the level passed through from main menu into global variable\n\t\tlevelChosen = level;\n\t\t\t\n\t\t//goes to method which randomly selects an operation sign depending on\n\t\t//difficulty selected\n\t\toperationSign = getOperation(levelChosen);\n\t\t\n\t\t//Creates random numbers based on level selected\n\t\tfor(int i = 0; i < 9; i++)\n\t\t{\n\t\t\tif(level == 0 || level == 1 || level == 3)\n\t\t\t{\n\t\t\t\trandomNumList[i] = getRandomNum(1,9);\n\t\t\t}\n\t\t\telse if(level == 2)\n\t\t\t{\n\t\t\t\trandomNumList[i] = getRandomNum(1,12);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Randomly picks three numbers that are different from each other to use to make a viable equation\n\t\tint temp = getRandomNum(0,8);\n\t\tint temp2 = getRandomNum(0,8);\n\t\tint temp3 = getRandomNum(0,8);\n\t\twhile(temp == temp2)\n\t\t{\n\t\t\ttemp2 = getRandomNum(0,8);\n\t\t}\n\t\twhile(temp2 == temp3 || temp == temp3)\n\t\t{\n\t\t\ttemp3 = getRandomNum(0,8);\n\t\t}\n\t\t// Will make sure there will be at least one viable equation\n\t\tswitch (operationSign)\n\t\t{\t\t\n\t\t\tcase 1:\n\t\t\tcase 2:\n\t\t\trandomNumList[temp] = randomNumList[temp2] + randomNumList[temp3];\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\tcase 4:\n\t\t\trandomNumList[temp] = randomNumList[temp2] * randomNumList[temp3];\n\t\t}\n\t\t\n\t\t//Creates the buttons on which the random numbers are on\n\t\t//will also set the text of the button to the word version of that number\n\t\tfor(int i = 0; i < 9; i++)\n\t\t{\n\t\t\tbuttonList[i] = new JButton();\n\t\t\t\t\t\t\n\t\t\tinitButton(i);\n\t\t\t\n\t\t\tbuttonList[i].setBackground(Color.black);\n\t\t\tbuttonList[i].setOpaque(false);\n\t\t\tbuttonList[i].setBorderPainted(false);\n\t\t\tbuttonList[i].setForeground(Color.BLUE);\n\t\t\tbuttonList[i].addActionListener(this);\n\t\t\tc.add(buttonList[i]);\n\t\t}\n\t\t\n\t\tscore = 0;\n\t\n\t\t//Creates label for the first number user enters\n\t\tnum1Label = new JLabel();\n\t\tnum1Label.setBounds(815, 525, 90, 60);\n\t\tnum1Label.setFont(new Font(\"Arial\", Font.BOLD, 45));\n\t\tc.add(num1Label);\n\t\t\n\t\t//Creates label to display operation sign chosen\n\t\toperationLabel = new JLabel(operationSign (operationSign));\n\t\toperationLabel.setBounds(890, 520, 60, 60);\n\t\toperationLabel.setFont(new Font(\"Arial\", Font.BOLD, 50));\n\t\toperationLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t//operationLabel.setForeground(new Color(18, 109, 18));\n\t\tc.add(operationLabel);\n\t\t\n\t\t//Creates label for the second number the user enters\n\t\tnum2Label = new JLabel();\n\t\tnum2Label.setBounds(935, 525, 90, 60);\n\t\tnum2Label.setFont(new Font(\"Arial\", Font.BOLD, 45));\n\t\tc.add(num2Label);\n\t\t\t\t\n\t\t//Creates label for the third number the user enters\n\t\tnum3Label = new JLabel();\n\t\tnum3Label.setBounds(1070, 525, 90, 60);\n\t\tnum3Label.setFont(new Font(\"Arial\", Font.BOLD, 45));\n\t\tc.add(num3Label);\n\t\t\n\t\t//Creates the reset button\n\t\tresetButton = new JButton();\n\t\tresetButton.setBounds(890, 720, 250, 60);\n\t\tImageIcon resetIcon = new ImageIcon(\"Images/Clear Button.png\");\n\t\tresetButton.setIcon(resetIcon);\n\t\tresetButton.setOpaque(false);\n\t\tresetButton.setBorderPainted(false);\n\t\tresetButton.setBackground(new Color(0,0,0));\n\t\tresetButton.addActionListener(this);\n\t\tc.add(resetButton);\n\t\t\n\t\t//Creates the check button\n\t\tcheckEquationButton = new JButton();\n\t\tcheckEquationButton.setBounds(890, 640, 250, 60);\n\t\tImageIcon checkIcon = new ImageIcon(\"Images/Check Button.png\");\n\t\tcheckEquationButton.setIcon(checkIcon);\n\t\tcheckEquationButton.setOpaque(false);\n\t\tcheckEquationButton.setBorderPainted(false);\n\t\tcheckEquationButton.setBackground(new Color(0,0,0));\n\t\tcheckEquationButton.addActionListener(this);\n\t\tcheckEquationButton.setEnabled(false);\n\t\tc.add(checkEquationButton);\n\t\t\n\t\t//Creates label to display image\n\t\tcheckEquationLabel = new JLabel();\n\t\tcheckEquationLabel.setBounds(720, 525, 95, 95);\n\t\tc.add(checkEquationLabel);\n\t\t\n\t\t//Creates exit button\n\t\texitButton = new JButton();\n\t\texitButton.setBounds(890, 90, 250, 60);\n\t\tImageIcon exitIcon = new ImageIcon(\"Images/Exit Button.png\");\n\t\texitButton.setIcon(exitIcon);\n\t\texitButton.setOpaque(false);\n\t\texitButton.setBorderPainted(false);\n\t\texitButton.setBackground(new Color(0,0,0));\n\t\texitButton.addActionListener(this);\n\t\tc.add(exitButton);\n\t\t\n\t\t//Creates label to store bonus number\n\t\tbonus1Label = new JLabel();\n\t\tbonus1Label.setBounds(830, 365, 90, 60);\n\t\tbonus1Label.setHorizontalAlignment(bonus1Label.CENTER);\n\t\tbonus1Label.setFont(new Font (\"Arial\", Font.BOLD, 40));\n\t\tc.add(bonus1Label);\n\t\t\n\t\t//Creates label to store bonus number\n\t\tbonus2Label = new JLabel();\n\t\tbonus2Label.setBounds(945, 365, 90, 60);\n\t\tbonus2Label.setHorizontalAlignment(bonus2Label.CENTER);\n\t\tbonus2Label.setFont(new Font (\"Arial\", Font.BOLD, 40));\n\t\tc.add(bonus2Label);\n\t\t\n\t\t//Creates label to store bonus number\n\t\tbonus3Label = new JLabel();\n\t\tbonus3Label.setBounds(1060, 365, 90, 60);\n\t\tbonus3Label.setHorizontalAlignment(bonus3Label.CENTER);\n\t\tbonus3Label.setFont(new Font (\"Arial\", Font.BOLD, 40));\n\t\tc.add(bonus3Label);\n\t\t\n\t\t//Creates label to display timer\n\t\ttimerLabel = new JLabel();\n\t\ttimerLabel.setBounds(880, 220, 200, 50);\n\t\ttimerLabel.setFont(new Font (\"Arial\", Font.BOLD, 40));\n\t\tc.add(timerLabel);\n\t\t\n\t\t//Creates label to display score\n\t\tscoreLabel = new JLabel(\"\" + score);\n\t\tscoreLabel.setBounds(1060, 220, 200, 50);\n\t\tscoreLabel.setFont(new Font (\"Arial\", Font.BOLD, 40));\n\t\tc.add(scoreLabel);\n\t\t\n\t\t//Creates label that will display image based on difficulty\n\t\tJLabel levelImageLabel = new JLabel();\n\t\tlevelImageLabel.setBounds(100, 790, 585, 70);\n\t\t\n\t\t//Determines the level ImageIcon that will be displayed \n\t\tif(levelChosen == 0)\n\t\t{\n\t\t\tlevelIcon = new ImageIcon(\"Images/easy.png\");\n\t\t}\n\t\telse if(levelChosen == 1)\n\t\t{\n\t\t\tlevelIcon = new ImageIcon(\"Images/medium.png\");\n\t\t}\n\t\telse if(levelChosen == 2)\n\t\t{\n\t\t\tlevelIcon = new ImageIcon(\"Images/hard.png\");\n\t\t}\n\t\telse if(levelChosen == 3)\n\t\t{\n\t\t\tlevelIcon = new ImageIcon(\"Images/Practise.png\");\n\t\t}//end if\n\t\t\n\t\t//Adds the level ImageIcon\n\t\tlevelImageLabel.setIcon(levelIcon);\n\t\tc.add(levelImageLabel);\n\t\t\n\t\t//Adds background label\n\t\tbackgroundLabel = new JLabel();\n\t\tbackgroundLabel.setBounds(0, 0, 1290, 900);\n\t\t\n\t\t//Sets Math ImageIcon\n\t\tImageIcon backgroundImage = new ImageIcon(\"Images/Googleplex Math.jpg\");\n\t\t\n\t\t//If they choose to play Language mood, sets Language ImageIcon\n\t\tif(false == isPlayingMath)\n\t\t{\n\t\t\tbackgroundImage = new ImageIcon(\"Images/Googleplex Language.jpg\");\n\t\t}\n\t\tbackgroundLabel.setIcon(backgroundImage);\n\t\tbackgroundLabel.setOpaque(true);\n\t\tc.add(backgroundLabel);\n\t\t\n\t\t//Starts timer if not on practise mode\n\t\tif (levelChosen < 3)\n\t\t{\n\t\ttimer = new Timer (1000, new GameTimer(120, this, levelChosen));\n\t\ttimer.start();\n\t\tisTimerActive = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttimerLabel.setText(\"X\");\n\t\t}//end if\n\t\t\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t//Rotate window\n\t\tfor(int i = 0; i<4; i++)\n\t\t{\n\t\t\tRobot r = null;\n\t\t\ttry\n\t\t\t{\n\t\t\tr = new Robot();\n\t\t\t}\n\t\t\tcatch(AWTException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tr.keyPress(KeyEvent.VK_ALT);\n\t\t\tr.keyPress(KeyEvent.VK_SHIFT);\n\t\t\tr.keyPress(KeyEvent.VK_R);\n\t\t\tr.keyRelease(KeyEvent.VK_ALT);\n\t\t\tr.keyRelease(KeyEvent.VK_SHIFT);\n\t\t\tr.keyRelease(KeyEvent.VK_R);\n\t\t}//end Robot\t\t\n\t}",
"public int getBeta1(int g, int t, int m, int n);"
] |
[
"0.5336437",
"0.48121625",
"0.46698248",
"0.45236322",
"0.45058465",
"0.4496038",
"0.44833055",
"0.4445906",
"0.4432952",
"0.44248226",
"0.43924814",
"0.43823212",
"0.43544966",
"0.4342381",
"0.43299407",
"0.43134266",
"0.43129432",
"0.42877728",
"0.4286478",
"0.42840993",
"0.4272061",
"0.4269204",
"0.42622918",
"0.42589977",
"0.42270607",
"0.4222719",
"0.42213413",
"0.4219579",
"0.4217894",
"0.42150193",
"0.420766",
"0.420705",
"0.42007434",
"0.41972646",
"0.4191345",
"0.4184217",
"0.41791302",
"0.41786462",
"0.41722226",
"0.41709358",
"0.41692793",
"0.41563636",
"0.41472894",
"0.4145511",
"0.41448724",
"0.41357887",
"0.4133844",
"0.41226262",
"0.41224363",
"0.4116002",
"0.41140142",
"0.41119775",
"0.4110701",
"0.4105672",
"0.4103525",
"0.41023543",
"0.41005188",
"0.40981722",
"0.40906912",
"0.40883347",
"0.40879783",
"0.4084579",
"0.40730014",
"0.40714726",
"0.40686417",
"0.4063826",
"0.406305",
"0.40624726",
"0.40612298",
"0.4059186",
"0.40579212",
"0.40556255",
"0.40547448",
"0.405358",
"0.40532723",
"0.40517238",
"0.4047976",
"0.404467",
"0.403821",
"0.40375388",
"0.40356043",
"0.4034193",
"0.40313458",
"0.40267384",
"0.40245968",
"0.4024528",
"0.40225485",
"0.40224737",
"0.40217617",
"0.40206963",
"0.40204528",
"0.40142068",
"0.40135953",
"0.40131935",
"0.4010767",
"0.40042883",
"0.40042758",
"0.4003431",
"0.4002052",
"0.39979857"
] |
0.7556343
|
0
|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
|
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jPanel4 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox<>();
jTextField9 = new javax.swing.JTextField();
jTextField10 = new javax.swing.JTextField();
jTextField11 = new javax.swing.JTextField();
jTextField12 = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jComboBox2 = new javax.swing.JComboBox<>();
jLabel10 = new javax.swing.JLabel();
jTextField3 = new javax.swing.JTextField();
jLabel17 = new javax.swing.JLabel();
jComboBox3 = new javax.swing.JComboBox();
jTextField7 = new javax.swing.JComboBox<>();
jPanel5 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jTextField13 = new javax.swing.JTextField();
jTextField1 = new javax.swing.JTextField();
jLabel16 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
jLabel64 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel48 = new javax.swing.JLabel();
date = new javax.swing.JLabel();
time = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
jLabel24 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jPanel1.setBackground(new java.awt.Color(0, 0, 0));
jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jPanel4.setBackground(new java.awt.Color(51, 51, 51));
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(255, 204, 0))); // NOI18N
jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Name:");
jPanel4.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 120, 70, 30));
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setText("Mobile No:");
jPanel4.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 70, -1, 30));
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("Customer NIC :");
jPanel4.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 220, 150, 30));
jLabel5.setBackground(new java.awt.Color(255, 255, 255));
jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel5.setForeground(new java.awt.Color(255, 255, 255));
jLabel5.setText("Email:");
jPanel4.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 270, -1, 30));
jLabel6.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("Address:");
jPanel4.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 320, -1, 30));
jLabel7.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel7.setForeground(new java.awt.Color(255, 255, 255));
jLabel7.setText("Customer ID:");
jPanel4.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 170, -1, 30));
jLabel8.setBackground(new java.awt.Color(255, 255, 255));
jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("Customer type:");
jPanel4.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 120, 140, 30));
jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "---", "Silver", "Gold", "Platinum" }));
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1ActionPerformed(evt);
}
});
jPanel4.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 120, 150, 30));
jTextField9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField9.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jPanel4.add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, 190, 30));
jTextField10.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField10.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jPanel4.add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 270, 300, 30));
jTextField11.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField11.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jPanel4.add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 320, 450, 30));
jTextField12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField12.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField12ActionPerformed(evt);
}
});
jTextField12.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jTextField12KeyTyped(evt);
}
});
jPanel4.add(jTextField12, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 70, 170, 30));
jLabel2.setBackground(new java.awt.Color(0, 102, 102));
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("L.No :");
jPanel4.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, 30));
jLabel9.setForeground(new java.awt.Color(255, 255, 255));
jPanel4.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 20, 30, 30));
jTextField2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jTextField2KeyTyped(evt);
}
});
jPanel4.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 70, 70, 30));
jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton2.setText("Clear");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel4.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(1120, 250, 120, 30));
jButton3.setFont(new java.awt.Font("Anklepants", 0, 18)); // NOI18N
jButton3.setText("Insert");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jPanel4.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(1110, 100, 140, 30));
jButton4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton4.setText("Update Profile");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jPanel4.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(1120, 150, 120, 30));
jButton5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton5.setText("Delete Profile");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jPanel4.add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1120, 200, 120, 30));
jComboBox2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Mr.", "Mrs." }));
jPanel4.add(jComboBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 120, 60, 30));
jLabel10.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel10.setForeground(new java.awt.Color(255, 255, 255));
jLabel10.setText("/");
jPanel4.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(860, 70, 30, 30));
jTextField3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jTextField3KeyTyped(evt);
}
});
jPanel4.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(880, 70, 180, 30));
jLabel17.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel17.setForeground(new java.awt.Color(255, 255, 255));
jLabel17.setText("No :");
jPanel4.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, 40, 30));
jPanel4.add(jComboBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 170, 240, 30));
jTextField7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField7ActionPerformed(evt);
}
});
jPanel4.add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 122, 240, 30));
jPanel1.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 1280, 380));
jPanel5.setBackground(new java.awt.Color(51, 51, 51));
jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null}
},
new String [] {
"Name", "Mobile No", "Work", "Email", "Address", "Driver", "Customer type"
}
));
jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jTable1MouseClicked(evt);
}
});
jScrollPane1.setViewportView(jTable1);
jPanel5.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 1260, 170));
jTextField13.setBackground(new java.awt.Color(51, 51, 51));
jTextField13.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField13.setForeground(new java.awt.Color(255, 255, 255));
jTextField13.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField13.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
jTextField13KeyPressed(evt);
}
public void keyReleased(java.awt.event.KeyEvent evt) {
jTextField13KeyReleased(evt);
}
});
jPanel5.add(jTextField13, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 10, 130, 30));
jTextField1.setBackground(new java.awt.Color(51, 51, 51));
jTextField1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField1.setForeground(new java.awt.Color(255, 255, 255));
jTextField1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jPanel5.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(1140, 10, 80, 30));
jLabel16.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel16.setForeground(new java.awt.Color(255, 255, 255));
jLabel16.setText("Name OR CID :");
jPanel5.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 150, 30));
jTextField4.setBackground(new java.awt.Color(51, 51, 51));
jTextField4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jTextField4.setForeground(new java.awt.Color(255, 255, 255));
jTextField4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField4.setOpaque(false);
jTextField4.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
jTextField4KeyReleased(evt);
}
public void keyTyped(java.awt.event.KeyEvent evt) {
jTextField4KeyTyped(evt);
}
});
jPanel5.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 10, 80, 30));
jLabel64.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jLabel64.setForeground(new java.awt.Color(255, 255, 255));
jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/2-Hot-Printer-icon.png"))); // NOI18N
jLabel64.setToolTipText("See All");
jLabel64.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel64MouseClicked(evt);
}
});
jPanel5.add(jLabel64, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 0, 40, 50));
jLabel15.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel15.setForeground(new java.awt.Color(255, 255, 255));
jLabel15.setText("No :");
jPanel5.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 40, 20));
jLabel14.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel14.setForeground(new java.awt.Color(255, 255, 255));
jLabel14.setText("No :");
jPanel5.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(1090, 10, 40, 30));
jLabel48.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/Blue-Backup-B-icon(1).png"))); // NOI18N
jLabel48.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel48MouseClicked(evt);
}
});
jPanel5.add(jLabel48, new org.netbeans.lib.awtextra.AbsoluteConstraints(1230, 10, 40, 30));
jPanel1.add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 460, 1280, 230));
date.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
date.setForeground(new java.awt.Color(255, 255, 0));
date.setText("date");
jPanel1.add(date, new org.netbeans.lib.awtextra.AbsoluteConstraints(1150, 40, 140, 20));
time.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
time.setForeground(new java.awt.Color(255, 255, 0));
time.setText("time");
jPanel1.add(time, new org.netbeans.lib.awtextra.AbsoluteConstraints(1150, 10, 120, 20));
jLabel11.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 24)); // NOI18N
jLabel11.setForeground(new java.awt.Color(255, 255, 255));
jLabel11.setText("CLIENT INFORMATION");
jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 340, 30));
jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 180, 10));
jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/go_previous_blue.png"))); // NOI18N
jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel24MouseClicked(evt);
}
});
jPanel1.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 20, 40, 30));
jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/Apps-Home-icon.png"))); // NOI18N
jLabel12.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel12MouseClicked(evt);
}
});
jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 10, 40, 50));
getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1300, 700));
pack();
setLocationRelativeTo(null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public kunde() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public MusteriEkle() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"public sinavlar2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.73191524",
"0.7290383",
"0.7290383",
"0.7290383",
"0.7286656",
"0.72480965",
"0.72141695",
"0.72080517",
"0.7195647",
"0.7190378",
"0.71841127",
"0.71591616",
"0.71478844",
"0.7093131",
"0.70816",
"0.70577854",
"0.6987355",
"0.69769996",
"0.69551086",
"0.69545007",
"0.69450074",
"0.6944328",
"0.6937169",
"0.6931577",
"0.6927632",
"0.692602",
"0.6925518",
"0.6911884",
"0.69111824",
"0.6894571",
"0.68920577",
"0.68919677",
"0.6891793",
"0.6889509",
"0.6884149",
"0.6883326",
"0.68815684",
"0.68778104",
"0.6876167",
"0.6873792",
"0.687072",
"0.6859156",
"0.6856744",
"0.6855844",
"0.6854915",
"0.68542576",
"0.68534344",
"0.6852383",
"0.6852383",
"0.6845196",
"0.68370795",
"0.6836554",
"0.6830521",
"0.68290323",
"0.6827711",
"0.68255705",
"0.6822908",
"0.68180746",
"0.68179923",
"0.6811043",
"0.6809639",
"0.68095654",
"0.6808346",
"0.68082345",
"0.68017685",
"0.67943394",
"0.67933774",
"0.6793048",
"0.6791145",
"0.67897683",
"0.6788624",
"0.6788244",
"0.6781776",
"0.67674303",
"0.6767318",
"0.6764773",
"0.6758625",
"0.6757251",
"0.6753117",
"0.6751926",
"0.67432684",
"0.6740031",
"0.67374456",
"0.6737373",
"0.6734546",
"0.6727067",
"0.67267615",
"0.67210555",
"0.6716679",
"0.6715794",
"0.6715694",
"0.6709429",
"0.67086613",
"0.67038596",
"0.6702431",
"0.67014176",
"0.67002505",
"0.66993576",
"0.6694831",
"0.66915953",
"0.6690518"
] |
0.0
|
-1
|
Builds the StreetNameField and populates the ComboBox with the names of the Streets within the Level.
|
private void buildStreetNameField(JPanel panel) {
streetNameField = new JComboBox<>();
streetNameField.setName("streetNameField");
Dimension dimension = streetNameField.getPreferredSize();
streetNameField.setPreferredSize(new Dimension(150, dimension.height));
streetNameField.addActionListener(new StreetNameListener(currentRooms, bindingService));
populateStreetNames();
JLabel streetNameLabel = new JLabel(localization.get("StreetName"), JLabel.RIGHT);
streetNameLabel.setLabelFor(streetNameField);
panel.add(streetNameLabel);
panel.add(streetNameField);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void populateStreetNames() {\n streetNameField.removeAllItems();\n streetNameField.addItem(\"\");\n for (Street street : bindingService.getStreets()) {\n streetNameField.addItem(street.getName());\n }\n }",
"public void initAddressPanel() {\n\t\n\t\t\n\t\t\n\t\tlblAddressLine1 = new JCMSLabel();\n\t\ttxtAddressLine1 = getJCMSTextField();\n\t\tlblAddressLine2 = new JCMSLabel();\n\t\ttxtAddressLine2 = getJCMSTextField();\n\t\tlblZipCode = new JCMSLabel();\n\t\ttxtZipCode = getJCMSTextField();\n\t\tlblCity = new JCMSLabel();\n\t\ttxtCity = getJCMSTextField();\n\t\tlblState = new JCMSLabel();\n\t\ttxtState = getJCMSTextField();\n\t\tlblPhone1 = new JCMSLabel();\n\t\ttxtPhone1 = getJCMSMaskedTextField();\n\t\ttxtPhone1.setName(\"PHONE1\");\n\t\tif (nameSpec != null && nameSpec.length() > 0)\n\t\t\ttxtPhone1.setDocument(new TextFilter(nameSpec, 15));\n\t\tlblAddressLine1.setLabelFor(txtAddressLine1);\n\t\tlblAddressLine1.setText(RESOURCE.getString(\"AddressLine1\"));\n\t\tlblAddressLine2.setText(RESOURCE.getString(\"AddressLine2\"));\n\t\tlblZipCode.setText(RESOURCE.getString(\"Zip Code\"));\n\t\tlblCity.setText(RESOURCE.getString(\"City\"));\n\t\tlblState.setText(RESOURCE.getString(\"State\"));\n\t\tlblPhone1.setText(RESOURCE.getString(\"Phone 1\"));\n\t\tresetAddressPanelType(this.addressPanelType);\n\t\t/**\n\t\t * Text Verifier\n\t\t */\n\t\t// Text limits set as per max sizes allowed over various db tables involved\n\t\t// -MSB 02/10/06\n\t\t// Since Input is free form and we just want to\n\t\t// restrict the text length we don't need to filter\n\t\t// input. This resolves double-byte character input issues.\n\t\ttxtAddressLine1.setDocument(new CMSTextFilter(40));\n\t\ttxtAddressLine2.setDocument(new CMSTextFilter(30));\n\t\ttxtCity.setDocument(new CMSTextFilter(30));\n\t\ttxtState.setDocument(new CMSTextFilter(30));\n\t\ttxtZipCode.setDocument(new CMSTextFilter(10));\n\t\ttxtPhone1.setDocument(new CMSTextFilter(15));\n\t\ttxtPhone2.setDocument(new CMSTextFilter(15));\n\t\ttxtPhone3.setDocument(new CMSTextFilter(15));\n\t}",
"private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }",
"public void setStreetFieldName(final String value) {\n setProperty(STREET_FIELD_NAME_KEY, value);\n }",
"private void populateFullname() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getFN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n fullname.setAdapter(dataAdapter);\n\n }",
"private void displayCountryFields() {\n FieldRelatedLabel countryLabel = new FieldRelatedLabel(\"Country\", 750, 470);\n try {\n country = new CountryComboBox(750, 500);\n sceneNodes.getChildren().add(country);\n } catch (IOException e) { e.printStackTrace(); }\n\n\n sceneNodes.getChildren().addAll(countryLabel);\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public void setStreetName(String streetName) {\r\n this.streetName = streetName;\r\n }",
"public void setStreetName(String streetName) \n \t{\n \t\tthis.streetName = streetName;\n \t}",
"private void buildDivisionComboBox() {\n List<String> args = Collections.singletonList(Constants.WILDCARD);\n Country selectedCountry = countryComboBox.getSelectionModel().getSelectedItem();\n if (selectedCountry != null) {\n args = Collections.singletonList(String.valueOf(selectedCountry.getCountryID()));\n }\n\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectDivisionsByCountry.sql\"),\n args\n );\n\n ObservableList<FirstLevelDivision> divisions = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Division_ID\");\n String name = rs.getString(\"Division\");\n int countryID = rs.getInt(\"Country_ID\");\n divisions.add(new FirstLevelDivision(id, name, countryID));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n divisionComboBox.setItems(divisions);\n\n divisionComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(FirstLevelDivision item) {\n return item.getDivisionName();\n }\n\n @Override\n public FirstLevelDivision fromString(String string) {\n return null;\n }\n });\n }",
"public void setStreetName(String streetName) {\n this.streetName = streetName;\n }",
"void fillNameBox() {\n\t\tJLabel ruleNameLabel = new JLabel(overviewRule.getRuleName());\n\n\t\tnameBox.add(nameLabel);\n\t\tnameBox.add(ruleNameLabel);\n\t}",
"private void buildComboBoxes() {\n buildCountryComboBox();\n buildDivisionComboBox();\n }",
"private JComponent buildName() {\n name = new JTextField();\n name.setText(group.getName());\n return name;\n }",
"public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t \te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void initSourceFieldForTransferLookupValue(JComboBox sourceField) {\r\n\t\tList<String> availableFields = null;\r\n\t\t\r\n\t\tif (singleRulePanel.getLayoutMLRule().isSubformEntity()) {\r\n\t\t\t// its a subform\r\n\t\t\tif (singleRulePanel.getLayoutMLRule().isListOfValues()) {\r\n\t\t\t\tsingleRulePanel.getRuleSourceComponent();\r\n\t\t\t\t\r\n\t\t\t\tString linkedEntity = editorPanel.getMetaInformation().getLinkedEntityForSubformColumn(singleRulePanel.getLayoutMLRule().getComponentEntity(), singleRulePanel.getLayoutMLRule().getComponentName());\t\t\r\n\t\t\t\tavailableFields = editorPanel.getMetaInformation().getSubFormColumns(linkedEntity);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// is linked attribute\r\n\t\t\tif (singleRulePanel.getLayoutMLRule().isListOfValues()) {\r\n\t\t\t\t// get linked entity\r\n\t\t\t\tString linkedEntity = editorPanel.getMetaInformation().getLinkedEntityForAttribute(singleRulePanel.getLayoutMLRule().getComponentEntity(), singleRulePanel.getLayoutMLRule().getComponentName());\r\n\t\t\t\tavailableFields = editorPanel.getMetaInformation().getDependingAttributes(linkedEntity);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (availableFields != null) {\r\n\t\t\tfor (String field : availableFields) {\r\n\t\t\t\tsourceField.addItem(field);\r\n\t\t\t}\r\n\t\t}\r\n\t\tsourceField.addItem(\"\");\r\n\t}",
"public void setName (String name) {\n\t streetName = name ;\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n addressTypeLabel = new javax.swing.JLabel();\r\n addressLabel = new javax.swing.JLabel();\r\n addressType = new javax.swing.JComboBox();\r\n address = new javax.swing.JTextField();\r\n\r\n addressTypeLabel.setText(uiKeys.getString(\"ElectronicPanel.addressType\")); // NOI18N\r\n\r\n addressLabel.setText(uiKeys.getString(\"ElectronicPanel.electronicAddress\")); // NOI18N\r\n\r\n addressType.setModel(addressTypeModel);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(addressTypeLabel)\r\n .addComponent(addressLabel))\r\n .addGap(31, 31, 31)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(address, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)\r\n .addComponent(addressType, 0, 267, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(addressTypeLabel)\r\n .addComponent(addressType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(addressLabel)\r\n .addComponent(address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(20, Short.MAX_VALUE))\r\n );\r\n }",
"public String getName () {\n\t return (streetName) ;\n }",
"public void fillNameBox(){\n for(UserAccount userAccount : userAccounts) {\n nameBox.addItem(userAccount.getEmail());\n }\n }",
"private void startupForm() {\n pers = new PersonManager();\n myCountries = new CountryManager();\n initComponents();\n setLocationRelativeTo(null);\n //Load the Surname lists\n List<String> surnames = pers.getSurnameList();\n this.setTitle(\"View Contacts\");\n //Step through the List and add surnames\n for (String str : surnames) {\n this.surnameCombo.addItem(str);\n }\n this.forenameCombo.removeAllItems();\n this.sectionCombo.removeAllItems();\n this.surnameCombo.setSelectedItem(\"\");\n this.forenameCombo.setSelectedItem(\"\");\n this.sectionCombo.setSelectedItem(\"\");\n this.fillCountryTables();\n }",
"private void populateAddressInfo(){\n userNameLabel.setText(userAccount.getUsername());\n address1Label.setText(userAccount.getPerson().getAddress().getAddressLine1());\n address2Label.setText(userAccount.getPerson().getAddress().getAddressLine2());\n cityLabel.setText(userAccount.getPerson().getAddress().getCity());\n stateLabel.setText(userAccount.getPerson().getAddress().getState());\n nationLabel.setText(userAccount.getPerson().getAddress().getCountry());\n zipLabel.setText(userAccount.getPerson().getAddress().getZipcode());\n emailLabel.setText(userAccount.getPerson().getEmail());\n }",
"public String getStreetFieldName() {\n return getStringProperty(STREET_FIELD_NAME_KEY);\n }",
"private void displaySurnameFields() {\n FieldRelatedLabel surnameLabel = new FieldRelatedLabel(\"Surname\", 350, 170);\n\n invalidSurnameLabel = new InvalidFormEntryLabel(\"Surname must only contain letters,\\nspaces, dots and apostrophes\", 510, 190, false);\n\n surnameTF = new TextField();\n surnameTF.relocate(350, 200);\n surnameTF.textProperty().addListener(e->FormValidatorPokeMongo.handleName(surnameTF, invalidSurnameLabel));\n\n sceneNodes.getChildren().add(surnameLabel);\n sceneNodes.getChildren().add(invalidSurnameLabel);\n sceneNodes.getChildren().add(surnameTF);\n }",
"public void constructPlayerNamesMenu(int num){\r\n\t\tnamesMenu.createLabels(num);\r\n\t\tnamesMenu.createTextFields(num);\r\n\t\tnamesMenu.buildPanel(num);\r\n\t}",
"public Builder setLevelNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n levelName_ = value;\n onChanged();\n return this;\n }",
"public Builder setLevelNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n levelName_ = value;\n onChanged();\n return this;\n }",
"public Builder setLevelNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n levelName_ = value;\n onChanged();\n return this;\n }",
"private void buildComboPanel(){\n //Create the combo panel\n comboPanel = new JPanel();\n \n //Combo box\n laneType = new JComboBox(lanes);\n \n //Allow the user to type input into combo field\n laneType.setEditable(true);\n \n comboLabel = new JLabel(\"Lane: \");\n \n //Add the components to the panel\n comboPanel.add(comboLabel);\n comboPanel.add(laneType);\n }",
"public void fillCombobox() {\n List<String> list = new ArrayList<String>();\n list.add(\"don't link\");\n if (dataHandler.persons.size() == 0) {\n list.add(\"No Persons\");\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItems(obList);\n cmb_linkedPerson.getSelectionModel().selectFirst();\n } else {\n for (int i = 0; i < dataHandler.persons.size(); i++) {\n list.add(dataHandler.persons.get(i).getName());\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItems(obList);\n cmb_linkedPerson.getSelectionModel().selectFirst();\n }\n }\n }",
"public String getStreetName() {\r\n return streetName;\r\n }",
"public String getStreetName() {\r\n return streetName;\r\n }",
"public void setStreetName(String streetName) {\r\n\t\t\tif(streetName == null || streetName.isEmpty()) \r\n\t\t\t{\r\n\t\t\t\tthis.streetName = \"N/A\";\r\n\t\t\t}else \r\n\t\t\t{\r\n\t\t\t\tthis.streetName = streetName;\r\n\t\t\t}\r\n\t\t}",
"public Builder setLevelName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n levelName_ = value;\n onChanged();\n return this;\n }",
"public Builder setLevelName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n levelName_ = value;\n onChanged();\n return this;\n }",
"public Builder setLevelName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n levelName_ = value;\n onChanged();\n return this;\n }",
"public StreetAddress(String streetName, int streetNumber)\n \t{\n \n \t\tthis.streetName = streetName;\n \t\tthis.streetNumber = streetNumber;\n \t}",
"private void initialize() {\r\n\t\tjLabel = new JLabel();\r\n\t\tsuper.setName(aplicacion.getI18nString(\"SelectSheetLayerPrintPanel.Name\"));\r\n\t\tjava.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tjava.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setSize(365, 274);\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 0;\r\n\t\tgridBagConstraints1.anchor = java.awt.GridBagConstraints.EAST;\r\n\t\tgridBagConstraints1.insets = new java.awt.Insets(0,34,0,0);\r\n\t\tgridBagConstraints2.gridwidth = 2;\r\n\t\tgridBagConstraints2.insets = new java.awt.Insets(0,0,0,40);\r\n\t\tthis.add(jLabel, gridBagConstraints1);\r\n\t\tthis.add(getJComboBox(), gridBagConstraints2);\r\n\t\tjLabel.setText(aplicacion.getI18nString(\"cbSheetLayer\")+\": \");\r\n\t\tgridBagConstraints2.gridx = 1;\r\n\t\tgridBagConstraints2.gridy = 0;\r\n\t\tgridBagConstraints2.weightx = 1.0;\r\n\t\tgridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n \r\n\t}",
"public JComponent createFieldsPlayer() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n// \t\t\t\"User ID: \",\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \" \t\t\t\n \t};\n \t\n \tpLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldP = new JTextField();\n \tfirstFieldP.setColumns(20);\n \tfields[fieldNum++] = firstFieldP;\n \t\n \tlastFieldP = new JTextField();\n \tlastFieldP.setColumns(20);\n \tfields[fieldNum++] = lastFieldP;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tpLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tpLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(pLabels[i]);\n \t\tnamePanel.add(fields[i]);\n \t\t\n \t\t// for each field, create a spinner for every entry added\n \t\t/****** To Do ********/\n \t}\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }",
"protected abstract String getAddressPropertyName();",
"private void displayNameFields() {\n FieldRelatedLabel nameLabel = new FieldRelatedLabel(\"Name\", 750, 170);\n\n invalidNameLabel = new InvalidFormEntryLabel(\"Name must only contain letters,\\nspaces, dots and apostrophes\", 910, 190, false);\n\n nameTF = new TextField();\n nameTF.relocate(750, 200);\n nameTF.textProperty().addListener(e->FormValidatorPokeMongo.handleName(nameTF, invalidNameLabel));\n\n sceneNodes.getChildren().addAll(nameLabel, invalidNameLabel, nameTF);\n }",
"public SimpleNamePanel() {\n\t\tinitComponents();\n\t\tnameField.setText(\"\");\n\t\tdescriptionField.setText(\"\");\n\t\tchanged = false;\n\t}",
"public String getStreetName() {\n return streetName;\n }",
"public addlocality() {\n initComponents();\n }",
"private void replaceWithSponsorBaseAdress(String sponsorCode){\r\n /**\r\n * Updated for REF ID :0003 Feb'21 2003.\r\n * Hour Glass implementation while DB Trsactions Wait\r\n * by Subramanya Feb' 21 2003\r\n */\r\n dlgWindow.setCursor( new Cursor( Cursor.WAIT_CURSOR ) );\r\n String rldxId = rldxController.getRolodexIdForSponsor(sponsorCode);\r\n RolodexDetailsBean rolodexBean =\r\n rldxController.displayRolodexInfo(rldxId);\r\n dlgWindow.setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );\r\n \r\n txtAddress1.setText(\r\n rolodexBean.getAddress1() == null ? \"\" : rolodexBean.getAddress1());\r\n txtAddress2.setText(\r\n rolodexBean.getAddress2() == null ? \"\" : rolodexBean.getAddress2());\r\n txtAddress3.setText(\r\n rolodexBean.getAddress3() == null ? \"\" : rolodexBean.getAddress3());\r\n txtCity.setText(\r\n rolodexBean.getCity() == null ? \"\" : rolodexBean.getCity());\r\n txtCounty.setText(\r\n rolodexBean.getCounty() == null ? \"\" : rolodexBean.getCounty());\r\n //Modified for Case#4252 - Rolodex state dropdown associated with country - Start\r\n cmbCountry.setSelectedItem(rolodexBean.getCountry());\r\n// cmbState.setSelectedItem(rolodexBean.getState());\r\n// if (((ComboBoxBean)cmbCountry.getSelectedItem()).getCode().trim().equals(\"USA\") ){\r\n//// cmbState.setShowCode(true);\r\n// setStateInfo();\r\n// }else{\r\n//// cmbState.setShowCode(false);\r\n// cmbState.removeAllItems();\r\n// ComboBoxBean cmbBean = rolodexBean.getState() != null ?\r\n// new ComboBoxBean(rolodexBean.getState(),rolodexBean.getState())\r\n// : new ComboBoxBean(\" \",\" \");\r\n// cmbState.addItem(cmbBean);\r\n// }\r\n //Case#4252 - End\r\n cmbState.setRequestFocusEnabled(false);\r\n cmbState.setSelectedItem(\r\n rolodexBean.getState() == null ? \" \" :rolodexBean.getState().toString());\r\n txtPostalCode.setText(\r\n rolodexBean.getPostalCode() == null ? \"\" : rolodexBean.getPostalCode());\r\n txtPhone.setText(\r\n rolodexBean.getPhone() == null ? \"\" : rolodexBean.getPhone());\r\n txtEMail.setText(\r\n rolodexBean.getEMail() == null ? \"\" : rolodexBean.getEMail());\r\n txtFax.setText(\r\n rolodexBean.getFax() == null ? \"\" : rolodexBean.getFax());\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn zip + \"-\" + street;\n\t}",
"public String getStreetName()\n \t{\n \t\treturn this.streetName;\n \t}",
"@Override\n\tprotected final void populate() {\n\n\t\tpopulateComboTargetLayer();\n\n\t\tString nextLayerName = null;\n\t\tif ((this.lastNameGenerated == null)) {\n\t\t\t// generate a new layer name\n\t\t\tnextLayerName = makeInitialLayerName();\n\t\t} else {\n\t\t\tnextLayerName = this.lastNameGenerated;\n\t\t}\n\n\t\tthis.lastNameGenerated = nextLayerName;\n\n\t\tthis.comboTargetLayer.setText(this.lastNameGenerated);\n\t\tthis.currentNewLayerName = this.lastNameGenerated;\n\n\t\tdispatchEvent(this.currentNewLayerName);\n\t}",
"private void setNameUI() {\n namePanel = new JPanel();\n name = new JLabel();\n\n name.setText(\"Name : \");\n name.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n name.setForeground(new Color(247, 37, 133));\n\n nameField = new JTextFieldHintUI(\"Enter country\");\n setTextFieldUI(nameField);\n\n namePanel.add(Box.createHorizontalStrut(15));\n namePanel.add(name);\n namePanel.add(nameField);\n namePanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n namePanel.setBackground(null);\n }",
"private void updateText() {\n pers = new PersonManager();\n //Is this every contact or a single person?\n if (this.surnameCombo.isVisible()) {\n if (this.personValid()) {\n Person myPers = getPerson();\n if (pers.getCountryList(myPers).size() > 0) {\n contactModel.removeData();\n contactModel.add(new PersonManager().getCountryList(myPers));\n }\n }\n } else {\n contactModel.removeData();\n contactModel.add(myCountries.getContactedCountryList());\n }\n }",
"private void createGrpContactDetails() {\n\n\t\tgrpContactDetails = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpContactDetails.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tgrpContactDetails.setBounds(new Rectangle(20, 40, 350, 230));\n\n\t\tlblInstructions = new Label(grpContactDetails, SWT.CENTER);\n\t\tlblInstructions.setBounds(new org.eclipse.swt.graphics.Rectangle(50,\n\t\t\t\t20, 260, 20));\n\t\tlblInstructions.setText(\"All fields marked with * are compulsory\");\n\t\tlblInstructions.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_8_ITALIC));\n\n\t\tlblPharmacyName = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacyName.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 45, 120,\n\t\t\t\t20));\n\t\tlblPharmacyName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacyName.setText(\"* Facility Name:\");\n\t\ttxtPharmacyName = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacyName.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 45, 180,\n\t\t\t\t20));\n\t\ttxtPharmacyName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacyName.setFocus();\n\t\ttxtPharmacyName.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtNameKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\n\t\t});\n\t\ttxtPharmacyName.setEnabled(false);\n\n\t\tlblStreetAdd = new Label(grpContactDetails, SWT.NONE);\n\t\tlblStreetAdd.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 75,\n\t\t\t\t120, 20));\n\t\tlblStreetAdd.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblStreetAdd.setText(\"* Street Address:\");\n\t\ttxtStreetAdd = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtStreetAdd.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 75,\n\t\t\t\t180, 20));\n\t\ttxtStreetAdd.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtStreetAdd.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtStreetKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtStreetAdd.setEnabled(false);\n\n\t\tlblCity = new Label(grpContactDetails, SWT.NONE);\n\t\tlblCity.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 105, 120,\n\t\t\t\t20));\n\t\tlblCity.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCity.setText(\"* City:\");\n\t\ttxtCity = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtCity.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 105, 180,\n\t\t\t\t20));\n\t\ttxtCity.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtCity.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtCityKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtCity.setEnabled(false);\n\n\t\tlblTel = new Label(grpContactDetails, SWT.NONE);\n\t\tlblTel.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 135, 124,\n\t\t\t\t20));\n\t\tlblTel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblTel.setText(\"* Telephone Number:\");\n\t\ttxtTel = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtTel.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 135, 180,\n\t\t\t\t20));\n\t\ttxtTel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtTel.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtTelNoKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtTel.setEnabled(false);\n\n\t\tlblPharmacistName1 = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacistName1.setBounds(new org.eclipse.swt.graphics.Rectangle(18,\n\t\t\t\t165, 120, 20));\n\t\tlblPharmacistName1.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacistName1.setText(\"* Head Pharmacist:\");\n\t\ttxtPharmacistName1 = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacistName1.setBounds(new org.eclipse.swt.graphics.Rectangle(\n\t\t\t\t150, 165, 180, 20));\n\t\ttxtPharmacistName1.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacistName1.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtPharmacistKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtPharmacistName1.setEnabled(false);\n\n\t\tlblPharmacyAssistant = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacyAssistant.setBounds(new org.eclipse.swt.graphics.Rectangle(18,\n\t\t\t\t195, 120, 20));\n\t\tlblPharmacyAssistant.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacyAssistant.setText(\" Pharmacy Assistant:\");\n\t\ttxtPharmacyAssistant = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacyAssistant.setBounds(new org.eclipse.swt.graphics.Rectangle(\n\t\t\t\t150, 195, 180, 20));\n\t\ttxtPharmacyAssistant.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacyAssistant.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtPharmacistKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtPharmacyAssistant.setEnabled(false);\n\n\t}",
"private void createTextFieldLabels() {\n // initialize empty textfield\n this.name = new TextField();\n this.id = new TextField();\n this.fiber = new TextField();\n this.calories = new TextField();\n this.fat = new TextField();\n this.carbohydrate = new TextField();\n this.protein = new TextField();\n // initialize labels\n this.nameLabel = new Label(\"Name:\");\n this.idLabel = new Label(\"ID:\");\n this.fiberLabel = new Label(\"Fiber:\");\n this.caloriesLabel = new Label(\"Calories:\");\n this.fatLabel = new Label(\"Fat:\");\n this.carbohydrateLabel = new Label(\"Carbohydrate:\");\n this.proteinLabel = new Label(\"Protein:\");\n }",
"private static void initializeNames() {\n _names.add(\"Raymond\");\n _names.add(\"Mia\");\n _names.add(\"Maximus\");\n _names.add(\"Thomas\");\n _names.add(\"Candice\");\n\n _names.add(\"Maggie\");\n _names.add(\"Grant\");\n _names.add(\"Joni\");\n _names.add(\"Shirley\");\n _names.add(\"Alaska\");\n\n _names.add(\"Alice\");\n _names.add(\"Bob\");\n _names.add(\"Clark\");\n _names.add(\"Bill\");\n _names.add(\"Mike\");\n\n _names.add(\"Sara\");\n _names.add(\"Jim\");\n _names.add(\"Laura\");\n _names.add(\"Steve\");\n _names.add(\"Chris\");\n }",
"private void addNamesToAutoComplete(List<String> nameCollection)\n\t{\n\t\tArrayAdapter<String> adapter =\n\t\t\t\tnew ArrayAdapter<>(SignupPersonalActivity.this,\n\t\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, nameCollection);\n\n\t\tmNameView.setAdapter(adapter);\n\t}",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"public Lookup_Panel()\n\t\t{\n\t\t\tsetLayout(new GridLayout(2, 4));\n\n\n\t\t\tadd(new Centered_Text_Panel(\"Lookup\"));\n\t\t\tadd(record_types_combo_box = new JComboBox(record_types));\n\t\t\tadd(new Centered_Text_Panel(\" for patient with SSN \"));\n\t\t\tadd(ssn_field = new JTextField(8));\n\n\t\t\tadd(new Centered_Text_Panel(\"\"));\n\t\t\tadd(new Centered_Text_Panel(\"\"));\n\t\t\tadd(new Centered_Text_Panel(\"\"));\n\t\t\tadd(new Submit_Button());\n\t\t}",
"private void initChildren() {\n vbox = new Vbox();\n chkUseRawName = new Checkbox(\"Use the scientific names supplied with the records\");\n chkUseRawName.setChecked(false);\n\n chkUseRawName.addEventListener(\"onCheck\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n onCheck$chkUseRawName(event);\n }\n });\n autoComplete = new SpeciesAutoComplete();\n autoComplete.setAutodrop(true);\n autoComplete.setWidth(\"330px\");\n autoComplete.addEventListener(\"onChange\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n autoCompleteSelectionChanged(event);\n }\n\n });\n\n vbox.appendChild(chkUseRawName);\n vbox.appendChild(autoComplete);\n\n }",
"public void makeDropDowns() {\n\t\tString[] hoursArray = new String[24];\n\t\tObservableList<Object> hours = FXCollections.observableArrayList();\n\t\tfor (int i = 0; i < hoursArray.length; i++) {\n\t\t\thoursArray[i] = i + \"\";\n\t\t\t\n\t\t\t//Formats the hours to always have two digits\n\t\t\tif (i < 10)\n\t\t\t\thoursArray[i] = \"0\" + i;\n\t\t\t\n\t\t\thours.add(hoursArray[i]);\n\t\t}\n\t\thourDropDown.setItems(hours);\n\n\t\t// Make the minuteDropDown box\n\t\tString[] minutesArray = new String[12];\n\t\tObservableList<Object> minutes = FXCollections.observableArrayList();\n\t\tfor (int i = 0; i < minutesArray.length; i++) {\n\t\t\tminutesArray[i] = i * 5 + \"\";\n\t\t\t\n\t\t\t//Formats the minutes to always have two digits\n\t\t\tif ((i * 5) < 10)\n\t\t\t\tminutesArray[i] = \"0\" + minutesArray[i];\n\t\t\t\n\t\t\tminutes.add(minutesArray[i]);\n\t\t}\n\t\tminuteDropDown.setItems(minutes);\n\t}",
"private void initPlayerNames() {\n\t\tlb_player1.setText(playerNames[0]);\n\t\tlb_player2.setText(playerNames[1]);\n\t\tlb_player3.setText(playerNames[2]);\n\t\tlb_player4.setText(playerNames[3]);\n\t}",
"public void populateBasicCountryNames() {\n basicCountryNames = new HashMap<>();\n for (Country c : countries.getCountries()) {\n basicCountryNames.put(c.getNamenorm(), c);\n }\n basicCountryNames.put(\"united states\", countries.getCountry(\"US\"));\n }",
"private void fillExistingCustomer() {\n idField.setText(String.valueOf(existingCustomer.getCustomerID()));\n nameField.setText(existingCustomer.getCustomerName());\n String[] splitAddress = existingCustomer.getAddress().split(\", \");\n addressField.setText(splitAddress[0]);\n if ( splitAddress.length > 1 ) {\n cityField.setText(splitAddress[1]);\n }\n postalField.setText(existingCustomer.getPostalCode());\n phoneField.setText(existingCustomer.getPhone());\n\n FirstLevelDivision division = getDivisionByID(existingCustomer.getDivisionID());\n divisionComboBox.getSelectionModel().select(division);\n countryComboBox.getSelectionModel().select(getCountryByID(division.getCountryID()));\n }",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuffer(\"Street: \")\n\t\t.append(this.street)\n\t\t.append(\"country: \").append(this.country).toString();\n\t}",
"public void addContactDetails() {\n firstNameField.setText(contact.getFirstName());\n middleNameField.setText(contact.getMiddleName());\n lastNameField.setText(contact.getLastName());\n\n homePhoneField.setText(contact.getHomePhone());\n workPhoneField.setText(contact.getWorkPhone());\n\n homeAddressField.setText(contact.getHomeAddress());\n workAddressField.setText(contact.getWorkAddress());\n\n personalEmailField.setText(contact.getPersonalEmail());\n workEmailField.setText(contact.getWorkEmail());\n\n }",
"private void renderCombobox(){\r\n\r\n\t\tCollection<String> sitesName= new ArrayList<String>();\r\n\t\t\tfor(SiteDto site : siteDto){\r\n\t\t\t\tsitesName.add(site.getSiteName());\r\n\t\t\t}\r\n\t\t\r\n\t\tComboBox siteComboBox = new ComboBox(\"Select Site\",sitesName);\r\n\t\tsiteName = sitesName.iterator().next();\r\n\t\tsiteComboBox.setValue(siteName);\r\n\t\tsiteComboBox.setImmediate(true);\r\n\t\tsiteComboBox.addValueChangeListener(this);\r\n\t\tverticalLayout.addComponent(siteComboBox);\r\n\t}",
"private void addNameBox() {\n\t\tnameBox = new JTextField(25);\n\t\tnameBox.addActionListener(this);\n\t\tadd (nameBox, SOUTH);\n\t}",
"private void buildAddEditStreetsButton(JPanel panel) {\n JButton addEditStreetsButton = new JButton(localization.get(\"EditStreetsLabel\"));\n addEditStreetsButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n StreetEditor editor = new StreetEditor(InfoPanel.this, bindingService);\n editor.run();\n }\n });\n panel.add(addEditStreetsButton);\n }",
"private void createLastNameBox() {\n lastNameField = new TextField();\n lastNameField.setId(\"Lastname\");\n HBox lastNameBox = new HBox(new Label(\"Last name: \"), lastNameField);\n lastNameBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(lastNameBox);\n\n }",
"@FXML\n private void setAddressBox() throws SQLException {\n this.addressBox.setText(Address.toString(CurrentLogin.getInstance().getUserID()));\n }",
"public String toString()\n \t{\n \t\tString fullStreet = this.streetNumber + \" \" + this.streetName;\n \t\treturn fullStreet;\n \t}",
"public CustomComboBoxModel() {\n\t\t// TODO Auto-generated constructor stub\n\t\tZipcodeDAO dao = new ZipcodeDAO();\n\t\tdatas = dao.allSido();\n\t}",
"private void populatePhone() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getPN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n phoneNum.setAdapter(dataAdapter);\n\n }",
"private void calcNames() {\n final AddressBook addressBook = platform.getAddressBook();\n numColumns = addressBook.getSize();\n if (numColumns != numMembers) {\n numMembers = numColumns;\n names = new String[numColumns];\n for (int i = 0; i < numColumns; i++) {\n final NodeId nodeId = addressBook.getNodeId(i);\n names[i] = addressBook.getAddress(nodeId).getNickname();\n }\n }\n }",
"private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }",
"@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }",
"public void setSchool (String name, String address, String level){\n this.name = name;\n this.address = address;\n this.level = level;\n this.info = \"Name: \"+name+\"\\tAddress: \"+address+\"\\tLevel: \"+level;\n }",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"public void fillComBox1()\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tconnection = SqlServerConnection.dbConnecter();\r\n\t\t\t\t\r\n\t\t\t\tString sql=\"select * from addLocation\";\r\n\t\t\t\tPreparedStatement pst=connection.prepareStatement(sql);\r\n\t\t\t\tResultSet rs=pst.executeQuery();\r\n\t\t\t\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\troomcombo2.addItem(rs.getString(\"RoomName\"));\r\n\t\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n public void onModuleLoad() {\r\n final ListBox select = new ListBox();\r\n\r\n// Beispielcode:\r\n// \r\n final Label airportLabel = new Label();\r\n// Airport ap = new Airport();\r\n// ap.setCountry(\"Germany\");\r\n// ap.setId(\"FRA\");\r\n// \r\n// airportService.save(ap, new SuccessCallback<Airport>() {\r\n//\r\n// @Override\r\n// public void onSuccess(Airport result) {\r\n// airportLabel.setText(result.toString());\r\n// }\r\n// });\r\n//\r\n// airportService.load(\"FRA\", new SuccessCallback<Airport>() {\r\n//\r\n// @Override\r\n// public void onSuccess(Airport result) {\r\n// airportLabel.setText(result.toString());\r\n// }\r\n// });\r\n\r\n select.setVisibleItemCount(1);\r\n\r\n class CategoryJsoSelectChangeHandler implements ChangeHandler {\r\n\r\n @Override\r\n public void onChange(ChangeEvent event) {\r\n refreshSelection(select);\r\n }\r\n }\r\n\r\n final CategoryJsoSelectChangeHandler csHandler = new CategoryJsoSelectChangeHandler();\r\n select.addChangeHandler(csHandler);\r\n\r\n database.getCategory(new AsyncCallback<List<Category>>() {\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n showErrorPanel(RPC_ERROR_TITLE, SERVER_ERROR);\r\n }\r\n\r\n @Override\r\n public void onSuccess(List<Category> result) {\r\n CategoryJsos = result;\r\n\r\n for (Category r : result) {\r\n select.addItem(r.toString());\r\n select.setItemSelected(0, true);\r\n refreshSelection(select);\r\n }\r\n }\r\n });\r\n\r\n // We can add style names to widgets\r\n //sendButton.addStyleName(\"sendButton\");\r\n\r\n // Add the Control Elements to the RootPanel\r\n // Use RootPanel.get() to get the entire body element\r\n RootPanel.get(\"errorLabelContainer\").add(airportLabel);\r\n RootPanel.get(\"selectContainer\").add(select);\r\n }",
"private JComboBox getLayerFieldsComboBox() {\n\t\tif (layerFieldsComboBox == null) {\n\t\t\tlayerFieldsComboBox = new JComboBox();\n\t\t\tlayerFieldsComboBox.setBounds(new java.awt.Rectangle(308, 41, 138,\n\t\t\t\t\t21));\n\t\t\tDefaultComboBoxModel defaultModel = new DefaultComboBoxModel(\n\t\t\t\t\tgetFieldNames());\n\t\t\tlayerFieldsComboBox.setModel(defaultModel);\n\t\t}\n\t\treturn layerFieldsComboBox;\n\t}",
"public Builder setField1919(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1919_ = value;\n onChanged();\n return this;\n }",
"private void createFirstNameBox() {\n firstNameField = new TextField();\n firstNameField.setId(\"Firstname\");\n HBox firstNameBox = new HBox(new Label(\"First name: \"), firstNameField);\n firstNameBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(firstNameBox);\n }",
"private void setAddrInputFields(){\n \ttextFieldCurrents.put(jTextFieldStart, jTextFieldStart.getText());\n\t\ttextFieldCurrents.put(jTextFieldEnd, jTextFieldEnd.getText());\n\t\tselectedFormat = jComboBoxFormat.getSelectedIndex();\n\t\tquickSearch = jCheckBoxQuickSearch.isSelected();\n }",
"private void populateMyLocationsBox(){\n\t\t\t//locBar.removeActionListener(Jcombo);\n\t\t\tlocBar.removeAllItems();\n\t\t\tfor (int i = 0; i < app.getMyLocations().length; i ++){\n\t\t\t\tlocation tempLoc = app.getMyLocations()[i];\n\t\t\t\tif (tempLoc.getCityID() != 0){\n\t\t\t\t\tString val = tempLoc.getName() + \", \" + tempLoc.getCountryCode() + \" Lat: \" + tempLoc.getLatitude() + \" Long: \" + tempLoc.getLongitude();\n\t\t\t\t\tlocBar.addItem(val);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (locBar.getItemCount() == 0){\n\t\t\t\tlocBar.addItem(\"--Empty--\");\n\t\t\t} else {\n\t\t\t\tlocBar.addItem(\"--Remove?--\");\n\t\t\t}\n\t\t\tlocBar.addActionListener(Jcombo);\n\t\t}",
"public LevelName(String levelName) {\n this.levelName = levelName;\n }",
"private void setupTextField() {\n getNodes();\n List<String> nodeLongNames = new LinkedList<String>(nodeIDs.keySet());\n TextFields.bindAutoCompletion(nodeSelectTextField, nodeLongNames.toArray());\n\n nodeSelectTextField.setOnAction(param -> {\n if(!new LinkedList<String>(nodeIDs.keySet()).contains(nodeSelectTextField.getText())) {\n nodeSelectTextField.setText(\"\");\n return;\n }\n longName = nodeSelectTextField.getText();\n nodeID = nodeIDs.get(longName);\n if(eventHandler != null) {\n eventHandler.handle(param);\n }\n });\n }",
"@FXML\n public void initialize(){\n floorSelect.getItems().addAll(\"All\", \"4\", \"3\", \"2\", \"1\", \"G\", \"L1\", \"L2\");\n }",
"public LookUpPanel() {\n initComponents(); \n }",
"private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"public void fillPLComboBox(){\n\t\tmonths.add(\"Select\");\n\t\tmonths.add(\"Current Month\");\n\t\tmonths.add(\"Last Month\");\n\t\tmonths.add(\"Last 3 Months\");\n\t\tmonths.add(\"View All\");\n\t}",
"public void setStreetAddress(StringFilter streetAddress) {\n\t\tthis.streetAddress = streetAddress;\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n lblName = new javax.swing.JLabel();\n lblNationality = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtAptNo = new javax.swing.JTextField();\n txtName = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtAptName = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n cmbCountryList = new javax.swing.JComboBox();\n lblName1 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n cmbStateList = new javax.swing.JComboBox();\n txtState = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n txtCity = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txtZipcode = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n calendar = new com.toedter.calendar.JCalendar();\n jLabel9 = new javax.swing.JLabel();\n btnClear = new javax.swing.JButton();\n btnSubmit = new javax.swing.JButton();\n txtMI = new javax.swing.JTextField();\n lblName2 = new javax.swing.JLabel();\n lblName3 = new javax.swing.JLabel();\n txtLastName = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txtStreet = new javax.swing.JTextField();\n cmbCityList = new javax.swing.JComboBox();\n txtNationality = new javax.swing.JTextField();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/baseClasses/healtech logo.PNG\"))); // NOI18N\n\n lblName.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblName.setForeground(new java.awt.Color(0, 153, 51));\n lblName.setText(\"Last Name\");\n\n lblNationality.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblNationality.setForeground(new java.awt.Color(0, 153, 51));\n lblNationality.setText(\"Nationality\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 153, 51));\n jLabel2.setText(\"Apt No.\");\n\n txtAptNo.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n txtName.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNameActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(0, 153, 51));\n jLabel3.setText(\"Address\");\n\n txtAptName.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtAptName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtAptNameActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 153, 51));\n jLabel4.setText(\"State\");\n\n cmbCountryList.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n cmbCountryList.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbCountryListActionPerformed(evt);\n }\n });\n\n lblName1.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n lblName1.setForeground(new java.awt.Color(0, 153, 51));\n lblName1.setText(\" Create New Citizen\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(0, 153, 51));\n jLabel5.setText(\"City\");\n\n cmbStateList.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n cmbStateList.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbStateListActionPerformed(evt);\n }\n });\n\n txtState.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 153, 51));\n jLabel6.setText(\"Country\");\n\n txtCity.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtCity.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCityActionPerformed(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(0, 153, 51));\n jLabel7.setText(\"ZIP Code\");\n\n txtZipcode.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(0, 153, 51));\n jLabel8.setText(\"Apt Name.\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(0, 153, 51));\n jLabel9.setText(\"Date of Birth\");\n\n btnClear.setBackground(new java.awt.Color(255, 255, 255));\n btnClear.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n btnClear.setForeground(new java.awt.Color(0, 153, 0));\n btnClear.setText(\"Clear\");\n btnClear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClearActionPerformed(evt);\n }\n });\n\n btnSubmit.setBackground(new java.awt.Color(255, 255, 255));\n btnSubmit.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n btnSubmit.setForeground(new java.awt.Color(0, 153, 0));\n btnSubmit.setText(\"Submit\");\n btnSubmit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSubmitActionPerformed(evt);\n }\n });\n\n txtMI.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtMI.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtMIActionPerformed(evt);\n }\n });\n\n lblName2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblName2.setForeground(new java.awt.Color(0, 153, 51));\n lblName2.setText(\"MI\");\n\n lblName3.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblName3.setForeground(new java.awt.Color(0, 153, 51));\n lblName3.setText(\"First Name\");\n\n txtLastName.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtLastName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtLastNameActionPerformed(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 153, 51));\n jLabel10.setText(\"Street\");\n\n txtStreet.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtStreet.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtStreetActionPerformed(evt);\n }\n });\n\n cmbCityList.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n txtNationality.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n txtNationality.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNationalityActionPerformed(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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtAptNo, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtAptName)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(80, 80, 80)\n .addComponent(txtStreet, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblName1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7))\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtZipcode, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cmbCountryList, 0, 219, Short.MAX_VALUE)\n .addComponent(cmbCityList, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addGap(68, 68, 68)\n .addComponent(cmbStateList, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(32, 32, 32)\n .addComponent(txtState, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(txtCity, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblNationality)\n .addComponent(lblName3))\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(336, 336, 336))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtNationality, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9)\n .addGap(103, 103, 103)))\n .addComponent(calendar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblName2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtMI, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(124, 124, 124)\n .addComponent(lblName)\n .addGap(33, 33, 33)\n .addComponent(txtLastName, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(352, 352, 352)\n .addComponent(btnClear)\n .addGap(165, 165, 165)\n .addComponent(btnSubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(195, 269, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(lblName1)\n .addGap(60, 60, 60)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtMI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblName)\n .addComponent(lblName2)\n .addComponent(txtLastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblName3))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(calendar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblNationality)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNationality, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtAptNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAptName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtStreet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10))\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbCountryList, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(cmbStateList, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtState, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmbCityList, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtZipcode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(47, 47, 47)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnClear)\n .addComponent(btnSubmit))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 201, Short.MAX_VALUE)\n .addComponent(jLabel1))\n );\n }",
"public JComponent createFieldsCont() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \",\n \t\t\t\"Tribe Name: \"\n \t};\n \t\n \tcLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldC = new JTextField();\n \tfirstFieldC.setColumns(20);\n \tfields[fieldNum++] = firstFieldC;\n \t\n \tlastFieldC = new JTextField();\n \tlastFieldC.setColumns(20);\n \tfields[fieldNum++] = lastFieldC;\n \t\n \ttribeField = new JTextField();\n \ttribeField.setColumns(31);\n \tfields[fieldNum++] = tribeField;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tcLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tcLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(cLabels[i]);\n \t\tnamePanel.add(fields[i]); \t\t\n \t}\n \t\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }",
"private String buildLocationName(Address address) {\n StringBuilder name = new StringBuilder();\n\n if (address.getFeatureName() != null) {\n name.append(address.getFeatureName());\n }\n\n if (address.getThoroughfare() != null) {\n // if something is already in the location name (i.e. a more specific part of the name), use a comma separator\n if (name.length() != 0) {\n name.append(\", \");\n }\n\n name.append(address.getThoroughfare());\n }\n\n if (address.getLocality() != null) {\n // if something is already in the location name (i.e. a more specific part of the name), use a comma separator\n if (name.length() != 0) {\n name.append(\", \");\n }\n\n name.append(address.getLocality());\n }\n\n if (address.getAdminArea() != null) {\n // if something is already in the location name (i.e. a more specific part of the name), use a comma separator\n if (name.length() != 0) {\n name.append(\", \");\n }\n\n name.append(address.getAdminArea());\n }\n if (address.getCountryName() != null) {\n // if something is already in the location name (i.e. a more specific part of the name), use a comma separator\n if (name.length() != 0) {\n name.append(\", \");\n }\n\n name.append(address.getCountryName());\n }\n\n return name.toString();\n }",
"public Builder setField1333(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1333_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n counselorDetailsBEAN = new CounselorDetailsBEAN();\n counselorDetailsBEAN = Context.getInstance().currentProfile().getCounselorDetailsBEAN();\n ENQUIRY_ID = counselorDetailsBEAN.getEnquiryID();\n // JOptionPane.showMessageDialog(null, ENQUIRY_ID);\n countryCombo();\n cmbCountry.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n \n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n //JOptionPane.showMessageDialog(null, cmbCountry.getSelectionModel().getSelectedItem().toString());\n String[] parts = cmbCountry.getSelectionModel().getSelectedItem().toString().split(\",\");\n String value = parts[0];\n locationcombo(value);\n }\n\n private void locationcombo(String value) {\n List<String> locations = SuggestedCourseDAO.getLocation(value);\n for (String s : locations) {\n location.add(s);\n }\n cmbLocation.setItems(location);\n }\n\n });\n cmbLocation.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n universityCombo(cmbLocation.getSelectionModel().getSelectedItem().toString());\n }\n\n private void universityCombo(String value) {\n List<String> universities = SuggestedCourseDAO.getUniversities(value);\n for (String s : universities) {\n university.add(s);\n }\n cmbUniversity.setItems(university);\n }\n \n });\n cmbUniversity.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n levetCombo(cmbUniversity.getSelectionModel().getSelectedItem().toString());\n }\n\n private void levetCombo(String value) {\n List<String> levels = SuggestedCourseDAO.getLevels(value);\n for (String s : levels) {\n level.add(s);\n }\n cmbLevel.setItems(level);\n }\n });\n\n }",
"private void populateRegionFilterComboBox() {\n Collection<String> uniqueRegions = new TreeSet<>();\n for (ReceiverRecord record : records) {\n uniqueRegions.add(record.getRegion());\n }\n regionFilterComboBox.getItems().removeAll(regionFilterComboBox.getItems());\n regionFilterComboBox.getItems().add(regionString);\n regionFilterComboBox.getItems().addAll(uniqueRegions);\n regionFilterComboBox.getSelectionModel().select(0);\n }",
"private void populateSelectedBranches() {\n\t\ttry {\n\t\t\tStationsDTO[] stations = handler.getAllBranches();\n\t\t\tif (null != stations) {\n\t\t\t\tint len = stations.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcbSB.add(stations[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ stations[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}",
"public Builder setField1991(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1991_ = value;\n onChanged();\n return this;\n }",
"void fillCombo_name(){\n combo_name.setItems(FXCollections.observableArrayList(listComboN));\n }",
"@Override\n\tprotected JComponent buildPanel() {\n\t\tcategory.setModel(new ListComboBoxModel(categoryService.getAll()));\n\t\t// Add auto-completion to author combo, limit max results to 1000 and order data by surname\n\t\tFilterAutoCompletionListener acl = new FilterAutoCompletionListener(author, 1000, \"surname\");\n\t\tacl.setPersistentService(authorService);\n\t\tauthor.setEditable(true);\n\t\t// Create a Box with author combo and add button\n\t\tBox authorBox = Box.createHorizontalBox();\n\t\tauthorBox.add(author);\n\t\tauthorBox.add(Box.createHorizontalStrut(5));\n\t\tauthorBox.add(new JButton(new AddAuthorAction(FormUtils.getIcon(ADD_ICON))));\n\t\t// Build Form with a BoxFormBuilder\n\t\tBoxFormBuilder fb = new BoxFormBuilder();\n\t\tfb.add(getMessage(\"Title\"), name);\n\t\tfb.row();\n\t\tfb.add(getMessage(\"Author\"), authorBox);\t\n\t\tfb.row();\n\t\tfb.add(getMessage(\"ISBN\"), isbn);\n\t\tfb.row();\n\t\tfb.add(getMessage(\"PublishedDate\"), publishedDate);\n\t\tfb.row();\n\t\tfb.add(getMessage(\"Category\"), category);\n\t\t\n\t\tJComponent form = fb.getForm();\n\t\tform.setBorder(FormUtils.createTitledBorder(getMessage(\"Book\")));\n\t\treturn form;\n\t}"
] |
[
"0.7146022",
"0.56649536",
"0.5379182",
"0.535151",
"0.5331081",
"0.52766263",
"0.52500296",
"0.52238744",
"0.5211986",
"0.52008903",
"0.51660866",
"0.5141347",
"0.5129877",
"0.5114395",
"0.50879985",
"0.5074107",
"0.5065776",
"0.50446206",
"0.50405896",
"0.5023864",
"0.50225663",
"0.5012124",
"0.49649647",
"0.49592242",
"0.49508843",
"0.49343827",
"0.49343827",
"0.49343827",
"0.4921293",
"0.49152064",
"0.4907229",
"0.4907229",
"0.49062207",
"0.48921448",
"0.48921448",
"0.48921448",
"0.4888495",
"0.48846757",
"0.487607",
"0.48590857",
"0.48313072",
"0.48213902",
"0.4814138",
"0.48045343",
"0.48001286",
"0.4756871",
"0.4738044",
"0.47325698",
"0.47262272",
"0.46991614",
"0.46983263",
"0.46532044",
"0.46516663",
"0.46464247",
"0.46304548",
"0.4620171",
"0.46121112",
"0.45828018",
"0.45550793",
"0.45433137",
"0.45348635",
"0.4523726",
"0.4515986",
"0.45092645",
"0.45092523",
"0.45071182",
"0.4503707",
"0.4499132",
"0.449371",
"0.44918337",
"0.44872075",
"0.44860512",
"0.44783485",
"0.44774088",
"0.44725364",
"0.44658774",
"0.44642818",
"0.44637603",
"0.4463622",
"0.44623134",
"0.44607338",
"0.4449031",
"0.44373372",
"0.44351047",
"0.44347948",
"0.44345394",
"0.44227684",
"0.4422066",
"0.44136634",
"0.44124326",
"0.44115543",
"0.44092286",
"0.44036704",
"0.44012588",
"0.44009334",
"0.44002372",
"0.44000134",
"0.43977866",
"0.43956083",
"0.4393263"
] |
0.74880695
|
0
|
Builds the button that starts the StreetEditor.
|
private void buildAddEditStreetsButton(JPanel panel) {
JButton addEditStreetsButton = new JButton(localization.get("EditStreetsLabel"));
addEditStreetsButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
StreetEditor editor = new StreetEditor(InfoPanel.this, bindingService);
editor.run();
}
});
panel.add(addEditStreetsButton);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tprotected void buildButton() {\n\t\t\n\t}",
"private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildPublicDistrict = true;\r\n\t\t\t\t/* Method to change the icon to notify the user he's building a new place */\r\n\r\n\t\t\t\tMainFrame.setCursorOnScene(Toolkit.getDefaultToolkit().createCustomCursor(\r\n\t\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/images/cursor/click_build_house.png\")).getImage(), new Point(0, 0), \"custom cursor\"));\r\n\t\t\t}",
"@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }",
"private void createButton(){\n addButton();\n addStartButton();\n }",
"public void makeObtainButton() {\r\n JButton obtain = new JButton(\"Obtain a new champion using Riot Points\");\r\n new Button(obtain, main);\r\n// obtain.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// obtain.setPreferredSize(new Dimension(2500, 100));\r\n// obtain.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n obtain.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n obtainChampionUsingRiotPoints();\r\n }\r\n });\r\n// main.add(obtain);\r\n }",
"public void createFinishedButton() {\n\t\tJButton finished = new JButton(\"Click here when finished inputting selected champions\");\n\t\tfinished.setName(\"finished\");\n\t\tfinished.setBackground(Color.GRAY);\n\t\tfinished.setForeground(Color.WHITE);\n\t\tfinished.setBorderPainted(false);\n\t\tfinished.addActionListener(this);\n\t\tfinished.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(finished, new Integer(4));\n\t}",
"private JButton makePrgRunButton() {\r\n\t\tJButton tprgRunButton = new JButton();\r\n\t\ttprgRunButton.setBackground(new Color(250, 250, 250));\r\n\t\ttprgRunButton.setForeground(new Color(51, 51, 51));\r\n\t\ttprgRunButton.setIcon(new ImageIcon(getClass().getResource(\"/org/colombbus/tangara/control_play_blue.png\"))); //$NON-NLS-1$\r\n\t\ttprgRunButton.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13)); //$NON-NLS-1$\r\n\t\ttprgRunButton.setPreferredSize(new Dimension(120, 30));\r\n\t\ttprgRunButton.setText(Messages.getString(\"EditorFrame.button.execute\")); //$NON-NLS-1$\r\n\t\ttprgRunButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tparentFrame.executeProgram(getCurrentPane().getText(), getSelectedIndex());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\treturn tprgRunButton;\r\n\t}",
"private Button constructCreationLinkButton(UUID creationID){\n\n CreationControllable cc = (CreationControllable) builder.getControllers()[1];\n if (!cc.containsCreation(creationID)){\n return null;\n }\n\n String[] creationInfo = cc.viewCreationSummary(creationID, viewer);\n Button b = new Button(creationInfo[0] + \" ( \" + creationInfo[1] + \" ) By: \"+ creationInfo[2]);\n\n b.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n stage.close();\n CreationViewController controller = getCreationBrowserController();\n if (controller == null){\n return;\n }\n controller.linkCreationCallback(creationID);\n stage.show();\n }\n });\n\n return b;\n }",
"private void initCreateDeckBtn() {\n createBtn = new Button((editWidth - 310) / 2, 400, \"CREATE NEW DECK\", MasterGUI.green, titleField.getWidth(), titleField.getHeight());\n createBtn.setFont(MasterGUI.poppinsFont);\n createBtn.setForeground(MasterGUI.white);\n createBtn.setContentAreaFilled(true);\n createBtn.setFocusPainted(false);\n ActionListener createAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createDeckFromInput();\n user.updateDeckList();\n repaintDeckCards();\n HomeView.repaintHomeView();\n }\n };\n createBtn.addActionListener(e -> {\n MainGUI.confirmDialog(createAction, \"Create new Deck?\");\n });\n editPanel.add(createBtn);\n }",
"private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }",
"private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}",
"private void showSubmitBtn(){\n\t\tmainWindow.addLayer(submitBtn, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t}",
"public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }",
"public void makeAcquireButton() {\r\n JButton acquire = new JButton(\"Acquire a new champion with Blue Essence\");\r\n new Button(acquire, main);\r\n// acquire.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// acquire.setPreferredSize(new Dimension(2500, 100));\r\n// acquire.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n acquire.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n acquireChampionUsingBlueEssence();\r\n }\r\n });\r\n// main.add(acquire);\r\n }",
"private void buttonInitiation() {\n submit = new JButton(\"Submit\");\n submit.setBounds(105, 250, 90, 25);\n this.add(submit);\n goBack = new JButton(\"Return to Main Menu\");\n goBack.setBounds(205, 250, 200, 25);\n this.add(goBack);\n }",
"public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tvenEditarPacks.init(\"NEW\",null);\r\n\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\t\t\t\t\r\n\t\t\t}",
"protected void doBuildingClick() {\r\n\t\trepaint(buildPanelRect);\r\n\t}",
"private StartDebuggingButton() {\r\n\t\t\tsetToolTipText(\"Start debugging the currently open tab\");\r\n\t\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\t\t\ttry {\r\n\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(ClassLoader.getSystemResource(\"images/debug.png\")).getScaledInstance(FlowClient.BUTTON_ICON_SIZE, FlowClient.BUTTON_ICON_SIZE, Image.SCALE_SMOOTH)));\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\taddActionListener(new ActionListener() {\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Gets the currently active code and starts the debugging process\r\n\t\t\t\t */\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO Do some stuff to start debugging\r\n\t\t\t\t\tSystem.out.println(\"Debug button pressed!\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"private void buildButtonPanel() // buildButtonPanel method start\n\t{\n\t\tsubmit = new JButton(\"Submit\");\n\t\treset = new JButton(\"Reset\");\n\t\t\n\t\tbuttonPanel.add(reset);\n\t\tbuttonPanel.add(submit);\n\t\t\n\t\tsubmit.addActionListener(new SubmitHandler());\n\t\treset.addActionListener(new ResetHandler());\n\t}",
"public Component startButton() {\n startButton = new JButton(\"Start\");\n setFocusable(false);\n return startButton;\n }",
"private void makeSearchButton() {\n searchButton = new JButton();\n searchButton.setBorder(new CompoundBorder(\n BorderFactory.createMatteBorder(4, 0, 4, 7, DrawAttribute.lightblue),\n BorderFactory.createRaisedBevelBorder()));\n searchButton.setBackground(new Color(36, 45, 50));\n searchButton.setIcon(new ImageIcon(MapIcon.iconURLs.get(\"searchIcon\")));\n searchButton.setFocusable(false);\n searchButton.setBounds(320, 20, 43, 37);\n searchButton.setActionCommand(\"search\");\n }",
"public void settingBtnClick() {\n\t}",
"private WriteAReviewPage clickOnStartHereButton(){\n click(button_StartHereLocator);\n return new WriteAReviewPage();\n }",
"private Button createStartBtn(Stage stage, Scene gameScene) {\n Button startBtn = new Button(\"Start\");\n startBtn.setStyle(\"-fx-background-color: #991E1E; -fx-font-size: 2em; -fx-text-fill: #ffffff;\" +\n \" -fx-border-color: #ff0000; -fx-border-width: 2px; \");\n startBtn.setPrefWidth(200);\n startBtn.setPrefHeight(45);\n startBtn.setLayoutX(MainGUI.WIDTH / 2.0 - startBtn.getPrefWidth() / 2.0);\n startBtn.setLayoutY(225);\n\n DropShadow shadow = new DropShadow();\n startBtn.addEventHandler(MouseEvent.MOUSE_ENTERED, e -> startBtn.setEffect(shadow));\n //Removing the shadow when the mouse cursor is off\n startBtn.addEventHandler(MouseEvent.MOUSE_EXITED, e -> startBtn.setEffect(null));\n startBtn.setOnAction(e -> {\n stage.setScene(gameScene);\n game.start();\n });\n\n return startBtn;\n }",
"private void startGameButton() {\n startGame = new JButton(\"Aloita peli!\");\n ActionListener startGameListener = new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n controller.startGame();\n }\n };\n startGame.addActionListener(startGameListener);\n }",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n //Simply opens a new Editor Window\n new EditorWindow().setVisible(true);\n\n }",
"private void startButtonAction(){\n scoreboard.setStartAction(event->initControl());\n }",
"public void makeReceiveButton() {\r\n JButton receive = new JButton(\"Receive a new champion recommendation\");\r\n new Button(receive, main);\r\n// receive.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// receive.setPreferredSize(new Dimension(2500, 100));\r\n// receive.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n receive.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n receiveChampionRecommendation();\r\n }\r\n });\r\n// main.add(receive);\r\n }",
"void createButton(Button main){\n\t\tActions handler = new Actions();\r\n\t\tmain.setOnAction(handler);\r\n\t\tmain.setFont(font);\r\n\t\t//sets button preference dimensions and label \r\n\t\tmain.setPrefWidth(100);\r\n\t\tmain.setPrefHeight(60);\r\n\t\tmain.setText(\"Close\");\r\n\t}",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\tString strSelectedDataType = _strMarkerType.replace(\" \", \"\");\r\n\t\t\t\tUploadVariableFieldsDialog uploadVariableFieldsDialog = null;\r\n\t\t\t\tif (strSelectedDataType.equalsIgnoreCase(\"SNPGenotype\") || strSelectedDataType.equalsIgnoreCase(\"AllelicData\") || strSelectedDataType.equalsIgnoreCase(\"ABHData\") ){\r\n\t\t\t\t\tuploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, \"Markers\", true);\r\n\t\t\t\t} else if (strSelectedDataType.equalsIgnoreCase(\"DArTGenotype\")){\r\n\t\t\t\t\tuploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, \"Germplasm-Names\", true);\r\n\t\t\t\t} \r\n\r\n\t\t\t\tif (null != uploadVariableFieldsDialog) {\r\n\t\t\t\t\tWindow messageWindow = new Window(\"Upload Message\");\r\n\t\t\t\t\tmessageWindow.addComponent(uploadVariableFieldsDialog);\r\n\t\t\t\t\tmessageWindow.setWidth(\"500px\");\r\n\t\t\t\t\tmessageWindow.setBorder(Window.BORDER_NONE);\r\n\t\t\t\t\tmessageWindow.setClosable(true);\r\n\t\t\t\t\tmessageWindow.center();\r\n\t\t\t\t\tif (!_mainHomePage.getMainWindow().getChildWindows().contains(messageWindow)) {\r\n\t\t\t\t\t\t_mainHomePage.getMainWindow().addWindow(messageWindow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmessageWindow.setModal(true);\r\n\t\t\t\t\tmessageWindow.setVisible(true);\r\n\r\n\r\n\t\t\t\t\tuploadVariableFieldsDialog.addListener(new UploadVariableFieldsListener() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void uploadVariableFields(ArrayList<String> theListOfVariableFields) {\r\n\t\t\t\t\t\t\tArrayList<String> listOfVariableColumns = theListOfVariableFields;\r\n\t\t\t\t\t\t\tlistOfVariableDataColumns = listOfVariableColumns;\r\n\t\t\t\t\t\t\tif (null != listOfVariableColumns && 0 != listOfVariableColumns.size()){\r\n\t\t\t\t\t\t\t\tLayout newTabbedComponentForTemplate = buildTabbedComponentForTemplate();\r\n\t\t\t\t\t\t\t\tverticalLayout.replaceComponent(layoutForMarkerTableComponent, newTabbedComponentForTemplate);\r\n\t\t\t\t\t\t\t\tverticalLayout.requestRepaint();\r\n\t\t\t\t\t\t\t\tlayoutForMarkerTableComponent = newTabbedComponentForTemplate;\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}",
"public void buildGui() {\n\t}",
"public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}",
"public void makeGetRPButton() {\r\n JButton getRP = new JButton(\"Check if a champion can be purchased with Riot Points\");\r\n new Button(getRP, main);\r\n// getRP.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// getRP.setPreferredSize(new Dimension(2500, 100));\r\n// getRP.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n getRP.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n getRiotPointsBalanceDifference();\r\n }\r\n });\r\n// main.add(getRP);\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ProjectView().init();\r\n\t\t\t}",
"private void setupSubmitButton() {\n\t\tImageIcon submit_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"submit.png\");\n\t\tJButton submit_button = new JButton(\"\", submit_button_image);\n\t\tsubmit_button.setBorderPainted(false);\n\t\tsubmit_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//only enable submitting if festival has finished to avoid delayed voice prompts\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tsubmit_button.addMouseListener(new VoxMouseAdapter(submit_button,null));\n\t\tadd(submit_button);\n\t\tsubmit_button.setBounds(32, 598, 177, 100);\n\t}",
"public void start() {\n\n /*\n Set up the button\n */\n\n //Instantiate button\n JButton button = new JButton();\n //set up the centroid and dimension of button\n button.setBounds(90, 65, 300, 300);\n //add button to the components for an action event\n button.addActionListener(this);\n //use lambda expression to print \"Hello User!\"\n button.addActionListener(e -> System.out.println(\"Hello User!\"));\n //set button's title to \"Click me\"\n button.setText(\"Click me\");\n //hide text focus on button\n button.setFocusable(false); //to hide border around the text in button\n //set up the font\n button.setFont(new Font(\"Comic Sans\", Font.BOLD, 45));\n\n /*\n Set up the frame\n */\n\n //add button into the frame\n this.add(button);\n //Instantiate icon\n ImageIcon icon = new ImageIcon(\"src/main/resources/gui/icon.png\");\n //add icon to frame\n this.setIconImage(icon.getImage());\n //set exit condition to the frame\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //set window's title\n this.setTitle(\"Click the button\");\n //set frame size (width 500, height 500)\n this.setSize(500, 500);\n //set frame layout (null)\n this.setLayout(null);\n //set window show up in the middle of screen\n this.setLocationRelativeTo(null);\n //set frame visibility (true)\n this.setVisible(true);\n\n }",
"public void actionPerformed(ActionEvent event) {\r\n//\t\tbuildPanelNode.setVisible(false);\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tbuildButton.setVisible(false);\r\n\t\tpolygonMap.setShowSettlementNodes(false);\r\n\t\tpolygonMap.setShowStreets(false);\r\n\t\tpolygonMap.setShowCityNodes(false);\r\n\t\tpolygonMap.repaint();\r\n\t\tString cmd = event.getActionCommand().substring(5);\r\n\t\tString source = event.getActionCommand().substring(0, 4);\r\n\r\n\t\tif (client.getID() != island.getCurrentPlayer().getID()\r\n\t\t\t\t&& !source.equals(\"conf\") && !source.equals(\"resP\") //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t\t&& !cmd.equals(\"buildingcosts\") && !source.equals(\"musi\")) { //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\t\r\n\t\tif(discarding && !source.equals(\"resP\")) { //$NON-NLS-1$\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (choosing && !source.equals(\"chos\")) { //$NON-NLS-1$\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (tradingMenu.isVisible() && source.equals(\"chat\") //$NON-NLS-1$\r\n\t\t\t\t&& source.equals(\"deal\")) { //$NON-NLS-1$\r\n\t\t\ttradingMenu.setVisible(false);\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (roadCardCount > 0 && !source.equals(\"road\")) { //$NON-NLS-1$\r\n\t\t\tappendMessage(Messages.getString(\"Controller.BauenStrasse1\") + roadCardCount //$NON-NLS-1$\r\n\t\t\t\t\t+ Messages.getString(\"Controller.BauenStrasse2\")); //$NON-NLS-1$\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (isRobbing && !source.equals(\"robb\")) { //$NON-NLS-1$\r\n\t\t\tappendMessage(Messages.getString(\"Controller.GegnerWaehlen\")); //$NON-NLS-1$\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (resourcePanel.isVisible() && !source.equals(\"resP\")) { //$NON-NLS-1$\r\n\t\t\tappendMessage(Messages.getString(\"Controller.RohstoffeWaehlen\")); //$NON-NLS-1$\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (isRobberActivated) {\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (blocked) {\r\n\t\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t\tif (source.equals(\"musi\")) { //$NON-NLS-1$\r\n\t\t\tif (cmd.equals(\"play\")) { //$NON-NLS-1$\r\n\t\t\t\tboolean playing = song.isAudioIsPlaying();\r\n\t\t\t\tif (playing) {\r\n\t\t\t\t\tsong.stopSound();\r\n\t\t\t\t\tmainGUI.getPlayMusic().changeIconActivity(ImportImages.confirmBtn);\r\n\t\t\t\t\tmainGUI.getPlayMusic().setToolTipText(Messages.getString(\"Controller.MusicAbspielen\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tsong.playSound(ImportAudio.piratesTheme, true);\r\n\t\t\t\t\tmainGUI.getPlayMusic().changeIconActivity(ImportImages.cancelBtn);\r\n\t\t\t\t\tmainGUI.getPlayMusic().setToolTipText(Messages.getString(\"Controller.MusicStopen\")); //$NON-NLS-1$\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"mute\")) {\t //$NON-NLS-1$\r\n\t\t\t\tboolean mute = !thread.getSong().isMuted();\t\t\t\t\r\n\t\t\t\tthread.getSong().setMuted(mute);\r\n\t\t\t\tif (mute) {\r\n\t\t\t\t\tmainGUI.getMuteMusic().changeIconActivity(ImportImages.muteBtn);\r\n\t\t\t\t\tmainGUI.getMuteMusic().setToolTipText(Messages.getString(\"Controller.SoundUnMuten\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmainGUI.getMuteMusic().changeIconActivity(ImportImages.notMuteBtn);\r\n\t\t\t\t\tmainGUI.getMuteMusic().setToolTipText(Messages.getString(\"Controller.SoundMuten\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\tif (source.equals(\"node\")) { //$NON-NLS-1$\r\n\t\t\tif (client.isFirstRoll()) {\r\n\t\t\t\tif (allowedToRoll) {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Wuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.NichtAnDerReihe\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (cmd.equals(\"settlement\")) { //$NON-NLS-1$\r\n\t\t\t\t\tif ((clickedNode.isBuildable(island,\r\n\t\t\t\t\t\t\tclient.getCurrentPlayer(), client.isBeginning())\r\n\t\t\t\t\t\t\t&& clickedNode.getBuilding() == Constants.UNBUILT && !client\r\n\t\t\t\t\t\t\t\t.isBeginning()) || client.getIsland().isTest()) {\r\n\t\t\t\t\t\tbuildSettlement();\r\n\t\t\t\t\t} else if (!built\r\n\t\t\t\t\t\t\t&& clickedNode.isBuildable(island,\r\n\t\t\t\t\t\t\t\t\tclient.getCurrentPlayer(),\r\n\t\t\t\t\t\t\t\t\tclient.isBeginning())\r\n\t\t\t\t\t\t\t&& clickedNode.getBuilding() == Constants.UNBUILT\r\n\t\t\t\t\t\t\t&& client.isBeginning()\r\n\t\t\t\t\t\t\t&& beginningSettlementCount == 0\r\n\t\t\t\t\t\t\t&& beginningRoadCount == 0) {\r\n\t\t\t\t\t\tbeginningSettlementCount++;\r\n\t\t\t\t\t\tbuildSettlement();\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstStrasseBauen\")); //$NON-NLS-1$\r\n\t\t\t\t\t\tbuilt = true;\r\n\t\t\t\t\t} else if (!built\r\n\t\t\t\t\t\t\t&& clickedNode.isBuildable(island,\r\n\t\t\t\t\t\t\t\t\tclient.getCurrentPlayer(),\r\n\t\t\t\t\t\t\t\t\tclient.isBeginning())\r\n\t\t\t\t\t\t\t&& clickedNode.getBuilding() == Constants.UNBUILT\r\n\t\t\t\t\t\t\t&& client.isBeginning()\r\n\t\t\t\t\t\t\t&& beginningSettlementCount == 1\r\n\t\t\t\t\t\t\t&& beginningRoadCount == 1) {\r\n\t\t\t\t\t\tbeginningSettlementCount++;\r\n\t\t\t\t\t\tbuildSettlement();\r\n\t\t\t\t\t\tbuilt = true;\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstStrasseBauen\")); //$NON-NLS-1$\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstKeineSiedlungBauen\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (cmd.equals(\"city\")) { //$NON-NLS-1$\r\n\t\t\t\t\tif ((clickedNode.getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t\t\t&& clickedNode.getOwnerID() == client\r\n\t\t\t\t\t\t\t\t\t.getCurrentPlayer() && !client\r\n\t\t\t\t\t\t\t\t.isBeginning()) || client.getIsland().isTest()) {\r\n\t\t\t\t\t\tbuildCity();\r\n\t\t\t\t\t\tbuilt = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstKeineStadtBauen\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (source.equals(\"road\") && cmd.equals(\"road\")) { //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\tif (client.isFirstRoll()) {\r\n\t\t\t\tif (allowedToRoll) {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Wuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.NichtAnDerReihe\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ((clickedRoad.getOwner() == Constants.NOBODY\r\n\t\t\t\t\t\t&& !client.isBeginning() && clickedRoad.isBuildable(\r\n\t\t\t\t\t\tisland, client.getCurrentPlayer()))\r\n\t\t\t\t\t\t|| client.getIsland().isTest()) {\r\n\t\t\t\t\tif (roadCardCount > 0)\r\n\t\t\t\t\t\troadCardCount--;\r\n\t\t\t\t\tbuildStreet();\r\n\t\t\t\t} else if (client.isBeginning() && beginningRoadCount == 0\r\n\t\t\t\t\t\t&& beginningSettlementCount == 1) {\r\n\t\t\t\t\tif (buildStreetIsAllowed()) {\r\n\t\t\t\t\t\tbeginningRoadCount++;\r\n\t\t\t\t\t\tbuildStreet();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.StrasseAnSiedlung\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (client.isBeginning() && beginningRoadCount == 1\r\n\t\t\t\t\t\t&& beginningSettlementCount == 2) {\r\n\t\t\t\t\tif (buildStreetIsAllowed()) {\r\n\t\t\t\t\t\tbeginningRoadCount++;\r\n\t\t\t\t\t\tbuildStreet();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.StrasseAnSiedlung\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstHierKeineStrasseBauen\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (source.equals(\"menu\")) { //$NON-NLS-1$\r\n\t\t\tif (cmd.equals(\"trade\")) { //$NON-NLS-1$\r\n\t\t\t\tif (client.isFirstRoll()) {\r\n\t\t\t\t\tif (allowedToRoll) {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Wuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.NichtAnDerReihe\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (client.getCurrentPhase() >= Constants.PHASE_2\r\n\t\t\t\t\t\t\t&& !client.isBeginning()) {\r\n\t\t\t\t\t\trefresh();\r\n\t\t\t\t\t\tbuildingCostsMenuPanel.setVisible(false);\r\n\t\t\t\t\t\tcardMenu.setVisible(false);\r\n\t\t\t\t\t\ttradingMenu.setVisible(!tradingMenu.isVisible());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstNichtHandeln\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"card\")) { //$NON-NLS-1$\r\n\t\t\t\tif (client.isFirstRoll()) {\r\n\t\t\t\t\tif (allowedToRoll) {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Wuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.NichtAnDerReihe\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbuildingCostsMenuPanel.setVisible(false);\r\n\t\t\t\t\ttradingMenu.setVisible(false);\r\n\t\t\t\t\trefresh();\r\n\t\t\t\t\tcardMenu.setVisible(!cardMenu.isVisible());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"buildingcosts\")) { //$NON-NLS-1$\r\n\t\t\t\tbuildingCostsMenuPanel.setVisible(!buildingCostsMenuPanel\r\n\t\t\t\t\t\t.isVisible());\r\n\t\t\t\tcardMenu.setVisible(false);\r\n\t\t\t\ttradingMenu.setVisible(false);\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"next\")) { //$NON-NLS-1$\r\n\t\t\t\tif (client.isFirstRoll()) {\r\n\t\t\t\t\tif (allowedToRoll) {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Wuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.NichtAnDerReihe\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!client.isBeginning()) {\r\n\t\t\t\t\t\tif (client.getCurrentPhase() > Constants.PHASE_1) {\r\n\t\t\t\t\t\t\tbuilt = false;\r\n\t\t\t\t\t\t\tif ((beginningRoadCount == 2 && beginningSettlementCount == 2)\r\n\t\t\t\t\t\t\t\t\t|| client.getIsland().isTest()) {\r\n\t\t\t\t\t\t\t\tclient.setBeginning(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMessage newMessage = new Message(false,\r\n\t\t\t\t\t\t\t\t\tclient.isBeginning(), client.getID(), false);\r\n\t\t\t\t\t\t\tsendMessage(newMessage);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Wuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"roll\")) { //$NON-NLS-1$\r\n\t\t\t\tif ((client.getCurrentPhase() == Constants.PHASE_1 && !client\r\n\t\t\t\t\t\t.isBeginning())\r\n\t\t\t\t\t\t|| (client.isFirstRoll() && allowedToRoll)) {\r\n\t\t\t\t\tallowedToRoll = false;\r\n\t\t\t\t\tif (!client.isFirstRoll()) {\r\n\t\t\t\t\t\tclient.setCurrentPhase(Constants.PHASE_2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint firstDice = (int) Math\r\n\t\t\t\t\t\t\t.round((Math.random() * 6.0 + 0.5));\r\n\t\t\t\t\tint secondDice = (int) Math\r\n\t\t\t\t\t\t\t.round((Math.random() * 6.0 + 0.5));\r\n\t\t\t\t\tsendMessage(new Message(firstDice, secondDice,\r\n\t\t\t\t\t\t\tclient.getID()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstNichtWuerfeln\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (source.equals(\"card\")) { //$NON-NLS-1$\r\n\t\t\tif (cmd.equals(\"monopoly\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(new Message(Constants.MONOPOLY, false));\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"invention\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(new Message(Constants.GETRESOURCES, (byte) -1,\r\n\t\t\t\t\t\t(byte) -1));\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"victory\")) { //$NON-NLS-1$\r\n//\t\t\t\tauskommentiert lassen\r\n//\t\t\t\tsendMessage(new Message(Constants.VICTORYPOINTS, false));\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"streets\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(new Message(Constants.BUILDSTREETS, false));\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"knight\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(new Message(Constants.KNIGHT, false));\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"draw\")) { //$NON-NLS-1$\r\n\t\t\t\tif (client.getCurrentPhase() == Constants.PHASE_3\r\n\t\t\t\t\t\t|| client.getCurrentPhase() == Constants.PHASE_2) {\r\n\t\t\t\t\tsendMessage(new Message(Constants.VICTORYPOINTS, true));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.DarfstKeineKarteKaufen\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!cmd.equals(\"draw\")) //$NON-NLS-1$\r\n\t\t\t\tcardMenu.setVisible(false);\r\n\t\t}\r\n\t\tif (source.equals(\"deal\")) { //$NON-NLS-1$\r\n\t\t\tif (cmd.equals(\"trade\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(tradingMenu.getMessage());\r\n\t\t\t\tsetNoInteraction(true);\r\n\t\t\t\ttradingMenu.setVisible(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (source.equals(\"conf\")) { //$NON-NLS-1$\r\n\t\t\tif (cmd.equals(\"confirm\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(new Message(mainGUI.getConfirmTradePanel()\r\n\t\t\t\t\t\t.getOffR(), mainGUI.getConfirmTradePanel().getExpR(),\r\n\t\t\t\t\t\tclient.getID(), false, true));\r\n\t\t\t\tappendMessage(Messages.getString(\"Controller.HandelAngenommen\")); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tif (cmd.equals(\"cancel\")) { //$NON-NLS-1$\r\n\t\t\t\tsendMessage(new Message(mainGUI.getConfirmTradePanel()\r\n\t\t\t\t\t\t.getOffR(), mainGUI.getConfirmTradePanel().getExpR(),\r\n\t\t\t\t\t\tclient.getID(), false, false));\r\n\t\t\t\tappendMessage(Messages.getString(\"Controller.HandelAbgelehnt\")); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tmainGUI.getConfirmTradePanel().setVisible(false);\r\n\t\t}\r\n\t\tif (source.equals(\"chos\")) { //$NON-NLS-1$\r\n\t\t\tmainGUI.getTradeePanel().setVisible(false);\r\n\t\t\tchoosing = false;\r\n\t\t\tsendMessage(new Message(offR, expR, Integer.parseInt(cmd), true, true));\r\n\t\t\toffR = new int[0];\r\n\t\t\texpR = new int[0];\r\n\t\t}\r\n\t\tif (source.equals(\"robb\")) { //$NON-NLS-1$\r\n\t\t\tmainGUI.getRobberPanel().setVisible(false);\r\n\t\t\tisRobbing = false;\r\n\t\t\tsendMessage(new Message(Integer.parseInt(cmd), (byte) -1));\r\n\t\t}\r\n\t\tif (source.equals(\"resP\")) { //$NON-NLS-1$\r\n\t\t\tif (isResourceCard) {\r\n\t\t\t\tif (cmd.equals(\"confirm\")) { //$NON-NLS-1$\r\n\t\t\t\t\tif (resourcePanel.hasFirstResource()\r\n\t\t\t\t\t\t\t&& resourcePanel.hasSecondResource()) {\r\n\t\t\t\t\t\tsendMessage(new Message(Constants.GETRESOURCES,\r\n\t\t\t\t\t\t\t\tresourcePanel.getResourceByIndex(1),\r\n\t\t\t\t\t\t\t\tresourcePanel.getResourceByIndex(2)));\r\n\t\t\t\t\t\tresourcePanel.resetResources();\r\n\t\t\t\t\t\tisResourceCard = false;\r\n\t\t\t\t\t\tresourcePanel.setVisible(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.RohstoffeAuswaehlen2\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (cmd.equals(\"cancel\")) { //$NON-NLS-1$\r\n\t\t\t\t\tresourcePanel.resetResources();\r\n\t\t\t\t} else if (!resourcePanel.hasFirstResource()) {\r\n\t\t\t\t\tresourcePanel.setFirstResource(cmd, false);\r\n\t\t\t\t} else if (!resourcePanel.hasSecondResource()) {\r\n\t\t\t\t\tresourcePanel.setSecondResource(cmd);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.Bereits2Rohstoffe\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t} else if (isMonopolyCard) {\r\n\t\t\t\tif (cmd.equals(\"confirm\")) { //$NON-NLS-1$\r\n\t\t\t\t\tif (resourcePanel.hasFirstResource()) {\r\n\t\t\t\t\t\tsendMessage(new Message(Constants.MONOPOLY,\r\n\t\t\t\t\t\t\t\tresourcePanel.getResourceByIndex(1), -1, -1));\r\n\t\t\t\t\t\tresourcePanel.resetResources();\r\n\t\t\t\t\t\tisMonopolyCard = false;\r\n\t\t\t\t\t\tresourcePanel.setVisible(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.WaehleRohstoffe\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (cmd.equals(\"cancel\")) { //$NON-NLS-1$\r\n\t\t\t\t\tresourcePanel.resetResources();\r\n\t\t\t\t} else if (!resourcePanel.hasFirstResource()) {\r\n\t\t\t\t\tresourcePanel.setFirstResource(cmd, true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappendMessage(Messages.getString(\"Controller.BereitsGewaehlt\")); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t} else if (discarding) {\r\n\t\t\t\tif (cmd.equals(\"confirm\")) { //$NON-NLS-1$\r\n\t\t\t\t\tif (resourcePanel.getResAmount() < discardAmount) {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.RohstoffeWaehlen\")); //$NON-NLS-1$\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsendMessage(new Message(\r\n\t\t\t\t\t\t\t\tresourcePanel.getDiscardedResources(),\r\n\t\t\t\t\t\t\t\tclient.getID()));\r\n\t\t\t\t\t\tdiscardAmount = 0;\r\n\t\t\t\t\t\tresourcePanel.resetAll();\r\n\t\t\t\t\t\tresourcePanel.setVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (cmd.equals(\"cancel\")) { //$NON-NLS-1$\r\n\t\t\t\t\tresourcePanel.resetDiscardingResources();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (resourcePanel.getResAmount() < discardAmount) {\r\n\t\t\t\t\t\tif (resourcePanel.getResourceAmount(cmd) < client\r\n\t\t\t\t\t\t\t\t.getSettler().getResourceAmount(cmd)) {\r\n\t\t\t\t\t\t\tresourcePanel.addResource(cmd);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.WaehleAnderenRohstoff\")); //$NON-NLS-1$\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tappendMessage(Messages.getString(\"Controller.GenugRohstoffeGewaehlt\")); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void createButtonActionPerformed(ActionEvent evt) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttextArea.append(\"My mark is X\\n\");\r\n\t\tmyMark =\"X\";\r\n\t\tyourMark=\"O\";\r\n\t\tnew CreateButtonThread(\"CreateButton\");\t\t\t\t\t\r\n\t}",
"@FXML\n public void addBuildingButtonHandler(MouseEvent mouseEvent) {\n try {\n //removing spaces so the description can be send in the url using _ to later identify where spaces should be.\n String buildingName = buildingNameTextField.getText();\n\n List<Building> buildings = ServerCommunication.getBuildings();\n for (Building b : buildings) {\n if (b.getBuilding_Name().equals(buildingName)) {\n confirmationText.setText(\"Please choose a name that doesn't exit yet.\");\n return;\n }\n }\n\n Boolean nonResSpace = nonResSpaceCheckBox.isSelected();\n int carParkingSpace = Integer.parseInt(carParkingSpaceTextField.getText());\n\n //removing spaces so the description can be send in the url using _ to later identify where spaces should be.\n String spaceDescription = descriptionTextField.getText();\n String[] descriptionArray = spaceDescription.split(\" \");\n String description = descriptionArray[0];\n for (int i = 1; i < descriptionArray.length; i++) {\n description = description + \"_\" + descriptionArray[i];\n }\n\n Time openTime = Time.valueOf(openTimeTextField.getText());\n Time closeTime = Time.valueOf(closeTimeTextField.getText());\n ServerCommunication.createBuilding(buildingName, nonResSpace, carParkingSpace, description, openTime, closeTime);\n confirmationText.setText(\"Building added successfully.\");\n AdminMainSceneController.setStatus(2);\n switchScene(mouseEvent, \"/adminMainScene.fxml\", \"Admin Window\");\n\n } catch (Exception e) {\n confirmationText.setText(\"Building failed to add.\");\n throw new IllegalArgumentException(\"invalid input\");\n }\n }",
"@Override\n public void buttonClick(ClickEvent event) {\n \tgetUI().getNavigator().navigateTo(NAME + \"/\" + contenView);\n }",
"public void clickOnEditButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary.ant-btn-circle\"), SHORTWAIT);\r\n\t}",
"public Container doMakeContents() {\n\n positionAtClickCbx = new JCheckBox(\"Position at click\", false);\n positionLabel = new JLabel(\" \", JLabel.LEFT);\n\n // make entry boxes for range ring center location; \n // preload with current position.\n boolean set = false;\n if (Double.isNaN(lat)) {\n lat = rangeRings.getCenterLatitude();\n } else {\n set = true;\n }\n if (Double.isNaN(lon)) {\n lon = rangeRings.getCenterLongitude();\n } else {\n set = true;\n }\n if (set) {\n try {\n rangeRings.setCenterPoint(lat, lon);\n rescaleLabels();\n } catch (Exception exc) {\n logException(\"setting center point\", exc);\n }\n }\n\n latField = new JTextField(getDisplayConventions().formatLatLon(lat),\n 7);\n latField.addActionListener(this);\n latField.setActionCommand(CMD_CENTER_LAT);\n\n lonField = new JTextField(getDisplayConventions().formatLatLon(lon),\n 7);\n lonField.addActionListener(this);\n lonField.setActionCommand(CMD_CENTER_LON);\n\n\n double[] stretchy = {\n 0, 0.0, 1.0, 1.0, 1.0, 0.0, 1.0\n };\n distanceUnitLabels = new ArrayList<JLabel>();\n String distUnitText = \" (\"+getDisplayUnit()+\") \";\n for (int i = 0; i < 3; i++) {\n distanceUnitLabels.add(new JLabel(distUnitText));\n }\n \n // Create the link button for Color and Line Width\n linkColorAndLineWidthButton =\n GuiUtils.getToggleImageButton(\"/auxdata/ui/icons/link_break.png\",\n \"/auxdata/ui/icons/link.png\", 0, 0,\n true);\n linkColorAndLineWidthButton.setContentAreaFilled(false);\n // Initialize link state as true (linked)\n linkColorAndLineWidthButton.setSelected(true);\n linkColorAndLineWidthButton.setToolTipText(\n \"If linked, Color and Line Width changes apply to Range Rings, Radials, and Labels.\");\n \n rrColorSwatch = (ColorSwatchComponent) makeColorBox(CMD_RR_COLOR, rrColor);\n rrColorSwatch.setPreferredSize(Constants.DEFAULT_COLOR_PICKER_SIZE);\n JPanel rrColPanel = new JPanel(new FlowLayout());\n rrColPanel.add(rrColorSwatch);\n\n radColorSwatch = (ColorSwatchComponent) makeColorBox(CMD_RAD_COLOR, radColor);\n radColorSwatch.setPreferredSize(Constants.DEFAULT_COLOR_PICKER_SIZE);\n JPanel radColPanel = new JPanel(new FlowLayout());\n radColPanel.add(radColorSwatch);\n\n lblColorSwatch = (ColorSwatchComponent) makeColorBox(CMD_LBL_COLOR, lblColor);\n lblColorSwatch.setPreferredSize(Constants.DEFAULT_COLOR_PICKER_SIZE);\n JPanel lblColPanel = new JPanel(new FlowLayout());\n lblColPanel.add(lblColorSwatch);\n \n rrComboBox = makeLineWidthBox(CMD_RR_WIDTH, rrWidth);\n radComboBox = makeLineWidthBox(CMD_RAD_WIDTH, radWidth);\n lblComboBox = makeLineWidthBox(CMD_LBL_WIDTH, lblWidth);\n \n Component[] comps = new Component[] {\n \n // Header\n GuiUtils.filler(), \n GuiUtils.cLabel(\"Visible\"),\n GuiUtils.cLabel(\" Spacing \"), \n GuiUtils.cLabel(\" Unit \"),\n GuiUtils.cLabel(\" Color \"), \n GuiUtils.filler(),\n GuiUtils.cLabel(\" Line Width \"), \n \n // Row 1\n GuiUtils.rLabel(\"Range Rings: \"),\n GuiUtils.hbox(new JLabel(\" \"),\n makeCbx(\"\", CMD_RR_VIS, rrVisible)),\n makeSpacingBox(rrSpacingList, CMD_RR_SPACING, rrSpacing),\n distanceUnitLabels.get(0), \n rrColPanel,\n GuiUtils.filler(), rrComboBox,\n \n // Row 2\n GuiUtils.rLabel(\"Radials: \"),\n GuiUtils.hbox(new JLabel(\" \"),\n makeCbx(\"\", CMD_RAD_VIS, radVisible)),\n makeSpacingBox(radSpacingList, CMD_RAD_SPACING, radSpacing),\n new JLabel(\" (deg) \"), \n radColPanel,\n GuiUtils.filler(), radComboBox,\n \n // Row 3\n GuiUtils.rLabel(\"Labels: \"),\n GuiUtils.hbox(new JLabel(\" \"),\n makeCbx(\"\", CMD_LBL_VIS, lblVisible)),\n makeSpacingBox(lblSpacingList, CMD_LBL_SPACING, lblSpacing),\n distanceUnitLabels.get(1), \n lblColPanel,\n GuiUtils.filler(), lblComboBox,\n \n // Final row\n GuiUtils.rLabel(\" \"), new JLabel(\"Max. Radius: \"),\n makeSpacingBox(rrMaxRadiusList, CMD_RR_RADIUS, rrMaxRadius),\n distanceUnitLabels.get(2), GuiUtils.filler(),\n linkColorAndLineWidthButton\n };\n\n GuiUtils.tmpInsets = new Insets(5, 5, 5, 5);\n JPanel topInner = GuiUtils.doLayout(comps, 7, stretchy, GuiUtils.WT_N);\n JPanel topOuter = new JPanel(new FlowLayout(FlowLayout.LEADING));\n topOuter.add(topInner);\n \n List bottomComps = new ArrayList();\n\n stationCbx = new JComboBox();\n stationCbx.setFont(Font.decode(\"monospaced\"));\n\n setStations();\n stationCbx.setSelectedIndex(stationIdx);\n stationCbx.addActionListener(this);\n stationCbx.setActionCommand(CMD_STATIONNAMES);\n bottomComps.add(GuiUtils.rLabel(\"Location: \"));\n bottomComps.add(GuiUtils.left(GuiUtils.wrap(stationCbx)));\n\n bottomComps.add(GuiUtils.rLabel(\"Center:\"));\n bottomComps.add(\n GuiUtils.left(\n GuiUtils.hflow(\n Misc.newList(\n new JLabel(\" Latitude: \"), latField,\n new JLabel(\" Longitude: \"), lonField))));\n bottomComps.add(GuiUtils.rLabel(\" \"));\n bottomComps.add(GuiUtils.left(positionAtClickCbx));\n\n bottomComps.add(GuiUtils.rLabel(\"Vertical Position:\"));\n bottomComps.add(GuiUtils.hgrid(doMakeZPositionSlider(),\n GuiUtils.filler()));\n\n GuiUtils.tmpInsets = new Insets(5, 5, 5, 5);\n JPanel bottom = GuiUtils.doLayout(bottomComps, 2, GuiUtils.WT_NY,\n GuiUtils.WT_N);\n\n JTabbedPane tabbedPane = new JTabbedPane();\n tabbedPane.add(\"Location\", GuiUtils.top(GuiUtils.inset(bottom, 5)));\n tabbedPane.add(\"Settings\", GuiUtils.top(GuiUtils.inset(topOuter, 5)));\n return tabbedPane;\n }",
"public void setUpFindButton() {\n\t\tButton btn_find = (Button) findViewById(R.id.find);\n\n\t\t// Defining button click event listener for the find button\n\t\tOnClickListener findClickListener = new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// Getting reference to EditText to get the user input location\n\t\t\t\tEditText etLocation = (EditText) findViewById(R.id.location);\n\n\t\t\t\t// Getting user input location\n\t\t\t\tString location = etLocation.getText().toString();\n\n\t\t\t\tif (location != null && !location.equals(\"\")) {\n\t\t\t\t\tfindPlace = new GeocoderTask(getBaseContext(), googleMap);\n\t\t\t\t\t\t\tfindPlace.execute(location);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// Setting button click event listener for the find button\n\t\tbtn_find.setOnClickListener(findClickListener);\n\t}",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\r\n\t\t\t\t\t\tvenObjectsByPack.init(\"NEW\");\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(venObjectsByPack);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}",
"public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }",
"public LinkButton() {\n\t\tsuper();\n\t\tinit();\n\t}",
"public void addVehicleSaveButton() {\r\n\t\tsafeJavaScriptClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-col-24 button.ant-btn.ant-btn-primary\"));\r\n\t}",
"public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}",
"public crackerClicker() {\n initComponents();\n }",
"void configureButtonListener();",
"private void onStartClickEvent() {\n\t\tmBtnStart.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tLog.d(TAG, \"onStartClickEvent\");\n\n\t\t\t\t//initViewConfig();\n\n//\t\t\t\tAVCom.start();\n\t\t\t\tavcom.Start();\n\t\t\t\tLog.d(TAG, \"onStartClickEvent done.\");\n\n\n\t\t\t}\n\t\t});\n\t}",
"private void displaySubmitButton() {\n RegularButton submitButton = new RegularButton(\"SUBMIT\", 1000, 600);\n submitButton.setOnAction(e -> handleSubmit());\n\n sceneNodes.getChildren().add(submitButton);\n }",
"public void startGame() {\n\t\t// create a new button to start the game\n\t\tstart = new JButton(\"Start\");\n\t\t// add an actionListener\n\t\tstart.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrent = controller.tree.getRoot();\n\t\t\t\t// remove the start button\n\t\t\t\tsouth.remove(start);\n\t\t\t\tvalidate();\n\n\t\t\t\t// remove the picture + menu\n\t\t\t\tcenter.remove(image);\n\t\t\t\tcenter.remove(menuPanel);\n\n\t\t\t\t// add JTextArea to center panel and update text to whatever\n\t\t\t\t// current's data is\n\t\t\t\tquestion = new JTextField();\n\t\t\t\tquestion.setEditable(false);\n\t\t\t\tquestion.setBackground(new Color(#00aeef));\n\n\t\t\t\t// Insets constructor summary: (top, left, bottom, right)\n\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\tquestion.setHorizontalAlignment(JTextField.CENTER);\n\t\t\t\tvalidate();\n\t\t\t\t// adds the question panel to the center\n\t\t\t\tcenter.add(question);\n\n\t\t\t\tvalidate();\n\n\t\t\t\t// create JPanel with GridLayout -- 1 rows, 2 columns\n\t\t\t\tsouth.setLayout(new GridLayout(1, 2));\n\t\t\t\tvalidate();\n\n\t\t\t\t// create yes button\n\t\t\t\tyes();\n\n\t\t\t\t// create no button\n\t\t\t\tno();\n\n\t\t\t}\n\t\t});\n\t\t// add the start button to the south panel\n\t\tsouth.add(start);\n\t\tvalidate();\n\t}",
"public void initializeBuildMapButton(){\n Button buildMapButton = (Button) findViewById(R.id.buildMapButton);\n buildMapButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent mapIntent = new Intent(getApplicationContext(), Map.class);\n\n ArrayList<String> destNames = new ArrayList<String>();\n double[] destLongs = new double[orderedDestinations.size()];\n double[] destLats = new double[orderedDestinations.size()];\n\n for(int i=0; i< orderedDestinations.size(); i++){\n Destination tempDest = orderedDestinations.get(i);\n destNames.add(tempDest.name);\n destLongs[i] = tempDest.longitude;\n destLats[i] = tempDest.latitude;\n }\n mapIntent.putExtra(\"dLong\", destLongs);\n mapIntent.putExtra(\"dLat\", destLats);\n mapIntent.putExtra(\"dName\", destNames);\n mapIntent.putExtra(\"polyString\", polylineEncodedString);\n startActivity(mapIntent);\n }\n\n });\n }",
"public void run() {\r\n _btnPreviewStop.setText(\"Preview\"); // I18N\r\n }",
"protected void buildUi() {\n\t\t\t LatLng cawkerCity = LatLng.newInstance(39.509, -98.434);\n\t\t\n\t\t\t map = new MapWidget(cawkerCity, 2);\n\t\t\t map.setSize(\"100%\", \"100%\");\n\t\t\t // Add some controls for the zoom level\n\t\t\t map.addControl(new LargeMapControl());\n\t\t\n\t\t\t // Add a marker\n\t\t\t map.addOverlay(new Marker(cawkerCity));\n\t\t\n\t\t\t // Add an info window to highlight a point of interest\n\t\t\t map.getInfoWindow().open(map.getCenter(),\n\t\t\t new InfoWindowContent(\"World's Largest Ball of Sisal Twine\"));\n\t\t\n\t\t\t root.addNorth(map, 500);\n\n\t}",
"@Override\n\tprotected void initAddButton() {\n addBtn = addButton(\"newBtn\", TwlLocalisationKeys.ADD_BEAT_TYPE_TOOLTIP, new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tnew AddEditBeatTypePanel(true, null, BeatTypesList.this).run(); // adding\n\t\t\t\t}\n\t }); \t\t\n\t}",
"public URLButton()\n {\n title = \"\";\n }",
"public void addHostButton(final String ipAddress) {\n\n\tButton btn = new Button(getApplicationContext());\n\tbtn.setText(ipAddress);\n\n\tbtn.setOnClickListener(new View.OnClickListener() {\n\n\t @Override\n\t public void onClick(View v) {\n\n\t\tstartSending(ipAddress);\n\n\t }\n\t});\n\n\tll.addView(btn);\n\n }",
"@Override\n\tprotected void Initialize() {\n\t\tint grayBoxX = (this.width / 2) - 198;\n\t\tint grayBoxY = (this.height / 2) - 83;\n\t\tint color = Color.DARK_GRAY.getRGB();\n\t\tthis.serverConfiguration = Prefab.proxy.getServerConfiguration();\n\t\tthis.houseConfiguration = ClientEventHandler.playerConfig.getClientConfig(\"Starter House\", HouseConfiguration.class);\n\t\tthis.houseConfiguration.pos = this.pos;\n\n\t\t// Create the Controls.\n\t\t// Column 1:\n\t\tthis.btnHouseStyle = new ExtendedButton(grayBoxX + 10, grayBoxY + 20, 90, 20, this.houseConfiguration.houseStyle.getDisplayName(), this::actionPerformed);\n\n\t\tthis.addButton(this.btnHouseStyle);\n\n\t\tthis.btnVisualize = new ExtendedButton(grayBoxX + 10, grayBoxY + 60, 90, 20, GuiLangKeys.translateString(GuiLangKeys.GUI_BUTTON_PREVIEW), this::actionPerformed);\n\t\tthis.addButton(this.btnVisualize);\n\n\t\tint x = grayBoxX + 10;\n\t\tint y = grayBoxY + 10;\n\t\tint secondColumnY = y;\n\t\tint secondColumnX = x + 137;\n\n\t\tthis.btnAddFurnace = new GuiCheckBox(secondColumnX, secondColumnY, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_FURNACE), this.houseConfiguration.addFurnace, null);\n\t\tthis.btnAddFurnace.setFGColor(color);\n\t\tthis.btnAddFurnace.setWithShadow(false);\n\t\tthis.btnAddFurnace.visible = false;\n\t\tthis.addButton(this.btnAddFurnace);\n\n\t\tif (this.serverConfiguration.addFurnace) {\n\t\t\tsecondColumnY += 15;\n\t\t}\n\n\t\tthis.btnAddBed = new GuiCheckBox(secondColumnX, secondColumnY, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_BED), this.houseConfiguration.addBed, null);\n\t\tthis.btnAddBed.setFGColor(color);\n\t\tthis.btnAddBed.setWithShadow(false);\n\t\tthis.btnAddBed.visible = false;\n\t\tthis.addButton(this.btnAddBed);\n\n\t\tif (this.serverConfiguration.addBed) {\n\t\t\tsecondColumnY += 15;\n\t\t}\n\n\t\tthis.btnAddCraftingTable = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_CRAFTING_TABLE), this.houseConfiguration.addCraftingTable, null);\n\t\tthis.btnAddCraftingTable.setFGColor(color);\n\t\tthis.btnAddCraftingTable.setWithShadow(false);\n\t\tthis.btnAddCraftingTable.visible = false;\n\t\tthis.addButton(this.btnAddCraftingTable);\n\n\t\tif (this.serverConfiguration.addCraftingTable) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddTorches = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_TORCHES), this.houseConfiguration.addTorches, null);\n\t\tthis.btnAddTorches.setFGColor(color);\n\t\tthis.btnAddTorches.setWithShadow(false);\n\t\tthis.btnAddTorches.visible = false;\n\t\tthis.addButton(this.btnAddTorches);\n\n\t\tif (this.serverConfiguration.addTorches) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddChest = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_CHEST), this.houseConfiguration.addChest, null);\n\t\tthis.btnAddChest.setFGColor(color);\n\t\tthis.btnAddChest.setWithShadow(false);\n\t\tthis.btnAddChest.visible = false;\n\t\tthis.addButton(this.btnAddChest);\n\n\t\tif (this.serverConfiguration.addChests) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddMineShaft = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_BUILD_MINESHAFT), this.houseConfiguration.addMineShaft, null);\n\t\tthis.btnAddMineShaft.setFGColor(color);\n\t\tthis.btnAddMineShaft.setWithShadow(false);\n\t\tthis.btnAddMineShaft.visible = false;\n\t\tthis.addButton(this.btnAddMineShaft);\n\n\t\tif (this.serverConfiguration.addMineshaft) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddChestContents = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_CHEST_CONTENTS), this.houseConfiguration.addChestContents, null);\n\t\tthis.btnAddChestContents.setFGColor(color);\n\t\tthis.btnAddChestContents.setWithShadow(false);\n\t\tthis.btnAddChestContents.visible = false;\n\t\tthis.addButton(this.btnAddChestContents);\n\n\t\tif (this.allowItemsInChestAndFurnace) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnGlassColor = new ExtendedButton(grayBoxX + 10, grayBoxY + 20, 90, 20, GuiLangKeys.translateDye(this.houseConfiguration.glassColor), this::actionPerformed);\n\t\tthis.addButton(this.btnGlassColor);\n\n\t\t// Column 2:\n\n\t\t// Column 3:\n\n\t\t// Tabs:\n\t\tthis.tabGeneral = new GuiTab(this.Tabs, GuiLangKeys.translateString(GuiLangKeys.STARTER_TAB_GENERAL), grayBoxX + 3, grayBoxY - 20);\n\t\tthis.Tabs.AddTab(this.tabGeneral);\n\n\t\tthis.tabConfig = new GuiTab(this.Tabs, GuiLangKeys.translateString(GuiLangKeys.STARTER_TAB_CONFIG), grayBoxX + 54, grayBoxY - 20);\n\t\tthis.Tabs.AddTab(this.tabConfig);\n\n\t\tthis.tabBlockTypes = new GuiTab(this.Tabs, GuiLangKeys.translateString(GuiLangKeys.STARTER_TAB_BLOCK), grayBoxX + 105, grayBoxY - 20);\n\t\tthis.tabBlockTypes.setWidth(70);\n\t\tthis.Tabs.AddTab(this.tabBlockTypes);\n\n\t\t// Create the done and cancel buttons.\n\t\tthis.btnBuild = new ExtendedButton(grayBoxX + 10, grayBoxY + 136, 90, 20, GuiLangKeys.translateString(GuiLangKeys.GUI_BUTTON_BUILD), this::actionPerformed);\n\t\tthis.addButton(this.btnBuild);\n\n\t\tthis.btnCancel = new ExtendedButton(grayBoxX + 147, grayBoxY + 136, 90, 20, GuiLangKeys.translateString(GuiLangKeys.GUI_BUTTON_CANCEL), this::actionPerformed);\n\t\tthis.addButton(this.btnCancel);\n\t}",
"private static void startButtonCreator(int startWidth, int startHeight){\n startButton = shadowEffect(configureImageView(\"\", \"button-start-game\", \".png\", 190, 90));\n }",
"@FXML\r\n private void deliverButtonClicked(ActionEvent event){\n contentPane.getChildren().clear();\r\n \r\n VBox box = new VBox();\r\n box.setAlignment(Pos.CENTER);\r\n box.setPadding(new Insets(50, 0, 0, 0));\r\n Label feedBackLabel = new Label(\"Address: \");\r\n feedBackLabel.setFont(new Font(\"System\", 24));\r\n\r\n //Textarea\r\n TextArea textArea = new TextArea();\r\n textArea.setMaxWidth(680/1.5);\r\n\r\n //Confirm button\r\n Button confirmButton = new Button(\"Confirm\");\r\n confirmButton.setStyle(\"-fx-background-color: #e63347;\" +\r\n \"-fx-background-radius: 7;\" +\r\n \"-fx-text-fill: white\");\r\n confirmButton.setPrefSize(130, 40);\r\n \r\n box.getChildren().addAll(feedBackLabel, textArea, confirmButton);\r\n \r\n \r\n contentPane.getChildren().add(box);\r\n \r\n \t\r\n }",
"@Override\r\n\tpublic void onButtonClicked() {\n\t\tclientFactory.getPlaceController().goTo(\r\n\t\t\t\tnew CellTableSortingPlace(\"sortingtable\"));\r\n\t}",
"@Override\n public void onClick(View v) {\n buttonSetLocation();\n }",
"public ClickButtonAction() {\n _target = new TargetComponent();\n }",
"private void build() {\r\n HBox teamholder = new HBox();\r\n teamholder.setPadding(new Insets(10, 10, 10, 10));\r\n teamholder.setSpacing(10);\r\n teamholder.getChildren().addAll(this.name_field, this.add_team_button, this.save_button, this.openentitiesbutton, this.coach);\r\n HBox selectorholder = new HBox(10);\r\n selectorholder.getChildren().addAll(this.passive_playerlist, this.roster);\r\n this.getChildren().addAll(teamholder, selectorholder, this.add_player_button);\r\n this.add_player_button.setOnAction((ActionEvent e) -> {\r\n this.addPlayer();\r\n });\r\n\r\n this.save_button.setOnAction((ActionEvent e) -> {\r\n this.save();\r\n this.tonotify.execute();\r\n });\r\n\r\n this.add_team_button.setOnAction((ActionEvent e) -> {\r\n this.newTeam();\r\n });\r\n this.openentitiesbutton.disableProperty().bind(this.esw.showingProperty());\r\n this.openentitiesbutton.setOnAction((ActionEvent e) -> {\r\n this.esw.loadEntities();\r\n this.esw.show();\r\n });\r\n this.save_button.disableProperty().bind(Bindings.not(this.getChanged()));\r\n\r\n }",
"private void initButton() {\r\n\t\tthis.panelButton = new JPanel();\r\n\t\tthis.panelButton.setLayout(new BoxLayout(this.panelButton,\r\n\t\t\t\tBoxLayout.LINE_AXIS));\r\n\t\tthis.modifyButton = new JButton(\"Modify\");\r\n\t\tthis.buttonSize(this.modifyButton);\r\n\t\tthis.deleteButton = new JButton(\"Delete\");\r\n\t\tthis.buttonSize(this.deleteButton);\r\n\t\tthis.cancelButton = new JButton(\"Cancel\");\r\n\t\tthis.buttonSize(this.cancelButton);\r\n\r\n\t\tthis.modifyButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.deleteButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.cancelButton.addActionListener(this.editWeaponControl);\r\n\r\n\t\tthis.panelButton.add(this.modifyButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.deleteButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.cancelButton);\r\n\t}",
"Button createButton();",
"private void buildUI() {\n\n\t\t// Load the content view, and setup the map component, if one exists.\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\t// Don't load a map component if on emulator coz it requires the use of Google Play Services...\n\t\t\tsetContentView(layout.workout_screen_nomap);\n\t\t\tmapFragment = null;\n\t\t} else {\n\t\t\tsetContentView(layout.workout_screen);\n\t\t\tmapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(id.map);\n\n\t\t\t// Add a custom marker to the map to show the user's location.\n\t\t\tmapFragment.getMapAsync(new OnMapReadyCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onMapReady(GoogleMap googleMap) {\n\n\t\t\t\t\tfinal MarkerOptions markerOpt = new MarkerOptions();\n\t\t\t\t\tmarkerOpt.icon(BitmapDescriptorFactory.fromResource(drawable.nihi_map_marker)).anchor(0.5f, 1f)\n\t\t\t\t\t\t\t.draggable(false).position(new LatLng(0, 0));\n\n\t\t\t\t\tWorkoutActivity.this.userMapMarker = googleMap.addMarker(markerOpt);\n WorkoutActivity.this.theMap = googleMap;\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t\tpnlMap = findViewById(id.pnlMap);\n\n\t\t// \"Start Workout\" button\n\t\tbtnStartWorkout = (Button) findViewById(id.btnStartWorkout);\n\t\tbtnStartWorkout.setOnClickListener(btnStartWorkoutClickListener);\n\n\t\t// \"Stop Workout\" button\n\t\tbtnStopWorkout = (Button) findViewById(id.btnStopWorkout);\n\t\tbtnStopWorkout.setOnClickListener(btnStopWorkoutClickListener);\n\n\t\t// \"Select Workout\" button\n\t\tbtnSelectWorkout = (Button) findViewById(id.btnSelectWorkout);\n\t\tbtnSelectWorkout.setOnClickListener(btnSelectWorkoutClickListener);\n\n//\t\t// \"Symptoms\" button\n\t\tbtnSymptoms = (Button) findViewById(id.btnSymptoms);\n\t\tbtnSymptoms.setEnabled(false);\n//\t\tbtnSymptoms.setOnClickListener(btnSymptomsClickListener);\n//\n//\t\t// \"Notifications\" button\n\t\tbtnNotifications = (Button) findViewById(id.btnNotifications);\n\t\tbtnNotifications.setEnabled(false);\n//\t\tbtnNotifications.setOnClickListener(btnNotificationsClickListener);\n\n\t\t// \"Show / Hide Map\" button\n\t\tbtnToggleMap = (ToggleButton) findViewById(id.btnToggleMap);\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\tbtnToggleMap.setEnabled(false);\n\t\t\tbtnToggleMap.setText(\"[TEST MODE]\");\n\t\t} else {\n\t\t\tbtnToggleMap.setOnCheckedChangeListener(btnToggleMapToggleListener);\n\t\t}\n\n\t\t// Stats fragments (containing the stat view tiles)\n\t\tlargeStatsFragment = (WorkoutScreenStatsViewFragment) getSupportFragmentManager().findFragmentById(\n\t\t\t\tid.largeStatsFragment);\n\t\tsmallStatsFragment = (WorkoutScreenStatsViewFragment) getSupportFragmentManager().findFragmentById(\n\t\t\t\tid.smallStatsFragment);\n largeStatsFragment.setVisibility(View.GONE);\n\t}",
"public void clickCreateWorkSpaceButton() {\n this.action.click(this.createWorkSpaceButton);\n }",
"public void createOrderBtn(){\n createOrderBtn = new Button(\"Create order\");\n createOrderBtn.setLayoutX(305);\n createOrderBtn.setLayoutY(710);\n createOrderBtn.setPrefWidth(480);\n createOrderBtn.setPrefHeight(50);\n createOrderBtn.setStyle(\"-fx-background-color: #34ffb9\");\n createOrderBtn.setFont(new Font(18));\n createOrderBtn.setOnAction(event -> createOrderInDB());\n\n root.getChildren().addAll(createOrderBtn);\n }",
"public void buttonClicked();",
"public boolean clickOnStartButton() {\r\n\t\ttry {\r\n\t\t\tgetAssignmentStratButton().click();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void runEditorNew()\r\n\t{\r\n\t\tmainFrame.runEditorNew();\r\n\t}",
"@FXML\n public void addBlackSmith() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingBlacksmith(0, 0));\n }",
"private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterDoneService frame = new RegisterDoneService();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the Service Type frame\");\r\n\t\t\t}",
"public void clickCreateButton() {\n this.action.click(this.createButton);\n }",
"private void makeFrontButton(JButton button, String icon, String actionCommand, Rectangle bounds){\n button.setIcon(new ImageIcon(MapIcon.iconURLs.get(icon)));\n button.setFocusable(false);\n button.setOpaque(false);\n button.setBackground(DrawAttribute.fadeblack);\n button.setBorderPainted(false);\n button.setRolloverEnabled(false);\n button.setActionCommand(actionCommand);\n button.setBounds(bounds);\n }",
"private void buildAnalyzePanel(){\n //Create the buttonPanel\n analyzePanel = new JPanel();\n\n //Create the button\n analyzeButton = new JButton(\"Analyze\");\n\n // Add an action listener to the button\n analyzeButton.addActionListener(new ButtonListener());\n\n //Add the button to the panel\n analyzePanel.add(analyzeButton);\n }",
"public void makeCheckBEButton() {\r\n JButton checkBE = new JButton(\"Check if a champion can be purchased with Blue Essence\");\r\n new Button(checkBE, main);\r\n// checkBE.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// checkBE.setPreferredSize(new Dimension(2500, 100));\r\n// checkBE.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n checkBE.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n checkBlueEssenceBalanceDifference();\r\n }\r\n });\r\n// main.add(checkBE);\r\n }",
"private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}",
"public void makePurchaseButton() {\r\n JButton purchase = new JButton(\"Purchase premium currency\");\r\n new Button(purchase, main);\r\n// purchase.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// purchase.setPreferredSize(new Dimension(2500, 100));\r\n// purchase.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n purchase.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n doBuyRiotPoints();\r\n }\r\n });\r\n// main.add(purchase);\r\n }",
"public ButtonPanel(SnakeFrame snakeFrame) {\n\t\tthis.snakeFrame =snakeFrame;\n\t\t//初始化面板信息\n\t\tinitPanel();\n\t\t//初始化组件信息\n\t\tinitComponents();\n\t\t//添加组件\n\t\taddComponents();\n\t}",
"public void sButton() {\n\n\n\n }",
"public CreateProjectPanel() {\n isFinished = true;\n }",
"private JButton getLaunchButton() {\r\n\t\tif (launchButton == null) {\r\n\t\t\tlaunchButton = new JButton();\r\n\t\t\tlaunchButton.setText(Message.getMessage(\"reportmaker.process.label\"));\r\n\t\t\tlaunchButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tReportMakerController.instance.process();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn launchButton;\r\n\t}",
"@Override\n public void addOpenButton(Component button)\n {\n button.addFeature(new OpenLayoutDivFeature(this));\n }",
"private void builder(){\r\n //Objects\r\n //Left\r\n canvasStackPane.setAlignment(Pos.TOP_LEFT);\r\n left1HintButton = new Button(\"Hint\");\r\n left2Button = new Button(\"New Graph\");\r\n left3Button = new Button(\"New GameMode\");\r\n left4Button = new Button(\"New GraphMode\");\r\n left5Button = new Button(\"Finished\");\r\n leftRestLabel = new Label();\r\n //Up\r\n upperLeftButton = new Label(\"Menu\");\r\n upperLeftButton.setAlignment(Pos.CENTER);\r\n upper1Label = new Label();\r\n upper2Label = new Label();\r\n upper3Label = new Label();\r\n upperRestLabel = new Label();\r\n //calculateVectors\r\n backPane.setPickOnBounds(false);\r\n textFieldVertices.setPromptText(\"Vertices\");\r\n textFieldEdges.setPromptText(\"Edges\");\r\n gameEnd.setSpacing(30);\r\n gameEnd.setAlignment(Pos.CENTER);\r\n gameWinStackPane.setAlignment(Pos.CENTER);\r\n hBoxWin.setAlignment(Pos.CENTER);\r\n hBoxWin.setSpacing(30);\r\n canvasStackPane.setPickOnBounds(true);\r\n canvas.setPickOnBounds(true);\r\n canvas.getGraphicsContext2D().setLineWidth(2.5);\r\n }",
"public void buildEditFrame() {\n\n\tframe.addWindowListener(new WindowAdapter() {\n\t public void windowClosing(WindowEvent e) {\n\t\t//System.exit(0);\n\t }\n\t});\n\n\t// show the frame\n frame.setSize(Width, Height);\n\tframe.setLocation(screenSize.width/2 - Width/2,\n\t\t\t screenSize.height/2 - Height/2);\n\tframe.getContentPane().setLayout(new BorderLayout());\n\tframe.getContentPane().add(jp, BorderLayout.CENTER);\n\n\tframe.pack();\n//\t((CDFEdit)getFrame()).getDialog().setVisible(false);\n\tframe.setVisible(true);\n\n\t// Deprecated API - jp.requestDefaultFocus(); \n\tjp.requestFocus();\n\tframe.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n }",
"public void makePrintButton() {\r\n JButton print = new JButton(\"Print out account details\");\r\n new Button(print, main);\r\n// print.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// print.setPreferredSize(new Dimension(2500, 100));\r\n// print.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n print.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n printLeagueOfLegendsAccount();\r\n }\r\n });\r\n// main.add(print);\r\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJButton btn = (JButton) e.getSource();\n\t lev_no = (int) btn.getClientProperty(\"column\") + 3 * ((int) btn.getClientProperty(\"row\"));\n\t\t\tselect.setVisible(false);\n\t\t\ttitle.setVisible(true);\n\t\t\tstart.setVisible(true);\n\t\t\texit.setVisible(true);\n\t\t\tlev_button.setVisible(true);\n\t \n\t\t}",
"protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}",
"private void onClickCreateAddressButton() {\n // Validate\n if (!formValidated()) {\n } else {\n\n ContentValues values = new ContentValues();\n values.put(\"address_form[id]\", \"\");\n values.put(\"address_form[first_name]\", name.getText().toString());\n values.put(\"address_form[last_name]\", family.getText().toString());\n values.put(\"address_form[address1]\", address.getText().toString());\n values.put(\"address_form[address2]\", postal_code.getText().toString());\n values.put(\"address_form[region]\", region_Id);\n values.put(\"address_form[city]\", city_Id);\n if (post_id != UNKNOWN_POSTAL_CODE) {\n values.put(\"address_form[postcode]\", post_id);\n } else {\n values.put(\"address_form[postcode]\", \"\");\n }\n values.put(\"address_form[phone]\", cellphone.getText().toString());\n values.put(\"address_form[is_default_shipping]\", 1);\n values.put(\"address_form[is_default_billing]\", 1);\n\n values.put(\"address_form[gender]\", gender_lable);\n\n\n triggerCreateAddress(createAddressUrl, values);\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstart_click(e);\r\n\t\t\t}",
"public void onCurrentStreetClick (View view) {\n buttonsWrapper.setVisibility(View.GONE);\n if(mCurrentLocation !=null && !fetchAddressRunning) {\n fetchAddressRunning = true;\n startFetchAddressIS();\n }\n }"
] |
[
"0.68875873",
"0.63290095",
"0.6171832",
"0.6097163",
"0.60689634",
"0.59311867",
"0.5903207",
"0.57439923",
"0.5707905",
"0.5694395",
"0.5681444",
"0.5666096",
"0.5633157",
"0.56228006",
"0.5605752",
"0.5571739",
"0.55692124",
"0.5560797",
"0.5558875",
"0.5546867",
"0.55439985",
"0.5541585",
"0.55246186",
"0.55162174",
"0.55161047",
"0.54765224",
"0.5466424",
"0.54516697",
"0.5446912",
"0.5431506",
"0.5427938",
"0.539998",
"0.5395115",
"0.53865546",
"0.5372736",
"0.5366014",
"0.5356582",
"0.5354219",
"0.5351005",
"0.5350437",
"0.5344127",
"0.5343258",
"0.53367645",
"0.5334383",
"0.5334367",
"0.5334194",
"0.533126",
"0.53283185",
"0.53243566",
"0.53046554",
"0.52963674",
"0.52958053",
"0.52918243",
"0.5287928",
"0.5278569",
"0.5274001",
"0.52694935",
"0.52505296",
"0.5228302",
"0.5221807",
"0.5218736",
"0.5216148",
"0.5216012",
"0.52155954",
"0.5205227",
"0.52006865",
"0.51963186",
"0.5193233",
"0.5191569",
"0.5174668",
"0.5160845",
"0.51517946",
"0.51494",
"0.5146209",
"0.514419",
"0.5144055",
"0.51438534",
"0.5138474",
"0.5136912",
"0.513638",
"0.51359075",
"0.5134937",
"0.5128273",
"0.51235074",
"0.5122257",
"0.5118625",
"0.51135206",
"0.5113451",
"0.510981",
"0.51072794",
"0.5106896",
"0.5104825",
"0.5103331",
"0.5103201",
"0.5097976",
"0.5094274",
"0.5093659",
"0.5091302",
"0.5088961",
"0.5088093"
] |
0.7097426
|
0
|
Builds a ColorSelector which allows the user to change the color of one or more Rooms/CellPanels within the Level.
|
private void buildColorSelector(JPanel panel) {
colorChooserButton = new JLabel();
colorChooserButton.setPreferredSize(new Dimension(16, 16));
colorChooserButton.setVerticalAlignment(JLabel.CENTER);
colorChooserButton.setBackground(Color.WHITE);
colorChooserButton.setOpaque(true);
colorChooserButton.setBorder(BorderFactory.createLineBorder(Color.black));
colorChooserButton.addMouseListener(ApplicationFactory.INSTANCE
.getNewColorChooserListener(this));
panel.add(colorChooserButton, "wrap");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\n }",
"private void initializeColorPanels() {\n\t\tupperColorPanel = new JPanel();\n\t\tlowerColorPanel = new JPanel();\n\t\t\n\t\tupperColorPanel.setSize(300, 60);\n\t\tlowerColorPanel.setSize(300, 60);\n\t\t\n\t\tupperColorPanel.setLocation(200, 100);\n\t\tlowerColorPanel.setLocation(200, 160);\n\t\t\n\t\tupperColorPanel.setLayout(new GridLayout(2,5));\n\t\tlowerColorPanel.setLayout(new GridLayout(2,5));\n\t\t\n\t\tfor (int i = 0; i < Q.colors.length; i++) {\n\t\t\tJTextField color = new JTextField();\n\t\t\tcolor.setName(COLOR_TEXT_FIELD_TITLES[i]);\n\t\t\tcolor.setText(\"P\" + (i + 1));\n\t\t\tcolor.setBackground(Q.colors[i]);\n\t\t\tcolor.setEnabled(false);\n\t\t\t\n\t\t\tJTextField red = new JTextField(\"\" + Q.colors[i].getRed());\n\t\t\tred.setName(RED_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField green = new JTextField(\"\" + Q.colors[i].getGreen());\n\t\t\tgreen.setName(GREEN_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField blue = new JTextField(\"\" + Q.colors[i].getBlue());\n\t\t\tblue.setName(BLUE_TEXT_FIELD_TITLES[i]);\n\t\t\t\n\t\t\t\n\t\t\tred.addActionListener(this);\n\t\t\tgreen.addActionListener(this);\n\t\t\tblue.addActionListener(this);\n\t\t\t\n\t\t\tJComboBox box = new JComboBox(playerTypeNames);\n\t\t\tbox.setName(COMBO_BOX_TITLES[i]);\n\t\t\tbox.setSelectedIndex(Q.playerTypes[i]);\n\t\t\tbox.addItemListener(this);\n\t\t\t\n\t\t\treds.add(red);\n\t\t\tgreens.add(green);\n\t\t\tblues.add(blue);\n\t\t\tshowColor.add(color);\n\t\t\tboxes.add(box);\n\t\t\t\n\t\t\tJPanel playerPanel = new JPanel();\n\t\t\tplayerPanel.setLayout(new GridLayout(1,2));\n\t\t\tJPanel rgbPanel = new JPanel();\n\t\t\trgbPanel.setLayout(new GridLayout(1,3));\n\t\t\t\n\t\t\tif (i < 2) {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tupperColorPanel.add(playerPanel);\n\t\t\t\tupperColorPanel.add(rgbPanel);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tlowerColorPanel.add(playerPanel);\n\t\t\t\tlowerColorPanel.add(rgbPanel);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tadd(upperColorPanel);\n\t\tif (Q.players == 4) {\n\t\t\tadd(lowerColorPanel);\n\t\t}\n\t\n\t}",
"@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.effect.ColorInputBuilder<?> create() {\n return new javafx.scene.effect.ColorInputBuilder();\n }",
"JComponent makeColorBox(final String cmd, Color color) {\n\n ColorSwatchComponent swatch = new ColorSwatchComponent(getStore(), color,\n \"Set Color\") {\n public void userSelectedNewColor(Color c) {\n super.userSelectedNewColor(c);\n try {\n if (cmd.equals(CMD_RAD_COLOR)) {\n rangeRings.setAzimuthLineColor(radColor = c);\n } else if (cmd.equals(CMD_RR_COLOR)) {\n rangeRings.setRangeRingColor(rrColor = c);\n } else if (cmd.equals(CMD_LBL_COLOR)) {\n rangeRings.setLabelColor(lblColor = c);\n }\n if (linkColorAndLineWidthButton.isSelected()) {\n rangeRings.setAzimuthLineColor(radColor = c);\n rangeRings.setRangeRingColor(rrColor = c);\n rangeRings.setLabelColor(lblColor = c);\n radColorSwatch.setBackground(c);\n rrColorSwatch.setBackground(c);\n lblColorSwatch.setBackground(c);\n }\n } catch (Exception exc) {\n logException(\"setting color\", exc);\n }\n }\n };\n return swatch;\n /*\n JComboBox jcb = getDisplayConventions().makeColorSelector(color);\n jcb.addActionListener(this);\n jcb.setActionCommand(cmd);\n return jcb;\n */\n }",
"private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }",
"private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}",
"void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }",
"Color chooseColor(GamePiece power, int radius) {\n if (this.connectedToPower(power)) {\n if (this.distanceFromPower(power) > radius) {\n return OFF_WIRE_COLOR;\n }\n else {\n return FULLPOWER_WIRE_COLOR;\n }\n }\n else {\n return OFF_WIRE_COLOR;\n }\n }",
"public void refreshColorPanel() {\n if (quickPaintAnnotationButton != null) {\r\n quickPaintAnnotationButton.refreshColorPanel();\r\n }\r\n\r\n colorFilterMenuItem.removeAll();\r\n // build colour submenu based on colour labels\r\n ButtonGroup filterColorMenuGroup = new ButtonGroup();\r\n JCheckBoxMenuItem filterColorAllMenuItem = new JCheckBoxMenuItem();\r\n filterColorAllMenuItem.setAction(new FilterColorAction(\r\n messageBundle.getString(\"viewer.utilityPane.markupAnnotation.toolbar.filter.option.byColor.all.label\"),\r\n null));\r\n colorFilterMenuItem.add(filterColorAllMenuItem);\r\n filterColorMenuGroup.add(filterColorAllMenuItem);\r\n ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels();\r\n int defaultColor = preferences.getInt(ViewerPropertiesManager.PROPERTY_ANNOTATION_FILTER_COLOR_COLUMN, -1);\r\n JCheckBoxMenuItem filterColorMenuItem;\r\n if (colorLabels.size() > 0) {\r\n for (DragDropColorList.ColorLabel colorLabel : colorLabels) {\r\n filterColorMenuItem = new JCheckBoxMenuItem();\r\n FilterColorAction sortAction = new FilterColorAction(\r\n colorLabel.getLabel(),\r\n colorLabel.getColor());\r\n filterColorMenuItem.setAction(sortAction);\r\n colorFilterMenuItem.add(filterColorMenuItem);\r\n filterColorMenuGroup.add(filterColorMenuItem);\r\n if (defaultColor != -1 && defaultColor == sortAction.getColorRGB()) {\r\n filterColorMenuItem.setSelected(true);\r\n filterColorAction = sortAction;\r\n }\r\n }\r\n }\r\n if (defaultColor == -1) {\r\n filterColorAllMenuItem.setSelected(true);\r\n filterColorAction = filterColorAllMenuItem.getAction();\r\n }\r\n }",
"public ColorCellEditor(Canvas canvas, JPanel parent) {\n this.canvas = canvas;\n this.parent = parent;\n \n colorEditButton = new JButton();\n colorEditButton.setActionCommand(EDIT);\n colorEditButton.addActionListener(this);\n colorEditButton.setBorderPainted(false);\n \n colorChooser = new JColorChooser();\n \n colorChooserPanel = new ColorChooserPanel(this);\n colorChooserPanel.setLocation(canvas.getWidth() / 2 - colorChooserPanel.getWidth()\n / 2, canvas.getHeight() / 2 - colorChooserPanel.getHeight() / 2);\n }",
"public Color colorByNeighbors() {\n float mod = maxVoltage /10f;\n float color = Math.max(0,Math.min(voltageAccumulator,mod))/mod;\n float colorNeighbors = (float)Math.max(0,Math.min(this.neighbors.size()/maxNeighbors,1.0));\n\n if(colorNeighbors<0.5f)return new Color(0.0f,0f,0f);\n\n return new Color(colorNeighbors/2f,color,color);//, 0.25f);\n }",
"Color userColorChoose();",
"public SelectorColor(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }",
"private void define_select_color(){\n\n TextView white_panel = (TextView) findViewById(R.id.palette_white);\n TextView black_panel = (TextView) findViewById(R.id.palette_black);\n TextView red_panel = (TextView) findViewById(R.id.palette_red);\n TextView blue_panel = (TextView) findViewById(R.id.palette_blue);\n\n white_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=WHITE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n black_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=BLACK;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n red_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = RED;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n blue_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = BLUE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n\n\n\n }",
"public EdgeColorPanel() {\n initComponents();\n\n colorButton.addPropertyChangeListener(JColorButton.EVENT_COLOR, new PropertyChangeListener() {\n\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n Color newColor = (Color) evt.getNewValue();\n propertyEditor.setValue(new EdgeColor(newColor));\n }\n });\n\n originalRadio.addItemListener(this);\n mixedRadio.addItemListener(this);\n sourceRadio.addItemListener(this);\n targetRadio.addItemListener(this);\n customRadio.addItemListener(this);\n }",
"public Room(String color) {\n\t\tthis.wall = color;\n\t\tthis.floor =\"\";\n\t\tthis.windows=0;\n\t}",
"void setColorSelection() {\r\n for (int i = 0; i < chooser.length; i++) {\r\n\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_FLOW]);\r\n break;\r\n case COLOR_EDGE_TWO:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_CAP]);\r\n break;\r\n case COLOR_EDGE_TOP:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_RTOP]);\r\n break;\r\n default:\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n } else {\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n }\r\n }",
"ColorSelectionDialog() {\n initComponents();\n }",
"private JPanel getJPanelColor() {\r\n\t\tif (jPanelColor == null) {\r\n\t\t\tjPanelColor = new JPanel();\r\n\t\t\tjPanelColor.setBackground(color);\r\n\t\t\tjPanelColor.setLayout(null);\r\n\t\t\tjPanelColor.setBounds(new Rectangle(21, 29, 68, 52));\r\n\t\t\tjPanelColor.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\t}\r\n\t\treturn jPanelColor;\r\n\t}",
"public void generateRooms(){ //TODO it's public just for testing\n rooms = new ArrayList<>();\n for(Color color : roomsToBuild)\n rooms.add(new Room(color));\n }",
"public Category build()\n {\n return new Category(\n new MultiSelectOption(fValue), fUpperBound, fUpperInclusive);\n }",
"public ColorRoom getColor() {\n return color;\n }",
"public static Color roomToColor(Room room) {\n\n switch(room) {\n case RED:\n return Color.RED;\n\n case BLUE:\n return Color.BLUE;\n\n case GRAY:\n return Color.GRAY;\n\n case GREEN:\n return Color.GREEN;\n\n case PURPLE:\n return Color.PURPLE;\n\n case YELLOW:\n return Color.YELLOW;\n\n default:\n return Color.RESET;\n\n }\n }",
"public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }",
"private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}",
"public ColorBox() {\r\n this.popup = new ColorPopup();\r\n setValue(\"#ffffff\");\r\n\r\n popup.addMessageHandler(m_color_event);\r\n addFocusHandler(new FocusHandler() {\r\n\r\n @Override\r\n public void onFocus(FocusEvent event) {\r\n popup.setHex(getText());\r\n popup.setAutoHideEnabled(true);\r\n popup.setPopupPosition(getAbsoluteLeft() + 10, getAbsoluteTop() + 10);\r\n popup.showRelativeTo(ColorBox.this);\r\n }\r\n });\r\n addKeyDownHandler(new KeyDownHandler() {\r\n\r\n @Override\r\n public void onKeyDown(KeyDownEvent event) {\r\n String color = getValue();\r\n if (color.length() > 1) {\r\n MessageEvent ev = new MessageEvent(MessageEvent.COLOR, color);\r\n fireEvent(ev);\r\n }\r\n }\r\n });\r\n\r\n }",
"public JPanel createRoomsPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(5, 2));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Rooms\"));\n\t\tpanel.add(new JCheckBox(\"Conservatory\"));\n\t\tpanel.add(new JCheckBox(\"Kitchen\"));\n\t\tpanel.add(new JCheckBox(\"Ballroom\"));\n\t\tpanel.add(new JCheckBox(\"Library\"));\n\t\tpanel.add(new JCheckBox(\"Arcade room\"));\n\t\tpanel.add(new JCheckBox(\"Gun room\"));\n\t\tpanel.add(new JCheckBox(\"Trophy room\"));\n\t\tpanel.add(new JCheckBox(\"Pantry\"));\n\t\tpanel.add(new JCheckBox(\"Sauna\"));\n\t\treturn panel;\n\t}",
"public Color levelColor(int levelNumber) {\n\n\t\t// value for which we'll multiply the blueness of each level\n\t\tint blueIncrementValue = 51;\n\n\t\t// play around with these values to get a desirable color\n\t\tint redVal = 120;\n\t\tint greenVal = 0;\n\n\t\treturn new Color(redVal, greenVal, blueIncrementValue * levelNumber);\n\t}",
"private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }",
"public ColorChooserPanel(ActionListener l) {\n lastRow = -1;\n \n JButton okButton = new JButton( Messages.message(\"ok\") );\n JButton cancelButton = new JButton( Messages.message(\"cancel\") );\n \n setLayout(new HIGLayout(new int[] {220, 10, 220}, new int[] {350, 10, 0}));\n \n add(colorChooser, higConst.rcwh(1, 1, 3, 1));\n add(okButton, higConst.rc(3, 1));\n add(cancelButton, higConst.rc(3, 3));\n \n okButton.setActionCommand(OK);\n cancelButton.setActionCommand(CANCEL);\n \n okButton.addActionListener(l);\n cancelButton.addActionListener(l);\n \n setOpaque(true);\n setSize(getPreferredSize());\n }",
"public CutAndChooseSelection build(int numCircuits);",
"private JPanel getJPanelColorModel() {\r\n\t\tjPanelColorModel = new JPanel();\r\n\t\t//jPanelColorModel.setLayout(new BoxLayout(jPanelColorModel, BoxLayout.X_AXIS));\r\n\t\tjPanelColorModel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));\r\n\t\tjPanelColorModel.setBorder(new TitledBorder(null, \"Color model\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\t\r\n\r\n\t\tjPanelColorModel.add(getJRadioButtonGrey());\r\n\t\tjPanelColorModel.add(getJRadioButtonColor());\r\n\t\tthis.setButtonGroupColorModel(); // Grouping of JRadioButtons\r\n\t\treturn jPanelColorModel;\r\n\t}",
"public ControlPanel(DrawingPanel c){\n canvas = c;\n this.colorButton = new JButton(\"Pick Color\");\n add(colorButton);\n panel = new JPanel();\n panel.setBackground(Color.BLUE);\n add(panel);\n this.circleButton = new JButton(\"Add Circle\");\n add(circleButton);\n this.squareButton = new JButton(\"Add Square\");\n add(squareButton);\n \n ClickListener listener = new ClickListener();\n this.colorButton.addActionListener(listener);\n this.circleButton.addActionListener(listener);\n this.squareButton.addActionListener(listener);}",
"public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }",
"SimpleColorChooser(Color[] colors) {\n double sqr = Math.sqrt((double) colors.length);\n int rows = (int) Math.ceil(sqr);\n int columns = (int) Math.rint(sqr);\n setLayout(new GridLayout(rows, columns, 2, 2));\n Font font2 = new Font(Font.SERIF, Font.PLAIN, 26);\n ButtonGroup bg = new ButtonGroup();\n char boxChar = (char) 9608;\n String boxString = new String(new char[]{boxChar, boxChar});\n for (Color c : colors) {\n JRadioButton rb = new JRadioButton(boxString);\n rb.setFont(font2);\n rb.setForeground(c);\n bg.add(rb);\n add(rb);\n }\n ((JRadioButton) getComponent(selected)).setSelected(true);\n }",
"public static CustomisableListSelectionDialog\n createColorListSelectionDialog(Shell parent,\n String[] preSelected) {\n return new CustomisableListSelectionDialog(\n parent.getShell(),\n COLOR_RESOURCE_PREFIX,\n new ColorSelectorFactory(),\n createColorListValidator(),\n true, // colour list is allowed duplicate colours\n preSelected);\n }",
"private void initializeSelectors() {\n\t\tpathSelector = new PathEffectSelector();\n\t\tscaleSelector = new ScaleEffectSelector();\n\t\trotationSelector = new RotationEffectSelector();\n\t\timageSelector = new ImageAnimationEffectSelector();\n\t}",
"protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }",
"private static IndependentValidator createColorListValidator() {\n HashMap messageKeyMappings = new HashMap(1);\n messageKeyMappings.put(FaultTypes.INVALID_COLOR,\n \"ColorListSelectionDialog.invalidColor\");\n ValidationMessageBuilder builder =\n new ValidationMessageBuilder(\n ControlsMessages.getResourceBundle(),\n messageKeyMappings,\n null);\n Validator validator = new ColorValidator(NamedColor.getAllColors());\n return new IndependentValidator(validator, builder);\n }",
"public ModernTableColorCellEditor(ModernWindow window) {\r\n mColorButton = new ColorSwatchButton(window);\r\n\r\n mColorButton.addClickListener(this);\r\n }",
"public static ColorPool forWidget(ControlWrapper wrapper) {\n\t\treturn onePerWidget.forWidget(wrapper.getRootControl());\n\t}",
"protected Image makeColorWheel() {\r\n int x, y;\r\n float[] hsb = new float[3];\r\n\r\n Image image = createImage(colorWheelWidth, colorWheelWidth);\r\n if (image == null)\r\n return null;\r\n\r\n Graphics g = image.getGraphics();\r\n\r\n g.setColor(getBackground());\r\n g.fillRect(0, 0, colorWheelWidth, colorWheelWidth);\r\n\r\n int offset = selectDiameter / 2;\r\n for (y = 0; y <= diameter; y++) {\r\n for (x = 0; x <= diameter; x++) {\r\n if (getColorAt(hsb, x, y, true)) {\r\n g.setColor(Color.getHSBColor(hsb[0], hsb[1], hsb[2]));\r\n g.drawLine(x + offset, y + offset, x + offset, y + offset);\r\n }\r\n }\r\n }\r\n g.dispose();\r\n return image;\r\n }",
"public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }",
"public ColorCanvas(int r, Color color) {\r\n radius = r;\r\n diameter = r * 2;\r\n colorWheelWidth = diameter + selectDiameter;\r\n setColor(color);\r\n enableEvents(AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK);\r\n }",
"public void stylePlanCupboard(){\n\n //style the buttons\n InterfaceStyling.buttonStyle(btnAddIngredToCupboard, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnRemoveIngredFromCupboard, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnClearCupboard, plannerColor,plannerColorDark );\n\n //style the various nodes in the pane\n InterfaceStyling.setHighlightStyling(allIngredientsCupboardPane, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(IngredientsInCupboard, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(searchIngredientCupboard, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredientQuantityInputCupboard, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(cupboardQuantityNumber, plannerColor, defaultColor);\n\n //Style the labels and the text in this pane\n for (Node n : plannerCupboardSubPane.getChildren()) {\n if (n.getClass().isInstance(new Label())) {\n ((Label) n).setFont(InterfaceStyling.titleFontNonBold);\n ((Label) n).setTextFill(Paint.valueOf(defaultTextColor));\n }\n }\n\n labelNumberPlanner.setFont(InterfaceStyling.systemFont);\n labelNumberPlanner.setTextFill(Paint.valueOf(defaultColor));\n\n labelCupboardStores.setFont(InterfaceStyling.titleFont);\n labelCupboardStores.setTextFill(Paint.valueOf(defaultColor));\n }",
"private void buildComboPanel(){\n //Create the combo panel\n comboPanel = new JPanel();\n \n //Combo box\n laneType = new JComboBox(lanes);\n \n //Allow the user to type input into combo field\n laneType.setEditable(true);\n \n comboLabel = new JLabel(\"Lane: \");\n \n //Add the components to the panel\n comboPanel.add(comboLabel);\n comboPanel.add(laneType);\n }",
"public interface WidgetColors {\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_ENCLOSURE_BG = new Color(40, 40, 40);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_BG = new Color(60, 60, 60);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_FG = new Color(180, 180, 180);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_BG = new Color(80, 0, 0);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_FG = new Color(240, 240, 240);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_NON_FOCUS = new Color(70, 70, 70);\n\t/**\n\t * \n\t */\n\tpublic static final Color HEADER_COLOR = new Color(20, 20, 20, 230);\n\t/**\n\t * \n\t */\n\tpublic static final Color PROPERTIES_BACKGROUND = Color.LIGHT_GRAY;\n\t/**\n\t * \n\t */\n\tpublic static final Color TEXT_COLOR = new Color(210, 210, 210);\n\n}",
"private void changeColorWheels() {\n if (rgbRdo.getSelection() == true) {\n upperColorWheel.showRgbSliders(true);\n lowerColorWheel.showRgbSliders(true);\n } else {\n upperColorWheel.showRgbSliders(false);\n lowerColorWheel.showRgbSliders(false);\n }\n }",
"private ElementColor selectColor() {\n\n\t\treturn Theme.defaultColor(); \n\t}",
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorT build();",
"private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }",
"private Bike_Wheel_Animation renderPatternColorList() {\n return new Bike_Wheel_Animation(colorList, slice);\n }",
"public ColorClass(String name, Interval[] intervals) {\n this(name, intervals, false);\n }",
"colorChoice(Vec3 color) {\n this.color = color;\n }",
"public ColorSelectorCommand(Color drawColor) {\r\n\t\tthis.drawColor = drawColor;\r\n\t}",
"private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }",
"private void checkBackgroundColor() {\n\n String color = \"\";\n Connection conn = null;\n try {\n conn = (new Sqlite().connect());\n\n String SQL = \"Select * from options WHERE user_id =\" + newUser.getId();\n try (ResultSet rs = conn.createStatement().executeQuery(SQL)) {\n while (rs.next()) {\n color = rs.getString(3);\n }\n conn.close();\n }\n\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(FirstPage.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n switch (color) {\n case \"Blue\":\n jPanel1.setBackground(new Color(90, 166, 190));\n break;\n case \"Grey\":\n jPanel1.setBackground(Color.gray);\n break;\n case \"Red\":\n jPanel1.setBackground(Color.red);\n break;\n default:\n jPanel1.setBackground(new Color(90, 166, 190));\n break;\n }\n }",
"public ColorWheelSubsystem() {\n m_colorMatcher.addColorMatch(kBlueTarget);\n m_colorMatcher.addColorMatch(kGreenTarget);\n m_colorMatcher.addColorMatch(kRedTarget);\n m_colorMatcher.addColorMatch(kYellowTarget);\n SendableRegistry.setName(colorWheelMotor, \"colorWheelMotor\");\n SendableRegistry.setName(colorWheelPiston , \"colorWheelPiston\");\n\n colorWheelPiston = new DoubleSolenoid(3,2);\n }",
"public ColorClass(int ide, Interval[] intervals , boolean ordered) {\n this (\"C_\"+ide, intervals, ordered );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n paletteCombo = new javax.swing.JComboBox();\n addressField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n colorsPanel = new javax.swing.JPanel();\n colorPanel1 = new javax.swing.JPanel();\n colorPanel2 = new javax.swing.JPanel();\n colorPanel3 = new javax.swing.JPanel();\n colorPanel4 = new javax.swing.JPanel();\n colorPanel5 = new javax.swing.JPanel();\n colorPanel6 = new javax.swing.JPanel();\n colorPanel7 = new javax.swing.JPanel();\n colorPanel8 = new javax.swing.JPanel();\n colorPanel9 = new javax.swing.JPanel();\n colorPanel10 = new javax.swing.JPanel();\n colorPanel11 = new javax.swing.JPanel();\n colorPanel12 = new javax.swing.JPanel();\n colorPanel13 = new javax.swing.JPanel();\n colorPanel14 = new javax.swing.JPanel();\n colorPanel15 = new javax.swing.JPanel();\n colorPanel16 = new javax.swing.JPanel();\n colorChooser = new javax.swing.JColorChooser();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n rgbField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n gensField = new javax.swing.JTextField();\n scrollPane = new javax.swing.JScrollPane(imagePanel);\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n openRomMenu = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem5 = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JPopupMenu.Separator();\n openGuideMenu = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n exitMenu = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n copyPalMenu = new javax.swing.JMenuItem();\n copyColorMenu = new javax.swing.JMenuItem();\n pasteColorMenu = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JPopupMenu.Separator();\n jMenuItem1 = new javax.swing.JMenuItem();\n findMenu = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Palettes of Rage\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setLocationByPlatform(true);\n setName(\"guiFrame\");\n addMouseWheelListener(new java.awt.event.MouseWheelListener() {\n public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {\n formMouseWheelMoved(evt);\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"Palette:\");\n\n paletteCombo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n paletteCombo.setMaximumRowCount(16);\n paletteCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Custom\" }));\n paletteCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n paletteComboActionPerformed(evt);\n }\n });\n paletteCombo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n paletteComboKeyPressed(evt);\n }\n });\n\n addressField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n addressField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n addressField.setText(\"200\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Address:\");\n\n colorsPanel.setPreferredSize(new java.awt.Dimension(256, 64));\n\n colorPanel1.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));\n colorPanel1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel1.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel1MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel1Layout = new javax.swing.GroupLayout(colorPanel1);\n colorPanel1.setLayout(colorPanel1Layout);\n colorPanel1Layout.setHorizontalGroup(\n colorPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n colorPanel1Layout.setVerticalGroup(\n colorPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n\n colorPanel2.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel2.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel2.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel2MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel2Layout = new javax.swing.GroupLayout(colorPanel2);\n colorPanel2.setLayout(colorPanel2Layout);\n colorPanel2Layout.setHorizontalGroup(\n colorPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel2Layout.setVerticalGroup(\n colorPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel3.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel3.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel3.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel3MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel3Layout = new javax.swing.GroupLayout(colorPanel3);\n colorPanel3.setLayout(colorPanel3Layout);\n colorPanel3Layout.setHorizontalGroup(\n colorPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel3Layout.setVerticalGroup(\n colorPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel4.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel4.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel4.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel4MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel4Layout = new javax.swing.GroupLayout(colorPanel4);\n colorPanel4.setLayout(colorPanel4Layout);\n colorPanel4Layout.setHorizontalGroup(\n colorPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel4Layout.setVerticalGroup(\n colorPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel5.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel5.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel5.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel5MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel5Layout = new javax.swing.GroupLayout(colorPanel5);\n colorPanel5.setLayout(colorPanel5Layout);\n colorPanel5Layout.setHorizontalGroup(\n colorPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel5Layout.setVerticalGroup(\n colorPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel6.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel6.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel6.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel6MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel6Layout = new javax.swing.GroupLayout(colorPanel6);\n colorPanel6.setLayout(colorPanel6Layout);\n colorPanel6Layout.setHorizontalGroup(\n colorPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel6Layout.setVerticalGroup(\n colorPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel7.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel7.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel7.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel7MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel7Layout = new javax.swing.GroupLayout(colorPanel7);\n colorPanel7.setLayout(colorPanel7Layout);\n colorPanel7Layout.setHorizontalGroup(\n colorPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel7Layout.setVerticalGroup(\n colorPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel8.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel8.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel8.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel8MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel8Layout = new javax.swing.GroupLayout(colorPanel8);\n colorPanel8.setLayout(colorPanel8Layout);\n colorPanel8Layout.setHorizontalGroup(\n colorPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel8Layout.setVerticalGroup(\n colorPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel9.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel9.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel9.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel9.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel9MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel9Layout = new javax.swing.GroupLayout(colorPanel9);\n colorPanel9.setLayout(colorPanel9Layout);\n colorPanel9Layout.setHorizontalGroup(\n colorPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel9Layout.setVerticalGroup(\n colorPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel10.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel10.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel10.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel10.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel10MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel10Layout = new javax.swing.GroupLayout(colorPanel10);\n colorPanel10.setLayout(colorPanel10Layout);\n colorPanel10Layout.setHorizontalGroup(\n colorPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel10Layout.setVerticalGroup(\n colorPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel11.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel11.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel11.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel11.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel11MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel11Layout = new javax.swing.GroupLayout(colorPanel11);\n colorPanel11.setLayout(colorPanel11Layout);\n colorPanel11Layout.setHorizontalGroup(\n colorPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel11Layout.setVerticalGroup(\n colorPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel12.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel12.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel12.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel12.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel12MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel12Layout = new javax.swing.GroupLayout(colorPanel12);\n colorPanel12.setLayout(colorPanel12Layout);\n colorPanel12Layout.setHorizontalGroup(\n colorPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel12Layout.setVerticalGroup(\n colorPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel13.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel13.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel13.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel13.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel13MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel13Layout = new javax.swing.GroupLayout(colorPanel13);\n colorPanel13.setLayout(colorPanel13Layout);\n colorPanel13Layout.setHorizontalGroup(\n colorPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel13Layout.setVerticalGroup(\n colorPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel14.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel14.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel14.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel14.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel14MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel14Layout = new javax.swing.GroupLayout(colorPanel14);\n colorPanel14.setLayout(colorPanel14Layout);\n colorPanel14Layout.setHorizontalGroup(\n colorPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel14Layout.setVerticalGroup(\n colorPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel15.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel15.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel15.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel15.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel15MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel15Layout = new javax.swing.GroupLayout(colorPanel15);\n colorPanel15.setLayout(colorPanel15Layout);\n colorPanel15Layout.setHorizontalGroup(\n colorPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel15Layout.setVerticalGroup(\n colorPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel16.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel16.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel16.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel16.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel16MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel16Layout = new javax.swing.GroupLayout(colorPanel16);\n colorPanel16.setLayout(colorPanel16Layout);\n colorPanel16Layout.setHorizontalGroup(\n colorPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel16Layout.setVerticalGroup(\n colorPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout colorsPanelLayout = new javax.swing.GroupLayout(colorsPanel);\n colorsPanel.setLayout(colorsPanelLayout);\n colorsPanelLayout.setHorizontalGroup(\n colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addComponent(colorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addComponent(colorPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n colorsPanelLayout.setVerticalGroup(\n colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(colorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(colorPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n colorChooser.setMinimumSize(new java.awt.Dimension(429, 32));\n colorChooser.setPreferredSize(new java.awt.Dimension(429, 32));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"RGB:\");\n\n rgbField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n rgbField.setText(\"255 255 255\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"Genesis:\");\n\n gensField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n gensField.setText(\"0fff\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(gensField, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rgbField, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(gensField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(rgbField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(paletteCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(97, 97, 97))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(colorsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(paletteCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(colorsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE))\n );\n\n jMenu1.setText(\"File\");\n\n openRomMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));\n openRomMenu.setText(\"Open Rom\");\n openRomMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openRomMenuActionPerformed(evt);\n }\n });\n jMenu1.add(openRomMenu);\n\n jMenuItem4.setText(\"Close Rom\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem4);\n\n jMenuItem5.setText(\"Save\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem5);\n jMenu1.add(jSeparator4);\n\n openGuideMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));\n openGuideMenu.setText(\"Open Guide\");\n openGuideMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openGuideMenuActionPerformed(evt);\n }\n });\n jMenu1.add(openGuideMenu);\n jMenu1.add(jSeparator1);\n\n exitMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n exitMenu.setText(\"Exit\");\n exitMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitMenuActionPerformed(evt);\n }\n });\n jMenu1.add(exitMenu);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n copyPalMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n copyPalMenu.setText(\"Copy Palette\");\n copyPalMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyPalMenuActionPerformed(evt);\n }\n });\n jMenu2.add(copyPalMenu);\n\n copyColorMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));\n copyColorMenu.setText(\"Copy Color\");\n copyColorMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyColorMenuActionPerformed(evt);\n }\n });\n jMenu2.add(copyColorMenu);\n\n pasteColorMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));\n pasteColorMenu.setText(\"Paste\");\n pasteColorMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pasteColorMenuActionPerformed(evt);\n }\n });\n jMenu2.add(pasteColorMenu);\n jMenu2.add(jSeparator3);\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setText(\"Reset Zoom\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem1);\n\n findMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));\n findMenu.setText(\"Find Palette\");\n findMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findMenuActionPerformed(evt);\n }\n });\n jMenu2.add(findMenu);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Help\");\n\n jMenuItem2.setText(\"About\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem2);\n\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 415, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(scrollPane)\n );\n\n pack();\n }",
"public PropertySelector createChildSelector(Tag... tags) {\n return new PropertySelector(this, tags);\n }",
"void createMenu4Filled(Container cp) {\r\n JPanel pn3 = new JPanel(); // create a panel\r\n pn3.setLayout(new FlowLayout(FlowLayout.LEFT)); // set the layout\r\n\r\n JLabel lb3 = new JLabel(labelStr[2]); // create label \"Filled\"\r\n lb3.setForeground(Color.black); // set the string color to black\r\n pn3.add(lb3); // add the label to the panel\r\n\r\n cb3 = new JComboBox<String>(); // create a combo box\r\n cb3.setEditable(false); // set the attribute editable false\r\n for (int i=0; i<strFill.length; i++) {\r\n // repeat for the number of the items\r\n cb3.addItem(strFill[i]); // set the string of the item\r\n }\r\n\r\n cb3.addActionListener(this); // add the action listener to the combo box\r\n pn3.add(cb3); // add the combo box to the panel\r\n cp.add(pn3); // add the panel to the container\r\n }",
"private static void createContents() {\r\n\t\t\r\n\t\tcolorPreview = new Composite(colorUI, SWT.BORDER);\r\n\t\tcolorPreview.setBounds(10, 23, 85, 226);\r\n\t\t\r\n\t\tscRed = new Scale(colorUI, SWT.NONE);\r\n\t\tscRed.setMaximum(255);\r\n\t\tscRed.setMinimum(0);\r\n\t\tscRed.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscRed.setBounds(244, 34, 324, 42);\r\n\t\tscRed.setIncrement(1);\r\n\t\tscRed.setPageIncrement(10);\r\n\t\tscRed.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tR = scRed.getSelection();\r\n\t\t\t\tmRed.setText(Integer.toString(scRed.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmRed = new Label(colorUI, SWT.NONE);\r\n\t\tmRed.setAlignment(SWT.RIGHT);\r\n\t\tmRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmRed.setBounds(180, 47, 55, 15);\r\n\t\tmRed.setText(\"0\");\r\n\r\n\t\tscGreen = new Scale(colorUI, SWT.NONE);\r\n\t\tscGreen.setMaximum(255);\r\n\t\tscGreen.setMinimum(0);\r\n\t\tscGreen.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscGreen.setBounds(244, 84, 324, 42);\r\n\t\tscGreen.setIncrement(1);\r\n\t\tscGreen.setPageIncrement(10);\r\n\t\tscGreen.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tG = scGreen.getSelection();\r\n\t\t\t\tmGreen.setText(Integer.toString(scGreen.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmGreen = new Label(colorUI, SWT.NONE);\r\n\t\tmGreen.setAlignment(SWT.RIGHT);\r\n\t\tmGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmGreen.setText(\"0\");\r\n\t\tmGreen.setBounds(180, 97, 55, 15);\r\n\t\t\r\n\t\tscBlue = new Scale(colorUI, SWT.NONE);\r\n\t\tscBlue.setMaximum(255);\r\n\t\tscBlue.setMinimum(0);\r\n\t\tscBlue.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscBlue.setBounds(244, 138, 324, 42);\r\n\t\tscBlue.setIncrement(1);\r\n\t\tscBlue.setPageIncrement(10);\r\n\t\tscBlue.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tB = scBlue.getSelection();\r\n\t\t\t\tmBlue.setText(Integer.toString(scBlue.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmBlue = new Label(colorUI, SWT.NONE);\r\n\t\tmBlue.setAlignment(SWT.RIGHT);\r\n\t\tmBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmBlue.setText(\"0\");\r\n\t\tmBlue.setBounds(180, 151, 55, 15);\r\n\t\t\r\n\t\tscAlpha = new Scale(colorUI, SWT.NONE);\r\n\t\tscAlpha.setMaximum(255);\r\n\t\tscAlpha.setMinimum(0);\r\n\t\tscAlpha.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscAlpha.setBounds(244, 192, 324, 42);\r\n\t\tscAlpha.setIncrement(1);\r\n\t\tscAlpha.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tA = scAlpha.getSelection();\r\n\t\t\t\tmAlpha.setText(Integer.toString(scAlpha.getSelection()));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnOkay = new Button(colorUI, SWT.NONE);\r\n\t\tbtnOkay.setBounds(300, 261, 80, 30);\r\n\t\tbtnOkay.setText(\"Okay\");\r\n\t\tbtnOkay.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.cr.ColorR = R;\r\n\t\t\t\tOptions.cr.ColorG = G;\r\n\t\t\t\tOptions.cr.ColorB = B;\r\n\t\t\t\tOptions.cr.ColorA = A;\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnCancel = new Button(colorUI, SWT.NONE);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\tbtnCancel.setBounds(195, 261, 80, 30);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(Options.cr.ColorR, Options.cr.ColorG, Options.cr.ColorB));\r\n\t\t\t\tR = Options.cr.ColorR;\r\n\t\t\t\tG = Options.cr.ColorG;\r\n\t\t\t\tB = Options.cr.ColorB;\r\n\t\t\t\tA = Options.cr.ColorA;\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tmAlpha.setAlignment(SWT.RIGHT);\r\n\t\tmAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmAlpha.setText(\"0\");\r\n\t\tmAlpha.setBounds(180, 206, 55, 15);\r\n\t\t\r\n\t\tLabel lblRed = new Label(colorUI, SWT.NONE);\r\n\t\tlblRed.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblRed.setBounds(123, 47, 55, 15);\r\n\t\tlblRed.setText(\"Red\");\r\n\t\t\r\n\t\tLabel lblGreen = new Label(colorUI, SWT.NONE);\r\n\t\tlblGreen.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblGreen.setText(\"Green\");\r\n\t\tlblGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblGreen.setBounds(123, 97, 55, 15);\r\n\t\t\r\n\t\tLabel lblBlue = new Label(colorUI, SWT.NONE);\r\n\t\tlblBlue.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblBlue.setText(\"Blue\");\r\n\t\tlblBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblBlue.setBounds(123, 151, 55, 15);\r\n\t\t\r\n\t\tLabel lblAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tlblAlpha.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblAlpha.setText(\"Alpha\");\r\n\t\tlblAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblAlpha.setBounds(123, 206, 55, 15);\r\n\t\t\r\n\t\t\r\n\t}",
"public static SelectiveSearchSegmentationStrategyColor createSelectiveSearchSegmentationStrategyColor()\r\n {\r\n \r\n SelectiveSearchSegmentationStrategyColor retVal = SelectiveSearchSegmentationStrategyColor.__fromPtr__(createSelectiveSearchSegmentationStrategyColor_0());\r\n \r\n return retVal;\r\n }",
"public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"private ArrayList<Color> createColorArray(){\n ArrayList<Color> out = new ArrayList<>();\n out.add(detectColor((String) Objects.requireNonNull(P1color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P2color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P3color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P4color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P5color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P6color.getSelectedItem())));\n return out;\n }",
"public void makeLongComps(JPanel[] subLong){\n\t\t\tsubLong[0] = new JPanel();\n\t\t\tsubLong[1] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[0], 0, h, longColors[5]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[2] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[1], 0, h, longColors[6]); \n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[3] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[2], 0, h, longColors[7]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[4] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[3], 0, h, longColors[8]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[5] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[4], 0, h, longColors[9]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\tsubLong[6] = new JPanel();\n\t\t}",
"private void colorizeGrid() {\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setStyle(intersection.getColorCode(x, y));\n }\n }\n }",
"DualColorComponent(COModel m, int idx, Color col, JScrollPane sc){\n\t\tthis(m, col);\n\t\t\n\t\tindex = idx;\n\t\tscroller = sc;\n\t}",
"public ColumnColorVarietyStrategyBuilder(){\n super();\n ObjectiveCardStrategy ccvs = new ColumnColorVarietyStrategy();\n this.setStrategy(ccvs);\n this.setToBeCompared(\"ColumnColorVarietyStrategy\");\n }",
"public ColorClass (String name, Interval interval) {\n this(name, interval, false);\n }",
"private JMenu optionMenu(final DrawingPanel thePanel) {\r\n final JMenu optionMenu = new JMenu(\"Option\");\r\n optionMenu.setMnemonic(KeyEvent.VK_O);\r\n \r\n final JMenu optionThickness = new JMenu(\"Thickness\");\r\n optionThickness.setMnemonic(KeyEvent.VK_T);\r\n \r\n optionThickness.add(thicknessSlider(thePanel));\r\n optionMenu.add(optionThickness);\r\n \r\n optionMenu.addSeparator(); //add line in the middle\r\n final JMenuItem optionDrawColor = new JMenuItem(DRAW_COLOR);\r\n optionDrawColor.setMnemonic(KeyEvent.VK_D);\r\n optionDrawColor.setIcon(new ColorIcon(UW_PURPLE));\r\n optionDrawColor.addActionListener((theEvent) -> {\r\n final Color drawColor = JColorChooser.showDialog(optionDrawColor, \r\n DRAW_COLOR, \r\n UW_PURPLE);\r\n thePanel.setDrawColor(drawColor);\r\n optionDrawColor.setIcon(new ColorIcon(drawColor));\r\n repaint();\r\n });\r\n optionMenu.add(optionDrawColor);\r\n \r\n \r\n final JMenuItem optionFillColor = new JMenuItem(FILL_COLOR);\r\n optionFillColor.setMnemonic(KeyEvent.VK_F);\r\n optionFillColor.setIcon(new ColorIcon(UW_GOLD));\r\n optionFillColor.addActionListener((theEvent) -> {\r\n final Color fillColor = JColorChooser.showDialog(optionFillColor, \r\n FILL_COLOR, \r\n UW_GOLD);\r\n thePanel.setFillColor(fillColor);\r\n optionFillColor.setIcon(new ColorIcon(fillColor));\r\n repaint();\r\n });\r\n \r\n optionMenu.add(optionFillColor);\r\n optionMenu.addSeparator(); //add line in the middle\r\n final JCheckBox optionFill = new JCheckBox(\"Fill\");\r\n optionFill.addChangeListener(new ChangeListener() {\r\n @Override\r\n public void stateChanged(final ChangeEvent theEvent) {\r\n final boolean isTruelyFilled = optionFill.isSelected(); \r\n thePanel.isFill(isTruelyFilled);\r\n }\r\n });\r\n\r\n optionMenu.add(optionFill);\r\n \r\n return optionMenu;\r\n }",
"public void setAreaColor(Color c)\r\n/* 53: */ {\r\n/* 54: 37 */ this.areaColor = c;repaint();\r\n/* 55: */ }",
"public void setColor(Color choice) {\n circleColor = choice;\n\n }",
"public JPanel createColorPanels(String text, Color color){\n\n //Instantiating panel, label and button\n JPanel colorPanel = new JPanel();\n JLabel colorLabel = new JLabel(text);\n JButton colorButton = new JButton(\" \");\n\n //Editing button\n colorButton.setBackground(color);\n colorButton.setOpaque(true);\n colorButton.setSize(5, 10);\n colorButton.setEnabled(false);\n\n //Editing label\n setLabel(colorLabel);\n\n //Adding button and label\n colorPanel.add(colorButton);\n colorPanel.add(colorLabel);\n colorPanel.setBackground(Color.white);\n\n\n return colorPanel;\n }",
"private void initPieceColors(){\n\t\tfor(Piece p : this.pieces)\n\t\t\tpieceColors.put(p, Utils.randomColor());\n\t}",
"public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}",
"public Builder clearSelector() {\n copyOnWrite();\n instance.clearSelector();\n return this;\n }",
"public ColorClass (int ide, Interval interval, boolean ordered) {\n this (\"C\"+ide, interval, ordered);\n }",
"public static void applyUIColors(Color c) {\n \n \n Color cbr = ColorUtil.slightlyBrighter(c);\n Color cdk = ColorUtil.slightlyDarker(c);\n Color cdkdk = ColorUtil.slightlyDarker(cdk);\n \n UIManager.put(\"TabbedPane.contentAreaColor\", c);\n UIManager.put(\"TabbedPane.selected\", c);\n UIManager.put(\"TabbedPane.selectedBackground\", c);\n UIManager.put(\"TabbedPane.unselectedBackground\", cdk);\n\n UIManager.put(\"TabbedPane.tabAreaBackground\", c);\n UIManager.put(\"TabbedPane.selectHighlight\", cbr);\n UIManager.put(\"TabbedPane.tabsOpaque\", new Boolean(false));\n UIManager.put(\"TabbedPane.borderHightlightColor\", cdk);\n\n UIManager.put(\"TabbedPane.light\", cbr);\n UIManager.put(\"TabbedPane.highlight\", cbr);\n UIManager.put(\"TabbedPane.shadow\", cdk);\n UIManager.put(\"TabbedPane.darkShadow\", cdkdk);\n UIManager.put(\"TabbedPane.focus\", c);\n \n\n }",
"private void buildScrollPanel() {\r\n\t\tJPanel panel_for_scrollpane = new JPanel(new GridLayout(7, COLUMN_NAMES.length));\r\n\t\tpanel_for_scrollpane.setBorder(new BevelBorder(BevelBorder.LOWERED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tfor (int i = 0; i < COLUMN_NAMES.length; i++) {\r\n\t\t\tJLabel jl = new JLabel(COLUMN_NAMES[i], JLabel.CENTER);\r\n\t\t\tjl.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\tjl.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\t\tFont font = jl.getFont();\r\n\t\t\tMap attributes = font.getAttributes();\r\n\t\t\tattributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);\r\n\t\t\tjl.setFont(font.deriveFont(attributes));\r\n\t\t\tpanel_for_scrollpane.add(jl);\r\n\t\t}\r\n\t\tfor (int i = COLUMN_NAMES.length+1; i <= 42; i++) {\r\n\r\n\t\t\tif ((i - 1) % COLUMN_NAMES.length == 0) {\r\n\t\t\t\tfinal JLabel jl = new JLabel(\"Box \" + i, JLabel.CENTER);\r\n\t\t\t\tjl.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\tjl.setForeground(Color.BLUE);\r\n\t\t\t\tjl.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n\t\t\t\tfinal String box_clicked = \"clicked box \" + i;\r\n\t\t\t\tfinal Font entered = new Font(\"Tahoma\", Font.BOLD, 17);\r\n\t\t\t\tfinal Font exited = new Font(\"Tahoma\", Font.BOLD, 12);\r\n\t\t\t\tjl.addMouseListener(new MouseListener() {\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\tjl.setFont(entered);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\r\n\t\t\t\t\t\tjl.setFont(exited);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\t\t\tSystem.out.println(box_clicked);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tpanel_for_scrollpane.add(jl);\r\n\t\t\t} else {\r\n\t\t\t\tJLabel jl = new JLabel(\"Box\" + i, JLabel.CENTER);\r\n\t\t\t\tjl.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\tpanel_for_scrollpane.add(jl);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tpanel_for_scrollpane.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tpanel_for_scrollpane.setSize(10000, 10000);\r\n\t\tJScrollPane scrollPane = new JScrollPane(panel_for_scrollpane, 22, 32);\r\n\t\tscrollPane.setBounds(10, 350, 1235, 300);\r\n\t\tmain_panel.add(scrollPane);\r\n\r\n\t}",
"public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }",
"private void createHighlight() {\n\n // Create the new highlighted route\n for (Node node : routeList) {\n Point2D tileLocation = new Point2D(node.getX(), node.getY());\n highlightGroup.getChildren().add(new CircleTile(tileLocation, color, 2));\n }\n\n // Create product highlights\n int i = 1;\n for (Point2D point : productPositions) {\n CircleTile circle = new CircleTile(point, color, 8);\n Text text = new Text(\"\" + i);\n PaneCircleText pane = new PaneCircleText(circle, text);\n highlightGroup.getChildren().add(pane);\n i++;\n }\n\n }",
"protected Color adjustColorFill(Color c, int selectionLevel) {\n\t\t\n\t\tswitch (selectionLevel) {\n\t\tcase NONE: return c;\n\t\tcase HIGHLIGHTED: return GraphicUtils.getColorInBetween(c, nodeHighlightColor, nodeHighlightWeightFill);\n\t\tcase SELECTED: return GraphicUtils.getColorInBetween(c, nodeSelectionColor, nodeSelectionWeightFill);\n\t\t}\n\t\t\n\t\tthrow new IllegalArgumentException();\n\t}",
"private HepRepColor() {\n }",
"void selectColorFrom(Set<GameColor> colors, String title, Consumer<GameColor> callback);",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n colorChooser = new javax.swing.JColorChooser();\n aceptarBoton = new javax.swing.JButton();\n cancelarBoton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n colorChooser.setInheritsPopupMenu(true);\n\n aceptarBoton.setText(\"Aceptar\");\n aceptarBoton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aceptarBotonActionPerformed(evt);\n }\n });\n\n cancelarBoton.setText(\"Cancelar\");\n cancelarBoton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarBotonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(aceptarBoton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cancelarBoton)\n .addGap(11, 11, 11))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(aceptarBoton)\n .addComponent(cancelarBoton))\n .addContainerGap())\n );\n\n pack();\n }",
"protected void buildScene() {\n Geometry cube1 = buildCube(ColorRGBA.Red);\n cube1.setLocalTranslation(-1f, 0f, 0f);\n Geometry cube2 = buildCube(ColorRGBA.Green);\n cube2.setLocalTranslation(0f, 0f, 0f);\n Geometry cube3 = buildCube(ColorRGBA.Blue);\n cube3.setLocalTranslation(1f, 0f, 0f);\n\n Geometry cube4 = buildCube(ColorRGBA.randomColor());\n cube4.setLocalTranslation(-0.5f, 1f, 0f);\n Geometry cube5 = buildCube(ColorRGBA.randomColor());\n cube5.setLocalTranslation(0.5f, 1f, 0f);\n\n rootNode.attachChild(cube1);\n rootNode.attachChild(cube2);\n rootNode.attachChild(cube3);\n rootNode.attachChild(cube4);\n rootNode.attachChild(cube5);\n }",
"private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }",
"@Override\n public void onColorSelected(int selectedColor) {\n }",
"public ColorPaletteBuilder color1(Color color)\n {\n if (color1 == null) colorsCount++;\n this.color1 = color;\n return this;\n }",
"private void InitColorTable(){\n\n }",
"public ColorPicker(Frame parent, boolean modal) {\r\n this(Color.white, parent, modal);\r\n }",
"public JPanel init(){\n // set Comboboxes\n for(int i=0; i<10; i++){\n P1color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P2color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P3color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P4color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P5color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P6color.addItem(colorArray[i]);\n }\n\n P1color.setSelectedIndex(0);\n P2color.setSelectedIndex(1);\n P3color.setSelectedIndex(2);\n P4color.setSelectedIndex(3);\n P5color.setSelectedIndex(4);\n P6color.setSelectedIndex(5);\n\n // set labels based on the amount of players and ai's\n if (playerAmount>= 1){\n P1label.setText(\"PLAYER 1\");\n if (aiAmount >= 1) P2label.setText(\"AI 1\");\n if (aiAmount >= 2) P3label.setText(\"AI 2\");\n if (aiAmount >= 3) P4label.setText(\"AI 3\");\n if (aiAmount >= 4) P5label.setText(\"AI 4\");\n if (aiAmount == 5) P6label.setText(\"AI 5\");\n }\n if (playerAmount >= 2){\n P2label.setText(\"PLAYER 2\");\n if (aiAmount >= 1) P3label.setText(\"AI 1\");\n if (aiAmount >= 2) P4label.setText(\"AI 2\");\n if (aiAmount >= 3) P5label.setText(\"AI 3\");\n if (aiAmount == 4) P6label.setText(\"AI 4\");\n }\n if (playerAmount >= 3){\n P3label.setText(\"PLAYER 3\");\n if (aiAmount >= 1) P4label.setText(\"AI 1\");\n if (aiAmount >= 2) P5label.setText(\"AI 2\");\n if (aiAmount == 3) P6label.setText(\"AI 3\");\n }\n if (playerAmount >= 4){\n P4label.setText(\"PLAYER 4\");\n if (aiAmount >= 1) P5label.setText(\"AI 1\");\n if (aiAmount == 2) P6label.setText(\"AI 2\");\n }\n if (playerAmount >= 5){\n P5label.setText(\"PLAYER 5\");\n if (aiAmount == 1) P6label.setText(\"AI 1\");\n }\n if (playerAmount == 6){\n P6label.setText(\"PLAYER 6\");\n }\n\n // Disabele all unused player or ai widgets\n if (playerAmount + aiAmount == 2){\n P3color.setVisible(false);\n P3label.setVisible(false);\n P3text.setVisible(false);\n\n P4color.setVisible(false);\n P4label.setVisible(false);\n P4text.setVisible(false);\n\n P5color.setVisible(false);\n P5label.setVisible(false);\n P5text.setVisible(false);\n\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n else if (playerAmount + aiAmount == 3){\n P4color.setVisible(false);\n P4label.setVisible(false);\n P4text.setVisible(false);\n\n P5color.setVisible(false);\n P5label.setVisible(false);\n P5text.setVisible(false);\n\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n else if (playerAmount + aiAmount == 4){\n P5color.setVisible(false);\n P5label.setVisible(false);\n P5text.setVisible(false);\n\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n else if (playerAmount + aiAmount == 5){\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n\n // initialize buttons\n startGameButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n DebugLabel.setText(\"\");\n if (createPlayers()){\n new City();\n Main.getJFrame().remove(Main.getBackgroundPanel());\n JLayeredPane layeredPane = Main.getJFrame().getLayeredPane();\n layeredPane.setLayout(null);\n layeredPane.setSize(1920,1080);\n layeredPane.add(new GameUI().init(),-300);\n Main.getJFrame().revalidate();\n Main.getJFrame().repaint();\n Main.ExecuteGame();\n }\n }\n });\n BACKButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n DebugLabel.setText(\"\");\n Main.getBackgroundPanel().removeAll();\n Main.getBackgroundPanel().add((new GameOptionsUI().init()));\n Main.getJFrame().revalidate();\n Main.getJFrame().repaint();\n }\n });\n return MainPanel;\n }",
"public ColorPicker(Color color, Frame parent, boolean modal) {\r\n super(parent, \"Color chooser\", modal);\r\n\r\n setLayout(new GridBagLayout());\r\n createDialogComponents(color);\r\n\r\n setColor(color);\r\n colorCanvas.setColor(color);\r\n }",
"protected Color[] generatePlotColors(int numLayers){\n\t\tColor[] clrs = new Color[numLayers];\n\t\t\n\t\t//the first layer is the backgound, so this shouldn't really\n\t\t//ever be used\n\t\tclrs[0] = Color.BLACK;\n\n\t\t//the raw data\n\t\tclrs[1] = Color.GRAY;\n\n\t\t//TODO: this should be changed to a more robust method\n\t\tint colorIdx;\n\t\tfor(int i = 2; i < numLayers; i++){\n\t\t\tcolorIdx = i % 4;\n\t\t\tswitch(colorIdx){\n\t\t\t\tcase 0:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_BLUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_RED;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_GREEN;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_YELLOW;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:{\n\t\t\t\t\tSystem.out.println(\"Problem With Color Assignment\");\n\t\t\t\t\tclrs[i] = Color.MAGENTA;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn clrs;\n\t}",
"public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}",
"private void buildMainPanel() {\n\t\t\n\t\tif(theMode == MODE_FPC) {\n\t\t\ttheFields = new PropertyComponent[9];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"\", 1, false, false);\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", FPC_GRP_SORT, 0, true, false);\t\t\t\n\t\t\t//theFields[5] = new PropertyComponent(\"grp_order\", \"\", 1, true, false);\t\t\t\n\t\t\ttheFields[4] = new PropertyComponent(\"cbsize\", \"1200\", 1, false, false);\t\t\t\n\t\t\ttheFields[5] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[6] = new PropertyComponent(\"fpc_file\", \"\", true, true, true);\n\t\t\ttheFields[7] = new PropertyComponent(\"bes_files\", \"\", true, true, false);\n\t\t\ttheFields[8] = new PropertyComponent(\"marker_files\", \"\", true, true, false);\n\t\t} else { //MODE_PSEUDO\n\t\t\ttheFields = new PropertyComponent[13];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"Chr\", 1, false, false);\t\t\t\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", PSEUDO_GRP_SORT, 0, true, false);\n\t\t\ttheFields[4] = new PropertyComponent(\"order_against\", getProjectSelections(), 0, false, true);\n\t\t\ttheFields[5] = new PropertyComponent(\"mask_all_but_genes\", PSEUDO_MASK_GENES, 1, false, true);\n\t\t\ttheFields[6] = new PropertyComponent(\"min_size\", \"100000\", 1, true, false);\t\t\t\n\t\t\ttheFields[7] = new PropertyComponent(\"min_display_size_bp\", \"0\", 1, false, false);\t\t\t\n\t\t\ttheFields[8] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[9] = new PropertyComponent(\"annot_keywords\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[10] = new PropertyComponent(\"annot_kw_mincount\", \"50\", 2, false, false);\t\n\t\t\ttheFields[11] = new PropertyComponent(\"anno_files\", \"\", true, true, false);\n\t\t\ttheFields[12] = new PropertyComponent(\"sequence_files\", \"\", true, true, false);\n\t\t}\n\t\t\t\n\t\tJPanel tempPanel = new JPanel();\n\t\ttempPanel.setLayout(new BoxLayout(tempPanel, BoxLayout.PAGE_AXIS));\n\t\ttempPanel.setBackground(Color.WHITE);\n\t\t\n\t\tfor(int x=0; x<theFields.length; x++) {\n\t\t\ttempPanel.add(Box.createVerticalStrut(5));\n\t\t\ttheFields[x].setTextListener(theListener);\n\t\t\ttempPanel.add(theFields[x]);\n\t\t}\n\t\ttempPanel.add(Box.createVerticalStrut(20));\n\t\ttempPanel.add(createButtonPanel());\n\t\ttempPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\t\ttempPanel.setMaximumSize(tempPanel.getPreferredSize());\n\t\ttempPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\n\t\tgetContentPane().add(tempPanel);\n\t}",
"public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}",
"public JPanel createRoomGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Room Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Conservatory\");\n\t\tcomboBox.addItem(\"Kitchen\");\n\t\tcomboBox.addItem(\"Ballroom\");\n\t\tcomboBox.addItem(\"Library\");\n\t\tcomboBox.addItem(\"Arcade room\");\n\t\tcomboBox.addItem(\"Gun room\");\n\t\tcomboBox.addItem(\"Trophy room\");\n\t\tcomboBox.addItem(\"Pantry\");\n\t\tcomboBox.addItem(\"Sauna\");\t\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}"
] |
[
"0.55812204",
"0.5350848",
"0.52710223",
"0.5261833",
"0.51684964",
"0.5156958",
"0.5142219",
"0.51362056",
"0.5063553",
"0.50452167",
"0.5019731",
"0.50113547",
"0.49966794",
"0.49714938",
"0.49701324",
"0.49295878",
"0.49195847",
"0.48465586",
"0.48347533",
"0.48255733",
"0.48241958",
"0.4768966",
"0.4753915",
"0.47413144",
"0.47118336",
"0.4697362",
"0.46880293",
"0.46827397",
"0.4671055",
"0.46678466",
"0.46405554",
"0.46217406",
"0.46109986",
"0.459635",
"0.4591916",
"0.457644",
"0.457324",
"0.45659775",
"0.45622042",
"0.45617363",
"0.4558681",
"0.45406663",
"0.45343432",
"0.45326006",
"0.45196155",
"0.45083943",
"0.45067075",
"0.44891828",
"0.4486373",
"0.4475136",
"0.44698727",
"0.4465015",
"0.445043",
"0.4426911",
"0.44209874",
"0.43977806",
"0.43968776",
"0.43937784",
"0.43908632",
"0.43880352",
"0.43861738",
"0.43817392",
"0.4381033",
"0.43702278",
"0.4367882",
"0.436757",
"0.4363526",
"0.43619844",
"0.4357523",
"0.43557638",
"0.43478537",
"0.43448707",
"0.43444985",
"0.43423465",
"0.43345326",
"0.43338612",
"0.43178552",
"0.43113878",
"0.43049046",
"0.4303061",
"0.43029281",
"0.43012282",
"0.42996582",
"0.42961395",
"0.4286634",
"0.426836",
"0.42675763",
"0.4258504",
"0.4248329",
"0.4244778",
"0.4231284",
"0.4227827",
"0.42276245",
"0.4222448",
"0.4221598",
"0.42127696",
"0.42121",
"0.4205338",
"0.42019424",
"0.41940346"
] |
0.6243717
|
0
|
Creates the main content panel of the InfoPanel.
|
private JPanel createContentPanel() {
JPanel panel = new JPanel();
panel.setLayout(new MigLayout());
panel.setPreferredSize(new Dimension(400, 300));
panel.setOpaque(true);
panel.setBorder(BorderFactory.createTitledBorder(
localization.get("AttributesTitle")));
roomNameField = LabeledComponent
.textField(localization.get("RoomNameLabel"),
new InfoPanelDocListener(this, new SetName()));
roomNameField.addToPanel(panel);
includeField = LabeledComponent
.textField(localization.get("IncludeLabel"),
new InfoPanelDocListener(this, new SetInclude()));
includeField.addToPanel(panel);
inheritField = LabeledComponent
.textField(localization.get("InheritLabel"),
new InfoPanelDocListener(this, new SetInherit()));
inheritField.addToPanel(panel);
buildStreetNameField(panel);
buildAddEditStreetsButton(panel);
buildColorSelector(panel);
shortDescriptionField = LabeledComponent
.textField(localization.get("ShortDescLabel"),
new InfoPanelDocListener(this, new SetShort()));
panel.add(shortDescriptionField.getLabel());
panel.add(shortDescriptionField.getComponent(), "span, grow, wrap");
determinateField = LabeledComponent
.textField(localization.get("DeterminateLabel"),
new InfoPanelDocListener(this, new SetDeterminate()));
determinateField.addToPanel(panel);
lightField = LabeledComponent
.textField(localization.get("LightLabel"),
new InfoPanelDocListener(this, new SetLight()));
lightField.addToPanel(panel);
longDescriptionField = LabeledComponent
.textArea(localization.get("LongDescLabel"),
new InfoPanelDocListener(this, new SetLong()));
panel.add(longDescriptionField.getLabel(), "wrap");
panel.add(longDescriptionField.getComponent(), "span, grow");
return panel;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public InfoPanel() {\n setPreferredSize(new Dimension(500, 860));\n }",
"private void initInfoPanel() {\n\t\t// Info Panel\n\t\tinfoPanel = new JPanel();\n\t\tinfoPanel.setBorder(BorderFactory.createTitledBorder(\"\"));\n\t\t\n\t\t// Current Word Label\n\t\twordString = \"\";\n\t\twordLabel = new JLabel(\" \" + wordString, SwingConstants.LEFT);\n\t\twordLabel.setBorder(BorderFactory.createTitledBorder(\"Current Word\"));\n\t\twordLabel.setPreferredSize(new Dimension(280, 65));\n\t\twordLabel.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tinfoPanel.add(wordLabel);\n\t\t\n\t\t// Submit Button\n\t\tsubmitButton = new JButton(\"Submit Word\");\n\t\tsubmitButton.setPreferredSize(new Dimension(160, 65));\n\t\tsubmitButton.setFont(new Font(\"Arial\", Font.BOLD, 18));\n\t\tsubmitButton.setFocusable(false);\n\t\tsubmitButton.addActionListener(new SubmitListener());\n\t\tinfoPanel.add(submitButton);\n\t\t\n\t\t// Score Label\n\t\tscoreInt = 0;\n\t\tscoreLabel = new JLabel(\"\", SwingConstants.LEFT);\n\t\tscoreLabel.setBorder(BorderFactory.createTitledBorder(\"Score\"));\n\t\tscoreLabel.setPreferredSize(new Dimension(110, 65));\n\t\tscoreLabel.setFont(new Font(\"Arial\", Font.PLAIN, 16));\n\t\tinfoPanel.add(scoreLabel);\n\t}",
"public abstract void createContents(Panel mainPanel);",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"private Widget getInfo() {\n FocusPanel infoPanel = new FocusPanel();\n infoPanel.setStyleName(\"elv-Molecules-InfoPanel\");\n HorizontalPanel content = new HorizontalPanel();\n try{\n Image img = new Image(ReactomeImages.INSTANCE.information());\n String helpTitle = \"Info\";\n HTMLPanel helpContent = new HTMLPanel(\n \"The molecules tab shows you all the molecules of a complete pathway diagram.\\n\" +\n \"Molecules are grouped in Chemical Compounds, Proteins, Sequences and Others.\\n\" +\n \"The molecules of a selected object appear highlighted in the molecules lists;\\n\" +\n \"a molecule selected in the list will be highlighted in the diagram.\\n\" +\n \"For each molecule you can see a symbol, a link to the main reference DB, a name and the number of\\n\" +\n \"occurrences in the pathway. Clicking on the symbol several times will allow you to circle through\\n\" +\n \"all its occurrences in the diagram.\\n\" +\n \"Expanding by clicking on the '+' will provide you with further external links.\\n\" +\n \"Lists can be downloaded. Just click on the button in the top right\\n\" +\n \"corner, select the fields and types you are interested in and click 'Start Download'.\");\n\n content.add(img);\n popup = new HelpPopup(helpTitle, helpContent);\n infoPanel.addMouseOverHandler(this);\n infoPanel.addMouseOutHandler(this);\n infoPanel.getElement().getStyle().setProperty(\"cursor\", \"help\");\n }catch (Exception e){\n// e.printStackTrace();\n Console.error(getClass() + \": \" + e.getMessage());\n //ToDo: Enough?\n }\n HTMLPanel title = new HTMLPanel(\"Info\");\n title.getElement().getStyle().setMarginLeft(10, Style.Unit.PX);\n content.add(title);\n\n infoPanel.add(content.asWidget());\n\n return infoPanel;\n }",
"private void buildInfoPanel() {\r\n infoPanel = new JPanel( new GridLayout( 1, 1 ) );\r\n infoBox = Box.createHorizontalBox();\r\n\r\n // setBackground() does NOT work with a Box\r\n infoPanel.setBackground( COLOR_INFO_BKGRND );\r\n\r\n soundBtn = new JButton( Msgs.str( \"Snd.go\" ) );\r\n soundBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( soundBtn );\r\n\r\n resetBtn = new JButton( Msgs.str( \"Reset\" ) );\r\n resetBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( resetBtn );\r\n\r\n infoMesg = new JLabel( Msgs.str( \"Ready\" ), SwingConstants.CENTER );\r\n infoMesg.setFont( fontLARGE );\r\n infoMesg.setForeground( COLOR_INFO_FRGRND );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( infoMesg );\r\n infoBox.add( Box.createGlue() );\r\n\r\n infoPanel.add( infoBox );\r\n }",
"public InfoPanel()\n\t\t{\n\t\t\t//setting color and instantiating textfield and button\n\t\t\tsetBackground(bCol);\n\t\t\tnameJF = new JTextField(\"Type Your Name\", 20);\n\t\t\tFont naFont = new Font(\"Serif\", Font.PLAIN, 25);\n\t\t\tnameJF.setFont(naFont);\n\t\t\tsub = new JButton(\"Submit\");\n\t\t\tsub.addActionListener(this);\n\t\t\tsub.setFont(naFont);\n\t\t\tname = new String(\"\");\n\t\t\tadd(nameJF);\n\t\t\tadd(sub);\n\t\t}",
"@Override\n\tpublic void setUpInfoPanel() {\n\t\t\n\t}",
"public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}",
"private JComponent buildContentPane() {\r\n contentPane = new ContentPanel(new BorderLayout());\r\n contentPane.add(buildToolBar(), BorderLayout.NORTH);\r\n contentPane.add(buildMainPanel(), BorderLayout.CENTER);\r\n return contentPane;\r\n }",
"final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }",
"private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }",
"private void constructInfoPanel() {\n try {\n Runnable doUpdate = new Runnable() {\n public void run() {\n infoPanel = new JPanel();\n infoPanel.setPreferredSize(relativeSize(0.8f, 0.04f));\n \n infoLabel = new JLabel(\"Waiting for Clients\");\n infoLabel.setForeground(new Color(0, 51, 102));\n infoLabel.setFont(new Font(\"Garamond\", Font.BOLD, 17));\n \n infoPanel.add(infoLabel);\n }\n };\n if (SwingUtilities.isEventDispatchThread())\n doUpdate.run();\n else\n SwingUtilities.invokeAndWait(doUpdate);\n }catch(Exception e) {\n e.printStackTrace();\n }\n }",
"private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\n }",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}",
"protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}",
"private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}",
"public Info() {\n initComponents();\n setSize(540, 575);\n setLocationRelativeTo(null);\n \n }",
"public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}",
"private JPanel getAboutContentPane() {\n\t\tif (aboutContentPane == null) {\n\t\t\taboutContentPane = new JPanel();\n\t\t\taboutContentPane.setLayout(new BorderLayout());\n\t\t\taboutContentPane.add(getAboutVersionLabel(), BorderLayout.CENTER);\n\t\t}\n\t\treturn aboutContentPane;\n\t}",
"protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}",
"public AboutPanel() {\n super();\n initialize();\n }",
"@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}",
"private JPanel getAboutContentPane() {\n if (aboutContentPane == null) {\n aboutContentPane = new JPanel();\n aboutContentPane.setLayout(new BorderLayout());\n aboutContentPane.add(getAboutVersionLabel(), BorderLayout.CENTER);\n }\n return aboutContentPane;\n }",
"private JPanel getPanelInfo() {\n\t\tif (panelInfo == null) {\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n\t\t\tgridBagConstraints7.fill = GridBagConstraints.BOTH;\n\t\t\tgridBagConstraints7.gridx = 0;\n\t\t\tgridBagConstraints7.gridy = 2;\n\t\t\tgridBagConstraints7.ipadx = 358;\n\t\t\tgridBagConstraints7.ipady = 7;\n\t\t\tgridBagConstraints7.weightx = 1.0;\n\t\t\tgridBagConstraints7.weighty = 1.0;\n\t\t\tgridBagConstraints7.insets = new Insets(0, 26, 1, 26);\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\n\t\t\tgridBagConstraints6.gridx = 0;\n\t\t\tgridBagConstraints6.ipadx = 358;\n\t\t\tgridBagConstraints6.ipady = 7;\n\t\t\tgridBagConstraints6.gridy = 1;\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\n\t\t\tgridBagConstraints5.insets = new Insets(0, 26, 0, 0);\n\t\t\tgridBagConstraints5.gridy = 0;\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.WEST;\n\t\t\tgridBagConstraints5.gridx = 0;\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n\t\t\tgridBagConstraints4.fill = GridBagConstraints.BOTH;\n\t\t\tgridBagConstraints4.gridy = 1;\n\t\t\tgridBagConstraints4.weightx = 1.0;\n\t\t\tgridBagConstraints4.weighty = 1.0;\n\t\t\tgridBagConstraints4.gridx = 1;\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\n\t\t\tgridBagConstraints2.insets = new Insets(0, 26, 0, 15);\n\t\t\tgridBagConstraints2.gridy = 2;\n\t\t\tgridBagConstraints2.weightx = 1.0;\n\t\t\tgridBagConstraints2.anchor = GridBagConstraints.WEST;\n\t\t\tgridBagConstraints2.gridx = 0;\n\t\t\tlabelCanonicalName = new JLabel();\n\t\t\tlabelCanonicalName.setText(\"JLabel\");\n\t\t\tlabelCanonicalName.setFont(new java.awt.Font(\"SansSerif\", java.awt.Font.BOLD, 14));\n\t\t\tlabelCanonicalName.setHorizontalAlignment(SwingConstants.LEADING);\n\t\t\tpanelInfo = new JPanel();\n\t\t\tpanelInfo.setLayout(new GridBagLayout());\n\t\t\tpanelInfo.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n\t\t\tpanelInfo.setPreferredSize(new Dimension(629, 100));\n\t\t\tpanelInfo.setMinimumSize(new Dimension(629, 100));\n\t\t\tpanelInfo.setMaximumSize(new Dimension(629, 100));\n\t\t\tpanelInfo.add(labelCanonicalName, gridBagConstraints5);\n\t\t\tpanelInfo.add(getJPanel4(), gridBagConstraints6);\n\t\t\tpanelInfo.add(getJTextAreaDescription(), gridBagConstraints7);\n\t\t}\n\t\treturn panelInfo;\n\t}",
"public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}",
"public void constructInfoPeriodPanel() {\n Runnable doUpdate = new Runnable() {\n public void run() {\n infoPanel.removeAll();\n infoPanel.setLayout(new GridLayout(1, 2));\n \n JPanel timePanel = new JPanel();\n timeLabel = new JLabel();\n timeLabel.setForeground(new Color(0, 51, 102));\n timeLabel.setText(\"<html>Period Time Remaining: <font color=#993333>N/A</font></html>\");\n timePanel.add(timeLabel);\n \n \n infoPanel.add(timePanel);\n \n JPanel backlogPanel = new JPanel();\n backlogLabel = new JLabel();\n backlogLabel.setForeground(new Color(0, 51, 102));\n backlogLabel.setText(\"<html>Offer Backlog: <font color=#993333>0</font></html>\");\n backlogPanel.add(backlogLabel);\n \n infoPanel.add(backlogPanel);\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }",
"void createMainContent() {\n appContent = new DashboardMain(this);\n }",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}",
"protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}",
"private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}",
"@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}",
"public InfoPopup() {\n initComponents();\n }",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}",
"private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}",
"public ContractorInfoPanel() {\n\t\tinitComponents();\n\t}",
"private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }",
"public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}",
"public UserInfoPanel() {\n initComponents();\n }",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}",
"public JPanel getInfoPane(int w, int h) {\n \n \t\tJPanel infoPanel = new JPanel();\n \t\tinfoPanel.setPreferredSize(new Dimension(w, h));\n \n \t\tGroupLayout layout = new GroupLayout(infoPanel);\n \t\tinfoPanel.setLayout(layout);\n \t\tlayout.setAutoCreateGaps(true);\n \t\tlayout.setAutoCreateContainerGaps(true);\n \n \t\tJTextArea description = new JTextArea(10, 10);\n \t\tif (c == CCode.RED)\n \t\t\tdescription.setBackground(Color.PINK);\n \t\telse if (c == CCode.BLUE)\n \t\t\tdescription.setBackground(Color.CYAN);\n \t\telse if (c == CCode.YELLOW)\n \t\t\tdescription.setBackground(Color.YELLOW);\n \t\telse if (c == CCode.GREEN)\n \t\t\tdescription.setBackground(Color.GREEN);\n \t\t// description.setFont(font);\n \t\tdescription.setLineWrap(true);\n \t\tdescription.setWrapStyleWord(true);\n \t\tdescription.setEditable(false);\n \n \t\tString cardText = \"\";\n \t\tif (t == Type.CHARACTER) {\n \t\t\tif (!getTrait1_j().equals(\"\"))\n \t\t\t\tcardText += getTrait1();\n \t\t\tif (!getTrait2_j().equals(\"\"))\n \t\t\t\tcardText += (!cardText.equals(\"\") ? \" | \" : \"\") + getTrait2();\n \t\t\tcardText += \"\\n\\n\";\n \t\t}\n \t\tcardText += getEffects() + \"\\n\";\n \n \t\tif (!getFlavorText().equals(\"\")) {\n \t\t\tcardText += \"Flavor Text: \\n\" + getFlavorText();\n \t\t}\n \n \t\tdescription.setText(cardText);\n \n \t\tdescription.setCaretPosition(0);\n \t\tJScrollPane descContainer = new JScrollPane(description);\n \n \t\tJLabel nameLabel = new JLabel();\n \t\t// nameLabel.setFont(font);\n \t\tnameLabel.setText(cardName);\n \n \t\tJLabel idLabel = new JLabel(id.replace(\"_alt\", \"\"));\n \t\t// idLabel.setFont(font);\n \t\tJLabel typeLabel = new JLabel(t.toString());\n \t\t// typeLabel.setFont(font);\n \t\tJLabel levelLabel = new JLabel(\"Level: \" + (level >= 0 ? level : \" -\"));\n \t\t// levelLabel.setFont(font);\n \t\tJLabel costLabel = new JLabel(\"Cost: \" + (cost >= 0 ? cost : \" -\"));\n \t\t// costLabel.setFont(font);\n \t\tJLabel soulLabel = new JLabel(\"Trigger: \" + trigger.toString());\n \t\t// soulLabel.setFont(font);\n \t\tJLabel powerLabel = new JLabel(\"Power: \" + (power > 0 ? power : \" -\"));\n \t\t// powerLabel.setFont(font);\n \t\tJLabel damageLabel = new JLabel(\"Soul: \" + (soul > 0 ? soul : \" -\"));\n \t\t// damageLabel.setFont(font);\n \t\tlayout.setAutoCreateGaps(true);\n \t\tlayout.setAutoCreateContainerGaps(true);\n \n \t\tlayout.setHorizontalGroup(layout\n \t\t\t\t.createParallelGroup()\n \t\t\t\t.addComponent(nameLabel, GroupLayout.PREFERRED_SIZE, 350, GroupLayout.PREFERRED_SIZE)\n \t\t\t\t.addGroup(\n \t\t\t\t\t\tlayout.createSequentialGroup()\n \t\t\t\t\t\t\t\t.addGroup(\n \t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(idLabel, GroupLayout.PREFERRED_SIZE, 125, GroupLayout.PREFERRED_SIZE))\n \t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addComponent(levelLabel, GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE).addComponent(costLabel)))\n \t\t\t\t\t\t\t\t.addGroup(\n \t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(typeLabel))\n \t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addComponent(powerLabel, GroupLayout.PREFERRED_SIZE, 90, GroupLayout.PREFERRED_SIZE)))\n \t\t\t\t\t\t\t\t.addGroup(\n \t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(soulLabel, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n \t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addComponent(damageLabel))))\n \t\t\t\t.addComponent(descContainer, GroupLayout.PREFERRED_SIZE, 350, GroupLayout.PREFERRED_SIZE));\n \n \t\tlayout.setVerticalGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup().addComponent(nameLabel))\n \t\t\t\t.addGroup(layout.createParallelGroup().addComponent(idLabel).addComponent(typeLabel).addComponent(soulLabel))\n \t\t\t\t.addGroup(layout.createParallelGroup().addComponent(levelLabel).addComponent(costLabel).addComponent(powerLabel).addComponent(damageLabel))\n \t\t\t\t.addGroup(layout.createParallelGroup().addComponent(descContainer)));\n \n \t\t// System.out.println(\"getInfoPane\");\n \n \t\treturn infoPanel;\n \n \t}",
"public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}",
"public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}",
"@Override\n\tpublic void createContents(Panel mainPanel) {\n\t\tmainPanel.setLayout(new ColumnLayout(5));\n\t\tnew Label(mainPanel).setText(\"El jugador\");\n\t\tnew Label(mainPanel).setText(this.getModel().nombre);\n\t\tnew Label(mainPanel).setText(\"se retira con \");\n\t\tnew Label(mainPanel).bindValueToProperty(Jugador.FICHAS);\n\t\tnew Label(mainPanel).setText(\"$\");\n\t Button boton = new Button(mainPanel).setCaption(\"OK\");\n\t boton.onClick(new MessageSend(this,\"cerrar\"));\n\t \n\t \n\t \n\t}",
"public InfoView getInfoView() {\r\n return infoPanel;\r\n }",
"private void initInfo() {\r\n\t\tthis.panelInfo = new JPanel();\r\n\t\tthis.panelInfo.setLayout(new BoxLayout(this.panelInfo,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\t\tJPanel filterInfoPanel = new JPanel();\r\n\t\tfilterInfoPanel.setLayout(new GridLayout(4, 2, 10, 10));\r\n\t\tJLabel labelInformation = new JLabel(\"Information\");\r\n\t\tif (dlm.getSize() > 0) {\r\n\t\t\tWeapon weapon = this.tableWeapon.getWeapon((String) this.list\r\n\t\t\t\t\t.getSelectedValue());\r\n\r\n\t\t\tlabelInformation.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tJLabel labelName = new JLabel(\"Name\");\r\n\t\t\tJLabel labelNameInfo = new JLabel(weapon.getName());\r\n\t\t\tJLabel labelDamage = new JLabel(\"Damages\");\r\n\t\t\tJLabel labelDamageInfo = new JLabel(String.valueOf(weapon\r\n\t\t\t\t\t.getDamagesMinimum())\r\n\t\t\t\t\t+ \" - \"\r\n\t\t\t\t\t+ String.valueOf(weapon.getDamagesMaximum()));\r\n\t\t\tJLabel labelPrice = new JLabel(\"Price\");\r\n\t\t\tJLabel labelPriceInfo = new JLabel(\r\n\t\t\t\t\tString.valueOf(weapon.getPrice()));\r\n\t\t\tJLabel labelType = new JLabel(\"Types\");\r\n\t\t\tJLabel labelTypeInfo = new JLabel(\r\n\t\t\t\t\t(String) this.comboBoxType.getSelectedItem());\r\n\t\t\tfilterInfoPanel.add(labelName);\r\n\t\t\tfilterInfoPanel.add(labelNameInfo);\r\n\t\t\tfilterInfoPanel.add(labelDamage);\r\n\t\t\tfilterInfoPanel.add(labelDamageInfo);\r\n\t\t\tfilterInfoPanel.add(labelPrice);\r\n\t\t\tfilterInfoPanel.add(labelPriceInfo);\r\n\t\t\tfilterInfoPanel.add(labelType);\r\n\t\t\tfilterInfoPanel.add(labelTypeInfo);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tlabelInformation.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tJLabel labelName = new JLabel(\"Name\");\r\n\t\t\tJLabel labelNameInfo = new JLabel();\r\n\t\t\tJLabel labelDamage = new JLabel(\"Damages\");\r\n\t\t\tJLabel labelDamageInfo = new JLabel();\r\n\t\t\tJLabel labelPrice = new JLabel(\"Price\");\r\n\t\t\tJLabel labelPriceInfo = new JLabel();\r\n\t\t\tJLabel labelType = new JLabel(\"Types\");\r\n\t\t\tJLabel labelTypeInfo = new JLabel();\r\n\t\t\tfilterInfoPanel.add(labelName);\r\n\t\t\tfilterInfoPanel.add(labelNameInfo);\r\n\t\t\tfilterInfoPanel.add(labelDamage);\r\n\t\t\tfilterInfoPanel.add(labelDamageInfo);\r\n\t\t\tfilterInfoPanel.add(labelPrice);\r\n\t\t\tfilterInfoPanel.add(labelPriceInfo);\r\n\t\t\tfilterInfoPanel.add(labelType);\r\n\t\t\tfilterInfoPanel.add(labelTypeInfo);\r\n\t\t}\r\n\r\n\t\tthis.panelInfo.add(labelInformation);\r\n\t\tthis.panelInfo.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panelInfo.add(filterInfoPanel);\r\n\t\tthis.panelInfo.add(Box.createRigidArea(new Dimension(0, 3)));\r\n\t\tthis.panelInfo.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t}",
"private void buildUserDataPanel() {\r\n\t\tJPanel user_info_panel = new JPanel();\r\n\t\tuser_info_panel.setBorder(new BevelBorder(BevelBorder.LOWERED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tuser_info_panel.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tuser_info_panel.setBounds(201, 234, 213, 100);\r\n\t\tuser_info_panel.setLayout(new GridLayout(3, 2));\r\n\t\tJLabel label_2 = new JLabel(\" User:\");\r\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_2);\r\n\t\tJLabel label = new JLabel(\"Biff McMann\");\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label);\r\n\t\tJLabel label_3 = new JLabel(\" Position:\");\r\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_3);\r\n\t\tJLabel label_1 = new JLabel(\"Program Chair\");\r\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_1);\r\n\t\tJLabel label_4 = new JLabel(\" Date:\");\r\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_4);\r\n\t\tJLabel label_5 = new JLabel(\"9/23/2013\");\r\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_5);\r\n\t\tmain_panel.add(user_info_panel);\r\n\r\n\t}",
"protected Component createBotInfoPanel() {\n\t\tJPanel botInfoPanel = generatePanel(new GridLayout(2, 3), \"Bot Information\");\n\n\t\tbotInfoPanel.add(generateTextField(botPrefix = new JTextField(\"jmeterBot\", 10), \"Bot Prefix: \"));\n\t\tbotInfoPanel.add(generateTextField(channelPrefix = new JTextField(\"#jmeter\", 10), \"Channel Prefix: \"));\n\t\tbotInfoPanel.add(generateTextField(numChannels = new JTextField(\"1\", 10), \"Channels: \"));\n\t\tbotInfoPanel.add(generateTextField(command = new JTextField(\"?jmeter\", 10), \"Command: \"));\n\t\tbotInfoPanel.add(generateTextField(targetNick = new JTextField(\"\", 10), \"Target Nick: \"));\n\n\t\treturn botInfoPanel;\n\t}",
"private JPanel buildMainPanel() {\n\t\t\n\t\tint row;\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel main;\n\t\tJLabel label;\t\t\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tmain = new JPanel(layout);\n\t\trow = 0;\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CURRENT_CONFIGURATION)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, label = new JLabel(userPrefs.getConfiguration()), \n\t\t\t\tlayout, constraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tlabel.setForeground(Color.BLUE);\t\t\n\t\tGUIUtils.add(main, new JSeparator(), layout, constraints, row++, 0, 1, \n\t\t\t\t2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CONFIGURATION_NAME)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.NORTHEAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, new JScrollPane(configurationName = \n\t\t\t\tnew JTextField(20)), layout, constraints, row++, 1, 1, 1, \n\t\t\t\tGridBagConstraints.WEST, GridBagConstraints.NONE, \n\t\t\t\tGUIUtils.SMALL_INSETS);\t\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_MAKE_DEFAULT)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, makeDefault = new JCheckBox(), layout, \n\t\t\t\tconstraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\treturn main;\n\t}",
"private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}",
"public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}",
"private void setInfoPanel()\r\n {\r\n //set up info panel\r\n unitPanel.setPlayer(worldPanel.getCurrentPlayer());\r\n\t\t\t\tunitPanel.setYear(year);\r\n int tempUnit = worldPanel.getCurrentUnit();\r\n\r\n if(worldPanel.getCurrentPlayer() == 1)\r\n {\r\n unitPanel.setImageIcon(worldPanel.player1.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player1.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player1.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player1.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n else\r\n {\r\n unitPanel.setImageIcon(worldPanel.player2.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player2.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player2.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player2.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n }",
"public AboutPanel_V2() {\n init();\n }",
"private JPanel buildMainPanel() {\n FormLayout layout = new FormLayout(\"pref:grow\",\n \"pref, 3dlu, pref, 3dlu, pref, 12dlu, pref, 3dlu, pref, pref, \"\n + \"pref, pref, 9dlu, pref, 3dlu, pref, \"\n + \"pref, pref, pref, 0:grow, pref\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n // Bottom border\n builder.setBorder(Borders.createEmptyBorder(\"1dlu, 3dlu, 2dlu, 3dlu\"));\n CellConstraints cc = new CellConstraints();\n\n int row = 1;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.status\"),\n cc.xy(1, row));\n row += 2;\n builder.add(synchronizationStatusLabel, cc.xy(1, row));\n row += 2;\n builder.add(synchronizationDateLabel, cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.you_have\"),\n cc.xy(1, row));\n row += 2;\n builder.add(newNoticesLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(filesAvailableLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(downloadsLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(uploadsLine.getUIComponent(), cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(\n Translation.getTranslation(\"status_tab.online_storage.title\"),\n cc.xy(1, row));\n row += 2;\n builder.add(onlineStorageAccountLabel.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(onlineStorageSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(licenseInfoSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(buyNowLabel.getUIComponent(), cc.xy(1, row));\n if (PreferencesEntry.SHOW_TELL_A_FRIEND\n .getValueBoolean(getController()))\n {\n row += 2;\n builder.add(tellFriendLabel.getUIComponent(), cc.xy(1, row));\n }\n\n return builder.getPanel();\n }",
"private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}",
"private JPanel getJPanel() {\n\tif (certInfoPane == null) {\n\t certInfoPane = new TemplateButtonPanel();\n\t certInfoPane.setPreferredSize(new Dimension(500, 300));\n\t certInfoPane.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\n\t \n\t // use SwingUtilities.invokeLater() to update the gui because\n\t // these may be originating from a different worker thread\n\t selection.addListSelectionListener(new ListSelectionListener() {\n\t\t public void valueChanged(ListSelectionEvent ev) {\n\t\t\tif (ev.getValueIsAdjusting()) return;\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t public void run() {\n\t\t\t\tupdateSelection();\n\t\t\t }\n\t\t\t});\t\t\t\n\t\t }\n\t });\n\t store.addListDataListener(new ListDataListener() {\n\t\tpublic void intervalAdded(ListDataEvent e) { }\n\t\tpublic void intervalRemoved(ListDataEvent e) { }\n\t\tpublic void contentsChanged(ListDataEvent e) {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t updateSelection(); // for buttons\n\t\t\t certInfoPane.refresh();\n\t\t\t}\n\t\t });\t\t\t\n\t\t}\n\t });\n\t}\n\treturn certInfoPane;\n }",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}",
"public MenuInfo() {\n initComponents();\n setSize(1024,768);\n }",
"public Container getInfoPanel() {\n\t\treturn null;\n\t}",
"private void buildMainPanel() {\n\t\t\n\t\tif(theMode == MODE_FPC) {\n\t\t\ttheFields = new PropertyComponent[9];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"\", 1, false, false);\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", FPC_GRP_SORT, 0, true, false);\t\t\t\n\t\t\t//theFields[5] = new PropertyComponent(\"grp_order\", \"\", 1, true, false);\t\t\t\n\t\t\ttheFields[4] = new PropertyComponent(\"cbsize\", \"1200\", 1, false, false);\t\t\t\n\t\t\ttheFields[5] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[6] = new PropertyComponent(\"fpc_file\", \"\", true, true, true);\n\t\t\ttheFields[7] = new PropertyComponent(\"bes_files\", \"\", true, true, false);\n\t\t\ttheFields[8] = new PropertyComponent(\"marker_files\", \"\", true, true, false);\n\t\t} else { //MODE_PSEUDO\n\t\t\ttheFields = new PropertyComponent[13];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"Chr\", 1, false, false);\t\t\t\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", PSEUDO_GRP_SORT, 0, true, false);\n\t\t\ttheFields[4] = new PropertyComponent(\"order_against\", getProjectSelections(), 0, false, true);\n\t\t\ttheFields[5] = new PropertyComponent(\"mask_all_but_genes\", PSEUDO_MASK_GENES, 1, false, true);\n\t\t\ttheFields[6] = new PropertyComponent(\"min_size\", \"100000\", 1, true, false);\t\t\t\n\t\t\ttheFields[7] = new PropertyComponent(\"min_display_size_bp\", \"0\", 1, false, false);\t\t\t\n\t\t\ttheFields[8] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[9] = new PropertyComponent(\"annot_keywords\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[10] = new PropertyComponent(\"annot_kw_mincount\", \"50\", 2, false, false);\t\n\t\t\ttheFields[11] = new PropertyComponent(\"anno_files\", \"\", true, true, false);\n\t\t\ttheFields[12] = new PropertyComponent(\"sequence_files\", \"\", true, true, false);\n\t\t}\n\t\t\t\n\t\tJPanel tempPanel = new JPanel();\n\t\ttempPanel.setLayout(new BoxLayout(tempPanel, BoxLayout.PAGE_AXIS));\n\t\ttempPanel.setBackground(Color.WHITE);\n\t\t\n\t\tfor(int x=0; x<theFields.length; x++) {\n\t\t\ttempPanel.add(Box.createVerticalStrut(5));\n\t\t\ttheFields[x].setTextListener(theListener);\n\t\t\ttempPanel.add(theFields[x]);\n\t\t}\n\t\ttempPanel.add(Box.createVerticalStrut(20));\n\t\ttempPanel.add(createButtonPanel());\n\t\ttempPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\t\ttempPanel.setMaximumSize(tempPanel.getPreferredSize());\n\t\ttempPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\n\t\tgetContentPane().add(tempPanel);\n\t}",
"void infoSetUp() {\r\n\t\tJPanel imageInfo = new JPanel();\r\n\t\timageInfo.setLayout(new GridLayout(2, 0));\r\n\t\tJPanel mButtons = new JPanel();\r\n\r\n\t\tJButton save = new JButton(\"save\");\r\n\t\tJButton upload = new JButton(\"upload\");\r\n\t\tJButton delete = new JButton(\"delete\");\r\n\t\tJButton view = new JButton(\"open\");\r\n\r\n\t\tupload.setActionCommand(\"upload\");\r\n\t\tview.setActionCommand(\"view\");\r\n\t\tActionListener upList = new UpList();\r\n\t\tupload.addActionListener(upList);\r\n\t\tview.addActionListener(upList);\r\n\t\tmButtons.add(save);\r\n\t\tmButtons.add(upload);\r\n\t\tmButtons.add(delete);\r\n\t\tmButtons.add(view);\r\n\r\n\t\tJTextArea info = new JTextArea(\"Path: \");\r\n\t\tinfo.setEditable(false);\r\n\t\timageInfo.add(info);\r\n\t\timageInfo.add(mButtons);\r\n\t\tmainFrame.add(imageInfo);\r\n\t\tinfoText = info;\r\n\t}",
"public StatsPanel() {\n\t\t\n\t\t//initialize and format components\n\t\tmainPanel.setLayout(null);\n\t\ttopTenTitle = new JLabel(\"Top Ten Records\");\n\t\ttopTenTitle.setForeground(Color.WHITE);\n\t\ttopTenTitle.setBackground(Color.DARK_GRAY);\n\t\tversusTitle = new JLabel(\"Versus Records\");\n\t\tversusTitle.setForeground(Color.WHITE);\n\t\tversusTitle.setBackground(Color.DARK_GRAY);\n\t\tback = new JButton(\"Return to Main Menu\");\n\t\tback.setForeground(Color.WHITE);\n\t\tback.setBackground(Color.DARK_GRAY);\n\t\tback.setOpaque(true);\n\t\tback.setBorderPainted(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//add components to panel\n\t\tmainPanel.add(title);\n\t\tmainPanel.add(topTenTitle);\n\t\tmainPanel.add(versusTitle);\n\t\tmainPanel.add(back);\n\t mainPanel.setOpaque(true);\n\t mainPanel.setBackground(Color.BLACK);\n\t\t\n\t //set the location in layout for all components\n\t\tDimension size = new Dimension(100,25);\n\t\ttopTenTitle.setBounds(150, 140, 200,25);\n\t\tversusTitle.setBounds(600, 140, 200, 25);\n\t\tback.setBounds(350, 450, 200, size.height);\n\t\ttitle.setBounds(385, 25, 200, 100);\n\t}",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"public InformationResultPanel() {\n initComponents();\n }",
"public Panneaux(){\n this.infoPane = new InfoPane();\n this.leftPanel = new LeftPanel();\n this.catalogue = leftPanel.getCatatalogue();\n this.panier = leftPanel.getPanier();\n }",
"private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }",
"private void setContentPanelComponents(){\n\t\tcontentPanel = new JPanel();\n\t\tcontentPanel.setLayout(new BorderLayout());\n\t\tcontentPanel.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tgetContentPane().add(contentPanel, BorderLayout.NORTH);\n\t\t\n\t\t//--------------------------\n\t\tJPanel payrollDatePanel= new JPanel();\n\t\tpayrollDatePanel.setLayout(new GridLayout(0,2,5,5));\n\t\tpayrollDatePanel.setPreferredSize(new Dimension(0,20));\n\t\tpayrollDatePanel.setOpaque(false);\n\t\t\n\t\tlblPayrollDate = new JLabel(\"Payroll Date: \");\n\t\tlblPayrollDate.setForeground(Color.WHITE);\n\t\tlblPayrollDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpayrollDatePanel.add(lblPayrollDate);\n\t\t\n\t\t\n\t\tpayrollDateComboBox = new JComboBox<String>();\n\t\tpayrollDatePanel.add(payrollDateComboBox);\n\t\n\t\t\n\t\tcontentPanel.add(payrollDatePanel,BorderLayout.NORTH);\n\t\t//--------------------------\n\t\t\n\t\n\t\tJPanel textAreaPanel= new JPanel();\n\t\ttextAreaPanel.setPreferredSize(new Dimension(0, 95));\n\t\ttextAreaPanel.setLayout(null);\n\t\ttextAreaPanel.setOpaque(false);\n\t\t\n\t\t\n\t\tcontentPanel.add(textAreaPanel,BorderLayout.CENTER);\n\t\t\n\t\tJLabel lblComments = new JLabel(\"Comments:\");\n\t\tlblComments.setForeground(Color.WHITE);\n\t\tlblComments.setBounds(10, 11, 75, 14);\n\t\ttextAreaPanel.add(lblComments);\n\t\t\n\t\tcommentTextArea = new JTextArea();\n\t\tcommentTextArea.setBounds(87, 14, 100, 75);\n\t\ttextAreaPanel.add(commentTextArea);\n\t}",
"private void setPanelOverview() {\n\t\tfinal String methodName = \"setPanelOverview\";\n\t\tdetailedDescription.setEditable(false);\n\t\tdetailedDescription.setLineWrap(true);\n\t\t// set layout for contentPanel\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\n\t\tcontentPanel.setLayout(layout);\n\n\t\t//Add sessionTitle\n\t\tLoggerFactory.logp(Level.CONFIG, className, methodName, \"Add component sessionTitle to contentPanel.\");\n\t\tgbc.weightx = 0;\n\t\tgbc.weighty = 0;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.gridheight = 1;\n\t\tgbc.anchor = GridBagConstraints.CENTER;\n\t\tcontentPanel.add(sessionTitle, gbc);\n\n\t\t//Add detailedDescription\n\t\tLoggerFactory.logp(Level.CONFIG, className, methodName, \"Add component detailedDescription to contentPanel.\");\n\t\tgbc.weightx = 1;\n\t\tgbc.weighty = 1;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 1;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.gridheight = 5;\n\t\tgbc.anchor = GridBagConstraints.CENTER;\n\t\tgbc.fill = GridBagConstraints.BOTH;\n\t\tcontentPanel.add(detailedDescription, gbc);\n\n\t\t//Add exitButton\n\t\tLoggerFactory.logp(Level.CONFIG, className, methodName, \"Add component detailedDescription to contentPanel.\");\n\t\tgbc.weightx = 0;\n\t\tgbc.weighty = 0;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 6;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.gridheight = 1;\n\t\tgbc.anchor = GridBagConstraints.CENTER;\n\t\tgbc.fill = GridBagConstraints.NONE;\n\t\tcontentPanel.add(exitButton, gbc);\n\t}",
"public SetInfoWindow() {\n super(BasicWindow.curWindow,\"Stage Info\", true);\n //setTitle(\"Inventory Manager\");\n proj_class=(project)project.oClass;\n \n addComponents();\n populateComponents();\n setBounds(10,50, iScreenHeight,iScreenWidth);\n //setSize(500,500);\n setResizable(true);\n setVisible(true);\n }",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"public void fillInnerParts() {\n if (this.staff.getCurrentView().isPresent()) {\n Staff currentStaff = this.staff.getCurrentView().get();\n Index index = this.staff.getIndex();\n staffBasicInfoDisplay = new StaffBasicInfoDisplay(currentStaff, index);\n basicInfoPlaceholder.getChildren().add(staffBasicInfoDisplay.getRoot());\n\n commentListPanel = new CommentListPanel(staff.getCommentList());\n commentListPanelPlaceholder.getChildren().add(commentListPanel.getRoot());\n\n leaveInfoDisplay = new LeaveInfoDisplay(staff.getLeaveList(), currentStaff.getLeaveTaken());\n leaveInfoPlaceholder.getChildren().add(leaveInfoDisplay.getRoot());\n }\n }",
"private JPanel getCenterInfoPanel() {\r\n if (this.centerInfoPanel == null) {\r\n GridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n gridBagConstraints11.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints11.gridy = 1;\r\n gridBagConstraints11.weightx = 1.0;\r\n gridBagConstraints11.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints11.gridx = 1;\r\n GridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n gridBagConstraints12.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints12.gridy = 1;\r\n gridBagConstraints12.weightx = 0.0;\r\n gridBagConstraints12.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints12.gridx = 2;\r\n GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n gridBagConstraints2.gridx = 0;\r\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints2.gridy = 1;\r\n this.centerShortNameLabel = new JLabel();\r\n this.centerShortNameLabel.setText(\"Short Name\");\r\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints1.gridx = 1;\r\n gridBagConstraints1.gridy = 0;\r\n gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints1.weightx = 1.0;\r\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n gridBagConstraints.gridy = 0;\r\n gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints.gridx = 0;\r\n this.centerDisplayNameLabel = new JLabel();\r\n this.centerDisplayNameLabel.setText(\"Display Name\");\r\n this.centerInfoPanel = new JPanel();\r\n this.centerInfoPanel.setLayout(new GridBagLayout());\r\n this.centerInfoPanel.add(this.centerDisplayNameLabel, gridBagConstraints);\r\n this.centerInfoPanel.add(getCenterDisplayNameTextField(), gridBagConstraints1);\r\n this.centerInfoPanel.add(this.centerShortNameLabel, gridBagConstraints2);\r\n this.centerInfoPanel.add(getCenterShortNameTextField(), gridBagConstraints11);\r\n }\r\n return this.centerInfoPanel;\r\n }",
"public void init() {\r\n\t\t/*\r\n\t\t * Initialize panel for base\r\n\t\t */\r\n\t\tbaseList = GameMap.getBaseList();\r\n\t\tthis.add(new BaseInfoPanel(baseList.getFirst(), controlPanel));\r\n\t}",
"@Override\n\tpublic void buildInfoPanel(Widget sourceWidget){\n\t\t\n\t\tPopupPanel panel = new PopupPanel();\n\t\tpanel.setAutoHideEnabled(true);\n\t\tpanel.setPopupPosition(sourceWidget.getAbsoluteLeft()+40, sourceWidget.getAbsoluteTop()+20);\n\t\tVerticalPanel dialogContents = new VerticalPanel();\n\t\tdialogContents.getElement().setId(\"dialogContents_VerticalPanel\");\n\t\tpanel.setWidget(dialogContents);\n\t\t\n\t\tHTML html1 = new HTML(\"CTRL-Alt-t : Timings\");\n\t\tHTML html2 = new HTML(\"Ctrl-Alt-f : Functions\");\n\t\tHTML html3 = new HTML(\"Ctrl-Alt-d : Definitions\");\n\t\tHTML html4 = new HTML(\"Ctrl-Alt-p : Parameters\");\n\t\tHTML html5 = new HTML(\"Ctrl-Alt-a : Attributes\");\n\t\tHTML html6 = new HTML(\"Ctrl-Space : All\");\n\t\tdialogContents.add(html1);\n\t\tdialogContents.add(html2);\n\t\tdialogContents.add(html3);\n\t\tdialogContents.add(html4);\n\t\tdialogContents.add(html5);\n\t\tdialogContents.add(html6);\n\t\t\n\t\tpanel.show();\n\t}",
"public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }",
"public JPanel getInfo() {\n return info;\n }",
"private void buildComponents() {\r\n buildJMenuBar();\r\n setJMenuBar( gameBar );\r\n\r\n buildScorePanel();\r\n buildInfoPanel();\r\n\r\n getContentPane().add( scorePanel, \"North\" );\r\n getContentPane().add( infoPanel, \"South\" );\r\n }",
"private JPanel getMainPanel() {\n if (mainPanel == null) {\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.gridx = 0;\n gridBagConstraints1.insets = new Insets(2, 2, 2, 2);\n gridBagConstraints1.anchor = GridBagConstraints.EAST;\n gridBagConstraints1.gridy = 1;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.BOTH;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0D;\n gridBagConstraints.insets = new Insets(2, 2, 2, 2);\n gridBagConstraints.gridx = 0;\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridBagLayout());\n mainPanel.add(getConfigurationScrollPane(), gridBagConstraints);\n mainPanel.add(getButtonPanel(), gridBagConstraints1);\n }\n return mainPanel;\n }",
"protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }",
"private SizedJPanel getMainPanel() {\n if (mainPanel == null) {\n mainPanel = new GuiMainPanel(this, config.paths.getValue(),\n config.outFile.getValue(), config.isOboToOwl.getValue());\n }\n return mainPanel;\n }",
"private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }",
"private void createPanelContent() {\n FragmentActivity activity = getActivity();\n if (this.mLayoutView == null) {\n activity.finish();\n }\n ViewGroup.LayoutParams layoutParams = this.mLayoutView.getLayoutParams();\n layoutParams.height = -2;\n this.mLayoutView.setLayoutParams(layoutParams);\n this.mPanelSlices = (RecyclerView) this.mLayoutView.findViewById(C0010R$id.panel_parent_layout);\n this.mSeeMoreButton = (TextView) this.mLayoutView.findViewById(C0010R$id.see_more);\n this.mDoneButton = (TextView) this.mLayoutView.findViewById(C0010R$id.done);\n this.mTitleView = (TextView) this.mLayoutView.findViewById(C0010R$id.panel_title);\n this.mPanelHeader = (LinearLayout) this.mLayoutView.findViewById(C0010R$id.panel_header);\n this.mTitleIcon = (ImageView) this.mLayoutView.findViewById(C0010R$id.title_icon);\n this.mHeaderTitle = (TextView) this.mLayoutView.findViewById(C0010R$id.header_title);\n this.mHeaderSubtitle = (TextView) this.mLayoutView.findViewById(C0010R$id.header_subtitle);\n this.mFooterDivider = this.mLayoutView.findViewById(C0010R$id.footer_divider);\n this.mPanelSlices.setVisibility(8);\n Bundle arguments = getArguments();\n String string = arguments.getString(\"PANEL_CALLING_PACKAGE_NAME\");\n PanelContent panel = FeatureFactory.getFactory(activity).getPanelFeatureProvider().getPanel(activity, arguments);\n this.mPanel = panel;\n if (panel == null) {\n activity.finish();\n }\n this.mPanel.registerCallback(new LocalPanelCallback());\n if (this.mPanel instanceof LifecycleObserver) {\n getLifecycle().addObserver((LifecycleObserver) this.mPanel);\n }\n this.mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();\n this.mPanelSlices.setLayoutManager(new LinearLayoutManager(activity));\n this.mLayoutView.getViewTreeObserver().addOnPreDrawListener(this.mOnPreDrawListener);\n loadAllSlices();\n IconCompat icon = this.mPanel.getIcon();\n CharSequence title = this.mPanel.getTitle();\n if (icon == null) {\n this.mTitleView.setVisibility(0);\n this.mPanelHeader.setVisibility(8);\n this.mTitleView.setText(title);\n } else {\n this.mTitleView.setVisibility(8);\n this.mPanelHeader.setVisibility(0);\n this.mPanelHeader.setAccessibilityPaneTitle(title);\n this.mTitleIcon.setImageIcon(icon.toIcon(getContext()));\n this.mHeaderTitle.setText(title);\n this.mHeaderSubtitle.setText(this.mPanel.getSubTitle());\n if (this.mPanel.getHeaderIconIntent() != null) {\n this.mTitleIcon.setOnClickListener(getHeaderIconListener());\n this.mTitleIcon.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));\n } else {\n int dimensionPixelSize = getResources().getDimensionPixelSize(C0007R$dimen.output_switcher_panel_icon_size);\n this.mTitleIcon.setLayoutParams(new LinearLayout.LayoutParams(dimensionPixelSize, dimensionPixelSize));\n }\n }\n if (this.mPanel.getViewType() == 2) {\n this.mFooterDivider.setVisibility(0);\n } else {\n this.mFooterDivider.setVisibility(8);\n }\n this.mSeeMoreButton.setOnClickListener(getSeeMoreListener());\n this.mDoneButton.setOnClickListener(getCloseListener());\n if (this.mPanel.isCustomizedButtonUsed()) {\n CharSequence customizedButtonTitle = this.mPanel.getCustomizedButtonTitle();\n if (TextUtils.isEmpty(customizedButtonTitle)) {\n this.mSeeMoreButton.setVisibility(8);\n } else {\n this.mSeeMoreButton.setVisibility(0);\n this.mSeeMoreButton.setText(customizedButtonTitle);\n }\n } else if (this.mPanel.getSeeMoreIntent() == null) {\n this.mSeeMoreButton.setVisibility(8);\n }\n this.mMetricsProvider.action(0, 1, this.mPanel.getMetricsCategory(), string, 0);\n }",
"public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}",
"@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n DomainDetailsPanel() {\n initComponents();\n MiniTimelinePanel timelinePanel = new MiniTimelinePanel();\n DiscoveryEventUtils.getDiscoveryEventBus().register(timelinePanel);\n jTabbedPane1.add(Bundle.DomainDetailsPanel_miniTimelineTitle_text(), timelinePanel);\n for (BlackboardArtifact.ARTIFACT_TYPE type : SearchData.Type.DOMAIN.getArtifactTypes()) {\n jTabbedPane1.add(type.getDisplayName(), new DomainArtifactsTabPanel(type));\n }\n }",
"public MetadataPanel()\n {\n fieldMap = new HashMap<String, Component>();\n initialiseUI();\n }",
"public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}",
"private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }",
"private JPanel getBasicInfo() {\r\n\t\tif (basicInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints31.gridwidth = 4;\r\n\t\t\tgridBagConstraints31.gridx = 0;\r\n\t\t\tgridBagConstraints31.gridy = 7;\r\n\t\t\tgridBagConstraints31.weightx = 1.0;\r\n\t\t\tgridBagConstraints31.weighty = 1.0;\r\n\t\t\tgridBagConstraints31.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints21.gridwidth = 4;\r\n\t\t\tgridBagConstraints21.gridx = 0;\r\n\t\t\tgridBagConstraints21.gridy = 5;\r\n\t\t\tgridBagConstraints21.weightx = 1.0;\r\n\t\t\tgridBagConstraints21.weighty = 1.0;\r\n\t\t\tgridBagConstraints21.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints13.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints13.gridx = 1;\r\n\t\t\tgridBagConstraints13.gridy = 3;\r\n\t\t\tgridBagConstraints13.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tatcCall = new JLabel();\r\n\t\t\tatcCall.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints12.gridx = 1;\r\n\t\t\tgridBagConstraints12.gridy = 2;\r\n\t\t\tgridBagConstraints12.insets = new Insets(0, 3, 1, 0);\r\n\t\t\ttailNumber = new JLabel();\r\n\t\t\ttailNumber.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints11.gridx = 3;\r\n\t\t\tgridBagConstraints11.gridy = 1;\r\n\t\t\tgridBagConstraints11.insets = new Insets(0, 3, 1, 10);\r\n\t\t\tvehicleSubtype = new JLabel();\r\n\t\t\tvehicleSubtype.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints10.gridx = 1;\r\n\t\t\tgridBagConstraints10.gridy = 1;\r\n\t\t\tgridBagConstraints10.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tvehicleType = new JLabel();\r\n\t\t\tvehicleType.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints9.gridx = 3;\r\n\t\t\tgridBagConstraints9.gridy = 0;\r\n\t\t\tgridBagConstraints9.insets = new Insets(10, 3, 1, 10);\r\n\t\t\tvsmId = new JLabel();\r\n\t\t\tvsmId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints8.gridx = 1;\r\n\t\t\tgridBagConstraints8.gridy = 0;\r\n\t\t\tgridBagConstraints8.weightx = 1.0;\r\n\t\t\tgridBagConstraints8.insets = new Insets(10, 3, 1, 0);\r\n\t\t\tvehicleId = new JLabel();\r\n\t\t\tvehicleId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tgridBagConstraints7.gridy = 4;\r\n\t\t\tgridBagConstraints7.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setText(\"Payloads:\");\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tgridBagConstraints6.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel6 = new JLabel();\r\n\t\t\tjLabel6.setText(\"Controlled by:\");\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tgridBagConstraints5.gridy = 3;\r\n\t\t\tgridBagConstraints5.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel5 = new JLabel();\r\n\t\t\tjLabel5.setText(\"ATC call sign:\");\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridy = 2;\r\n\t\t\tgridBagConstraints4.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel4 = new JLabel();\r\n\t\t\tjLabel4.setText(\"Tail number:\");\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints3.gridx = 2;\r\n\t\t\tgridBagConstraints3.gridy = 1;\r\n\t\t\tgridBagConstraints3.insets = new Insets(0, 5, 4, 0);\r\n\t\t\tjLabel3 = new JLabel();\r\n\t\t\tjLabel3.setText(\"Subtype:\");\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridy = 1;\r\n\t\t\tgridBagConstraints2.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setText(\"Vehicle type:\");\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints1.gridx = 2;\r\n\t\t\tgridBagConstraints1.gridy = 0;\r\n\t\t\tgridBagConstraints1.insets = new Insets(10, 5, 4, 0);\r\n\t\t\tjLabel1 = new JLabel();\r\n\t\t\tjLabel1.setText(\"VSM ID:\");\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tgridBagConstraints.insets = new Insets(10, 10, 4, 0);\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setText(\"Vehicle ID:\");\r\n\t\t\tbasicInfo = new JPanel();\r\n\t\t\tbasicInfo.setLayout(new GridBagLayout());\r\n\t\t\tbasicInfo.add(jLabel, gridBagConstraints);\r\n\t\t\tbasicInfo.add(jLabel1, gridBagConstraints1);\r\n\t\t\tbasicInfo.add(jLabel2, gridBagConstraints2);\r\n\t\t\tbasicInfo.add(jLabel3, gridBagConstraints3);\r\n\t\t\tbasicInfo.add(jLabel4, gridBagConstraints4);\r\n\t\t\tbasicInfo.add(jLabel5, gridBagConstraints5);\r\n\t\t\tbasicInfo.add(jLabel6, gridBagConstraints6);\r\n\t\t\tbasicInfo.add(jLabel7, gridBagConstraints7);\r\n\t\t\tbasicInfo.add(vehicleId, gridBagConstraints8);\r\n\t\t\tbasicInfo.add(vsmId, gridBagConstraints9);\r\n\t\t\tbasicInfo.add(vehicleType, gridBagConstraints10);\r\n\t\t\tbasicInfo.add(vehicleSubtype, gridBagConstraints11);\r\n\t\t\tbasicInfo.add(tailNumber, gridBagConstraints12);\r\n\t\t\tbasicInfo.add(atcCall, gridBagConstraints13);\r\n\t\t\tbasicInfo.add(getJScrollPane(), gridBagConstraints21);\r\n\t\t\tbasicInfo.add(getJScrollPane1(), gridBagConstraints31);\r\n\t\t}\r\n\t\treturn basicInfo;\r\n\t}",
"private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}",
"@Override\n\tpublic void constructContent() {\n\t\t((JPanel)withdrawFrame.getContentPane()).setBorder(BorderFactory.createEmptyBorder(50,50,50,50));\n\t\tContainer defaultPanel = withdrawFrame.getContentPane();\n\t\tdefaultPanel.setLayout(new BorderLayout());\n\t\tJPanel subPanel1 = new JPanel();\n\t\tJLabel money = new JLabel(\"Number:\");\n\t\tsubPanel1.add(money);\n\t\tdefaultPanel.add(subPanel1, BorderLayout.NORTH);\n\t\tJPanel subPanel2 = new JPanel();\n\t\tsubPanel2.setBorder(BorderFactory.createEmptyBorder(80,50,50,50));\n\t\twithdrawMoney = new JTextField();\n\t\twithdrawMoney.setPreferredSize(new Dimension(350, 50));\n\t\tsubPanel2.add(withdrawMoney);\n\t\tdefaultPanel.add(subPanel2, BorderLayout.CENTER);\n\t\tJPanel subPanel3 = new JPanel();\n\t\tconfirmButton = new JButton(\"Confirm\");\n\t\tbackButton = new JButton(\"Back\");\n\t\tconfirmButton.setPreferredSize(new Dimension(200, 50));\n\t\tbackButton.setPreferredSize(new Dimension(200,50));\n\t\tconfirmButton.addActionListener(this);\n\t\tbackButton.addActionListener(this);\n\t\tsubPanel3.add(confirmButton);\n\t\tsubPanel3.add(backButton);\n\t\tdefaultPanel.add(subPanel3, BorderLayout.SOUTH);\n\t\t//moneyNum.\n\t}",
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}",
"public SavingsInfoPage() {\n setLocationRelativeTo(null);\n setResizable(false); \n initComponents();\n onRun();\n }",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}",
"public MainMenuPanel() {\n\t\tinitComponents();\n\t}",
"private JPanel getServiceInfoPanel() {\r\n if (this.serviceInfoPanel == null) {\r\n GridBagConstraints gridBagConstraints19 = new GridBagConstraints();\r\n gridBagConstraints19.fill = GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints19.gridx = 1;\r\n gridBagConstraints19.gridy = 1;\r\n gridBagConstraints19.weightx = 1;\r\n gridBagConstraints19.weighty = 1;\r\n gridBagConstraints19.insets = new Insets(2, 2, 2, 2);\r\n GridBagConstraints gridBagConstraints18 = new GridBagConstraints();\r\n gridBagConstraints18.insets = new Insets(2, 2, 2, 2);\r\n gridBagConstraints18.gridy = 1;\r\n gridBagConstraints18.anchor = GridBagConstraints.EAST;\r\n gridBagConstraints18.gridx = 0;\r\n gridBagConstraints18.weightx = 1;\r\n gridBagConstraints18.weighty = 1;\r\n GridBagConstraints gridBagConstraints17 = new GridBagConstraints();\r\n gridBagConstraints17.fill = GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints17.gridx = 1;\r\n gridBagConstraints17.gridy = 0;\r\n gridBagConstraints17.weightx = 1;\r\n gridBagConstraints17.weighty = 1;\r\n gridBagConstraints17.insets = new Insets(2, 2, 2, 2);\r\n GridBagConstraints gridBagConstraints16 = new GridBagConstraints();\r\n gridBagConstraints16.insets = new Insets(2, 2, 2, 2);\r\n gridBagConstraints16.gridy = 0;\r\n gridBagConstraints16.anchor = GridBagConstraints.EAST;\r\n gridBagConstraints16.gridx = 0;\r\n gridBagConstraints16.weightx = 1;\r\n gridBagConstraints16.weighty = 1;\r\n serviceVersionLabel = new JLabel();\r\n serviceVersionLabel.setText(\"Version\");\r\n serviceDescriptionLabel = new JLabel();\r\n serviceDescriptionLabel.setText(\"Description\");\r\n this.serviceInfoPanel = new JPanel();\r\n serviceInfoPanel.setLayout(new GridBagLayout());\r\n serviceInfoPanel.add(serviceDescriptionLabel, gridBagConstraints16);\r\n serviceInfoPanel.add(getServiceDescriptionTextField(), gridBagConstraints17);\r\n serviceInfoPanel.add(serviceVersionLabel, gridBagConstraints18);\r\n serviceInfoPanel.add(getServiceVersionTextField(), gridBagConstraints19);\r\n }\r\n return this.serviceInfoPanel;\r\n }",
"private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tl2 = new JLabel();\n\t\t\tl2.setBounds(new Rectangle(10, 50, 125, 16));\n\t\t\tl2.setText(\"Identifiant étudiant:\");\n\t\t\tl1 = new JLabel();\n\t\t\tl1.setBounds(new Rectangle(10, 10, 125, 16));\n\t\t\tl1.setText(\"Code Cours\");\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(l1, null);\n\t\t\tjContentPane.add(l2, null);\n\t\t\tjContentPane.add(getJButton(), null);\n\t\t\tjContentPane.add(getTxtIdC(), null);\n\t\t\tjContentPane.add(getTxtIdE(), null);\n\t\t}\n\t\treturn jContentPane;\n\t}"
] |
[
"0.7567519",
"0.71645737",
"0.71619856",
"0.7131892",
"0.706137",
"0.7010541",
"0.70091796",
"0.69969386",
"0.6806491",
"0.67917085",
"0.6783632",
"0.6718359",
"0.6691642",
"0.6660998",
"0.6654927",
"0.66363007",
"0.6608899",
"0.6583901",
"0.65749156",
"0.65429825",
"0.6542543",
"0.65408206",
"0.6523413",
"0.65094423",
"0.64968055",
"0.648532",
"0.6485166",
"0.64692956",
"0.64630127",
"0.6460156",
"0.64585435",
"0.64455086",
"0.6441146",
"0.64304984",
"0.6415384",
"0.64090776",
"0.6405903",
"0.63890225",
"0.63853097",
"0.63791287",
"0.636623",
"0.6365692",
"0.63548493",
"0.63473666",
"0.6335229",
"0.631715",
"0.63122904",
"0.6308026",
"0.6300597",
"0.6287606",
"0.62630105",
"0.62577075",
"0.6254622",
"0.6253453",
"0.62396276",
"0.6239218",
"0.62287205",
"0.6228564",
"0.62250227",
"0.62111735",
"0.62109256",
"0.6208739",
"0.61978024",
"0.61768967",
"0.61768055",
"0.6150163",
"0.6146675",
"0.614252",
"0.6141054",
"0.61314994",
"0.6126942",
"0.61227125",
"0.61174905",
"0.61169595",
"0.6093072",
"0.6075311",
"0.6071006",
"0.60651153",
"0.6064199",
"0.6061199",
"0.60575175",
"0.60546935",
"0.60477555",
"0.60466355",
"0.6038883",
"0.6036393",
"0.6033967",
"0.6026298",
"0.60250473",
"0.60199594",
"0.60198843",
"0.60187846",
"0.60170054",
"0.6016328",
"0.6012582",
"0.60102665",
"0.6009302",
"0.6008187",
"0.600176",
"0.5998392"
] |
0.7015279
|
5
|
Creates the ExitPanel. It displays whatever Exits are in the Room currently loaded in the InfoPanel.
|
private JPanel createExitPanel() {
JPanel panel = new JPanel();
panel.setLayout(new MigLayout());
panel.setPreferredSize(new Dimension(400, 50));
panel.setOpaque(true);
panel.setBorder(BorderFactory.createTitledBorder(
localization.get("ExitsTitle")));
return panel;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void initExitView() {\n exit = new Label(\"Exit Game\");\n exit.setPrefSize(200, 100);\n exit.setFont(Font.font(null, FontWeight.BOLD, 30));\n exit.setTextFill(Color.RED);\n exit.setEffect(getDropShadow());\n }",
"public void updateExitPanel(Room room) {\n exitPanel.removeAll();\n List<Exit> exits = room.getExits();\n for (Exit exit : exits) {\n JLabel exitLabel = new JLabel(exit.getDirection().toString()\n +\", \", JLabel.RIGHT);\n exitPanel.add(exitLabel, \"wrap\");\n }\n exitPanel.validate();\n exitPanel.repaint();\n }",
"public void exitWindow()\n {\n //hide all windows except intro screen\n introScreen.setVisible(true);\n optionsScreen.setVisible(false);\n instructionScreen.setVisible(false);\n gameSelectScreen.setVisible(false);\n lobbyScreen.setVisible(false);\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n mainGameScreen.setVisible(false);\n\n clientController.leaveLobby();\n\n //set state to INTRO\n state = CurrentWindow.INTRO;\n }",
"public void showExit();",
"@FXML\n void exitAddWindow() {\n drawMenuElements(false);\n window.setTitle(\"Timelines: Menu\");\n\n toggleMenuButtonVisibility(true);\n cancelTimelineButton.setVisible(false);\n cancelEventButton.setVisible(false);\n\n resetAddWindowFields();\n }",
"private void initExit() {\n initExitView();\n initExitController();\n }",
"public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }",
"private MenuItem getJMenuItemExit() {\r\n if (jMenuItemExit == null) {\r\n jMenuItemExit = new MenuItem();\r\n //jMenuItemExit.setIcon(IconMgr.getExit());\r\n jMenuItemExit.setLabel(\"Exit\");\r\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n public void actionPerformed(java.awt.event.ActionEvent e) {\r\n //WorkDayPlanner.getInstance().exitProgram();\r\n }\r\n });\r\n }\r\n return jMenuItemExit;\r\n }",
"private void initExitController() {\n exit.setOnMouseClicked(event -> { System.exit(1); });\n exit.setOnMouseExited(event -> { exit.setGraphic(null); });\n exit.setOnMouseEntered(event -> { exit.setGraphic(new Circle(5)); });\n }",
"public void unload() {\n this.currentRooms.clear();\n // Zero the info panel.\n this.roomNameField.setText(\"\");\n this.includeField.setText(\"\");\n this.inheritField.setText(\"\");\n this.streetNameField.setSelectedIndex(0);\n this.determinateField.setText(\"\");\n this.lightField.setText(\"\");\n this.shortDescriptionField.setText(\"\");\n this.longDescriptionField.setText(\"\");\n this.exitPanel.removeAll();\n }",
"public ExitControlView() {\n this.setSize(180,560);\n initSubviews();\n }",
"@FXML\n void exitDeleteWindow() {\n\n// lists Elements in default mode\n drawMenuElements(false);\n\n// adds all main buttons, removes confirm and cancel buttons for delete\n toggleMenuButtonVisibility(true);\n toggleDeleteButtonVisibility(false);\n\n// creates a message for the user\n setMessage(\"Exited Delete Mode without deleting elements\", false);\n window.setTitle(\"Timelines: Menu\");\n }",
"@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }",
"private void showContent(){\n\t\tLayoutManager overlay = new OverlayLayout(this);\n\t\tsetLayout(overlay);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tBorderLayout layout = new BorderLayout();\n\t\tlayout.setHgap(10);\n\t layout.setVgap(10);\n\t\tpanel.setLayout(layout); \n\t\tpanel.setBorder(new EmptyBorder(new Insets(20,50,20,50)));\n\t\tpanel.setOpaque(false);\n\t\tadd(panel);\n\t\t\n\t /*\n\t * Top Panel of the Game Screen\n\t * Buttons: back to home, suspend, quit and restart\n\t */\n\t JPanel controlPanel = new JPanel();\n\t controlPanel.setLayout(new GridLayout(1,4, 1, 1));\n\t\tcontrolPanel.setOpaque(false);\n\t\tpanel.add(controlPanel, BorderLayout.NORTH);\n\t\t\n\t\tIcon back = new ImageIcon(\"assets/back.jpg\");\n\t\tJButton btnBack = new JButton(back);\n\t\tbtnBack.setOpaque(false);\n\t\tbtnBack.setContentAreaFilled(false);\n\t\tbtnBack.setBorderPainted(false);\n\t\tbtnBack.setFocusPainted(false);\n\t\tbtnBack.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tgsPcs.firePropertyChange(\"exit\", null, null);\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnBack);\n\t\tcontrolPanel.add(new JLabel(\"\"));\n\t\t//controlPanel.add(new JLabel(\"\"));\n\t\t\n\t\tIcon restart = new ImageIcon(\"assets/restart.jpg\");\n\t\tJButton btnRestart = new JButton(restart);\n\t\tbtnRestart.setOpaque(false);\n\t\tbtnRestart.setContentAreaFilled(false);\n\t\tbtnRestart.setBorderPainted(false);\n\t\tbtnRestart.setFocusPainted(false);\n\t\tbtnRestart.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmazeSession.resetSession();\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnRestart);\n\n\t\tIcon exit = new ImageIcon(\"assets/exit.jpg\");\n\t\tJButton btnQuit = new JButton(exit);\n\t\tbtnQuit.setOpaque(false);\n\t\tbtnQuit.setContentAreaFilled(false);\n\t\tbtnQuit.setBorderPainted(false);\n\t\tbtnQuit.setFocusPainted(false);\n\t\tbtnQuit.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(showConfirmExit() == JOptionPane.OK_OPTION){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic int showConfirmExit(){\n\t\t return JOptionPane.showConfirmDialog(null,\"Are you sure?\",\"Yes\",JOptionPane.OK_CANCEL_OPTION);\n\t\t \n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnQuit);\n\t\t\n\t\tthis.mazeDrawer.setOpaque(false);\n\t\tthis.mazeDrawer.setPreferredSize(new Dimension(150, 150));\n\t\tpanel.add(this.mazeDrawer, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * Bottom Panel of the Game Screen\n\t\t * Contains music slider and game score \n\t\t */\n\t\tJPanel bottomPanel = new JPanel();\n\t\tbottomPanel.setOpaque(false);\n\t\tFlowLayout layout1 = new FlowLayout();\n\t layout1.setHgap(10); \n\t bottomPanel.setLayout(layout1);\n\t\tpanel.add(bottomPanel, BorderLayout.SOUTH);\n\t\t\n\t\tJLabel lblCourseID = new JLabel(\"Course ID: \");\n\t\tlblCourseID.setForeground(Color.WHITE);\n\t\tlblCourseID.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tbottomPanel.add(lblCourseID);\n\t\tJLabel courseID = new JLabel (mazeSession.getCourseID());\n\t\tcourseID.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tcourseID.setForeground(Color.WHITE);\n\t\tbottomPanel.add(courseID);\n\t\t\n\t\tJLabel lblScore = new JLabel(\"\\t\\t\\t\\t\\t\\t\\tScore:\");\n\t\tlblScore.setForeground(Color.WHITE);\n\t\tlblScore.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tthis.scoreLabel = new JLabel(Integer.toString(this.mazeSession.getScore()));\n\t\tscoreLabel.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tscoreLabel.setForeground(Color.WHITE);\n\t\tbottomPanel.add(lblScore);\n\t\tbottomPanel.add(this.scoreLabel);\n\t\t\n\t\t// background image\n\t\tImagePanel image = new ImagePanel(\n\t\t\tnew ImageIcon(\"assets/forest2.png\").getImage());\n\t\tadd(image);\n\t}",
"private void displayLoseScreen() {\n new EventPopupWindow(String.format(\"GAME OVER:\\nYou failed to collect all %d parts.\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n }",
"protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}",
"private void buildInfoPanel() {\r\n infoPanel = new JPanel( new GridLayout( 1, 1 ) );\r\n infoBox = Box.createHorizontalBox();\r\n\r\n // setBackground() does NOT work with a Box\r\n infoPanel.setBackground( COLOR_INFO_BKGRND );\r\n\r\n soundBtn = new JButton( Msgs.str( \"Snd.go\" ) );\r\n soundBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( soundBtn );\r\n\r\n resetBtn = new JButton( Msgs.str( \"Reset\" ) );\r\n resetBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( resetBtn );\r\n\r\n infoMesg = new JLabel( Msgs.str( \"Ready\" ), SwingConstants.CENTER );\r\n infoMesg.setFont( fontLARGE );\r\n infoMesg.setForeground( COLOR_INFO_FRGRND );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( infoMesg );\r\n infoBox.add( Box.createGlue() );\r\n\r\n infoPanel.add( infoBox );\r\n }",
"private void printExitMenu() {\n System.out.println(\"Goodbye! Thanks for using the app!\");\n }",
"private void createActionsPanel() {\n DefaultActionGroup group = new DefaultActionGroup();\n group.add(new CloseAction());\n ActionManager actionManager = ActionManager.getInstance();\n JComponent actionsToolbar = actionManager\n .createActionToolbar(ActionPlaces.CODE_INSPECTION, group, false)\n .getComponent();\n JPanel actionsPanel = new JPanel(new BorderLayout());\n actionsPanel.add(actionsToolbar, BorderLayout.WEST);\n add(actionsPanel, BorderLayout.WEST);\n }",
"@FXML\n private void handleExit() {\n GuiSettings guiSettings = new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n logic.setGuiSettings(guiSettings);\n logic.displayAllTasks();\n resultDisplay.setFeedbackToUser(\"\");\n primaryStage.hide();\n }",
"private javax.swing.JPanel getJPanelExitButtons() {\n\t\tif(jPanel == null) {\n\t\t\tjPanel = new javax.swing.JPanel();\n\t\t\tjPanel.add(getJButtonSend(), null);\n\t\t\tjPanel.add(getJButtonSave(), null);\n\t\t\tjPanel.add(getJButtonCancel(), null);\n\t\t\tjPanel.setName(\"NavPanel\");\n\t\t\tjPanel.setPreferredSize(new java.awt.Dimension(275,35));\n\t\t}\n\t\treturn jPanel;\n\t}",
"public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tplayerPanel.setLayout(new GridLayout(1,4));\n\t\tpanelMain.add(playerPanel);\n\t\tcon.add(playerPanel);\n\t\t\n\t\tenergyLabel = new JLabel(\" Energie: \");\n\t\tenergyLabel.setFont(playerInfo);\n\t\tenergyLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabel);\n\t\t\n\t\tenergyLabelNumber = new JLabel();\n\t\tenergyLabelNumber.setFont(playerInfo);\n\t\tenergyLabelNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabelNumber);\n\t\t\n\t\tdoubtLevelLabel = new JLabel(\"Misstrauen: \");\n\t\tdoubtLevelLabel.setFont(playerInfo);\n\t\tdoubtLevelLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(doubtLevelLabel);\n\t\t\n\t\tdLLNumber = new JLabel();\n\t\tdLLNumber.setFont(playerInfo);\n\t\tdLLNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(dLLNumber);\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\t\n\t\tbirdText = new JTextArea();\n\t\tbirdText.setBackground(Color.BLACK);\n\t\tbirdText.setFont(dialogueText);\n\t\tbirdText.setForeground(Color.white);\n\t\tbirdText.setLineWrap(true);\n\t\tbirdText.setWrapStyleWord(true);\n\t\tbirdText.setBounds(354, 200, 250, 150);\n\t\tbirdText.setVisible(false);\n\t\tcon.add(birdText);\n\t\t\n\t\tbirdPanel = new JPanel();\n\t\tbirdPanel.setBounds(354, 387, 60, 82);\n\t\tbirdPanel.setBackground(Color.BLACK);\n\t\tbirdPanel.addMouseListener(new birdListener());\n\t\ttry {\n\t\t\tBufferedImage birdPicture = ImageIO.read(new File(\".//res//bird_kleiner.jpg\"));\n\t\t\tJLabel birdLabel = new JLabel(new ImageIcon(birdPicture));\n\t\t\tbirdPanel.add(birdLabel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcon.add(birdPanel);\n\t\t\n\t\thereComesTheText = new JTextArea();\n\t\thereComesTheText.setBounds(55, 100, 285, 370);\n\t\thereComesTheText.setBackground(Color.BLACK);\n\t\thereComesTheText.setForeground(Color.LIGHT_GRAY);\n\t\thereComesTheText.setFont(dialogueText);\n\t\thereComesTheText.setLineWrap(true);\n\t\thereComesTheText.setWrapStyleWord(true);\n\t\tpanelMain.add(hereComesTheText);\n\t\tcon.add(hereComesTheText);\n\t\t\n\t\timagePanel.setBounds(427, 95, 546, 375);\n\t\timagePanel.setBackground(Color.black);\n\t\tpanelMain.add(imagePanel);\n\t\tcon.add(panelMain);\n\t\t\n\t\timagePanel.add(imageLabel);\n\t\t\n\t\tcon.add(imagePanel);\n\t\t\n\t\tpanelButtons = new JPanel();\n\t\tpanelButtons.setBounds(50, 510, 924, 200);\n\t\tpanelButtons.setBackground(Color.black);\n\t\tpanelButtons.setLayout(new GridLayout(2, 2));\n\t\tcon.add(panelButtons);\n\t\t\n\t\tfor(int i=1; i<5; i++) {\n\t\t\tbuttons.get(i).setBackground(Color.black);\n\t\t\tbuttons.get(i).setForeground(Color.LIGHT_GRAY);\n\t\t\tbuttons.get(i).setFont(runningText);\n\t\t\tbuttons.get(i).setFocusPainted(false);\n\t\t\tpanelButtons.add(buttons.get(i));\n\t\t}\n\t}",
"private JMenuItem getMniExit() {\r\n\t\tif (mniExit == null) {\r\n\t\t\tmniExit = new JMenuItem();\r\n\t\t\tmniExit.setText(\"Exit\");\r\n\t\t\tmniExit.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn mniExit;\r\n\t}",
"@Override\n public void update(Room currentRoom) {\n exitsTextArea.setText(\"\");\n for (Room exit : currentRoom.getExits()) {\n exitsTextArea.append(exit.getName() + \"\\n\");\n }\n }",
"public void factoryMainScreen()\n\t{\n\t\t\n\t}",
"private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}",
"protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"private JMenuItem getExitMenuItem() {\n if (exitMenuItem == null) {\n exitMenuItem = new JMenuItem();\n exitMenuItem.setText(\"Exit\");\n exitMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n }\n return exitMenuItem;\n }",
"public void createPaneClose(ActionEvent actionEvent) {\n createTeamPane.setDisable(true);\n createTeamPane.setVisible(false);\n darkPane.setDisable(true);\n darkPane.setVisible(false);\n logoChangeImageCreate.setImage(new Image(\"/Resources/Images/emptyTeamLogo.png\"));\n createTeamLogoFile = null;\n }",
"private void btn_ExitMouseClicked(java.awt.event.MouseEvent evt)//GEN-FIRST:event_btn_ExitMouseClicked\n {//GEN-HEADEREND:event_btn_ExitMouseClicked\n this.dispose();\n obj_frm_Welcome = new frm_Welcome();\n obj_frm_Welcome.setVisible(true);\n }",
"public void exit() {\r\n\t\tdispose();\r\n\t}",
"public Component exitButton() {\n exitButton = new JButton(\"Exit\");\n setFocusable(false);\n return exitButton;\n }",
"private JMenuItem getMiExit() {\n\t\tif (miExit == null) {\n\t\t\tmiExit = new JMenuItem();\n\t\t\tmiExit.setText(\"��k��\");\n\t\t\tmiExit.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tclose(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn miExit;\n\t}",
"private void setInfoPanel()\r\n {\r\n //set up info panel\r\n unitPanel.setPlayer(worldPanel.getCurrentPlayer());\r\n\t\t\t\tunitPanel.setYear(year);\r\n int tempUnit = worldPanel.getCurrentUnit();\r\n\r\n if(worldPanel.getCurrentPlayer() == 1)\r\n {\r\n unitPanel.setImageIcon(worldPanel.player1.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player1.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player1.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player1.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n else\r\n {\r\n unitPanel.setImageIcon(worldPanel.player2.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player2.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player2.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player2.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n }",
"Hotel_GUI() throws IOException {\r\n \tsetLayout(new BorderLayout()); \r\n \t\r\n \tinitialize();\r\n \r\n for(int i=0; i<12; i++){\r\n \tfor(int j=0; j<15; j++){\r\n \t\thelp_square[i][j].setLabel(help_square[i][j].getType());\r\n \t\tboard_panel.add(help_square[i][j]);\r\n \t}\r\n }\r\n \t\r\n \tfinal JPanel toolBar = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n \t\r\n \tcreateCards();\r\n \tfor(int i=0; i<hotelNumber; i++){\r\n \t\tsetPopUp(i);\r\n \t}\r\n \t\r\n \t\r\n\t\tfinal JPopupMenu popup1 = new JPopupMenu();\r\n\t popup1.add(new JMenuItem(new AbstractAction(\"Start\") {\r\n\t /**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t \tpopupCards.removeAll();\t \t\t\r\n\t \thotelItems.clear();\r\n\t \t\r\n\t \tbutton2.setEnabled(true);\r\n\t\t\t button3.setEnabled(true);\r\n\t\t\t button4.setEnabled(true);\r\n\t\t\t button5.setEnabled(true);\r\n\t\t\t button6.setEnabled(true);\r\n\t\t\t button7.setEnabled(true);\r\n\t\t\t button8.setEnabled(true);\r\n\t \t\r\n\t\t\t myGame = null;\r\n\t \tmyGame = new NewGame(board_panel, help_square);\r\n\t \tmyGame.initialization();\r\n\t \ttry {\r\n\t\t\t\t\t\tcreateCards();\r\n\t\t\t\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t \tfor(int i=0; i<hotelNumber; i++){\r\n\t \t\tsetPopUp(i);\r\n\t \t}\r\n\t \t\r\n\t \tfor(int i=0; i<3; i++){\r\n\t \t\tsetProfitsPopUp(i);\r\n\t \t\tsetEntrancesPopUp(i);\r\n\t \t}\r\n\t \tgameStarted = true;\r\n\t \tmyGame.new_game();\r\n\t }\r\n\t \t\t }));\r\n\t popup1.add(new JMenuItem(new AbstractAction(\"Stop\") {\r\n\t /**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t t.stop();\r\n\t button2.setEnabled(false);\r\n\t\t\t button3.setEnabled(false);\r\n\t\t\t button4.setEnabled(false);\r\n\t\t\t button5.setEnabled(false);\r\n\t\t\t button6.setEnabled(false);\r\n\t\t\t button7.setEnabled(false);\r\n\t\t\t button8.setEnabled(false);\r\n\t }\r\n\t }));\r\n\t popup1.add(popupCards);\r\n\t popup1.add(new JMenuItem(new AbstractAction(\"Exit\") {\r\n\t /**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t System.exit(0);\r\n\t }\r\n\t }));\r\n\t final JButton button1 = new JButton(\"Game\");\r\n\t button1.addMouseListener(new MouseAdapter() {\r\n\t public void mousePressed(MouseEvent e) {\r\n\t popup1.show(e.getComponent(), e.getX(), e.getY());\r\n\t }\r\n\t });\r\n\t toolBar.add(button1);\r\n\t \r\n\t final JPopupMenu popup2 = new JPopupMenu();\r\n\t popup2.add(gameHotels);\r\n\t popup2.add(playerEntrances);\r\n\t popup2.add(playerProfits);\r\n\t \r\n\t button2 = new JButton(\"Statistics\");\r\n\t button2.addMouseListener(new MouseAdapter() {\r\n\t public void mousePressed(MouseEvent e) {\r\n\t popup2.show(e.getComponent(), e.getX(), e.getY());\r\n\t }\r\n\t });\r\n\t toolBar.add(button2);\r\n \t\r\n\t\tJPanel infos1 = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n\t\tinfos1.add(new JLabel(\"Player1: \"));\r\n\t\tinfos1.add(p1Money);\r\n\t\tinfos1.add(new JLabel(\" \"));\r\n\t\tinfos1.add(new JLabel(\"Player2: \"));\r\n\t\tinfos1.add(p2Money);\r\n\t\tinfos1.add(new JLabel(\" \"));\r\n\t\tinfos1.add(new JLabel(\"Player3: \"));\r\n\t\tinfos1.add(p3Money);\r\n\t\tJPanel infos2 = new JPanel(new FlowLayout(FlowLayout.RIGHT));\r\n\t\tinfos2.add(new JLabel(\"Available Hotels: \"));\r\n\t\tinfos2.add(hotelAv);\r\n\t\tinfos2.add(new JLabel(\" \"));\r\n\t\tinfos2.add(new JLabel(\"Total Time: \"));\r\n\t\tinfos2.add(timer);\r\n\t\tJPanel infoPanel = new JPanel(new GridLayout(1,2));\r\n\t\tinfoPanel.add(infos1);\r\n\t\tinfoPanel.add(infos2);\r\n\t\tJPanel twoPanels = new JPanel(new GridLayout(2,1));\r\n\t\ttwoPanels.add(toolBar);\r\n\t\ttwoPanels.add(infoPanel);\r\n\t\tadd(twoPanels, BorderLayout.NORTH);\r\n\t\t\r\n\t\t\r\n\t\tbutton3 = new JButton(\"Roll dice & result\");\r\n\t\tbutton3.addActionListener(this);\r\n button4 = new JButton(\"Request building & result\");\r\n button4.addActionListener(this);\r\n button5 = new JButton(\"Buy hotel\");\r\n button5.addActionListener(this);\r\n button6 = new JButton(\"Buy entrance\");\r\n button6.addActionListener(this);\r\n button7 = new JButton(\"Request +1000 from bank\");\r\n button7.addActionListener(this);\r\n button8 = new JButton(\"Finish round\");\r\n button8.addActionListener(this);\r\n \r\n final JPanel options = new JPanel(new GridLayout(6,1));\r\n options.add(button3);\r\n options.add(button4);\r\n options.add(button5);\r\n options.add(button6);\r\n options.add(button7);\r\n options.add(button8);\r\n add(options, BorderLayout.EAST);\r\n \r\n add(board_panel, BorderLayout.CENTER);\r\n \r\n \r\n \r\n \r\n }",
"public SetInfoWindow() {\n super(BasicWindow.curWindow,\"Stage Info\", true);\n //setTitle(\"Inventory Manager\");\n proj_class=(project)project.oClass;\n \n addComponents();\n populateComponents();\n setBounds(10,50, iScreenHeight,iScreenWidth);\n //setSize(500,500);\n setResizable(true);\n setVisible(true);\n }",
"public InfoPanel(EndListener listener) {\n this.listener = listener;\n this.refuel = new Refuel();\n this.liters = this.finalPrice = 0;\n this.user = null;\n timer = new Timer();\n \n initComponents();\n endBtn.addActionListener((ActionEvent e) -> {\n finishSession();\n });\n }",
"public DataBaseSouthPanel() {\n LOOGER.info(\"Get top panel Entry\");\n this.setOpaque(false);\n this.initComponents();\n this.addComponents();\n this.repaint();\n LOOGER.info(\"top panel exit\");\n }",
"private JMenuItem getExitMenuItem() {\n\t\tif (exitMenuItem == null) {\n\t\t\texitMenuItem = new JMenuItem();\n\t\t\texitMenuItem.setText(\"Exit\");\n\t\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn exitMenuItem;\n\t}",
"private JMenuItem getExitMenuItem() {\n\t\tif (exitMenuItem == null) {\n\t\t\texitMenuItem = new JMenuItem();\n\t\t\texitMenuItem.setText(\"Exit\");\n\t\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn exitMenuItem;\n\t}",
"private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}",
"public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }",
"public ExitMenu(){\n\t\tint n = showConfirmDialog(null,\"Exit Game\", \"Exiting Game\",JOptionPane.YES_NO_OPTION);\n\t\tif(n==0)\n\t\t\tSystem.exit(0);\t\t\n\t}",
"private void loadHUD() {\r\n\r\n\t\tstaticEntities.add(new ButtonEntity(game, \"Pause\", \"hud\",\r\n\t\t\t\"reset-button-idle.png;reset-button-clicked.png\", null, game\r\n\t\t\t\t.getParent().getWidth() - 100,\r\n\t\t\tgame.getParent().getHeight() - 70, 100, 50));\r\n\t\tstaticEntities.add(new ButtonEntity(game, \"Inventory\", \"hud\",\r\n\t\t\t\"inventory-button-idle.png;inventory-button-clicked.png\", null,\r\n\t\t\tgame.getParent().getWidth() - 200,\r\n\t\t\tgame.getParent().getHeight() - 70, 100, 50));\r\n\t}",
"private void initInfoPanel() {\n\t\t// Info Panel\n\t\tinfoPanel = new JPanel();\n\t\tinfoPanel.setBorder(BorderFactory.createTitledBorder(\"\"));\n\t\t\n\t\t// Current Word Label\n\t\twordString = \"\";\n\t\twordLabel = new JLabel(\" \" + wordString, SwingConstants.LEFT);\n\t\twordLabel.setBorder(BorderFactory.createTitledBorder(\"Current Word\"));\n\t\twordLabel.setPreferredSize(new Dimension(280, 65));\n\t\twordLabel.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tinfoPanel.add(wordLabel);\n\t\t\n\t\t// Submit Button\n\t\tsubmitButton = new JButton(\"Submit Word\");\n\t\tsubmitButton.setPreferredSize(new Dimension(160, 65));\n\t\tsubmitButton.setFont(new Font(\"Arial\", Font.BOLD, 18));\n\t\tsubmitButton.setFocusable(false);\n\t\tsubmitButton.addActionListener(new SubmitListener());\n\t\tinfoPanel.add(submitButton);\n\t\t\n\t\t// Score Label\n\t\tscoreInt = 0;\n\t\tscoreLabel = new JLabel(\"\", SwingConstants.LEFT);\n\t\tscoreLabel.setBorder(BorderFactory.createTitledBorder(\"Score\"));\n\t\tscoreLabel.setPreferredSize(new Dimension(110, 65));\n\t\tscoreLabel.setFont(new Font(\"Arial\", Font.PLAIN, 16));\n\t\tinfoPanel.add(scoreLabel);\n\t}",
"public void createChooseGameUI()\n {\n \tHashMap<InventoryRunnable, InventoryItem> inventoryStuff = new HashMap<InventoryRunnable, InventoryItem>();\n \t\n \tInventoryRunnable gladiatorJoinRunnable = new GladiatorJoinInventoryRunnable(plugin);\n \t\n \tArrayList<String> gladiatorLore = new ArrayList<String>();\n \tgladiatorLore.add(\"FIGHT TO THE DEATH AND WIN YOUR FREEDOM\");\n \tgladiatorLore.add(\"GOOD LUCK WARRIOR!\");\n \tInventoryItem gladiatorItem = new InventoryItem(plugin, Material.SHIELD, \"GLADIATOR\", gladiatorLore, 1, true, 1);\n \tinventoryStuff.put(gladiatorJoinRunnable, gladiatorItem);\n \t\n \tchooseGameUI = new GUIInventory(plugin, \"MINIGAMES\", inventoryStuff, 3);\n }",
"public static void printExitMsg() {\r\n CmdUx.printHBars(EXIT_MSG);\r\n }",
"public ExitEstaciona() {\n initComponents();\n }",
"private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }",
"@Override\n\tpublic void windowClosing(WindowEvent we) {\n\t\tif (we.getSource() == this) {\n\t\t\tdExit.setBounds(this.getX() + this.getWidth() / 2 - dExit_Width / 2,\n\t\t\t\tthis.getY() + this.getHeight() /2 - dExit_Height / 2,\n\t\t\t\tdExit_Width, dExit_Height);\n\t\t\tdExit.setVisible(true);\n\t\t}\n\t\telse if (we.getSource() == dColor) {\n\t\t\tdColor.setVisible(false);\n\t\t\t\n\t\t}\n\t\telse if (we.getSource() == dExit) {\n\t\t\tdExit.setVisible(false);\n\t\t}\n\t}",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"public void createFailWindow(float cameraX, float cameraY) {\n\t\tcamera.position.x = cameraX;\r\n\t\tcamera.position.y = cameraY;\r\n\t\tfailMenu = new Table();\r\n\t\tfailMenu.setBackground(blueRectangle);\r\n\t\tfailMenu.setFillParent(true);\r\n\r\n\t\tTextureRegionDrawable drawable1 = new TextureRegionDrawable(new Texture(Gdx.files.internal(\"pause_menu\\\\dreamfailed.png\")));\r\n\t\tImage img = new Image (drawable1);\r\n\r\n\t\texitButtonFail = new Button(blueExit);\r\n\t\trestartButtonFail = new Button(blueRestart);\r\n\t\tunderlineFailMenu = new Image(blueUnderline);\r\n\r\n\t\t//Buttons needed\r\n\t\tfailMenu.add(img).colspan(2);\r\n\t\tfailMenu.row().padTop(50);\r\n\t\tfailMenu.add(exitButtonFail).size(150,70).padRight(70);\r\n\t\tfailMenu.add(restartButtonFail).size(200,70).padRight(10);\r\n\t\tfailMenu.row();\r\n\t\tfailMenu.add(underlineFailMenu);\r\n\t\tunderlineFailMenu.setVisible(false);\r\n\r\n\t\texitButtonFail.addListener(new ClickListener() {\r\n\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\texitClicked = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\trestartButtonFail.addListener(new ClickListener() {\r\n\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\trestartClicked = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfailMenu.setPosition(camera.position.x, camera.position.y);\r\n\t\tfailMenuStage.addActor(failMenu);\r\n\t\tfailMenu.validate();\r\n\t\tfailMenu.setTransform(true);\r\n\t\tfailMenu.setScale(0.5f);\r\n\t\tunderlineFailMenu.setZIndex(0);\r\n\r\n\t}",
"private static void exit(){\r\n try{\r\n mainFrame.exiting();\r\n\r\n // Save the l&f class name\r\n setProperty(\"default.lf\", UIManager.getLookAndFeel().getClass().getName());\r\n\r\n\r\n boolean isFrameOK = true;\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n Rectangle frameBounds = mainFrame.getBounds();\r\n if (frameBounds.x+frameBounds.width < 50)\r\n isFrameOK = false;\r\n if (frameBounds.y < -10)\r\n isFrameOK = false;\r\n if (frameBounds.width < 30)\r\n isFrameOK = false;\r\n if (frameBounds.height < 40)\r\n isFrameOK = false;\r\n if (frameBounds.x > screenSize.width - 10)\r\n isFrameOK = false;\r\n if (frameBounds.y > screenSize.height - 20)\r\n isFrameOK = false;\r\n\r\n // Save the bounds of the main frame.\r\n if (isFrameOK)\r\n setProperty(\"frame.bounds\", StringEncoder.encodeRectangle(frameBounds));\r\n\r\n OutputStream propsOut = new FileOutputStream(new File(jinUserHome, \"user.properties\"));\r\n userProps.save(propsOut, \"Jin chess client properties\");\r\n propsOut.close();\r\n System.exit(0);\r\n } catch (IOException e){\r\n System.err.println(\"Unable to complete exit procedure:\");\r\n e.printStackTrace();\r\n }\r\n }",
"private void setupButtonPanel() {\n\n Dimension btnSize = new Dimension(100, 50);\n\n exitButton = new JButton(\"Exit\");\n playAgainButton = new JButton(\"Play Again\");\n\n exitButton.setPreferredSize(btnSize);\n playAgainButton.setPreferredSize(btnSize);\n\n buttonPanel.add(playAgainButton);\n buttonPanel.add(exitButton);\n fullPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n playAgainButton.addActionListener(actionEvent -> {\n GameOver.this.dispose();\n new MainScreen();\n });\n exitButton.addActionListener(actionEvent -> System.exit(0));\n }",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"private void setupGameOverPanel(){\n\n //Adding the gameOver label to gameOverPanel\n gameOver.setFont(new Font(Font.SERIF, Font.BOLD, 50));\n gameOver.setAlignmentX(Font.CENTER_BASELINE);\n gameOverPanel.add(gameOver);\n\n //Adding the gameOverPanel to fullPanel\n fullPanel.add(gameOverPanel, BorderLayout.NORTH);\n }",
"public MenuInfo() {\n initComponents();\n setSize(1024,768);\n }",
"public InfoWindow(StartGame start) {\n try {\n initComponents();\n this.start = start;\n setLocationRelativeTo(null);\n InputStream imgStream = getClass().getResourceAsStream(\"exit_32.png\");\n BufferedImage myImg = ImageIO.read(imgStream);\n exitLabel.setIcon (new javax.swing.ImageIcon(myImg));\n setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(InfoWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}",
"private void itemExitActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }",
"public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}",
"public String showExit() {\n String exitMessage = \"You're leavin' already?!??! Well, see you again! \"\n + \"BYEEE!!!\";\n return exitMessage;\n }",
"@Override\n public List<UpdatableItem> createPopup() {\n final List<UpdatableItem> items = new ArrayList<UpdatableItem>();\n \n /* host wizard */\n final MyMenuItem newHostWizardItem =\n new MyMenuItem(Tools.getString(\"EmptyBrowser.NewHostWizard\"),\n HOST_ICON,\n null,\n new AccessMode(ConfigData.AccessType.RO, false),\n new AccessMode(ConfigData.AccessType.RO, false)) {\n private static final long serialVersionUID = 1L;\n \n @Override\n public String enablePredicate() {\n return null;\n }\n \n @Override\n public void action() {\n final AddHostDialog dialog = new AddHostDialog(new Host());\n dialog.showDialogs();\n }\n };\n items.add(newHostWizardItem);\n Tools.getGUIData().registerAddHostButton(newHostWizardItem);\n return items;\n }",
"private void createShopMenu() {\n Player player = gameInstance.getEntityManager().getOrCreatePlayer();\n\n Table table = new Table();\n table.top();\n table.setFillParent(true);\n\n //WELCOME MESSAGE\n Label welcome = new Label(\"Welcome to the \"+department.getName()+\" Department!\",\n StyleManager.generateLabelStyle(50, Color.GOLD));\n\n //REPAIR BUTTON\n //label to display if player's boat has full health\n Label noRepair = new Label(\"Your ship does not need repair!\", StyleManager.generateLabelStyle(30, Color.BLACK));\n\n //button updated regularly in render\n repair = new TextButton(\"\", StyleManager.generateTBStyle(40, Color.BLACK, Color.GRAY));\n repair.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n if(player.getBalance()>=getHealCost()) {\n //has enough gold\n player.deductBalance(getHealCost());\n player.setHealth(player.getMaxHealth());\n }\n }\n });\n\n //UPDATE BUTTON\n //label to display if allied college not defeat (crew member not unlocked)\n Label noUpgrade = new Label(\"You have not unlocked this crew member!\", StyleManager.generateLabelStyle(40, Color.BLACK));\n\n //Maximum level label\n Label maxUpgrade = new Label(\"This crew member is at it's maximum level!\", StyleManager.generateLabelStyle(40, Color.BLACK));\n\n\n //button updated regularly in render\n CrewMember crewMember = department.getCrewMember();\n upgrade = new TextButton(\"\",\n StyleManager.generateTBStyle(30, Color.BLACK, Color.GRAY));\n upgrade.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n if((player.getBalance()>=crewMember.getUpgradeCost())\n && crewMember.canUpgrade()) {\n //has enough gold and not maximum level\n player.deductBalance(crewMember.getUpgradeCost());\n crewMember.upgrade();\n }\n }\n });\n\n //EXIT BUTTON\n TextButton exit = new TextButton(\"Exit!\", StyleManager.generateTBStyle(25, Color.RED, Color.GRAY));\n exit.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n gameInstance.fadeSwitchScreen(gameInstance.getSailScreen());\n }\n });\n\n //POPULATE TABLE\n table.add(welcome).padTop(Value.percentHeight(0.35f, table)).expandX();\n table.row();\n if(player.getHealth().equals(player.getMaxHealth())) {\n table.add(noRepair).padTop(Value.percentHeight(0.05f, table)).expandX();\n } else {\n table.add(repair).padTop(Value.percentHeight(0.05f, table)).expandX();\n }\n table.row();\n if(player.getCrewMembers().contains(crewMember)) {\n //has unlocked crew member\n if(crewMember.canUpgrade()) {\n table.add(upgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n } else {\n table.add(maxUpgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n }\n } else {\n table.add(noUpgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n }\n table.row();\n table.add(exit).padTop(Value.percentHeight(0.05f, table)).expandX();\n\n getStage().addActor(table);\n }",
"private void setExits()\n {\n promenade.setExit(\"up\", ossuary);\n promenade.setExit(\"deep\", depths);\n \n ossuary.setExit(\"down\", promenade);\n ossuary.setExit(\"left\", forest);\n ossuary.setExit(\"straight\", crypt);\n \n forest.setExit(\"right\", ossuary);\n forest.setExit(\"left\", graveyard);\n \n tower.setExit(\"straight\", ramparts);\n tower.setExit(\"down\", forest);\n tower.setExit(\"left\", deathRoom4);\n \n ramparts.setExit(\"down\", bridge);\n ramparts.setExit(\"straight\", castle);\n ramparts.setExit(\"left\", deathRoom4);\n \n prison.setExit(\"up\", promenade);\n prison.setExit(\"down\", sewers);\n prison.setExit(\"straight\", deathRoom2);\n \n \n sewers.setExit(\"down\", depths);\n sewers.setExit(\"left\", deathRoom1);\n \n depths.setExit(\"up\", sewers);\n depths.setExit(\"right\", crypt);\n depths.setExit(\"left\", deathRoom3);\n \n \n crypt.setExit(\"up\", graveyard);\n crypt.setExit(\"straight\", deathRoom3);\n crypt.setExit(\"left\", depths);\n crypt.setExit(\"back\", ossuary);\n \n graveyard.setExit(\"right\", forest);\n graveyard.setExit(\"straight\", bridge);\n graveyard.setExit(\"down\", crypt);\n \n bridge.setExit(\"up\", ramparts);\n bridge.setExit(\"back\", graveyard);\n bridge.setExit(\"down\", deathRoom2);\n \n throneRoomEntrance.setExit(\"straight\", throne);\n \n }",
"private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }",
"private void exitForm(java.awt.event.WindowEvent evt) {\n int aux = Funcoes.voltar(\"Deseja voltar ao menu de opções?\",\"SIM\",\"NÃO\");\n if (aux == 1){\n new MenuOpcoes().setVisible(true);\n this.dispose();\n }\n }",
"public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\tif(e.getSource()==exit){\n\t\t\t\tm.jumpTomanagerMenuUI();\t\t\t\n\t\t\t}\n\t\t\trepaint();\n\t\t}",
"private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }",
"public EventsGUI() {\n\t\t// ******** << DEBUGGING MENU FOR EVENTS ONLY >> ******** //\n\t\t// Source: https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html\n\t\tJPanel eventMenuPane = new JPanel(new FlowLayout());\n String menuOptions[] = { SWITCH, BUTTON, LEVER };\n JComboBox<String> eventMenu = new JComboBox<>(menuOptions);\n eventMenu.setEditable(false);\n eventMenu.addItemListener(eventsMain);\n eventMenuPane.add(eventMenu);\n eventMenuPane.setOpaque(false);\n eventMenuPane.setVisible(false); // REMOVE THIS LINE TO ACTIVATE EVENT DEBUGGING\n // ^^*****************************************************************^^ //\n\t\t\n // call methods which generate each event space's GUI\n createImageFiles();\n\t\tcreateSwitchSpace();\n\t\tcreateButtonGrid();\n\t\tcreateLeverSpace();\n\t\tcreateMessageWindow();\n\t\t\n\t\t// add each event's panel to the event main panel\n\t\teventPanel.setOpaque(false);\n\t\teventPanel.add(switchPanel, SWITCH);\n\t\teventPanel.add(buttonPanel, BUTTON);\n\t\teventPanel.add(leverPanel, LEVER);\n\n\t\t// add the event main panel and its background to the event container\n\t\teventsWindow = new JLabel(eventsBG);\n\t\teventsWindow.setBounds(0, 0, getEventsBG().getIconWidth(), getEventsBG().getIconHeight());\n\t\teventPanel.setBounds(0, 0, getEventsBG().getIconWidth(), getEventsBG().getIconHeight());\n\t\teventMenuPane.setBounds(150, 450, 300, 30);\n\t\t\n\t\t// add the close button for events\n\t\tcloseEventButton.addMouseListener(eventsMain);\n\t\tcloseEventButton.setBounds(540, 0, closeButton.getIconWidth(), closeButton.getIconHeight()); // close button position\n\t\t \n\t\t// assemble event components in the main event container\n\t\teventContainer.add(eventsWindow, new Integer(0));\n\t\teventContainer.add(eventPanel, new Integer(1));\n\t\teventContainer.add(closeEventButton, new Integer(2));\n\t\teventContainer.add(eventMenuPane, new Integer(2));\n\n\t\teventContainer.setOpaque(false);\n\t}",
"public void drawInfoWindow(){\n\n p.pushMatrix();\n p.translate(0,0); // translate whole window if necessary\n\n // display name and show\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Info\",735,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(730,40,550,700);\n p.rectMode(CENTER);\n\n p.fill(0);\n p.pushMatrix();{\n p.translate(740,80);\n p.textSize(15);\n p.text(\"General\",0,-20);\n p.line(-3,-15,150,-15);\n p.text(\"Speed: \" + manipulator.maxSpeed,0,0);\n p.text(\"Angle of rotation for segment_1: \" + p.degrees(manipulator.segment_1_rot),0,20);\n p.text(\"Angle of rotation for segment_2: \" + p.degrees(manipulator.segment_2_rot),0,40);\n\n\n }p.popMatrix();\n\n p.popMatrix();\n\n }",
"public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}",
"private Widget getInfo() {\n FocusPanel infoPanel = new FocusPanel();\n infoPanel.setStyleName(\"elv-Molecules-InfoPanel\");\n HorizontalPanel content = new HorizontalPanel();\n try{\n Image img = new Image(ReactomeImages.INSTANCE.information());\n String helpTitle = \"Info\";\n HTMLPanel helpContent = new HTMLPanel(\n \"The molecules tab shows you all the molecules of a complete pathway diagram.\\n\" +\n \"Molecules are grouped in Chemical Compounds, Proteins, Sequences and Others.\\n\" +\n \"The molecules of a selected object appear highlighted in the molecules lists;\\n\" +\n \"a molecule selected in the list will be highlighted in the diagram.\\n\" +\n \"For each molecule you can see a symbol, a link to the main reference DB, a name and the number of\\n\" +\n \"occurrences in the pathway. Clicking on the symbol several times will allow you to circle through\\n\" +\n \"all its occurrences in the diagram.\\n\" +\n \"Expanding by clicking on the '+' will provide you with further external links.\\n\" +\n \"Lists can be downloaded. Just click on the button in the top right\\n\" +\n \"corner, select the fields and types you are interested in and click 'Start Download'.\");\n\n content.add(img);\n popup = new HelpPopup(helpTitle, helpContent);\n infoPanel.addMouseOverHandler(this);\n infoPanel.addMouseOutHandler(this);\n infoPanel.getElement().getStyle().setProperty(\"cursor\", \"help\");\n }catch (Exception e){\n// e.printStackTrace();\n Console.error(getClass() + \": \" + e.getMessage());\n //ToDo: Enough?\n }\n HTMLPanel title = new HTMLPanel(\"Info\");\n title.getElement().getStyle().setMarginLeft(10, Style.Unit.PX);\n content.add(title);\n\n infoPanel.add(content.asWidget());\n\n return infoPanel;\n }",
"public InfoPanel() {\n setPreferredSize(new Dimension(500, 860));\n }",
"protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }",
"public void exitMenu(){\n }",
"public AboutPanel() {\n super();\n initialize();\n }",
"private void buildUI() {\n\n\t\t// Load the content view, and setup the map component, if one exists.\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\t// Don't load a map component if on emulator coz it requires the use of Google Play Services...\n\t\t\tsetContentView(layout.workout_screen_nomap);\n\t\t\tmapFragment = null;\n\t\t} else {\n\t\t\tsetContentView(layout.workout_screen);\n\t\t\tmapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(id.map);\n\n\t\t\t// Add a custom marker to the map to show the user's location.\n\t\t\tmapFragment.getMapAsync(new OnMapReadyCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onMapReady(GoogleMap googleMap) {\n\n\t\t\t\t\tfinal MarkerOptions markerOpt = new MarkerOptions();\n\t\t\t\t\tmarkerOpt.icon(BitmapDescriptorFactory.fromResource(drawable.nihi_map_marker)).anchor(0.5f, 1f)\n\t\t\t\t\t\t\t.draggable(false).position(new LatLng(0, 0));\n\n\t\t\t\t\tWorkoutActivity.this.userMapMarker = googleMap.addMarker(markerOpt);\n WorkoutActivity.this.theMap = googleMap;\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t\tpnlMap = findViewById(id.pnlMap);\n\n\t\t// \"Start Workout\" button\n\t\tbtnStartWorkout = (Button) findViewById(id.btnStartWorkout);\n\t\tbtnStartWorkout.setOnClickListener(btnStartWorkoutClickListener);\n\n\t\t// \"Stop Workout\" button\n\t\tbtnStopWorkout = (Button) findViewById(id.btnStopWorkout);\n\t\tbtnStopWorkout.setOnClickListener(btnStopWorkoutClickListener);\n\n\t\t// \"Select Workout\" button\n\t\tbtnSelectWorkout = (Button) findViewById(id.btnSelectWorkout);\n\t\tbtnSelectWorkout.setOnClickListener(btnSelectWorkoutClickListener);\n\n//\t\t// \"Symptoms\" button\n\t\tbtnSymptoms = (Button) findViewById(id.btnSymptoms);\n\t\tbtnSymptoms.setEnabled(false);\n//\t\tbtnSymptoms.setOnClickListener(btnSymptomsClickListener);\n//\n//\t\t// \"Notifications\" button\n\t\tbtnNotifications = (Button) findViewById(id.btnNotifications);\n\t\tbtnNotifications.setEnabled(false);\n//\t\tbtnNotifications.setOnClickListener(btnNotificationsClickListener);\n\n\t\t// \"Show / Hide Map\" button\n\t\tbtnToggleMap = (ToggleButton) findViewById(id.btnToggleMap);\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\tbtnToggleMap.setEnabled(false);\n\t\t\tbtnToggleMap.setText(\"[TEST MODE]\");\n\t\t} else {\n\t\t\tbtnToggleMap.setOnCheckedChangeListener(btnToggleMapToggleListener);\n\t\t}\n\n\t\t// Stats fragments (containing the stat view tiles)\n\t\tlargeStatsFragment = (WorkoutScreenStatsViewFragment) getSupportFragmentManager().findFragmentById(\n\t\t\t\tid.largeStatsFragment);\n\t\tsmallStatsFragment = (WorkoutScreenStatsViewFragment) getSupportFragmentManager().findFragmentById(\n\t\t\t\tid.smallStatsFragment);\n largeStatsFragment.setVisibility(View.GONE);\n\t}",
"private void createMainMenuFooterComposite() {\n\n\t\tGridData gridData22 = new GridData();\n\t\tgridData22.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData22.verticalAlignment = GridData.END;\n\t\tGridData gridData2 = new GridData();\n\t\tgridData2.grabExcessHorizontalSpace = true;\n\t\tgridData2.grabExcessVerticalSpace = true;\n\t\tgridData2.verticalAlignment = GridData.END;\n\t\tgridData2.heightHint = 75;\n\t\tgridData2.widthHint = 75;\n\t\tgridData2.horizontalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout2 = new GridLayout();\n\t\tgridLayout2.horizontalSpacing = 30;\n\t\tgridLayout2.marginHeight = 20;\n\t\tgridLayout2.numColumns = 2;\n\t\tgridLayout2.marginWidth = 20;\n\n\t\tGridData gridData = new GridData();\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.verticalAlignment = GridData.END;\n\t\tgridData.heightHint = 150;\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tmainMenuFooterComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuFooterComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuFooterComposite.setLayout(gridLayout2);\n\t\tmainMenuFooterComposite.setLayoutData(gridData);\n\n\t\tlblBallyCopyright = new CbctlLabel(mainMenuFooterComposite, SWT.NONE);\n\t\tlblBallyCopyright.setText(LabelLoader.getLabelValue(LabelKeyConstants.BALLY_COPYRIGHT_LABEL));\n\t\tlblBallyCopyright.setLayoutData(gridData22);\n\t\tlblBallyCopyright.setFont(new Font(Display.getDefault(), \"Arial\", 8, SWT.NORMAL));\n\t\tbtnExit = new CbctlButton(mainMenuFooterComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.EXIT_BUTTON);\n\t\tbtnExit.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgExitBtn)));\n\t\tbtnExit.setLayoutData(gridData2);\n\t}",
"@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}",
"@Override\n\tpublic void goToFinishedPanel ()\n\t{\n\t\tAppContext.sizeErrorLegend.setVisible(true);\n\t\t\n\t\tmRunningPanel.setVisible(false);\n\t\tmFinishedPanel.setVisible(true);\n\t\tmWizardStepIconPanel.setStepIcon(7);\n\t}",
"public Exit()\n {\n super(\"Exit\");\n putValue(Action.NAME, \"Exit\");\n IconSetter iconSetter = new IconSetter(\"/config/images/exiticon.gif\");\n Icon icon = iconSetter.getIcon();\n putValue(Action.SMALL_ICON, icon);\n putValue(Action.ACCELERATOR_KEY,\n KeyStroke.getKeyStroke('Q',\n Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));\n putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_Q));\n }",
"private void makeCloseDirectionListPanel(){\n closeDirectionList = new JPanel();\n closeDirectionList.setVisible(false);\n closeDirectionList.setBounds(25, 280, 400, 20);\n closeDirectionList.setBackground(DrawAttribute.fadeblack);\n closeDirectionList.setLayout(new BoxLayout(closeDirectionList, BoxLayout.LINE_AXIS));\n closeDirectionList.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\n\n closeDirectionListButton = new JButton(new ImageIcon(this.getClass().getResource(\"/data/resetButtonWhiteIcon.png\")));\n closeDirectionListButton.setOpaque(false);\n closeDirectionListButton.setBackground(DrawAttribute.fadeblack);\n closeDirectionListButton.setActionCommand(\"closeDirectionList\");\n closeDirectionList.add(closeDirectionListButton);\n\n travelTimePanel = new JPanel();\n travelTimePanel.setOpaque(false);\n travelTimePanel.setBounds(25, 280, 275, 20);\n travelTimePanel.setVisible(false);\n travelTimeLabel = new JLabel();\n travelTimeLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n travelTimeLabel.setForeground(Color.WHITE);\n travelTimePanel.add(travelTimeLabel);\n }",
"private JMenuBar createMenubar() {\n\t\t\tJFrame error = new JFrame();\n\t\t\tJMenuBar menubar = new JMenuBar(); //creates new menu bar\n\t\t\tJMenu mnuFile = new JMenu(\"File\"); //creates file option\n\t\t\tmnuFile.setMnemonic(KeyEvent.VK_F);\n\t\t\tJMenuItem mniFileExit = new JMenuItem(\"Exit\"); //creates exit button\n\t\t\tmniFileExit.setMnemonic(KeyEvent.VK_E);\n\t\t\tmniFileExit.setToolTipText(\"Exit application\"); //sets tool tip\n\t\t\tmniFileExit.addActionListener(new ActionListener() {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent event) { //when clicked\n\t\t\t\t\n\t\t\t\t System.exit(0); } //exit program\n\t\t\t});\n\t\t\t\n\t\t\t//Reset StartUp Location\n\t\t\tJMenuItem reset = new JMenuItem(\"Reset Current\");\n\t\t\treset.setMnemonic(KeyEvent.VK_R);\n\t\t\treset.addActionListener(new ActionListener() {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent event) {\n\t\t\t\t JFrame frame = new JFrame();\n\t\t\t\t String txt = JOptionPane.showInputDialog(frame, \"Enter the city name of your new current location:\"); //prompts user for their current location\n\t\t\t\t\tArrayList<location> simLoc = dataBase.search(txt);\n\t\t\t\t\tif (simLoc == null) JOptionPane.showMessageDialog(frame, \"'\" + txt + \"' not found.\");\n\t\t\t\t\telse if (simLoc.size() == 1){\n\t\t\t\t\t\tlocation searchedLoc = simLoc.get(0);\n\t\t\t\t\t\tapp.setCurrentLocation(searchedLoc);\n\t\t\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\t\t\trefreshPanels();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tString [] possibilities = new String[simLoc.size()];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int i = 0; i < simLoc.size(); i ++){\n\t\t\t\t\t\t\tpossibilities[i] = i + 1 + \". \" + simLoc.get(i).getName() + \", \" + simLoc.get(i).getCountryCode() + \" Lat: \" \n\t\t\t\t\t\t\t\t\t+ simLoc.get(i).getLatitude() + \" Long: \" + simLoc.get(i).getLongitude();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString response = (String) JOptionPane.showInputDialog(frame, \"Which '\" + txt + \"' did you mean?\", \"Search Location\", \n\t\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, possibilities, \"Titan\");\n\t\t\t\t\t\n\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\t\tlocation searchedLoc = simLoc.get(Integer.parseInt(response.substring(0, response.indexOf('.'))) - 1);\n\t\t\t\t\t\t\t\tapp.setCurrentLocation(searchedLoc);\n\t\t\t\t\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\t\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\t\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\t\t\t\t\trefreshPanels();\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t \t\n\t\t\t});\n\t\t\t\n\t\t\tJMenuItem switchTo = new JMenuItem(\"Switch to Current\");\n\t\t\tswitchTo.setMnemonic(KeyEvent.VK_S);\n\t\t\tswitchTo.addActionListener(new ActionListener() {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent event) {\n\t\t\t\t app.setVisibleLocation(app.getCurrentLocation());\n\t\t\t\t refreshPanels();\n\t\t\t }\n\t\t\t\t \n\t\t\t });\n\t\t\t\n\t\t\t//Refresh button\n\t\t\tJMenuItem refresh = new JMenuItem(\"Refresh\");\n\t\t\trefresh.setMnemonic(KeyEvent.VK_F);\n\t\t\tupdateRefreshTime();\n\t\t\trefresh.addActionListener(new ActionListener() {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent event) {\t\n\t\t\t\t refreshPanels(); \n\t\t\t \t}\n\t\t\t});\n\t\t\tmnuFile.add(switchTo);\n\t\t\tmnuFile.add(reset);\n\t\t\tmnuFile.add(refresh);\n\t\t\tmnuFile.add(mniFileExit); //adds it to the menubar\n\t\t\tmenubar.add(mnuFile);\n\t\t\t\n\t\t\t//oF/oC check box\n\t\t\tJCheckBox degree = new JCheckBox();\n\t\t\tdegree.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\t\tif(((JCheckBox) event.getSource()).isSelected()){\n\t\t\t\t\t\tapp.setUnits(\"imperial\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tapp.setUnits(\"metric\");\n\t\t\t\t\t}\n\t\t\t\t\trefreshPanels();\n\t\t\t\t}\n\t\t\t});\n\t\t\tmenubar.add(degree);\n\t\t\tJLabel degLabel = new JLabel(\"oF\");\n\t\t\tmenubar.add(degLabel);\n\t\t\tmenubar.add(new JLabel(\" \"));\n\t\t\t\n\t\t\t//Locations -> MyLocations\n\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\tpopulateMyLocationsBox();\n\t\t\tmenubar.add(locBar);\n\t\t\t\t\t\t\n\t\t\t//Search text box\n\t\t\tJTextField txtBar = new JTextField(\"Search Location\");\n\t\t\ttxtBar.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\t\tsearchBoxUsed(((JTextField) event.getSource()).getText());\n\t\t\t\t}\n\t\t\t});\n\t\t\tmenubar.add(txtBar);\n\t\t\t\t\n\t\t\t\n\t\t\treturn menubar;\n\t\t}",
"public String getExitString()\n {\n return (\"\\nSaída(s):\\n \" + roomExits.keySet());\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//mTracker.set(Fields.SCREEN_NAME, \"Home Screen\");\n\t\tmTracker.send(MapBuilder.createAppView().build());\n\t\t//mTracker.send(null);\n\t}",
"public void finishedWindow() {\n\t\tgameManager.closePiratesEventScreen(this, route);\n\t}",
"private MultiDestnPanel(){\r\n\t\t\tJPanel btnPanel=new JPanel();\r\n\t\t\tinfoPanel.setLayout(new BoxLayout(infoPanel,BoxLayout.Y_AXIS));\r\n\t\t\tfinal JButton btnAddDestn=new JButton(\"Add Destination\");\r\n\t\t\tfinal JButton btnDeleteDestn=new JButton(\"Delete Destination\");\r\n\t\t\tbtnAddDestn.addActionListener(Planner.this);\r\n\t\t\tbtnAddDestn.setToolTipText(\"Select 'Add Destination' after entering a valid additional airport in the text panel above. Multiple airports may be added.\");\r\n\t\t\tbtnDeleteDestn.addActionListener(Planner.this);\r\n\t\t\tbtnDeleteDestn.setToolTipText(\"Select 'Delete Destination' if you wish to delete the most recently added additional airports.\");\r\n\t\t\tsetLayout(new BorderLayout());\r\n\t\t\tbtnPanel.add(btnAddDestn);\r\n\t\t\tbtnPanel.add(btnDeleteDestn);\r\n\t\t\tinfoPanel.setBorder(new TitledBorder(\"Destination +\"));\r\n\t\t\tbtnPanel.setBackground(Color.LIGHT_GRAY);\r\n\t\t\tInputPanel in=new InputPanel(num);\r\n\r\n\r\n\t\t\tin.add(btnPanel);\r\n\t\t\tinput[num].setText(\"Ignore If Only One Destination\");\r\n \tinput[num].addMouseListener(new MouseAdapter(){ //delete text when click\r\n\r\n \tpublic void mouseClicked(MouseEvent e){\r\n \t input[num].setText(\"\");\r\n \t}\r\n \t});\r\n\r\n\t\t\tadd(in, BorderLayout.CENTER);\r\n\t\t\tadd(infoPanel, BorderLayout.NORTH);\r\n\t\t}",
"private void exit() {\n dispose();\r\n }",
"final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }",
"public void closeWindows() {\n\n waitingForPlayers.setVisible(false);\n bonusTilePane.setVisible(false);\n chooseCostPane.setVisible(false);\n payToObtainPane.setVisible(false);\n chooseEffectPane.setVisible(false);\n choosePrivilegePane.setVisible(false);\n chooseWorkersPane.setVisible(false);\n prayPane.setVisible(false);\n yourTurnPane.setVisible(false);\n suspendedPane.setVisible(false);\n yourTurnPane.setVisible(false);\n throwDicesPane.setVisible(false);\n bonusActionPane.setVisible(false);\n\n }",
"public abstract void createContents(Panel mainPanel);",
"void aboutMenuItem_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }",
"private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\texit = new ExitDialog();\n\t\t\t\t\t\t\t}"
] |
[
"0.659835",
"0.6464845",
"0.5987383",
"0.59107935",
"0.5863561",
"0.56565666",
"0.56537294",
"0.5646463",
"0.5545633",
"0.5515332",
"0.5474943",
"0.5460169",
"0.5425847",
"0.5420498",
"0.54142475",
"0.5413004",
"0.54125273",
"0.54044735",
"0.5402026",
"0.5395707",
"0.53707534",
"0.53640735",
"0.5355674",
"0.5355347",
"0.5342632",
"0.5341105",
"0.53220075",
"0.53214484",
"0.53111786",
"0.5311013",
"0.5301206",
"0.53011644",
"0.5298339",
"0.52923894",
"0.52872217",
"0.52847105",
"0.5278128",
"0.52549446",
"0.5219191",
"0.521642",
"0.52117866",
"0.52117866",
"0.52110445",
"0.52078193",
"0.52026975",
"0.52011263",
"0.5199126",
"0.51986694",
"0.5191624",
"0.5188148",
"0.5181658",
"0.51749",
"0.51710236",
"0.51662076",
"0.51636165",
"0.51620543",
"0.51545",
"0.51436543",
"0.5138827",
"0.5137148",
"0.5133974",
"0.5133888",
"0.5128271",
"0.5114787",
"0.51139456",
"0.5104013",
"0.5103239",
"0.5095952",
"0.5095605",
"0.5091067",
"0.5089522",
"0.5088049",
"0.50813615",
"0.5080868",
"0.5080226",
"0.50757724",
"0.5075381",
"0.5073457",
"0.5067455",
"0.50654227",
"0.506162",
"0.506058",
"0.5059208",
"0.5058978",
"0.50589615",
"0.5056098",
"0.50544184",
"0.50532067",
"0.50524706",
"0.50519437",
"0.5050647",
"0.504934",
"0.5047794",
"0.5046308",
"0.5046013",
"0.50457466",
"0.50452805",
"0.5044433",
"0.50408083",
"0.50397533"
] |
0.7175384
|
0
|
Updates the ExitPanel with the Exits in the passedin Room.
|
public void updateExitPanel(Room room) {
exitPanel.removeAll();
List<Exit> exits = room.getExits();
for (Exit exit : exits) {
JLabel exitLabel = new JLabel(exit.getDirection().toString()
+", ", JLabel.RIGHT);
exitPanel.add(exitLabel, "wrap");
}
exitPanel.validate();
exitPanel.repaint();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void update(Room currentRoom) {\n exitsTextArea.setText(\"\");\n for (Room exit : currentRoom.getExits()) {\n exitsTextArea.append(exit.getName() + \"\\n\");\n }\n }",
"private void exitProgram() {\n try {\n logic.updateInventory();\n } catch (FileIOException e) {\n view.displayExceptionMessage(\"Error updating inventory file: \" + e.getMessage());\n view.waitOnUser();\n }\n view.showExitMessage();\n }",
"public Room getExit(int choice) {\n\t\treturn Exits.get(choice);\n\t}",
"private void setExits()\n {\n promenade.setExit(\"up\", ossuary);\n promenade.setExit(\"deep\", depths);\n \n ossuary.setExit(\"down\", promenade);\n ossuary.setExit(\"left\", forest);\n ossuary.setExit(\"straight\", crypt);\n \n forest.setExit(\"right\", ossuary);\n forest.setExit(\"left\", graveyard);\n \n tower.setExit(\"straight\", ramparts);\n tower.setExit(\"down\", forest);\n tower.setExit(\"left\", deathRoom4);\n \n ramparts.setExit(\"down\", bridge);\n ramparts.setExit(\"straight\", castle);\n ramparts.setExit(\"left\", deathRoom4);\n \n prison.setExit(\"up\", promenade);\n prison.setExit(\"down\", sewers);\n prison.setExit(\"straight\", deathRoom2);\n \n \n sewers.setExit(\"down\", depths);\n sewers.setExit(\"left\", deathRoom1);\n \n depths.setExit(\"up\", sewers);\n depths.setExit(\"right\", crypt);\n depths.setExit(\"left\", deathRoom3);\n \n \n crypt.setExit(\"up\", graveyard);\n crypt.setExit(\"straight\", deathRoom3);\n crypt.setExit(\"left\", depths);\n crypt.setExit(\"back\", ossuary);\n \n graveyard.setExit(\"right\", forest);\n graveyard.setExit(\"straight\", bridge);\n graveyard.setExit(\"down\", crypt);\n \n bridge.setExit(\"up\", ramparts);\n bridge.setExit(\"back\", graveyard);\n bridge.setExit(\"down\", deathRoom2);\n \n throneRoomEntrance.setExit(\"straight\", throne);\n \n }",
"public Room getExit(String direction) \n {\n return exits.get(direction);\n }",
"public Room getExit(String direction) \n {\n return exits.get(direction);\n }",
"public Room getExit(String direction) \n {\n return exits.get(direction);\n }",
"public void addExit(Room exit) {\n\t\tExits.add(exit);\n\t}",
"public Room getExit(String dir) {\n\t\treturn exits.get(dir);\n\t}",
"public void touchExit() \n {\n if (getOneIntersectingObject(Exit.class) != null)\n Level1.transitionToGameWinWorld(); \n }",
"public Map<String, Room> getExits() {\n\t\treturn exits;\n\t}",
"public Room getExit(String direction)\n {\n return exits.get(direction);\n }",
"public Room getExit(String direction)\n {\n return exits.get(direction);\n }",
"public void setExits(String dir, Room room) {\n\t\texits.put(dir, room);\n\t}",
"@Override\r\n public void onAgentExit(Event event, Agent agent, Cell cell, Direction dir) {\r\n }",
"private void ExitRoom() {\n stopFirestoreListenerService();\n\n SharedPreferences roomInfo = getSharedPreferences(\"PreviousRoom\", 0);\n SharedPreferences.Editor roomInfoEditor = roomInfo.edit();\n\n roomInfoEditor.putString(\"roomID\", \"\");\n\n roomInfoEditor.apply();\n\n SelectRoomActivity.recentRooms.remove(roomId);\n }",
"public void onExit();",
"private void printExits ()\n {\n System.out.println(\"You are in the \" + currentRoom.getDescription());\n System.out.print(\"Exits: \");\n for(Exit e : currentRoom.getListExits()) {\n System.out.println(e.getDirection());\n } \n }",
"private void initExit() {\n initExitView();\n initExitController();\n }",
"private MenuItem getJMenuItemExit() {\r\n if (jMenuItemExit == null) {\r\n jMenuItemExit = new MenuItem();\r\n //jMenuItemExit.setIcon(IconMgr.getExit());\r\n jMenuItemExit.setLabel(\"Exit\");\r\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n public void actionPerformed(java.awt.event.ActionEvent e) {\r\n //WorkDayPlanner.getInstance().exitProgram();\r\n }\r\n });\r\n }\r\n return jMenuItemExit;\r\n }",
"public String getExitString()\n {\n return (\"\\nSaída(s):\\n \" + roomExits.keySet());\n }",
"public void update(MazeEventExitUnlocked e) {\r\n }",
"void onExit();",
"@FXML\n public void exit(){\n try {\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Stage stage = (Stage) cancelButton.getScene().getWindow();\n stage.close();\n PassableData.setIsModifyPart(false);\n }",
"private void onLeaveRoom(String roomName) {\n if (roomEntries.containsKey(roomName)) {\n backBTN.setEnabled(chatController.getJoinedRooms().size() > 0);\n JPanel panel = roomEntries.get(roomName);\n panel.removeAll();\n renderRoom(roomName, panel);\n panel.revalidate();\n panel.repaint();\n }\n }",
"@Test\n\t\t\tpublic void testRoomExit()\n\t\t\t{\n\t\t\t\t// One step from room\n\t\t\t\tboard.calcTargets(13, 14, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 14)));\n\n\t\t\t\t// Take two steps\n\t\t\t\tboard.calcTargets(13, 14, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(11, 14)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 13)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 15)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private void initExitView() {\n exit = new Label(\"Exit Game\");\n exit.setPrefSize(200, 100);\n exit.setFont(Font.font(null, FontWeight.BOLD, 30));\n exit.setTextFill(Color.RED);\n exit.setEffect(getDropShadow());\n }",
"public void showExit();",
"public void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\r\n\t\tif (!this.mc.thePlayer.isEntityAlive() || this.mc.thePlayer.isDead) {\r\n\t\t\tthis.mc.thePlayer.closeScreen();\r\n\t\t}\r\n\t}",
"public void exitWindow()\n {\n //hide all windows except intro screen\n introScreen.setVisible(true);\n optionsScreen.setVisible(false);\n instructionScreen.setVisible(false);\n gameSelectScreen.setVisible(false);\n lobbyScreen.setVisible(false);\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n mainGameScreen.setVisible(false);\n\n clientController.leaveLobby();\n\n //set state to INTRO\n state = CurrentWindow.INTRO;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\texit = new ExitDialog();\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == mBtnEnterRoom) {\n\t\t\tint dwRoomId=0;\n\t\t\tString strRoomId = mTxtRoomId.getText();\n\t\t\tif (strRoomId.length() == 0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"请输入房间号\", \"错误\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t} else {\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t dwRoomId = Integer.valueOf(strRoomId);\n\t\t\t\t}\n\t\t\t\tcatch (Exception k) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\tSystem.out.println(k.toString());\n\t\t\t\t\tdwRoomId=0;\n\t\t\t\t}\n\t\t\t\tif(dwRoomId!=0)\n\t\t\t\t anychat.EnterRoom(dwRoomId, \"\");\n\t\t\t}\n\t\t}\n\t\tif (e.getSource() == mBtnExit) {\n\t\t\tanychat.Release();\n\t\t\tthis.dispose();\n\t\t}\n\t\tif(e.getSource()==mBtnRoom1)\n\t\t{\n\t\t\tanychat.EnterRoom(1, \"\");\n\t\t}\n\t\tif(e.getSource()==mBtnRoom2)\n\t\t{\n\t\t\tanychat.EnterRoom(2, \"\");\n\t\t}\n\t\tif(e.getSource()==mBtnRoom3)\n\t\t{\n\t\t\tanychat.EnterRoom(3, \"\");\n\t\t}\n\t\tif(e.getSource()==mBtnRoom4)\n\t\t{\n\t\t\tanychat.EnterRoom(4, \"\");\n\t\t}\n\t}",
"private void enterRoom(Room newRoomEntered)\n {\n \n player.setCurrentRoom(newRoomEntered);\n if(player.getCurrentRoom().isDark()){//check to see if room is dark\n System.out.println(\"The room is pitchblack and you are unable to see anything\");\n System.out.println();\n } else {\n System.out.println(player.getCurrentRoom().printLocationInfo());\n System.out.println();\n }\n }",
"@FXML\n private void handleExit() {\n GuiSettings guiSettings = new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n logic.setGuiSettings(guiSettings);\n logic.displayAllTasks();\n resultDisplay.setFeedbackToUser(\"\");\n primaryStage.hide();\n }",
"public void exit() {\n getBatchState().getSettings().setWindowPosition(this.getLocation());\r\n getBatchState().getSettings().setWindowSize(this.getSize());\r\n // Saves current state\r\n this.dispose();\r\n }",
"private void clearExits()\n {\n promenade.removeExit(\"up\", ossuary);\n \n ossuary.removeExit(\"down\", promenade);\n ossuary.removeExit(\"left\", forest);\n ossuary.removeExit(\"straight\", crypt);\n \n \n \n tower.removeExit(\"straight\", ramparts);\n tower.removeExit(\"down\", forest);\n \n ramparts.removeExit(\"down\", bridge);\n ramparts.removeExit(\"straight\", castle);\n \n \n prison.removeExit(\"up\", promenade);\n prison.removeExit(\"down\", sewers);\n prison.removeExit(\"straight\", deathRoom2);\n \n sewers.removeExit(\"down\", depths);\n sewers.removeExit(\"left\", deathRoom1);\n \n depths.removeExit(\"up\", sewers);\n depths.removeExit(\"right\", crypt);\n \n crypt.removeExit(\"up\", graveyard);\n crypt.removeExit(\"straight\", deathRoom3);\n crypt.removeExit(\"left\", depths);\n crypt.removeExit(\"back\", ossuary);\n \n graveyard.removeExit(\"straight\", bridge);\n graveyard.removeExit(\"down\", crypt);\n \n bridge.removeExit(\"up\", ramparts);\n bridge.removeExit(\"down\", deathRoom2);\n \n throneRoomEntrance.removeExit(\"straight\", throne);\n \n }",
"public Room(String description) \n {\n this.description = description;\n exits = new HashMap<>();\n }",
"public Room getExit(String roomName) {\n\t\tRoom room = null;\n\t\tRoom tempRooms;\n\t\tfor(int i = 0; i < Exits.size(); i++) {\n\t\t\ttempRooms = Exits.get(i);\n\t\t\tif (tempRooms.name.contains(roomName)) {\n\t\t\t\treturn tempRooms;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//TODO: Make this a proper exception thrown, \n\t\t//\t\totherwise this code will break if it meets this error \n\t\t//\t\tand this will be the only hint as to why\n\t\tSystem.out.println(\"ERROR: Could not find room\");\n\t\treturn room;\n\t}",
"public void onTileExit(Tile tile) {}",
"public void exitMenu(){\n }",
"public void setExit(String direction, Room neighbor) \n {\n exits.put(direction, neighbor);\n }",
"public void setExit(String direction, Room neighbor) \n {\n exits.put(direction, neighbor);\n }",
"private void enemyEncounter()\n {\n currentEnemies = currentRoom.getEnemies();\n \n if(currentEnemies.size() > 0)\n {\n for(Enemy e : currentEnemies)\n {\n System.out.println(\"\\n\" + \"A \" + e.getName() + \" stares menacingly!\" + \"\\n\");\n enemyName = e.getName();\n \n }\n enemyPresent = true;\n clearExits();\n }\n else{\n setExits(); \n }\n }",
"@Override\n\t public void onExit() {\n\t\t super.onExit();\n\t }",
"private void returnScreen(){\r\n dispose();\r\n playScreen.combatExit();\r\n }",
"public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}",
"private void exitListener() {\n buttonPanel.getQuit().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n toDoList.saveAll(fileLocation);\n System.exit(0);\n }\n });\n }",
"@Test\r\n\tpublic void testRoomExit()\r\n\t{\r\n\t\t// Take one step, essentially just the adj list\r\n\t\tboard.calcTargets(8, 2, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\t// Ensure doesn't exit through the wall\r\n\t\tassertEquals(1, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\t// Take two steps\r\n\t\tboard.calcTargets(8, 2, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(3, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 1)));\r\n\t}",
"@Override\n\tpublic void onExit() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\tArrayList<Item> hallInventory = new ArrayList<>();\n\tArrayList<Exit> hallExits = new ArrayList<>();\n\tRoom Hall = new Room(\"Entrance Hall\", \"It is an entrance hall of a very grand house\", hallInventory, hallExits);\n\n\t//kitchen\n\tArrayList<Item> kitchenInventory = new ArrayList<>();\n\tArrayList<Exit> kitchenExits = new ArrayList<>();\n\tRoom Kitchen = new Room(\"Kitchen\", \"This is a very large kitchen.\", kitchenInventory, kitchenExits);\n\n\t//dining room\n\tArrayList<Item> diningInventory = new ArrayList<>();\n\tArrayList<Exit> diningExits = new ArrayList<>();\n\tRoom Dining = new Room(\"Dining Room\", \"This dining room is set for 12 people\", diningInventory, diningExits);\n\n\t//lounge\n\tArrayList<Item> loungeInventory = new ArrayList<>();\n\tArrayList<Exit> loungeExits = new ArrayList<>();\n\tRoom Lounge = new Room(\"Lounge\", \"The Lounge is a mess, and there are blood spatters on the wall\", loungeInventory, loungeExits);\n\n\t//</editor-fold>\n\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"Fill rooms with objects\">\n\thallInventory.add(new Item(\"a fruit bowl\", \"The fruit bowl contains some fruit\"));\n\thallInventory.add(new Item(\"a clock\", \"Tick Tock\"));\n\tkitchenInventory.add(new Item(\"a stove\", \"The stove is very hot\"));\n\tkitchenInventory.add(new Item(\"a knife\", \"The knife is blunt\"));\n\t//</editor-fold>\n\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"add exits to rooms\">\n\thallExits.add(new Exit(1, Lounge));\n\thallExits.add(new Exit(4, Dining));\n\tloungeExits.add(new Exit(2, Hall));\n\tdiningExits.add(new Exit(3, Hall));\n\tdiningExits.add(new Exit(4, Kitchen));\n\tkitchenExits.add(new Exit(3, Dining));\n\t//</editor-fold>\n\n\t//create character : Avatar\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"character creation\">\n\tArrayList<Item> invent = new ArrayList<>();\n\tCharacter Avatar = new Character(\"Tethys\", \"A tall elf dressed in armour\", 100, invent);\n\tinvent.add(new Item(\"armour\", \"leather armour\"));\n\t//</editor-fold>\n\t//begin\n\tRoom currentLoc = Hall;\n\tSystem.out.print(\"You are standing in the \" + currentLoc.getName() + \"\\n\" + currentLoc.getDesc() + \"\\n\");\n\tcurrentLoc.printInventory();\n\tcurrentLoc.printExits();\n\n\tBufferedReader command = new BufferedReader(new InputStreamReader(System.in));\n\tString orders = null;\n\twhile (true) {\n\t System.out.print(\"What do you want to do? \");\n\t try {\n\t\torders = command.readLine();\n\t } catch (IOException ioe) {\n\t\tSystem.out.println(\"I'm sorry, I didn't understand that!\");\n\t\tSystem.exit(1);\n\t }\n\n\t String[] orderWords = orders.split(\" \");\n\n//\t for (String s : orderWords){\n//\t\tSystem.out.print(s);\n\t switch (orderWords[0].toLowerCase()) {\n\t\tcase \"go\":\n\t\t int count = 0;\n\t\t for (Exit e : currentLoc.getExits()) {\n\t\t\tString direct = orderWords[1].toUpperCase();\n\t\t\tif (direct.equals(e.getDirectionName())) {\n\t\t\t currentLoc = e.getLeadsTo();\n\t\t\t count++;\n\t\t\t System.out.print(\"You are standing in the \" + currentLoc.getName() + \"\\n\" + currentLoc.getDesc() + \"\\n\");\n\t\t\t currentLoc.printInventory();\n\t\t\t currentLoc.printExits();\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t if (count == 0) {\n\t\t\tSystem.out.print(\"I'm sorry, I can't go that way.\\n\");\n\t\t }\n\t\t break;\n\n\t\tcase \"pick\":\n\n\n\t\tcase \"put\":\n\n\n\t\tcase \"exit\":\n\t\t System.exit(0);\n\t\t break;\n\t }\n\n\t}\n\n\n }",
"private void setExitScreen(String text){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(3, 1, text);\n\t\tscreenUI.drawText(2, 2, Languages.getMessages().get(chosenLanguage).get(\"goodbye\"));\n\t\tscreenUI.drawText(2, 3, Languages.getMessages().get(chosenLanguage).get(\"restart\"));\n\t}",
"public void lobbyExitButton(MouseEvent event){\n event.consume();\n Client.sendMessageToServer(new Disconnection());\n Platform.exit();\n System.exit(APP_CLOSED_BY_LOBBY_EXIT_BUTTON);\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 }",
"public Location getExitLocation() {\r\n return exitLocation;\r\n }",
"@FXML\n private void exitMenuItem() {\n\n // Exit the entire application\n Platform.exit();\n }",
"@Override\r\n\tpublic void onGuiClosed() {\r\n\t\tsuper.onGuiClosed();\r\n\t\t\r\n\t\t// Save any changes made while this menu was open\r\n\t\tUltraTeleportWaypoint.save();\r\n\t}",
"public void exitToMenu()\n {\n exitToMenuFlag = true;\n }",
"@Test\n\tpublic void testRoomExit()\n\t{\n\t\t// Take one step, essentially just the adj list\n\t\tboard.calcTargets(18, 21, 1);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\t// Ensure doesn't exit through the wall\n\t\tassertEquals(1, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(17, 21)));\n\t\t// Take two steps\n\t\tboard.calcTargets(18, 21, 2);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(3, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(17, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 20)));\n\t}",
"private void createRooms()\n {\n Room outside, garden, kitchen, frontyard, garage, livingroom,\n upperhallway, downhallway, bedroom1, bedroom2, toilet,teleporter;\n\n // create the rooms\n outside = new Room(\"outside the house\",\"Outside\");\n garden = new Room(\"in the Garden\", \"Garden\");\n kitchen = new Room(\"in the Kitchen\",\"Kitchen\");\n frontyard = new Room(\"in the Frontyard of the house\", \"Frontyard\");\n garage = new Room(\"in the Garage\", \"Garage\");\n livingroom = new Room(\"in the Living room\", \"Living Room\");\n upperhallway = new Room(\"in the Upstairs Hallway\",\"Upstairs Hallway\");\n downhallway = new Room(\"in the Downstairs Hallway\", \"Downstairs Hallway\");\n bedroom1 = new Room(\"in one of the Bedrooms\", \"Bedroom\");\n bedroom2 = new Room(\"in the other Bedroom\", \"Bedroom\");\n toilet = new Room(\"in the Toilet upstairs\",\"Toilet\");\n teleporter = new Room(\"in the Warp Pipe\", \"Warp Pipe\");\n\n // initialise room exits\n outside.setExit(\"north\", garden);\n outside.setExit(\"east\", frontyard);\n\n garden.setExit(\"south\", outside);\n garden.setExit(\"east\", kitchen);\n\n kitchen.setExit(\"west\", garden);\n kitchen.setExit(\"north\", livingroom);\n kitchen.setExit(\"south\", downhallway);\n\n frontyard.setExit(\"west\", outside);\n frontyard.setExit(\"north\", downhallway);\n frontyard.setExit(\"east\", garage);\n\n garage.setExit(\"west\", frontyard);\n garage.setExit(\"north\", downhallway);\n\n livingroom.setExit(\"west\", kitchen);\n\n downhallway.setExit(\"north\",kitchen);\n downhallway.setExit(\"west\",frontyard);\n downhallway.setExit(\"south\",garage);\n downhallway.setExit(\"east\",upperhallway);\n\n upperhallway.setExit(\"north\", bedroom2);\n upperhallway.setExit(\"east\", bedroom1);\n upperhallway.setExit(\"south\", toilet);\n upperhallway.setExit(\"west\", downhallway);\n\n toilet.setExit(\"north\", upperhallway);\n\n bedroom1.setExit(\"west\",upperhallway);\n\n bedroom2.setExit(\"south\", upperhallway);\n\n rooms.add(outside);\n rooms.add(garden);\n rooms.add(kitchen);\n rooms.add(frontyard);\n rooms.add(garage);\n rooms.add(livingroom);\n rooms.add(upperhallway);\n rooms.add(downhallway);\n rooms.add(bedroom1);\n rooms.add(bedroom2);\n rooms.add(toilet);\n }",
"public void stateChanged(ChangeEvent e)\r\n\t\t\t\t\t{\n\t\t\t\t\t\ttheGridView.showExitTiles(showExitTilesButton.isSelected());\r\n\t\t\t\t\t}",
"public void setExit(String direction, Room neighbor)\n {\n exits.put(direction, neighbor);\n }",
"public void setExit(String direction, Room neighbor)\n {\n exits.put(direction, neighbor);\n }",
"private JMenuItem getExitMenuItem() {\n if (exitMenuItem == null) {\n exitMenuItem = new JMenuItem();\n exitMenuItem.setText(\"Exit\");\n exitMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n }\n return exitMenuItem;\n }",
"public synchronized void exitHall(){\n\t\twhile(sessionEnded==false){\t\t\t//This is a if before once the session has ended and the customers have been \n\t\t\t\t\t\t\t\t\t\t\t//notified there is no chance the sessionEnded variable will change again so there\n\t\t\t\t\t\t\t\t\t\t\t//is no need to check.\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"The customer \"+Thread.currentThread().getId()+\" is waiting for the movie to finish.\");\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tnbPlaces++;\n\t\tSystem.out.println(\"The customer \"+Thread.currentThread().getId()+\" will exit the projection hall.\");\n\t\t/**\n\t\t * This part of the code is for reinitializing the states before starting the next session.\n\t\t * The last customer changes the state before exiting.\n\t\t */\n\t\tif(nbPlaces==totalSeats){\n\t\t\tSystem.out.println(\"Last customer comes and seat number is \"+nbPlaces);\n\t\t\tallExited=true;\n\t\t\tcinemaEnded=false;//Exit\n\t\t\tsessionEnded=false;\n\t\t\tnotifyAll();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\n\t}",
"public void setExit(String direction, Room neighbor) {\n exits.put(direction, neighbor);\n }",
"public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }",
"private void initExitController() {\n exit.setOnMouseClicked(event -> { System.exit(1); });\n exit.setOnMouseExited(event -> { exit.setGraphic(null); });\n exit.setOnMouseEntered(event -> { exit.setGraphic(new Circle(5)); });\n }",
"@FXML\n void exitAddWindow() {\n drawMenuElements(false);\n window.setTitle(\"Timelines: Menu\");\n\n toggleMenuButtonVisibility(true);\n cancelTimelineButton.setVisible(false);\n cancelEventButton.setVisible(false);\n\n resetAddWindowFields();\n }",
"@EventHandler\r\n\tpublic void Playerleave(PlayerQuitEvent e) {\r\n\t\tPlayer p = e.getPlayer();\r\n\t\tString pname = p.getName();\r\n\t\tp.getInventory().clear();\r\n\t\t Bukkit.broadcastMessage(\"\" + ChatColor.RED + ChatColor.WHITE + \"BMT | \" + pname + ChatColor.RESET + \"Heeft de server verlaten!\" + \"\");\r\n\t}",
"public void exit() {\n\t\tnextPlace = exitName;\n\t\tOrganizer.getOrganizer().deleteSuspended();\n\t\texit(Values.LANDSCAPE);\n\t}",
"@Override\n\tpublic void checkOutRoom() {\n\t\t\n\t}",
"public void setEndRoom(Room endRoom) {\n this.endRoom = endRoom;\n }",
"public JMenuItem getExitMenuItem() {\n return exitMenuItem;\n }",
"public void enterRoom(Room room) {\n currentRoom = room;\n }",
"public ViewRoom(Room r) {\n initComponents();\n this.room = r;\n this.workoutNum = 0;\n updateRoom();\n \n }",
"public void dialog_exitSheet() {\n\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_exit_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_outgoingDialog = dialog.findViewById(R.id.tv_outgoingDialog);\n tv_outgoingDialog.setText(outgoing);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n ArrayList<ExitSheet> preExitSheetList = new ArrayList<>();\n preExitSheetList = dataBaseHandler.getAllExitSheet();\n\n TextView tv_Title = dialog.findViewById(R.id.tv_Title);\n if (preExitSheetList.size() == 0) {\n tv_Title.setText(no_outgoing_dialog);\n } else {\n tv_Title.setText(has_outgoing_dialog);\n }\n\n ListView lv_preExitSheet = dialog.findViewById(R.id.lv_preExitSheet);\n PreExitSheetAdapter preExitSheetAdapter = new PreExitSheetAdapter(ReportActivity.this, preExitSheetList, dialog);\n lv_preExitSheet.setAdapter(preExitSheetAdapter);\n\n Button bt_AddExitSheet = dialog.findViewById(R.id.bt_AddExitSheet);\n bt_AddExitSheet.setText(add_new_outgoing_process);\n bt_AddExitSheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog_AddExitSheet();\n dialog.dismiss();\n dialog.cancel();\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }",
"public void exit(ActionEvent actionEvent) {\r\n //Closes hibernate and then the program.\r\n controller.exit();\r\n System.exit(0);\r\n }",
"public ExitMenu(){\n\t\tint n = showConfirmDialog(null,\"Exit Game\", \"Exiting Game\",JOptionPane.YES_NO_OPTION);\n\t\tif(n==0)\n\t\t\tSystem.exit(0);\t\t\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState.putParcelable(GAME_TAG, game);\n outState.putBoolean(EXIT_ALERT_VISIBILITY, exitAlertVisible); // is EXIT AlertDialog shown?\n super.onSaveInstanceState(outState);\n }",
"public Direction getExit(){\n\t\t\treturn exit;\n\t\t}",
"private void exitGame(){\n out.println(\"\\r\\nPress ENTER to finish\");\n in.nextLine();\n// game.playersConnected--;\n login = false;\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 }",
"void btn_Exit_actionPerformed(ActionEvent e) {\n\t\t// TODO : changer le behaviour oneshot ? le remplacer par le notre ?\n m_owner.addBehaviour( new OneShotBehaviour() {\n public void action() {\n ((TinderSupervisorAgent) myAgent).terminateHost();\n }\n } );\n }",
"void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}",
"@Override\n public void exit() {\n model.exit();\n }",
"private JMenuItem getExitMenuItem() {\n\t\tif (exitMenuItem == null) {\n\t\t\texitMenuItem = new JMenuItem();\n\t\t\texitMenuItem.setText(\"Exit\");\n\t\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn exitMenuItem;\n\t}",
"private JMenuItem getExitMenuItem() {\n\t\tif (exitMenuItem == null) {\n\t\t\texitMenuItem = new JMenuItem();\n\t\t\texitMenuItem.setText(\"Exit\");\n\t\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn exitMenuItem;\n\t}",
"public static void endGame(){\n\t\tmainPanel.grid1.enabledGrid(false);\n\t\tif(speler.heleVlootKapot){\n\t\t\tmainPanel.melding2.setText(\"Helaas, de computer heeft gewonnen.\");\n\t\t}else{\n\t\t\tmainPanel.melding2.setText(\"Gefeliciteerd, u heeft gewonnen.\");\n\t\t}\n\t}",
"public void finishedWindow() {\n\t\tgameManager.closePiratesEventScreen(this, route);\n\t}",
"void end(String roomId);",
"exitLockedTile(int row, int col){\r\n this.row = row;\r\n this.col = col;\r\n }",
"public abstract void leaveRoom();",
"public void unload() {\n this.currentRooms.clear();\n // Zero the info panel.\n this.roomNameField.setText(\"\");\n this.includeField.setText(\"\");\n this.inheritField.setText(\"\");\n this.streetNameField.setSelectedIndex(0);\n this.determinateField.setText(\"\");\n this.lightField.setText(\"\");\n this.shortDescriptionField.setText(\"\");\n this.longDescriptionField.setText(\"\");\n this.exitPanel.removeAll();\n }",
"public EndGameMenuWindow(final ShaderProgram shader, final Batch batch, final Viewport viewport, final MultiInputProcessor multiInputProcessor, final int playerGoals, final int opponentGoals) {\n\t\tsuper(shader, batch, viewport, multiInputProcessor);\n\t\t\n\t\tfinal HorizontalGroup hGroup = new HorizontalGroup();\n\t\thGroup.addActor(getScoreVerticalGroup(PLAYER, playerGoals));\n\t\thGroup.space(SCORE_GROUP_SPACE);\n\t\thGroup.addActor(getScoreVerticalGroup(OPPONENT, opponentGoals));\n\n\t\tfinal WidgetGroup menuGroup = getMenuGroup();\n\t\tmenuGroup.addActor(hGroup);\n\t\tmenuGroup.addActor(getQuitToMainMenuButton());\n\t}",
"public void setExited() {\n this.exited = true;\n }",
"public void exit() {\r\n\t\tdispose();\r\n\t}",
"@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}",
"@FXML protected void doExit(ActionEvent event) {\n\t\tmodel.exit();\n\t}",
"public void Exit_button() {\n\t \t Stage stage = (Stage) btnExit.getScene().getWindow();\n\t \t \n\t \t stage.close();\n\t }",
"@Override\n\tpublic String enterRoom() {\n\t\treturn this.getDescription()+displayActions();\n\t}"
] |
[
"0.6778524",
"0.5949523",
"0.58685035",
"0.5852295",
"0.58409995",
"0.58409995",
"0.58409995",
"0.57967204",
"0.5785307",
"0.57796466",
"0.5771691",
"0.5704578",
"0.5704578",
"0.55889744",
"0.5587463",
"0.5512058",
"0.55064493",
"0.5496869",
"0.5494572",
"0.54811007",
"0.5480463",
"0.54658717",
"0.5457183",
"0.54423803",
"0.54353744",
"0.54123014",
"0.5407228",
"0.5393639",
"0.5374408",
"0.5331149",
"0.5320809",
"0.5282632",
"0.52777827",
"0.5276866",
"0.5255791",
"0.52403796",
"0.5232109",
"0.5213657",
"0.5197308",
"0.5166756",
"0.51547265",
"0.51547265",
"0.51525897",
"0.5150981",
"0.5146018",
"0.51426387",
"0.51398015",
"0.5133951",
"0.512337",
"0.5121549",
"0.511486",
"0.5104889",
"0.5091388",
"0.50859255",
"0.5084143",
"0.50755966",
"0.5073734",
"0.5066251",
"0.50567997",
"0.5046606",
"0.504647",
"0.504647",
"0.5045836",
"0.5029864",
"0.5015646",
"0.501334",
"0.50116664",
"0.499026",
"0.4987097",
"0.49839365",
"0.49731383",
"0.49702248",
"0.49702078",
"0.49681705",
"0.49537417",
"0.4951052",
"0.49466297",
"0.4943835",
"0.4943463",
"0.49383554",
"0.4937342",
"0.4937066",
"0.49357417",
"0.49276936",
"0.49230686",
"0.49110293",
"0.49110293",
"0.4908361",
"0.4908102",
"0.49076426",
"0.4902533",
"0.49002746",
"0.48951018",
"0.48942494",
"0.48938248",
"0.48885798",
"0.48876387",
"0.48871836",
"0.48862708",
"0.48851317"
] |
0.73825586
|
0
|
Populates the street name field. Removes all items already in the field, adds a blank item, then adds a new item for each Street in the Level.
|
public void populateStreetNames() {
streetNameField.removeAllItems();
streetNameField.addItem("");
for (Street street : bindingService.getStreets()) {
streetNameField.addItem(street.getName());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStreetName(String streetName) {\r\n this.streetName = streetName;\r\n }",
"public void setStreetName(String streetName) \n \t{\n \t\tthis.streetName = streetName;\n \t}",
"public void setStreetName(String streetName) {\n this.streetName = streetName;\n }",
"public void setName (String name) {\n\t streetName = name ;\n }",
"public void setStreetName(String streetName) {\r\n\t\t\tif(streetName == null || streetName.isEmpty()) \r\n\t\t\t{\r\n\t\t\t\tthis.streetName = \"N/A\";\r\n\t\t\t}else \r\n\t\t\t{\r\n\t\t\t\tthis.streetName = streetName;\r\n\t\t\t}\r\n\t\t}",
"private void buildStreetNameField(JPanel panel) {\n streetNameField = new JComboBox<>();\n streetNameField.setName(\"streetNameField\");\n Dimension dimension = streetNameField.getPreferredSize();\n streetNameField.setPreferredSize(new Dimension(150, dimension.height));\n streetNameField.addActionListener(new StreetNameListener(currentRooms, bindingService));\n populateStreetNames();\n JLabel streetNameLabel = new JLabel(localization.get(\"StreetName\"), JLabel.RIGHT);\n streetNameLabel.setLabelFor(streetNameField);\n panel.add(streetNameLabel);\n panel.add(streetNameField);\n }",
"public void setStreetFieldName(final String value) {\n setProperty(STREET_FIELD_NAME_KEY, value);\n }",
"public void setStreetAddress(String newStreetAddress) {\n this.address = newStreetAddress;\n }",
"void setStreet(String street);",
"public void addDetourStreet( Street s)\r\n {\r\n detour_streets.add(s);\r\n }",
"public String getStreetName() {\r\n return streetName;\r\n }",
"public String getStreetName() {\r\n return streetName;\r\n }",
"public void setStreet(String street) {\n this.street = street;\n }",
"public void setStreet(java.lang.String street) {\n this.street = street;\n }",
"public void setStreet(java.lang.String street) {\n this.street = street;\n }",
"public void addNewRecord(String name, String street, int building, int apartment) {\n if (name == null || street == null)\n throw new NullPointerException();\n if (!addressBook.containsKey(name)) {\n Address address = new Address(street, building, apartment);\n addressBook.put(name, address);\n }\n }",
"public void setStreet(String street) {\r\n\t\tthis.street = street;\r\n\t}",
"public String getStreetName() {\n return streetName;\n }",
"public void findStreets() {\r\n\t\tpolygonMap.resetStreets();\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tfor (int i = 0; i < island.getRoads().length; i++) {\r\n\t\t\tif (buildStreetIsAllowed(island.getRoads()[i])\r\n\t\t\t\t\t&& !isWaterStreet(island.getRoads()[i])) {\r\n\t\t\t\tpolygonMap.addStreet(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setStreet(String street) {\n\t\tthis.street = street;\n\t}",
"public void setStreetAddress(String streetAddress) {\r\n\t\tthis.streetAddress = streetAddress;\r\n\t}",
"public void setStreetAddress(StringFilter streetAddress) {\n\t\tthis.streetAddress = streetAddress;\n\t}",
"public CustomerBuilder setStreet(final String streetParam) {\n this.streetNested = streetParam;\n return this;\n }",
"public String getStreetName()\n \t{\n \t\treturn this.streetName;\n \t}",
"public void setStreetNo(int value) {\n this.streetNo = value;\n }",
"public void setSchool (String name, String address, String level){\n this.name = name;\n this.address = address;\n this.level = level;\n this.info = \"Name: \"+name+\"\\tAddress: \"+address+\"\\tLevel: \"+level;\n }",
"public void setStreetNumber(String streetNumber) {\r\n\t\t\tif(streetNumber == null || streetNumber.isEmpty()) \r\n\t\t\t{\r\n\t\t\t\tthis.streetNumber = \"N/A\";\r\n\t\t\t}else \r\n\t\t\t{\r\n\t\t\t\tthis.streetNumber = streetNumber;\r\n\t\t\t}\r\n\t\t}",
"private void addApartmentNames() {\n apartmentNamesAdapter.clear();\n for (ApartmentNamesInUnivs university : apartmentNamesInUnivs) {\n\n if (university.getUniversityName().equals(universityNamesSpinner.getSelectedItem().toString())) {\n\n for (ApartmentNamesWithType aptName : university.getApartmentNames()) {\n\n if (aptName.getApartmentType().equals(UrlGenerator.getApartmentTypeCodeMap().get(apartmentTypeSpinner.getSelectedItem().toString())))\n\n apartmentNamesAdapter.add(aptName.getApartmentName());\n }\n }\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn zip + \"-\" + street;\n\t}",
"public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }",
"public String getName () {\n\t return (streetName) ;\n }",
"public StreetAddress(String streetName, int streetNumber)\n \t{\n \n \t\tthis.streetName = streetName;\n \t\tthis.streetNumber = streetNumber;\n \t}",
"@Override\n\t@XmlElement\n\tpublic void setStreetCode(String streetCode) {\n\t\t\n\t}",
"public PostkastenItem(String name) //, String street, String plz, String www, String tel)\r\n\t{\r\n\t\tsuper(\"\");\r\n\t\t\r\n\t\tthis.name = name;\r\n\t\t/*\r\n\t\tthis.street = street;\r\n\t\tthis.plz = plz;\r\n\t\tthis.tel = tel;\r\n\t\tthis.www = www;\r\n\t\t*/\r\n\t}",
"public void setContactStreet(String contactStreet) {\n this.contactStreet = contactStreet;\n }",
"public void changeAddress(String name, String street, int building, int apartment) {\n if (name == null || street == null || building == 0 || apartment == 0 || !addressBook.containsKey(name))\n throw new NullPointerException();\n Address newAddress = new Address(street, building, apartment);\n addressBook.put(name, newAddress);\n }",
"public void setStreetNumber(int streetNumber)\n \t{\n \t\tthis.streetNumber = streetNumber;\n \t}",
"public String toString()\n \t{\n \t\tString fullStreet = this.streetNumber + \" \" + this.streetName;\n \t\treturn fullStreet;\n \t}",
"private void updateText() {\n pers = new PersonManager();\n //Is this every contact or a single person?\n if (this.surnameCombo.isVisible()) {\n if (this.personValid()) {\n Person myPers = getPerson();\n if (pers.getCountryList(myPers).size() > 0) {\n contactModel.removeData();\n contactModel.add(new PersonManager().getCountryList(myPers));\n }\n }\n } else {\n contactModel.removeData();\n contactModel.add(myCountries.getContactedCountryList());\n }\n }",
"public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }",
"public static void updateField() {\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tfield[i][j] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < food.size(); i++) {\r\n\t\t\tfield[food.get(i)[1]][food.get(i)[2]] = food.get(i)[0];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < snake.size(); i++) {\r\n\t\t\tfield[snake.get(i)[0]][snake.get(i)[1]] = SNAKE;\r\n\t\t}\r\n\t}",
"public boolean addEmployeeToBillToLocation(Employee emp, String name, String street) {\r\n\t\tfor(int i = 0; i < companyDirectory.size(); i++) {\r\n\t\t\tfor(int j = 0; j < companyDirectory.get(i).getLocations().size(); j++) {\r\n\t\t\t\tif(companyDirectory.get(i).getLocations().get(j) instanceof BillTo &&\r\n\t\t\t\tcompanyDirectory.get(i).getName().equals(name) && \r\n\t\t\t\tcompanyDirectory.get(i).getLocations().get(j).getAddress1().equals(street) ) {\r\n\t\t\t\t\treturn companyDirectory.get(i).getLocations().get(j).getEmployees().add(emp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean addStreet(Street street)\r\n {\r\n streets_map.add(street);\r\n return true;\r\n }",
"protected void fillInfo() {\n buffer.setLength(0);\n for (Food food : foods) {\n if (food != null) {\n buffer.append(food.toString());\n }\n }\n }",
"private void populateAddressInfo(){\n userNameLabel.setText(userAccount.getUsername());\n address1Label.setText(userAccount.getPerson().getAddress().getAddressLine1());\n address2Label.setText(userAccount.getPerson().getAddress().getAddressLine2());\n cityLabel.setText(userAccount.getPerson().getAddress().getCity());\n stateLabel.setText(userAccount.getPerson().getAddress().getState());\n nationLabel.setText(userAccount.getPerson().getAddress().getCountry());\n zipLabel.setText(userAccount.getPerson().getAddress().getZipcode());\n emailLabel.setText(userAccount.getPerson().getEmail());\n }",
"public void adjustName() {\n Item item = getItem();\n if (!item.isFixedName()) {\n if (item.getSchemaComponent().type() == SchemaBase.SEQUENCE_TYPE) {\n if (m_values.size() > 0) {\n Item childitem = ((DataNode)m_values.get(0)).getItem();\n if (item != childitem) {\n item.setName(childitem.getEffectiveName());\n }\n }\n }\n }\n }",
"public ShopsRecord(Integer shopId, String street) {\n super(Shops.SHOPS);\n\n set(0, shopId);\n set(1, street);\n }",
"public String getStreetFieldName() {\n return getStringProperty(STREET_FIELD_NAME_KEY);\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"public void addEntry() {\n\t\tSystem.out.print(\"Name: \");\n\t\tString entryName = getInputForName();\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\t\n\t\tp = new PhoneEntry(entryName, entryNumber);\n\t\t\n\t\ttry {\n\t\t\tphoneList.add(p);\n\t\t\twriteFile();\n\t\t\t\n\t\t\tSystem.out.println(\"Entry \" + p.getName() + \" has been added.\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(\"Could not write item into array.\");\n\t\t}\n\t}",
"public Street (SimpleMap roadMap) {\n if (roadMap != null) roadMap.addToMap(this);\n }",
"public void clearDetourStreet()\r\n {\r\n detour_streets = null;\r\n }",
"public void setStreetNumber(Integer streetNumber) {\n this.streetNumber = streetNumber;\n }",
"public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}",
"private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"public static void updateBuildings(GUI_Street[] streets, TileOwners owners){\n for (int i = 0; i < streets.length; i++) {\n streets[i].setHouses(owners.getTileHouses(i));\n if (owners.getTileHotel(i) == 1){\n streets[i].setHotel(true);\n } else {\n streets[i].setHotel(false);\n streets[i].setHouses(owners.getTileHouses(i));\n }\n }\n\n }",
"public void showStreets() {\n\t\tMonopolyClient.getStreets();\n\t}",
"public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public String getStreet() {\r\n\t\treturn street;\r\n\t}",
"public String getStreet() {\r\n\t\treturn street;\r\n\t}",
"@Override\n public void afterTextChanged(Editable s) {\n addName = s.toString();\n }",
"public void addToStations(String lineName, ArrayList<String> s) \n\t{\n\t\t//put line name as key and arraylist as value to stations hashMap \n\t\tstations.put(lineName, new ArrayList<String>(s));\n\t}",
"public String getStreet() {\n return street;\n }",
"public String getStreet() {\n return street;\n }",
"public void setAccountStreetAddress(String accountStreetAddress) {\n this.accountStreetAddress = accountStreetAddress;\n }",
"public void setSTREET(java.lang.String value)\n {\n if ((__STREET == null) != (value == null) || (value != null && ! value.equals(__STREET)))\n {\n _isDirty = true;\n }\n __STREET = value;\n }",
"public String getStreet(){\n return street;\n }",
"public String getStreet()\n {\n return street;\n }",
"public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }",
"void fillNameBox() {\n\t\tJLabel ruleNameLabel = new JLabel(overviewRule.getRuleName());\n\n\t\tnameBox.add(nameLabel);\n\t\tnameBox.add(ruleNameLabel);\n\t}",
"public CustomerAddressQuery street() {\n startField(\"street\");\n\n return this;\n }",
"private void calcNames() {\n final AddressBook addressBook = platform.getAddressBook();\n numColumns = addressBook.getSize();\n if (numColumns != numMembers) {\n numMembers = numColumns;\n names = new String[numColumns];\n for (int i = 0; i < numColumns; i++) {\n final NodeId nodeId = addressBook.getNodeId(i);\n names[i] = addressBook.getAddress(nodeId).getNickname();\n }\n }\n }",
"private void updateNames() {\n //Get all pack indexes.\t\t\n List<AItemPack<?>> packItems = PackParser.getAllItemsForPack(currentItem.definition.packID, true);\n int currentItemIndex = packItems.indexOf(currentItem);\n\n //Loop forwards in our pack to find the next item in that pack.\n nextSubItem = null;\n if (currentItemIndex < packItems.size()) {\n for (int i = currentItemIndex + 1; i < packItems.size() && nextSubItem == null; ++i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n nextSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //Loop backwards in our pack to find the prev item in that pack.\n prevSubItem = null;\n if (currentItemIndex > 0) {\n for (int i = currentItemIndex - 1; i >= 0 && prevSubItem == null; --i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n prevSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //All item bits are now set and updated. Update info labels and item icons.\n partName.text = currentItem.getItemName();\n\n //Parse crafting items and set icon items.\n //Check all possible recipes, since some might be for other mods or versions.\n String errorMessage = \"\";\n do {\n materials = PackMaterialComponent.parseFromJSON(currentItem, recipeIndex, false, true, false, false);\n if (materials == null) {\n if (++recipeIndex == currentItem.subDefinition.extraMaterialLists.size()) {\n recipeIndex = 0;\n }\n errorMessage += PackMaterialComponent.lastErrorMessage + \"\\n\";\n if (recipeIndex == 0) {\n InterfaceManager.coreInterface.logError(errorMessage);\n break;\n }\n }\n } while (materials == null);\n\n //Set model render properties.\n modelRender.modelLocation = currentItem.definition.getModelLocation(currentItem.subDefinition);\n modelRender.textureLocation = currentItem.definition.getTextureLocation(currentItem.subDefinition);\n }",
"@Override\n\tpublic String getStreetCode() {\n\t\treturn null;\n\t}",
"public String getFullAddress() {\n if (this.floor.equals(\"\\0\")) {\n return this.street + \", \" + this.city + \", \" \n + this.state + \" \" + this.zip;\n } else {\n return this.street + \", \" + this.floor + \", \" + this.city + \", \"\n + this.state + \" \" + this.zip;\n }\n }",
"public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}",
"public String getStreet() {\n return this.street;\n }",
"public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Saving streetOfDivergentSendingAddress(String streetOfDivergentSendingAddress) {\n this.streetOfDivergentSendingAddress = streetOfDivergentSendingAddress;\n return this;\n }",
"public void setStreets(int numx, int numy);",
"public void setDetails() {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n//\t\tList<String> list1 = new ArrayList<String>();\n//\t\tlist1.add(\"Jhone\");\n//\t\tlist1.add(\"Jim\");\n\t\t\n//\t\tList<String> list2 = new ArrayList<String>();\n//\t\tlist2.add(\"USA\");\n//\t\tlist2.add(\"CA\");\n\n\t\tSystem.out.println(\"Enter Names : \");\n\t\tString names = input.nextLine();\n\t\tScanner tokenizer = new Scanner(names);\n\t\ttokenizer.useDelimiter(\" \");\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\twhile (tokenizer.hasNext()) {\n\t\t\tarr.add(tokenizer.next());\n//\t\t\tSystem.out.println(arr.get(arr.size() - 1));\n\t\t}\n\t\tSystem.out.println(arr);\n\t\t\n\t\tSystem.out.println(\"Enter Names : \");\n\t\tString address = input.nextLine();\n\t\tScanner tokenizerAdd = new Scanner(names);\n\t\ttokenizer.useDelimiter(\" \");\n\t\tArrayList<String> arr1 = new ArrayList<String>();\n\t\twhile (tokenizerAdd.hasNext()) {\n\t\t\tarr1.add(tokenizerAdd.next());\n//\t\t\tSystem.out.println(arr.get(arr.size() - 1));\n\t\t}\n\t\tSystem.out.println(arr1);\n\t\t\n\t\t\n\t\t// using addAll( ) method to concatenate the lists\n\t\tList<String> concatenated_list = new ArrayList<String>();\n\t\tconcatenated_list.addAll(arr);\n\t\tconcatenated_list.addAll(arr1);\n\t\tSystem.out.println(\"Name : \" + arr + \" Address : \" + arr1);\n\t}",
"private void createGrpContactDetails() {\n\n\t\tgrpContactDetails = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpContactDetails.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tgrpContactDetails.setBounds(new Rectangle(20, 40, 350, 230));\n\n\t\tlblInstructions = new Label(grpContactDetails, SWT.CENTER);\n\t\tlblInstructions.setBounds(new org.eclipse.swt.graphics.Rectangle(50,\n\t\t\t\t20, 260, 20));\n\t\tlblInstructions.setText(\"All fields marked with * are compulsory\");\n\t\tlblInstructions.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_8_ITALIC));\n\n\t\tlblPharmacyName = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacyName.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 45, 120,\n\t\t\t\t20));\n\t\tlblPharmacyName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacyName.setText(\"* Facility Name:\");\n\t\ttxtPharmacyName = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacyName.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 45, 180,\n\t\t\t\t20));\n\t\ttxtPharmacyName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacyName.setFocus();\n\t\ttxtPharmacyName.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtNameKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\n\t\t});\n\t\ttxtPharmacyName.setEnabled(false);\n\n\t\tlblStreetAdd = new Label(grpContactDetails, SWT.NONE);\n\t\tlblStreetAdd.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 75,\n\t\t\t\t120, 20));\n\t\tlblStreetAdd.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblStreetAdd.setText(\"* Street Address:\");\n\t\ttxtStreetAdd = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtStreetAdd.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 75,\n\t\t\t\t180, 20));\n\t\ttxtStreetAdd.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtStreetAdd.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtStreetKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtStreetAdd.setEnabled(false);\n\n\t\tlblCity = new Label(grpContactDetails, SWT.NONE);\n\t\tlblCity.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 105, 120,\n\t\t\t\t20));\n\t\tlblCity.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCity.setText(\"* City:\");\n\t\ttxtCity = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtCity.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 105, 180,\n\t\t\t\t20));\n\t\ttxtCity.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtCity.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtCityKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtCity.setEnabled(false);\n\n\t\tlblTel = new Label(grpContactDetails, SWT.NONE);\n\t\tlblTel.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 135, 124,\n\t\t\t\t20));\n\t\tlblTel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblTel.setText(\"* Telephone Number:\");\n\t\ttxtTel = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtTel.setBounds(new org.eclipse.swt.graphics.Rectangle(150, 135, 180,\n\t\t\t\t20));\n\t\ttxtTel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtTel.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtTelNoKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtTel.setEnabled(false);\n\n\t\tlblPharmacistName1 = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacistName1.setBounds(new org.eclipse.swt.graphics.Rectangle(18,\n\t\t\t\t165, 120, 20));\n\t\tlblPharmacistName1.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacistName1.setText(\"* Head Pharmacist:\");\n\t\ttxtPharmacistName1 = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacistName1.setBounds(new org.eclipse.swt.graphics.Rectangle(\n\t\t\t\t150, 165, 180, 20));\n\t\ttxtPharmacistName1.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacistName1.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtPharmacistKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtPharmacistName1.setEnabled(false);\n\n\t\tlblPharmacyAssistant = new Label(grpContactDetails, SWT.NONE);\n\t\tlblPharmacyAssistant.setBounds(new org.eclipse.swt.graphics.Rectangle(18,\n\t\t\t\t195, 120, 20));\n\t\tlblPharmacyAssistant.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblPharmacyAssistant.setText(\" Pharmacy Assistant:\");\n\t\ttxtPharmacyAssistant = new Text(grpContactDetails, SWT.BORDER);\n\t\ttxtPharmacyAssistant.setBounds(new org.eclipse.swt.graphics.Rectangle(\n\t\t\t\t150, 195, 180, 20));\n\t\ttxtPharmacyAssistant.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\ttxtPharmacyAssistant.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\ttxtPharmacistKeyReleased();\n\t\t\t\tfieldsChanged = true;\n\t\t\t}\n\t\t});\n\t\ttxtPharmacyAssistant.setEnabled(false);\n\n\t}",
"public static void editContact() {\n System.out.println(\"Enter first name: \");\n String firstName = sc.nextLine();\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i).getFirstName().equalsIgnoreCase(firstName)) {\n list.remove(i);\n addContact();\n } else {\n System.out.println(\"No data found in Address Book\");\n }\n }\n }",
"public void reInit() {\n super.reInit();\n if (m_nameAddress != null) {\n m_nameAddress.reInit();\n }\n }",
"public void initAddressPanel() {\n\t\n\t\t\n\t\t\n\t\tlblAddressLine1 = new JCMSLabel();\n\t\ttxtAddressLine1 = getJCMSTextField();\n\t\tlblAddressLine2 = new JCMSLabel();\n\t\ttxtAddressLine2 = getJCMSTextField();\n\t\tlblZipCode = new JCMSLabel();\n\t\ttxtZipCode = getJCMSTextField();\n\t\tlblCity = new JCMSLabel();\n\t\ttxtCity = getJCMSTextField();\n\t\tlblState = new JCMSLabel();\n\t\ttxtState = getJCMSTextField();\n\t\tlblPhone1 = new JCMSLabel();\n\t\ttxtPhone1 = getJCMSMaskedTextField();\n\t\ttxtPhone1.setName(\"PHONE1\");\n\t\tif (nameSpec != null && nameSpec.length() > 0)\n\t\t\ttxtPhone1.setDocument(new TextFilter(nameSpec, 15));\n\t\tlblAddressLine1.setLabelFor(txtAddressLine1);\n\t\tlblAddressLine1.setText(RESOURCE.getString(\"AddressLine1\"));\n\t\tlblAddressLine2.setText(RESOURCE.getString(\"AddressLine2\"));\n\t\tlblZipCode.setText(RESOURCE.getString(\"Zip Code\"));\n\t\tlblCity.setText(RESOURCE.getString(\"City\"));\n\t\tlblState.setText(RESOURCE.getString(\"State\"));\n\t\tlblPhone1.setText(RESOURCE.getString(\"Phone 1\"));\n\t\tresetAddressPanelType(this.addressPanelType);\n\t\t/**\n\t\t * Text Verifier\n\t\t */\n\t\t// Text limits set as per max sizes allowed over various db tables involved\n\t\t// -MSB 02/10/06\n\t\t// Since Input is free form and we just want to\n\t\t// restrict the text length we don't need to filter\n\t\t// input. This resolves double-byte character input issues.\n\t\ttxtAddressLine1.setDocument(new CMSTextFilter(40));\n\t\ttxtAddressLine2.setDocument(new CMSTextFilter(30));\n\t\ttxtCity.setDocument(new CMSTextFilter(30));\n\t\ttxtState.setDocument(new CMSTextFilter(30));\n\t\ttxtZipCode.setDocument(new CMSTextFilter(10));\n\t\ttxtPhone1.setDocument(new CMSTextFilter(15));\n\t\ttxtPhone2.setDocument(new CMSTextFilter(15));\n\t\ttxtPhone3.setDocument(new CMSTextFilter(15));\n\t}",
"private void populateRooms(){\n\n for(int i = 0; i<squares.size(); i++){\n for(int j = 0; j<squares.get(i).size(); j++){\n if(squares.get(i).get(j) != null) {\n getRoom(squares.get(i).get(j).getColor()).addSquare(squares.get(i).get(j));\n squares.get(i).get(j).setRoom(getRoom(squares.get(i).get(j).getColor()));\n\n }\n }\n }\n }",
"private static String handleFancyStreetNumber(String addressLine, String pattern) {\n if (addressLine.matches(pattern + \".+\") && !isAlphabeticStreetName(addressLine, pattern)) {\n String rightAddr[] = addressLine.split(pattern, 2);\n if (rightAddr.length == 0) return addressLine;\n String rightPart = rightAddr[rightAddr.length - 1];\n String streetNumber = findFirstNumber(addressLine.substring(0, addressLine.indexOf(rightPart)));\n if (streetNumber.length() > 0) return streetNumber + \" \" + rightPart;\n }\n return addressLine;\n }",
"private static void format1(ArrayList<String> l) {\n\t\tArrayList<String> listContents = l;\n\t\tArrayList<Person> personList = new ArrayList<Person>();\n\t\tfor (int i = 0; i < listContents.size(); i++) {\n\t\t\tPerson person = new Person();\n\n\t\t\tperson.setFirstName(listContents.get(i).substring(0, 10).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setLastName(listContents.get(i).substring(10, 27).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setStartDate(listContents.get(i).substring(27, 35).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setAddress(listContents.get(i).substring(35, 45).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setAptNum(listContents.get(i).substring(45, 55).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setCity(listContents.get(i).substring(55, 65).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setState(listContents.get(i).substring(65, 67).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setCountry(listContents.get(i).substring(67, 70).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setZipCode(listContents.get(i).substring(70, 80).replaceFirst(\"\\\\s++$\", \"\"));\n\n\t\t\tpersonList.add(person);\n\t\t}\n\t\tselectSortingOption(personList);\n\t}",
"private void fillPlacesList() {\n // Set up an ArrayAdapter to convert likely places into TextViews to populate the ListView\n ArrayAdapter<String> placesAdapter =\n new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mLikelyPlaceNames);\n lstPlaces.setAdapter(placesAdapter);\n lstPlaces.setOnItemClickListener(listClickedHandler);\n }",
"private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }",
"private void fillCity() {\n \n if(postalCodeTF.getText().length() == 4){\n City city = memberConnection.getCity(postalCodeTF.getText());\n cityTF.setText(city.getCity().replaceAll(\"_\", \" \"));\n municipalTF.setText(city.getMunicipal().replaceAll(\"_\", \" \"));\n }\n }",
"@Override\n\tpublic void setStreet1(java.lang.String street1) {\n\t\t_candidate.setStreet1(street1);\n\t}",
"private void populateFullname() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getFN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n fullname.setAdapter(dataAdapter);\n\n }",
"void addShippingServiceLevelFieldsToDocument(final SolrInputDocument document, final ShippingServiceLevel shippingServiceLevel) {\n\t\taddFieldToDocument(document, SolrIndexConstants.OBJECT_UID, String.valueOf(shippingServiceLevel.getUidPk()));\n\t\taddFieldToDocument(document, SolrIndexConstants.SERVICE_LEVEL_CODE, shippingServiceLevel.getCode());\n\t\taddFieldToDocument(document, SolrIndexConstants.ACTIVE_FLAG, String.valueOf(shippingServiceLevel.isEnabled()));\n\t\taddFieldToDocument(document, SolrIndexConstants.CARRIER, shippingServiceLevel.getCarrier());\n\t\taddFieldToDocument(document, SolrIndexConstants.REGION, shippingServiceLevel.getShippingRegion().getName());\n\t\taddFieldToDocument(document, SolrIndexConstants.SERVICE_LEVEL_NAME, shippingServiceLevel.getDisplayName(shippingServiceLevel.getStore()\n\t\t\t\t.getCatalog().getDefaultLocale(), true));\n\t\taddFieldToDocument(document, SolrIndexConstants.STORE_NAME, shippingServiceLevel.getStore().getName());\n\t\tLOG.trace(\"Finished adding basic fields\");\n\t}",
"public java.lang.String getStreet() {\n return street;\n }",
"public java.lang.String getStreet() {\n return street;\n }",
"public void setClosedStreet(Street s)\r\n {\r\n closed_street = s;\r\n }",
"public void createNewHouseAndAddToList(){\n\t\t\tHouse newHouse = new House();\r\n\t\t\tString id = createAutomaticallyID().trim();\r\n\t\t\tnewHouse.setId(id);\r\n\t\t\tnewHouse.setPrice(Double.parseDouble(priceTextField.getText().trim()));\r\n\t\t\tnewHouse.setNumberOfBathrooms(Integer.parseInt(bathroomsTextField.getText().trim()));\r\n\t\t\tnewHouse.setAirConditionerFeature(airConditionerComboBox.getSelectedItem().toString());\r\n\t\t\tnewHouse.setNumberOfRooms(Integer.parseInt(roomsTextField.getText().trim()));\r\n\t\t\tnewHouse.setSize(Double.parseDouble(sizeTextField.getText().trim()));\r\n\t\t\t\r\n\t\t\toriginalHouseList.add(newHouse);//first adding newHouse to arrayList\r\n\t\t\tcopyEstateAgent.setHouseList(originalHouseList);//then set new arrayList in copyEstateAgent\r\n\r\n\t\t}",
"public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }",
"public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }"
] |
[
"0.59182054",
"0.5886206",
"0.58686084",
"0.58052266",
"0.57882893",
"0.5670058",
"0.5636284",
"0.5276641",
"0.5272836",
"0.52580297",
"0.52348226",
"0.52348226",
"0.52165264",
"0.51811963",
"0.51811963",
"0.51795954",
"0.5160788",
"0.51179147",
"0.5097913",
"0.50685626",
"0.5054107",
"0.5038437",
"0.50232303",
"0.49729604",
"0.49652967",
"0.4920598",
"0.48991075",
"0.4854214",
"0.48531568",
"0.48360512",
"0.48145342",
"0.4791527",
"0.47458455",
"0.47365588",
"0.4734868",
"0.46890086",
"0.46835592",
"0.46790186",
"0.4665933",
"0.46460667",
"0.46079955",
"0.46017224",
"0.459841",
"0.459723",
"0.4591273",
"0.457058",
"0.45634073",
"0.45476183",
"0.45449603",
"0.4544313",
"0.45138976",
"0.4510509",
"0.45079693",
"0.45057175",
"0.45031032",
"0.4475421",
"0.44736463",
"0.44690794",
"0.44618216",
"0.44618216",
"0.44453868",
"0.44434708",
"0.44402033",
"0.44402033",
"0.44393367",
"0.44344023",
"0.44168887",
"0.43927413",
"0.4386816",
"0.43862927",
"0.43860325",
"0.4384267",
"0.4381377",
"0.43764156",
"0.43721402",
"0.43671894",
"0.4361587",
"0.43594864",
"0.43572393",
"0.43380907",
"0.43353948",
"0.4333582",
"0.43329453",
"0.43293312",
"0.43290815",
"0.43246627",
"0.43088737",
"0.43035805",
"0.43005377",
"0.42995298",
"0.42994684",
"0.4291714",
"0.42898837",
"0.42880806",
"0.42857432",
"0.42857432",
"0.42603394",
"0.42586163",
"0.42574757",
"0.42574757"
] |
0.7773899
|
0
|
Get the GridBagConstraints for this object.
|
public GridBagConstraints getConstraints() {
GridBagConstraints constraints = new GridBagConstraints();
constraints.weightx = 0.1;
constraints.weighty = 0.1;
constraints.fill = GridBagConstraints.BOTH;
constraints.gridx = 1;
constraints.gridy = 1;
return constraints;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public GridBagConstraints getGridBagConstraints()\n\t{\n\t\tGridBagConstraints gbc = super.getGridBagConstraints();\n\t\tgbc.gridx = 1;\n\t\tgbc.gridy = 3;\n\t\treturn gbc;\n\t}",
"protected GridBagConstraints getGbc(int row) {\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.fill = GridBagConstraints.HORIZONTAL;\r\n gbc.weightx = 1;\r\n gbc.gridy = row;\r\n gbc.insets = new Insets(8,7,4,7);\r\n return gbc;\r\n }",
"public GridBagPanel fillBoth()\n {\n myGBC.fill = GridBagConstraints.BOTH;\n myGBC.weightx = 1.0;\n myGBC.weighty = 1.0;\n return this;\n }",
"public interface GridBagConstraints {\n\n\t/** The HORIZONTAL. */\n\tpublic static Object HORIZONTAL = null;\n\t\n\t/** The BOTH. */\n\tpublic static Object BOTH = null;\n\t\n\t/** The EAST. */\n\tpublic static Object EAST = null;\n\t\n\t/**\n\t * Sets the fill.\n\t * \n\t * @param both2\n\t * the new fill\n\t */\n\tvoid setFill(Object both2);\n\t\n\t/**\n\t * Sets the grid x.\n\t * \n\t * @param i\n\t * the new grid x\n\t */\n\tvoid setGridX(int i);\n\t\n\t/**\n\t * Sets the grid y.\n\t * \n\t * @param i\n\t * the new grid y\n\t */\n\tvoid setGridY(int i);\n\t\n\t/**\n\t * Sets the insets.\n\t * \n\t * @param insets\n\t * the new insets\n\t */\n\tvoid setInsets(Insets insets);\n\t\n\t/**\n\t * Sets the anchor.\n\t * \n\t * @param east2\n\t * the new anchor\n\t */\n\tvoid setAnchor(Object east2);\n\t\n}",
"public GridBagConstraints getGbc(GBC tipo) {\n\t\t// El GBC que retornara\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\tint gridx = 0;\n\t\tint gridy = 0;\n\t\tint gridwidth = 0;\n\t\tint gridheight = 0;\n\t\tfloat weightx = 0;\n\t\tfloat weighty = 0;\n\t\tint fill = GridBagConstraints.NONE;\n\t\tInsets insets = new Insets(0, 0, 0, 0);\n\t\tswitch (tipo) {\n\t\tcase LABELCAJA:\n\t\t\tgridx = 0;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 1;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.HORIZONTAL;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase LABELX:\n\t\t\tgridx = 1;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 0;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.NONE;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase POSX:\n\t\t\tgridx = 2;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 0;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.NONE;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase LABELY:\n\t\t\tgridx = 3;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 0;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.NONE;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase POSY:\n\t\t\tgridx = 4;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 0;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.NONE;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase BOTONACTUALIZAR:\n\t\t\tgridx = 5;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 0;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.NONE;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase BOTONGUARDAR:\n\t\t\tgridx = 6;\n\t\t\tgridy = 0;\n\t\t\tgridwidth = 1;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 0;\n\t\t\tweighty = 0;\n\t\t\tfill = GridBagConstraints.NONE;\n\t\t\tinsets = new Insets(5, 5, 5, 5);\n\t\t\tbreak;\n\t\tcase IMAGEN:\n\t\t\tgridx = 0;\n\t\t\tgridy = 2;\n\t\t\tgridwidth = 7;\n\t\t\tgridheight = 1;\n\t\t\tweightx = 1;\n\t\t\tweighty = 1;\n\t\t\tfill = GridBagConstraints.BOTH;\n\t\t\tinsets = new Insets(10, 10, 10, 10);\n\t\t\tbreak;\n\t\t}\n\n\t\tgbc.gridx = gridx;\n\t\tgbc.gridy = gridy;\n\t\tgbc.gridwidth = gridwidth;\n\t\tgbc.gridheight = gridheight;\n\t\tgbc.weightx = weightx;\n\t\tgbc.weighty = weighty;\n\t\tgbc.fill = fill;\n\t\tgbc.insets = insets;\n\n\t\treturn gbc;\n\t}",
"public GridBagPanel fillHorizontal()\n {\n myGBC.fill = GridBagConstraints.HORIZONTAL;\n myGBC.weightx = 1.0;\n myGBC.weighty = 0.0;\n return this;\n }",
"private JPanel getJPanelBorder() {\r\n\t\tif (jPanelBorder == null) {\r\n\t\t\tjPanelBorder = new JPanel();\r\n\t\t\tjPanelBorder.setLayout(new GridBagLayout());\r\n\t\t\t//jPanelBorder.setLayout(new BoxLayout(jPanelBorder, BoxLayout.Y_AXIS));\r\n\t\t\t//jPanelBorder.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 0));\t\r\n\t\t\tjPanelBorder.setBorder(new TitledBorder(null, \"Border\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\r\n\t\t\tGridBagConstraints gbc_Top= new GridBagConstraints();\r\n\t\t\tgbc_Top.gridx = 1;\r\n\t\t\tgbc_Top.gridy = 0;\r\n\t\t\tgbc_Top.gridwidth = 1;\r\n\t\t\tgbc_Top.insets = new Insets(5, 0, 0, 0); // top left bottom right\r\n\t\t\t//gbc_Top.fill = GridBagConstraints.BOTH;\r\n\t\t\t\r\n\t\t\tGridBagConstraints gbc_Left = new GridBagConstraints();\r\n\t\t\tgbc_Left.gridx = 0;\r\n\t\t\tgbc_Left.gridy = 1;\r\n\t\t\tgbc_Left.gridwidth = 1;\r\n\t\t\tgbc_Left.insets = new Insets(10, 0, 0, 0); // top left bottom right\r\n\t\t\t//gbc_Left.fill = GridBagConstraints.BOTH;\r\n\t\t\t\r\n\t\t\tGridBagConstraints gbc_Right = new GridBagConstraints();\r\n\t\t\tgbc_Right.gridx = 2;\r\n\t\t\tgbc_Right.gridy = 1;\r\n\t\t\tgbc_Right.gridwidth = 1;\r\n\t\t\tgbc_Right.insets = new Insets(10, 0, 0, 0); // top left bottom right\r\n\t\t\t//gbc_Right.fill = GridBagConstraints.BOTH;\r\n\t\t\t\r\n\t\t\tGridBagConstraints gbc_Bottom = new GridBagConstraints();\r\n\t\t\tgbc_Bottom.gridx = 1;\r\n\t\t\tgbc_Bottom.gridy = 2;\r\n\t\t\tgbc_Bottom.gridwidth = 1;\r\n\t\t\tgbc_Bottom.insets = new Insets(10, 0, 5, 0); // top left bottom right\r\n\t\t\t//gbc_Bottom.fill = GridBagConstraints.BOTH;\r\n\t\t\r\n\t\t\tjPanelBorder.add(this.getJPanelTop(), gbc_Top);\r\n\t\t\tjPanelBorder.add(this.getJPanelLeft(), gbc_Left);\r\n\t\t\tjPanelBorder.add(this.getJPanelRight(), gbc_Right);\t\r\n\t\t\tjPanelBorder.add(this.getJPanelBottom(), gbc_Bottom);\t\r\n\t\t}\r\n\t\treturn jPanelBorder;\r\n\t}",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t\tgridBagConstraints14.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints14.gridwidth = 3;\r\n\t\t\tgridBagConstraints14.weightx = 1.0D;\r\n\t\t\tgridBagConstraints14.insets = new Insets(16, 0, 8, 0);\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints14.gridy = 2;\r\n\t\t\tGridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints13.gridx = 2;\r\n\t\t\tgridBagConstraints13.insets = new Insets(4, 8, 0, 16);\r\n\t\t\tgridBagConstraints13.gridy = 1;\r\n\t\t\tlabel4 = new BLabel();\r\n\t\t\tlabel4.setText(\":0:000\");\r\n\t\t\tGridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints12.gridy = 1;\r\n\t\t\tgridBagConstraints12.weightx = 1.0;\r\n\t\t\tgridBagConstraints12.insets = new Insets(4, 0, 0, 0);\r\n\t\t\tgridBagConstraints12.gridx = 1;\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.gridx = 0;\r\n\t\t\tgridBagConstraints3.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints3.insets = new Insets(4, 16, 0, 8);\r\n\t\t\tgridBagConstraints3.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints3.gridy = 1;\r\n\t\t\tlblEnd = new BLabel();\r\n\t\t\tlblEnd.setText(\"End\");\r\n\t\t\tlblEnd.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\tlblEnd.setHorizontalTextPosition(SwingConstants.RIGHT);\r\n\t\t\tlblEnd.setVerticalAlignment(SwingConstants.CENTER);\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.gridx = 2;\r\n\t\t\tgridBagConstraints2.insets = new Insets(8, 8, 0, 16);\r\n\t\t\tgridBagConstraints2.gridy = 0;\r\n\t\t\tlabel3 = new BLabel();\r\n\t\t\tlabel3.setText(\":0:000\");\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints1.gridy = 0;\r\n\t\t\tgridBagConstraints1.weightx = 1.0;\r\n\t\t\tgridBagConstraints1.insets = new Insets(8, 0, 0, 0);\r\n\t\t\tgridBagConstraints1.gridx = 1;\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints.insets = new Insets(8, 16, 0, 8);\r\n\t\t\tgridBagConstraints.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tlblStart = new BLabel();\r\n\t\t\tlblStart.setText(\"Start\");\r\n\t\t\tlblStart.setPreferredSize(new Dimension(30, 13));\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new GridBagLayout());\r\n\t\t\tjContentPane.add(lblStart, gridBagConstraints);\r\n\t\t\tjContentPane.add(getNumStart(), gridBagConstraints1);\r\n\t\t\tjContentPane.add(label3, gridBagConstraints2);\r\n\t\t\tjContentPane.add(lblEnd, gridBagConstraints3);\r\n\t\t\tjContentPane.add(getNumEnd(), gridBagConstraints12);\r\n\t\t\tjContentPane.add(label4, gridBagConstraints13);\r\n\t\t\tjContentPane.add(getJPanel(), gridBagConstraints14);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private JPanel getConfigInfo() {\r\n\t\tif (configInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints14.gridy = 0;\r\n\t\t\tgridBagConstraints14.weightx = 1.0;\r\n\t\t\tgridBagConstraints14.weighty = 1.0;\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t}\r\n\t\treturn configInfo;\r\n\t}",
"public GridBagPanel anchorCenter()\n {\n myGBC.anchor = GridBagConstraints.CENTER;\n return this;\n }",
"public GridPane getGrid() {\n return grid;\n }",
"public GridBagPanel anchorNorth()\n {\n myGBC.anchor = GridBagConstraints.NORTH;\n return this;\n }",
"public GridBagPanel anchorWest()\n {\n myGBC.anchor = GridBagConstraints.WEST;\n return this;\n }",
"public GridBagConstraints limitarComponente(int x, int y, int w, int h) {\n\n\t\tGridBagConstraints constraints = new GridBagConstraints();\n\t\tconstraints.gridx = x;\n\t\tconstraints.gridy = y;\n\t\tconstraints.gridwidth = w;\n\t\tconstraints.gridheight = h;\n\n\t\treturn constraints;\n\t}",
"public GridBagPanel incrementGridy()\n {\n myGBC.gridy++;\n return this;\n }",
"public JComponent getComponent() {\n return itsComp;\n }",
"private javax.swing.JPanel getJContentPane()\n {\n if( jContentPane == null )\n {\n java.awt.GridBagConstraints gridBagConstraints12 = new GridBagConstraints();\n java.awt.GridBagConstraints gridBagConstraints21 = new GridBagConstraints();\n m_lblRecieved = new JLabel();\n m_lblSend = new JLabel();\n java.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n java.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\n jContentPane = new javax.swing.JPanel();\n jContentPane.setLayout( new GridBagLayout() );\n m_lblSend.setText( \"Send\" ); // Generated\n m_lblRecieved.setText( \"Recieved\" ); // Generated\n gridBagConstraints1.gridx = 0; // Generated\n gridBagConstraints1.gridy = 0; // Generated\n gridBagConstraints1.ipadx = 250; // Generated\n gridBagConstraints1.insets = new java.awt.Insets( 0, 0, 0, 0 ); // Generated\n gridBagConstraints2.gridx = 0; // Generated\n gridBagConstraints2.gridy = 3; // Generated\n gridBagConstraints2.ipadx = 250; // Generated\n gridBagConstraints2.insets = new java.awt.Insets( 0, 0, 0, 0 ); // Generated\n gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; // Generated\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST; // Generated\n gridBagConstraints2.weightx = 1.0D; // Generated\n gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; // Generated\n gridBagConstraints1.weightx = 1.0D; // Generated\n gridBagConstraints1.weighty = 0.0D; // Generated\n gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST; // Generated\n gridBagConstraints21.gridx = 0; // Generated\n gridBagConstraints21.gridy = 1; // Generated\n gridBagConstraints21.weightx = 1.0; // Generated\n gridBagConstraints21.fill = java.awt.GridBagConstraints.HORIZONTAL; // Generated\n gridBagConstraints21.anchor = java.awt.GridBagConstraints.NORTHWEST; // Generated\n gridBagConstraints12.gridx = 0; // Generated\n gridBagConstraints12.gridy = 4; // Generated\n gridBagConstraints12.weightx = 1.0; // Generated\n gridBagConstraints12.weighty = 1.0; // Generated\n gridBagConstraints12.fill = java.awt.GridBagConstraints.BOTH; // Generated\n gridBagConstraints12.anchor = java.awt.GridBagConstraints.NORTHWEST; // Generated\n jContentPane.add( m_lblSend, gridBagConstraints1 ); // Generated\n jContentPane.add( m_lblRecieved, gridBagConstraints2 ); // Generated\n jContentPane.add( getM_fldSend(), gridBagConstraints21 ); // Generated\n jContentPane.add( getJScrollPane(), gridBagConstraints12 ); // Generated\n }\n return jContentPane;\n }",
"public JComponent getWidget() {\n return itsComp;\n }",
"public GridBagLayoutCustomizer() {\r\n // UI\r\n Container c1 = (Container) getComponent(1); // right base panel\r\n//Debug.println(c1.getName());\r\n Component c2 = c1.getComponent(0); // upper titled border panel\r\n//Debug.println(c2.getName());\r\n c1.remove(c2);\r\n ((GridLayout) c1.getLayout()).setRows(1);\r\n c1.doLayout();\r\n\r\n // init\r\n this.gridbag = new GridBagLayout();\r\n this.layout = new GridBagLayout();\r\n\r\n layoutPanel.setLayout(gridbag);\r\n\r\n constraintsEditor = new GridBagLayoutConstraintsEditor(gridbag);\r\n constraintsEditor.setPropertyChangeListner(pcl);\r\n\r\n lcPanel.addMouseListener(ml);\r\n }",
"private void initComponents() {\n\t\tlabel1 = new JLabel();\n\t\tlabel2 = new JLabel();\n\t\tlblId = new JLabel();\n\t\tlabel3 = new JLabel();\n\t\ttxtName = new JTextField();\n\t\tlabel8 = new JLabel();\n\t\ttxtCapacity = new JTextField();\n\t\tlabel4 = new JLabel();\n\t\ttxtSurvivalRate = new JTextField();\n\t\tlabel5 = new JLabel();\n\t\tcomboReserve1 = new JComboBox<>();\n\t\tlabel6 = new JLabel();\n\t\tcomboReserve2 = new JComboBox<>();\n\n\t\t//======== this ========\n\t\tsetLayout(new GridBagLayout());\n\t\t((GridBagLayout)getLayout()).columnWidths = new int[] {54, 0, 0};\n\t\t((GridBagLayout)getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0};\n\t\t((GridBagLayout)getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};\n\t\t((GridBagLayout)getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};\n\n\t\t//---- label1 ----\n\t\tlabel1.setText(\"Link Properties\");\n\t\tlabel1.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tadd(label1, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 15, 0), 0, 0));\n\n\t\t//---- label2 ----\n\t\tlabel2.setText(\"id\");\n\t\tadd(label2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.VERTICAL,\n\t\t\tnew Insets(0, 0, 15, 15), 0, 0));\n\t\tadd(lblId, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 15, 0), 0, 0));\n\n\t\t//---- label3 ----\n\t\tlabel3.setText(\"name\");\n\t\tadd(label3, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.VERTICAL,\n\t\t\tnew Insets(0, 0, 15, 15), 0, 0));\n\t\tadd(txtName, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 15, 0), 0, 0));\n\n\t\t//---- label8 ----\n\t\tlabel8.setText(\"capacity\");\n\t\tadd(label8, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.VERTICAL,\n\t\t\tnew Insets(0, 0, 15, 15), 0, 0));\n\t\tadd(txtCapacity, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 15, 0), 0, 0));\n\n\t\t//---- label4 ----\n\t\tlabel4.setText(\"survival rate\");\n\t\tadd(label4, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.VERTICAL,\n\t\t\tnew Insets(0, 0, 15, 15), 0, 0));\n\t\tadd(txtSurvivalRate, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 15, 0), 0, 0));\n\n\t\t//---- label5 ----\n\t\tlabel5.setText(\"reserve 1\");\n\t\tadd(label5, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.VERTICAL,\n\t\t\tnew Insets(0, 0, 15, 15), 0, 0));\n\t\tadd(comboReserve1, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 15, 0), 0, 0));\n\n\t\t//---- label6 ----\n\t\tlabel6.setText(\"reserve 2\");\n\t\tadd(label6, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.VERTICAL,\n\t\t\tnew Insets(0, 0, 0, 15), 0, 0));\n\t\tadd(comboReserve2, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0,\n\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\n\t\t\tnew Insets(0, 0, 0, 0), 0, 0));\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}",
"public final Paint getGridPaint() {\n return gridPaint;\n }",
"public JPanel getPanel() {\n\t\treturn barChartPanel;\n\t}",
"public static Container addGBCComponent(Container parent, Container child, int x, int y, double weightX, double weightY){\n\t\tGridBagConstraints gbc= new GridBagConstraints();\t\n\t\tgbc.gridy= y;\n\t\tgbc.gridx= x;\t\t\n\t\tgbc.weightx= weightX;\n\t\tgbc.weighty= weightY;\n\t\tgbc.fill= GridBagConstraints.BOTH;\t\t\n\t\tparent.add(child, gbc);\n\t\treturn child;\n\t}",
"public GridPane getGrid(){\n\t\treturn myGrid;\n\t}",
"public CellGrid getCellGrid() {\n return cellGrid;\n }",
"public GridBagPanel fillVertical()\n {\n myGBC.fill = GridBagConstraints.VERTICAL;\n myGBC.weightx = 0.0;\n myGBC.weighty = 1.0;\n return this;\n }",
"private void layoutComponents() {\n\n\t\tsetLayout(new GridBagLayout());\n\n\t\tGridBagConstraints c = new GridBagConstraints();\n\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.weightx = 1;\n\t\tc.weighty = 0.3;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tadd(titleLabel, c);\n\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\tc.weightx = 1;\n\t\tc.weighty = 0.7;\n\t\tc.gridy++;\n\t\tc.insets = new Insets(0, 25, 25, 25);\n\t\tadd(tableSP, c);\n\n\t}",
"public JComponent getComponent();",
"public JComponent getHeaderComponent() {\r\n JPanel panel = new JPanel();\r\n panel.setBackground(Color.white);\r\n GridBagConstraints constraints = new GridBagConstraints();\r\n GridBagLayout gridbag = new GridBagLayout();\r\n panel.setLayout(gridbag);\r\n constraints.fill = GridBagConstraints.HORIZONTAL;\r\n buildConstraints(constraints, 0, 0, 1, 1, 100, 100);\r\n gridbag.setConstraints(header, constraints);\r\n panel.add(header);\r\n return panel;\r\n //return header;\r\n }",
"GridBagLayoutCalc(){\n\n windowContent = new JPanel();\n\n // Set the layout manager for this panel\n GridBagLayout gblwc = new GridBagLayout();\n windowContent.setLayout(gblwc);\n\n\n // Create the display field and place it in the\n // North area of the window\n\n displayField = new JTextField(20);\n gblwc.setConstraints(displayField, constr);\n windowContent.add(\"0\",displayField);\n \n\n // Create buttons using constructor of the\n // class JButton that takes the label of the\n // button as a parameter\n\n JButton[] numbers = new JButton[10];\n JButton[] equals = new JButton[1];\n JButton[] controllers = new JButton[4];\n\n String[] numbers_name = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\"};\n String[] equals_name = {\"=\"};\n String[] controllers_name = {\"+\", \"-\", \"*\", \"/\"};\n\n // Create the panel with the GridBagLayout with 15 buttons\n //10 numeric ones, 4 controllers, and the equal sign\n\n p1 = new JPanel();\n GridBagLayout gbl =new GridBagLayout();\n p1.setLayout(gbl);\n\n // Add window controls to the panel p1\n panelMaker(numbers, numbers_name, p1, Color.BLUE);\n panelMaker(equals, equals_name, p1, Color.BLACK);\n panelMaker(controllers, controllers_name, p1, Color.BLACK);\n\n }",
"public BrickGraphic getBrickGraphic(){\r\n\t\treturn new BrickGraphic(this.getX(), this.getY(), this.getSizeX(),\r\n\t\t\t\tthis.getSizeY(), this.getColor());\r\n\t}",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.weightx = 1.0D;\r\n\t\t\tgridBagConstraints6.gridy = 0;\r\n\t\t\tlblRightValue = new BLabel();\r\n\t\t\tlblRightValue.setText(\"\");\r\n\t\t\tlblRightValue.setPreferredSize(new Dimension(4, 4));\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.gridx = 1;\r\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints5.insets = new Insets(0, 0, 0, 0);\r\n\t\t\tgridBagConstraints5.gridy = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.gridx = 2;\r\n\t\t\tgridBagConstraints4.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints4.insets = new Insets(0, 0, 0, 12);\r\n\t\t\tgridBagConstraints4.gridy = 0;\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(new GridBagLayout());\r\n\t\t\tjPanel.add(getBtnOK(), gridBagConstraints4);\r\n\t\t\tjPanel.add(getBtnCancel(), gridBagConstraints5);\r\n\t\t\tjPanel.add(lblRightValue, gridBagConstraints6);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"private JPanel getContent()\r\n\t{\r\n\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setLayout(new GridBagLayout());\r\n\t\t\t\t\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\t\r\n\t\tc.insets = new Insets(10, 5, 0, 5);\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx =1.0;\r\n\t\tc.gridy = 0;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new CustLabel(\"Risikostrategie für die Bestellung\"),c);\r\n\t\t\r\n\t\tc.gridy = 1;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new OrderRiskPane(),c);\r\n\t\t\r\n\t\tc.insets.top=30;\t\r\n\t\tc.gridy = 2;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new CustLabel(\"Überstunden\"),c);\r\n\t\t\r\n\t\tc.insets.top=10;\t\r\n\t\tc.gridy = 3;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new OvertimePane(),c);\r\n\t\t\r\n\t\treturn pane;\r\n\t}",
"public GridBagPanel incrementGridx()\n {\n myGBC.gridx++;\n return this;\n }",
"public ComposedFrame getComposedFrame() {\n return mTextContainer.getComposedFrame();\n }",
"private JPanel getConfigurationInfo() {\r\n\t\tif (configurationInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints36 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints36.gridx = 1;\r\n\t\t\tgridBagConstraints36.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints36.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints36.weightx = 0.0;\r\n\t\t\tgridBagConstraints36.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints36.gridy = 5;\r\n\t\t\tnumberEngines = new JLabel();\r\n\t\t\tnumberEngines.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints35 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints35.gridx = 1;\r\n\t\t\tgridBagConstraints35.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints35.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints35.weightx = 0.0;\r\n\t\t\tgridBagConstraints35.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints35.gridy = 4;\r\n\t\t\tcenterOfGravity = new JLabel();\r\n\t\t\tcenterOfGravity.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints34 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints34.gridx = 1;\r\n\t\t\tgridBagConstraints34.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints34.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints34.weightx = 0.0;\r\n\t\t\tgridBagConstraints34.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints34.gridy = 3;\r\n\t\t\tgrossWeight = new JLabel();\r\n\t\t\tgrossWeight.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints33 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints33.gridx = 1;\r\n\t\t\tgridBagConstraints33.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints33.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints33.weightx = 0.0;\r\n\t\t\tgridBagConstraints33.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints33.gridy = 2;\r\n\t\t\tmaximumLoadFactor = new JLabel();\r\n\t\t\tmaximumLoadFactor.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints32 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints32.gridx = 3;\r\n\t\t\tgridBagConstraints32.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints32.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints32.weightx = 0.0;\r\n\t\t\tgridBagConstraints32.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints32.gridy = 5;\r\n\t\t\toptimumEndurance = new JLabel();\r\n\t\t\toptimumEndurance.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints30 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints30.gridx = 3;\r\n\t\t\tgridBagConstraints30.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints30.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints30.weightx = 0.0;\r\n\t\t\tgridBagConstraints30.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints30.gridy = 4;\r\n\t\t\toptimumCruiseIAS = new JLabel();\r\n\t\t\toptimumCruiseIAS.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints29 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints29.gridx = 3;\r\n\t\t\tgridBagConstraints29.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints29.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints29.weightx = 0.0;\r\n\t\t\tgridBagConstraints29.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints29.gridy = 3;\r\n\t\t\tmaximumIAS = new JLabel();\r\n\t\t\tmaximumIAS.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints28 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints28.gridx = 3;\r\n\t\t\tgridBagConstraints28.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints28.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints28.weightx = 0.0;\r\n\t\t\tgridBagConstraints28.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints28.gridy = 2;\r\n\t\t\tpropulsionBatery = new JLabel();\r\n\t\t\tpropulsionBatery.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints27 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints27.gridx = 3;\r\n\t\t\tgridBagConstraints27.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints27.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints27.weightx = 0.0;\r\n\t\t\tgridBagConstraints27.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints27.gridy = 0;\r\n\t\t\tpropulsionFuel = new JLabel();\r\n\t\t\tpropulsionFuel.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints26 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints26.gridx = 1;\r\n\t\t\tgridBagConstraints26.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints26.weightx = 5.0;\r\n\t\t\tgridBagConstraints26.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints26.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints26.gridy = 0;\r\n\t\t\tconfigurationId = new JLabel();\r\n\t\t\tconfigurationId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints25 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints25.gridx = 0;\r\n\t\t\tgridBagConstraints25.weightx = 0.0;\r\n\t\t\tgridBagConstraints25.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints25.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints25.gridy = 5;\r\n\t\t\tjLabel8111111111 = new JLabel();\r\n\t\t\tjLabel8111111111.setText(\"Number of engines:\");\r\n\t\t\tGridBagConstraints gridBagConstraints24 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints24.gridx = 0;\r\n\t\t\tgridBagConstraints24.weightx = 0.0;\r\n\t\t\tgridBagConstraints24.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints24.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints24.gridy = 4;\r\n\t\t\tjLabel811111111 = new JLabel();\r\n\t\t\tjLabel811111111.setText(\"Center of gravity from nose:\");\r\n\t\t\tGridBagConstraints gridBagConstraints23 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints23.gridx = 0;\r\n\t\t\tgridBagConstraints23.weightx = 0.0;\r\n\t\t\tgridBagConstraints23.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints23.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints23.gridy = 3;\r\n\t\t\tjLabel81111111 = new JLabel();\r\n\t\t\tjLabel81111111.setText(\"Gross weight:\");\r\n\t\t\tGridBagConstraints gridBagConstraints22 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints22.gridx = 0;\r\n\t\t\tgridBagConstraints22.weightx = 0.0;\r\n\t\t\tgridBagConstraints22.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints22.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints22.gridy = 2;\r\n\t\t\tjLabel8111111 = new JLabel();\r\n\t\t\tjLabel8111111.setText(\"Maximum load factor:\");\r\n\t\t\tGridBagConstraints gridBagConstraints20 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints20.gridx = 2;\r\n\t\t\tgridBagConstraints20.weightx = 0.0;\r\n\t\t\tgridBagConstraints20.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints20.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints20.gridy = 5;\r\n\t\t\tjLabel811111 = new JLabel();\r\n\t\t\tjLabel811111.setText(\"Optimum endurance IAS:\");\r\n\t\t\tGridBagConstraints gridBagConstraints19 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints19.gridx = 2;\r\n\t\t\tgridBagConstraints19.weightx = 0.0;\r\n\t\t\tgridBagConstraints19.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints19.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints19.gridy = 4;\r\n\t\t\tjLabel81111 = new JLabel();\r\n\t\t\tjLabel81111.setText(\"Optimum cruise IAS::\");\r\n\t\t\tGridBagConstraints gridBagConstraints18 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints18.gridx = 2;\r\n\t\t\tgridBagConstraints18.weightx = 0.0;\r\n\t\t\tgridBagConstraints18.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints18.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints18.gridy = 3;\r\n\t\t\tjLabel8111 = new JLabel();\r\n\t\t\tjLabel8111.setText(\"Maximum IAS:\");\r\n\t\t\tGridBagConstraints gridBagConstraints17 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints17.gridx = 2;\r\n\t\t\tgridBagConstraints17.weightx = 0.0;\r\n\t\t\tgridBagConstraints17.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints17.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints17.gridy = 2;\r\n\t\t\tjLabel811 = new JLabel();\r\n\t\t\tjLabel811.setText(\"Propulsion battery capacity:\");\r\n\t\t\tGridBagConstraints gridBagConstraints16 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints16.gridx = 2;\r\n\t\t\tgridBagConstraints16.weightx = 0.0;\r\n\t\t\tgridBagConstraints16.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints16.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints16.gridy = 0;\r\n\t\t\tjLabel81 = new JLabel();\r\n\t\t\tjLabel81.setText(\"Propulsion fuel capacity:\");\r\n\t\t\tGridBagConstraints gridBagConstraints15 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints15.gridx = 0;\r\n\t\t\tgridBagConstraints15.weightx = 1.0;\r\n\t\t\tgridBagConstraints15.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints15.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints15.fill = GridBagConstraints.NONE;\r\n\t\t\tgridBagConstraints15.gridy = 0;\r\n\t\t\tjLabel8 = new JLabel();\r\n\t\t\tjLabel8.setText(\"Configuration ID:\");\r\n\t\t\tconfigurationInfo = new JPanel();\r\n\t\t\tconfigurationInfo.setLayout(new GridBagLayout());\r\n\t\t\tconfigurationInfo.add(jLabel8, gridBagConstraints15);\r\n\t\t\tconfigurationInfo.add(jLabel81, gridBagConstraints16);\r\n\t\t\tconfigurationInfo.add(jLabel811, gridBagConstraints17);\r\n\t\t\tconfigurationInfo.add(jLabel8111, gridBagConstraints18);\r\n\t\t\tconfigurationInfo.add(jLabel81111, gridBagConstraints19);\r\n\t\t\tconfigurationInfo.add(jLabel811111, gridBagConstraints20);\r\n\t\t\tconfigurationInfo.add(jLabel8111111, gridBagConstraints22);\r\n\t\t\tconfigurationInfo.add(jLabel81111111, gridBagConstraints23);\r\n\t\t\tconfigurationInfo.add(jLabel811111111, gridBagConstraints24);\r\n\t\t\tconfigurationInfo.add(jLabel8111111111, gridBagConstraints25);\r\n\t\t\tconfigurationInfo.add(configurationId, gridBagConstraints26);\r\n\t\t\tconfigurationInfo.add(propulsionFuel, gridBagConstraints27);\r\n\t\t\tconfigurationInfo.add(propulsionBatery, gridBagConstraints28);\r\n\t\t\tconfigurationInfo.add(maximumIAS, gridBagConstraints29);\r\n\t\t\tconfigurationInfo.add(optimumCruiseIAS, gridBagConstraints30);\r\n\t\t\tconfigurationInfo.add(optimumEndurance, gridBagConstraints32);\r\n\t\t\tconfigurationInfo.add(maximumLoadFactor, gridBagConstraints33);\r\n\t\t\tconfigurationInfo.add(grossWeight, gridBagConstraints34);\r\n\t\t\tconfigurationInfo.add(centerOfGravity, gridBagConstraints35);\r\n\t\t\tconfigurationInfo.add(numberEngines, gridBagConstraints36);\r\n\t\t}\r\n\t\treturn configurationInfo;\r\n\t}",
"public static Container addGBCComponent(Container parent, Container child, int x, int y, double weightX, double weightY, int fill, int anchor){\n\t\tGridBagConstraints gbc= new GridBagConstraints();\t\n\t\tgbc.gridy= y;\n\t\tgbc.gridx= x;\t\t\n\t\tgbc.weightx= weightX;\n\t\tgbc.weighty= weightY;\n\t\t//gbc.fill= GridBagConstraints.BOTH;\n\t\tgbc.fill= fill;\n\t\tgbc.anchor= GridBagConstraints.NORTH;\n\t\tparent.add(child, gbc);\n\t\treturn child;\n\t}",
"public Grid getGrid() {\n \t\treturn grid;\n \t}",
"void gridMaker() {\n\n this.setLayout(new GridBagLayout());\n GridBagConstraints instrumentC = new GridBagConstraints();\n\n String fs = File.separator;\n\n instrumentIcons[0] = \"..\" + fs + \"icons\" + fs + \"guitar.png\";\n instrumentIcons[1] = \"..\" + fs + \"icons\" + fs + \"saxophone.png\";\n instrumentIcons[2] = \"..\" + fs + \"icons\" + fs + \"drums.png\";\n instrumentIcons[3] = \"..\" + fs + \"icons\" + fs + \"bass.png\";\n instrumentIcons[4] = \"..\" + fs + \"icons\" + fs + \"piano.png\";\n instrumentIcons[5] = \"..\" + fs + \"icons\" + fs + \"misc.png\";\n instrumentIcons[6] = \"..\" + fs + \"icons\" + fs + \"misc2.png\";\n instrumentIcons[7] = \"..\" + fs + \"icons\" + fs + \"misc3.png\";\n\n\n iconsFocused[0] = \"..\" + fs + \"icons\" + fs + \"guitar_focus.png\";\n iconsFocused[1] = \"..\" + fs + \"icons\" + fs + \"saxophone_focus.png\";\n iconsFocused[2] = \"..\" + fs + \"icons\" + fs + \"drums_focus.png\";\n iconsFocused[3] = \"..\" + fs + \"icons\" + fs + \"bass_focus.png\";\n iconsFocused[4] = \"..\" + fs + \"icons\" + fs + \"piano_focus.png\";\n iconsFocused[5] = \"..\" + fs + \"icons\" + fs + \"misc_focus.png\";\n iconsFocused[6] = \"..\" + fs + \"icons\" + fs + \"misc2_focus.png\";\n iconsFocused[7] = \"..\" + fs + \"icons\" + fs + \"misc3_focus.png\";\n\n\n instrumentID[0] = \"Guitar\";\n instrumentID[1] = \"Saxophone\";\n instrumentID[2] = \"Drums\";\n instrumentID[3] = \"Bass\";\n instrumentID[4] = \"Piano\";\n instrumentID[5] = \"Misc\";\n instrumentID[6] = \"Misc 2\";\n instrumentID[7] = \"Misc 3\";\n\n /**\n * The for loop goes through the list with the instruments and adds the matching icon to that button\n * and.\n */\n\n\n int columnIndex = 0;\n int rowIndex = 0;\n for (int i = 0; i < buttonList.length; i++) {\n buttonList[i] = new JButton();\n try {\n Image img = ImageIO.read(getClass().getResource(instrumentIcons[i]));\n buttonList[i].setIcon(new ImageIcon(img));\n } catch (IOException ignored) {\n System.out.println(\"Icon error\");\n }\n buttonList[i].setBackground(BUTTON_BACKGROUND);\n instrumentC.fill = GridBagConstraints.BOTH;\n instrumentC.ipady = BUTTON_PADDING_Y;\n instrumentC.ipadx = BUTTON_PADDING_X;\n instrumentC.gridx = columnIndex;\n instrumentC.gridy = rowIndex;\n this.add(buttonList[i], instrumentC);\n\n\n columnIndex = (columnIndex < 1 ? columnIndex + 1 : 0);\n if (columnIndex == 0) {\n rowIndex += 1;\n }\n }\n\n setInstrumentPanelListeners();\n\n }",
"public ReportingControlPanel(){\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\t\r\n\t\t\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tc.anchor = GridBagConstraints.PAGE_START;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.weighty = 0;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 0;\r\n\t\tc.gridheight = 1;\r\n\t\tc.insets = new Insets(5,5,5,5);\r\n\t\t\r\n\t\tc.gridwidth = 3;\r\n\t\t\r\n\t\t//text area for display of statistics.\r\n\t\tJLabel jLabel1 = new JLabel(\"<html><u><b>\" + Messages.getString(\"ReportingControlPanel.statistics\") + \"</u></b></html>\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n\t\t++c.gridy;\r\n\t\tadd(jLabel1, c);\r\n\t\tc.gridwidth = 2;\r\n\t\tautoUpdateStatisticsCheckBox_ = new JCheckBox(Messages.getString(\"ReportingControlPanel.autoupdateStatistics\"), false); //$NON-NLS-1$\r\n\t\tautoUpdateStatisticsCheckBox_.addItemListener(this);\r\n\t\t++c.gridy;\r\n\t\tadd(autoUpdateStatisticsCheckBox_,c);\r\n\t\tstatisticsTextArea_ = new JTextArea(11,1);\r\n\t\tstatisticsTextArea_.setEditable(false);\r\n\t\tstatisticsTextArea_.setLineWrap(true);\r\n\t\tJScrollPane scrolltext = new JScrollPane(statisticsTextArea_);\r\n\t\tscrolltext.setMinimumSize(new Dimension(180,300));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t++c.gridy;\r\n\t\tadd(scrolltext, c);\r\n\t\t\r\n\t\tc.gridwidth = 1;\r\n\t\tc.gridx = 1;\r\n\t\t++c.gridy;\r\n\t\tc.fill = GridBagConstraints.NONE;\r\n\t\tJPanel tmpPanel = new JPanel();\r\n\t\ttmpPanel.add(ButtonCreator.getJButton(\"refresh.png\", \"refresh\", Messages.getString(\"ReportingControlPanel.refresh\"), this)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n\t\ttmpPanel.add(ButtonCreator.getJButton(\"clipboard.png\", \"copyStatisticsInfo\", Messages.getString(\"ReportingControlPanel.copyStatisticsToClipboard\"), this)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n\t\tadd(tmpPanel, c);\r\n\t\t\r\n\t\t\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tjLabel1 = new JLabel(\"<html><u><b>\" + Messages.getString(\"ReportingControlPanel.monitoredBeaconZoneInfo\") + \"</u></b></html>\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n\t\t++c.gridy;\r\n\t\tc.insets = new Insets(25,5,5,5);\r\n\t\tadd(jLabel1, c);\r\n\t\tc.insets = new Insets(5,5,0,5);\r\n\t\t\r\n\t\tdoMonitorBeaconsCheckBox_ = new JCheckBox(Messages.getString(\"ReportingControlPanel.enableMonitoring\"), false); //$NON-NLS-1$\r\n\t\tdoMonitorBeaconsCheckBox_.addItemListener(this);\r\n\t\t++c.gridy;\r\n\t\tadd(doMonitorBeaconsCheckBox_,c);\r\n\t\t\r\n\t\tmonitoredBeaconZoneShowCheckBox_ = new JCheckBox(Messages.getString(\"ReportingControlPanel.showMonitoredZone\"), false); //$NON-NLS-1$\r\n\t\tmonitoredBeaconZoneShowCheckBox_.addItemListener(this);\r\n\t\t++c.gridy;\r\n\t\tadd(monitoredBeaconZoneShowCheckBox_,c);\r\n\t\t\r\n\t\tmonitoredBeaconZoneEditCheckBox_ = new JCheckBox(Messages.getString(\"ReportingControlPanel.editMonitoredZone\"), false); //$NON-NLS-1$\r\n\t\tmonitoredBeaconZoneEditCheckBox_.addItemListener(this);\r\n\t\t++c.gridy;\r\n\t\tadd(monitoredBeaconZoneEditCheckBox_,c);\r\n\t\t\r\n\t\tc.insets = new Insets(5,5,5,5);\r\n\t\t//text area for display of vehicles leaving mix zones.\r\n\t\tbeaconInfoTextArea_ = new JTextArea(25,1);\r\n\t\tbeaconInfoTextArea_.setEditable(false);\r\n\t\tbeaconInfoTextArea_.setText(Messages.getString(\"ReportingControlPanel.legend\")); //$NON-NLS-1$\r\n\t\tbeaconInfoTextArea_.setLineWrap(true);\r\n\t\tscrolltext = new JScrollPane(beaconInfoTextArea_);\r\n\t\tscrolltext.setMinimumSize(new Dimension(180,300));\r\n\t\tscrolltext.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tbeaconInfoVerticalScrollBar_ = scrolltext.getVerticalScrollBar();\r\n\t\t++c.gridy;\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tadd(scrolltext, c);\r\n\t\t\r\n\t\tc.gridwidth = 1;\r\n\t\tc.gridx = 1;\r\n\t\t++c.gridy;\r\n\t\tc.fill = GridBagConstraints.NONE;\r\n\t\ttmpPanel = new JPanel();\r\n\t\ttmpPanel.add(ButtonCreator.getJButton(\"delete.png\", \"deleteBeaconInfo\", Messages.getString(\"ReportingControlPanel.deleteBeaconInfo\"), this)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n\t\ttmpPanel.add(ButtonCreator.getJButton(\"clipboard.png\", \"copyBeaconInfo\", Messages.getString(\"ReportingControlPanel.copyBeaconToClipBoard\"), this)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n\t\tadd(tmpPanel, c);\r\n\t\t\r\n\t\t//log analyser\r\n\t\tc.gridwidth = 2;\r\n\t\tc.gridx = 0;\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\t++c.gridy;\r\n\t\tc.insets = new Insets(25,5,5,5);\r\n\t\tadd(new JLabel(\"<html><u><b>\" + Messages.getString(\"ReportingControlPanel.analyseLog\") + \"</u></b></html>\"), c);\r\n\t\tc.insets = new Insets(5,5,0,5);\r\n\t\t\r\n\t\t//exchanges coordinates with port numbers in mix-zone-logs\r\n\t\t++c.gridy;\r\n\t\tc.gridx = 0;\r\n\t\tprivacyLogCleaner_ = new JButton(Messages.getString(\"EditLogControlPanel.privacyLogCleanerButton\"));\r\n\t\tprivacyLogCleaner_.setActionCommand(\"cleanLog\");\r\n\t\tprivacyLogCleaner_.setPreferredSize(new Dimension(200,20));\r\n\t\tprivacyLogCleaner_.addActionListener(this);\r\n\t\tadd(privacyLogCleaner_,c);\r\n\t\t\r\n\t\t//opens the log-analyzer component\r\n\t\t++c.gridy;\r\n\t\tc.gridx = 0;\r\n\t\tprivacyLogAnalyzer_ = new JButton(Messages.getString(\"EditLogControlPanel.privacyLogAnalyzerButton\"));\r\n\t\tprivacyLogAnalyzer_.setActionCommand(\"openAnalyzer\");\r\n\t\tprivacyLogAnalyzer_.setPreferredSize(new Dimension(200,20));\r\n\t\tprivacyLogAnalyzer_.addActionListener(this);\r\n\t\tadd(privacyLogAnalyzer_,c);\r\n\t\t\r\n\t\t//sums up the length of all streets on the map\r\n\t\t++c.gridy;\r\n\t\tc.gridx = 0;\r\n\t\tJButton calculateStreetLengthButton = new JButton(Messages.getString(\"ReportingControlPanel.calculateStreetLength\"));\r\n\t\tcalculateStreetLengthButton.setActionCommand(\"openStreetLengthCalculator\");\r\n\t\tcalculateStreetLengthButton.setPreferredSize(new Dimension(200,20));\r\n\t\tcalculateStreetLengthButton.addActionListener(this);\r\n\t\tadd(calculateStreetLengthButton,c);\r\n\t\t\r\n\t\t//show the location information on a map\r\n\t\t++c.gridy;\r\n\t\tc.gridx = 0;\r\n\t\tJButton advancedLocationInformation = new JButton(Messages.getString(\"ReportingControlPanel.showAdvancedLocationInformation\"));\r\n\t\tadvancedLocationInformation.setActionCommand(\"showAdvancedLocationInformation\");\r\n\t\tadvancedLocationInformation.setPreferredSize(new Dimension(200,20));\r\n\t\tadvancedLocationInformation.addActionListener(this);\r\n\t\tadd(advancedLocationInformation,c);\r\n\t\t\r\n\t\t//define FileFilter for fileChooser\r\n\t\tlogFileFilter_ = new FileFilter(){\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\tif (f.isDirectory()) return true;\r\n\t\t\t\treturn f.getName().toLowerCase().endsWith(\".log\"); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tpublic String getDescription () { \r\n\t\t\t\treturn Messages.getString(\"EditLogControlPanel.logFiles\") + \" (*.log)\"; //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//to consume the rest of the space\r\n\t\tc.weighty = 1.0;\r\n\t\t++c.gridy;\r\n\t\tadd(new JPanel(), c);\r\n\t}",
"public BgpProcess getBgpConfig() {\n\t\treturn this.bgpConfig;\n\t}",
"public static Container addGBCComponent(Container parent, Container child, int x, int y, double weightX, double weightY, int fill){\n\t\tGridBagConstraints gbc= new GridBagConstraints();\t\n\t\tgbc.gridy= y;\n\t\tgbc.gridx= x;\t\t\n\t\tgbc.weightx= weightX;\n\t\tgbc.weighty= weightY;\n\t\t//gbc.fill= GridBagConstraints.BOTH;\n\t\tgbc.fill= fill;\n\t\tparent.add(child, gbc);\n\t\treturn child;\n\t}",
"private JPanel getBasicInfo() {\r\n\t\tif (basicInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints31.gridwidth = 4;\r\n\t\t\tgridBagConstraints31.gridx = 0;\r\n\t\t\tgridBagConstraints31.gridy = 7;\r\n\t\t\tgridBagConstraints31.weightx = 1.0;\r\n\t\t\tgridBagConstraints31.weighty = 1.0;\r\n\t\t\tgridBagConstraints31.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints21.gridwidth = 4;\r\n\t\t\tgridBagConstraints21.gridx = 0;\r\n\t\t\tgridBagConstraints21.gridy = 5;\r\n\t\t\tgridBagConstraints21.weightx = 1.0;\r\n\t\t\tgridBagConstraints21.weighty = 1.0;\r\n\t\t\tgridBagConstraints21.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints13.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints13.gridx = 1;\r\n\t\t\tgridBagConstraints13.gridy = 3;\r\n\t\t\tgridBagConstraints13.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tatcCall = new JLabel();\r\n\t\t\tatcCall.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints12.gridx = 1;\r\n\t\t\tgridBagConstraints12.gridy = 2;\r\n\t\t\tgridBagConstraints12.insets = new Insets(0, 3, 1, 0);\r\n\t\t\ttailNumber = new JLabel();\r\n\t\t\ttailNumber.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints11.gridx = 3;\r\n\t\t\tgridBagConstraints11.gridy = 1;\r\n\t\t\tgridBagConstraints11.insets = new Insets(0, 3, 1, 10);\r\n\t\t\tvehicleSubtype = new JLabel();\r\n\t\t\tvehicleSubtype.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints10.gridx = 1;\r\n\t\t\tgridBagConstraints10.gridy = 1;\r\n\t\t\tgridBagConstraints10.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tvehicleType = new JLabel();\r\n\t\t\tvehicleType.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints9.gridx = 3;\r\n\t\t\tgridBagConstraints9.gridy = 0;\r\n\t\t\tgridBagConstraints9.insets = new Insets(10, 3, 1, 10);\r\n\t\t\tvsmId = new JLabel();\r\n\t\t\tvsmId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints8.gridx = 1;\r\n\t\t\tgridBagConstraints8.gridy = 0;\r\n\t\t\tgridBagConstraints8.weightx = 1.0;\r\n\t\t\tgridBagConstraints8.insets = new Insets(10, 3, 1, 0);\r\n\t\t\tvehicleId = new JLabel();\r\n\t\t\tvehicleId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tgridBagConstraints7.gridy = 4;\r\n\t\t\tgridBagConstraints7.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setText(\"Payloads:\");\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tgridBagConstraints6.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel6 = new JLabel();\r\n\t\t\tjLabel6.setText(\"Controlled by:\");\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tgridBagConstraints5.gridy = 3;\r\n\t\t\tgridBagConstraints5.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel5 = new JLabel();\r\n\t\t\tjLabel5.setText(\"ATC call sign:\");\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridy = 2;\r\n\t\t\tgridBagConstraints4.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel4 = new JLabel();\r\n\t\t\tjLabel4.setText(\"Tail number:\");\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints3.gridx = 2;\r\n\t\t\tgridBagConstraints3.gridy = 1;\r\n\t\t\tgridBagConstraints3.insets = new Insets(0, 5, 4, 0);\r\n\t\t\tjLabel3 = new JLabel();\r\n\t\t\tjLabel3.setText(\"Subtype:\");\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridy = 1;\r\n\t\t\tgridBagConstraints2.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setText(\"Vehicle type:\");\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints1.gridx = 2;\r\n\t\t\tgridBagConstraints1.gridy = 0;\r\n\t\t\tgridBagConstraints1.insets = new Insets(10, 5, 4, 0);\r\n\t\t\tjLabel1 = new JLabel();\r\n\t\t\tjLabel1.setText(\"VSM ID:\");\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tgridBagConstraints.insets = new Insets(10, 10, 4, 0);\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setText(\"Vehicle ID:\");\r\n\t\t\tbasicInfo = new JPanel();\r\n\t\t\tbasicInfo.setLayout(new GridBagLayout());\r\n\t\t\tbasicInfo.add(jLabel, gridBagConstraints);\r\n\t\t\tbasicInfo.add(jLabel1, gridBagConstraints1);\r\n\t\t\tbasicInfo.add(jLabel2, gridBagConstraints2);\r\n\t\t\tbasicInfo.add(jLabel3, gridBagConstraints3);\r\n\t\t\tbasicInfo.add(jLabel4, gridBagConstraints4);\r\n\t\t\tbasicInfo.add(jLabel5, gridBagConstraints5);\r\n\t\t\tbasicInfo.add(jLabel6, gridBagConstraints6);\r\n\t\t\tbasicInfo.add(jLabel7, gridBagConstraints7);\r\n\t\t\tbasicInfo.add(vehicleId, gridBagConstraints8);\r\n\t\t\tbasicInfo.add(vsmId, gridBagConstraints9);\r\n\t\t\tbasicInfo.add(vehicleType, gridBagConstraints10);\r\n\t\t\tbasicInfo.add(vehicleSubtype, gridBagConstraints11);\r\n\t\t\tbasicInfo.add(tailNumber, gridBagConstraints12);\r\n\t\t\tbasicInfo.add(atcCall, gridBagConstraints13);\r\n\t\t\tbasicInfo.add(getJScrollPane(), gridBagConstraints21);\r\n\t\t\tbasicInfo.add(getJScrollPane1(), gridBagConstraints31);\r\n\t\t}\r\n\t\treturn basicInfo;\r\n\t}",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }",
"protected JBPanel getButtonsPanel() {\n return buttonsPanel;\n }",
"public GridBagPanel init0()\n {\n myGBC.gridx = myGBC.gridy = 0;\n return this;\n }",
"public GridSize getGridSize()\n {\n return this.gridSize.clone();\n }",
"public Graphics getBufferedGraphics() {\n\t\treturn bufferedG;\n\t}",
"private JPanel getCenterPOCPanel() {\r\n if (this.centerPOCPanel == null) {\r\n GridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.ipadx = 0;\r\n gridBagConstraints3.ipady = -28;\r\n gridBagConstraints3.weightx = 1.0;\r\n gridBagConstraints3.weighty = 1.0;\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.BOTH;\r\n gridBagConstraints3.gridy = 0;\r\n this.centerPOCPanel = new JPanel();\r\n this.centerPOCPanel.setLayout(new GridBagLayout());\r\n this.centerPOCPanel.add(getCenterPointsOfContactEditorPanel(), gridBagConstraints3);\r\n }\r\n return this.centerPOCPanel;\r\n }",
"protected ConstraintPanel getSetPanel() {\n\t\tif (setPanel == null) {\t\t\t\n\t\t\tsetPanel = new ConstraintPanel(this);\n\t\t\tsetPanel.setLayout(new BoxLayout(getSetPanel(), BoxLayout.X_AXIS));\n\t\t\tsetPanel.add(getPackSizeLabel(), null);\n\t\t\tsetPanel.add(getCollectionSizePanel(), null);\n\t\t}\n\t\treturn setPanel;\n\t}",
"private JPanel getPanelCrearCuenta() {\r\n\t\tif (PanelCrearCuenta == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints51 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints51.gridx = 1;\r\n\t\t\tgridBagConstraints51.insets = new Insets(20, 0, 0, 0);\r\n\t\t\tgridBagConstraints51.ipadx = 60;\r\n\t\t\tgridBagConstraints51.ipady = 20;\r\n\t\t\tgridBagConstraints51.gridy = 13;\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.gridx = 1;\r\n\t\t\tgridBagConstraints31.insets = new Insets(20, 0, 0, 0);\r\n\t\t\tgridBagConstraints31.ipadx = 60;\r\n\t\t\tgridBagConstraints31.ipady = 20;\r\n\t\t\tgridBagConstraints31.gridy = 14;\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.gridx = 1;\r\n\t\t\tgridBagConstraints21.ipadx = 60;\r\n\t\t\tgridBagConstraints21.insets = new Insets(35, 0, 0, 0);\r\n\t\t\tgridBagConstraints21.ipady = 20;\r\n\t\t\tgridBagConstraints21.gridy = 12;\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints9.gridy = 9;\r\n\t\t\tgridBagConstraints9.weightx = 1.0;\r\n\t\t\tgridBagConstraints9.ipadx = 100;\r\n\t\t\tgridBagConstraints9.gridwidth = 2;\r\n\t\t\tgridBagConstraints9.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints7.gridy = 7;\r\n\t\t\tgridBagConstraints7.weightx = 1.0;\r\n\t\t\tgridBagConstraints7.ipadx = 100;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints11.gridy = 11;\r\n\t\t\tgridBagConstraints11.weightx = 1.0;\r\n\t\t\tgridBagConstraints11.ipadx = 100;\r\n\t\t\tgridBagConstraints11.gridwidth = 2;\r\n\t\t\tgridBagConstraints11.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.gridx = 0;\r\n\t\t\tgridBagConstraints10.gridwidth = 2;\r\n\t\t\tgridBagConstraints10.gridy = 10;\r\n\t\t\tjLabelPais = new JLabel();\r\n\t\t\tjLabelPais.setText(PAIS);\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.gridx = 0;\r\n\t\t\tgridBagConstraints8.gridwidth = 2;\r\n\t\t\tgridBagConstraints8.gridy = 8;\r\n\t\t\tjLabelConfirmacion = new JLabel();\r\n\t\t\tjLabelConfirmacion.setText(CONFIRMACION);\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tjLabelPassword = new JLabel();\r\n\t\t\tjLabelPassword.setText(PASSWORD);\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints5.gridy = 5;\r\n\t\t\tgridBagConstraints5.weightx = 1.0;\r\n\t\t\tgridBagConstraints5.ipadx = 100;\r\n\t\t\tgridBagConstraints5.gridwidth = 2;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridwidth = 2;\r\n\t\t\tgridBagConstraints4.gridy = 4;\r\n\t\t\tjLabelApellido = new JLabel();\r\n\t\t\tjLabelApellido.setText(APELLIDO);\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints3.gridy = 3;\r\n\t\t\tgridBagConstraints3.weightx = 1.0;\r\n\t\t\tgridBagConstraints3.ipadx = 100;\r\n\t\t\tgridBagConstraints3.gridwidth = 2;\r\n\t\t\tgridBagConstraints3.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridwidth = 2;\r\n\t\t\tgridBagConstraints2.gridy = 2;\r\n\t\t\tjLabelNombre = new JLabel();\r\n\t\t\tjLabelNombre.setText(NOMBRE);\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints1.gridy = 1;\r\n\t\t\tgridBagConstraints1.weightx = 1.0;\r\n\t\t\tgridBagConstraints1.ipadx = 100;\r\n\t\t\tgridBagConstraints1.gridwidth = 2;\r\n\t\t\tgridBagConstraints1.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridwidth = 2;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tjLabelNick = new JLabel();\r\n\t\t\tjLabelNick.setText(NICK);\r\n\t\t\tPanelCrearCuenta = new JPanel();\r\n\t\t\tPanelCrearCuenta.setLayout(new GridBagLayout());\r\n\t\t\tPanelCrearCuenta.add(jLabelNick, gridBagConstraints);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldNick(), gridBagConstraints1);\r\n\t\t\tPanelCrearCuenta.add(jLabelNombre, gridBagConstraints2);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldNombre(), gridBagConstraints3);\r\n\t\t\tPanelCrearCuenta.add(jLabelApellido, gridBagConstraints4);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldApellido(), gridBagConstraints5);\r\n\t\t\tPanelCrearCuenta.add(jLabelPassword, gridBagConstraints6);\r\n\t\t\tPanelCrearCuenta.add(jLabelConfirmacion, gridBagConstraints8);\r\n\t\t\tPanelCrearCuenta.add(jLabelPais, gridBagConstraints10);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldPais(), gridBagConstraints11);\r\n\t\t\tPanelCrearCuenta.add(getJPasswordFieldPWD(), gridBagConstraints7);\r\n\t\t\tPanelCrearCuenta.add(getJPasswordFieldConfirmacion(),\r\n\t\t\t\t\tgridBagConstraints9);\r\n\t\t\tPanelCrearCuenta.add(getJButtonCrear(), gridBagConstraints21);\r\n\t\t\tPanelCrearCuenta.add(getJButtonSalir(), gridBagConstraints31);\r\n\t\t\tPanelCrearCuenta.add(getJButtonCrearCuentaAdmin(),\r\n\t\t\t\t\tgridBagConstraints51);\r\n\t\t}\r\n\t\treturn PanelCrearCuenta;\r\n\t}",
"public int getComponentLabelMargin() {\n\t\treturn componentLabelMargin;\n\t}",
"public JComponent getWrappedComponent()\n {\n return field;\n }",
"public int getNumberOfBCs() { return numberOfBCs; }",
"public GridBagPanel fillNone()\n {\n myGBC.fill = GridBagConstraints.NONE;\n myGBC.weightx = 0.0;\n myGBC.weighty = 0.0;\n return this;\n }",
"public JComponent getContentComponent() {\r\n return this;\r\n }",
"public String getBoundries() {\n return (String) getAttributeInternal(BOUNDRIES);\n }",
"public abstract JComponent[] getComponents();",
"private JPanel getPanelCrawljax() {\n \t\tif (panelCrawljax == null) {\n \t\t\tjLabel6 = new JLabel();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();\n \t\t\t\n \t\t\tpanelCrawljax = new JPanel();\n \t\t\tpanelCrawljax.setLayout(new GridBagLayout());\n \t\t\tpanelCrawljax.setBorder(javax.swing.BorderFactory.createTitledBorder(\n \t\t\t\t\tnull, this.extension.getMessages().getString(\"spiderajax.proxy.crawljax.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, \n \t\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN, 11), java.awt.Color.black));\t// ZAP: i18n\n \t\t\n \t\t\tgridBagConstraints5.gridx = 1;\n \t\t\tgridBagConstraints5.gridy = 0;\n \t\t\tgridBagConstraints5.weightx = 0.5D;\n \t\t\tgridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints5.ipadx = 0;\n \t\t\tgridBagConstraints5.ipady = 0;\n \t\t\tgridBagConstraints5.anchor = java.awt.GridBagConstraints.EAST;\n \t\t\tgridBagConstraints5.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints6.gridx = 0;\n \t\t\tgridBagConstraints6.gridy = 1;\n \t\t\tgridBagConstraints6.ipadx = 0;\n \t\t\tgridBagConstraints6.ipady = 0;\n \t\t\tgridBagConstraints6.anchor = java.awt.GridBagConstraints.EAST;\n \t\t\tgridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints6.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints6.weightx = 0.5D;\n \t\t\tgridBagConstraints7.gridx = 1;\n \t\t\tgridBagConstraints7.gridy = 1;\n \t\t\tgridBagConstraints7.weightx = 0.5D;\n \t\t\tgridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints7.ipadx = 0;\n \t\t\tgridBagConstraints7.ipady = 0;\n \t\t\tgridBagConstraints7.anchor = java.awt.GridBagConstraints.WEST;\n \t\t\tgridBagConstraints7.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints4.gridx = 0;\n \t\t\tgridBagConstraints4.gridy = 0;\n \t\t\tgridBagConstraints4.ipadx = 0;\n \t\t\tgridBagConstraints4.ipady = 0;\n \t\t\tgridBagConstraints4.anchor = java.awt.GridBagConstraints.WEST;\n \t\t\tgridBagConstraints4.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints4.weightx = 0.5D;\n \t\t\tgridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\t\n \t\t\tButtonGroup browsersButtonGroup = new ButtonGroup();\n \t\t\tbrowsersButtonGroup.add(getFirefox());\n \t\t\tbrowsersButtonGroup.add(getChrome());\n \t\t\tbrowsersButtonGroup.add(getHtmlunit());\n \t\t\t\n \t\t\tbrowsers = new JLabel();\n \t\t\tthreads = new JLabel();\n \t\t\t\n \t\t\tbrowsers.setText(this.extension.getMessages().getString(\"spiderajax.options.label.browsers\"));\n \t\t\tthreads.setText(this.extension.getMessages().getString(\"spiderajax.options.label.threads\"));\n \n \t\t\tpanelCrawljax.add(browsers, gridBagConstraints4);\n \t\t\tpanelCrawljax.add(getTxtNumBro(), gridBagConstraints5);\n \t\t\t\n \t\t\tpanelCrawljax.add(threads, gridBagConstraints6);\n \t\t\tpanelCrawljax.add(getTxtNumThre(), gridBagConstraints7);\n \t\t\n \t\t\tjavax.swing.JLabel jLabel5 = new JLabel();\n \n \t\t\t\n \t\t\tpanelCrawljax.add(getClickAllElems(), LayoutHelper.getGBC(0, 2, 3, 1.0D, 0, GridBagConstraints.HORIZONTAL, new Insets(2,2,2,2)));\n \t\t\tjLabel5.setText(this.extension.getMessages().getString(\"spiderajax.proxy.local.label.browsers\"));\n \t\t\tpanelCrawljax.add(jLabel5, LayoutHelper.getGBC(0, 3, 3, 1.0D, 0, GridBagConstraints.HORIZONTAL, new Insets(2,2,2,2)));\n \t\t\tpanelCrawljax.add(getFirefox(), LayoutHelper.getGBC(0, 4, 3, 1.0D, 1, GridBagConstraints.HORIZONTAL, new Insets(2,2,2,2)));\n \t\t\tpanelCrawljax.add(getChrome(), LayoutHelper.getGBC(0, 4, 4, 2.0D, 2, GridBagConstraints.HORIZONTAL+2, new Insets(25,2,2,2)));\n \t\t\tpanelCrawljax.add(getHtmlunit(), LayoutHelper.getGBC(0, 4, 4, 2.0D, 2, GridBagConstraints.HORIZONTAL+2, new Insets(50,2,2,2)));\n \t\t\n \t\t}\n \t\t\n \t\treturn panelCrawljax;\n \t}",
"private JPanel getJPanel() {\n\t\tif (jPanel == null) {\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new GridBagLayout());\n\t\t\tjPanel.setPreferredSize(new Dimension(10, 10));\n\t\t}\n\t\treturn jPanel;\n\t}",
"public Grid getGrid() {\n return myGrid;\n }",
"public CniBgpConfiguration cniBgpConfiguration() {\n return this.innerProperties() == null ? null : this.innerProperties().cniBgpConfiguration();\n }",
"public void constructComponents() {\n // taking care of window setup //\n /////////////////////////////////\n\n\tsetLayout(new GridBagLayout());\n\tsetTitle(\"HMusicController\");\n\n\tsetResizable(false);\n\n\tsetMinimumSize( new Dimension( WIDTH, HEIGHT ) );\n\n\tconstraints = new GridBagConstraints();\n\n\t\n\t////////////////////////////////\n // adjustment for stellacaeli //\n ////////////////////////////////\n\n\tcaeliLabel = new Label( \"star density\" );\n\tsetConstraints( 0, 0, 1, 1 );\n\tadd( caeliLabel, constraints );\n\n\tcaeliScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tcaeliScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.addAdjustmentListener( this );\n\tsetConstraints( 0, 1, 1, 1 );\n\tadd( caeliScroll, constraints );\n\n\tcaeliValueLabel = new Label( \"\"+((caeliScroll.getMaximum() - caeliScroll.getValue())/100.0) );\n\tsetConstraints( 0, 2, 1, 1 );\n\tadd( caeliValueLabel, constraints );\n\n\t\n\t/////////////////////////////////\n // adjustment for planet count //\n /////////////////////////////////\n\n\tplanetLabel = new Label( \"planet count\" );\n\tsetConstraints( 1, 0, 1, 1 );\n\tadd( planetLabel, constraints );\n\n\tplanetScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tplanetScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.addAdjustmentListener( this );\n\tsetConstraints( 1, 1, 1, 1 );\n\tadd( planetScroll, constraints );\n\n\tplanetValueLabel = new Label( \"\"+(planetScroll.getMaximum() - planetScroll.getValue()));\n\tsetConstraints( 1, 2, 1, 1 );\n\tadd( planetValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\ttriSizeLabel = new Label( \"coarse T size\" );\n\tsetConstraints( 2, 0, 1, 1 );\n\tadd( triSizeLabel, constraints );\n\n\ttriSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 99000, 100, 100, 100000 );\n\ttriSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 2, 1, 1, 1 );\n\tadd( triSizeScroll, constraints );\n\n\ttriSizeValueLabel = new Label( \"\"+(triSizeScroll.getMaximum() - triSizeScroll.getValue()));\n\tsetConstraints( 2, 2, 1, 1 );\n\tadd( triSizeValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\ttriFineSizeLabel = new Label( \"fine T size\" );\n\tsetConstraints( 3, 0, 1, 1 );\n\tadd( triFineSizeLabel, constraints );\n\n\ttriFineSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 5000, 100, 0, 10000 );\n\ttriFineSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 3, 1, 1, 1 );\n\tadd( triFineSizeScroll, constraints );\n\n\ttriFineSizeValueLabel = new Label( \"\"+(triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue()));\n\tsetConstraints( 3, 2, 1, 1 );\n\tadd( triFineSizeValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\tattDistLabel = new Label( \"att. dist.\" );\n\tsetConstraints( 4, 0, 1, 1 );\n\tadd( attDistLabel, constraints );\n\n\tattDistanceScroll = new Scrollbar( Scrollbar.VERTICAL, 3200, 100, 100, 4000 );\n\tattDistanceScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.addAdjustmentListener( this );\n\tsetConstraints( 4, 1, 1, 1 );\n\tadd( attDistanceScroll, constraints );\n\n\tattDistValueLabel = new Label( \"\"+(attDistanceScroll.getMaximum() - attDistanceScroll.getValue()));\n\tsetConstraints( 4, 2, 1, 1 );\n\tadd( attDistValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\tattStrnLabel = new Label( \"att. strn.\" );\n\tsetConstraints( 5, 0, 1, 1 );\n\tadd( attStrnLabel, constraints );\n\n\tattStrengthScroll = new Scrollbar( Scrollbar.VERTICAL, 90000, 1000, 1000, 100000 );\n\tattStrengthScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.addAdjustmentListener( this );\n\tsetConstraints( 5, 1, 1, 1 );\n\tadd( attStrengthScroll, constraints );\n\n\tattStrnValueLabel = new Label( \"\"+(attStrengthScroll.getMaximum() - attStrengthScroll.getValue()));\n\tsetConstraints( 5, 2, 1, 1 );\n\tadd( attStrnValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\t// Add MIDI choice\n\tLabel midiLabel = new Label(\"Select MIDI device\");\n\tsetConstraints( 0, 3, 2, 1 );\n\tadd( midiLabel, constraints );\n\tsetConstraints( 2, 3, 3, 1 );\n\tadd( midiDevices, constraints );\n\n\tpack();\n }",
"private JPanel getPCheck() {\r\n\t\tif (pLabel == null) {\r\n\t\t\tpLabel = new JPanel();\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.insets = new java.awt.Insets(0, 0, 13, 0);\r\n\t\t\tpLabel.setLayout(new GridBagLayout());\r\n\t\t\tpLabel.add(getCheck(), gridBagConstraints1);\r\n\t\t\tpLabel.add(new JLabel(text), gridBagConstraints1);\r\n\t\t}\r\n\t\treturn pLabel;\r\n\t}",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"public static JLabel getBetLabel(){\n\t\treturn BetLabel;\n\t}",
"@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}",
"public Box[][] getGrid() {\n return this.grid;\n }",
"public BigDecimal getsBlkr() {\n return sBlkr;\n }",
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"public X layout() {\n component.doLayout();\n return (X) this;\n }",
"public Color getGridColor() {\n return this.gridColor;\n }",
"private javax.swing.JPanel getJPanel1() {\n\n if (JPanel1 == null) {\n try {\n JPanel1 = new javax.swing.JPanel();\n\n JPanel1.setLayout(new java.awt.GridBagLayout());\n\n java.awt.GridBagConstraints constraintsJLabelTitle = new java.awt.GridBagConstraints();\n constraintsJLabelTitle.gridx = 0;\n constraintsJLabelTitle.gridy = 0;\n constraintsJLabelTitle.anchor = java.awt.GridBagConstraints.WEST;\n constraintsJLabelTitle.insets = new java.awt.Insets(6, 6, 4, 4);\n getJPanel1().add(getJLabelTitle(), constraintsJLabelTitle);\n\n java.awt.GridBagConstraints constraintsJLabelDivider = new java.awt.GridBagConstraints();\n constraintsJLabelDivider.gridx = 1;\n constraintsJLabelDivider.gridy = 0;\n constraintsJLabelDivider.fill = java.awt.GridBagConstraints.BOTH;\n constraintsJLabelDivider.weightx = 1.0;\n constraintsJLabelDivider.insets = new java.awt.Insets(4, 4, 4, 4);\n getJPanel1().add(getJLabelDivider(), constraintsJLabelDivider);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return JPanel1;\n}",
"@SuppressWarnings( \"unchecked\" )\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents(){\n java.awt.GridBagConstraints gridBagConstraints;\n\n bmiPanel = new javax.swing.JPanel();\n heightLabel = new javax.swing.JLabel();\n heightField = new javax.swing.JTextField();\n mLabel = new javax.swing.JLabel();\n weightLabel = new javax.swing.JLabel();\n weightField = new javax.swing.JTextField();\n kgLabel = new javax.swing.JLabel();\n bmiLabel = new javax.swing.JLabel();\n bmiField = new javax.swing.JTextField();\n\n setDefaultCloseOperation( javax.swing.WindowConstants.EXIT_ON_CLOSE );\n setTitle( \"BMI checker\" );\n setLocationByPlatform( true );\n setResizable( false );\n\n bmiPanel.setBorder( javax.swing.BorderFactory.createEmptyBorder( 5, 5, 5, 5 ) );\n bmiPanel.setLayout( new java.awt.GridBagLayout() );\n\n heightLabel.setText( \"Height:\" );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets( 4, 2, 4, 6 );\n bmiPanel.add( heightLabel, gridBagConstraints );\n\n heightField.setName( \"heightLabel\" ); // NOI18N\n heightField.setPreferredSize( new java.awt.Dimension( 100, 21 ) );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets( 4, 4, 4, 4 );\n bmiPanel.add( heightField, gridBagConstraints );\n\n mLabel.setText( \"m\" );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets( 4, 2, 4, 2 );\n bmiPanel.add( mLabel, gridBagConstraints );\n\n weightLabel.setText( \"Weight:\" );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets( 4, 2, 4, 6 );\n bmiPanel.add( weightLabel, gridBagConstraints );\n\n weightField.setName( \"weightLabel\" ); // NOI18N\n weightField.setPreferredSize( new java.awt.Dimension( 100, 21 ) );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets( 4, 4, 4, 4 );\n bmiPanel.add( weightField, gridBagConstraints );\n\n kgLabel.setText( \"kg\" );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets( 4, 2, 4, 2 );\n bmiPanel.add( kgLabel, gridBagConstraints );\n\n bmiLabel.setText( \"BMI:\" );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets( 4, 2, 4, 6 );\n bmiPanel.add( bmiLabel, gridBagConstraints );\n\n bmiField.setEditable( false );\n bmiField.setDisabledTextColor( new java.awt.Color( 0, 0, 0 ) );\n bmiField.setName( \"bmiLabel\" ); // NOI18N\n bmiField.setPreferredSize( new java.awt.Dimension( 100, 21 ) );\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets( 4, 4, 4, 4 );\n bmiPanel.add( bmiField, gridBagConstraints );\n\n getContentPane().add( bmiPanel, java.awt.BorderLayout.CENTER );\n\n pack();\n }",
"public void setUpPanel() {\n\t\tsetBorder(new CompoundBorder(new EtchedBorder(EtchedBorder.LOWERED,\n\t\t\t\tnull, null), new TitledBorder(null, \"Manage Auction Records\",\n\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, null)));\n\n\t\tgridBagLayout.columnWidths = new int[] { 48, 215, 228, 150, 0 };\n\t\tgridBagLayout.rowHeights = new int[] { 70, 15, 21, 57, 15, 21, 58, 15,\n\t\t\t\t21, 85, 39, 0 };\n\t\tgridBagLayout.columnWeights = new double[] { 0.0, 0.0, 0.0, 0.0,\n\t\t\t\tDouble.MIN_VALUE };\n\t\tgridBagLayout.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,\n\t\t\t\t0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tsetLayout(gridBagLayout);\n\n\t\tlblArtistFirstName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tGridBagConstraints gbc_lblArtistFirstName = new GridBagConstraints();\n\t\tgbc_lblArtistFirstName.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblArtistFirstName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblArtistFirstName.gridx = 1;\n\t\tgbc_lblArtistFirstName.gridy = 1;\n\t\tadd(lblArtistFirstName, gbc_lblArtistFirstName);\n\n\t\tformattedFirstName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tformattedFirstName.setColumns(20);\n\t\tGridBagConstraints gbc_formattedFirstName = new GridBagConstraints();\n\t\tgbc_formattedFirstName.anchor = GridBagConstraints.NORTH;\n\t\tgbc_formattedFirstName.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_formattedFirstName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_formattedFirstName.gridx = 1;\n\t\tgbc_formattedFirstName.gridy = 2;\n\t\tadd(formattedFirstName, gbc_formattedFirstName);\n\n\t\tlblArtistLastName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tGridBagConstraints gbc_lblArtistLastName = new GridBagConstraints();\n\t\tgbc_lblArtistLastName.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblArtistLastName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblArtistLastName.gridx = 1;\n\t\tgbc_lblArtistLastName.gridy = 4;\n\t\tadd(lblArtistLastName, gbc_lblArtistLastName);\n\n\t\tformattedLastName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tformattedLastName.setColumns(20);\n\t\tGridBagConstraints gbc_formattedLastName = new GridBagConstraints();\n\t\tgbc_formattedLastName.anchor = GridBagConstraints.NORTH;\n\t\tgbc_formattedLastName.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_formattedLastName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_formattedLastName.gridx = 1;\n\t\tgbc_formattedLastName.gridy = 5;\n\t\tadd(formattedLastName, gbc_formattedLastName);\n\t\tlblTitleOfWork = new JLabel(\"Title Of Work (max 40 characters)\");\n\n\t\tlblTitleOfWork.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tGridBagConstraints gbc_lblTitleOfWork = new GridBagConstraints();\n\t\tgbc_lblTitleOfWork.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblTitleOfWork.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblTitleOfWork.gridx = 1;\n\t\tgbc_lblTitleOfWork.gridy = 7;\n\t\tadd(lblTitleOfWork, gbc_lblTitleOfWork);\n\n\t\tformattedTitleOfWork.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tformattedTitleOfWork.setColumns(40);\n\t\tGridBagConstraints gbc_formattedTitleOfWork = new GridBagConstraints();\n\t\tgbc_formattedTitleOfWork.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_formattedTitleOfWork.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_formattedTitleOfWork.gridwidth = 3;\n\t\tgbc_formattedTitleOfWork.gridx = 1;\n\t\tgbc_formattedTitleOfWork.gridy = 8;\n\t\tadd(formattedTitleOfWork, gbc_formattedTitleOfWork);\n\n\t\tbtnSearch.setMnemonic('S');\n\t\tbtnSearch.setFont(new Font(\"Cambria\", Font.BOLD, 12));\n\t\tGridBagConstraints gbc_btnSearch = new GridBagConstraints();\n\t\tgbc_btnSearch.fill = GridBagConstraints.BOTH;\n\t\tgbc_btnSearch.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnSearch.gridx = 1;\n\t\tgbc_btnSearch.gridy = 10;\n\t\tadd(btnSearch, gbc_btnSearch);\n\n\t\tbtnCancel.setMnemonic('C');\n btnCancel.setFont(new Font(\"Cambria\", Font.BOLD, 12));\n\t\tGridBagConstraints gbc_btnCancel = new GridBagConstraints();\n\t\tgbc_btnCancel.fill = GridBagConstraints.BOTH;\n\t\tgbc_btnCancel.gridx = 3;\n\t\tgbc_btnCancel.gridy = 10;\n\t\tadd(btnCancel, gbc_btnCancel);\n\n\t}",
"public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}",
"public List<Double> getB1Band() {\n return b1Band;\n }",
"public Object getLegendPlacement() {\r\n if (legendPlacement != null) {\r\n return legendPlacement;\r\n }\r\n ValueBinding vb = getValueBinding(\"legendPlacement\");\r\n return vb != null ? vb.getValue(getFacesContext()) : \"bottom\";\r\n }",
"public QualityGridBO getQualityGrid()\r\n {\r\n return mQualityGrid;\r\n }",
"private JPanel getBpaSize() {\n\t\tif (bpaSize == null) {\n\t\t\tbpaSize = new JPanel();\n\t\t\tbpaSize.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\t\tbpaSize.setBackground(Color.BLACK);\n\t\t\tbpaSize.setPreferredSize(new Dimension(EDITOR_PAN_WIDTH, COMP_WIDTH));\n\n\t\t\t// width textbox\n\t\t\tJLabel lblWidth = new JLabel(\"Width\");\n\t\t\tlblWidth.setPreferredSize(new Dimension(LABEL_WIDTH, COMP_HEIGHT));\n\t\t\ttfiWidth = new JTextField();\n\t\t\ttfiWidth.setPreferredSize(new Dimension(LABEL_WIDTH, COMP_HEIGHT));\n\t\t\tsetColors(lblWidth);\n\t\t\tsetColors(tfiWidth);\n\t\t\ttfiWidth.addActionListener(getResizeActionListener());\n\n\n\t\t\t// height textbox\n\t\t\tJLabel lblHeight = new JLabel(\"Height\");\n\t\t\tlblHeight.setPreferredSize(new Dimension(LABEL_WIDTH, COMP_HEIGHT));\n\t\t\ttfiHeight = new JTextField();\n\t\t\ttfiHeight.setPreferredSize(new Dimension(LABEL_WIDTH, COMP_HEIGHT));\n\t\t\tsetColors(lblHeight);\n\t\t\tsetColors(tfiHeight);\t\t\n\t\t\ttfiHeight.addActionListener(getResizeActionListener());\n\n\t\t\tbpaSize.add(lblHeight);\n\t\t\tbpaSize.add(lblWidth);\n\t\t\tbpaSize.add(tfiHeight);\t\t\n\t\t\tbpaSize.add(tfiWidth);\t\t\t\n\t\t}\n\t\treturn bpaSize;\n\t}",
"private JPanel getJPanel1() {\n\t\tif (jPanel1 == null) {\n\t\t\tjPanel1 = new JPanel();\n\t\t\tjPanel1.setLayout(new GridBagLayout());\n\t\t}\n\t\treturn jPanel1;\n\t}",
"public List<GComponent> getComponents()\n {\n return this.components;\n }",
"private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tGridBagConstraints gridBagScrollPane = new GridBagConstraints();\n\t\t\tgridBagScrollPane.fill = GridBagConstraints.BOTH;\n\t\t\tgridBagScrollPane.gridy = 0;\n\t\t\tgridBagScrollPane.weightx = 1.0;\n\t\t\tgridBagScrollPane.weighty = 1.0;\n\t\t\tgridBagScrollPane.gridwidth = 2;\n\t\t\tgridBagScrollPane.gridx = 0;\n\t\t\tGridBagConstraints gridBagButtonOk = new GridBagConstraints();\n\t\t\tgridBagButtonOk.gridx = 1;\n\t\t\tgridBagButtonOk.anchor = GridBagConstraints.EAST;\n\t\t\tgridBagButtonOk.insets = new Insets(5, 0, 5, 5);\n\t\t\tgridBagButtonOk.gridy = 1;\n\t\t\tGridBagConstraints gridBagButtonCancel = new GridBagConstraints();\n\t\t\tgridBagButtonCancel.gridx = 0;\n\t\t\tgridBagButtonCancel.insets = new Insets(5, 5, 5, 0);\n\t\t\tgridBagButtonCancel.gridy = 1;\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(new GridBagLayout());\n\t\t\tjContentPane.add(getJButtonCancel(), gridBagButtonCancel);\n\t\t\tjContentPane.add(getJButtonOk(), gridBagButtonOk);\n\t\t\tjContentPane.add(getJScrollPane(), gridBagScrollPane);\n\t\t}\n\t\treturn jContentPane;\n\t}",
"protected ComponentModel getComponentModel()\n {\n return componentModel;\n }",
"protected BoardGrid getGrid() {\n return GameController.getInstance().getGrid();\n }",
"public BoundsManager getBm()\n\t{\n\t\treturn bm;\n\t}",
"private JPanel getCenterAdditionalInfoPanel() {\r\n if (this.centerAdditionalInfoPanel == null) {\r\n GridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n gridBagConstraints13.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints13.gridy = 2;\r\n gridBagConstraints13.weightx = 1.0;\r\n gridBagConstraints13.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints13.gridx = 1;\r\n GridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n gridBagConstraints12.gridx = 0;\r\n gridBagConstraints12.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints12.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints12.gridy = 2;\r\n this.centerImageLabel = new JLabel();\r\n this.centerImageLabel.setText(\"Image URL\");\r\n GridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n gridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints10.gridy = 3;\r\n gridBagConstraints10.weightx = 1.0;\r\n gridBagConstraints10.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints10.gridx = 1;\r\n GridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n gridBagConstraints9.gridx = 0;\r\n gridBagConstraints9.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints9.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints9.gridy = 3;\r\n this.centerRSSLabel = new JLabel();\r\n this.centerRSSLabel.setText(\"RSS URL\");\r\n GridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n gridBagConstraints8.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints8.gridy = 1;\r\n gridBagConstraints8.weightx = 1.0;\r\n gridBagConstraints8.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints8.gridx = 1;\r\n GridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n gridBagConstraints7.gridx = 0;\r\n gridBagConstraints7.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints7.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints7.gridy = 1;\r\n this.centerURLLabel = new JLabel();\r\n this.centerURLLabel.setText(\"Homepage URL\");\r\n GridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints6.gridy = 4;\r\n gridBagConstraints6.weightx = 1.0;\r\n gridBagConstraints6.weighty = 0.0D;\r\n gridBagConstraints6.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints6.gridx = 1;\r\n GridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n gridBagConstraints5.gridx = 0;\r\n gridBagConstraints5.insets = new java.awt.Insets(5, 5, 5, 5);\r\n gridBagConstraints5.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints5.gridy = 4;\r\n this.centerDescLabel = new JLabel();\r\n this.centerDescLabel.setText(\"Description\");\r\n this.centerAdditionalInfoPanel = new JPanel();\r\n this.centerAdditionalInfoPanel.setLayout(new GridBagLayout());\r\n this.centerAdditionalInfoPanel.add(this.centerDescLabel, gridBagConstraints5);\r\n this.centerAdditionalInfoPanel.add(getCenterDescTextField(), gridBagConstraints6);\r\n this.centerAdditionalInfoPanel.add(this.centerURLLabel, gridBagConstraints7);\r\n this.centerAdditionalInfoPanel.add(getCenterHomepageTextField(), gridBagConstraints8);\r\n this.centerAdditionalInfoPanel.add(this.centerRSSLabel, gridBagConstraints9);\r\n this.centerAdditionalInfoPanel.add(getCenterRSSTextField(), gridBagConstraints10);\r\n this.centerAdditionalInfoPanel.add(this.centerImageLabel, gridBagConstraints12);\r\n this.centerAdditionalInfoPanel.add(getCenterImageTextField(), gridBagConstraints13);\r\n }\r\n return this.centerAdditionalInfoPanel;\r\n }",
"public Object getLegendColumns() {\r\n if (legendColumns != null) {\r\n return legendColumns;\r\n }\r\n ValueBinding vb = getValueBinding(\"legendColumns\");\r\n return vb != null ? vb.getValue(getFacesContext()) : \"0\";\r\n }",
"protected JPanel getContents() {\r\n\t\tif (contents == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints38 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints38.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints38.gridy = 0;\r\n\t\t\tgridBagConstraints38.weightx = 1.0;\r\n\t\t\tgridBagConstraints38.weighty = 1.0;\r\n\t\t\tgridBagConstraints38.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints37 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints37.gridx = 0;\r\n\t\t\tgridBagConstraints37.insets = new Insets(3, 3, 3, 3);\r\n\t\t\tgridBagConstraints37.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints37.weightx = 1.0;\r\n\t\t\tgridBagConstraints37.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints37.gridy = 1;\r\n\t\t\tcontents = new JPanel();\r\n\t\t\tcontents.setLayout(new GridBagLayout());\r\n\t\t\tcontents.setSize(new Dimension(317, 263));\r\n\t\t\tcontents.add(getRefresh(), gridBagConstraints37);\r\n\t\t\tcontents.add(getJTabbedPane(), gridBagConstraints38);\r\n\t\t}\r\n\t\treturn contents;\r\n\t}",
"private JPanel getMainPanel() {\n if (mainPanel == null) {\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.gridx = 0;\n gridBagConstraints1.insets = new Insets(2, 2, 2, 2);\n gridBagConstraints1.anchor = GridBagConstraints.EAST;\n gridBagConstraints1.gridy = 1;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.BOTH;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0D;\n gridBagConstraints.insets = new Insets(2, 2, 2, 2);\n gridBagConstraints.gridx = 0;\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridBagLayout());\n mainPanel.add(getConfigurationScrollPane(), gridBagConstraints);\n mainPanel.add(getButtonPanel(), gridBagConstraints1);\n }\n return mainPanel;\n }",
"public Grid grid() { return grid; }",
"private JPanel getJPanelOptions() {\r\n\t\tjPanelOptions = new JPanel();\r\n\t\t//jPanelOptions.setLayout(new BoxLayout(jPanelOptions, BoxLayout.X_AXIS));\r\n\t\t//jPanelOptions.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));\r\n\t\tjPanelOptions.setLayout(new GridBagLayout());\r\n\t\tjPanelOptions.setBorder(new TitledBorder(null, \"Options\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\r\n\t\tjPanelOptions.add(getJPanelAggLength(), getGBC_AggLength());\t\r\n\t\tjPanelOptions.add(getJPanelAlphabetSize(), getGBC_AlphabetSize());\t\r\n\t\tjPanelOptions.add(getJPanelWordLength(), getGBC_WordLength());\r\n\t\tjPanelOptions.add(getJPanelSubWordLength(), getGBC_SubWordLength());\r\n\t\tjPanelOptions.add(getJPanelMag(), getGBC_Mag());\r\n\t\tjPanelOptions.add(getJPanelImageSize(), getGBC_ImageSize());\r\n\t\treturn jPanelOptions;\r\n\t}",
"public Brick getBrick() {\n return this.myBrick;\n }",
"public BigDecimal gettBlkr() {\n return tBlkr;\n }",
"public Pane getPane() {\n return grid;\n }",
"public ButtonGroup getButtonGroup() {\n return buttonGroup;\n }",
"public Rectangle getBounds() {\n\t\tif (bounds == null) {\n\t\t\tsuper.getBounds();\n\t\t\tfor (int i = 0; i < getChildren().size(); i++) {\n\t\t\t\tIFigure child = (IFigure) getChildren().get(i);\n\t\t\t\tbounds.union(child.getBounds());\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t}",
"public Canvas3D getMBCanvas()\r\n {\r\n \tCanvas3D c = mb.getMBCanvas3D();\r\n \treturn c;\r\n }",
"private JPanel getJContentPane() {\n if( jContentPane == null ) {\n GridBagConstraints gridBagConstraints11 = new GridBagConstraints();\n gridBagConstraints11.gridx = 0;\n gridBagConstraints11.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints11.insets = new java.awt.Insets(3,5,0,5);\n gridBagConstraints11.gridy = 3;\n jLabel2 = new JLabel();\n jLabel2.setText(\"(The fallback language for all missing keys is english.)\");\n GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n gridBagConstraints4.gridx = 0;\n gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints4.weightx = 1.0;\n gridBagConstraints4.gridy = 6;\n GridBagConstraints gridBagConstraints3 = new GridBagConstraints();\n gridBagConstraints3.fill = java.awt.GridBagConstraints.NONE;\n gridBagConstraints3.gridy = 4;\n gridBagConstraints3.weightx = 0.0;\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints3.insets = new java.awt.Insets(5,25,10,5);\n gridBagConstraints3.gridx = 0;\n GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\n gridBagConstraints2.gridx = 0;\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints2.insets = new java.awt.Insets(15,5,0,5);\n gridBagConstraints2.gridy = 2;\n jLabel1 = new JLabel();\n jLabel1.setText(\"Choose the language used as source for the translation:\");\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.fill = java.awt.GridBagConstraints.NONE;\n gridBagConstraints1.gridy = 1;\n gridBagConstraints1.weightx = 0.0;\n gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints1.insets = new java.awt.Insets(5,25,0,5);\n gridBagConstraints1.gridx = 0;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5,5,0,5);\n gridBagConstraints.gridy = 0;\n jLabel = new JLabel();\n jLabel.setText(\"Choose the target language to translate into:\");\n jContentPane = new JPanel();\n jContentPane.setLayout(new GridBagLayout());\n jContentPane.add(jLabel, gridBagConstraints);\n jContentPane.add(getCBoxTargetLanguage(), gridBagConstraints1);\n jContentPane.add(jLabel1, gridBagConstraints2);\n jContentPane.add(getCBoxSourceLanguage(), gridBagConstraints3);\n jContentPane.add(getJPanel(), gridBagConstraints4);\n jContentPane.add(jLabel2, gridBagConstraints11);\n }\n return jContentPane;\n }",
"public GridBagPanel anchorEast()\n {\n myGBC.anchor = GridBagConstraints.EAST;\n return this;\n }"
] |
[
"0.7935089",
"0.6479732",
"0.6007556",
"0.5946865",
"0.5777071",
"0.5756105",
"0.55673105",
"0.54618394",
"0.5394912",
"0.53572977",
"0.5347309",
"0.5309929",
"0.5217963",
"0.52146006",
"0.51931596",
"0.5159905",
"0.51435554",
"0.5137013",
"0.5087146",
"0.50685704",
"0.5037072",
"0.50310665",
"0.5017265",
"0.50148195",
"0.5011526",
"0.4958769",
"0.49502286",
"0.49283367",
"0.49110287",
"0.49084732",
"0.48880506",
"0.48656517",
"0.48645577",
"0.48633343",
"0.48153877",
"0.48148152",
"0.48050597",
"0.47962964",
"0.47936726",
"0.47925177",
"0.47878972",
"0.47831914",
"0.4747808",
"0.47413126",
"0.47383097",
"0.47332108",
"0.47296593",
"0.47260907",
"0.4715625",
"0.47110274",
"0.47076112",
"0.47067776",
"0.4705208",
"0.4701069",
"0.46779191",
"0.46769258",
"0.46741575",
"0.4673294",
"0.46702558",
"0.4668688",
"0.46650997",
"0.46630397",
"0.4661128",
"0.46591032",
"0.46519402",
"0.4647258",
"0.46424028",
"0.46402088",
"0.46362597",
"0.4635822",
"0.46333915",
"0.46324807",
"0.46322048",
"0.46266955",
"0.46253476",
"0.4622794",
"0.46210292",
"0.46138495",
"0.4608468",
"0.46029964",
"0.46020412",
"0.46009305",
"0.45997983",
"0.45855305",
"0.45852348",
"0.45846894",
"0.45843074",
"0.45833445",
"0.45785958",
"0.4574488",
"0.4573202",
"0.4571382",
"0.4568993",
"0.45683387",
"0.45669398",
"0.45666057",
"0.45664078",
"0.45607638",
"0.45572007",
"0.454432"
] |
0.7254895
|
1
|
Gets the Room at the top of the currentRooms list, i.e. the Room at the first index in the array.
|
public Room getCurrentRoom() {
if(!currentRooms.isEmpty()) {
return currentRooms.get(0);
}
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Room getLastRoom(){return this.aLastRooms.pop();}",
"public Room getCurrentRoom(){\n\treturn rooms[gx][gy];\n }",
"public Room getCurrentRoom ( )\r\n\t{\r\n\t\tif ( currentRow < 0 || currentCol < 0 || \r\n\t\t\t\tcurrentRow >= size || currentCol >= size )\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn maze[currentRow][currentCol];\r\n\t}",
"public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }",
"public Room getCurrentRoom() {\r\t\treturn currentRoom;\r\t}",
"public Room getRoom(String roomName)\n {\n Room room = rooms.get(0);\n // get each room from the rooms's arraylist.\n for (int i=0; i<rooms.size();i++){\n if (rooms.get(i).getName().equals(roomName)){\n room= rooms.get(i);\n }\n }\n return room;\n }",
"public Room getCurrentRoom()\n {\n return currentRoom;\n }",
"public Room getRoom()\n {\n return currentRoom;\n }",
"public Room getRoom() {\n return currentRoom;\n }",
"public int getRoom()\n\t{\t\n\t\treturn iCurrentRoom;\n\t\t\n\t}",
"public Room getCurrentRoom() {\n return currentRoom;\n }",
"public Room currentRoom() {\n\t\treturn currentRoom;\n\t}",
"public Room getCurrentRoom() {\r\n return player.getCurrentRoom();\r\n }",
"public Room getCurrentRoom() {\n return playerRoom;\n }",
"public Room getRoom() {\n\t\treturn super.getRoom();\n\t}",
"public Room getRoom(int x, int y) {\r\n\t\treturn rooms[y][x];\r\n\t}",
"Room getRoom();",
"Room getRoom();",
"public List<Room> getCurrentRooms() {\n return currentRooms;\n }",
"public Room getRandomRoom(){\n return (Room)rooms.get(random.nextInt(rooms.size()));\n }",
"public Room room() {\r\n\t\treturn this.room;\r\n\t}",
"public int getRoom(){\n\t\treturn room;\n\t}",
"public Rooms getRooms(int i) {\n\t\t\tRooms buff = RoomDetails.get(i);\r\n\t\t\treturn buff;\r\n\t\t}",
"public Room findRoom(String roomName){\n for (Room r : roomList){\n if (r.getRoomName().equals(roomName)){\n return r;\n }\n }\n return null;\n }",
"public Room getRoom(){\n\t\treturn this.room;\n\t}",
"public Room getOne(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.get(Room.class, room.getId());\n\t}",
"public Room getExit(String roomName) {\n\t\tRoom room = null;\n\t\tRoom tempRooms;\n\t\tfor(int i = 0; i < Exits.size(); i++) {\n\t\t\ttempRooms = Exits.get(i);\n\t\t\tif (tempRooms.name.contains(roomName)) {\n\t\t\t\treturn tempRooms;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//TODO: Make this a proper exception thrown, \n\t\t//\t\totherwise this code will break if it meets this error \n\t\t//\t\tand this will be the only hint as to why\n\t\tSystem.out.println(\"ERROR: Could not find room\");\n\t\treturn room;\n\t}",
"public Room getRoom()\r\n {\r\n return room;\r\n }",
"public Room getRoom(Color col){\n for(Room room: rooms){\n if(room.getColor() == col)\n return room;\n }\n return null; //TODO add exception\n }",
"public Room getRandomRoom() {\n random = new Random();\n Room portal = allrooms.get(random.nextInt(allrooms.size()-1));\n return portal;\n }",
"public Position getFirst() {\n return positions[0];\n }",
"public QuestRoom getInitialRoom() {\n\t\t\n\t\treturn initialRoom;\n\t}",
"public String getRoom() {\r\n return room;\r\n }",
"public Room getRoom(BoardCell currCell) {\n\t\treturn roomMap.get(currCell.getInitial());\t\t\t\t\t\t\t\t\t\t\t// returning the room related to the cell\n\t}",
"public String getRoom() {\n\t\treturn room;\n\t}",
"public Integer getNewRoom() {\n return newRoom;\n }",
"@Override\n public Object getItem(int arg0) {\n Log.d(TAG, \"getItem: \"+fromName.get(arg0));\n return rooms.get(arg0);\n }",
"public Room getRoom0(){\n return basement;\n }",
"public int getRoomID() {\r\n\t\treturn this.room.getID();\r\n\t}",
"public Card top() {\r\n\t\treturn cards.get(cards.size() - 1);\r\n\t}",
"public java.lang.CharSequence getRoom() {\n return room;\n }",
"public java.lang.CharSequence getRoom() {\n return room;\n }",
"public Room goNorth(Room curRoom)\r\n {\r\n return gameMap.getRoom(curRoom.getX(), curRoom.getY() - 1);\r\n }",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"public Room getStartRoom(){\n return startRoom;\n }",
"@Override\n public Room getRoom(String roomId) {\n return getRoom(roomId, true);\n }",
"Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }",
"public Object peek() {\r\n\t\treturn al.getElementAt(al.listSize - 1);\r\n\t}",
"public Room getRoomIn() {\n\t\treturn roomIn;\n\t}",
"public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }",
"public Room getRoom(String id) {\r\n\t\treturn rooms.get(id);\r\n\t}",
"public PriorityQueue<Room> getRooms() {\n return this.rooms;\n }",
"@Override\n public int getRoomId() {\n return room.getRoomId();\n }",
"@Override\n\tpublic HotelroomPo getHotelroom(int hotelID, int roomID) {\n\t\t\n\t\tString hotelroomId = String.valueOf(hotelID)\n\t\t\t\t+String.valueOf(roomID);\n\t\treturn map.get(hotelroomId);\n\t}",
"public int getRoomNumber() \n\t{\n\t\treturn roomNumber;\n\t}",
"public Room getTheObject(){\n return this;\n }",
"public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }",
"public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }",
"protected static Room getRoomFromName(ArrayList<Room> roomList, String name) {\n return roomList.get(findRoomIndex(roomList, name));\n }",
"public Card getTopCard()\r\n {\r\n Card tmp;\r\n\r\n if ( valid <= 0)\r\n return null;\r\n else\r\n {\r\n valid--;\r\n tmp = cards[valid];\r\n cards[valid] = null;\r\n return tmp;\r\n }\r\n }",
"public Room getRoom(String roomName) {\n return card.getRoom(roomName);\n }",
"public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }",
"public int getRoomNumber() {\r\n\t\treturn this.roomNumber;\r\n\t}",
"public Room getMyRoom() {\n return this.myRoom;\n }",
"public List<List<Seat>> getFirst() {\n\t\treturn first;\n\t}",
"public int getRoomNum() {\n return roomNum;\n }",
"java.lang.String getRoomName();",
"public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}",
"public MazeRoom element(int h, int w)\r\n\t{\r\n\t\treturn room[h][w];\r\n\t}",
"public Card getTopCard() {\r\n\t\tthis.sort();\r\n\t\treturn this.getCard(2); //Center card will always be part of quad after sorting, so has to be highest card\r\n\t}",
"public long getRoomId() {\n return instance.getRoomId();\n }",
"public int top() {\n return objects.peek();\n }",
"public E top() {\n return !isEmpty() ? head.item : null;\n }",
"public ArrayList getRooms();",
"public int top() {\n \treturn list.get(list.size()-1);\n }",
"public ChatRoom getChatRoom(Address addr);",
"protected static String getRoomName() {\n System.out.println(\"Room Name?\");\n return keyboard.next();\n }",
"public int top() {\n\t\treturn list.get(list.size() - 1);\n\t}",
"public WorldObject getFirstObject(){\r\n\t\treturn this.firstObject;\r\n\t}",
"public int getRoomID() {\n return roomID;\n }",
"public Room getExit(int choice) {\n\t\treturn Exits.get(choice);\n\t}",
"private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }",
"public Disc top()\n\t{\n\t\tint poleSize = pole.size();\n\n\t\t// If the pole is empty, return nothing\n\t\tif(poleSize == 0)\n\t\t\treturn null;\n\n\t\t// Otherwise return the top disc\n\t\treturn pole.get(poleSize - 1);\n\t}",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public Room getRoom(String buildingName, int roomNum){\n // TODO: Replace with queries to find correct room\n return new Room(0, 1, 100, 100, roomNum);\n }",
"public IndoorVertex findRoom(String roomNumb)\n {\n ArrayList<IndoorVertex> roomList;\n IndoorVertex room = null;\n\n if(rooms.containsKey(roomNumb))\n {\n roomList = rooms.get(roomNumb);\n\n if(roomList.size() > 0)\n room = roomList.get(0);\n }\n\n return room;\n }",
"public Card top() {\n\t\treturn firstCard;\n\t}",
"public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }",
"public Place head(){\n return places.get(0);\n }",
"public int getRoomNumber() {\n\t\treturn number; // Replace with your code\n\t}",
"public JsonCursor first() {\n JsonArray res = peekArray();\n\n assert res.size() > 0 && res.get(0) instanceof JsonObject;\n\n this.stack.push((JsonObject) res.get(0));\n\n return this;\n }",
"public int getRoomId() {\n return roomId;\n }",
"public T peek() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n return rb[first];\n // Return the first item. None of your instance variables should change.\n }",
"public Piece[] getTopLine() {\n Piece[] topLine = new Piece[3];\n for (int i = 0; i < this.getBoard().length; i += 1) {\n topLine[i] = this.getBoard()[i][2];\n }\n return topLine;\n }",
"protected int firstIdx() {\n return arrayIndex(_oldestWindowIndex);\n }",
"public Room getEventRoom(String id){\n return this.eventMap.get(getEvent(id)).getRoom();\n }",
"public Coordinate peek(){\r\n return arr[size - 1];\r\n }",
"public long getRoomId() {\n return roomId_;\n }",
"public final Item getOnePerTileItem(int floorLevel) {\n/* 4872 */ if (this.vitems == null)\n/* 4873 */ return null; \n/* 4874 */ return this.vitems.getOnePerTileItem(floorLevel);\n/* */ }",
"public void setLastRoom(final Room pLastRoom){this.aLastRooms.push(pLastRoom);}"
] |
[
"0.72205716",
"0.6961088",
"0.68224394",
"0.66316825",
"0.65453595",
"0.6527576",
"0.6465468",
"0.6444241",
"0.644342",
"0.6437014",
"0.6339929",
"0.6294037",
"0.62589043",
"0.6200112",
"0.6165037",
"0.60932106",
"0.60903895",
"0.60903895",
"0.60623765",
"0.6023501",
"0.5983131",
"0.5980948",
"0.5975907",
"0.59231836",
"0.5915244",
"0.58858764",
"0.5852285",
"0.58351433",
"0.5831058",
"0.5806023",
"0.57330686",
"0.572338",
"0.5711349",
"0.5708083",
"0.5705424",
"0.5683192",
"0.5649614",
"0.5635457",
"0.5609232",
"0.55918044",
"0.5588715",
"0.5557722",
"0.5551134",
"0.55446935",
"0.5528385",
"0.5508085",
"0.5487673",
"0.54802376",
"0.5477851",
"0.54760724",
"0.54682696",
"0.54582685",
"0.54561794",
"0.5441629",
"0.54349923",
"0.54274094",
"0.5424902",
"0.5412289",
"0.5404991",
"0.540052",
"0.539752",
"0.5385796",
"0.5381481",
"0.5374937",
"0.53731734",
"0.5371203",
"0.5360447",
"0.5358478",
"0.5356355",
"0.53551704",
"0.534939",
"0.53464",
"0.5336902",
"0.5335626",
"0.5322318",
"0.531697",
"0.52921057",
"0.52912414",
"0.52797693",
"0.5277385",
"0.5277178",
"0.5266266",
"0.5264822",
"0.5262174",
"0.5260027",
"0.5258415",
"0.5251131",
"0.52496195",
"0.5243832",
"0.52414197",
"0.5236381",
"0.523433",
"0.5220988",
"0.52092737",
"0.5197671",
"0.5196551",
"0.51954657",
"0.5189211",
"0.5185841",
"0.51831454"
] |
0.74485624
|
0
|
Returns all currently loaded rooms.
|
public List<Room> getCurrentRooms() {
return currentRooms;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }",
"public List<Room> selectAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.createCriteria(Room.class).list();\n\n\t}",
"@Transactional\r\n\tpublic List<Room> getAllRooms(){\r\n\t\tList<Room> list= new ArrayList<Room>();\r\n\t\tIterable<Room> iterable= this.roomRepository.findAll();\r\n\t\tfor(Room room: iterable)\tlist.add(room);\r\n\t\treturn list;\r\n\t}",
"public List<Room> getRooms() {\n return rooms;\n }",
"@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}",
"@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }",
"public ArrayList<Room> getRooms() {\n return rooms;\n }",
"@Override\n public List<Room> findAll() {\n return roomRepository.findAll();\n }",
"public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new ArrayList<>();\r\n\t\t\troomRepository.findAll().forEach(list::add);\r\n\t\t\treturn list;\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic List<RoomInterface> getRooms() {\n\t\treturn rooms;\n\t}",
"public List<Room> findAllRooms();",
"public Set<Room> getRooms() {\n return rooms;\n }",
"public ResultSet getAllRooms() {\r\n\r\n try {\r\n\r\n SQL = \"SELECT * FROM ROOMS;\";\r\n rs = stmt.executeQuery(SQL);\r\n return rs;\r\n\r\n } catch (SQLException err) {\r\n\r\n System.out.println(err.getMessage());\r\n return null;\r\n\r\n }\r\n\r\n }",
"@Override\n public List<Room> findAllRooms() throws AppException {\n log.info(\"RoomDAO#findAllRooms(-)\");\n Connection con = null;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n rooms = new ArrayList<>(findAllRooms(con));\n con.commit();\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem at findAllRooms(no param)\", e);\n throw new AppException(\"Can not find all rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }",
"@Override\r\n\tpublic List<Room> listAll() throws SQLException {\n\t\treturn null;\r\n\t}",
"public List<Room> getAllRooms(){\n\n List<Room> rooms = null;\n\n EntityManager entityManager = getEntityManagerFactory().createEntityManager();\n entityManager.getTransaction().begin();\n\n try{\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Room> roomCriteriaQuery = criteriaBuilder.createQuery(Room.class);\n Root<Room> roomsRoot = roomCriteriaQuery.from(Room.class);\n\n roomCriteriaQuery.select(roomsRoot);\n\n rooms = entityManager.createQuery(roomCriteriaQuery).getResultList();\n }\n catch (Exception ex){\n entityManager.getTransaction().rollback();\n }\n finally {\n entityManager.close();\n }\n\n return rooms;\n }",
"Collection<Room> getRooms() throws DataAccessException;",
"public ArrayList getRooms();",
"public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }",
"public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}",
"public AsyncResult<List<ChatRoom>> discoverRooms() {\r\n return serviceDiscoveryManager.discoverItems(serviceAddress).thenApply(itemNode -> {\r\n List<ChatRoom> chatRooms = new ArrayList<>();\r\n for (Item item : itemNode.getItems()) {\r\n ChatRoom chatRoom = new ChatRoom(item.getJid(), item.getName(), xmppSession, serviceDiscoveryManager, multiUserChatManager);\r\n chatRoom.initialize();\r\n chatRooms.add(chatRoom);\r\n }\r\n return chatRooms;\r\n });\r\n }",
"public PriorityQueue<Room> getRooms() {\n return this.rooms;\n }",
"@GetMapping\n public RoomsDto getRooms() {\n return roomsFacade.findRooms();\n }",
"@GetMapping(\"/chat-rooms\")\n public List<ChatRoom> getAllChatRooms() {\n log.debug(\"REST request to get all ChatRooms\");\n return chatRoomRepository.findAll();\n }",
"public ArrayList<GameRoom> execute() {\n\t\tif(GameRooms.rooms == null) {\n\t\t\tGameRooms.rooms = new ArrayList<GameRoom>();\n\t\t}\n\t\treturn GameRooms.rooms;\n\t}",
"public Rooms getRooms(int i) {\n\t\t\tRooms buff = RoomDetails.get(i);\r\n\t\t\treturn buff;\r\n\t\t}",
"public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }",
"public List<Room> occupiedRooms() {\n List<Room> rooms = new ArrayList<>();\n for (int i = numOfRooms; i < internalList.size(); i++) {\n if (internalList.get(i).isOccupied()) {\n rooms.add(internalList.get(i));\n }\n }\n\n return rooms;\n }",
"public ArrayList<RoomList> getRoomList() {\r\n return RoomList;\r\n }",
"public ArrayList<Item> getRoomItems() {\n return (roomItems);\n }",
"@CrossOrigin \n\t@GetMapping(\"/all/{building}\")\n\tpublic List<Room> getRooms(@PathVariable String building) {\n\t\tList<Room> returned = new ArrayList<>();\t\t\n\t\tfor (Room room : roomDB)\n\t\t\tif (room.getBuilding().equals(building))\n\t\t\t\treturned.add(room);\n\t\treturn returned;\n\t}",
"public void populateRooms(){\n }",
"public List<Chatroom> getAllListedChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findByListed(true);\n\n\t\treturn chatrooms;\n\t}",
"public List<Room> unOccupiedRooms() {\n List<Room> rooms = new ArrayList<>();\n for (int i = 0; i < numOfRooms; i++) {\n if (!internalList.get(i).isOccupied()) {\n rooms.add(internalList.get(i));\n }\n }\n return rooms;\n }",
"@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 void generateRooms(){ //TODO it's public just for testing\n rooms = new ArrayList<>();\n for(Color color : roomsToBuild)\n rooms.add(new Room(color));\n }",
"public ArrayList<CalendarRoom> getRooms(String sType) throws 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=getRooms&token=\"+sSecurityToken+\"&type=\"+sType);\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }",
"private List<Room> addRooms() {\n List<Room> rooms = new ArrayList<>();\n int numRooms = RandomUtils.uniform(random, MINROOMNUM, MAXROOMNUM);\n int playerRoomNum = RandomUtils.uniform(random, 0, numRooms);\n for (int i = 0; i < numRooms; i++) {\n rooms.add(addRandomRoom(random));\n if (i == playerRoomNum) {\n setPlayerInitialPosition(rooms, playerRoomNum);\n }\n }\n return rooms;\n }",
"@RequestMapping(method = RequestMethod.GET)\n public ResponseEntity<?> getAllGameRooms() {\n try {\n return new ResponseEntity<>(ls.getAllGameRooms(), HttpStatus.ACCEPTED);\n } catch (LacmanNotFoundException e) {\n Logger.getLogger(LacmanController.class.getName()).log(Level.SEVERE, null, e);\n return new ResponseEntity<>(e.getMessage(), HttpStatus.NOT_FOUND);\n }\n }",
"public ChatRoom[] getChatRooms();",
"public List<String> listRoomsNames() {\n return chatRooms.stream().map(ChatRoom::getChatName).collect(Collectors.toList());\n }",
"private void loadAvailableRooms() {\n\n\t\texecutor.submit(() -> {\n\t\t\troomResultsTable.setVisible(false);\n\t\t\tprogress.setVisible(true);\n\t\t\troom.clear();\n\t\t\thotel.clear();\n\t\t\tquality.clear();\n\t\t\trooms = FXCollections.observableArrayList(dbParser.checkAvailableRoomsBetweenDates(arrivalDate.toEpochDay(),\n\t\t\t\t\tdepartureDate.toEpochDay(), hotelChoice.getName(), roomQualityChoice.getQuality()));\n\t\t\troomResultsTable.setItems(rooms);\n\t\t\tprogress.setVisible(false);\n\t\t\troomResultsTable.setVisible(true);\n\t\t});\n\n\t}",
"private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en vej ud herfra og hen til kantinen.\",\n false,\n null,\n null\n ));\n\n //Adding offices to <>officerooms, randomly placed later \n officeRooms.add(new Room(\n \"Du bliver kort blændet af en kontorlampe, som peger lige mod døråbningen. Du ser en gammel dame.\",\n false,\n monsterList.getMonster(4),\n itemList.getItem(13)\n ));\n\n officeRooms.add(new Room(\n \"Der er ingen i rummet, men rodet afslører, at det nok er Phillipas kontor.\",\n false,\n null,\n itemList.getItem(15)\n ));\n\n officeRooms.add(new Room(\n \"Du vader ind i et lokale, som er dunkelt oplyst af små, blinkende lamper og har en stank, der siger så meget spar fem, at det kun kan være IT-lokalet. Du når lige at høre ordene \\\"Rick & Morty\\\".\",\n false,\n monsterList.getMonster(6),\n itemList.getItem(7)\n ));\n\n officeRooms.add(new Room(\n \"Det var ikke kantinen det her, men hvorfor er der så krummer på gulvet?\",\n false,\n null,\n itemList.getItem(1)\n ));\n\n officeRooms.add(new Room(\n \"Tine sidder ved sit skrivebord. Du kan se, at hun er ved at skrive en lang indkøbsseddel. Hun skal nok have gæster i aften.\",\n false,\n monsterList.getMonster(0),\n itemList.getItem(18)\n ));\n\n officeRooms.add(new Room(\n \"Du træder ind i det tekøkken, hvor Thomas plejer at opholde sig. Du ved, hvad det betyder!\",\n false,\n null,\n itemList.getItem(0)\n ));\n\n officeRooms.add(new Room(\n \"Du går ind i det nok mest intetsigende rum, som du nogensinde har set. Det er så intetsigende, at der faktisk ikke er mere at sige om det.\",\n false,\n monsterList.getMonster(1),\n itemList.getItem(9)\n ));\n\n //Adding copyrooms to <>copyrooms, randomly placed later \n copyRooms.add(new Room(\n \"Døren knirker, som du åbner den. Et kopirum! Det burde du have set komme. Især fordi det var en glasdør.\",\n false,\n null,\n itemList.getItem(19)\n ));\n\n copyRooms.add(new Room(\n \"Kopimaskinen summer stadig. Den er åbenbart lige blevet færdig. Du går nysgerrigt over og kigger på alle de udskrevne papirer.\",\n false,\n null,\n itemList.getItem(12)\n ));\n\n //Adding restrooms to <>restrooms, randomly placed later \n restRooms.add(new Room(\n \"Ups! Dametoilettet. Der hænger en klam stank i luften. Det må være Ruth, som har været i gang.\",\n false,\n null,\n itemList.getItem(5)\n ));\n\n restRooms.add(new Room(\n \"Pedersen er på vej ud fra toilettet. Han vasker ikke fingre! Slut med at give ham hånden.\",\n false,\n monsterList.getMonster(7),\n itemList.getItem(11)\n ));\n\n restRooms.add(new Room(\n \"Du kommer ind på herretoilettet. Du skal simpelthen tisse så meget, at fiskefileterne må vente lidt. Du åbner toiletdøren.\",\n false,\n monsterList.getMonster(2),\n null\n ));\n\n restRooms.add(new Room(\n \"Lisette står og pudrer næse på dametoilettet. Hvorfor gik du herud?\",\n false,\n monsterList.getMonster(8),\n itemList.getItem(14)\n ));\n\n //Adding meetingrooms to<>meetingrooms, randomly placed later\n meetingRooms.add(new Room(\n \"Du træder ind i et lokale, hvor et vigtigt møde med en potentiel kunde er i gang. Du bliver nødt til at lade som om, at du er en sekretær.\",\n false,\n monsterList.getMonster(9),\n itemList.getItem(6)\n ));\n\n meetingRooms.add(new Room(\n \"Mødelokalet er tomt, men der står kopper og service fra sidste møde. Sikke et rod!\",\n false,\n null,\n itemList.getItem(3)\n ));\n\n meetingRooms.add(new Room(\n \"Projektgruppen sidder i mødelokalet. Vil du forsøge at forsinke dem i at nå fiskefileterne i kantinen?\",\n false,\n monsterList.getMonster(10),\n itemList.getItem(2)\n ));\n\n //Adding specialrooms to<>specialrooms, randomly placed later\n specialRooms.add(new Room(\n \"Du vader ind på chefens kontor. På hans skrivebord sidder sekretæren Phillipa.\",\n false,\n monsterList.getMonster(5),\n itemList.getItem(8)\n ));\n\n specialRooms.add(new Room(\n \"Det her ligner øjensynligt det kosteskab, Harry Potter boede i.\",\n false,\n monsterList.getMonster(3),\n itemList.getItem(4)\n ));\n\n specialRooms.add(new Room(\n \"OMG! Hvad er det syn?! KANTINEN!! Du klarede det! Du skynder dig op i køen lige foran ham den arrogante fra din afdeling. Da du når frem til fadet er der kun 4 fiskefileter tilbage. Du snupper alle 4!\",\n true,\n null,\n null\n ));\n\n //Adding rooms(Inde1-5)\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addMeetingRoom(rooms, meetingRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n\n //Adding rooms(Inde6-10)\n addMeetingRoom(rooms, meetingRooms);\n addCopyRoom(rooms, copyRooms);\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n addCopyRoom(rooms, copyRooms);\n\n //Adding rooms(Inde11-15)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n\n //Adding rooms(Inde16-19)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addSpecialRoom(rooms, specialRooms);\n addMeetingRoom(rooms, meetingRooms);\n\n return rooms;\n }",
"private void setRooms() {\r\n\t\tAccountBean bean = new AccountBean();\r\n\t\tbean.setCf(Session.getSession().getCurrUser().getAccount().getCf());\r\n\t\tRoomController ctrl = RoomController.getInstance();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.myRooms=FXCollections.observableArrayList(ctrl.getMyRooms(bean));\r\n\t\t}\r\n\t\tcatch (DatabaseException ex1) {\r\n\t\t\tJOptionPane.showMessageDialog(null,ex1.getMessage(),ERROR, JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public List<Room> findRooms(int offset, int limit, String orderBy) throws AppException {\n log.info(\"#findRooms offset = \" + offset + \" limit = \" + limit + \" orderBy = \" + orderBy);\n Connection con = null;\n PreparedStatement ps;\n ResultSet rs;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n ps = con.prepareStatement(SELECT_ROOMS);\n log.info(\"orderBy = \" + orderBy);\n switch (orderBy) {\n case(\"price\"):\n ps = con.prepareStatement(SELECT_ROOMS_PRICE);\n break;\n case(\"size\"):\n ps = con.prepareStatement(SELECT_ROOMS_SIZE);\n break;\n case(\"class\"):\n ps = con.prepareStatement(SELECT_ROOMS_CLASS);\n break;\n case(\"status\"):\n ps = con.prepareStatement(SELECT_ROOMS_STATUS);\n }\n int k = 1;\n ps.setInt(k++, limit);\n ps.setInt(k, offset);\n log.info(\"ps = \" + ps);\n rs = ps.executeQuery();\n rooms = new ArrayList<>();\n while (rs.next()) {\n rooms.add(extractRoom(con, rs));\n }\n con.commit();\n log.info(\"rooms = \" + rooms);\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem findRooms\");\n throw new AppException(\"Cannot find rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }",
"public ArrayList<CalendarRoom> getAvailableRooms(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=getAvailableRooms&token=\"+sSecurityToken+\"&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.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }",
"public ChatRoomTableModel getRoomlist() {\n\t\treturn roomlist;\n\t}",
"@Override\n\tpublic List<Floor> findAll() {\n\t\treturn floorDao.findAll();\n\t}",
"@RequestMapping(value = \"/room\", method = RequestMethod.GET)\n public ModelAndView listRoom() {\n List<Group> groups = userBean.getAllGroups();\n for (int i = 0; i < groups.size(); i++) {\n userBean.getGroupByStreamId(groups.get(1));\n }\n ModelAndView view = new ModelAndView(\"room\");\n // view.addObject(\"list\", room);\n // view.addObject(\"note\", rooms);\n //view.addObject(\"st\", streamGroups);\n return view;\n }",
"public Vector<String> getConferenceRooms() {\n return conferenceRooms;\n }",
"private void displayListOfRooms() {\n DatabaseReference roomsRef = FirebaseDatabase.getInstance().getReference(\"Rooms\");\n\n roomsRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // update rooms every time there's a change\n updateRooms(dataSnapshot);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo, String sType)\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=getAvailableRooms&token=\"+sSecurityToken+\"&type=\"+sType+\"&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.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }",
"@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }",
"public ArrayList<Room> createMaze() {\n createRooms();\n createAccess(rooms);\n\n return rooms;\n }",
"List<ExamRoom> selectAll();",
"public Room[] getConnections() {\n return connections;\n }",
"@GET\n @Produces(\"application/json\")\n @Path(\"/building/id/{id}\")\n public static List<CRoom> roomsByBuilding(@PathParam(\"id\") final int pId) {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(\n CRoom.FIND_ROOMS_BY_BUILDING, QueryParameter.with(\"Pid\", pId).parameters());\n }",
"private List<String> retrieveObjectsInRoom(Room room) {\n List<String> retirevedInRoom = new ArrayList<>();\n for (String object : room.getObjects()) {\n if (wantedObjects.contains(object)) {\n retirevedInRoom.add(object);\n }\n }\n return retirevedInRoom;\n }",
"protected ArrayList<Long> getRoomMembers() {\n\treturn roomMembers;\n }",
"public LinkedList getList() {\n\treturn this.roomList;\n}",
"public Item[] getRoomContents() {\n Item[] contentsArray = new Item[contents.size()];\n contentsArray = contents.toArray(contentsArray);\n return contentsArray;\n }",
"public static ArrayList<Room> getTypicalRooms() {\n return new ArrayList<>(Arrays.asList(BEST_ROOM, WORST_ROOM));\n }",
"private void get_rooms() throws FileNotFoundException\n {\n Scanner room_all = new Scanner(new FileInputStream(db_rooms));\n room_all.nextLine();\n while(room_all.hasNextLine())\n {\n String [] searcher = (room_all.nextLine()).split(\"\\\"\");\n if(!searcher[7].equals(\"empty\"))\n data_set.add(new Room(searcher[3], searcher[5], (searcher[7].equals(\"booked\") ? 1 : 2), Integer.valueOf(searcher[1])));\n else\n data_set.add(new Room(Integer.valueOf(searcher[1])));\n }\n room_all.close();\n }",
"@RequestMapping(value = \"/vacantrooms\", method = RequestMethod.GET)\n public ArrayList<Room> vacantRooms(){\n ArrayList<Room> listroom = DatabaseRoom.getVacantRooms();\n return listroom;\n }",
"public List<Room> getByType(int idRoomType) {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room_type=\" + idRoomType);\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}",
"@GetMapping(\"/listRoom\")\r\n\tpublic String listRooms(Model theModel) {\n\t\tList<Room> theRooms = roomService.findAll();\r\n\t\t\r\n\t\t// add to the spring model\r\n\t\ttheModel.addAttribute(\"rooms\", theRooms);\r\n\t\t\r\n\t\treturn \"/rooms/list-rooms\";\r\n\t}",
"@Override\n\tpublic void onGetAllRoomsDone(AllRoomsEvent arg0) {\n\t\t\n\t}",
"public int getNumOfRooms() {\n return internalList.size();\n }",
"public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}",
"public List<Room> getFreeOn(LocalDate of) {\r\n\t\tList<Room> l= this.getAllRooms();\r\n\t\tl.removeAll(this.getReservedOn(of));\r\n\t\treturn l;\r\n\t}",
"public ArrayList<roomContents> getContents() {\n return contents;\n }",
"@Override\n\tpublic HashSet<IChatroom> getChatrooms() throws RemoteException {\n\t\treturn chatrooms;\n\t}",
"Room getRoom();",
"Room getRoom();",
"@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}",
"@Transactional(readOnly = true)\n public List<Game> findAll() {\n log.debug(\"Request to get all Games\");\n return gameRepository.findAll();\n }",
"public Stream<Long> members() {\n\treturn roomMembers.stream();\n }",
"@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}",
"@Override\n\tpublic List<Mall> getMalls() {\n\t\treturn iMallDao.getMalls();\n\t}",
"public List<Room> getByRoomType(String roomType){\r\n\t\tif(userService.adminLogIn||userService.loggedIn) {\r\n\t\t\tList<Optional<Room>> room=new ArrayList<>();\r\n\t\t\troom=roomRepository.findByRoomType(roomType);\r\n\t\t\tif (room.size()==0) {\r\n\t\t\t\tthrow new RoomTypeNotFoundException(\"Room type not available\");\r\n\t\t\t} else {\r\n\t\t\t\tList<Room> newRoom=new ArrayList<Room>();\r\n\t\t\t\tfor(Optional r:room) {\r\n\t\t\t\t\tnewRoom.add((Room) r.get());\r\n\t\t\t\t}\r\n\t\t\t\treturn newRoom;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public int getItemCount() {\n return restrooms.size();\n }",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}",
"@GetMapping(\"/{hotelId}/rooms\")\n public ResponseEntity<Resources<RoomResource>> getRoomsForHotelId(@PathVariable Long hotelId){\n\n return new ResponseEntity<>(\n hotelService.findRoomsByHotelId(hotelId),HttpStatus.OK\n );\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}",
"@GetMapping(value=\"/\")\n\t\tpublic static Collection<Lobby> lobbies(){\n\t\t\treturn lobbies.values();\n\t\t}",
"@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}",
"public void getAllSingleRoom() {\n\t\t for(SuiteRoom elem: suiteroom)\n\t {\n\t \t System.out.println (\"capacité : \" +elem.getCapacity());\n\t \t System.out.println (\"prix : \" +elem.getPrice());\n\t \t System.out.println (\"numéro : \" +elem.getIdRoom());\n\t \t System.out.println (\"nom : \" +elem.getName());\n\t \tSystem.out.println (\"-------------------\");\n\t \t \n\t }\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<BuildingDTO> findAll() {\n log.debug(\"Request to get all Buildings\");\n return buildingRepository.findAll().stream()\n .map(buildingMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public List findAll() {\n\t\treturn dao.findAll();\r\n\t}",
"public Room getRoom() {\n return currentRoom;\n }",
"@Override\n @Transactional(readOnly = true)\n public List<ModeDTO> findAll() {\n log.debug(\"Request to get all Modes\");\n return modeRepository.findAll().stream()\n .map(modeMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"public List<String> getCustomRoomNames() {\n List<String> crooms = new ArrayList<String>();\n Set<String> names = plugin.getRoomsConfig().getConfigurationSection(\"rooms\").getKeys(false);\n for (String cr : names) {\n if (plugin.getRoomsConfig().getBoolean(\"rooms.\" + cr + \".user\") && plugin.getRoomsConfig().getBoolean(\"rooms.\" + cr + \".enabled\")) {\n crooms.add(cr);\n }\n }\n return crooms;\n }",
"public List<Suspect> getNPCs(Room room) {\n List<Suspect> npcsInRoom = new ArrayList<Suspect>();\n\n for (Suspect s : game.gameSnapshot.getSuspects()) {\n if (s.getRoom().getID() == room.getID()) {\n npcsInRoom.add(s);\n }\n }\n\n return npcsInRoom;\n }",
"public Room getRoom(){\n\t\treturn this.room;\n\t}",
"@Override\n public int getCount() {\n Log.d(TAG, \"getCount: size\" +fromName.size());\n return rooms.size();\n }",
"@SuppressWarnings(\"unchecked\")\n @Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED)\n public List<Reservations> getAll() {\n Session s = sessionFactory.getCurrentSession();\n Query hql = s.createQuery(\"From Reservations\");\n return hql.list();\n }",
"@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}",
"public List<Laptop> findAll() {\n\t\treturn laptopDao.findAll();\r\n\t}",
"public Room getRoom()\n {\n return currentRoom;\n }"
] |
[
"0.80667436",
"0.7926422",
"0.7860819",
"0.7852372",
"0.78371495",
"0.7835072",
"0.7779247",
"0.7747118",
"0.7716675",
"0.75812197",
"0.7578291",
"0.7568004",
"0.74418616",
"0.73431146",
"0.7232427",
"0.7220979",
"0.7181864",
"0.7154852",
"0.71326494",
"0.7077062",
"0.7061635",
"0.70237136",
"0.69762945",
"0.6882904",
"0.68648934",
"0.6843327",
"0.6736421",
"0.6684495",
"0.6679098",
"0.66278255",
"0.6604541",
"0.6584097",
"0.65766525",
"0.65747774",
"0.6541856",
"0.6526743",
"0.64971787",
"0.64957726",
"0.6468795",
"0.6389854",
"0.63788736",
"0.63539875",
"0.63124937",
"0.62918913",
"0.62734103",
"0.6250122",
"0.62169605",
"0.6195719",
"0.61717296",
"0.6169334",
"0.6151381",
"0.61201453",
"0.610346",
"0.6098689",
"0.6095407",
"0.6088036",
"0.60719144",
"0.60361916",
"0.60310477",
"0.6007065",
"0.5954857",
"0.5942258",
"0.59392995",
"0.59274864",
"0.59264743",
"0.5924935",
"0.58965087",
"0.58838934",
"0.58664256",
"0.5852956",
"0.58501077",
"0.58448774",
"0.5838936",
"0.5838936",
"0.5836736",
"0.5831043",
"0.5805583",
"0.5787096",
"0.57854515",
"0.57746077",
"0.5773456",
"0.5761477",
"0.5755997",
"0.57467324",
"0.5726622",
"0.572487",
"0.57142365",
"0.5698323",
"0.5692784",
"0.56927264",
"0.56835526",
"0.5662682",
"0.5657834",
"0.56542045",
"0.5652944",
"0.5651069",
"0.56492066",
"0.56397265",
"0.5628355",
"0.56272244"
] |
0.7599507
|
9
|
Checks the passedin CellPanel for a connectible Entity. If the Entity is connectible, this method takes the information it needs from the CellPanel before passing the Room on to be loaded into the InfoPanel.
|
public void load(Cell cell) {
// Double-check we're dealing with a Room.
if(cell.isConnectible()) {
// Get the data we need from the CellPanel.
//this.colorChooserButton.setBackground(cellPanel.getBackground());
this.colorChooserButton.setBackground(cell.getColor());
// Load the Room.
Room room = (Room)cell.getEntity();
loadRoom(room);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + entity.collisionArea.y + entity.collisionArea.height;\n\t\t\t\n\t\t\tint entityLeftCol = entityLeftX/gamePanel.unitSize;\n\t\t\tint entityRightCol = entityRightX/gamePanel.unitSize;\n\t\t\tint entityUpRow = entityUpY/gamePanel.unitSize;\n\t\t\tint entityDownRow = entityDownY/gamePanel.unitSize;\n\t\t\t\n\t\t\tint point1;\n\t\t\tint point2;\n\t\t\t//This point is used for diagonal movement\n\t\t\tint point3;\n\t\t\t\n\t\t\tswitch(entity.direction) {\n\t\t\t\t//Lateral and longitudinal movements\n\t\t\t\tcase \"up\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"down\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t//Diagonal Movements\n\t\t\t\tcase \"upleft\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"upright\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"downleft\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"downright\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"@Override\n public boolean canConnectPart(IConnectable part, int dir) {\n if (part instanceof IBundledCablePart) {\n return true;\n } else if (part instanceof IInsulatedRedwirePart) {\n return ((IInsulatedRedwirePart) part).getInsulatedColour() == getInsulatedColour();\n }\n return super.canConnectPart(part, dir);\n }",
"private void trackPosition(Entity entity, Node node) {\n // TODO = tweak this slightly to remove items from the equipped inventory?\n GridPane.setColumnIndex(node, entity.getX());\n GridPane.setRowIndex(node, entity.getY());\n\n ChangeListener<Number> xListener = new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n GridPane.setColumnIndex(node, newValue.intValue());\n }\n };\n ChangeListener<Number> yListener = new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n GridPane.setRowIndex(node, newValue.intValue());\n }\n };\n\n // if need to remove items from the equipped inventory, add code to remove from\n // equipped inventory gridpane in the .onDetach part\n ListenerHandle handleX = ListenerHandles.createFor(entity.x(), node)\n .onAttach((o, l) -> o.addListener(xListener)).onDetach((o, l) -> {\n o.removeListener(xListener);\n entityImages.remove(node);\n squares.getChildren().remove(node);\n cards.getChildren().remove(node);\n equippedItems.getChildren().remove(node);\n unequippedInventory.getChildren().remove(node);\n }).buildAttached();\n ListenerHandle handleY = ListenerHandles.createFor(entity.y(), node)\n .onAttach((o, l) -> o.addListener(yListener)).onDetach((o, l) -> {\n o.removeListener(yListener);\n entityImages.remove(node);\n squares.getChildren().remove(node);\n cards.getChildren().remove(node);\n equippedItems.getChildren().remove(node);\n unequippedInventory.getChildren().remove(node);\n }).buildAttached();\n handleX.attach();\n handleY.attach();\n\n // this means that if we change boolean property in an entity tracked from here,\n // position will stop being tracked\n // this wont work on character/path entities loaded from loader classes\n entity.shouldExist().addListener(new ChangeListener<Boolean>() {\n @Override\n public void changed(ObservableValue<? extends Boolean> obervable, Boolean oldValue, Boolean newValue) {\n handleX.detach();\n handleY.detach();\n }\n });\n }",
"@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n return super.isValidEntity(entity, game, useValidNonInfantryCheck)\n && (entity.getId() == entityId);\n }",
"boolean isVisible(Player player, Entity entity);",
"public void checkComponent() {\r\n Component component = ViewToEntityConverter.view2Model(view);\r\n validate(component);\r\n }",
"public boolean hasComponent(@Entity int entity) {\n return nHasComponent(mNativeObject, entity);\n }",
"public boolean canMoveEntity (Entity entity, Point dest) {\n if (entity == null) throw new IllegalArgumentException(\"Entity is null\");\n if (dest == null) throw new IllegalArgumentException(\"Point is null\");\n if (!grid.containsKey(dest)) throw new IllegalArgumentException(\"The cell is not on the grid\");\n\n Point origin = entity.getCoords();\n\n if (origin.equals(dest)) return false;\n\n Vector vector = Vector.findStraightVector(origin, dest);\n\n if (vector == null) return false;\n Vector step = new Vector(vector.axis(), (int) (1 * Math.signum(vector.length())));\n Point probe = (Point) origin.clone();\n while (!probe.equals(dest)) {\n probe = step.applyVector(probe);\n if (!grid.containsKey(probe)) return false;\n }\n\n\n return true;\n }",
"public boolean isVisible(Entity entity) {\n\t\ta = getArea(entity, false, false);\n\t\treturn a != null && !a.isEmpty();\n\t\t//if (entity != null && \"Fishing spot\".equals(entity.getName()))\n\t\t//\treturn getWalker().tile(entity).isVisible();\n\t\t\n\t\t//return entity.isVisible();\n\t}",
"public boolean verifyRoom() throws NotEnoughDoorsException {\n if (getDoors().get(\"N\") == null && getDoors().get(\"W\") == null\n && getDoors().get(\"S\") == null && getDoors().get(\"E\") == null) {\n throw new NotEnoughDoorsException();\n }\n\n for (String key: getDoors().keySet()) {\n Door doorHolder = getDoors().get(key);\n if (doorHolder != null) {\n if (doorHolder.getConnectedRooms().size() < 2 || doorHolder.getOtherRoom(this) == null) {\n return false;\n }\n }\n }\n\n for (Item singleItem: roomItems) {\n int itemX = (int) singleItem.getXyLocation().getX();\n int itemY = (int) singleItem.getXyLocation().getY();\n if (itemX >= getWidth() - 1 || itemX <= 0) {\n return false;\n }\n if (itemY >= getHeight() - 1 || itemY <= 0) {\n return false;\n }\n }\n\n if (isPlayerInRoom()) {\n int playerX = (int) getPlayer().getXyLocation().getX();\n int playerY = (int) getPlayer().getXyLocation().getY();\n if (playerX >= getWidth() - 1 || playerX <= 0) {\n return false;\n }\n if (playerY >= getHeight() - 1 || playerY <= 0) {\n return false;\n }\n }\n\n return true;\n }",
"@Override\n public void performAction(int row, int col) throws MapException {\n if (GameData.get().getMap().getMapElement(row, col).getStructure() != null) {\n mCityActivity.inspectBuilding(row, col);\n }\n }",
"private void checkAndConnect(int srcIndex, int dstRow, int dstCol) {\n if (isInGrid(dstRow, dstCol) && isOpen(dstRow, dstCol)) {\n final int dstIndex = convertRowColToIndex(dstRow, dstCol);\n gridGraphVirtualTop.union(srcIndex, dstIndex);\n gridGraphVirtualTopBottom.union(srcIndex, dstIndex);\n }\n }",
"@Override\n public boolean isValidEntity(Entity entity, IGame game,\n boolean useValidNonInfantryCheck) {\n return (super.isValidEntity(entity, game, useValidNonInfantryCheck) \n && (unitNumber == entity.getUnitNumber()));\n }",
"public boolean validateConnection(CellStorage from, CellStorage to) {\r\n\t\tHashMapConnectedNodes nodeFrom = null;\r\n\t\tHashMapConnectedNodes nodeTo = null;\r\n\t\tif (hshMConnectedNodes.size() == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\tif (hshMConnectedNodes.get(counter).searchNode(from))\r\n\t\t\t\tnodeFrom = hshMConnectedNodes.get(counter);\r\n\t\t\tif (hshMConnectedNodes.get(counter).searchNode(to))\r\n\t\t\t\tnodeTo = hshMConnectedNodes.get(counter);\r\n\t\t}\r\n\t\tif (nodeFrom == null || nodeTo == null)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}",
"@Override\n public boolean moveIsPossible(Coordinate coord) {\n if(gameState.getTurnState().hasMoved()){\n return false;\n }\n Field field = gameState.getField();\n if(!field.getField().containsKey(coord)){\n return false;\n }\n Cell currentPosition = gameState.getTurnState().getCurrentPlayer()\n .getPosition();\n Cell destination = field.getCell(coord);\n return field.isReachable(currentPosition, destination, 3);\n }",
"@Override\n public boolean canConnectPart(IConnectable part, int dir) {\n return part instanceof IRedwirePart;\n }",
"public void paintEntityGui(Entity entity, Graphics graphics, Camera camera, Minimap minimap)\r\n\t{\t\r\n\t\tif(entity.getFaction() == EntityConfiguration.PLAYER_FACTION)\r\n\t\t{\r\n\t\t\tgraphics.setColor(Color.green);\r\n\t\t}\r\n\t\telse if(entity.getFaction() == EntityConfiguration.BOT_FACTION)\r\n\t\t{\r\n\t\t\tgraphics.setColor(Color.red);\r\n\t\t}\r\n\t\telse if(entity.getId() == EntityConfiguration.RESSOURCE)\r\n\t\t{\r\n\t\t\tgraphics.setColor(Color.yellow);\r\n\t\t}\r\n\t\tgraphics.fillRect(entity.getPosition().getX() / GameConfiguration.TILE_SIZE * minimap.getGridMapWidth() + minimap.getFirstGridXOfMap(), \r\n\t\t\t\tentity.getPosition().getY() / GameConfiguration.TILE_SIZE * minimap.getGridMapHeight() + minimap.getFirstGridYOfMap(), \r\n\t\t\t\tminimap.getGridMapWidth(), minimap.getGridMapHeight());\r\n\t}",
"@Test\n\tpublic void testConnected() {\n\t\tLevel level = new Level(100, 100);\n\t\tassertTrue(LevelGen.connected(level.getGrid()));\n\t}",
"@Override\n\t\t\t\tpublic boolean validEntity(Entity me, Entity other) {\n\t\t\t\t\tif(Mappers.status.get(me).same(Mappers.status.get(other))) return false;\n\t\t\t\t\t\n\t\t\t\t\tFacingComponent facingComp = Mappers.facing.get(me);\n\t\t\t\t\tBody myBody = Mappers.body.get(me).body;\n\t\t\t\t\tBody otherBody = Mappers.body.get(other).body;\n\t\t\t\t\t\n\t\t\t\t\tfloat xOff = facingComp.facingRight ? 0.5f : -0.5f;\n\t\t\t\t\t\n\t\t\t\t\tfloat myX = myBody.getPosition().x + xOff;\n\t\t\t\t\tfloat myY = myBody.getPosition().y;\n\t\t\t\t\tfloat otherX = otherBody.getPosition().x;\n\t\t\t\t\tfloat otherY = otherBody.getPosition().y;\n\t\t\t\t\t\n\t\t\t\t\tfloat minX = 0.0f;\n\t\t\t\t\tfloat maxX = minX + range;\n\t\t\t\t\tfloat yRange = 0.9f;\n\t\t\t\t\t\n\t\t\t\t\t// Construct box in front of you\n\t\t\t\t\tfloat closeX = facingComp.facingRight ? myX + minX : myX - minX;\n\t\t\t\t\tfloat farX = facingComp.facingRight ? myX + maxX : myX - maxX;\n\t\t\t\t\tfloat top = myY + yRange;\n\t\t\t\t\tfloat bottom = myY - yRange;\n\t\t\t\t\t\n\t\t\t\t\tDebugRender.setType(ShapeType.Line);\n\t\t\t\t\tDebugRender.setColor(Color.CYAN);\n\t\t\t\t\tDebugRender.rect(facingComp.facingRight ? closeX : farX, bottom, Math.abs(farX - closeX), top - bottom, 1.0f);\n\t\t\t\t\t\n\t\t\t\t\tRectangle kick = new Rectangle(Math.min(closeX, farX), bottom, Math.abs(closeX - farX), top - bottom);\n\t\t\t\t\tRectangle enemy = new Rectangle(Mappers.body.get(other).getAABB());\n\t\t\t\t\tenemy.x = otherX - enemy.width * 0.5f;\n\t\t\t\t\tenemy.y = otherY - enemy.height * 0.5f;\n\t\t\t\t\t\n\t\t\t\t\treturn kick.overlaps(enemy);\n//\t\t\t\t\treturn (((facingComp.facingRight && otherX >= closeX && otherX <= farX) || (!facingComp.facingRight && otherX >= farX && otherX <= closeX)) && otherY <= top && otherY >= bottom);\n\t\t\t\t}",
"private void validateCharTypeForEntity(CharacteristicType charType, CharacteristicEntityLookup charEntity) {\n\n\t\tCharacteristicEntity_Id charEntityId = new CharacteristicEntity_Id(charType, charEntity);\n\t\tif (isNull(charEntityId.getEntity())) {\n\n\t\t\taddError(MessageRepository.charTypeIsInvalidForEntity(charType.getId(), charEntity.getLookupValue().getEffectiveDescription()));\n\n\t\t}\n\t}",
"private boolean isInDoor(Entity player){\n Sprite playerSprite= (Sprite) player.getComponent(Sprite.class);\n for(int i = 0; i<Main.colliderWallMap.size(); i++){\n if(Main.colliderWallMap.get(i).intersects(playerSprite.getValue().getX(), playerSprite.getValue().getY(),playerSprite.getValue().getWidth(), playerSprite.getValue().getHeight())){\n return false;\n }\n }\n\n return true;\n }",
"public void ensureEntranceHole(Entity entity) {\r\n // Not if in spectator mode\r\n if(entity instanceof Player) {\r\n if(((Player)entity).getGameMode() == GameMode.SPECTATOR)\r\n return;\r\n }\r\n\r\n // Only on worlds that are below\r\n if(!worldToIsBelow)\r\n return;\r\n\r\n // Get entities location\r\n Location loc = entity.getLocation();\r\n int x = loc.getBlockX();\r\n int z = loc.getBlockZ();\r\n\r\n // Get block\r\n Block block = worldTo.getBlockAt(x, yTo, z);\r\n\r\n // Set to air if not already something there\r\n if(!BreathableBlocks.isBreathable(block.getType()))\r\n block.setType(Material.AIR);\r\n }",
"private static Boolean checkForContinuousConnectivity()\n\t{\n\t\tint row=0;\n\t\tint column=0;\n\t\tBoolean floorFound=false;\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR)\n\t\t\t\t{\n\t\t\t\t\trow=i;\n\t\t\t\t\tcolumn=j;\n\t\t\t\t\tfloorFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (floorFound)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR && !(_PF.canFindAWay(column, row, j, i)))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public abstract boolean isTerrainAccessiable(final Cell cell);",
"private boolean isCellOccupied(Cell c) {\n Worm[] opponentWorms = opponent.worms;\n Worm[] playerWorms = player.worms;\n int i = 0;\n int j = 0;\n boolean foundOpponentWorm = false;\n boolean foundPlayerWorm = false;\n while ((i < opponentWorms.length) && (!foundOpponentWorm)) {\n if ((opponentWorms[i].position.x == c.x) && (opponentWorms[i].position.y == c.y)) {\n foundOpponentWorm = true;\n } else {\n i++;\n }\n }\n while ((j < playerWorms.length) && (!foundPlayerWorm)) {\n if ((playerWorms[j].position.x == c.x) && (playerWorms[j].position.y == c.y)) {\n foundPlayerWorm = true;\n } else {\n j++;\n }\n }\n return (foundOpponentWorm || foundPlayerWorm);\n }",
"public boolean isGridAvail(Entity subject, int x, int y) {\n \t// Don't bother checking beyond the bounds\n \tif (y < 0 || y >= this.height || x < 0 || x >= this.width) {\n \t\treturn false;\n \t}\n \tArrayList<Entity> entitiesOnGrid = checkGrid(x, y);\n \tfor (Entity e : entitiesOnGrid) {\n \tif (e != null) {\n \t\tif (e instanceof Boulder) {\n \t\treturn (((Boulder) e).isBlocking(subject, x, y) ? false : true);\n \t} else if (e.isBlocking(subject)) { // only returns if the entity is blocking, otherwise check again\n \t\t// in case the next entity on same grid is blocking\n \t\t\treturn false;\n \t\t} \n \t} \n \t}\n \t// looked at all the entities on the grid and none are blocking \n \treturn true;\n }",
"public boolean canPlaceEntity() {\n boolean blocked = this.mapCoordinatesForEntityToPlace.stream().anyMatch(c -> c.placeableState == PlaceableState.BLOCKED);\n if (blocked) return false;\n\n return this.mapCoordinatesForEntityToPlace.stream().anyMatch(c -> c.placeableState == PlaceableState.PLACEABLE);\n }",
"public boolean isProjectileAlive(World world, Entity entity) {\n // return true iff the entity has all of the following components\n return world.hasComponent(entity, ProjectileComponent.class)\n && world.hasComponent(entity, PositionComponent.class)\n && world.hasComponent(entity, MovementComponent.class)\n && world.hasComponent(entity, CollisionComponent.class)\n && world.hasComponent(entity, SpriteComponent.class)\n && world.hasComponent(entity, MassComponent.class)\n && world.hasComponent(entity, GravityComponent.class)\n && world.hasComponent(entity, RectangleComponent.class);\n }",
"@Override\n public boolean isValid(int playerId, Entity entity, IGame game) {\n return ((null != entity) && (entity.getOwnerId() == playerId) && isValidEntity(\n entity, game));\n }",
"private void checkConnectivity() throws NotConnected\n\t{\n\t\tif (!s_ctx.isConnected())\n\t\t{\n\t\t\tthrow new NotConnected(\"Cannot operate: not conected to context\");\n\t\t}\n\t}",
"public boolean isConnectedPort() {\n for (Tile t : getTile().getSurroundingTiles(1)) {\n if (!t.isLand() && t.isHighSeasConnected()) return true;\n }\n return false;\n }",
"public boolean isLegalDiag(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\n\t\tPlayer toMove;\n\t\tPlayer oppo;\n\n\t\tint col, row;\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\n\t\t\tcol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\trow = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\ttoMove = white;\n\t\t\toppo = currentGame.getBlackPlayer();\n\t\t} else {\n\t\t\tcol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\trow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\toppo = white;\n\t\t\ttoMove = currentGame.getBlackPlayer();\n\t\t}\n\t\t\n\t\tif (dir == MoveDirection.NorthEast) {\n\t\t\tif(col==9 || row ==1) return false;\n\t\t} else if(dir == MoveDirection.NorthWest) {\n\t\t\tif(col==1 || row ==1) return false;\n\t\t} else if(dir == MoveDirection.SouthEast) {\n\t\t\tif(col==9 || row ==9) return false;\n\t\t} else if(dir == MoveDirection.SouthWest) {\n\t\t\tif(col==1 || row ==9) return false;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\t//Tiles are drawn by row then by column. 0= row1 col1, \n\t\t\n\t\t//Checking the has opponent first\n\t\tboolean correct = false;\n\t\t//Check down\n\t\tif(QuoridorController.hasOpponent(1, 0)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, 1, 0)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, 1, 0) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, -1)) {\n\t\t\t\t\t\t//Jump diagonal- check left\n\t\t\t\t\t\tif(dir == MoveDirection.SouthWest) return true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, 1)) {\n\t\t\t\t\t\t//Jump diagonal- check right\n\t\t\t\t\t\tif(dir == MoveDirection.SouthEast) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t//Check up\n\t\t} else if(QuoridorController.hasOpponent(-1, 0)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, -1, 0)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, -1, 0) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, -1)) {\n\t\t\t\t\t\t//Jump diagonal- check left\n\t\t\t\t\t\tif(dir == MoveDirection.NorthWest) return true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, 1)) {\n\t\t\t\t\t\t//Jump diagonal- check right\n\t\t\t\t\t\tif(dir == MoveDirection.NorthEast) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t//Check right\n\t\t} else if(QuoridorController.hasOpponent(0, 1)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, 0, 1)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, 1) ) {\n\t\t\t\t\t//Jump straight allowed\n\t\t\t\t\treturn false;\t\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, -1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check up\n\t\t\t\t\t\tif(dir == MoveDirection.NorthEast) return true;\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check down\n\t\t\t\t\t\tif(dir == MoveDirection.SouthEast) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//Check left\n\t\t} else if(QuoridorController.hasOpponent(0, -1)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, 0, -1)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, -1) ) {\n\t\t\t\t\t//Jump straight allowed\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, -1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check up\n\t\t\t\t\t\tif(dir == MoveDirection.NorthWest) return true;\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check down\n\t\t\t\t\t\tif(dir == MoveDirection.SouthWest) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\r\n }",
"boolean canRender(IModel model, Entity entity);",
"@Test\n\tpublic void testConnected2() {\n\t\tLevel level = new Level(100, 100);\n\t\tlevel.makeWalls();\n\t\tfor (int i = 1; i < 7; i++) {\n\t\t\tlevel.updateCoords(i, 6, 1);\n\t\t\tlevel.updateCoords(6, i, 1);\n\t\t}\n\t\tlevel.updateCoords(6, 6, 1);\n\t\tassertFalse(LevelGen.connected(level.getGrid()));\n\t}",
"boolean checkCreatureInAdjacentCells(CreatureType creatureType);",
"public boolean isFull(int row, int col) {\n if (isOpen(row, col)) {\n return mainObject.connected(vsite1, coordinateConvertFrom(row, col));\n }\n return false;\n }",
"public boolean isInThing(Graphics2D g, CoordinateMapper cm, int worldX, int worldY){\n\t\treturn false;\n/*\n\t\treturn((worldX >= t.getX1()) &&\n\t\t\t(worldX <= t.getX2()) &&\n\t\t\t(worldY >= t.getY1()) &&\n\t\t\t(worldY <= t.getY2()));\n\t\t\t*/\n\t}",
"public boolean canHit(Figure entity) {\n return true;\n }",
"void checkCollision(Entity other);",
"@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n // The entity must be in the mask, and pass\n // the requirements of the parent class.\n return ((GameTurn.getClassCode(entity) & mask) != 0)\n && super.isValidEntity(entity, game, \n useValidNonInfantryCheck);\n }",
"private boolean checkImage(int row, int col, String imageName) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tString roomImageName = room[i].getImageName();\n\t\t\tif (roomImageName != null && roomImageName.equals(imageName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isEntityTooSmall(Entity e)\n {\n double expandScale = 1.0;\n if(e instanceof Player) //if e is player, it will make the icon bigger\n {\n expandScale *= playerIconScale;\n }\n\n double entityMapWidth = scale * expandScale * e.getEntityWidth();\n double entityMapHeight = scale * expandScale * e.getEntityHeight();\n double area = 0.5 * entityMapWidth * entityMapHeight;\n\n return area<MIN_PLAYER_AREA ;\n }",
"public boolean enterBridge(BridgeEntity bridge);",
"@Override\n\tpublic boolean isExists(ConquestMoveEffect entity) {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isSupportedByEntity(final Action action, final String entity) {\n\t\treturn action.getName().equals(\"occupy\");\n\t}",
"protected boolean checkExistence(E entity) throws DAOException {\n\t\tString existanceSQL = getEntityExistanceSQL(entity);\n\n\t\ttry (Connection connection = source.getConnection();\n\t\t\t\tStatement st = connection.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(existanceSQL)) {\n\n\t\t\treturn rs.next();\n\n\t\t} catch (SQLException cause) {\n\t\t\tthrow new DAOException(cause);\n\t\t}\n\t}",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"public boolean hasCollision(final Entity entity) throws Exception\r\n {\r\n return (getCharacter(entity) != null);\r\n }",
"boolean isCellAlive(int x, int y);",
"public static boolean isBasicJumpValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\t//is the impot is legal\r\n\t\tif(fromRow<8&fromCol<8&toRow<8&toCol<8&fromRow>-1&fromCol>-1&toRow>-1&toCol>-1&player>-2&player<2&player!=0){\r\n\t\t\tif (board [toRow][toCol]==0){/*is the target slot avalibel*/\r\n\t\t\t\tif (board[fromRow][fromCol]==1||board[fromRow][fromCol]==2){/*is the player is red*/\t\t\t\r\n\t\t\t\t\tif((board[(fromRow+toRow)/2][(fromCol+toCol)/2]==-1)||(board[(fromRow+toRow)/2][(fromCol+toCol)/2]==-2)){/*is thier enemy solduers between the begning and the target*/\r\n\t\t\t\t\t\tif (board[fromRow][fromCol]==1){/*is thie simpol soldiuer in the bignning slot*/\r\n\t\t\t\t\t\t\tif(fromRow==toRow-2&&(fromCol==toCol+2||fromCol==toCol-2)){/*is eating diagonally upward and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = 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\telse{/*is thir queen in the starting slot*/\r\n\t\t\t\t\t\t\tif(((fromRow==toRow+2)||(fromRow==toRow-2))&&((fromCol==toCol+2)||(fromCol==toCol-2))){\r\n\t\t\t\t\t\t\t\t/*if is eating diagonally and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (board[fromRow][fromCol]==-1|board[fromRow][fromCol]==-2){/*is the solduer is blue*/\r\n\t\t\t\t\tif((board[(fromRow+toRow)/2][(fromCol+toCol)/2]==1)||(board[(fromRow+toRow)/2][(fromCol+toCol)/2]==2)){/*thie is an enemu betwen the teget and the begning*/\r\n\t\t\t\t\t\tif (board[fromRow][fromCol]==-1){\r\n\t\t\t\t\t\t\tif(fromRow==toRow+2&&(fromCol==toCol+2||fromCol==toCol-2)){/*is eating diagonally downward and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = 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\telse{\r\n\t\t\t\t\t\t\tif(((fromRow==toRow+2)||(fromRow==toRow-2))&&((fromCol==toCol+2)||(fromCol==toCol-2))){\r\n\t\t\t\t\t\t\t\t/*if is eating diagonally and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"protected abstract boolean isConnected();",
"private boolean checkEssentialConnects() {\r\n\t\treturn (animalsHash != null && questionChooser != null);\r\n\t}",
"public EntityOverviewPanel(SectionNodeView sectionNodeView, final Entity entity, final EntityHelper entityHelper) {\n super(sectionNodeView);\n this.entityHelper = entityHelper;\n synchronizer = ((EjbJarMultiViewDataObject) sectionNodeView.getDataObject()).getModelSynchronizer();\n\n JTextField ejbNameTextField = getEjbNameTextField();\n JTextField persistenceTypeTextField = getPersistenceTypeTextField();\n JTextField abstractSchemaNameTextField = getAbstractSchemaNameTextField();\n JLabel primaryKeyFieldLabel = getPrimaryKeyFieldLabel();\n final JComboBox primaryKeyFieldComboBox = getPrimaryKeyFieldComboBox();\n final JComboBox primaryKeyClassComboBox = getPrimaryKeyClassComboBox();\n final JTextField primaryKeyClassTextField = getPrimaryKeyClassTextField();\n\n addRefreshable(new ItemEditorHelper(ejbNameTextField, new TextItemEditorModel(synchronizer, false) {\n protected String getValue() {\n return entity.getEjbName();\n }\n\n protected void setValue(String value) {\n entity.setEjbName(value);\n }\n }));\n ejbNameTextField.setEditable(false);\n\n persistenceTypeTextField.setEditable(false);\n this.entity = entity;\n String persistenceType = this.entity.getPersistenceType();\n boolean isCmp = Entity.PERSISTENCE_TYPE_CONTAINER.equals(persistenceType);\n persistenceTypeTextField.setText(persistenceType + ((isCmp ? \" (CMP)\" : \" (BMP)\"))); //NOI18N\n\n addRefreshable(new ItemEditorHelper(abstractSchemaNameTextField, new TextItemEditorModel(synchronizer, true) {\n protected String getValue() {\n return entity.getAbstractSchemaName();\n }\n\n protected void setValue(String value) {\n entity.setAbstractSchemaName(value);\n }\n }));\n abstractSchemaNameTextField.setEditable(false);\n\n if (isCmp) {\n primaryKeyFieldLabel.setVisible(true);\n primaryKeyFieldComboBox.setVisible(true);\n primaryKeyClassComboBox.setVisible(true);\n primaryKeyClassTextField.setVisible(false);\n\n initPrimaryKeyFieldComboBox();\n final ItemComboBoxHelper primaryKeyComboBoxHelper = new ItemComboBoxHelper(synchronizer,\n primaryKeyFieldComboBox) {\n public String getItemValue() {\n String value = entity.getPrimkeyField();\n return value == null ? PK_COMPOUND : value;\n }\n\n public void setItemValue(String value) {\n try {\n entityHelper.setPrimkeyField(value == PK_COMPOUND ? null : value);\n } catch (ClassNotFoundException e) {\n Utils.notifyError(e);\n }\n }\n };\n addRefreshable(primaryKeyComboBoxHelper);\n primaryKeyFieldComboBox.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n int selectedIndex = primaryKeyFieldComboBox.getSelectedIndex();\n if (selectedIndex == 0) {\n primaryKeyClassComboBox.setEnabled(true);\n primaryKeyClassComboBox.setSelectedItem(entity.getPrimKeyClass());\n } else {\n primaryKeyClassComboBox.setEnabled(false);\n }\n primaryKeyClassComboBox.setSelectedItem(entity.getPrimKeyClass());\n }\n });\n primaryKeyClassComboBox.setEnabled(primaryKeyFieldComboBox.getSelectedIndex() == 0);\n\n primaryKeyClassComboBox.addItem(\"boolean\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"byte\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"char\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"double\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"float\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"int\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"long\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Boolean\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Byte\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Character\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Double\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Float\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Integer\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Long\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Object\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.String\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.math.BigDecimal\");//NOI18N\n\n addRefreshable(new ItemComboBoxHelper(synchronizer, primaryKeyClassComboBox) {\n public String getItemValue() {\n return entity.getPrimKeyClass();\n }\n\n public void setItemValue(String value) {\n if (!Utils.isValidPackageName(value)) {\n primaryKeyComboBoxHelper.refresh();\n }\n }\n });\n\n } else {\n primaryKeyFieldLabel.setVisible(false);\n primaryKeyFieldComboBox.setVisible(false);\n primaryKeyClassComboBox.setVisible(false);\n primaryKeyClassTextField.setVisible(true);\n\n addRefreshable(new ItemEditorHelper(primaryKeyClassTextField, new TextItemEditorModel(synchronizer, false) {\n protected String getValue() {\n return entity.getPrimKeyClass();\n }\n\n protected void setValue(String value) {\n entity.setPrimKeyClass(value);\n }\n }));\n }\n addRefreshable(new ItemCheckBoxHelper(synchronizer, getReentrantCheckBox()) {\n public boolean getItemValue() {\n return entity.isReentrant();\n }\n\n public void setItemValue(boolean value) {\n entity.setReentrant(value);\n }\n });\n }",
"public boolean checkMoveable(int x, int y) {\n\t\t\n \tif(!((y < dungeon.getHeight() - 1) && (y >= 0)))\treturn false;\n \tif(!((x < dungeon.getWidth() - 1) && (x >= 0)))\t\treturn false;\n \t\n \tArrayList<Entity> list = dungeon.getEntity(x, y);\n if(!list.isEmpty()) {\n \tfor (Entity e: list) {\n \t\tif(! e.movable(this)) return false;\n \t\tif(e instanceof Switch) {\n \t\t\te.interact(this);\n \t\t}\n }\n }\n return true;\n }",
"@Test\n void checkCannotForceWithForcedCellOccupied() {\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(1, 0)));\n }",
"public void checkEnemy() {\n\t\tif (enemy != null)\n\t\tif (Integer.parseInt(getCurrentPositionX()) == enemy.getCurrentPositionX() && Integer.parseInt(getCurrentPositionY()) == enemy.getCurrentPositionY()) {\n\t\t\tx = spawnX;\n\t\t\ty = spawnY;\n\t\t}\n\t}",
"public int getConnectedCount(Utils.Player player, int x, int y, int row, int col) {\n\n if (col < 0 || col >= mColsCount || row < 0 || row >= mRowsCount\n || x >= COUNT_CELLS_FOR_WIN || y >= COUNT_CELLS_FOR_WIN) {\n return 0;\n }\n\n Cell cell = mCells[row][col];\n if (mCells[row][col].getPlayer() == player) {\n return 1 + getConnectedCount(player, x, y, row + y, col + x);\n } else if (cell.getPlayer() == Utils.Player.NONE) {\n return getConnectedCount(player, x, y, row + y, col + x);\n } else {\n return 0;\n }\n\n }",
"public abstract boolean canTextureConnect(IBlockAccess access, Position blockPos, Position connectorPos);",
"public boolean coordOnBoard(int row, int col, ArrayList<ArrayList<GamePiece>> board) {\n return (0 <= row && row < board.size()) && (0 <= col && col < board.get(0).size());\n }",
"public JComponent addStatusComponents(Converter fieldInfo, JPanel panel, Object recordOwner)\n {\n FieldList recCostStatus = null;\n if (Product.DISPLAY_COST_STATUS_ID.equals(fieldInfo.getFieldName()))\n recCostStatus = new CostStatus(recordOwner);\n else\n recCostStatus = new InventoryStatus(recordOwner);\n RemoteSession remoteSession = this.getTourGeekScreen().getMainSearchPane().getProductSearchPane().getRemoteSession();\n boolean bCacheTable = false;\n\n fieldInfo = new SecondaryRecordConverter(fieldInfo, remoteSession, recCostStatus, CostStatus.ICON, bCacheTable, CostStatus.ID, null, null);\n fieldInfo = new ImageConverter(fieldInfo); // Add this the first time.\n JComponent component = new JCellImage(fieldInfo);\n ScreenUtil.setEnabled(component, false);\n fieldInfo.addComponent(component);\n if (panel != null)\n {\n panel.add(component);\n\n panel.add(Box.createHorizontalStrut(4));\n\n fieldInfo = recCostStatus.getField(CostStatus.DESCRIPTION);\n JComponent textField = super.createScreenComponent(fieldInfo);\n fieldInfo.addComponent(textField);\n ScreenUtil.setEnabled(textField, false);\n panel.add(textField);\n }\n return component;\n }",
"private Cell checkColRow(CellNode node, char col, int row){\n char nodeCol = node.getCell().getColumn();\n int nodeRow = node.getCell().getRow();\n if(nodeCol == col && nodeRow == row){\n return node.getCell();\n }\n return null;\n }",
"public boolean onScreen(Entity entity) {\n\n if (entity.getXLength() == 1 && entity.getYLength() == 1 && Math.abs(entity.getElevation()) == 0) {\n return onScreen(entity.getX(), entity.getY());\n }\n\n //reverse the math logic from the GameRenderer\n for (int i = 0; i < entity.getXLength(); i++) {\n if (onScreen(entity.getX() - i, entity.getY())) {\n return true;\n }\n }\n\n for (int j = 0; j < entity.getYLength(); j++) {\n if (onScreen(entity.getX(), entity.getY() - j)) {\n return true;\n }\n }\n\n if (onScreen(entity.getX() - entity.getElevation(), entity.getY() - entity.getElevation())) {\n return true;\n }\n\n if (entity instanceof AbstractScenery) {\n double height = ((AbstractScenery) entity).getSceneryType().getHeight();\n if (onScreen(entity.getX() - entity.getElevation() - height,\n entity.getY() - entity.getElevation() - height)) {\n return true;\n }\n }\n\n return false;\n\n }",
"public static boolean canGetHealthBar(EntityLiving entity) {\n return !entity.func_94056_bM() && !(entity instanceof EntityPlayer || entity instanceof IBossDisplayData);\n }",
"public boolean checkWorld(Entity entity) {\r\n return entity.getWorld() == worldFrom;\r\n }",
"public static boolean isBasicMoveValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\t\r\n\t\tboolean ans = false;\r\n\t\t\r\n\t\t/*Checking if coordinates are OK*/\r\n\t\tif(fromRow<8&fromCol<8&toRow<8&toCol<8&fromRow>-1&fromCol>-1&toRow>-1&toCol>-1&player>-2&player<2&player!=0){\r\n\t\t\tif (board [toRow][toCol]==0){/*Checks if the tile is empty*/\r\n\t\t\t\tif (player==1){/*Checks if player is red*/\r\n\t\t\t\t\tif (board[fromRow][fromCol]==1){/*Checks if in tile there is soldier red */\r\n\t\t\t\t\t\tif(fromRow==toRow-1&&(fromCol==toCol+1||fromCol==toCol-1)){/*Did he move diagonally upward*/\r\n\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tif (board[fromRow][fromCol]==2){/*Checks if in tile there is queen red*/\r\n\t\t\t\t\t\tif(((fromRow==toRow+1)||(fromRow==toRow-1))&&((fromCol==toCol+1)||(fromCol==toCol-1))){/*Did he move diagonally */\r\n\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\tif (player==-1){/*Checks if player is blue*/\r\n\t\t\t\t\tif (board[fromRow][fromCol]==-1){/*Checks if in tile there is soldier blue */\r\n\t\t\t\t\t\tif(fromRow==toRow+1&(fromCol==toCol+1||fromCol==toCol-1)){/*Did he move diagonally down*/\r\n\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (board[fromRow][fromCol]==-2){/*Checks if in tile there is queen blue*/\r\n\t\t\t\t\t\tif(((fromRow==toRow+1)||(fromRow==toRow-1))&&((fromCol==toCol+1)||(fromCol==toCol-1))){/*Did he move diagonally */\r\n\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }",
"private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }",
"public void checkConnections() {\n Boolean updateCanvas = false;\n\n // Find new connections set within a node and creates them\n for (DrawableNode node : nodes) {\n if (node instanceof LogicNode) {\n String src = ((LogicNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this LogicNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TestCaseNode) {\n String src = ((TestCaseNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this TestCaseNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) node).getSwitches();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n Boolean enabledConnection = false;\n\n for (Switch aSwitch : aSwitches) {\n if ((aSwitch.getTarget().equals(endNode.getContainedText()))) {\n enabledConnection = aSwitch.isEnabled();\n createConnection = true;\n }\n }\n\n if (createConnection && !connectionExists(node, endNode)) {\n Integer connectionType = NodeConnection.DYNAMIC_CONNECTION;\n if (!enabledConnection) {\n connectionType = NodeConnection.DISABLED_CONNECTION;\n }\n\n NodeConnection newConnection = new NodeConnection(node, endNode, connectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TriggerNode) {\n List<Trigger> triggers = ((TriggerNode) node).getTriggers();\n\n for (Trigger trigger : triggers) {\n String watchName = trigger.getWatch();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n\n if (watchName.equals(endNode.getContainedText())) {\n createConnection = true;\n }\n\n // This connection has the start and end the other way around, the target is specified in the trigger but\n // we want it to look like the watched node is connecting to the trigger as that is the order that they are run\n if (createConnection && !connectionExists(endNode, node)) {\n NodeConnection newConnection = new NodeConnection(endNode, node, NodeConnection.TRIGGER_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n\n // Find connection that are set using the Next node input box\n if (node != null && !node.getNextNodeToRun().isEmpty()) {\n for (DrawableNode endNode : getNodes()) {\n if (node.getNextNodeToRun().equals(endNode.getContainedText())) {\n if (!connectionExists(node, endNode)) {\n NodeConnection newConnection = new NodeConnection(node, endNode, NodeConnection.MAIN_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n }\n\n // Checks old connections and removes ones that don't exist\n List<NodeConnection> listToRemove = new ArrayList<>();\n List<NodeConnection> connectionsLoopTemp = new ArrayList<>(); // We make a copy the list here so that we can the original while iterating over this one\n connectionsLoopTemp.addAll(connections);\n for (NodeConnection nodeConnection : connectionsLoopTemp) {\n if (nodeConnection.getConnectionType().equals(NodeConnection.DYNAMIC_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || !aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create a disabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DISABLED_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.TRIGGER_CONNECTION)) {\n if (nodeConnection.getConnectionEnd() instanceof TriggerNode) { // Here the start and end connections are reversed\n List<Trigger> triggers = ((TriggerNode) nodeConnection.getConnectionEnd()).getTriggers();\n String endContainedText = nodeConnection.getConnectionStart().getContainedText();\n Integer removeCount = 0;\n for (Trigger trigger : triggers) {\n if ((!trigger.getWatch().equals(endContainedText))) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(triggers.size())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.GET_NODE_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.DISABLED_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create an enabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DYNAMIC_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n if (nodeConnection.getConnectionType().equals(NodeConnection.MAIN_CONNECTION)) {\n if (!nodeConnection.getConnectionStart().getNextNodeToRun().equals(nodeConnection.getConnectionEnd().getContainedText())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n connections.removeAll(listToRemove);\n if (updateCanvas) {\n Controller.getInstance().updateCanvasControllerLater();\n }\n }",
"@Override\n public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n return col==0;\n }",
"private boolean validaInsert(Entity e) throws SQLException {\r\n stmt = conn.createStatement();\r\n String sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(0) + \"= \" + e.getCell(0).getValue();\r\n if (e.getTableName().equals(\"Contato\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(3) + \"= '\" + String.valueOf(e.getCell(3).getValue()) + \"' and \" + e.getColumnName(1) + \"= '\" + String.valueOf(e.getCell(1).getValue()) + \"';\";\r\n\r\n }\r\n if (e.getTableName().equals(\"Telefone\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(2) + \"= '\" + String.valueOf(e.getCell(2).getValue()) + \"' and \" + e.getColumnName(1) + \"= '\" + String.valueOf(e.getCell(1).getValue()) + \"' and \" + e.getColumnName(3) + \"= '\" + String.valueOf(e.getCell(3).getValue()) + \"';\";\r\n\r\n }\r\n if (e.getTableName().equals(\"Solicitacoes\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(6) + \"= '\" + String.valueOf(e.getCell(6).getValue()) + \"' and \" + e.getColumnName(7) + \"= '\" + String.valueOf(e.getCell(7).getValue()) + \"';\";\r\n\r\n }\r\n System.out.println(sql);\r\n rs = stmt.executeQuery(sql);\r\n if (rs.next()) {\r\n stmt.close();\r\n rs.close();\r\n return false;\r\n }\r\n stmt.close();\r\n rs.close();\r\n return true;\r\n\r\n }",
"public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }",
"boolean collidedWith(Entity e);",
"void assertConnected()\n throws IllegalStateException\n {\n if (parentProvider == null)\n {\n throw\n new IllegalStateException(\n \"The provider must be non-null and signed on the\"\n + \" Jabber service before being able to\"\n + \" communicate.\");\n }\n if (!parentProvider.isRegistered())\n {\n // if we are not registered but the current status is online\n // change the current status\n if((currentStatus != null) && currentStatus.isOnline())\n {\n fireProviderStatusChangeEvent(\n currentStatus,\n parentProvider.getJabberStatusEnum().getStatus(\n JabberStatusEnum.OFFLINE));\n }\n\n throw\n new IllegalStateException(\n \"The provider must be signed on the Jabber service\"\n + \" before being able to communicate.\");\n }\n }",
"private static boolean checkWin() {\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tCell cell = field.getCellAt(i, j);\n\t\t\t\tif (cell.hasMine() && !cell.hasSign())\t // if the cell has a mine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// but has no flag\n\t\t\t\t\treturn false;\n\t\t\t\tif (cell.getFlag() >= 0 && !cell.getVisiblity()) // if the cell has no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine in it but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it is not visible\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\twin = gameOver = true;\n\t\treturn true;\n\t}",
"private static boolean checkColonyForTools(AIUnit aiUnit, Colony colony) {\n return colony != null\n && !colony.isDisposed()\n && colony.getOwner() == aiUnit.getUnit().getOwner()\n && colony.canProvideEquipment(Unit.Role.PIONEER\n .getRoleEquipment(colony.getSpecification()));\n }",
"@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}",
"@Override\n\tpublic boolean isExists(PokemonAbility entity) {\n\t\treturn false;\n\t}",
"@Override\n public boolean isCellEditable( Object node, int column )\n {\n if ( column == 0 )\n {\n return true;\n }\n\n if ( node instanceof Property )\n {\n Property p = ( Property )node;\n if ( p.isReadOnly() )\n {\n return false;\n }\n\n if ( p instanceof SimpleProperty )\n {\n return true;\n }\n\n // @pending At the moment if one property from the list of composite editor is read only all property is read only. Is there better idea?\n Object cepl = p.getDescriptor().getValue( BeanInfoConstants.COMPOSITE_EDITOR_PROPERTY_LIST );\n if ( cepl != null )\n {\n boolean bReadOnly = false;\n StringTokenizer st = new StringTokenizer( (String)cepl, \";, \" );\n while ( st.hasMoreTokens() )\n {\n Property prop = p.findProperty( st.nextToken() );\n if ( prop == null )\n {\n continue;\n }\n if ( ( bReadOnly = prop.isReadOnly() ) )\n {\n break;\n }\n }\n\n return !bReadOnly;\n }\n\n return ( ( PropertyDescriptor )p.getDescriptor() ).getPropertyEditorClass() != null;\n }\n\n return false;\n }",
"private boolean isOccupied(int col, int row) {\n if (_board[col][row] != EMP) {\n return true;\n }\n return false;\n }",
"public Boolean hasEntity() {\n \n return hasEntity_;\n \n }",
"public boolean isFull(int row, int col) {\n if (!isLegalCoordinate(row, col)) throw new IllegalArgumentException(\"Invalid input argument.\");\n return UF.isConnected(0, getIndex(row, col));\n }",
"public interface Entity {\r\n\r\n /**\r\n * Gets the initial (relative, map) position of the entity.\r\n * \r\n * @return the initial position of the player\r\n */\r\n Pair<Integer, Integer> getInitialPosition();\r\n\r\n /**\r\n * Gets the position of the entity on screen (absolute, pixel).\r\n * \r\n * @return entity current position on screen\r\n */\r\n Pair<Integer, Integer> getPosition();\r\n\r\n /**\r\n * Sets the position of the entity on screen.\r\n * Can be used to change an absolute position (that is grid locked because they're a multiple of a value) \r\n * to a specific position and place an object everywhere you want\r\n * \r\n * Please check {@link TestEntity} for an in-depth explanation of how this works.\r\n * \r\n * @param position defines the entity position on screen\r\n */\r\n void setPosition(Pair<Integer, Integer> position);\r\n\r\n /**\r\n * Gets the hitbox of the entity (a Rectangle if it's solid, null otherwise).\r\n * \r\n * @return the collision box of the entity.\r\n */\r\n Rectangle getCollisionBox();\r\n\r\n /**\r\n * Gets the path of the image that will be used by the view. \r\n * \r\n * @return the path where the image of the entity is located\r\n */\r\n String getImagePath();\r\n\r\n /**\r\n * Sets the path of the image that will be used by the view.\r\n * \r\n * @param path the path where the image of the entity is located\r\n */\r\n void setImagePath(String path);\r\n\r\n /**\r\n * Method that defines if the entity is destroyed or not.\r\n * \r\n * @return true if destroyed, false otherwise\r\n */\r\n boolean isDestroyed();\r\n\r\n /**\r\n * Sets the status of the entity (true if destroyed, false otherwise).\r\n * \r\n * @param destroyed defines if the entity has been destroyed or not\r\n */\r\n void setStatus(boolean destroyed);\r\n\r\n /**\r\n * Gets the entity width.\r\n * \r\n * @return entity width\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Sets the new entity width.\r\n * \r\n * @param width defines the new entity width\r\n */\r\n void setWidth(int width);\r\n\r\n /**\r\n * Gets the entity height.\r\n * \r\n * @return entity height\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Sets the new entity height.\r\n * \r\n * @param height defines the new entity width\r\n */\r\n void setHeight(int height);\r\n\r\n /**\r\n * Return the state of the block, if it is solid or not.\r\n * @return true if entity is solid, false otherwise.\r\n */\r\n boolean isSolid();\r\n\r\n /**\r\n * Sets the score value of the entity.\r\n * \r\n * @param scoreValue defines the value that will be given (added) to players score when the entity is destroyed\r\n */\r\n void setScoreValue(int scoreValue);\r\n\r\n /**\r\n * Gets the score value of the entity.\r\n * \r\n * @return a score value that defines the value of the entity\r\n */\r\n int getScoreValue();\r\n}",
"protected abstract boolean isChannelEditable( Flow f );",
"void checkHandleContactWithNonPlayerCharacters() {\n if (this.doesAffectNonPlayers) {\n // boundary collision for non-player characters\n for (ACharacter curCharacter : this.mainSketch.getCurrentActiveLevelDrawableCollection().getCharactersList()) {\n if (this.contactWithCharacter(curCharacter)) {\n curCharacter.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else if (curCharacter instanceof ControllableEnemy) { // this DOES NOT have contact with character AND character is controllable\n ((ControllableEnemy) curCharacter).setAbleToMoveLeft(true);\n ((ControllableEnemy) curCharacter).setAbleToMoveRight(true);\n }\n }\n }\n }",
"public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}",
"@Override\n protected boolean interact(EntityPlayer entityplayer)\n {\n if(worldObj.isRemote)\n {\n if(entityplayer.isSneaking() && entityplayer.getHeldItem() != null && entityplayer.getHeldItem().getItem() == Items.itemMolette)\n {\n guiDisplay(entityplayer);\n // System.out.println(\"gggg\");\n }\n else\n {\n switch(getConcessionnaire())\n {\n case 1:\n guiDisplayConcessionnaire(\"Concessionnaire Civil\", \"Civil\", entityplayer);\n break;\n case 2:\n guiDisplayConcessionnaire(\"Concessionnaire Gendarmerie\", \"Gendarmerie\", entityplayer);\n break;\n case 3:\n guiDisplayConcessionnaire(\"Concessionnaire Pompier\", \"Pompier\", entityplayer);\n break;\n case 4:\n guiDisplayConcessionnaire(\"Concessionnaire Camion\", \"Camion\", entityplayer);\n break;\n case 5:\n guiDisplayConcessionnaire(\"Concessionnaire Luxe\", \"Luxe\", entityplayer);\n break;\n case 0:\n entityplayer.addChatComponentMessage(new ChatComponentText((EnumChatFormatting.GOLD + \"[\" + EnumChatFormatting.BLUE + \"CraftingLife\" + EnumChatFormatting.GOLD + \"]\" + \"Veuillez selectionné un concessionnaire a ouvrir\")));\n break;\n }\n }\n }\n return false;\n }",
"public void check_enemy_and_friend(int x, int y, int strength, int color) {\n\t\tif (x >= 0 && x <= 7 && y >= 0 && y <= 7) {// check if it is in the grid\n\t\t\tPiece piece = getPiece(x, y);\n\t\t\tif (piece != null) {\n\t\t\t\tif (piece.getStrength() > strength && piece.getColor() != color) {// check strength and color\n\t\t\t\t\tstrong_enemy = true;\n\t\t\t\t} else if (piece.getColor() == color) {\n\t\t\t\t\tfriend = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int getNumAdjacentLivingCells(int row, int col) \n {\n int numLiving = 0;\n\n if (row - 1 >= 0 && col - 1 >= 0 && isAlive(getCell(row - 1, col - 1))) \n {\n numLiving++;\n }\n if (row - 1 >= 0 && isAlive(getCell(row - 1, col))) \n {\n numLiving++;\n }\n if (row - 1 >= 0 && col + 1 < getColumns() && isAlive(getCell(row - 1, col + 1))) \n {\n numLiving++;\n }\n if (col - 1 >= 0 && isAlive(getCell(row, col - 1))) \n {\n numLiving++;\n }\n if (col + 1 < getColumns() && isAlive(getCell(row, col + 1))) \n {\n numLiving++;\n }\n if (row + 1 < getRows() && col - 1 >= 0 && isAlive(getCell(row + 1, col - 1))) \n {\n numLiving++;\n }\n if (row + 1 < getRows() && isAlive(getCell(row + 1, col)))\n {\n numLiving++;\n }\n if (row + 1 < getRows() && col + 1 < getColumns() && isAlive(getCell(row + 1, col + 1))) \n {\n numLiving++;\n }\n return numLiving;\n }",
"@Override\n public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n if(!LoginForm.userRole.equals(\"sa\") && col == 2){\n return false;\n }\n else {\n return true;\n }\n \n }",
"public boolean isConnected() {\n\t\tif (m == null) return false;\n\t\telse return true;\n\t}",
"boolean connected(String descrip) {\n if (this.hasNeighbor(descrip)) {\n if (descrip.equals(\"right\")) {\n return this.neighbors.get(\"right\").left && this.right;\n }\n else if (descrip.equals(\"up\")) {\n return this.neighbors.get(\"up\").down && this.up;\n }\n else if (descrip.equals(\"down\")) {\n return this.neighbors.get(\"down\").up && this.down;\n }\n else if (descrip.equals(\"left\")) {\n return this.neighbors.get(\"left\").right && this.left;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }",
"boolean isConnected() {\n \t\tif (fConnected == null)\n \t\t\treturn false;\n \t\treturn !fConnected.isEmpty();\n \t}",
"public boolean colidesWith(Entity e, boolean player){\n\t\tthis.setBounds((int) x, (int)y, Tile.size, Tile.size);\n\t\tif(player)\n\t\t\te.setBounds((int) (main.getCamOfSetX() + e.getPx()), (int) (main.getCamOfSetY() + e.getPy()), (int)e.getWidth(), (int)e.getHeight());\n\t\telse\n\t\t\te.setBounds((int)e.getX(), (int)e.getY(), (int)e.getWidth(), (int)e.getHeight());\n\t\treturn this.intersects(e);\n\t}",
"void checkConnection() {\n\n //Call method which checks for connection.\n boolean isNetworkConnected = isNetworkConnected();\n\n //If there is a data connection currently available for use, attempt to authenticate login details with Firebase,\n // allow user to login offline but without a profile and access only to local storage.\n if(isNetworkConnected) {\n\n //If there is an active data connection, set authenticated value to true\n authenticated = true;\n }\n\n else {\n\n //If there is an active data connection, set authenticated value to false\n authenticated = false;\n }\n }",
"private boolean isEntityStarted(LatticeEntityInfo entity, int timeout, int sleepTimeStep) throws JSchException, InterruptedException {\n Channel channel = null;\n ChannelSftp channelSftp = null;\n boolean entityStarted = false;\n \n channel = SSHSessionHandler.openChannel(\"sftp\");\n channel.connect(3000);\n channelSftp = (ChannelSftp) channel;\n\n String entityType;\n if (entity.getEntityType() == EntityType.DATASOURCE)\n entityType = \"data-source-\";\n else if (entity.getEntityType() == EntityType.DATACONSUMER)\n entityType = \"data-consumer-\";\n else\n return false;\n\n String entityLogFile = \"/tmp/\" + entityType + entity.getId().toString() + \".log\";\n \n for (int timer = 0; timer < timeout && entityStarted == false; timer += sleepTimeStep) {\n try {\n channelSftp.stat(entityLogFile);\n entityStarted = true;\n } catch (SftpException sFTPe) {\n LOGGER.debug(\"Trying again in \" + sleepTimeStep + \" msec\");\n Thread.sleep(sleepTimeStep);\n }\n }\n \n channel.disconnect();\n channelSftp.disconnect();\n \n return entityStarted;\n }",
"public boolean isUseableByPlayer(EntityPlayer entityPlayer)\n {\n return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) == this &&\n entityPlayer.getDistanceSq((double) this.xCoord + 0.5D, (double) this.yCoord + 0.5D,\n (double) this.zCoord + 0.5D) <= 64.0D;\n }",
"public abstract boolean getCell(int x, int y);",
"private boolean isConnectable (RoadInterface newObj) {\n boolean result = false;\n if (newObj instanceof Intersection) {\n result = true;\n }\n return (result);\n }",
"@Override\n public void checkWonLost(Entity entity) {\n if (entity instanceof Player) {\n\n if (overallCoinsInGame <= 0) {\n world.won();\n }\n }\n }",
"protected void validateEntity() {\n super.validateEntity();\n }"
] |
[
"0.5285586",
"0.5255401",
"0.5037283",
"0.4981596",
"0.4947348",
"0.48822394",
"0.48775113",
"0.48449945",
"0.48231494",
"0.48133644",
"0.48010764",
"0.4799779",
"0.47898915",
"0.47417814",
"0.47270408",
"0.47239226",
"0.46955228",
"0.46901694",
"0.4671964",
"0.46695942",
"0.4655039",
"0.46341738",
"0.4631262",
"0.4623661",
"0.45900396",
"0.45823848",
"0.45520952",
"0.45416522",
"0.45283604",
"0.45063037",
"0.45006794",
"0.4499312",
"0.4492657",
"0.449034",
"0.44876415",
"0.44623062",
"0.44489336",
"0.44471022",
"0.4440768",
"0.44339585",
"0.4424807",
"0.44182536",
"0.44134814",
"0.4410382",
"0.4407465",
"0.4406543",
"0.43994153",
"0.43892932",
"0.43864545",
"0.43824095",
"0.43809855",
"0.4374521",
"0.4373362",
"0.43722162",
"0.4362788",
"0.43625927",
"0.4357993",
"0.43571553",
"0.4351154",
"0.4346414",
"0.43421975",
"0.4334827",
"0.43335015",
"0.43318003",
"0.4328543",
"0.43233076",
"0.43233076",
"0.4322959",
"0.4319789",
"0.43190336",
"0.43189242",
"0.431762",
"0.43052712",
"0.42986882",
"0.42984593",
"0.429802",
"0.42922783",
"0.42844102",
"0.4276525",
"0.42743686",
"0.42736417",
"0.42725503",
"0.42709652",
"0.42703554",
"0.42565644",
"0.42555138",
"0.42539766",
"0.4247077",
"0.42468688",
"0.42427647",
"0.42407364",
"0.42391568",
"0.42323196",
"0.42311087",
"0.42295283",
"0.42293808",
"0.42256123",
"0.4224167",
"0.42208397",
"0.42177445"
] |
0.54973465
|
0
|
Loads data from the passedin Room into the InfoPanel.
|
private void loadRoom(Room room) {
if(currentRooms.isEmpty()) {
// Add the passed-in Room to the list of selected Rooms.
this.currentRooms.add(room);
// Load the data from the Room into the InfoPanel.
this.roomNameField.setText(room.getName());
this.includeField.setText(room.getInclude());
this.inheritField.setText(room.getInherit());
this.streetNameField.setSelectedItem(room.getStreetName());
this.determinateField.setText(room.getDeterminate());
this.lightField.setText(room.getLight());
this.shortDescriptionField.setText(room.getShort());
this.longDescriptionField.setText(room.getLong());
updateExitPanel(room);
} else {
this.currentRooms.add(room);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void onRoomLoad() {\n\n }",
"public RoomDetailsUpdate() {\n initComponents();\n initExtraComponents();\n }",
"private void load() {\n Uri poiUri = Uri.withAppendedPath(Wheelmap.POIs.CONTENT_URI_POI_ID,\r\n String.valueOf(poiID));\r\n\r\n // Then query for this specific record:\r\n Cursor cur = getActivity().managedQuery(poiUri, null, null, null, null);\r\n\r\n if (cur.getCount() < 1) {\r\n cur.close();\r\n return;\r\n }\r\n\r\n cur.moveToFirst();\r\n\r\n WheelchairState state = POIHelper.getWheelchair(cur);\r\n String name = POIHelper.getName(cur);\r\n String comment = POIHelper.getComment(cur);\r\n int lat = (int) (POIHelper.getLatitude(cur) * 1E6);\r\n int lon = (int) (POIHelper.getLongitude(cur) * 1E6);\r\n int nodeTypeId = POIHelper.getNodeTypeId(cur);\r\n int categoryId = POIHelper.getCategoryId(cur);\r\n\r\n NodeType nodeType = mSupportManager.lookupNodeType(nodeTypeId);\r\n // iconImage.setImageDrawable(nodeType.iconDrawable);\r\n\r\n setWheelchairState(state);\r\n // nameText.setText(name);\r\n\r\n String category = mSupportManager.lookupCategory(categoryId).localizedName;\r\n // categoryText.setText(category);\r\n nodetypeText.setText(nodeType.localizedName);\r\n commentText.setText(comment);\r\n addressText.setText(POIHelper.getAddress(cur));\r\n websiteText.setText(POIHelper.getWebsite(cur));\r\n phoneText.setText(POIHelper.getPhone(cur));\r\n\r\n /*\r\n * POIMapsforgeOverlay overlay = new POIMapsforgeOverlay();\r\n * overlay.setItem(name, comment, nodeType, state, lat, lon);\r\n * mapView.getOverlays().clear(); mapView.getOverlays().add(overlay);\r\n * mapController.setCenter(new GeoPoint(lat, lon));\r\n */\r\n }",
"RoomInfo getRoomInfo(int roomId) throws IOException;",
"public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }",
"public void populateRooms(){\n }",
"public void onGetRoom(GlobalMessage message) {\n JPanel newRoomPanel = new JPanel();\n NewRoomInfo newRoomInfo = (NewRoomInfo)message.getData();\n renderRoom(newRoomInfo.getRoomName(), newRoomPanel);\n roomContainer.add(newRoomPanel, roomListConstraints);\n ++roomListConstraints.gridy;\n roomEntries.put(newRoomInfo.getRoomName(), newRoomPanel);\n\n roomContainer.revalidate();\n roomContainer.repaint();\n }",
"RoomInfo room(String name);",
"public void loadRoomViewerUI()\r\n\t{\r\n\t\t// start the loader thread so the graphics can be drawn as the loading takes place\r\n\t\tnew RoomViewerLoadingThread(roomViewerUI).start();\r\n\t}",
"private void prepareInfo() {\n if (plane != null) {\n String planeType = plane.getType();\n ArrayList<String> airports = new ArrayList<>();\n\n if (planeType.equalsIgnoreCase(\"Passenger Plane\")) {\n World.getPublicAirports().forEach(publicAirport ->\n airports.add(publicAirport.getName())\n );\n } else if (planeType.equalsIgnoreCase(\"Military Plane\")) {\n World.getMilitaryAirports().forEach(militaryAirport ->\n airports.add(militaryAirport.getName())\n );\n }\n\n startAirport.setItems(FXCollections.observableArrayList(airports));\n endAirport.setItems(FXCollections.observableArrayList(airports));\n startAirport.getSelectionModel().select(plane.getStartBuilding().getName());\n endAirport.getSelectionModel().select(plane.getEndBuilding().getName());\n\n title.setText(\"PLANE INFO\");\n name.setText(plane.getName());\n speed.setText(String.valueOf(plane.getSpeed()));\n fuelLevel.setText(String.valueOf(plane.getFuelLevel()));\n type.setText(plane.getType());\n\n if (plane.isEmergencyLanding()) {\n landButton.setText(\"Take off\");\n } else {\n landButton.setText(\"Emergency land\");\n }\n\n if (plane.getType().equalsIgnoreCase(\"Military Plane\")) {\n MilitaryPlane plane = (MilitaryPlane) this.plane;\n weapon.setText(plane.getWeaponType().weaponType());\n passengers.setVisible(false);\n passengers.setMaxHeight(0);\n } else {\n PassengerPlane plane = (PassengerPlane) this.plane;\n passengers.setItems(FXCollections.observableArrayList(plane.getPassengerContainer().getPassengers()));\n }\n }\n }",
"private void loadDetails() {\n TextView tvName = (TextView) findViewById(R.id.tvPropertyName);\n TextView tvAddress = (TextView) findViewById(R.id.tvFullAddress);\n TextView tvCategory = (TextView) findViewById(R.id.tvPropCategory);\n TextView tvSize = (TextView) findViewById(R.id.tvRoomSize);\n TextView tvPrice = (TextView) findViewById(R.id.tvPropPrice);\n\n tvName.setText(name);\n tvAddress.setText(address);\n tvCategory.setText(category);\n tvSize.setText(size + \"m2\");\n tvPrice.setText(\"R\" + price + \".00 pm\");\n getImage();\n }",
"public MSGameDetails( GameRoom room)\n\t{\n\t\tthis.id = room.getGameId();\n\t\t\n\t\tthis.players = new LinkedList <> ();\n\t\t\n\t\t\n\t\t\n\t\tfor( int idx = 0; idx < room.getPopulationSize(); idx ++ )\n\t\t{\n\t\t\tCharacter character = room.getCharacter( idx );\n\t\t\tPlayerDetails playerDetails = new PlayerDetails();\n\t\t\tplayerDetails.playerId = character.getPlayer().getId();\n\t\t\tplayerDetails.characterId = character.getId();\n\t\t\tplayerDetails.pid = idx;\n\t\t\tplayerDetails.gameData = new PlayerDetails.GameData();\n\t\t\tplayerDetails.gameData.trackNumber = playerDetails.pid;\n\t\t\tplayers.add( playerDetails );\n\t\t\t\n\t\t\tidx ++;\n\t\t}\n\t}",
"RoomInfo room(int id);",
"private void loadDropDownInfo() {\n\t\tif(isConnected) {\n\t\t\ttry {\n\t\t\t\tlocationBuilder = connection.getLocationData();\n\n\t\t\t\tbuildingComboData = locationBuilder.getBLDGList();\n\t\t\t\tcampusComboData = locationBuilder.getCampusList();\n\t\t\t\troomComboData = locationBuilder.getRMList();\n\n\t\t\t\tbuildingCombo.setItems(buildingComboData);\n\t\t\t\tcampusCombo.setItems(campusComboData);\n\t\t\t\troomCombo.setItems(roomComboData);\n\n\t\t\t\tbuildingCombo.getSelectionModel().selectFirst();\n\t\t\t\tcampusCombo.getSelectionModel().selectFirst();\n\t\t\t\troomCombo.getSelectionModel().selectFirst();\n\t\t\t} // End try statement \n\t\t\tcatch (SQLException e) {\n\t\t\t\tsetNotificationAnimation(\"Connection Problem, Could Not Pull Information\", Color.RED);\n\t\t\t} // End catch statement \n\t\t} // End if statement\n\t\telse {\n\t\t\tsetNotificationAnimation(\"Not Connect\", Color.RED);\n\t\t} // End else statement \n\t}",
"public void load(Cell cell) {\n // Double-check we're dealing with a Room.\n if(cell.isConnectible()) {\n // Get the data we need from the CellPanel.\n //this.colorChooserButton.setBackground(cellPanel.getBackground());\n this.colorChooserButton.setBackground(cell.getColor());\n // Load the Room.\n Room room = (Room)cell.getEntity();\n loadRoom(room);\n }\n }",
"public final void loadPart(InHouse param) {\n partToUpdate = (InHouse) param;\n partSource.selectToggle(inHouseRadio);\n sourceNameField.setText(String.valueOf(param.getMachineID()));\n MachineID = param.getMachineID();\n idField.setText(String.valueOf(param.getPartID()));\n partNameField.setText(param.getName());\n invField.setText(String.valueOf(param.getInStock()));\n priceField.setText(String.valueOf(param.getPrice()));\n minField.setText(String.valueOf(param.getMin()));\n maxField.setText(String.valueOf(param.getMax()));\n }",
"private DungeonRecord(Parcel in){\n _id = in.readLong();\n mDate = in.readString();\n mType = in.readString();\n mOutcome = in.readInt();\n mDistance = in.readInt();\n mTime = in.readInt();\n mReward = in.readString();\n mCoords = in.readString();\n mSkips = in.readString();\n\n }",
"private void loadVillage(HashMap<String, String> info) {\n\t\tsuper.init(info);\n\t}",
"public void init(final HashMap<String, String> info) {\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tloadVillage(info);\n\t\tsetDrawPos(0);\n\t\tsetDrawPos(1);\n\t\tcreateSpritesList();\n\t\texitName = infoMap.get(\"landname\");\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tint delay = 0;\n\t\tif (info.containsKey(\"delay\")) {\n\t\t\tdelay = Integer.parseInt(info.get(\"delay\"));\n\t\t}\n\t\tif (delay > 0) {\n\t\t\tfinal int delayLoading = delay;\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tValues.sleep(delayLoading);\n\t\t\t\t\tlogicLoading = false;\n\t\t\t\t}\n\t\t\t}.start();\n\t\t} else {\n\t\t\tlogicLoading = false;\n\t\t}\n\t}",
"public void displayroomsinfo(boolean reserved , int roomtype){\n String query = \" SELECT Roomno , RoomtypeID , Hotelid\"\n + \" FROM Rooms \"\n + \" WHERE Reserved = ? and RoomtypeID = ? \"; \n String status , Roomtype ;\n Room room ;\n if(reserved == true){status = \"Reserved\" ;}\n else{status = \"Empty\";}\n if(roomtype == 1){\n Roomtype = \"Single Room\" ;\n room = new singleRoom();\n }\n else{\n Roomtype = \"Double Room\";\n room = new doubleRoom();\n }\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setBoolean(1 ,reserved);\n Query.setInt(2,roomtype);\n ResultSet rs = Query.executeQuery();\n \n List<String> lst = new ArrayList<>() ;\n while(rs.next()){ \n \n String str = \" RoomNo: \" + rs.getInt(\"Roomno\") + \" Status: \"+ status +\" RoomType: \"+ Roomtype + \" Hotel ID: \" + rs.getInt(\"Hotelid\") +\"\\n\"; \n lst.add(str);\n }\n room.setinfo(lst);\n \n \n \n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public void loadWorldInformation(String worldInfo) {\n\t\tclearPanel();\n\n\t\tString[] worldInfoString = worldInfo.split(\",\");\n\n\t\tnameTextBox.setText(worldInfoString[0]);\n\t\tdescriptionTextBox.setText(worldInfoString[1]);\n\n\t}",
"public void displayaroominfo(int roomno ){\n String query = \" SELECT Roomno, Reserved , RoomtypeID , Hotelid\"\n + \" FROM Rooms \"\n + \" WHERE Roomno = ? \"; \n String status , Roomtype ;\n \n \n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setInt(1 ,roomno);\n ResultSet rs = Query.executeQuery();\n Room room;\n while(rs.next()){\n if(rs.getInt(\"RoomtypeID\") == 1){Roomtype = \"Single Room\" ;}\n else{Roomtype = \"Double Room\";}\n if(rs.getBoolean(\"Reserved\") == true){status = \"Reserved\" ;}\n else{status = \"Empty\";}\n String str = \" RoomNo: \" + rs.getInt(\"Roomno\") + \" Status: \"+ status +\" RoomType: \"+ Roomtype + \" Hotel ID: \" + rs.getInt(\"Hotelid\");\n if(rs.getInt(\"RoomtypeID\") == 1){\n room = new singleRoom();\n }else{\n room = new doubleRoom();\n }\n room.setroominfo(str);\n \n }\n \n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public void loadInfo(){\n list=control.getPrgList();\n refreshpsTextField(list.size());\n populatepsListView();\n }",
"@Override\n public void load() {\n File file = new File(path + \"/\" + \"rooms.txt\"); //Hold file of the riddles. riddles.txt should be placed in the root folder.\n Scanner scanner = null; //if the scanner can't load the file.\n\n try {\n scanner = new Scanner(file); // scanner for the file\n } catch (FileNotFoundException ex) {\n try {\n //if not such file exists create it.\n file.createNewFile();\n } catch (IOException ex1) {\n Logger.getLogger(LoadRooms.class.getName()).log(Level.SEVERE, null, ex1);\n return;\n }\n }\n while (scanner.hasNextLine()) { //if scanner har fundt next line of text in the file\n switch (scanner.nextLine()) {\n case \"[Room]:\": //if scanner fundt \"[Room]:\" case, get rooms attributes\n state = LOAD_ATTRIBUTES;\n break;\n case \"[Connections]:\"://if scanner fundt \"[Connections]:\" case, get connections from file\n state = LOAD_CONNECTIONS;\n break;\n\n default:\n break;\n }\n switch (state) {\n case LOAD_ATTRIBUTES: //case, that get rooms attributes and add them to room_list\n String name = scanner.nextLine();\n int timeToTravel = Integer.parseInt(scanner.nextLine());\n boolean isLocked = Boolean.parseBoolean(scanner.nextLine());\n boolean isTransportRoom = Boolean.parseBoolean(scanner.nextLine());\n Room newRoom = new Room(name, timeToTravel, isLocked, isTransportRoom);\n if (newRoom.isTransportRoom()) {\n newRoom.setExit(\"exit\", newRoom);\n newRoom.setExitDir(\"west\", newRoom);\n }\n rooms_list.add(newRoom);\n break;\n case LOAD_CONNECTIONS: //case that get connections betweem rooms in game\n while (scanner.hasNextLine()) {\n String[] string = scanner.nextLine().split(\",\");\n Room room = this.getRoomByName(string[0]);\n room.setExit(string[1], this.getRoomByName(string[1]));\n if (!this.getRoomByName(string[1]).isTransportRoom() && !room.isTransportRoom()) {\n room.setExitDir(string[2], getRoomByName(string[1]));\n }\n }\n break;\n default:\n break;\n }\n }\n }",
"public ViewRoom(Room r) {\n initComponents();\n this.room = r;\n this.workoutNum = 0;\n updateRoom();\n \n }",
"Room getRoom();",
"Room getRoom();",
"private void retrieve() throws IOException {\n String data = fromServer.readUTF();\n// report(\"data: \" + data);\n String[] datas = data.split(COMMAND_DELIMITER);\n int isFull = Integer.parseInt(datas[0]);\n\n if(isFull == 1) {\n // points\n String[] points = datas[1].split(POINTS_DELIMITER);\n int[][] board = new int[SIDE][SIDE];\n for (int i = 0; i < points.length; i++) {\n board[i / SIDE][i % SIDE] = Integer.parseInt(points[i]);\n }\n boardComponent.setBoard(board);\n boardComponent.repaint();\n\n // players\n String[] players = datas[2].split(POINTS_DELIMITER);\n lbPl1.setText(players[0]);\n lbPl2.setText(players[1]);\n lbBlackStone.setIcon(blackIcon);\n lbWhiteStone.setIcon(whiteIcon);\n\n\n colorLabel.setText(\"You are a viewer.\");\n setButtons(false);\n btnNewGame.setEnabled(false);\n }\n\n // attendants\n try {\n String[] attendants = datas[3].split(POINTS_DELIMITER);\n for (String str : attendants) {\n listOfNames.add(str);\n nameListTextArea.append(str + \"\\n\");\n }\n// nameListTextArea.update(nameListTextArea.getGraphics());\n// atsScrollPane.setViewportView(nameListTextArea);\n }catch(Exception e){\n // when the first player enter the room, there is no existed attendants\n }\n\n }",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializableExtra(\"job\");\n\t\tedt_content.setText(job.getJobContent());\n\t\tedt_course.setText(job.getCourseName());\n\t}",
"private void printInfo()\n {\n if(currentRoom.getItems().size() >= 1)\n {\n System.out.println(\"\\n\" + \"Items in room are: \" );\n ArrayList<Item> items = currentRoom.getItems();\n \n for(Item i : items)\n {\n System.out.println(i.getItemName() + i.getDescription()); \n }\n \n }\n \n \n \n if(currentRoom.getWeapons().size() >= 1)\n {\n System.out.println(\"\\n\" + \"Weapons in room are: \" );\n \n ArrayList<Weapon> weapons = currentRoom.getWeapons();\n for(Weapon w : weapons)\n {\n System.out.println(w.getWeaponName() + w.getDescription());\n }\n \n }\n \n \n }",
"private void loadInfo() {\n fname.setText(prefs.getString(\"fname\", null));\n lname.setText(prefs.getString(\"lname\", null));\n email.setText(prefs.getString(\"email\", null));\n password.setText(prefs.getString(\"password\", null));\n spinner_curr.setSelection(prefs.getInt(\"curr\", 0));\n spinner_stock.setSelection(prefs.getInt(\"stock\", 0));\n last_mod_date.setText(\" \" + prefs.getString(\"date\", getString(R.string.na)));\n }",
"public void setRoom(String room) {\n\t\tthis.room = room;\n\t}",
"@Override\n\tpublic void onRoomCreated(RoomData arg0) {\n\t\t\n\t}",
"public void setRoom(Room room) {\r\n\t\tthis.room = room;\r\n\t}",
"@Override\r\n\tpublic Room loadById(Long pId) throws SQLException {\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rset = null;\r\n\t\tif (pId == null) {\r\n\t\t\tthrow new RuntimeException(\"loadById - NULL pID\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstmt = mConnection.prepareStatement(\r\n\t\t\t\t\t\"SELECT ID,FLOOR_NBR,ROOM_NBR,BED_NBR,AVAILABLE_FOR_RENT, HOTEL_ID FROM HOTEL.ROOM WHERE ID=?\");\r\n\t\t\tstmt.setLong(1, pId);\r\n\t\t\trset = stmt.executeQuery();\r\n\t\t\tif (rset.next()) {\r\n\t\t\t\tRoom room = new Room();\r\n\t\t\t\troom.setId(rset.getLong(1));\r\n\t\t\t\troom.setFloor(rset.getInt(2));\r\n\t\t\t\troom.setNumber(rset.getString(3));\r\n\t\t\t\troom.setNumberOfBeds(rset.getInt(4));\r\n\t\t\t\troom.setAvailableForRent(rset.getBoolean(5));\r\n\t\t\t\t// cust.setAddress(mAddrDAO.loadById(rset.getLong(6)));\r\n\t\t\t\treturn room;\r\n\t\t\t} else {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t} finally {\r\n\t\t\tif (rset != null) {\r\n\t\t\t\trset.close();\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public LoadRooms(String path, LogBook log, ArrayList<Room> rooms_list, ArrayList<Person> persons_list, TextHandler printer, Time time) {\n super(path, log, rooms_list, persons_list, printer, time);\n load();\n }",
"private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }",
"@Override\n\tprotected void on_room_entered(String room_door_name) {\n\n\t}",
"@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n if (data == null || data.getCount() < 1) {\n return;\n }\n\n // Proceed with moving to the first row of the cursor and reading data from it\n // (This should be the only row in the cursor)\n if (data.moveToFirst()) {\n // Find the columns of pet attributes that we're interested in\n int nameColumnIndex = data.getColumnIndex(CourseEntry.COLUMN_COURSE_NAME);\n\n // Extract out the value from the Cursor for the given column index\n String name = data.getString(nameColumnIndex);\n\n // Update the views on the screen with the values from the database\n mNameEditText.setText(name);\n }\n }",
"public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }",
"public void loadData() {\n if (this.model != null) {\n\n this.dataLayout.setVisibility(View.VISIBLE);\n this.emptyText.setVisibility(View.GONE);\n\n\n if (this.model.getSolution() != null) {\n this.solutionView.setText(this.model.getSolution());\n }\n if (this.model.getArguments() != null) {\n this.argumentsView.setText(this.model.getArguments());\n }\n if (this.model.getQuestion() != null) {\n this.questionView.setText(\n String.valueOf(this.model.getQuestion().getId()));\n }\n } else {\n this.dataLayout.setVisibility(View.GONE);\n this.emptyText.setVisibility(View.VISIBLE);\n }\n }",
"public Room(String description) \n {\n this.description = description;\n exits = new HashMap<>();\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }",
"public void makeTestRoom() {\r\n\t\tthis.boardData = new BoardData();\r\n\t\tthis.boardData.loadLevelOne();\r\n\r\n\t\tif (boardData.getAllRooms().isEmpty()) {\r\n\t\t\tSystem.out.println(\"room list is empty\");\r\n\t\t} else if (boardData.getAllRooms().get(0).getRoomInventory().isEmpty()) {\r\n\t\t\tSystem.out.println(\"room's inventory is empty\");\r\n\t\t}\r\n\t}",
"private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }",
"public void load() {\n theDataSet = getParent().getCurrentDataset();\n currentSession = getParent().getSession();\n\n airlineContainer.setOnKeyPressed(new EventHandler<KeyEvent>(){\n @Override\n public void handle(KeyEvent event) {\n if (event.getCode().equals(KeyCode.ENTER)){\n editAirline();\n }\n }\n });\n\n toEdit = theDataSet.getAirlineDictionary().get(currentSession.getAirlineToEdit());\n\n airlNameEdit.setText(toEdit.getName());\n airlAliasEdit.setText(toEdit.getAlias());\n airlIATAEdit.setText(toEdit.getIATA());\n airlICAOEdit.setText(toEdit.getICAO());\n airlCallsignEdit.setText(toEdit.getCallSign());\n airlCountryEdit.setText(toEdit.getCountryName());\n airlActiveEdit.setText(toEdit.getActive());\n }",
"private void loadData(){\n Dh.refresh();\n }",
"@Override\n public Object getItem(int arg0) {\n Log.d(TAG, \"getItem: \"+fromName.get(arg0));\n return rooms.get(arg0);\n }",
"public Room(String description) \n {\n this.description = description;\n items = new ArrayList<>();\n exits = new HashMap<>();\n }",
"private void fillData()\r\n\t{\n\t\tif(mManager.getLoader(LOADER_LOG) != null && !mManager.getLoader(LOADER_LOG).isReset())\r\n\t\t{\r\n\t\t\tmManager.restartLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmManager.initLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\t\r\n\t\tif(selectMode != WorkoutMode.Tactical)\r\n\t\t{\r\n\t\t\tif(mManager.getLoader(LOADER_LOG_CARDIO) != null && !mManager.getLoader(LOADER_LOG_CARDIO).isReset())\r\n\t\t\t{\r\n\t\t\t\tmManager.restartLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmManager.initLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tboolean ok = true;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(selectMode == WorkoutMode.Tactical || this.dayMode ==WorkoutMode.Tactical)\r\n\t\t\t{\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_tacktical_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE, DBAdapter.COL_LAPS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_name,R.id.txt_laps});\t\r\n\t\t\t\t\r\n\t\t\t\t//Hide cardio\r\n\t\t\t\thideCardio();\r\n\t\t\t}\r\n\t\t\telse //weigh + cardio, only weight; only cardio; \r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_ex_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_SET_NUM, DBAdapter.COL_REPS,DBAdapter.COL_WEIGHT,DBAdapter.COL_UNITS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_set,R.id.txt_reps,R.id.txt_wt,R.id.txt_units});\r\n\t\t\t\t\r\n\t\t\t\tcardioAdapter = new SimpleCursorAdapter(this, R.layout.log_item_cardio,null,\r\n\t\t\t\t\t\tnew String[]{ DBAdapter.COL_DISTANCE, DBAdapter.COL_UNITS, DBAdapter.COL_EQUIPMENT,DBAdapter.COL_TIME},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_cardio_dist,R.id.txt_cardio_units,R.id.img_cardio,R.id.txt_cardio_time}, \r\n\t\t\t\t\t\tCursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);\r\n\t\t\t\t\r\n\t\t\t\tListView cardioList = (ListView)findViewById(R.id.list_log_cardio);\r\n\t\t\t\tcardioList.setAdapter(cardioAdapter);\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tok = false;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif(ok){\r\n\t\t\tsetListAdapter(logAdapter);\r\n//\t\t\tfinal int cnt =logAdapter.getGroupCount();\r\n//\t\t\tfor(int i=0; i < cnt; i++)\r\n//\t\t\t{\r\n//\t\t\t\tlist.expandGroup(i);\r\n//\t\t\t}\r\n\t\t}\r\n\t\t//getExpandableListView().setGroupIndicator(getResources().getDrawable(R.drawable.group_selector));\r\n\t}",
"@Override\n\tpublic Map<String, Object> getRoomInfo(Map<String, Object> requestMap) {\n\t\tMap<String,Object> responseMap = new HashMap<>();\n\t\tVoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample();\n\t\ttry {\n\t\t\tcom.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria();\n\t\t\tcriteria.andSectNameEqualTo((String)requestMap.get(\"sectName\"));\n\t\t\tcriteria.andBuildCodeEqualTo((String)requestMap.get(\"buildCode\"));\n\t\t\tcriteria.andUnitCodeEqualTo((String)requestMap.get(\"unitCode\"));\n\t\t\tcriteria.andFloorCodeEqualTo((String)requestMap.get(\"floorCode\"));\n\t\t\tvoteHouseInfoExample.setOrderByClause(\"build_code asc\");\n\t\t\tvoteHouseInfoExample.setDistinct(true);\n\t\t\tList<VoteHouseInfo> list = voteHouseInfoMapper.selectDistinctRoom(voteHouseInfoExample);\n\t\t\tresponseMap.put(\"listInfo\", list);\n\t\t\tresponseMap.put(\"status\", true);\n\t\t\treturn responseMap;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(\"加载文件数据错误:\"+ExceptionUtil.getErrorMsg(e));\n\t\t\tthrow new BusinessException(\"加载文件数据错误:\"+ExceptionUtil.getErrorMsg(e));\n\t\t}\n\t}",
"private void reportData() {\n getSender().tell(new GameRoomDataMessage(gameRoomName, capacity, players), this.getSelf());\n }",
"private void setupRooms() {\n\t\tthis.listOfCoordinates = new ArrayList<Coordinates>();\r\n\t\tthis.rooms = new HashMap<String,Room>();\r\n\t\t\r\n\t\tArrayList<Coordinates> spaEntrances = new ArrayList<Coordinates>();\r\n\t\tspaEntrances.add(grid[5][6].getCoord());\r\n\r\n\t\tArrayList<Coordinates> theatreEntrances = new ArrayList<Coordinates>();\r\n\t\ttheatreEntrances.add(grid[13][2].getCoord());\r\n\t\ttheatreEntrances.add(grid[10][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> livingRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tlivingRoomEntrances.add(grid[13][5].getCoord());\r\n\t\tlivingRoomEntrances.add(grid[16][9].getCoord());\r\n\r\n\t\tArrayList<Coordinates> observatoryEntrances = new ArrayList<Coordinates>();\r\n\t\tobservatoryEntrances.add(grid[21][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> patioEntrances = new ArrayList<Coordinates>();\r\n\t\tpatioEntrances.add(grid[5][10].getCoord());\r\n\t\tpatioEntrances.add(grid[8][12].getCoord());\r\n\t\tpatioEntrances.add(grid[8][16].getCoord());\r\n\t\tpatioEntrances.add(grid[5][18].getCoord());\r\n\r\n\t\t// ...\r\n\t\tArrayList<Coordinates> poolEntrances = new ArrayList<Coordinates>();\r\n\t\tpoolEntrances.add(grid[10][17].getCoord());\r\n\t\tpoolEntrances.add(grid[17][17].getCoord());\r\n\t\tpoolEntrances.add(grid[14][10].getCoord());\r\n\r\n\t\tArrayList<Coordinates> hallEntrances = new ArrayList<Coordinates>();\r\n\t\thallEntrances.add(grid[22][10].getCoord());\r\n\t\thallEntrances.add(grid[18][13].getCoord());\r\n\t\thallEntrances.add(grid[18][14].getCoord());\r\n\r\n\t\tArrayList<Coordinates> kitchenEntrances = new ArrayList<Coordinates>();\r\n\t\tkitchenEntrances.add(grid[6][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> diningRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tdiningRoomEntrances.add(grid[12][18].getCoord());\r\n\t\tdiningRoomEntrances.add(grid[16][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> guestHouseEntrances = new ArrayList<Coordinates>();\r\n\t\tguestHouseEntrances.add(grid[20][20].getCoord());\r\n\r\n\t\t// setup entrances map\r\n\t\tthis.roomEntrances = new HashMap<Coordinates, Room>();\r\n\t\tfor (LocationCard lc : this.listOfLocationCard) {\r\n\t\t\tString name = lc.getName();\r\n\t\t\tRoom r;\r\n\t\t\tif (name.equals(\"Spa\")) {\r\n\t\t\t\tr = new Room(name, lc, spaEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : spaEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Theatre\")) {\r\n\t\t\t\tr = new Room(name, lc,theatreEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : theatreEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"LivingRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,livingRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : livingRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Observatory\")) {\r\n\t\t\t\tr = new Room(name, lc,observatoryEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : observatoryEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Patio\")) {\r\n\t\t\t\tr = new Room(name,lc, patioEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : patioEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Pool\")) {\r\n\t\t\t\tr = new Room(name,lc,poolEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : poolEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Hall\")) {\r\n\t\t\t\tr = new Room(name, lc,hallEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : hallEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Kitchen\")) {\r\n\t\t\t\tr = new Room(name, lc,kitchenEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : kitchenEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"DiningRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,diningRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : diningRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"GuestHouse\")) {\r\n\t\t\t\tr = new Room(name, lc,guestHouseEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : guestHouseEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Room getRoom()\r\n {\r\n return room;\r\n }",
"@Override\r\n public void setRoom(Room room) {\n this.room = room; //set the hive room\r\n roomList.add(this.room); // add room to the list\r\n }",
"protected void loadData()\n {\n }",
"@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n if(data != null) {\n data.moveToFirst();\n }\n //Get data to add to data object to send to Detail Activity\n movie.setOriginal_title(data.getString(MOVIE_TITLE));\n movie.setRelease_date(data.getString(MOVIE_DATE));\n movie.setOverview(data.getString(MOVIE_OVERVIEW));\n movie.setPoster_path(data.getString(POSTER_PATH));\n movie.setVote_average(data.getString(RATING));\n data.close();\n\n //Start intent to show detail activity\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(\"MOVIE_SELECTED\", movie);\n intent.putExtra(\"STAYING_IN\", true);\n startActivity(intent);\n\n }",
"private void LoadComponents() {\n MenuBaseAdapter adapter = new MenuBaseAdapter(this.getActivity(), DataApp.LISTDATA);\n // list.setAdapter(adapter);\n this.event.OnLodCompleteDataResult();\n }",
"@Override\n\tpublic void load(ModelInfo info) {\n\t}",
"protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }",
"public void updateRoom(Room room);",
"public void setRoomInformation(String newRoomID, String newRoomName)\r\n\t{\r\n\t\troomID = newRoomID;\r\n\t\troomName = newRoomName;\r\n\t\ttheGridView.setRoomInformation(newRoomID, newRoomName);\r\n\t}",
"private void loadData() {\n reminderData.loadDataFromSharedPreferences();\n reminderText.setText(reminderData.getNotificationText());\n timePicker.setMinute(reminderData.getMinutes());\n timePicker.setHour(reminderData.getHours());\n }",
"private void setUpOverview() {\n mapInstance = GameData.getInstance();\n //get reference locally for the database\n db = mapInstance.getDatabase();\n\n //retrieve the current player and the current area\n currentPlayer = mapInstance.getPlayer();\n\n }",
"public InfoDataIF() {\n initComponents();\n }",
"public ViewRoom(Customer cust,Room r, int wrkNum) {\n initComponents();\n this.room = r;\n this.workoutNum = wrkNum;\n customer = cust;\n updateRoom();\n \n }",
"void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}",
"public String getRoom() {\r\n return room;\r\n }",
"private void look()\n {\n System.out.println(currentRoom.getLongDescription()); \n }",
"public Room(String description) \n {\n exits = new HashMap<>();\n objects = new HashMap<>();\n this.description = description;\n this.requiredOutfit = null;\n this.locked = false;\n }",
"private void printRoomInfo(Room room, List<String> retirevedInRoom, StringBuilder sb) {\n sb.append(room.getId());\n insertSpacing(sb, room.getId().toString());\n sb.append(room.getName());\n insertSpacing(sb, room.getName());\n if (CollectionUtils.isNotEmpty(retirevedInRoom)) {\n for (String obj : retirevedInRoom) {\n sb.append(obj);\n sb.append(\" \");\n }\n } else {\n sb.append(\"None\");\n }\n sb.append(NEWLINE);\n }",
"public synchronized void setRoom(String room) {\n this.room = room;\n }",
"Room mo12151c();",
"public void load(UUID uuid) {\n async(() -> {\n ResultSet set = null;\n SQLStatement statement = new SQLStatement(\"SELECT `json` FROM `player_info` WHERE `player`=?\");\n statement.set(1, uuid);\n try {\n set = query(statement);\n if (set.next()) {\n String json = set.getString(\"json\");\n PlayerInfo info = KitSQL.GSON.fromJson(json, PlayerInfo.class);\n info.setUuid(uuid);\n } else {\n new PlayerInfo(uuid);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n if(set != null && !set.isClosed()) {\n set.close();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n });\n }",
"@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }",
"public void setBuildingRoom(Room buildingRoom) {\n this.buildingRoom = buildingRoom;\n }",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"public Room getLocalisation(){return this.aLocalisation;}",
"public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }",
"public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"private void setInfoPanel()\r\n {\r\n //set up info panel\r\n unitPanel.setPlayer(worldPanel.getCurrentPlayer());\r\n\t\t\t\tunitPanel.setYear(year);\r\n int tempUnit = worldPanel.getCurrentUnit();\r\n\r\n if(worldPanel.getCurrentPlayer() == 1)\r\n {\r\n unitPanel.setImageIcon(worldPanel.player1.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player1.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player1.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player1.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n else\r\n {\r\n unitPanel.setImageIcon(worldPanel.player2.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player2.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player2.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player2.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }",
"public void retrieveData(Info info) {\n for(int i=0 ; i<degree.getAdapter().getCount() ;i++){\n if(Objects.equals(info.getEducation().getDegree(),degree.getAdapter().getItem(i))) {\n degree.setSelection(i);\n }\n }\n\n universityName.setText(info.getEducation().getUniversity());\n specialization.setText(info.getEducation().getSpecialization());\n specializationRate.setText(info.getEducation().getSpecializationRate()+\"\");\n\n jobTitle.setText(info.getWork().getJobTitle());\n jobAddress.setText(info.getWork().getJobAddress());\n companyName.setText(info.getWork().getCompanyName());\n salary.setText(info.getWork().getSalary()+\"\");\n otherJobs.setText(info.getWork().getOtherJobs());\n\n\n }",
"private Room createRooms(){\n Room inicio, pasilloCeldas, celdaVacia1,celdaVacia2, pasilloExterior,vestuarioGuardias, \n comedorReclusos,enfermeria,ventanaAbierta,salidaEnfermeria,patioReclusos,tunelPatio,salidaPatio;\n\n Item mochila,medicamentos,comida,itemInutil,itemPesado;\n mochila = new Item(\"Mochila\",1,50,true,true);\n medicamentos = new Item(\"Medicamentos\",5,10,true,false);\n comida = new Item(\"Comida\",2,5,true,false);\n itemInutil = new Item(\"Inutil\",10,0,false,false);\n itemPesado = new Item(\"Pesas\",50,0,false,false);\n\n // create the rooms\n inicio = new Room(\"Tu celda de la prision\");\n pasilloCeldas = new Room(\"Pasillo donde se encuentan las celdas\");\n celdaVacia1 = new Room(\"Celda vacia enfrente de la tuya\");\n celdaVacia2 = new Room(\"Celda de tu compaņero, esta vacia\");\n pasilloExterior = new Room(\"Pasillo exterior separado de las celdas\");\n vestuarioGuardias = new Room(\"Vestuario de los guardias de la prision\");\n comedorReclusos = new Room(\"Comedor de reclusos\");\n enfermeria = new Room(\"Enfermeria de la prision\");\n ventanaAbierta = new Room(\"Saliente de ventana de la enfermeria\");\n salidaEnfermeria = new Room(\"Salida de la prision por la enfermeria\");\n patioReclusos = new Room(\"Patio exterior de los reclusos\");\n tunelPatio = new Room(\"Tunel escondido para escapar de la prision\");\n salidaPatio = new Room(\"Salida de la prision a traves del tunel del patio\");\n\n // initialise room items\n\n comedorReclusos.addItem(\"Comida\",comida);\n enfermeria.addItem(\"Medicamentos\",medicamentos);\n pasilloCeldas.addItem(\"Inutil\",itemInutil);\n patioReclusos.addItem(\"Pesas\",itemPesado);\n vestuarioGuardias.addItem(\"Mochila\",mochila);\n\n // initialise room exits\n\n inicio.setExits(\"east\", pasilloCeldas);\n pasilloCeldas.setExits(\"north\",pasilloExterior);\n pasilloCeldas.setExits(\"east\",celdaVacia1);\n pasilloCeldas.setExits(\"south\",patioReclusos);\n pasilloCeldas.setExits(\"west\",inicio);\n pasilloCeldas.setExits(\"suroeste\",celdaVacia2);\n celdaVacia1.setExits(\"west\", pasilloCeldas);\n pasilloExterior.setExits(\"north\",comedorReclusos);\n pasilloExterior.setExits(\"west\",enfermeria);\n pasilloExterior.setExits(\"east\",vestuarioGuardias);\n comedorReclusos.setExits(\"south\", pasilloExterior);\n enfermeria.setExits(\"east\",pasilloExterior);\n enfermeria.setExits(\"south\", ventanaAbierta);\n ventanaAbierta.setExits(\"north\",enfermeria);\n ventanaAbierta.setExits(\"south\", salidaEnfermeria);\n patioReclusos.setExits(\"north\", pasilloCeldas);\n patioReclusos.setExits(\"east\", tunelPatio);\n tunelPatio.setExits(\"east\",salidaPatio);\n tunelPatio.setExits(\"west\", patioReclusos);\n // casilla de salida\n\n return inicio;\n }",
"public Player(Room room)\n {\n Inventory = new HashMap<String, Items>();\n currentRoom = room; //Starting Room Number 1\n itemsHeld = 0; //Start with no items being held\n itemLimit = 2; // can only hold 2 items until a backpack\n Inventory = new HashMap<String, Items>();\n \n roomHistory = new Stack<Room>();\n \n haveBackpack = false; //no backpack at start\n usingFlashlight = false;\n }",
"public void enterRoom(Room room) {\n currentRoom = room;\n }",
"static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }",
"private void _Setup_GetLocData() {\n\t\tString log_msg = \"CONS.LocData.LONGITUDE=\"\n\t\t\t\t\t+ String.valueOf(CONS.LocData.LONGITUDE);\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t\tIntent i = this.getIntent();\n\t\t\n\t\tthis.longitude\t= i.getDoubleExtra(\n\t\t\t\t\t\t\tCONS.IntentData.iName_Showmap_Longitude,\n\t\t\t\t\t\t\tCONS.IntentData.Showmap_DefaultValue);\n\t\t\n\t\tthis.latitude\t= i.getDoubleExtra(\n\t\t\t\tCONS.IntentData.iName_Showmap_Latitude,\n\t\t\t\tCONS.IntentData.Showmap_DefaultValue);\n\t\t\n\t\t// Log\n\t\tlog_msg = \"this.latitude=\" + String.valueOf(this.latitude)\n\t\t\t\t\t\t+ \"/\"\n\t\t\t\t\t\t+ \"this.longitude=\" + String.valueOf(this.longitude);\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t}",
"public Room getRoom(){\n\t\treturn this.room;\n\t}",
"public void setRoom(Room room) {\n this.selectedRoom = room;\n }",
"private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }",
"private void load() { \n\t\tmannschaft_name.setText(helper.getTeamName(mannschaftId));\n\t\tmannschaft_kuerzel.setText(helper.getTeamKuerzel(mannschaftId));\t\t \n\t}",
"public String getRoomDescription() {\n\treturn this.description;\n\t\n}",
"void setRoomId(String roomId);",
"@Override\n\tpublic void loadData() {\n\t\t\n\t\tint teamId = ((MatchPagerActivity)getActivity()).getTeamId();\n\t\tint matchId = ((MatchPagerActivity)getActivity()).getMatchId();\n\n\t\tUri teamUri = Matches.buildMatchIdTeamIdUri(\"\"+matchId, \"\"+teamId);\n\t\tfinal Cursor cur = getActivity().getContentResolver().query(teamUri, PROJECTION, null, null, null);\n\t\t\n\t\tif (cur != null && cur.moveToFirst()) {\n\t\t\tint numHighShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_HIGH));\n\t\t\tint numMedShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_MED));\n\t\t\tint numLowShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_LOW));\n\t\t\tint numHighShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_HIGH));\n\t\t\tint numMedShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_MED));\n\t\t\tint numLowShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_LOW));\n\t\t\n\t\t\tmHighCounter.setText(\"\" + numHighShotsMade);\n\t\t\tmMedCounter.setText(\"\" + numMedShotsMade);\n\t\t\tmLowCounter.setText(\"\" + numLowShotsMade);\n\t\t\tmHighMissCounter.setText(\"\" + (numHighShotsAtmp-numHighShotsMade));\n\t\t\tmMedMissCounter.setText(\"\" + (numMedShotsAtmp-numMedShotsMade));\n\t\t\tmLowMissCounter.setText(\"\" + (numLowShotsAtmp-numLowShotsMade));\n\t\t}\n\t\tcur.close();\n\t}",
"private void loadData(){\n updateDateTimeText();\n\n mLoadingDialog = DialogUtil.createLoadingDialog(getActivity(), getString(R.string.loading_dialog_in_progress));\n mLoadingDialog.show();\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }",
"public void initDataPanel(Game game) {\n\t\t\tJPanel pane = this.rightPanel;\n\t\t\tpane.setLayout(new GridLayout(game.getHunters().size(),1));\n\t\t\tthis.playersData.clear();\n\t\t\tpane.removeAll();\n\t\t\t\n\t\t\tfor(Hunter h : game.getHunters()) {\n\t\t\t\t\n\t\t\t\tJLabel data = new JLabel();\n\t\t\t\tdata.setFont(new java.awt.Font(Font.DIALOG,Font.BOLD,30));\n\t\t\t\tdata.setText(\" \"+h.toString()+\" : \"+h.getPosition()+\" - \"+Hunter.dirToArrow(h.getDirection()));\n\t\t\t\tpane.add(data);\n\t\t\t\tthis.playersData.add(data);\n\t\t\t}\n\t\t\tpane.revalidate();\n\t\t\tpane.repaint();\n\t\t}",
"public Room() {\n roomDisplayArray = new String[roomHeight][roomWidth];\n }",
"public void setRoom(java.lang.CharSequence value) {\n this.room = value;\n }"
] |
[
"0.6392102",
"0.6280573",
"0.60727066",
"0.59673285",
"0.5922312",
"0.58940953",
"0.58915776",
"0.5856252",
"0.58466953",
"0.5835629",
"0.5813666",
"0.5810618",
"0.580882",
"0.5788987",
"0.57840115",
"0.5702107",
"0.56886876",
"0.5681554",
"0.5657146",
"0.56493247",
"0.563284",
"0.5626373",
"0.5618577",
"0.55605596",
"0.55574864",
"0.5549716",
"0.5549716",
"0.55268335",
"0.5505923",
"0.548142",
"0.54758084",
"0.54746187",
"0.5466708",
"0.5457553",
"0.5454093",
"0.54520756",
"0.54423505",
"0.542271",
"0.54156226",
"0.5411226",
"0.53795975",
"0.53768176",
"0.536905",
"0.53608793",
"0.5350899",
"0.5349325",
"0.5348831",
"0.53440577",
"0.5335591",
"0.53312385",
"0.5301911",
"0.52992475",
"0.5292952",
"0.52883595",
"0.52843547",
"0.5281646",
"0.5274667",
"0.52690077",
"0.5254844",
"0.5254131",
"0.5221879",
"0.52213377",
"0.5217983",
"0.5217704",
"0.52154166",
"0.52057797",
"0.5200832",
"0.5192083",
"0.5190799",
"0.51898414",
"0.51872003",
"0.5182729",
"0.51652914",
"0.5160462",
"0.51580423",
"0.515785",
"0.515249",
"0.5149065",
"0.5146459",
"0.51437646",
"0.5141901",
"0.5138758",
"0.5136563",
"0.51337636",
"0.51276124",
"0.5124559",
"0.5123438",
"0.5119767",
"0.5119622",
"0.510978",
"0.51095456",
"0.51069486",
"0.51036716",
"0.5102783",
"0.51026136",
"0.50878626",
"0.5075751",
"0.50714177",
"0.50695723",
"0.50590354"
] |
0.7567287
|
0
|
Unloads Rooms by clearing the currentRooms List.
|
public void unload() {
this.currentRooms.clear();
// Zero the info panel.
this.roomNameField.setText("");
this.includeField.setText("");
this.inheritField.setText("");
this.streetNameField.setSelectedIndex(0);
this.determinateField.setText("");
this.lightField.setText("");
this.shortDescriptionField.setText("");
this.longDescriptionField.setText("");
this.exitPanel.removeAll();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void removeUnavailableRooms(){\n\t}",
"public void resetLastRoom(){this.aLastRooms.clear();}",
"public void releaseLeftRooms() {\n if (mAreLeftRoomsSynced) {\n mLeftRoomsStore.clear();\n mAreLeftRoomsSynced = false;\n }\n }",
"public void exitAllRooms() {\n\t\tfor (RoomSetting roomSetting : roomSettings) {\n\t\t\troomSetting.getRoom().removeClient(this);\n\t\t}\n\t\troomSettings.clear();\n\t}",
"@Override\r\n public void clear() {\r\n this.roomMap.clear();\r\n this.buildingMap.clear();\r\n this.roomResponsibleOrgMap.clear();\r\n }",
"public List<Room> unOccupiedRooms() {\n List<Room> rooms = new ArrayList<>();\n for (int i = 0; i < numOfRooms; i++) {\n if (!internalList.get(i).isOccupied()) {\n rooms.add(internalList.get(i));\n }\n }\n return rooms;\n }",
"private void clearLists() {\n\t\tobjects = new ArrayList<Entity>();\n\t\tenemies.clear();\n\t\titemList.clear();\n\t}",
"public void removeRoomFromList(String roomname){\n\t\troomlist.remove(roomname);\t\t\t\n\t}",
"private void loadAvailableRooms() {\n\n\t\texecutor.submit(() -> {\n\t\t\troomResultsTable.setVisible(false);\n\t\t\tprogress.setVisible(true);\n\t\t\troom.clear();\n\t\t\thotel.clear();\n\t\t\tquality.clear();\n\t\t\trooms = FXCollections.observableArrayList(dbParser.checkAvailableRoomsBetweenDates(arrivalDate.toEpochDay(),\n\t\t\t\t\tdepartureDate.toEpochDay(), hotelChoice.getName(), roomQualityChoice.getQuality()));\n\t\t\troomResultsTable.setItems(rooms);\n\t\t\tprogress.setVisible(false);\n\t\t\troomResultsTable.setVisible(true);\n\t\t});\n\n\t}",
"private void updateRooms(DataSnapshot roomsSnap) {\n // assuming there will not be many rooms that show up on the user's page setting to\n // an empty HashTable each time there's a change will not disrupt performance much.\n rooms.clear();\n for (DataSnapshot roomSnap : roomsSnap.getChildren()) {\n // adds the roomID and room to\n String roomID = roomSnap.getKey();\n Room room = roomSnap.getValue(Room.class);\n rooms.put(roomID, room);\n }\n\n if (rooms.size() == 0) {\n String noActiveRoomsText = \"No active rooms in this area. Please check again later.\";\n Toast.makeText(this, noActiveRoomsText, Toast.LENGTH_SHORT).show();\n }\n\n // Populates the join room ListView with all the appropriate room informatoin\n RoomAdapter roomAdapter = new RoomAdapter(this, rooms);\n roomList.setAdapter(roomAdapter);\n }",
"private void ExitRoom() {\n stopFirestoreListenerService();\n\n SharedPreferences roomInfo = getSharedPreferences(\"PreviousRoom\", 0);\n SharedPreferences.Editor roomInfoEditor = roomInfo.edit();\n\n roomInfoEditor.putString(\"roomID\", \"\");\n\n roomInfoEditor.apply();\n\n SelectRoomActivity.recentRooms.remove(roomId);\n }",
"public void unbookRoom(int room) {\n availableRooms.add(availableRooms.size(), room);\n unavailableRooms.remove(unavailableRooms.indexOf(room));\n unavailableRooms = unavailableRooms.stream().sorted().collect(Collectors.toList());\n availableRooms = availableRooms.stream().sorted().collect(Collectors.toList());\n System.out.println(\"Thank you for staying! See you next time.\");\n }",
"private void clearRoomId() {\n \n roomId_ = 0L;\n }",
"public void populateRooms(){\n }",
"public void clearLobbies() {\n\t\tlobbies.clear();\n\t}",
"public export.serializers.avro.DeviceInfo.Builder clearRoom() {\n room = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public void clearGameList() {\n gameJList.removeAll();\n }",
"private void refreshUnreadCounters() {\n Set<String> roomIdsList;\n\n synchronized (mUpdatedRoomIdList) {\n roomIdsList = new HashSet<>(mUpdatedRoomIdList);\n mUpdatedRoomIdList.clear();\n }\n // refresh the unread counter\n for (String roomId : roomIdsList) {\n Room room = mStore.getRoom(roomId);\n\n if (null != room) {\n room.refreshUnreadCounter();\n }\n }\n }",
"public void resetGameRoom() {\n gameCounter++;\n score = MAX_SCORE / 2;\n activePlayers = 0;\n Arrays.fill(players, null);\n }",
"public static void clearWinners(){winners.clear();}",
"public void clearPartyList() {\n currentlyProcessingParties.clear();\n }",
"public void onDestroy() {\n super.onDestroy();\n roomsRef.removeEventListener(RoomsListener);\n roomsRef.removeEventListener(RoomsNbPlayersListener);\n }",
"private static void DelRoom (){\n boolean DelRoomLoop = true;\n //loop for delete room process\n while (DelRoomLoop) {\n //checking if there are rooms to delete\n if (HotelRoom.roomList.isEmpty() || HotelRoom.AllRoomsOccupied() == true) {\n System.out.println(\"Apologies, there are no available rooms!\");\n break;\n } \n else {\n System.out.println(\"Here is a list of rooms:\");\n //call the method for showing a list of all rooms\n HotelRoom.DisplayAllRooms();\n System.out.println(\"-----------------------------\");\n System.out.print(\"Room number: \");\n //try/catch for delete room input\n try {\n //get the user's input\n int delRoomNumber = RecInput.nextInt();\n //loop through the room list to find whether the room number matches one of the rooms\n //and delete the one asked by the user\n boolean roomNumberExist = false;\n for (int i = 0; i < HotelRoom.roomList.size(); i++){\n\n if (delRoomNumber == HotelRoom.roomList.get(i).roomNumber && HotelRoom.roomList.get(i).occupied == false){\n roomNumberExist = true;\n //room is deleted\n HotelRoom.roomList.remove(i);\n System.out.println(\"The room number \" + delRoomNumber + \" is deleted\");\n System.out.println(\"-----------------------------\");\n //breaking loop to exit process\n DelRoomLoop = false;\n } \n\n }\n if(roomNumberExist == false) {\n //handling if user inputs incorrect room number\n System.out.println(\"The room number you entered is invalid\");\n System.out.println(\"-----------------------------\");\n }\n }\n catch (Exception InputMismatchException) {\n //handling if user input is not integer\n System.out.println(\"Please enter a number\");\n System.out.println(\"-----------------------------\");\n\n //Cleaning scanner\n RecInput.next();\n }\n }\n }\n }",
"public void clearTheGame() {\n players.clear();\n categories.clear();\n playedRounds = 0;\n indexOfActiveCategory = -1;\n indexOfActivePlayer = 0;\n numberOfRounds = 0;\n }",
"public void clearGame() {\n\t\tselectedObjects.clear();\n\t}",
"public void clearMovieListings() {\n movieListings.clear();\n notifyDataSetChanged();\n }",
"public void emptyTickets() {\r\n tickets.clear();\r\n }",
"public void clearItems() {\n grabbedItems.clear();\n }",
"static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }",
"public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}",
"@Override\n\tpublic void setRooms(List<RoomInterface> rooms) {\n\t\tthis.rooms = rooms;\n\n\t}",
"private void setRooms() {\r\n\t\tAccountBean bean = new AccountBean();\r\n\t\tbean.setCf(Session.getSession().getCurrUser().getAccount().getCf());\r\n\t\tRoomController ctrl = RoomController.getInstance();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.myRooms=FXCollections.observableArrayList(ctrl.getMyRooms(bean));\r\n\t\t}\r\n\t\tcatch (DatabaseException ex1) {\r\n\t\t\tJOptionPane.showMessageDialog(null,ex1.getMessage(),ERROR, JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void clear() {\n\t\tlists.clear();\n\t}",
"private void clearLists() {\r\n if (memoryLists == null) return;\r\n\r\n for (int i = 0; i < this.memoryLists.length; i++) {\r\n this.lastChanged[i] = -1;\r\n\r\n // clear list\r\n memoryLists[i].setModel(new DefaultListModel());\r\n }\r\n\r\n this.memoryBlocks = null;\r\n this.memoryLists = null;\r\n }",
"public void clear() {\n items.clear();\n update();\n }",
"public void closeAllRoomWindows(){\n\t\tIterator it = roomlist.getAllOpenChatRooms();\n\t\twhile (it.hasNext()){\n\t\t\tString roomname = (String) it.next();\n\t\t\troomlist.get(roomname).closeWindow();\n\t\t\troomlist.remove(roomname);\n\t\t\t\n\t\t}\n\t\n\t}",
"public void clearDeviceLists()\n {\n deviceList.clear();\n deviceMap.clear();\n adapter.notifyDataSetChanged();\n }",
"public void clearUpLanes () {\r\n\t\tupLanes = null;\r\n\t}",
"public void onLoaderReset(Loader<List<Book>> loader) {\n mAdapter.clear();\n }",
"@Override\n\tpublic void delete(List<PropertyRooms> propertyRooms) {\n\t\thibernateTemplate.deleteAll(propertyRooms);\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }",
"public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }",
"public synchronized void resetCollections() {\n collections = null;\n }",
"public void clean() {\n\t\tserver.clearPersistentData();\n\t\t_offlineMessages.clear();\n\t\t_onlineClients.clear();\n\t\t_clientFriends.clear();\n\t}",
"void clearAllLists() {\n this.pm10Sensors.clear();\n this.tempSensors.clear();\n this.humidSensors.clear();\n }",
"public static void clearUnSatsCache(){\n\n unsats = getUnSats();\n unsats.clear();\n }",
"public void clear() {\n\t\tthis.boundObjects.clear();\n\t}",
"public void clear() {\n\t\tsystems.clear();\n\t}",
"public void clearAppointments(){\n appointments.clear();\n }",
"public void clearRealmCollection() {\n if (mRvHistoryAdapter.getData() != null) {\n mRealm.beginTransaction();\n for (TranslationInfo translationInfo : mRvHistoryAdapter.getData()) {\n translationInfo.getTranslation().deleteFromRealm();\n translationInfo.getDictionary().getDefinitionsList().deleteAllFromRealm();\n translationInfo.getDictionary().deleteFromRealm();\n }\n mRvHistoryAdapter.getData().deleteAllFromRealm();\n mRealm.commitTransaction();\n }\n }",
"public void clearInactiveCacheRefs()\n {\n for (Iterator<Map> iterByName = m_mapByName.values().iterator(); iterByName.hasNext(); )\n {\n Map mapByLoader = iterByName.next();\n\n synchronized (mapByLoader)\n {\n for (Iterator iter = mapByLoader.entrySet().iterator(); iter.hasNext(); )\n {\n Map.Entry entry = (Map.Entry) iter.next();\n\n Object oHolder = entry.getValue();\n\n if (oHolder instanceof NamedCache)\n {\n NamedCache cache = (NamedCache) entry.getValue();\n\n if (cache.isDestroyed() || cache.isReleased())\n {\n iter.remove();\n internalReleaseCache(cache);\n }\n }\n else if (oHolder instanceof SubjectScopedReference)\n {\n Collection col = ((SubjectScopedReference) oHolder).values();\n\n if (!col.isEmpty())\n {\n // all the entries in the SubjectScopedReference refer\n // to the same NamedCache instance, so we only need to\n // check the first one\n NamedCache cache = (NamedCache) col.iterator().next();\n if (cache.isDestroyed() || cache.isReleased())\n {\n iter.remove();\n internalReleaseCache(cache);\n }\n }\n }\n }\n\n if (mapByLoader.isEmpty())\n {\n iterByName.remove();\n }\n }\n }\n }",
"public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public Set<Room> removeRooms(Set<Room> rooms){\n Set<Room> result=new HashSet<>();\n for(Room r: rooms){\n try{\n removeRoom(r);\n }\n catch(RemoveRoomException ex){\n result.add(r);\n }\n }\n return result;\n }",
"void unsetRaceList();",
"public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }",
"public List<Room> getCurrentRooms() {\n return currentRooms;\n }",
"void deinit() {\n\t\tsafeLocationTask.cancel();\n\t\t//Deinit all remaining worlds\n\t\tworlds.values().forEach(WorldHandler::deinit);\n\t\t//Clear members\n\t\tworlds.clear();\n\t\toptions = null;\n\t}",
"public void clearDirtyAreas() {\n synchronized (dirtyAreas) {\n dirtyAreas.clear();\n }\n renderedAreas.clear();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }",
"public void clear(){\r\n MetersList.clear();\r\n }",
"@Override\n public void onLoaderReset(Loader<List<Book>> loader) {\n mAdapter.clear();\n }",
"@Override\n public void onLoaderReset(Loader<ArrayList<Book>> loader) {\n adapter.clear();\n Log.i(LOG_TAG,\"onLoaderReset\");\n }",
"public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }",
"public ArrayList<Room> getRooms() {\n return rooms;\n }",
"public void clearItems(){\n items.clear();\n }",
"private void populateRooms(){\n\n for(int i = 0; i<squares.size(); i++){\n for(int j = 0; j<squares.get(i).size(); j++){\n if(squares.get(i).get(j) != null) {\n getRoom(squares.get(i).get(j).getColor()).addSquare(squares.get(i).get(j));\n squares.get(i).get(j).setRoom(getRoom(squares.get(i).get(j).getColor()));\n\n }\n }\n }\n }",
"public void freeScenes(){\n\t\t//android.util.Log.d(TAG,\"freeScenes()\");\n\t\tfinal int size = this.scenes.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.scenes.delete(this.scenes.keyAt(index));\n\t\t}\n\t}",
"public void resetBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tbuilding.reset();\n\t\t}\n\t}",
"public static void clearWorld() {\r\n \tbabies.clear();\r\n \tpopulation.clear();\r\n }",
"public void removeRoom(Room room) {\n rooms.remove(room);\n }",
"public void unloaded(){\n\t\tloaded=false;\n\t}",
"private void clearLocalContactResources()\n {\n if(localContact != null)\n {\n removeResource(\n localContact,\n localContact\n .getAddressAsJid()\n .asFullJidIfPossible());\n }\n\n currentPresence = null;\n localContact = null;\n }",
"private void resetGame() {\n rockList.clear();\n\n initializeGame();\n }",
"public void clear() {\n this.layers.clear();\n list.clear();\n }",
"public void unloadRounds ()\n {\n log.info(\"Unloading Rounds\");\n\n Scheduler scheduler = Scheduler.getScheduler();\n scheduler.unloadRounds(true);\n }",
"public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }",
"public void clear() {\n\t\tallItems.clear();\n\t\tminimums.clear();\n\t}",
"@Override\n protected void onDestroy() {\n db.collection(\"users\").document(userId).update(\"room\", FieldValue.delete());\n\n super.onDestroy();\n }",
"private void clearAllState() {\n // Clear all layout records and views\n mLayoutRecords.clear();\n removeAllViews();\n\n // Reset to the top of the grid\n resetStateForGridTop();\n\n // Clear recycler because there could be different view types now\n mRecycler.clear();\n }",
"public void clearFreeSlots() {\n AvailableSlots.clear();\n }",
"public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }",
"void clear()\n\t{\n\t\tgetItems().clear();\n\t}",
"public void removeAllLights() {\n if (_lights != null){\n _lights.clear();\n }\n }",
"public void Unload() {\n\t\tsceneLoaded = false;\n\t\tfor (GameObject gO : gameObjects) {\n\t\t\tEngine.Instance.RemoveObject(gO);\n\t\t}\n\t\tEngine.Instance.currentScenes.remove(this);\n\t}",
"public void empty() {\n _items.clear();\n }",
"public void clearDownLanes() {\r\n\t\tdownLanes = null;\r\n\t}",
"private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }",
"public Set<Room> getRooms() {\n return rooms;\n }",
"public void deleteRoom(String roomId) {\n // copy the room from a store to another one\n Room r = getStore().getRoom(roomId);\n\n if (null != r) {\n if (mAreLeftRoomsSynced) {\n Room leftRoom = getRoom(mLeftRoomsStore, roomId, true);\n leftRoom.setIsLeft(true);\n\n // copy the summary\n RoomSummary summary = getStore().getSummary(roomId);\n if (null != summary) {\n mLeftRoomsStore.storeSummary(new RoomSummary(summary, summary.getLatestReceivedEvent(), summary.getLatestRoomState(), getUserId()));\n }\n\n // copy events and receiptData\n // it is not required but it is better, it could be useful later\n // the room summary should be enough to be displayed in the recent pages\n List<ReceiptData> receipts = new ArrayList<>();\n Collection<Event> events = getStore().getRoomMessages(roomId);\n\n if (null != events) {\n for (Event e : events) {\n receipts.addAll(getStore().getEventReceipts(roomId, e.eventId, false, false));\n mLeftRoomsStore.storeLiveRoomEvent(e);\n }\n\n for (ReceiptData receipt : receipts) {\n mLeftRoomsStore.storeReceipt(receipt, roomId);\n }\n }\n\n // copy the state\n leftRoom.getTimeline().setState(r.getTimeline().getState());\n }\n\n // remove the previous definition\n getStore().deleteRoom(roomId);\n }\n }",
"public void clear() {\r\n\t\titems.clear();\r\n\t}"
] |
[
"0.7070469",
"0.7037874",
"0.6632991",
"0.6496831",
"0.6301184",
"0.61237013",
"0.61141044",
"0.60578007",
"0.60431516",
"0.59475666",
"0.5941897",
"0.5935057",
"0.58477384",
"0.5828725",
"0.5794773",
"0.57758224",
"0.57497287",
"0.5740111",
"0.57247245",
"0.56887746",
"0.5681718",
"0.5638496",
"0.559028",
"0.55846906",
"0.55828184",
"0.5560713",
"0.5557519",
"0.5556765",
"0.55515677",
"0.5544406",
"0.5502494",
"0.5497644",
"0.5489964",
"0.54835397",
"0.5472873",
"0.54692036",
"0.54565734",
"0.5455781",
"0.54534155",
"0.544883",
"0.5433076",
"0.5416571",
"0.5415386",
"0.5412032",
"0.5410095",
"0.5396795",
"0.5384527",
"0.53805417",
"0.5380305",
"0.53786856",
"0.5377124",
"0.537412",
"0.5366552",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53656167",
"0.53651506",
"0.5363896",
"0.536343",
"0.5359835",
"0.5355889",
"0.53542995",
"0.5351907",
"0.5344193",
"0.533701",
"0.53348756",
"0.5329228",
"0.5328544",
"0.53260255",
"0.53217906",
"0.53208905",
"0.5320663",
"0.53181684",
"0.53176856",
"0.53172755",
"0.53165346",
"0.53125",
"0.53087574",
"0.5305245",
"0.5300407",
"0.52969456",
"0.52872294",
"0.5279073",
"0.52766216",
"0.5269009",
"0.5266713",
"0.5263243",
"0.5257386",
"0.52573687",
"0.5255984",
"0.5250385",
"0.52483314",
"0.52439344"
] |
0.69242513
|
2
|
Log.i(TAG, "URI_0 xmlFileToLayoutsPalette file=" + fileName + ", concatenate=" + concatenate);
|
public ArrayList<Layout> xmlFileToLayoutsPalette(String fileName, boolean concatenate) {
InputStream fis;
try {
try {
fis = mContext.openFileInput(fileName);
//Log.i(TAG, "#URI_1 xmlFileToLayoutsPalette START, file=" + fileName + ", concatenate=" + concatenate);
} catch (IllegalArgumentException e) {
fis = new FileInputStream(new File(fileName));
//Log.i(TAG, "#URI_2 xmlFileToLayoutsPalette START, file=" + fileName + ", concatenate=" + concatenate);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
return null;
}
return xmlFileToLayoutsPalette(fis, concatenate);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ArrayList<Layout> xmlFileToLayoutsPalette(InputStream fis, boolean concatenate) {\n\n ArrayList<Layout> result = null;\n\n Bundle bundle = null;\n ArrayList<Layout> layoutsPalette = null;\n Layout layoutElement = null;\n Stack<Bundle> bundleStack = new Stack<>();\n long arrayLong[] = null;\n float arrayFloat[] = null;\n String arrayString[] = null;\n int arrayIndex = 0;\n boolean needGC = false;\n\n mXmlPullParser = Xml.newPullParser();\n\n try {\n //FileInputStream fis;\n\n mXmlPullParser.setInput(fis, null);\n int eventType = mXmlPullParser.getEventType();\n boolean done = false;\n\n while (eventType != XmlPullParser.END_DOCUMENT && !done) {\n\n String name = null;\n Bitmap denseIcon = null, ambientIcon = null;\n\n if(needGC) { System.gc(); needGC = false; }\n\n switch (eventType) {\n\n case XmlPullParser.START_DOCUMENT:\n// bundle = new Bundle();\n break;\n\n case XmlPullParser.START_TAG:\n\n name = mXmlPullParser.getName();\n\n if (name.equalsIgnoreCase(mRootTag)) {\n String prodid = mXmlPullParser.getAttributeValue(null, ATTR_PRODUCT_ID);\n if (null == prodid || !prodid.equalsIgnoreCase(productId)) {\n done = true;\n }\n\n } else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) {\n layoutsPalette = new ArrayList<>();\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LAYOUT)) {\n// bundleStack.push(bundle);\n// bundle = new Bundle();\n layoutElement = new Layout();\n layoutElement.iconAmbientFileName = null;\n layoutElement.iconDenseFileName = null;\n denseIcon = null;\n ambientIcon = null;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LAYOUT_NAME)) {\n String lp_name = mXmlPullParser.nextText();\n// bundle.putString(name, lp_name);\n layoutElement.name = lp_name;\n\n// } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) {\n// String base64gzip = mXmlPullParser.nextText();\n// GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0)));\n// ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n// byte[] buffer = new byte[1024];\n// int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len);\n// zis.close();\n//// bundle.putByteArray(name, byteBuffer.toByteArray());\n// ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray());\n// Bitmap bmp = BitmapFactory.decodeStream(bais);\n// Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION,\n// ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true);\n// if (name.equalsIgnoreCase(DENSE_ICON)) {\n// layoutElement.iconDense = sb;\n// } else if (name.equalsIgnoreCase(AMBIENT_ICON)) {\n// layoutElement.iconAmbient = sb;\n// }\n// needGC = true;\n } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) {\n String base64gzip = mXmlPullParser.nextText();\n GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0)));\n ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n byte[] buffer = new byte[1024];\n int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len);\n zis.close();\n// bundle.putByteArray(name, byteBuffer.toByteArray());\n ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray());\n Bitmap bmp = BitmapFactory.decodeStream(bais);\n Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION,\n ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true);\n if (name.equalsIgnoreCase(DENSE_ICON)) {\n denseIcon = sb;\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, ICON, iconD=\" + denseIcon + \", fname=\" + layoutElement.iconDenseFileName);\n if (null != layoutElement.iconDenseFileName) {\n bmpToFile(denseIcon, layoutElement.iconDenseFileName);\n denseIcon = null;\n }\n } else if (name.equalsIgnoreCase(AMBIENT_ICON)) {\n ambientIcon = sb;\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, ICON, iconA=\" + ambientIcon + \", fname=\" + layoutElement.iconAmbientFileName);\n if (null != layoutElement.iconAmbientFileName) {\n bmpToFile(ambientIcon, layoutElement.iconAmbientFileName);\n ambientIcon = null;\n }\n }\n needGC = true;\n\n } else if (name.equalsIgnoreCase(DENSE_ICON_FILENAME) || name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) {\n String iconFileName = mXmlPullParser.nextText();\n if (name.equalsIgnoreCase(DENSE_ICON_FILENAME)) {\n if (!concatenate) layoutElement.iconDenseFileName = iconFileName;\n else layoutElement.iconDenseFileName = String.valueOf(System.currentTimeMillis()) + \"_D\";\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, FNAME, iconD=\" + denseIcon + \", fname=\" + layoutElement.iconDenseFileName);\n if (null != denseIcon) {\n bmpToFile(denseIcon, layoutElement.iconDenseFileName);\n denseIcon = null;\n }\n } else if (name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) {\n if (!concatenate) layoutElement.iconAmbientFileName = iconFileName;\n else layoutElement.iconAmbientFileName = String.valueOf(System.currentTimeMillis()) + \"_A\";\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, FNAME, iconA=\" + ambientIcon + \", fname=\" + layoutElement.iconAmbientFileName);\n if (null != ambientIcon) {\n bmpToFile(ambientIcon, layoutElement.iconAmbientFileName);\n ambientIcon = null;\n }\n }\n needGC = true;\n\n } else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) {\n// bundleStack.push(bundle);\n bundle = new Bundle();\n\n } else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) {\n bundleStack.push(bundle);\n bundle = new Bundle();\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) {\n arrayIndex = 0;\n arrayLong = new long[Inscription.NUM_INSCRIPTIONS];\n for (int i = 0; i < Inscription.NUM_INSCRIPTIONS; i++) arrayLong[i] = 0;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) {\n arrayIndex = 0;\n arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS];\n for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK; //0;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) {\n arrayIndex = 0;\n arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS];\n for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK_RELIEF;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LONG_ITEM)) {\n String value = mXmlPullParser.nextText();\n arrayIndex = fromXml(arrayLong, value, arrayIndex);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) {\n arrayIndex = 0;\n arrayFloat = new float[Inscription.NUM_INSCRIPTIONS];\n for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayFloat[i] = 0.0f;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(FLOAT_ITEM)) {\n String value = mXmlPullParser.nextText();\n arrayIndex = fromXml(arrayFloat, value, arrayIndex);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) {\n arrayIndex = 0;\n arrayString = new String[Inscription.NUM_INSCRIPTIONS];\n for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayString[i] = \"\";\n needGC = true;\n\n } else if (name.equalsIgnoreCase(STRING_ITEM)) {\n String value = mXmlPullParser.nextText();\n arrayIndex = fromXml(arrayString, value, arrayIndex);\n\n\n } else {\n String value = mXmlPullParser.nextText();\n fromXML(bundle, name, value);\n }\n break;\n\n\n case XmlPullParser.END_TAG:\n\n name = mXmlPullParser.getName();\n\n if (name.equalsIgnoreCase(mRootTag)) {\n done = true;\n\n } else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) {\n// bundle.putStringArrayList(LAYOUTS_PALETTE, layoutsPalette);\n result = layoutsPalette;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LAYOUT)) {\n// String base64 = ACommon.serializeBundle(bundle);\n// layoutsPalette.add(base64);\n// bundle = bundleStack.pop();\n layoutsPalette.add(layoutElement);\n needGC = true;\n\n } else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) {\n// Bundle poped = bundleStack.pop();\n// poped.putBundle(WATCH_APPEARANCE, bundle);\n// bundle = poped;\n layoutElement.config = bundle;\n bundle = null;\n\n } else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) {\n Bundle popped = bundleStack.pop();\n popped.putBundle(INSCRIPTION_BUNDLE, bundle);\n bundle = popped;\n\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) {\n bundle.putLongArray(name, arrayLong);\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) {\n bundle.putLongArray(name, arrayLong);\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) {\n bundle.putLongArray(name, arrayLong);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) {\n bundle.putFloatArray(name, arrayFloat);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) {\n bundle.putStringArray(name, arrayString);\n\n\n }\n break;\n\n } // switch\n eventType = mXmlPullParser.next();\n } // while\n\n } catch (Exception e) {\n e.printStackTrace();\n result = null;\n } finally {\n System.gc();\n }\n\n// Log.i(TAG, \"((( xmlFileToLayoutsPalette STOP, file=\" + fileName +\n// \", elements count=\" + ((null==result) ? 0 : result.size()) + \", concatenate=\" + concatenate);\n return result;\n }",
"private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }",
"public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }",
"public void appendData_File(String BSSID){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.FILE_NAME, Context.MODE_APPEND));\n BSSID+=\",\";\n outputStreamWriter.write(BSSID);\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n finally {\n try{\n if(outputStreamWriter!=null)\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }\n }",
"public void addFragmentShader(String fileName);",
"public void execute() throws BuildException {\n super.execute();\n\n // minimal Renew logging configuration that forwards messages\n // to the Ant logging system\n Logger logger = Logger.getLogger(\"CH.ifa.draw\");\n AntTaskLogAppender appender = AntTaskLogAppender.getInstance(this);\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n logger = Logger.getLogger(\"de.renew\");\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n\n // get all files - out of the vector full of filesets -> 2 loops\n Iterator<FileSet> filesetIterator = filesets.iterator();\n while (filesetIterator.hasNext()) {\n FileSet elementFileSet = filesetIterator.next();\n DirectoryScanner dirScan = elementFileSet.getDirectoryScanner(getProject());\n String[] fileNames = dirScan.getIncludedFiles();\n log(\"filenames: \" + fileNames.length, Project.MSG_VERBOSE);\n\n for (int i = 0; i < fileNames.length; i++) {\n String fileName = fileNames[i];\n File inFile = new File(dirScan.getBasedir() + \"/\" + fileName);\n log(\"File: \" + inFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n // get drawing from file\n Drawing netDrawing = DrawingFileHelper.loadDrawing(inFile,\n new StatusDisplayer() {\n public void showStatus(String message) {\n log(message);\n }\n }); //rnw-Object\n log(\"Drawing: \" + netDrawing, Project.MSG_VERBOSE);\n\n if (netDrawing == null) {\n throw new BuildException(\"Could not read drawing file: \"\n + inFile);\n }\n\n // Export netDrawing\n try {\n File helpFile = new File(destdir + \"/\" + fileName); // helps to get the right directory path\n File outFile = new File(helpFile.getParent() + \"/\"\n + netDrawing.getName() + \".\"\n + defaultExtension);\n\n //create directories\n outFile.getParentFile().mkdirs();\n exportFormat.export(netDrawing, outFile);\n } catch (Exception e) {\n throw new BuildException(e);\n }\n }\n }\n }",
"public static void d(android.content.Context r11) {\n /*\n r10 = 1;\n r1 = 0;\n r4 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n r0 = new java.io.File;\n r2 = new java.io.File;\n r3 = com.whatsapp.App.ao;\n r5 = z;\n r6 = 25;\n r5 = r5[r6];\n r2.<init>(r3, r5);\n r3 = z;\n r5 = 19;\n r3 = r3[r5];\n r0.<init>(r2, r3);\n r5 = new java.io.File;\n r2 = r11.getFilesDir();\n r3 = z;\n r6 = 30;\n r3 = r3[r6];\n r5.<init>(r2, r3);\n r2 = r0.exists();\t Catch:{ IOException -> 0x0032 }\n if (r2 != 0) goto L_0x0034;\n L_0x0031:\n return;\n L_0x0032:\n r0 = move-exception;\n throw r0;\n L_0x0034:\n r6 = new java.io.File;\n r2 = r11.getFilesDir();\n r3 = z;\n r7 = 16;\n r3 = r3[r7];\n r6.<init>(r2, r3);\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r7 = 22;\n r3 = r3[r7];\n r2 = r2.append(r3);\n r3 = r0.getName();\n r2 = r2.append(r3);\n r3 = \" \";\n r2 = r2.append(r3);\n r8 = r0.length();\n r2 = r2.append(r8);\n r2 = r2.toString();\n com.whatsapp.util.Log.i(r2);\n r2 = new java.io.FileOutputStream;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r3 = 0;\n r2.<init>(r6, r3);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r3 = java.nio.channels.Channels.newChannel(r2);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r2 = new java.io.FileInputStream;\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n r2.<init>(r0);\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n r2 = r2.getChannel();\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n com.whatsapp.util.at.a(r2, r3);\t Catch:{ IOException -> 0x0212, all -> 0x0208 }\n r2.close();\t Catch:{ IOException -> 0x0212, all -> 0x0208 }\n r2 = 0;\n r3.close();\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n r3 = 0;\n r0 = new android.graphics.BitmapFactory$Options;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0.<init>();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r7 = 1;\n r0.inJustDecodeBounds = r7;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r7 = r6.getAbsolutePath();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n android.graphics.BitmapFactory.decodeFile(r7, r0);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r7 = r0.outWidth;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = z;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r8 = 24;\n r0 = r0[r8];\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r11.getSystemService(r0);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = (android.view.WindowManager) r0;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r8 = r0.getDefaultDisplay();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r11.getResources();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r0.getConfiguration();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r0.orientation;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n if (r0 != r10) goto L_0x00c0;\n L_0x00ba:\n r0 = r8.getWidth();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n if (r4 == 0) goto L_0x00c4;\n L_0x00c0:\n r0 = r8.getHeight();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n L_0x00c4:\n if (r0 == r7) goto L_0x00d1;\n L_0x00c6:\n r0 = z;\t Catch:{ IOException -> 0x0118, all -> 0x01b4 }\n r7 = 27;\n r0 = r0[r7];\t Catch:{ IOException -> 0x0118, all -> 0x01b4 }\n com.whatsapp.util.Log.w(r0);\t Catch:{ IOException -> 0x0118, all -> 0x01b4 }\n if (r4 == 0) goto L_0x00eb;\n L_0x00d1:\n r0 = r6.renameTo(r5);\t Catch:{ IOException -> 0x011a, all -> 0x01b4 }\n if (r0 != 0) goto L_0x00e2;\n L_0x00d7:\n r0 = z;\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n r5 = 28;\n r0 = r0[r5];\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n com.whatsapp.util.Log.e(r0);\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n if (r4 == 0) goto L_0x00eb;\n L_0x00e2:\n r0 = z;\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n r4 = 18;\n r0 = r0[r4];\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n L_0x00eb:\n if (r1 == 0) goto L_0x00f0;\n L_0x00ed:\n r2.close();\t Catch:{ IOException -> 0x016f, RuntimeException -> 0x016d }\n L_0x00f0:\n if (r1 == 0) goto L_0x0031;\n L_0x00f2:\n r3.close();\t Catch:{ IOException -> 0x00f7, RuntimeException -> 0x0190 }\n goto L_0x0031;\n L_0x00f7:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = z;\n r3 = 31;\n r2 = r2[r3];\n r1 = r1.append(r2);\n r0 = r0.toString();\n r0 = r1.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x0031;\n L_0x0118:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x011a, all -> 0x01b4 }\n L_0x011a:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n L_0x011c:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n L_0x011e:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n L_0x0120:\n r0 = move-exception;\n r2 = r1;\n L_0x0122:\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x020c }\n r3.<init>();\t Catch:{ all -> 0x020c }\n r4 = z;\t Catch:{ all -> 0x020c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ all -> 0x020c }\n r3 = r3.append(r4);\t Catch:{ all -> 0x020c }\n r0 = r0.toString();\t Catch:{ all -> 0x020c }\n r0 = r3.append(r0);\t Catch:{ all -> 0x020c }\n r0 = r0.toString();\t Catch:{ all -> 0x020c }\n com.whatsapp.util.Log.w(r0);\t Catch:{ all -> 0x020c }\n if (r1 == 0) goto L_0x0145;\n L_0x0142:\n r1.close();\t Catch:{ IOException -> 0x0192 }\n L_0x0145:\n if (r2 == 0) goto L_0x0031;\n L_0x0147:\n r2.close();\t Catch:{ IOException -> 0x014c, RuntimeException -> 0x01b2 }\n goto L_0x0031;\n L_0x014c:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = z;\n r3 = 17;\n r2 = r2[r3];\n r1 = r1.append(r2);\n r0 = r0.toString();\n r0 = r1.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x0031;\n L_0x016d:\n r0 = move-exception;\n throw r0;\n L_0x016f:\n r0 = move-exception;\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r4 = z;\n r5 = 29;\n r4 = r4[r5];\n r2 = r2.append(r4);\n r0 = r0.toString();\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x00f0;\n L_0x0190:\n r0 = move-exception;\n throw r0;\n L_0x0192:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r3 = z;\n r4 = 20;\n r3 = r3[r4];\n r1 = r1.append(r3);\n r0 = r0.toString();\n r0 = r1.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x0145;\n L_0x01b2:\n r0 = move-exception;\n throw r0;\n L_0x01b4:\n r0 = move-exception;\n r2 = r1;\n L_0x01b6:\n if (r1 == 0) goto L_0x01bb;\n L_0x01b8:\n r1.close();\t Catch:{ IOException -> 0x01c3, RuntimeException -> 0x01c1 }\n L_0x01bb:\n if (r2 == 0) goto L_0x01c0;\n L_0x01bd:\n r2.close();\t Catch:{ IOException -> 0x01e5, RuntimeException -> 0x01e3 }\n L_0x01c0:\n throw r0;\n L_0x01c1:\n r0 = move-exception;\n throw r0;\n L_0x01c3:\n r1 = move-exception;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = z;\n r5 = 23;\n r4 = r4[r5];\n r3 = r3.append(r4);\n r1 = r1.toString();\n r1 = r3.append(r1);\n r1 = r1.toString();\n com.whatsapp.util.Log.w(r1);\n goto L_0x01bb;\n L_0x01e3:\n r0 = move-exception;\n throw r0;\n L_0x01e5:\n r1 = move-exception;\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 21;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r1 = r1.toString();\n r1 = r2.append(r1);\n r1 = r1.toString();\n com.whatsapp.util.Log.w(r1);\n goto L_0x01c0;\n L_0x0205:\n r0 = move-exception;\n r2 = r3;\n goto L_0x01b6;\n L_0x0208:\n r0 = move-exception;\n r1 = r2;\n r2 = r3;\n goto L_0x01b6;\n L_0x020c:\n r0 = move-exception;\n goto L_0x01b6;\n L_0x020e:\n r0 = move-exception;\n r2 = r3;\n goto L_0x0122;\n L_0x0212:\n r0 = move-exception;\n r1 = r2;\n r2 = r3;\n goto L_0x0122;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.d(android.content.Context):void\");\n }",
"public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"String prepareFile();",
"public void test() {\n String dirname = getVariableAsString(\"_PROJECT_DIR\"); \n\n String web_site = getVariableAsString(\"web_site\"); \n \n getContext().setVariable(\"dirname\", dirname);\n getContext().setVariable(\"check_detail\", web_site);\n \n String filename = dirname + \"\\\\result\\\\hreflist.csv\"; \n if(web_site.equals(\"doda\")){\n filename = dirname + \"\\\\result\\\\doda.csv\";\n getContext().setVariable(\"result2\", filename);\n }else if(web_site.equals(\"rikunabi\")){\n filename = dirname + \"\\\\result\\\\rikunabi.csv\";\n }\n String outputname = dirname + \"\\\\result\\\\hreflist.txt\"; \n\n try {\n getContext().setVariable(\"aaa\", \"aaa\");\n BufferedReader br = new BufferedReader(new FileReader(new File(filename)));\n getContext().setVariable(\"aaa\", \"bbb\");\n // PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(outputname)));\n PrintWriter pw = new PrintWriter(new FileWriter(new File(outputname)));\n getContext().setVariable(\"aaa\", \"ccc\");\n \n String line = \"\";\n boolean first = true;\n // int i=0;//test\n while ((line = br.readLine()) != null) {\n // i=i+1;//test\n // if(i==5)break;//test\n String array[] = line.split(\",\"); \n if (first) {\n first = false; \n } else {\n pw.println(array[0]); \n }\n }\n br.close();\n pw.close();\n\n } catch (FileNotFoundException e) {\n getContext().setVariable(\"result\", \"99\");\n } catch (IOException e) {\n getContext().setVariable(\"result\", \"999\");\n}\n }",
"public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tSalinlahiFour.getBgm().start();\n\t\t\n\t\t\n\t\t//Load File from res or assets\n\t\t//InputStream ins = getResources().openRawResource( getResources().getIdentifier(\"raw/properties\", \"raw\", getPackageName()));\n\t\tFile properties = new File(\"/sdcard/properties.txt\");\n\t\tif(!properties.exists()){\n\t\t\tFile config = new File (\"/sdcard/config.txt\");\n\t\t\tFile dhistory = new File (\"/sdcard/dhistory.txt\");\n\t\t\tFile lessonlibrary = new File (\"/sdcard/lessonlibrary.xml\");\n\t\t\tFile lexicon = new File (\"/sdcard/lexicon.xml\");\n\t\t\tFile lexicon_cooking = new File (\"/sdcard/lexicon_cooking.xml\");\n\t\t\tFile lexicon_family = new File (\"/sdcard/lexicon_family.xml\");\n\t\t\tFile lexicon_house = new File (\"/sdcard/lexicon_house.xml\");\n\t\t\tFile lexicon_shape = new File (\"/sdcard/lexicon_shape.xml\");\n\t\t\tFile templatecatalogue = new File (\"/sdcard/templatecatalogue.xml\");\n\t\ttry {\n\t\t\tproperties.createNewFile();\n\t\t\tconfig.createNewFile();\n\t\t\tdhistory.createNewFile();\n\t\t\tlessonlibrary.createNewFile();\n\t\t\tlexicon.createNewFile();\n\t\t\tlexicon_cooking.createNewFile();\n\t\t\ttemplatecatalogue.createNewFile();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t}\n\t\t//Copy file from res/assets to file from SDCARD\n\t\t InputStream in = getResources().openRawResource(R.raw.properties);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/properties.txt\");\n\t\t byte[] buff = new byte[1024];\n\t\t int read = 0;\n\n\t\t \n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t \n\t\t \n\t\t in.close();\n\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.config);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/config.txt\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.dhistory);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/dhistory.txt\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lessonlibrary);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lessonlibrary.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t \n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_cooking);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_cooking.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_family);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_family.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_house);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_house.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_shape);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_shape.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.templatecatalogue);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/templatecatalogue.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t \n\t\t in.close();\n\t\t \n\t\t out.flush();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t \n\t\tSharedPreferences prefs = getSharedPreferences(\"appData\", MODE_PRIVATE);\n\t\tfinal int lastUserID = prefs.getInt(\"lastUserID\", -1);\n\t\tfinal int firstTime = prefs.getInt(\"firstTime\", -1);\n\t\t\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\t\t\n\t\tDatabaseHandler dbhandler = new DatabaseHandler(this);\n\n\t\tuserDetailOperator = new UserDetailOperations(this);\n\t\t\n\t\t ImageView cloud1 = (ImageView) findViewById(R.id.Splash_Cloud1);\n\t\t ImageView cloud2 = (ImageView) findViewById(R.id.Splash_Cloud2);\n\t\t //ImageView logo = (ImageView) findViewById(R.id.Splash_Logo);\n\t\t TranslateAnimation animation = new TranslateAnimation(0.0f, 100.0f,0.0f, 0.0f);\n\t\t TranslateAnimation animation2 = new TranslateAnimation(0.0f, 100.0f,0.0f, 0.0f);\n\t\t// TranslateAnimation animation3 = new TranslateAnimation(0.0f, 0.0f,0.0f, -400.0f);\n\t\t animation.setDuration(SPLASH_TIME);\n\t\t \n\t\t animation.setRepeatCount(1);\n\t\t //animation.setRepeatMode(2);\n\t\t //animation.setFillAfter(true);\n\t\t animation2.setDuration(SPLASH_TIME+3000);\n\t\t animation2.setRepeatCount(1);\n\t\t //animation2.setRepeatMode(2);\n\t\t// animation2.setFillAfter(true);\n\t\t //animation3.setDuration(SPLASH_TIME);\n\t\t// animation3.setRepeatCount(1);\n\t\t //animation3.setRepeatMode(2);\n\t\t //animation3.setFillAfter(true);\n\t\t cloud1.startAnimation(animation);\n\t\t cloud2.startAnimation(animation2);\n\t\t //logo.startAnimation(animation3);\n\t\t new Handler().postDelayed(new Runnable() {\n\n\t\t public void run() {\n\t\t \tif(firstTime == -1){\t//If app is launched for the first time ever, go to Register Screen\n\t\t \t\tIntent intent = new Intent();\n\t\t \t\tintent.setClass(getApplicationContext(), RegistrationActivityName.class);\n\t\t \t\tstartActivity(intent);\n\n\t\t \t}\n\t\t \telse if(lastUserID == -1){ //If there is no last logged in user, go to Login Screen\n\t\t\t \tIntent intent = new Intent();\n\t\t\t \tintent.setClass(getApplicationContext(), LoginActivity.class);\n\t\t\t \tstartActivity(intent);\t\t\t\n\t\t \t}\n\t\t \telse{\t\t\t\t\t\t//If there is a last logged in user, go to Map Screen\n\t\t \t\tuserDetailOperator.open();\n\t\t \t\tUserDetail user = userDetailOperator.getUserDetail(lastUserID);\n\t\t \t\tuserDetailOperator.close();\n\t\t \t\tIntent intent = new Intent();\n\t\t \t\t\n\t\t \t\tintent.putExtra(\"UserID\", user.getId());\t\t \t\t\n\t\t \t\tif(lastUserID != -1){\n\t\t\t \t\t((SalinlahiFour)getApplication()).setLoggedInUser(user);\n\t\t\t \t\tintent.setClass(getApplicationContext(), MapActivity.class);\n\t\t \t\t}else\n\t\t\t \t\tintent.setClass(getApplicationContext(), RegistrationActivityName.class);\n\t\t \t\t\tstartActivity(intent);\n\t\t \t\t}\n//\t\t MainActivity.this.finish();\n\t\t } \n\n\t\t }, SPLASH_TIME);\n\t\t \n\t}",
"void appendXML(String path, DocumentFragment fragment)\n throws ProcessingException;",
"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 }",
"@Override\n public void run() {\n try {\n //OPML.importFromFile(Environment.getExternalStorageDirectory().toString() + File.separator\n // + fileNames[which]);\n } catch (Exception e) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), R.string.error_feed_import, Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"private void append(String sAppend) throws Exception {\n\n\tString sFilename = null;\n\tFileWriter fw = null;\n\n\ttry {\n\t // Define the filename.\n\t sFilename = getMeasurementsFilename();\n\n\t // Append.\n\t fw = new FileWriter(sFilename, true);\n\t fw.write(sAppend);\n\t fw.close();\n\n\t} catch (Exception e) {\n\n\t // try writing to the /tmp file system.\n\t FileWriter fw2 = null;\n\t try {\n\t\tsFilename = \"/tmp/cqServiceUsage\";\n\t\tfw2 = new FileWriter(sFilename, true);\n\t\tfw2.write(sAppend);\n\t\tfw2.close();\n\t } catch (Exception e2) {\n\t\tthrow (e2);\n\t } finally {\n\t\tfw2 = null;\n\t }\n\t} finally {\n\t fw = null;\n\t}\n }",
"public void createXMLFile() {\n\t int jmax = listOfRules.size();\n\t int j = 0;\n\t try {\n\t try {\n\n\t DocumentBuilderFactory docFactory = DocumentBuilderFactory\n\t .newInstance();\n\t DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t // root elements\n\t Document doc = docBuilder.newDocument();\n\t Element rootElement = doc.createElement(\"profile\");\n\t doc.appendChild(rootElement);\n\t // name\n\t Element name = doc.createElement(\"name\");\n\t name.appendChild(doc.createTextNode(\"Android Lint\"));\n\t rootElement.appendChild(name);\n\t // language\n\t Element language = doc.createElement(\"language\");\n\t language.appendChild(doc.createTextNode(\"Java\"));\n\t rootElement.appendChild(language);\n\t // rules\n\t Element rules = doc.createElement(\"rules\");\n\t rootElement.appendChild(rules);\n\n\t for (j = 0; j < jmax; j++) {\n\t Element rule = doc.createElement(\"rule\");\n\t rules.appendChild(rule);\n\t // repositoryKey\n\t Element repositoryKey = doc.createElement(\"repositoryKey\");\n\t repositoryKey\n\t .appendChild(doc.createTextNode(\"AndroidLint\"));\n\t rule.appendChild(repositoryKey);\n\t // key\n\t Element key = doc.createElement(\"key\");\n\t key.appendChild(doc.createTextNode(listOfRules.get(j)));\n\t rule.appendChild(key);\n\t }\n\n\t // write the content into xml file\n\t TransformerFactory transformerFactory = TransformerFactory\n\t .newInstance();\n\t Transformer transformer = transformerFactory.newTransformer();\n\t DOMSource source = new DOMSource(doc);\n\t StreamResult result = new StreamResult(new File(pathProfileXml+ANDROID_LINT_PROFILE_FILENAME\n\t ));\n\n\t transformer.transform(source, result);\n\n\t System.out.println(\"File \\\"\"+pathProfileXml+ANDROID_LINT_PROFILE_FILENAME+\"\\\" written.\");\n\t System.out.println(\"Quit.\");\n\n\t } catch (ParserConfigurationException pce) {\n\t pce.printStackTrace();\n\t } catch (TransformerException tfe) {\n\t tfe.printStackTrace();\n\t }\n\t } catch (Exception e) {\n\n\t }\n\t }",
"private void writeToFile(String data,Context context) {\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(context.openFileOutput(\"config.txt\", Context.MODE_PRIVATE));\n outputStreamWriter.write(data);\n outputStreamWriter.close();\n }\n catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}",
"@Override\n public void run() {\n try {\n final String filename = Environment.getExternalStorageDirectory().toString() + \"/FeedEx_\"\n + System.currentTimeMillis() + \".opml\";\n\n // OPML.exportToFile(filename);\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), String.format(getString(R.string.message_exported_to), filename),\n Toast.LENGTH_LONG).show();\n }\n });\n } catch (Exception e) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), R.string.error_feed_export, Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"public String[] colorXml(String endPath) {\r\n\t\tString[] color = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\tcolor = colorXml.coloriXml(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\tcolor = null;\r\n\t\t}\r\n\r\n\t\treturn color;\r\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) \r\n\t\t\t{\n\r\n\t\t\t\tAssetManager am = context.getAssets();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInputStream is = am.open(\"syb11.txt\"); \r\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(is));\r\n\t\t\t\t\tString inputLine;\r\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null)\r\n\t\t\t\t\t\tSystem.out.println(inputLine);\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void generateCDAFiles() throws Exception {\n\n String stopwatchStart = new SimpleDateFormat(\"yyyy-MM-dd-HH.mm.ss\").format(new Date());\n\n // file/directory locations for the app\n// String labid_file = getPropValues(\"labid-file\") + ts;\n// String comb_dir = getPropValues(\"combined-xml-dir\") + ts;\n// String mal_dir = getPropValues(\"malformed-xml-dir\") + ts;\n// String cda_dir = getPropValues(\"cda-dir\") + ts;\n\n String labid_file = getPropValues(\"labid-file\");\n String haidisplay_file = getPropValues(\"haidisplay-file\");\n String comb_dir = getPropValues(\"combined-xml-dir\");\n String mal_dir = getPropValues(\"malformed-xml-dir\");\n String cda_dir = getPropValues(\"cda-dir\"); //+ \"/\" + stopwatchStart;\n\n // hai-display must be in the same directory as the final CDAs for them to be displayed properly\n File sourceHai = new File(haidisplay_file);\n File targetHai = new File(cda_dir + \"/hai-display.xsl\");\n FileUtils.copyFile(sourceHai, targetHai);\n\n // create new XML Builder\n XMLBuilder xmlBuilder = new XMLBuilder();\n\n // creates ADT + ORU XML files in src/main/resources/ directory\n xmlBuilder.process();\n\n // get list of combined XML (ADT) files\n File dir = new File(comb_dir);\n File[] files = dir.listFiles();\n\n if (files != null) {\n for (File file : files) {\n // Transform XML files using an XSL file to CDA-like files\n\n //src/main/resources/combinedXML/[id]-source.xml\n String relPath = file.getPath();\n //[id]-source.xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 11);\n // System.out.println(relPath);\n // System.out.println(filename);\n // System.out.println(id);\n\n\n String inputXSL = labid_file;\n String inputXML = relPath;\n String outputLabId = mal_dir + \"/\" + id + \".xml\";\n Transform transform = new Transform();\n\n /**/\n\n /**\n String inputXSL = \"src/main/resources/labid.xsl\";\n String inputXML = \"src/main/resources/combinedXML/2.16.840.1.114222.4.1.646516-source.xml\";\n String outputLabId = \"src/main/resources/malformedCDA/2.16.840.1.114222.4.1.646516.xml\";\n Transform transform = new Transform();\n\n /**/\n\n try {\n transform.transformXML(inputXSL, inputXML, outputLabId);\n } catch (Exception e) {\n System.out.println(\"well... that didn't work...\");\n e.printStackTrace();\n }\n /**/\n\n }\n }\n\n\n //TODO: clean up Silas's CDA-like file\n // get list of malformed CDA files\n File mcdaDir = new File(mal_dir);\n File[] mcdafiles = mcdaDir.listFiles();\n\n int count = 0;\n int badCount = 0;\n List<String> badList = new ArrayList<String>();\n\n if (files != null) {\n for (File file : mcdafiles) {\n\n //src/main/resources/malformedCDA/[id].xml\n String relPath = file.getPath();\n //[id].xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 4);\n System.out.println(relPath);\n System.out.println(filename);\n System.out.println(id);\n\n FileReader reader = null;\n String content = \"\";\n try {\n reader = new FileReader(file);\n char[] chars = new char[(int) file.length()];\n try {\n reader.read(chars);\n } catch (IOException e) {\n e.printStackTrace();\n }\n content = new String(chars);\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // System.out.println(content);\n\n\n int cdaRootIndex = content.indexOf(\"<ClinicalDocument\");\n if (cdaRootIndex < 1) {\n System.out.println(\"no clinical document tag found in malformed CDA with id: \" + id);\n badCount++;\n badList.add(id);\n continue;\n } else {\n String clinicalDoc = content.substring(cdaRootIndex);\n\n\n //System.out.println(clinicalDoc);\n String cleanTop = replace(clinicalDoc, \"<ClinicalDocument\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"hai-display.xsl\\\"?>\\n<ClinicalDocument\");\n String cleanCDA = replace(cleanTop, \"</root>\", \"\");\n //System.out.println(cleanCDA);\n String now = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n try {\n FileUtils.writeStringToFile(new File(cda_dir + \"/\" + id + \"--\" + now + \".xml\"), cleanCDA);\n System.out.println(\"wrote to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n count++;\n } catch (IOException e) {\n System.out.println(\"problem writing to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n e.printStackTrace();\n }\n }\n\n }\n\n System.out.println(\"# CDA Files created: \" + count);\n System.out.println(\"# bad malformed CDAs: \" + badCount);\n for(String id: badList) {\n System.out.println(\"bad id:\" + id);\n }\n }\n }",
"public void printXmlPath(StackTraceElement l) throws IOException {\n\t\t String packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t String classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t String xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t\t fileWriterPrinter(\" XML Path: \" + xml);\n\t\t\t// Renew XML record:\n\t\t\t fileCleaner(\"xml.path\");\n\t\t\t fileWriter( \"xml.path\", xml);\n\t\t\t// Renew Stack Trace Element record:\n\t\t\t fileCleaner(\"stack.trace\");\n\t\t\t fileWriter( \"stack.trace\", l);\n\t\t\t// Append a New Log record:\n\t\t\t if (fileExist(\"run.log\", false)) { fileWriter(\"run.log\", \" XML Path: \" + xml); } \n\t\t}",
"XMLOut(String LegendFile, String start)\n\t\t{\n\t\t\tFileOutputStream fileStream = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfileStream = new FileOutputStream(LegendFile);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLOut(): \" + e);\n\t\t\t}\n\t\t\tXMLStream = new PrintStream(fileStream);\n\t\t\tstack = new String[top];\n\t\t\tsp = 0;\n\t\t\tpush(start);\n\t\t}",
"public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }",
"void file(Context context) {\n context.getFilesDir();\n File file = new File(context.getFilesDir() + \"/Comments.xml\");\n System.out.println(context.getFilesDir());\n if (!file.exists())\n {\n XmlSerializer serializer = Xml.newSerializer();\n StringWriter writer = new StringWriter();\n try {\n serializer.setOutput(writer);\n serializer.startDocument(\"UTF-8\", true);\n serializer.startTag(\"\", \"lista\");\n serializer.text(\"\");\n serializer.endTag(\"\", \"lista\");\n serializer.endDocument();\n String result = writer.toString();\n\n FileOutputStream fos = context.openFileOutput(\"Comments.xml\", Context.MODE_PRIVATE);\n fos.write(result.getBytes(), 0, result.getBytes().length);\n fos.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void m14909a(Bitmap bitmap, String str, String str2) throws IOException {\n StringBuilder sb = new StringBuilder();\n sb.append(\"bitmapsaveBitmap: path--\");\n sb.append(str);\n sb.append(\"--fileName--\");\n sb.append(str2);\n Log.i(\"ruomiz\", sb.toString());\n FileOutputStream fileOutputStream = new FileOutputStream(new File(str, str2));\n bitmap.compress(CompressFormat.JPEG, 100, fileOutputStream);\n fileOutputStream.flush();\n fileOutputStream.close();\n }",
"void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}",
"private void outputExtraFile(String datasetName, Field[] selects,\r\n\t\t\tString fileName) {\r\n\t\tFile f = new File(fileName + \".xml\");\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(f);\r\n\t\t\tSystem.out.println (\"Encoding\"+fw.getEncoding());\r\n\t\t\tString str = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\r\n\t\t\tfw.write(str);\r\n\t\t\tstr = \"<Extra><Datasets><Dataset><id>\" + datasetName\r\n\t\t\t\t\t+ \"</id><Fields>\";\r\n\t\t\tfw.write(str);\r\n\t\t\tfor (int i = 0; i < selects.length; i++) {\r\n\t\t\t\tfw.write(\"<Field>\");\r\n\t\t\t\t// Output the Label of Field.\r\n\t\t\t\tstr = \"<label>\" + selects[i].label.getBytes(\"UTF-8\") + \"</label>\";\r\n\t\t\t\tfw.write(str);\r\n\t\t\t\t// Output the ID of Field.\r\n\t\t\t\tstr = \"<name>field\" + (i + 1) + \"</name>\";\r\n\t\t\t\tfw.write(str);\r\n\t\t\t\tfw.write(\"</Field>\");\r\n\t\t\t}\r\n\t\t\tstr = \"</Fields></Dataset></Datasets></Extra>\";\r\n\t\t\tfw.write(str);\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t\t/* Output the Log */\r\n\t\t\tSystem.out.println(\"CARA LOG: Generate Extra \" + fileName\r\n\t\t\t\t\t+ \" successfully.\");\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test\r\n public void oneMoreTest() {\n ConfigureAppender.configureFileAppender(\"oneMoreTest\");\r\n LOG.info(\"Other test\");\r\n LOG.debug(\"Checking the configuration of the file appender\");\r\n\r\n byte[] biteArray;\r\n try {\r\n// biteArray = FileUtils.readFileToByteArray(new File(System.getProperty(\"user.dir\") + \"/Log4j/oneMoreTest1.log\"));\r\n biteArray = FileUtils.readFileToByteArray(new File(System.getProperty(\"user.dir\") + \"/Log4j/oneMoreTest.log\"));\r\n } catch (IOException ex){\r\n biteArray = null;\r\n }\r\n Allure.getLifecycle().addAttachment(\"Other Test logs\", \"text/plain\", \"log\", biteArray);\r\n }",
"public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}",
"public void write_as_xml ( File series_file, Reconstruct r ) {\n try {\n String new_path_name = series_file.getParentFile().getCanonicalPath();\n String ser_file_name = series_file.getName();\n String new_file_name = ser_file_name.substring(0,ser_file_name.length()-4) + file_name.substring(file_name.lastIndexOf(\".\"),file_name.length());\n // At this point, there should be no more exceptions, so change the actual member data for this object\n this.path_name = new_path_name;\n this.file_name = new_file_name;\n priority_println ( 100, \" Writing to Section file \" + this.path_name + \" / \" + this.file_name );\n\n File section_file = new File ( this.path_name + File.separator + this.file_name );\n\n PrintStream sf = new PrintStream ( section_file );\n sf.print ( \"<?xml version=\\\"1.0\\\"?>\\n\" );\n sf.print ( \"<!DOCTYPE Section SYSTEM \\\"section.dtd\\\">\\n\\n\" );\n\n if (this.section_doc != null) {\n Element section_element = this.section_doc.getDocumentElement();\n if ( section_element.getNodeName().equalsIgnoreCase ( \"Section\" ) ) {\n int seca = 0;\n sf.print ( \"<\" + section_element.getNodeName() );\n // Write section attributes in line\n for ( /*int seca=0 */; seca<section_attr_names.length; seca++) {\n sf.print ( \" \" + section_attr_names[seca] + \"=\\\"\" + section_element.getAttribute(section_attr_names[seca]) + \"\\\"\" );\n }\n sf.print ( \">\\n\" );\n\n // Handle the child nodes\n if (section_element.hasChildNodes()) {\n NodeList child_nodes = section_element.getChildNodes();\n for (int cn=0; cn<child_nodes.getLength(); cn++) {\n Node child = child_nodes.item(cn);\n if (child.getNodeName().equalsIgnoreCase ( \"Transform\")) {\n Element transform_element = (Element)child;\n int tfa = 0;\n sf.print ( \"<\" + child.getNodeName() );\n for ( /*int tfa=0 */; tfa<transform_attr_names.length; tfa++) {\n sf.print ( \" \" + transform_attr_names[tfa] + \"=\\\"\" + transform_element.getAttribute(transform_attr_names[tfa]) + \"\\\"\" );\n if (transform_attr_names[tfa].equals(\"dim\") || transform_attr_names[tfa].equals(\"xcoef\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \">\\n\" );\n if (transform_element.hasChildNodes()) {\n NodeList transform_child_nodes = transform_element.getChildNodes();\n for (int gcn=0; gcn<transform_child_nodes.getLength(); gcn++) {\n Node grandchild = transform_child_nodes.item(gcn);\n if (grandchild.getNodeName().equalsIgnoreCase ( \"Image\")) {\n Element image_element = (Element)grandchild;\n int ia = 0;\n sf.print ( \"<\" + image_element.getNodeName() );\n for ( /*int ia=0 */; ia<image_attr_names.length; ia++) {\n sf.print ( \" \" + image_attr_names[ia] + \"=\\\"\" + image_element.getAttribute(image_attr_names[ia]) + \"\\\"\" );\n if (image_attr_names[ia].equals(\"blue\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \" />\\n\" );\n } else if (grandchild.getNodeName().equalsIgnoreCase ( \"Contour\")) {\n Element contour_element = (Element)grandchild;\n int ca = 0;\n sf.print ( \"<\" + contour_element.getNodeName() );\n for ( /*int ca=0 */; ca<contour_attr_names.length; ca++) {\n // System.out.println ( \"Writing \" + contour_attr_names[ca] );\n if (contour_attr_names[ca].equals(\"points\")) {\n // Check to see if this contour element has been modified\n boolean modified = false; // This isn't being used, but should be!!\n ContourClass matching_contour = null;\n for (int cci=0; cci<contours.size(); cci++) {\n ContourClass contour = contours.get(cci);\n if (contour.contour_element == contour_element) {\n matching_contour = contour;\n break;\n }\n }\n if (matching_contour == null) {\n // Write out the data from the original XML\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", true) + \"\\\"\" );\n } else {\n // Write out the data from the stroke points\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(matching_contour.stroke_points,\"\\t\", true) + \"\\\"\" );\n }\n } else if (contour_attr_names[ca].equals(\"handles\")) {\n if (r.export_handles) {\n String handles_str = contour_element.getAttribute(contour_attr_names[ca]);\n if (handles_str != null) {\n handles_str = handles_str.trim();\n if (handles_str.length() > 0) {\n // System.out.println ( \"Writing a handles attribute = \" + contour_element.getAttribute(contour_attr_names[ca]) );\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", false) + \"\\\"\\n\" );\n }\n }\n }\n } else if (contour_attr_names[ca].equals(\"type\")) {\n if (r.export_handles) {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n } else {\n // Don't output the \"type\" attribute if not exporting handles (this makes the traces non-bezier)\n }\n } else {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n if (contour_attr_names[ca].equals(\"mode\")) {\n sf.print ( \"\\n\" );\n }\n }\n }\n sf.print ( \"/>\\n\" );\n }\n }\n }\n sf.print ( \"</\" + child.getNodeName() + \">\\n\\n\" );\n }\n }\n }\n\n // Also write out any new contours created by drawing\n\n for (int i=0; i<contours.size(); i++) {\n ContourClass contour = contours.get(i);\n ArrayList<double[]> s = contour.stroke_points;\n ArrayList<double[][]> h = contour.handle_points;\n if (s.size() > 0) {\n if (contour.modified) {\n if (contour.contour_name == null) {\n contour.contour_name = \"RGB_\";\n if (contour.r > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.g > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.b > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n }\n sf.print ( \"<Transform dim=\\\"0\\\"\\n\" );\n sf.print ( \" xcoef=\\\" 0 1 0 0 0 0\\\"\\n\" );\n sf.print ( \" ycoef=\\\" 0 0 1 0 0 0\\\">\\n\" );\n String contour_color = \"\\\"\" + contour.r + \" \" + contour.g + \" \" + contour.b + \"\\\"\";\n sf.print ( \"<Contour name=\\\"\" + contour.contour_name + \"\\\" \" );\n if (contour.is_bezier) {\n sf.print ( \"type=\\\"bezier\\\" \" );\n } else {\n // sf.print ( \"type=\\\"line\\\" \" );\n }\n sf.print ( \"hidden=\\\"false\\\" closed=\\\"true\\\" simplified=\\\"false\\\" border=\" + contour_color + \" fill=\" + contour_color + \" mode=\\\"13\\\"\\n\" );\n\n if (contour.is_bezier) {\n if (h.size() > 0) {\n sf.print ( \" handles=\\\"\" );\n System.out.println ( \"Saving handles inside Section.write_as_xml\" );\n for (int j=h.size()-1; j>=0; j+=-1) {\n // for (int j=0; j<h.size(); j++) {\n double p[][] = h.get(j);\n if (j != 0) {\n sf.print ( \" \" );\n }\n System.out.println ( \" \" + p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] );\n sf.print ( p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] + \",\\n\" );\n }\n sf.print ( \" \\\"\\n\" );\n }\n }\n\n sf.print ( \" points=\\\"\" );\n for (int j=s.size()-1; j>=0; j+=-1) {\n double p[] = s.get(j);\n if (j != s.size()-1) {\n sf.print ( \" \" );\n }\n sf.print ( p[0] + \" \" + p[1] + \",\\n\" );\n }\n sf.print ( \" \\\"/>\\n\" );\n sf.print ( \"</Transform>\\n\\n\" );\n }\n }\n }\n\n sf.print ( \"</\" + section_element.getNodeName() + \">\" );\n }\n }\n sf.close();\n\n } catch (Exception e) {\n }\n }",
"public void writeFile(Context context){\n Writer writer = null;\n\n try {\n OutputStream out = context.openFileOutput(filename, Context.MODE_PRIVATE);\n writer = new OutputStreamWriter(out);\n writer.write(userName + \"~\" + color + \"~\" + level);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n\n } catch (IOException e) {\n e.printStackTrace();\n\n } finally {\n if (writer != null) {\n try {\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }",
"public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"private void loadData(String fileName, String cobrandPath)\n throws ParserConfigurationException, SAXException, IOException {\n\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(cobrandPath);\n\n Element root = doc.getDocumentElement();\n\n Element updateElement = doc.createElement(IConstants.IMAGE_FILE);\n Node updateText = doc.createTextNode(fileName);\n\n updateElement.appendChild(updateText);\n root.appendChild(updateElement);\n\n try {\n\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new FileOutputStream(\n cobrandPath));\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer transformer = transFactory.newTransformer();\n\n transformer.transform(source, result);\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private void writeToFile(String data, Context context) throws FileNotFoundException\r\n{\n if (fileExists(this, \"todolist.txt\"))\r\n {\r\n\r\n FileOutputStream fOut = openFileOutput(\"todolist.txt\", MODE_APPEND);\r\n OutputStreamWriter osw = new OutputStreamWriter(fOut);\r\n try {\r\n osw.write(\"\\n\");\r\n osw.write(data);\r\n osw.flush();\r\n osw.close();\r\n } catch (IOException e) {\r\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\r\n }\r\n }\r\n // otherwise make the file\r\n else\r\n {\r\n FileOutputStream fos = null;\r\n\r\n fos = openFileOutput(\"todolist.txt\", MODE_PRIVATE);\r\n try {\r\n fos.write(data.getBytes());\r\n // Toast.makeText(this, getFilesDir() + \"/\" + \"todolist.txt\", Toast.LENGTH_LONG).show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n if (fos != null) {\r\n try {\r\n fos.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n}\r\n}",
"public void run() {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(\"<files>\");\n\t\t\t\tsb.append(\"<file>\");\n\t\t\t\tsb.append(\"<username>\");\n\t\t\t\tsb.append(e1);\n\t\t\t\tsb.append(\"</username>\");\n\t\t\t\t\n\t\t\t\tsb.append(\"<password>\");\n\t\t\t\tsb.append(e2);\n\t\t\t\tsb.append(\"</password>\");\n\t\t\t\t\n\t\t\t\tsb.append(\"<email>\");\n\t\t\t\tsb.append(e4);\n\t\t\t\tsb.append(\"</email>\");\n\t\t\t\tsb.append(\"<name>\");\n\t\t\t\tsb.append(e5);\n\t\t\t\tsb.append(\"</name>\");\n\t\t\t\t\n\t\t\t\tsb.append(\"<sex>\");\n\t\t\t\tsb.append(i);\n\t\t\t\tsb.append(\"</sex>\");\n\t\t\t\tsb.append(\"<phone>\");\n\t\t\t\tsb.append(e6);\n\t\t\t\tsb.append(\"</phone>\");\n\t\t\t\tsb.append(\"<headname>\");\n\t\t\t\tsb.append(url);\n\t\t\t\tsb.append(\"</headname>\");\n\t\t\t\tsb.append(\"<head>\");\n\t\t\t\tByteArrayOutputStream bo = new ByteArrayOutputStream();\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tFileInputStream f = new FileInputStream(\"/sdcard/\"+url);\n\t\t\t\tbyte []image = new byte [1024];\n\t\t\t\tint len = 0;\n\t\t\t\twhile ((len=f.read(image))!=-1){\n\t\t\t\t\tbo.write(image, 0, len);\n\t\t\t\t}\n\t\t\t\tbyte re[] = bo.toByteArray();\n\t\t\t\tString encond = Base64.encodeToString(re, Base64.DEFAULT);\n\t\t\t\n\t\t\t\tbo.close();\n\t\t\t\tf.close();\n\t\t\t\tsb.append(encond);\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\n\t\t\t\tsb.append(\"</head>\");\n\t\t\t\tsb.append(\"<job>\");\n\t\t\t\tsb.append(e8);\n\t\t\t\tsb.append(\"</job>\");\n\t\t\t\tsb.append(\"<address>\");\n\t\t\t\tsb.append(e9);\n\t\t\t\tsb.append(\"</address>\");\n\t\t\t\tsb.append(\"<circle>\");\n\t\t\t\tsb.append(e10);\n\t\t\t\tsb.append(\"</circle>\");\n\t\t\t\tsb.append(\"<guanzhu>\");\n\t\t\t\tsb.append(n1+\"\"+n2+\"\"+n3);\n\t\t\t\tsb.append(\"</guanzhu>\");\n\t\t\t\tsb.append(\"</file>\");\n\t\t\t\tsb.append(\"</files>\");\n\t\t\t\tbyte content[] = sb.toString().getBytes();\n\t\t\t\ttry {\n\t\t\t\t\tURL u = new URL(\"http://10.0.2.2:8080/Lvyou/LYRegisterServlet\");\n\t\t\t\t\tHttpURLConnection huc = (HttpURLConnection) u.openConnection();\n\t\t\t\t\thuc.setDoInput(true);\n\t\t\t\t\thuc.setDoOutput(true);\n\t\t\t\t\thuc.setRequestMethod(\"POST\");\n\t\t\t\t\thuc.setRequestProperty(\"Content-Type\", \"mutipart/form-data\");\n\t\t\t\t\thuc.setRequestProperty(\"Content-Length\", content.length+\"\");\n\t\t\t\t\thuc.getOutputStream().write(content);\n\t\t\t\t\tString str = \"\";\n\t\t\t\t\tif(huc.getResponseCode()==HttpURLConnection.HTTP_OK){\n\t\t\t\t\t\tInputStream in =huc.getInputStream();\n\t\t\t\t\n\t\t\t\t\t\tLYRegisterBean rb = new LYRegisterBean();\n\t\t\t\t\t\tString reg=rb.register(in);\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.obj=reg;\n\t\t\t\t\t\thb.sendMessage(msg);\n\n\n\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 }\n\t\t\t\t\t \n\t\t\t\tpd.cancel();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tString fileName = \"TEST.txt\";\n\t\t\t\tString message = \"FFFFFFF11111FFFFF\";\n\t\t\t\twriteFileData(fileName, message);\n//\t\t\t\tToast.makeText(FileActivity.this, \"here\", Toast.LENGTH_SHORT)\n//\t\t\t\t\t\t.show();\n\t\t\t\tgetData(currentPath);\n\t\t\t}",
"private static void appendToTraceFile(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\t\t\t\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(new FileOutputStream(fileName,true));\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}",
"private void logToFile() {\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if ((requestCode == request_code) && (resultCode == RESULT_OK)){\n Toast.makeText(getApplicationContext(),data.getDataString(),Toast.LENGTH_LONG).show();\n elemento = new File(data.getDataString());\n }\n }",
"public void showOriginal()\n {\n try\n {\n String strLine,fileName;\n fileName = getFileName();\n File myFile = new File(MutationSystem.ORIGINAL_PATH,fileName);\n String blank_str;\n LineNumberReader lReader = new LineNumberReader(new FileReader(myFile));\n\n Document ddoc = originalTP.getDocument();\n\n while ((strLine=lReader.readLine()) != null)\n {\n \t blank_str = \"\";\n \t int del = (new Integer(lReader.getLineNumber())).toString().length();\n \t for (int k=0; k<5-del; k++)\n \t {\n \t blank_str=blank_str+\" \";\n }\n \t ddoc.insertString (ddoc.getLength(), lReader.getLineNumber()+blank_str, blue_attr);\n \t ddoc.insertString (ddoc.getLength(), strLine+\"\\n\", black_attr);\n }\n lReader.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n System.err.println(\" [error] \" + e);\n }\n }",
"public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println(\"Linea \" + i);\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\t// Nuevamente aprovechamos el finally para\n\t\t\t\t// asegurarnos que se cierra el fichero.\n\t\t\t\tif (null != fichero) fichero.close();\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static String addAssetInfo(Context context){\n\n p.setAssets(p.getAssets()-1);\n if(fullGame)DBHandler.setAssets(p.getAssets());\n\n String info =\"\";\n Random r = new Random();\n int reference = r.nextInt(f.getNumComp());\n info+= context.getString(R.string.InfoUser)+\"9001: \"; //\"USER 9001: \";\n\n info+=context.getString(R.string.Info1, f.getName(reference));\n\n if(f.isScam(reference)) {\n info += context.getString(R.string.InfoIlligalPos);\n if (Infos.contains(info)) return addCertainInfo(context, reference, 9001);\n if (MainActivity.Infos.contains(context.getString(R.string.noInfo)))\n MainActivity.Infos.remove(context.getString(R.string.noInfo));\n MainActivity.Infos.add(info);\n return info;\n }\n\n double a = f.getAvg(reference)/f.getCap(reference) - 1.0;\n if(a>0) {\n info+=context.getString(R.string.InfoShareUp);\n } else {\n info+=context.getString(R.string.InfoShareDown);\n }\n if (MainActivity.Infos.contains(context.getString(R.string.noInfo))) MainActivity.Infos.remove(context.getString(R.string.noInfo));\n\n if(!MainActivity.Infos.contains(info)){\n MainActivity.Infos.add(info);\n return info;\n } else {\n return addAssetInfo(context); //If the info is already given, get new info instead (recursive call)\n }\n }",
"public String getResPath()\n/* */ {\n/* 138 */ return this.resPath;\n/* */ }",
"private void CreateNewFile() {\n\tcheckState();\n\t\n\tif (CanR=CanW=true)\n\t{\n\t\t\n\t\ttry {\n\t\t root = Environment.getExternalStorageDirectory();\n\t\t \n\t\t if (root.canWrite()){\n\t\t gpxfile = new File(root, \"Speed_SD.csv\");\n\t\t gpxwriter = new FileWriter(gpxfile,true);\n\t\t out = new BufferedWriter(gpxwriter);\nout.append(\"\"+\",\"+\"\"+\",\"+\"\");\n\t\t out.newLine();\n\t\t }\n\t\t} catch (IOException e) {\n\t\t //Log.e(, \"Could not write file \" + e.getMessage());\ne.printStackTrace();\n\t\t\n\t}\n\t\t\n}\n\t\t}",
"private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }",
"public void create_registerFile(String name,String roll){\n try{\n outputStreamWriter=new OutputStreamWriter(context.openFileOutput(Constant.REGISTER_FILE,Context.MODE_PRIVATE));\n outputStreamWriter.write(name+\",\");\n outputStreamWriter.write(roll+\",\");\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }",
"@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}",
"public void createLogFile() {\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tLog.e(\"SD CARD WRITE ERROR : \", \"SD CARD mounted and writable? \"\n\t\t\t\t\t+ root.canWrite());\n\t\t\tif (root.canWrite()) {\n\t\t\t\tFile gpxfile = new File(root, \"ReadConfigLog.txt\");\n\t\t\t\tFileWriter gpxwriter = new FileWriter(gpxfile);\n\t\t\t\tout = new BufferedWriter(gpxwriter);\n\t\t\t\tout.write(\"Hello world\");\n\t\t\t\t// out.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"SD CARD READ ERROR : \", \"Problem reading SD CARD\");\n\t\t\tLog.e(\"SD CARD LOG ERROR : \", \"Please take logs using Logcat\");\n\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\"Could not write file \" + e.getMessage());\n\t\t}\n\t}",
"@Override\n public void onFinish() {\n String filename = \"requesttemp.txt\";\n String string = Double.toString((totalChangeFarenheit-32)*5/9);\n FileOutputStream outputStream;\n\n try {\n FileOutputStream fos = openFileOutput(filename,\n Context.MODE_APPEND | Context.MODE_WORLD_READABLE);\n fos.write(string.getBytes());\n fos.close();\n\n String storageState = Environment.getExternalStorageState();\n if (storageState.equals(Environment.MEDIA_MOUNTED)) {\n File file = new File(getExternalFilesDir(null),\n filename);\n FileOutputStream fos2 = new FileOutputStream(file);\n fos2.write(string.getBytes());\n fos2.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try\n {\n InputStream instream = openFileInput(filename);\n if (instream != null)\n {\n InputStreamReader inputreader = new InputStreamReader(instream);\n BufferedReader buffreader = new BufferedReader(inputreader);\n String line;\n String line1=\"\";\n try\n {\n while ((line = buffreader.readLine()) != null)\n line1+=line;\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), line1, Toast.LENGTH_SHORT).show();\n }\n }\n catch (Exception e)\n {\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_SHORT).show();\n }\n\n // Send a toast\n// Toast.makeText(getApplicationContext(), \"Done\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n //显示结果的TextView\n final TextView info=(TextView)findViewById(R.id.info);\n \n //获取资源管理的实例\n\t\tfinal Resources resources=getResources();\n \n //原始文件操作\n Button raw=(Button)findViewById(R.id.rawBtn);\n raw.setOnClickListener(new OnClickListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tInputStream input=null;\n\t\t\t\tinput=resources.openRawResource(R.raw.test); //获取指定资源文件的输入流对象\n\t\t\t\ttry { \n\t\t\t\t\t//读取文件内容,操作类似于FileInputStream\n\t\t\t\t\tbyte[] reader=new byte[input.available()]; //必须用try块包围\n\t\t\t\t\tString out=\"\";\n\t\t\t\t\twhile (input.read(reader)!=-1){\n\t\t\t\t\t\tout+=new String(reader,\"GBK\");\n\t\t\t\t\t\t//第二个参数为编码,必须与raw文件的属性中的编码相符,否则乱码\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//显示文件内容\n\t\t\t\t\tinfo.setText(out);\n\t\t\t\t\t\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{ //关闭输入流对象\n\t\t\t\t\tif (input!=null){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput.close(); //必须用try块包围\n\t\t\t\t\t\t} catch (IOException 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}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n //xml文件操作\n Button xml=(Button)findViewById(R.id.xmlBtn);\n xml.setOnClickListener(new OnClickListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//获取XML解析器\n\t\t\t\tXmlPullParser parser=resources.getXml(R.xml.people);\n\t\t\t\t\n\t\t\t\tString msg=\"\"; //显示字符串\n\t\t\t\tString people=null; //People节点名字\n\t\t\t\t//元素的属性值\n\t\t\t\tString name=null; \n\t\t\t\tString age=null;\n\t\t\t\tString height=null;\n\t\t\t\t// 从xml文件分析出的元素的名称和值\n\t\t\t\tString attrName;\n\t\t\t\tString attrValue;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tint result=parser.next(); //读取一个节点\n\t\t\t\t\t\n\t\t\t\t\twhile (result!=XmlPullParser.END_DOCUMENT){ //一直扫描到文件末尾\n\t\t\t\t\t\t\n\t\t\t\t\t\tpeople=parser.getName(); //获取当前节点的名字\n\t\t\t\t\t\t\n\t\t\t\t\t\t//处理一个元素----一行,\n\t\t\t\t\t\t//START_TAG, 开始处理一行时解析如下内容,\n\t\t\t\t\t\tif (people!=null && \tpeople.equals(\"person\") && \n\t\t\t\t\t\t\t\tresult==XmlPullParser.START_TAG){ //如果此处不加上限制条件,则解析完一行时也会触发该事件\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count=parser.getAttributeCount(); //获取属性个数\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i=0; i<count; i++){ //按序号获取当前节点的每个属性值\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//取出当前节点的名字和值\n\t\t\t\t\t\t\t\tattrName=parser.getAttributeName(i);\n\t\t\t\t\t\t\t\tattrValue=parser.getAttributeValue(i);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//获取属性值-->不同的属性值赋值给不同的变量\n\t\t\t\t\t\t\t\tif ((attrName!=null) && attrName.equals(\"name\"))\n\t\t\t\t\t\t\t\t\tname=attrValue;\n\t\t\t\t\t\t\t\telse if ((attrName!=null) && attrName.equals(\"age\"))\n\t\t\t\t\t\t\t\t\tage=attrValue;\n\t\t\t\t\t\t\t\telse if ((attrName!=null) && attrName.equals(\"height\"))\n\t\t\t\t\t\t\t\t\theight=attrValue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//形成要显示的字符串\n\t\t\t\t\t\t\tmsg+=\"姓名: \"+name+\", 年龄: \"+age+\", 身高: \"+height+\"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresult=parser.next();\n\t\t\t\t\t}\n\t\t\t\t} catch (XmlPullParserException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//显示内容\n\t\t\t\tinfo.setText(msg);\n\t\t\t}\n\t\t});\n }",
"private void doClickOnButton() {\n EditText et = (EditText) findViewById(R.id.editText);\n String url = et.getText().toString();\n MessageDigest mdEnc = null;\n try{\n mdEnc = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n mdEnc.update(url.getBytes(), 0, url.length());\n String md5 = new BigInteger(1, mdEnc.digest()).toString(16);\n System.out.println(md5);\n\n try {\n Log.v(\"log1\", \"log1\");\n URL u = new URL(url);\n final URLConnection c = u.openConnection();\n File internal = getFilesDir();\n String test = internal.toString();\n Button b = (Button) findViewById(R.id.button);\n b.setText(test);\n final File f = new File(internal, md5);\n if (f.exists()){\n Log.v(\"log2\", \"log2\");\n FileInputStream is = new FileInputStream(f);\n\n InputStreamReader isr = new InputStreamReader(is);\n\n BufferedReader br = new BufferedReader(isr);\n\n\n StringBuilder sb = new StringBuilder();\n String line;\n while( (line = br.readLine()) != null) {\n sb.append(line);\n }\n String fileString = sb.toString();\n\n Log.v(\"log72\", \"log2\");\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(sb.toString(), \"crash\");\n t.setText(Html.fromHtml(fileString));\n }\n else{\n Log.v(\"log3\", \"log3\");\n //Créer le fichier\n f.createNewFile();\n Log.v(\"log7\", \"log7\");\n //récupérer les données de la page via serveur\n //du coup Thread\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n Log.v(\"log4\", \"log4\");\n BufferedReader br = null;\n try {\n Log.v(\"log5\", \"log5\");\n InputStream is = c.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n br = new BufferedReader(isr);\n final StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null){\n Log.v(\"log125\", \"log1\");\n sb.append(line);\n line = br.readLine();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // System.out.println(finalInputLine);\n FileOutputStream fos = null;\n try {\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(\"crash\", sb.toString());\n t.setText(Html.fromHtml(sb.toString()));\n Log.v(\"log123\", \"log1\");\n fos = new FileOutputStream(f);\n OutputStreamWriter fosw = new OutputStreamWriter(fos);\n BufferedWriter wr = new BufferedWriter(fosw);\n wr.write(sb.toString());\n Log.v(\"log12\", \"log1\");\n\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n\n }\n catch (IOException e) {\n Log.v(\"log6\", \"log6\");\n e.printStackTrace();\n }\n\n\n };\n });\n t.start();\n //paf on récupère\n //poof on met ça dans un fichier\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void zapisz() {\n String nazwaPliku = \"Zadania\";\n FileOutputStream out;\n PrintWriter o = null;\n pobierz();\n\n try {\n out = openFileOutput(nazwaPliku, Context.MODE_APPEND);\n o = new PrintWriter(out);\n pobierz();\n o = zadanie.zapisz(o);\n\n\n Context context = getApplicationContext();\n CharSequence text = \"Zapisano\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n finally {\n o.close();\n }\n\n\n }",
"private void recordLocationData() \r\n\t{\r\n\t\tif(loadedImage!=null)\r\n\t\t{\r\n\t\t\tString image = BitMapToString(loadedImage);\r\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < image.length(); i++) \r\n\t\t\t{\r\n\t\t\t\tif (image.charAt(i) != '\\n' && image.charAt(i) != '\\r') \r\n\t\t\t\t{\r\n\t\t\t\t\tstringBuffer.append(image.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalimage = stringBuffer.toString();\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfinalimage = \"dummystring\";\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\t\r\n\t\tLog.v(\"ADD finaloutput: \", finaloutput);\r\n\t}",
"public String toStringFile(){\n return null;\n }",
"public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); i++){\n outputStream.write((int)paintStack.get(i).getStrokeWidth()); //One byte is enough, max if 50\n outputStream.write(paintStack.get(i).getAlpha());\n //Red, Green, Blue\n outputStream.write((paintStack.get(i).getColor() & 0xFF0000) >> (4*4));\n outputStream.write((paintStack.get(i).getColor() & 0xFF00) >> (2*4));\n outputStream.write(paintStack.get(i).getColor() & 0xFF);\n\n outputStream.write(NEXT_LINE);\n for(int j = 0; j < pathPointsStack.get(i).size(); j+=2){\n //First point - have to save points byte at a time.\n outputStream.write(pathPointsStack.get(i).get(j) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j));\n //Second point\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j+1));\n if(j+2 == pathPointsStack.get(i).size()){\n outputStream.write(NEXT_PATH);\n }\n else{\n outputStream.write(NEXT_LINE);\n }\n }\n }\n outputStream.write(END_OF_PATHS);\n outputStream.close();\n } catch (Exception e) {\n Toast.makeText(getContext(), \"Error saving the file\", Toast.LENGTH_SHORT).show();\n }\n }",
"void appendFullnamePosition(StringBuilder sb, SourceFile file, int lineNbr)\n\t{\n\t\tString name = file.getFullPath();\n\t\tif (name.startsWith(\"file:/\")) //$NON-NLS-1$\n\t\t\tname = name.substring(6);\n\n\t\t// Ctrl-Z Ctrl-Z\n\t\tsb.append('\\u001a');\n\t\tsb.append('\\u001a');\n\n\t\tsb.append(name);\n\t\tsb.append(':');\n\t\tsb.append(lineNbr);\n\t\tsb.append(':');\n\t\tsb.append('0');\n\t\tsb.append(':');\n\t\tsb.append(\"beg\"); //$NON-NLS-1$\n\t\tsb.append(':');\n\t\tsb.append('0');\n\t}",
"public void testRead() throws Exception\n {//��װ����\n InputStream inputStream=getInstrumentation().getTargetContext().getAssets().open(\"new_file.xml\");\n\n\n Log.v(\"abcd\", \"\"+inputStream);\n List<Person> personsList = ReadXmlByPullService.ReadXmlByPull(inputStream);\n Log.v(\"abcd\", personsList.get(0).getName());\n\n for (Iterator iterator = personsList.iterator(); iterator.hasNext();) {\n Person person = (Person) iterator.next();\n Log.v(PERSONSTRING, person.toString());\n }\n\n }",
"@Override\n public void onClick(View arg0) {\n\n File f=new File(e1.getText().toString());\n\n String s=\"\";\n StringBuilder sb=new StringBuilder();\n FileReader fr = null;\n try {\n fr = new FileReader(f);\n\n } catch (FileNotFoundException e) {\n\n//\tTODO Auto-generated catch block\n\n e.printStackTrace();\n }\n BufferedReader br=new BufferedReader(fr);\n try {\n while((s=br.readLine())!=null)\n {\n sb.append(s+\"\\n\");\n }\n } catch (IOException e) {\n\n// TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n Toast.makeText(getApplicationContext(), \"File ReadSuccessfully\", Toast.LENGTH_LONG).show();\n e2.setText(sb);\n }",
"public static void d(java.lang.String r5) {\n /*\n r1 = 0\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n java.io.File r2 = android.os.Environment.getExternalStorageDirectory()\n java.lang.StringBuilder r0 = r0.append(r2)\n java.lang.String r2 = \"/google.txt\"\n java.lang.StringBuilder r0 = r0.append(r2)\n java.lang.String r2 = r0.toString()\n java.io.FileWriter r0 = new java.io.FileWriter // Catch:{ Throwable -> 0x0040, all -> 0x004a }\n r3 = 1\n r0.<init>(r2, r3) // Catch:{ Throwable -> 0x0040, all -> 0x004a }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n r1.<init>() // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n java.lang.StringBuilder r1 = r1.append(r5) // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n java.lang.String r2 = \"\\r\\n\"\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n java.lang.String r1 = r1.toString() // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n r0.write(r1) // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n r0.flush() // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n r0.close() // Catch:{ Throwable -> 0x005a, all -> 0x0055 }\n if (r0 == 0) goto L_0x003f\n r0.close() // Catch:{ Exception -> 0x0051 }\n L_0x003f:\n return\n L_0x0040:\n r0 = move-exception\n r0 = r1\n L_0x0042:\n if (r0 == 0) goto L_0x003f\n r0.close() // Catch:{ Exception -> 0x0048 }\n goto L_0x003f\n L_0x0048:\n r0 = move-exception\n goto L_0x003f\n L_0x004a:\n r0 = move-exception\n L_0x004b:\n if (r1 == 0) goto L_0x0050\n r1.close() // Catch:{ Exception -> 0x0053 }\n L_0x0050:\n throw r0\n L_0x0051:\n r0 = move-exception\n goto L_0x003f\n L_0x0053:\n r1 = move-exception\n goto L_0x0050\n L_0x0055:\n r1 = move-exception\n r4 = r1\n r1 = r0\n r0 = r4\n goto L_0x004b\n L_0x005a:\n r1 = move-exception\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.android.tpush.common.l.d(java.lang.String):void\");\n }",
"public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }",
"public void test1() {\n\t\tString fileToUpload = \"test.xml\";\n\t\tContext context = SessionService.getInstance().getContext();\n\t\tAssetManager assetManager = context.getAssets();\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tinputStream = assetManager.open(fileToUpload, AssetManager.ACCESS_BUFFER);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// upload xml document for testing, the server adds IDs for every element\n\t\tboolean success;\n\t\tif (inputStream == null) {\n\t\t\tsuccess = false;\n\t\t} else {\n\t\t\tsuccess = collabEditingService.uploadDocument(fileToUpload, inputStream);\n\t\t}\n\t\tif (!success) {\n\t\t\tLog.w(TAG, \"Document already exists on the server or connection failure during upload\");\n\t\t}\n\n\t\t// download the decorated document file again\n\t\tString fileForEditing = \"test.xml\";\n\t\tsuccess = collabEditingService.loadDocumentFromServer(fileForEditing);\n\t\tif (success) collabEditingService.showDocument(); // debug\n\t\t\n\t\t// insert text under parent node 200 and before node 300 \n\t\tLog.i(TAG, System.currentTimeMillis() + \": \" + \"Inserting\");\n\t\tcollabEditingService.insertText(\"200\", \"300\", NodePosition.INSERT_BEFORE, \" Woohoo \", 0);\n\t\t// c1.insertText(\"200\", null, 1, \" Woohoo \", 0); // inserts text right under the parent node\n\t\t\n\t\t// insert a new Element node before Node 500\n\t\tElement newNode = collabEditingService.createElement(\"Foo\");\n\t\tnewNode.setAttribute(\"myAttrib\", \"69\");\n\t\tcollabEditingService.insertNode(\"200\", newNode, \"300\", NodePosition.INSERT_AFTER);\n\t\t\n\t\tLog.i(TAG, collabEditingService.getDocumentString());\n\t\tcollabEditingService.showStateVector();\n\t}",
"public void run() {\n /*\n r25 = this;\n r5 = 0;\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ FileNotFoundException -> 0x0077 }\n r22 = r0;\n r22 = r22.mContext;\t Catch:{ FileNotFoundException -> 0x0077 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ FileNotFoundException -> 0x0077 }\n r23 = r0;\n r23 = r23.mHistoryFileName;\t Catch:{ FileNotFoundException -> 0x0077 }\n r5 = r22.openFileInput(r23);\t Catch:{ FileNotFoundException -> 0x0077 }\n r13 = android.util.Xml.newPullParser();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 0;\n r0 = r22;\n r13.setInput(r5, r0);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r18 = 0;\n L_0x0026:\n r22 = 1;\n r0 = r18;\n r1 = r22;\n if (r0 == r1) goto L_0x0036;\n L_0x002e:\n r22 = 2;\n r0 = r18;\n r1 = r22;\n if (r0 != r1) goto L_0x0079;\n L_0x0036:\n r22 = \"historical-records\";\n r23 = r13.getName();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = r22.equals(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n if (r22 != 0) goto L_0x007e;\n L_0x0042:\n r22 = new org.xmlpull.v1.XmlPullParserException;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r23 = \"Share records file does not start with historical-records tag.\";\n r22.<init>(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n throw r22;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x004a:\n r21 = move-exception;\n r22 = com.actionbarsherlock.widget.ActivityChooserModel.LOG_TAG;\t Catch:{ all -> 0x0159 }\n r23 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0159 }\n r24 = \"Error reading historical recrod file: \";\n r23.<init>(r24);\t Catch:{ all -> 0x0159 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x0159 }\n r24 = r0;\n r24 = r24.mHistoryFileName;\t Catch:{ all -> 0x0159 }\n r23 = r23.append(r24);\t Catch:{ all -> 0x0159 }\n r23 = r23.toString();\t Catch:{ all -> 0x0159 }\n r0 = r22;\n r1 = r23;\n r2 = r21;\n android.util.Log.e(r0, r1, r2);\t Catch:{ all -> 0x0159 }\n if (r5 == 0) goto L_0x0076;\n L_0x0073:\n r5.close();\t Catch:{ IOException -> 0x01aa }\n L_0x0076:\n return;\n L_0x0077:\n r6 = move-exception;\n goto L_0x0076;\n L_0x0079:\n r18 = r13.next();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n goto L_0x0026;\n L_0x007e:\n r15 = new java.util.ArrayList;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r15.<init>();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x0083:\n r18 = r13.next();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 1;\n r0 = r18;\n r1 = r22;\n if (r0 != r1) goto L_0x00ca;\n L_0x008f:\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = r0;\n r23 = r22.mInstanceLock;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n monitor-enter(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r19 = new java.util.LinkedHashSet;\t Catch:{ all -> 0x01a7 }\n r0 = r19;\n r0.<init>(r15);\t Catch:{ all -> 0x01a7 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x01a7 }\n r22 = r0;\n r8 = r22.mHistoricalRecords;\t Catch:{ all -> 0x01a7 }\n r9 = r8.size();\t Catch:{ all -> 0x01a7 }\n r10 = r9 + -1;\n L_0x00b1:\n if (r10 >= 0) goto L_0x0160;\n L_0x00b3:\n r22 = r8.size();\t Catch:{ all -> 0x01a7 }\n r24 = r19.size();\t Catch:{ all -> 0x01a7 }\n r0 = r22;\n r1 = r24;\n if (r0 != r1) goto L_0x016f;\n L_0x00c1:\n monitor-exit(r23);\t Catch:{ all -> 0x01a7 }\n if (r5 == 0) goto L_0x0076;\n L_0x00c4:\n r5.close();\t Catch:{ IOException -> 0x00c8 }\n goto L_0x0076;\n L_0x00c8:\n r22 = move-exception;\n goto L_0x0076;\n L_0x00ca:\n r22 = 3;\n r0 = r18;\n r1 = r22;\n if (r0 == r1) goto L_0x0083;\n L_0x00d2:\n r22 = 4;\n r0 = r18;\n r1 = r22;\n if (r0 == r1) goto L_0x0083;\n L_0x00da:\n r12 = r13.getName();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = \"historical-record\";\n r0 = r22;\n r22 = r0.equals(r12);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n if (r22 != 0) goto L_0x011f;\n L_0x00e8:\n r22 = new org.xmlpull.v1.XmlPullParserException;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r23 = \"Share records file not well-formed.\";\n r22.<init>(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n throw r22;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x00f0:\n r11 = move-exception;\n r22 = com.actionbarsherlock.widget.ActivityChooserModel.LOG_TAG;\t Catch:{ all -> 0x0159 }\n r23 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0159 }\n r24 = \"Error reading historical recrod file: \";\n r23.<init>(r24);\t Catch:{ all -> 0x0159 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x0159 }\n r24 = r0;\n r24 = r24.mHistoryFileName;\t Catch:{ all -> 0x0159 }\n r23 = r23.append(r24);\t Catch:{ all -> 0x0159 }\n r23 = r23.toString();\t Catch:{ all -> 0x0159 }\n r0 = r22;\n r1 = r23;\n android.util.Log.e(r0, r1, r11);\t Catch:{ all -> 0x0159 }\n if (r5 == 0) goto L_0x0076;\n L_0x0117:\n r5.close();\t Catch:{ IOException -> 0x011c }\n goto L_0x0076;\n L_0x011c:\n r22 = move-exception;\n goto L_0x0076;\n L_0x011f:\n r22 = 0;\n r23 = \"activity\";\n r0 = r22;\n r1 = r23;\n r4 = r13.getAttributeValue(r0, r1);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 0;\n r23 = \"time\";\n r0 = r22;\n r1 = r23;\n r22 = r13.getAttributeValue(r0, r1);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r16 = java.lang.Long.parseLong(r22);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 0;\n r23 = \"weight\";\n r0 = r22;\n r1 = r23;\n r22 = r13.getAttributeValue(r0, r1);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r20 = java.lang.Float.parseFloat(r22);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r14 = new com.actionbarsherlock.widget.ActivityChooserModel$HistoricalRecord;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r0 = r16;\n r2 = r20;\n r14.<init>(r4, r0, r2);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r15.add(r14);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n goto L_0x0083;\n L_0x0159:\n r22 = move-exception;\n if (r5 == 0) goto L_0x015f;\n L_0x015c:\n r5.close();\t Catch:{ IOException -> 0x01ad }\n L_0x015f:\n throw r22;\n L_0x0160:\n r7 = r8.get(r10);\t Catch:{ all -> 0x01a7 }\n r7 = (com.actionbarsherlock.widget.ActivityChooserModel.HistoricalRecord) r7;\t Catch:{ all -> 0x01a7 }\n r0 = r19;\n r0.add(r7);\t Catch:{ all -> 0x01a7 }\n r10 = r10 + -1;\n goto L_0x00b1;\n L_0x016f:\n r8.clear();\t Catch:{ all -> 0x01a7 }\n r0 = r19;\n r8.addAll(r0);\t Catch:{ all -> 0x01a7 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x01a7 }\n r22 = r0;\n r24 = 1;\n r0 = r22;\n r1 = r24;\n r0.mHistoricalRecordsChanged = r1;\t Catch:{ all -> 0x01a7 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x01a7 }\n r22 = r0;\n r22 = r22.mHandler;\t Catch:{ all -> 0x01a7 }\n r24 = new com.actionbarsherlock.widget.ActivityChooserModel$HistoryLoader$1;\t Catch:{ all -> 0x01a7 }\n r24.<init>();\t Catch:{ all -> 0x01a7 }\n r0 = r22;\n r1 = r24;\n r0.post(r1);\t Catch:{ all -> 0x01a7 }\n monitor-exit(r23);\t Catch:{ all -> 0x01a7 }\n if (r5 == 0) goto L_0x0076;\n L_0x019f:\n r5.close();\t Catch:{ IOException -> 0x01a4 }\n goto L_0x0076;\n L_0x01a4:\n r22 = move-exception;\n goto L_0x0076;\n L_0x01a7:\n r22 = move-exception;\n monitor-exit(r23);\t Catch:{ all -> 0x01a7 }\n throw r22;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x01aa:\n r22 = move-exception;\n goto L_0x0076;\n L_0x01ad:\n r23 = move-exception;\n goto L_0x015f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.actionbarsherlock.widget.ActivityChooserModel.HistoryLoader.run():void\");\n }",
"private String appendToPath(String aBase, String aTail) {\n \t\t//initialise with most likely layout\n \t\tString dBase = aBase;\n \t\tString dTail = aTail;\n \n \t\tif (!aBase.endsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdBase = aBase + \"/\"; //$NON-NLS-1$\n \t\t}\n \n \t\tif (aTail.startsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdTail = aTail.substring(1);\n \t\t}\n \n \t\treturn dBase + dTail;\n \t}",
"private void printFile(Products print, String ufilename) {\n\t\tFile file = new File(\"output\"+File.separator+ufilename+fileId+\".xml\"); \n\t\tSystem.out.println(\"Exporting : \"+ file);\n\t\tJAXBContext jaxbContext;\n\t\ttry {\n\t\t\tjaxbContext = JAXBContext.newInstance(Products.class); \n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n\t\t\tjaxbMarshaller.setProperty(\"com.sun.xml.internal.bind.xmlHeaders\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);\n\t\t\tjaxbMarshaller.marshal(print, file); // prints the file\n\t\t\t// \t\t jaxbMarshaller.marshal(products, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void a(android.content.Context r5, java.lang.String r6, boolean r7, int r8, android.net.Uri r9) {\n /*\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 11;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r6);\n r1 = z;\n r2 = 7;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r1 = z;\n r2 = 8;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r1 = \"]\";\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.whatsapp.util.Log.i(r0);\n if (r7 == 0) goto L_0x0058;\n L_0x003d:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 9;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r0 = r0.toString();\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r1 == 0) goto L_0x006f;\n L_0x0058:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 10;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r0 = r0.toString();\n L_0x006f:\n r1 = z;\n r2 = 13;\n r1 = r1[r2];\n r2 = 0;\n r1 = r5.getSharedPreferences(r1, r2);\n r1 = r1.edit();\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 12;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r2 = r2.append(r6);\n r2 = r2.toString();\n r1.putString(r2, r0);\n r1.commit();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.content.Context, java.lang.String, boolean, int, android.net.Uri):void\");\n }",
"public void dumpLog(String filename){\n }",
"public void saveData(int argLowAlpha, int argHighAlpha, int argLowBeta, int argHighBeta, int argLowGamma, int argMidGamma, int argDelta, int argTheta) {\n\n try {\n File sdCard = Environment.getExternalStorageDirectory();\n File dir = new File(sdCard.getAbsolutePath() + \"/cerebro_files/\");\n dir.mkdirs();\n\n if (fileCountFlag == 0) {\n File[] files = dir.listFiles();\n int numberOfFiles = files.length;\n String index = new Integer(numberOfFiles + 1).toString();\n Toast.makeText(getApplicationContext(), \"Number of files is: \"+index, Toast.LENGTH_SHORT).show();\n filename = \"file\" + index + \".csv\";\n fileCountFlag = 1;\n }\n\n //File file = new File(dir, \"filename1.csv\"+index);\n File file = new File(dir, filename);\n //Toast.makeText(getApplicationContext(), \"init file\",Toast.LENGTH_SHORT).show();\n\n FileOutputStream f = new FileOutputStream(file, true);\n\n //Toast.makeText(getApplicationContext(), \"got output stream\",Toast.LENGTH_SHORT).show();\n\n //String strLowAlpha = new Integer(lowAlpha).toString();\n String strHighAlpha = new Integer(argHighAlpha).toString();\n String strLowBeta = new Integer(argLowBeta).toString();\n String strHighBeta = new Integer(argHighBeta).toString();\n String strLowGamma = new Integer(argLowGamma).toString();\n String strMidGamma = new Integer(argMidGamma).toString();\n String strDelta = new Integer(argDelta).toString();\n String strTheta = new Integer(argTheta).toString();\n\n //string1 = string1 + \"\\n\";\n\n String strCSV = new Integer(argLowAlpha).toString();\n\n strCSV = strCSV+','+strHighAlpha+','+strLowBeta+','+strHighBeta+','+strLowGamma+','+strMidGamma+','+strDelta+','+strTheta+'\\n';\n\n //f.write(string.getBytes());\n //bf.write(passData.getBytes());\n f.write(strCSV.getBytes());\n //Toast.makeText(getApplicationContext(), \"Done writing\",Toast.LENGTH_SHORT).show();\n f.close();\n //Toast.makeText(getApplicationContext(), \"File buffer closed\",Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"failed to write\",Toast.LENGTH_SHORT).show();\n }\n }",
"private String generateFileName() {\n\t\t\n\t\treturn \"/tmp/logger.java_log\" + new Random().nextInt();\n\t}",
"public String getText()\n{\n //String base = _type==FileType.PACKAGE_DIR? _proj.getPackageName(_file) :\n // _file.isRoot()? _file.getSite().getName() : _file.getName();\n //String prefix = _vc.isModified(_file)? \">\" : \"\";\n //String suffix = _file.isUpdateSet()? \" *\" : \"\";\n //return prefix + base + suffix;\n String text = _file.getName();\n return text.length()>0? text : \"Sample Files\";\n}",
"@Override\n protected void onCreate (Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n surname = (EditText) findViewById(R.id.surname);\n group = (EditText) findViewById(R.id.group);\n faculty = (EditText) findViewById(R.id.faculty);\n\n w_file = (EditText) findViewById(R.id.w_file);\n r_file = (EditText) findViewById(R.id.r_file);\n\n b_write = (Button) findViewById(R.id.b_write);\n b_read = (Button) findViewById(R.id.b_read);\n\n tv_text = (TextView) findViewById(R.id.tv_text);\n\n b_read.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String fileName;\n fileName = r_file.getText().toString() + \".txt\";\n tv_text.setText(readFile(fileName));\n }\n });\n\n\n b_write.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String record, fileName;\n record = surname.getText().toString() + \"\\n\" + group.getText().toString() + \"\\n\" + faculty.getText().toString();\n fileName = w_file.getText().toString() + \".txt\";\n saveFile (fileName,record);\n }\n });\n\n\n }",
"@Override\n\tpublic String toString() {\n\t\tString msg = (nomeMappa + \" - \" + filePath + \" ;\\n\");\n\t\treturn msg;\n\t}",
"private String toXML(){\n return \"<paint>\\n\"+\"\\t<background_color>\" + this.backgroundColor +\n \"</background_color>\\n\" + touchArea.toXML() + \"</paint>\\n\";\n }",
"@Override\n\tprotected void onStart()\n\t{\n\t\ttext_input.setPath(preference.getString(\"input\",FileUtils.getSDPath()));\n\t\ttext_output.setPath(preference.getString(\"output\",FileUtils.getSDPath()));\n\t\ttext_fileName.setText(preference.getString(\"name\",\"packer\"));\n\t\ttext_width.setText(preference.getString(\"width\",\"1024\"));\n\t\ttext_height.setText(preference.getString(\"height\",\"1024\"));\n\t\t\n\t\tsuper.onStart();\n\t}",
"public void newDemo() {\r\n \t\t\r\n \t\tString date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\r\n \t\tthis.fileName = this.demoFolder + this.map.replace(\".xml\", \"\") + \"_\" + date + \".r2d\";\r\n \t\ttry {\r\n \t\t\tthis.fos = (FileOutputStream)this.fileIO.writeFile(this.fileName);\r\n \t\t} catch (IOException e) {\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\tthis.demoParts.put(this.map + \"/\");\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \t}",
"private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }",
"public static void loopthrough(String folderName) throws IOException, SAXException, TikaException, SQLException, ParseException, URISyntaxException{\n\t\t//System.out.println(\"This is the loopthrough folderName\"+folderName);\n\t\tFile dir = new File(folderName);\n\t\tFile[] directoryListing = dir.listFiles();\n\t\t try {\n\n\t\t\tif (directoryListing != null) {\n\t\t\t\t int adder=0;\n\t\t\t\t\tfor (File child : directoryListing) {\n\t\t\t\t\t\t try {\n\n\t\t\t\t\t\tif(!myFiles.contains(child.getName().toString().trim())){\n\t\t\t\t\t\t\tif(child.isFile()){\n\t\t\t\t\t\t\tadder++;\n\t\t\t\t\t\t\tif(adder % 5 == 0){\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\n////////////////////////////////////////////////////////////////// Add the file to the logger\n\n\t\t\t\t\t\t\tPreferences userPrefs = Preferences.userNodeForPackage(TBB_SQLBuilder.class);\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tFileWriter fw= new FileWriter(userPrefs.get(\"PathForLogger\", null),true);\n\n\t\t\t\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw,2048);\n\n\t\t\t\t\t\t\t\t // APPEND MODE SET HERE- unComment here\n\t\t\t\t\t\t\t\t\t bw.write(child.getName().toString().trim());\n\t\t\t\t\t\t\t\t\t bw.newLine();\n\t\t\t\t\t\t\t\t\t bw.flush();\n\t\t\t\t\t\t\t\t\t bw.close();\n\t\t\t\t\t\t\t\t\t fw.close();\n\n\t\t\t\t\t\t\t\t } catch (IOException ioe) {\n\t\t\t\t\t\t\t\t\t Logger.error(ioe+\"IT DIDNT WRITE TO THE FILELOGGER\");\n\n\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t AutoDetectParser parser = new AutoDetectParser();\n\t\t\t\t\t\tBodyContentHandler handler = new BodyContentHandler(-1);\n\t\t\t\t\t\tMetadata metadata = new Metadata();\n\t\t\t\t\t\tFileInputStream inputstream = new FileInputStream(new File(child.getPath()));\n\t\t\t\t\t\t//Logger.warn(\"\\n\\n\\n\\n\"+child.getName());\n\t\t\t\t\t\tParseContext context = new ParseContext();\n\t\t\t\t\t\tparser.parse(inputstream, handler, metadata, context);\n\t\t\t\t\t\tString s=null;\n\t\t\t\t\t s =handler.toString();\n\t\t\t\t\t System.out.println(\"Comparison string\"+s);\n\t\t\t\t\t handler=null;\n\t\t\t\t\t context=null;\n\t\t\t\t\t inputstream.close();\n\t\t\t\t\t PDFont.clearResources();\n\t\t\t\t\t System.gc();\n\t\t\t\t\t s=Checkers.FindNReplace(s);\n\t\t\t\t\t //child.getName().toString().replaceAll(\"//%\", \"\")\n\t\t\t\t\t //System.out.println(\"child.getName().tostring()\"+child.getName().toString());\n\t\t\t\t\t System.out.println(\"child.getPath().tostring()\"+child.getPath().toString());\n\t\t\t\t\t //System.out.println(\"child.getPath().tostring()\"+s);\n\n\t\t\t\t\t //if(child.getPath().contains(\"final\")){\n\t\t\t\t\t //\tSystem.out.println(\"final here\");\n\t\t\t\t\t //}\n\n//Endoscopy files....takes xlsx files....\n\t\t\t\t\t if(child.getPath().contains(\"T6200\")||child.getPath().contains(\"TCR2232\")||child.getPath().contains(\"Gastroscopy_Hi\")){\n\t\t\t\t\t \ttry {\n\t\t\t\t\t \t\tSystem.out.println(child.getName().trim()+\"Im in endoscopy\");\n\n\t\t\t\t\t \t\t//getFileCreationDate(child);\n\t\t\t\t\t\t\t\t\tEndoscopyExtractor.Endoscopy_mane(child.getPath());\n\t\t\t\t\t\t\t\t\tHistopathExtractor.Histology_mane(child.getPath());\n\t\t\t\t\t\t\t\t\t//System.out.println(child.getName().trim());\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(e+child.getName());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\n\n//For newer Bravo files\n\t\t\t\t\t else if(s.contains(\"pH Analysis Thresholds\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")\n\n\t\t\t\t\t \t\t&&!child.getName().trim().contains(\"Chph\")\n\t\t\t\t\t \t\t&&!child.getName().trim().contains(\"ChPh\")\n\t\t\t\t\t \t\t&&!child.getName().trim().contains(\"PAE\")\n\t\t\t\t\t \t\t){\n\t\t\t\t\t \tSystem.out.println(\"Caught in New Bravo\"+child.getName());\n\t\t\t\t\t \tBravo.mane newer = new Bravo.mane();\n\n\n\t\t\t\t\t \t\t try {\n\t\t\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\t\t if (child.getAbsolutePath().contains(\".doc\")&!child.getAbsolutePath().contains(\".docx\")){\n\t\t\t\t\t\t\t\t\t\t s=s.replaceAll(\"^\\\\s\", \"\").replace(\" \t \", \"\").replaceAll(\"\\n\\\\t\", \" \");\n\n\t\t\t\t\t\t\t\t\t\t s=s.trim();\n\t\t\t\t\t\t\t\t\t\t newer.ExtractNew(s,child.getName(),getFileCreationDate(child));\n\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t\t\t\t getFileCreationDate(child);\n\t\t\t\t\t\t\t\t\t\t\t newer.ExtractNew(s,child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\t\t\t ////System.out.println(\"THISIS S\"+s);\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\tLogger.error(e,child.getName());\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tLogger.error(e+child.getName());\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n//Older BRAVO files\n\t\t\t\t\t else if(s.contains(\"Fraction Time pH <4\")&&!s.contains(\"Reflux Table - pH\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")&&s.contains(\"Day\")&&!s.contains(\"Reflux Table - Proximal\")){\n\t\t\t\t\t \t System.out.println(\"Caught in Bravo old\"+child.getName());\n\t\t\t\t\t \tBravo.maneOld g=new Bravo.maneOld();\n\n\t\t\t\t\t \tg.Extract(s,child.getName(),getFileCreationDate(child));\n\n\t\t\t\t\t }\n//Surgical files\n\t\t\t\t\t else if(child.getName().contains(\"Galaxy\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")){\n\t\t\t\t\t \t System.out.println(\"Caught in surgery\"+child.getName());\n\t\t\t\t\t \t//Surgery.Procedures p=new Surgery.Procedures();\n\t\t\t\t\t \tgetFileCreationDate(child);\n\t\t\t\t\t \tProcedures.Sugery_mane(child.getPath());\n\n\t\t\t\t\t }\n//Impedance files\n\t\t\t\t\t else if(s.contains(\"Impedance\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")){\n\t\t\t\t\t \t try {\n\t\t\t\t\t\t\t\t\tif (child.getPath().contains(\"rtf\")){\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"File now being dealt with impedance\"+getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"GHGHGHGHGHGHGH\");\n\t\t\t\t\t\t\t\t\tImpedance.mane i = new Impedance.mane(s);\n\t\t\t\t\t\t\t\t\ti.Impmane(s,child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n//Breath Test files\n\t\t\t\t\t else if(s.contains(\"Breath Test\")&&!s.contains(\"Breath Test Technician\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")){\n\t\t\t\t\t \tSystem.out.println(\"Caught in breath test\"+child.getName());\n\t\t\t\t\t \ttry {\n\t\t\t\t\t\t\t\t\tBreathTest.mane b= new BreathTest.mane();\n\n\t\t\t\t\t\t\t\t\tb.Gomane(s,child.getAbsolutePath().toString().trim(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\tPDFont.clearResources();\n\t\t\t\t\t\t\t\t\tSystem.gc();\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(e+child.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\n\n//HRM- doesnt process the final report here as Indication is excluded:\n\t\t\t\t\t else if(s.contains(\"nares\")&&!s.contains(\"Indications\")&&!s.contains(\"RECALL\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")){\n\t\t\t\t\t \t//do Something for HRM\n\t\t\t\t\t \tSystem.out.println(\"Caught in HRM ONly\"+child.getName());\n\n\t\t\t\t\t \ts=Checkers.FindNReplace(s);\n\n\t\t\t\t\t \ttry {\n\n\t\t\t\t\t\t\t\t\tHRMAll.mane(s,child.getName(),getFileCreationDate(child));\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(\"getFileCreationDate\"+e+child.getName());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n//HRM and Diag\n\t\t\t\t\t //This looks to see if file is called FINAL. This is the first one to look at as it\n\t\t\t\t\t //will definitely be the final file and then any \"Indication\" keyword in other files\n\t\t\t\t\t //will not be entered into the database (so won't displace this one\n\n\n\t\t\t\t\t if((child.getPath().contains(\"final\")\n\t\t\t\t\t \t\t||child.getPath().contains(\"FINAL\")\n\t\t\t\t\t \t\t||child.getPath().contains(\"Final\"))&&s.contains(\"nares\")&&s.contains(\"Indications\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")){\n\t\t\t\t\t \tSystem.out.println(\"Caught in Diag\"+child.getName());\n\t\t\t\t\t \tSystem.out.println(\"The raw string\"+s);\n\t\t\t\t\t \ts=Checkers.FindNReplace(s);\n\t\t\t\t\t \ttry {\n\t\t\t\t\t\t\t\t\tmane.Dimane(s,child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(\"getFileCreationDate\"+e+child.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t \ttry {\n\t\t\t\t\t \t\t//This prevents the HRM only files which are labelled as FINAL from being put in the DIag table\n\t\t\t\t\t \t\tif(!child.getPath().contains(\"Interpretation / Findings\")){\n\n\t\t\t\t\t\t\t\t\tHRMAll.mane(s,child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Im entering some HRM data\"+child.getName());\n\t\t\t\t\t \t\t}\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(e+child.getName());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\n\t\t\t\t\t else if(s.contains(\"nares\")&&s.contains(\"Indications\")){\n\t\t\t\t\t \t//send to both HRM and to Diag\n\t\t\t\t\t \tSystem.out.println(\"Caught in both HRM and to Diag\"+child.getName());\n\t\t\t\t\t \ts=Checkers.FindNReplace(s);\n\t\t\t\t\t \ttry {\n\t\t\t\t\t \t\tgetFileCreationDate(child);\n\t\t\t\t\t\t\t\t\tmane.Dimane(s,child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Im entering some diag data with the HRM as well\"+child.getName());\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(e+child.getName());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t \ttry {\n\t\t\t\t\t \t\tgetFileCreationDate(child);\n\t\t\t\t\t\t\t\t\tHRMAll.mane(s,child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Im entering some HRM data with the diag as well\"+child.getName());\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(e+child.getName());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n//Just diag\n\t\t\t\t\t else if(s.contains((\"Indications\"))&&!s.contains(\"nares\")&&!s.contains(\"HISTOLOGY\")&&!s.contains(\"ENDOSCOPIC DIAGNOSIS\")&&!s.contains(\"Analysis Thresholds Channel\")){\n\t\t\t\t\t \ttry {\n\t\t\t\t\t \t\t//Just for Diag\n\t\t\t\t\t \t\tSystem.out.println(\"SEND SEND SEND send to MANE DIAG only\");\n\t\t\t\t\t \t\tgetFileCreationDate(child);\n\t\t\t\t\t\t\t\t\tmane.Dimane(s,child.getName(),getFileCreationDate(child));\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tLogger.error(e+child.getName(),getFileCreationDate(child));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t\t else {\n\t\t\t\t\t \t////System.out.println(\"NAAAAH\");\n\t\t\t\t\t }\n\t\t\t\t\t s=null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(child.isDirectory()){\n\t\t\t\t\t\t\t\tPDFont.clearResources();\n\t\t\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t\t\t\t////System.out.println(\"THIS IS A DIRECTORY\"+child.getAbsolutePath().toString());\n\t\t\t\t\t\t\t\tString direc;\n\t\t\t\t\t\t\t\tdirec=child.getAbsolutePath().toString();\n\t\t\t\t\t\t\t\tloopthrough(direc);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t } catch (Exception e) {\n\n\t\t\t\t\t\t\t\tLogger.error(e+\"This file didnt get processed:\"+child.getName());\n\t\t\t\t\t\t\t\t//System.out.println(\"This file didnt get processed:\"+child.getName());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t }\n\t\t} catch (Exception e) {\n\n\t\t\tLogger.error(e+\"This file didnt get processed:\"+directoryListing);\n\t\t}\n\t}",
"public static void writeUAV(){\n System.out.println(\"Writing new UAV\");\n Document dom;\n Element e = null;\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n dom = documentBuilder.newDocument();\n Element rootElement = dom.createElement(\"UAV\");\n\n // Create the name tag and write the name data\n e = dom.createElement(\"name\");\n e.appendChild(dom.createTextNode(name.getText()));\n rootElement.appendChild(e);\n\n // Create the weight tag and write the weight data\n e = dom.createElement(\"weight\");\n e.appendChild(dom.createTextNode(weight.getText()));\n rootElement.appendChild(e);\n\n // Create the turn radius tag and write the turn radius data\n e = dom.createElement(\"turn_radius\");\n e.appendChild(dom.createTextNode(turnRadius.getText()));\n rootElement.appendChild(e);\n\n // Create the max incline angle tag and write the max incline angle data\n e = dom.createElement(\"max_incline\");\n e.appendChild(dom.createTextNode(maxIncline.getText()));\n rootElement.appendChild(e);\n\n // Create the battery type tag and write the battery type data\n e = dom.createElement(\"battery\");\n e.appendChild(dom.createTextNode(battery.getText()));\n rootElement.appendChild(e);\n\n // Create the battery capacity tag and write the battery capacity data\n e = dom.createElement(\"battery_capacity\");\n e.appendChild(dom.createTextNode(batteryCapacity.getText()));\n rootElement.appendChild(e);\n\n dom.appendChild(rootElement);\n\n // Set the transforms to make the XML document\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n tr.setOutputProperty(OutputKeys.INDENT,\"yes\");\n tr.setOutputProperty(OutputKeys.METHOD,\"xml\");\n tr.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n //tr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"uav.dtd\");\n tr.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\",\"4\");\n\n // Write the data to the file\n tr.transform(new DOMSource(dom),new StreamResult(\n new FileOutputStream(\"src/uavs/\"+name.getText()+\".uav\")));\n\n }catch (IOException | ParserConfigurationException | TransformerException ioe){\n ioe.printStackTrace();\n // If error, show dialog box with the error message\n // If error, show dialog box with the error message\n Dialog.showDialog(\"Unable to write to write camera settings.\\n\\n\" +\n \"Ensure that \" + path + \" is visible by the application.\",\"Unable to write settings\");\n }\n }",
"@Override\n public void onDialogPositiveClick(String newFilename){\n if(mEditTextMolFile.getText().toString().length()==0){\n Toast.makeText(getApplicationContext(),\"Empty edit text field. Not saved.\",Toast.LENGTH_LONG).show();\n return;\n }\n\n try{\n String[] ss = mEditTextMolFile.getText().toString().split(System.getProperty(\"line.separator\"));\n PrintWriter writer = new PrintWriter(getFilesDir()+\"/\"+newFilename+\".mol\");\n for(int i = 0; i<ss.length; i++){\n writer.println(ss[i]);\n }\n writer.close();\n if(!(newFilename.equals(\"mol\")||newFilename.equals(\"mol2d\"))){\n Toast.makeText(getApplicationContext(), \"mol file \" + newFilename + \" saved!\", Toast.LENGTH_LONG).show();\n }\n }catch (IOException e){\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),\"Saving failed!\",Toast.LENGTH_LONG).show();\n }\n }",
"public void pulsar(View v){\n if (v.getId() == R.id.buttonAnadirFichInt) {\n try {\n OutputStreamWriter osw = new OutputStreamWriter(openFileOutput(\"texto.txt\", Context.MODE_PRIVATE));\n texto = editTextContenido.getText().toString();\n osw.write(texto);\n osw.close();\n } catch (Exception e) {\n Log.e(\"Ficheros\", \"Error!! al escribir el fichero a memoria interna\");\n }\n }\n\n //Leer el fichero en memoria interna\n if (v.getId() == R.id.buttonLeerFichInt) {\n try {\n BufferedReader fin = new BufferedReader(new InputStreamReader(openFileInput(\"texto.txt\")));\n texto = fin.readLine();\n fin.close();\n TextViewContenidoConFichero.setText(texto);\n } catch (Exception e) {\n Log.e(\"Ficheros\", \"ERROR!! al leer fichero desde memoria interna\");\n }\n }\n\n //Leer el fichero desde recursos\n if (v.getId() == R.id.buttonLeerRecurso){\n try {\n InputStream is = getResources().openRawResource(R.raw.texto_raw);\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String linea=br.readLine();\n while(linea!=null){\n TextViewContenidoConFichero.setText(TextViewContenidoConFichero.getText()+linea+\"\\n\");\n linea=br.readLine();\n }\n is.close();\n } catch (IOException e) {\n Log.e(\"Ficheros\", \"ERROR!! al leer fichero desde el recurso\");\n }\n }\n\n //Crear el fichero en memoria externa\n if(v.getId()==R.id.buttonAnadirFichExt){\n if(sdAccesoEscritura==true && sdDisponible==true){\n try{\n File ruta_sd= getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n //File ruta_sd = Context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n File f = new File(ruta_sd.getAbsolutePath(),\"prueba_sd.txt\");\n OutputStreamWriter sow =new OutputStreamWriter(new FileOutputStream(f, true));\n texto = editTextContenido.getText().toString();\n sow.write(texto);\n sow.close();\n Log.e(\"Fichero\",\"Fichero escrito correctamente\");\n }catch (Exception ex){\n Log.e(\"Fichero\",\" Error al escribir el fichero en tarjeta SD \"+ex.fillInStackTrace());\n }\n }else{\n Log.e(\"Fichero\",\"La SD no esta disponible\");\n }\n\n }\n\n //Leer el fichero en memoria externa\n if(v.getId()==R.id.buttonLeerFichExt){\n try {\n File ruta_sd=getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n File f=new File(ruta_sd.getAbsolutePath(),\"prueba_sd.txt\");\n BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n String linea=br.readLine();\n while(linea!=null){\n TextViewContenidoConFichero.setText(TextViewContenidoConFichero.getText()+linea+\"\\n\");\n linea=br.readLine();\n }\n br.close();\n } catch (Exception e) {\n Log.e(\"Ficheros\",\"Error!! en la lectura del fichero en SD\");\n }\n }\n\n //Borrar el fichero en memoria interno\n if(v.getId()==R.id.buttonBorrarFichInt){\n deleteFile(\"texto.txt\");\n Log.e(\"Eliminacion\",\"Archivo borrado\");\n }\n\n //Borrar el fichero en memoria externa\n if(v.getId()==R.id.buttonBorrarFichExt){\n File ruta_sd=getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n File f=new File(ruta_sd.getAbsolutePath(),\"prueba_sd.txt\");\n f.delete();\n Log.e(\"Eliminacion\",\"Archivo borrado\");\n }\n }",
"public static void exportRouteGraph() {\n try {\n var nodeRouteNr = new ArrayList<Integer>();\n var links = new ArrayList<Pair<Integer, Integer>>();\n\n int[] idx = {0};\n Files.lines(Path.of(Omnibus.class.getResource(\"segments.txt\").getFile())).forEach(line -> {\n String[] parts = line.split(\",\");\n int routeNr = Integer.parseInt(parts[0]) - 1;\n nodeRouteNr.add(routeNr);\n if (parts.length > 5) {\n String[] connections = parts[5].split(\";\");\n for (String c : connections)\n links.add(new Pair(idx[0], Integer.parseInt(c)));\n }\n ++idx[0];\n });\n\n\n File f = Paths.get(\"route-graph.graphml\").toFile();\n var out = new PrintStream(f);\n out.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n out.println(\"<graphml xmlns=\\\"http://graphml.graphdrawing.org/xmlns\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:schemaLocation=\\\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\\\">\");\n out.println(\"<key attr.name=\\\"r\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"r\\\"/>\");\n out.println(\"<key attr.name=\\\"g\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"g\\\"/>\");\n out.println(\"<key attr.name=\\\"b\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"b\\\"/>\");\n out.println(\"<graph id=\\\"G\\\" edgedefault=\\\"directed\\\">\");\n for (int n = 0; n < nodeRouteNr.size(); ++n) {\n out.println(\"<node id=\\\"n\" + n + \"\\\">\");\n out.println(\"<data key=\\\"r\\\">\" + (COLOR[nodeRouteNr.get(n)]>>16) + \"</data>\");\n out.println(\"<data key=\\\"g\\\">\" + ((COLOR[nodeRouteNr.get(n)]>>8)&0xff) + \"</data>\");\n out.println(\"<data key=\\\"b\\\">\" + (COLOR[nodeRouteNr.get(n)]&0xff) + \"</data>\");\n out.println(\"</node>\");\n }\n int e = 0;\n for (var link : links)\n out.println(\"<edge id=\\\"e\" + (e++) + \"\\\" source=\\\"n\" + link.p + \"\\\" target=\\\"n\" + link.q + \"\\\"/>\");\n out.println(\"</graph>\");\n out.println(\"</graphml>\");\n out.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"public void copyConfigFile() throws IOException {\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(CONFIG_FILE);\n\n // Path to the just created empty db\n //String outFileName = DB_PATH + DATABASE_NAME;\n String outFileName = \"/sdcard/games/Config/ConfigA.txt\";\n\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"private String getOMEXML(final String file) throws FormatException,\n \t\t\tIOException\n \t\t{\n \t\t\tfinal String uuid =\n \t\t\t\t\"urn:uuid:\" + getUUID(new Location(getContext(), file).getName());\n \t\t\tomeMeta.setUUID(uuid);\n \n \t\t\tString xml;\n \t\t\ttry {\n \t\t\t\txml = service.getOMEXML(omeMeta);\n \t\t\t}\n \t\t\tcatch (final ServiceException se) {\n \t\t\t\tthrow new FormatException(se);\n \t\t\t}\n \n \t\t\t// insert warning comment\n \t\t\tfinal String prefix = xml.substring(0, xml.indexOf(\">\") + 1);\n \t\t\tfinal String suffix = xml.substring(xml.indexOf(\">\") + 1);\n \t\t\treturn prefix + WARNING_COMMENT + suffix;\n \t\t}",
"@Override\n\t\t\tprotected void onCreate(Bundle savedInstanceState){\n\t\t\t\tsuper.onCreate(savedInstanceState);\n\t\t\t\tsetContentView(R.layout.draweralone);\n\t\t\t\tfindViewById(R.id.addmcpe).setOnClickListener(new View.OnClickListener(){\n\t\t\t\t\t\tpublic void onClick(View p){\n\t\t\t\t\t\t\tif(!isMcpeInstalled()){\n\t\t\t\t\t\t\t\tToast.makeText(MenuActivity.this,R.string.errMcpeNotInstalled,Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!isMcpeConfigAvaliable()){\n\t\t\t\t\t\t\t\tToast.makeText(MenuActivity.this,R.string.errMcpeConfigNotFound,Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(alreadyAddedInList()){\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\t\t\t\t\t\tfw.append(\"900:mura syou server:222.2.87.59:19132\\n\");\n\t\t\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t\t}catch (IOException e){\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t}",
"private static String m14291b(File file, String str) {\n if (file == null || TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(file.getAbsolutePath());\n sb.append(File.separator);\n sb.append(str);\n return sb.toString();\n }",
"public void fillFilenames() {\r\n if (this.pl_LastFiles.getParam(\"nodelist-file\") != null\r\n && this.pl_LastFiles.getParam(\"edgelist-file\") != null) {\r\n this.nodefileText.setText(this.pl_LastFiles.getParam(\"nodelist-file\"));\r\n this.edgeFileText.setText(this.pl_LastFiles.getParam(\"edgelist-file\"));\r\n } else {\r\n this.nodefileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20nodes.txt\");\r\n this.edgeFileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20edges.txt\");\r\n }\r\n }",
"public void salvaPartita(String file) {\n\r\n }",
"@Pretty(headerName = \"SecondActivity\")\n private void intializeActivity(Bundle args) {\n }",
"private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.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\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void saveData( ) throws IOException {\n \tString FILENAME = \"data_file\";\n String stringT = Long.toString((SystemClock.elapsedRealtime() - timer.getBase())/1000)+\"\\n\";\n String stringS = textView.getText().toString()+\"\\n\";\n String stringD = Long.toString(System.currentTimeMillis())+\"\\n\";\n FileOutputStream fos;\n\t\ttry {\n\t\t\tfos = openFileOutput(FILENAME, Context.MODE_APPEND); //MODE_APPEND\n\t\t\tfos.write(stringS.getBytes());\n\t\t\tfos.write(stringT.getBytes());\n\t\t\tfos.write(stringD.getBytes());\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"private String setFileDestinationPath(){\n String filePathEnvironment = Environment.getExternalStorageDirectory().getAbsolutePath();\n Log.d(TAG, \"Full path edited \" + filePathEnvironment + \"/earwormfix/\" + generatedFilename + EXTENSION_JPG);\n return filePathEnvironment+ \"/earwormfix/\" + generatedFilename + EXTENSION_JPG;\n }",
"private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }",
"public void concatePlainText(String[] filenames, String desFileName) {\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(desFileName));\n //StringBuffer buffer=new StringBuffer();\n for (String filename : filenames) {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String str;\n while ((str = reader.readLine()) != null) {\n // buffer.append(str);\n writer.write(str);\n writer.newLine();\n }\n reader.close();\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void changeXMLFile() throws IOException {\n File orig = new File(RunnerClass.homedir + \"launch4j.xml\");\n File custom = new File(RunnerClass.homedir + \"launch4j2.xml\");\n BufferedReader br = new BufferedReader(new FileReader(orig));\n PrintWriter pw = new PrintWriter(new FileWriter(custom));\n int line = 0;\n String s;\n //Reads all lines, and replaces 5th line with new destination file\n while ((s = br.readLine()) != null) {\n line++;\n if (line == 5)\n pw.println(\" <outfile>\" + exeF.getCanonicalPath() + \"</outfile>\");\n else if(line == 18)\n pw.println(\" <minVersion>\"+ getFullVersion(RunnerClass.mf.generalOptionalPanel.javaVersion.getText().trim()) +\"</minVersion>\");\n else\n pw.println(s);\n }\n br.close();\n pw.close();\n //Deletes original file, renames temp to original\n RunnerClass.logger.info(\"del: \" + orig.delete());\n RunnerClass.logger.info(\"ren: \" + custom.renameTo(orig));\n }",
"XmlStringTester(File in) throws Exception {\n\t\txml = Files.readFile(in).toString();\n\t\txml = SchemEditUtils.expandAmpersands(xml);\n\t\tdoc = Dom4jUtils.getXmlDocument(xml);\n\t\tstringWriter = getStringWriter();\n\t}",
"private void setResName(int type, String resourceId, BufferedWriter bufferedwriter, StringBuilder parentName)\n/* */ {\n/* */ try\n/* */ {\n/* 1092 */ String resourceDispName = getResourceName(resourceId);\n/* 1093 */ if (type == 0)\n/* */ {\n/* */ \n/* 1096 */ this.flag = false;\n/* 1097 */ bufferedwriter.append(resourceDispName).append(\",\");\n/* 1098 */ bufferedwriter.append(\",\");\n/* 1099 */ bufferedwriter.append(\",\");\n/* */ \n/* 1101 */ if (!parentName.toString().equals(resourceDispName)) {\n/* 1102 */ parentName.append(resourceDispName);\n/* */ }\n/* */ }\n/* 1105 */ else if (type == 1)\n/* */ {\n/* 1107 */ this.flag = true;\n/* 1108 */ this.subgroup = resourceDispName;\n/* 1109 */ bufferedwriter.append(parentName.toString()).append(\",\");\n/* */ \n/* */ \n/* 1112 */ bufferedwriter.append(resourceDispName);\n/* 1113 */ bufferedwriter.append(\",\");\n/* 1114 */ bufferedwriter.append(\",\");\n/* */ }\n/* */ else\n/* */ {\n/* 1118 */ bufferedwriter.append(parentName.toString()).append(\",\");\n/* 1119 */ if (this.flag) {\n/* 1120 */ bufferedwriter.append(this.subgroup).append(\",\");\n/* */ }\n/* 1122 */ if (!this.flag) {\n/* 1123 */ bufferedwriter.append(\",\");\n/* */ }\n/* 1125 */ bufferedwriter.append(resourceDispName).append(\",\");\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 1130 */ e.printStackTrace();\n/* */ }\n/* */ }",
"public String initAssetFile(String filename) {\n File file = new File(getFilesDir(), filename);\n if (!file.exists()) try {\n InputStream is = getAssets().open(filename);\n OutputStream os = new FileOutputStream(file);\n byte[] data = new byte[is.available()];\n is.read(data); os.write(data); is.close(); os.close();\n } catch (IOException e) { e.printStackTrace(); }\n Log.d(TAG,\"prepared local file: \"+filename);\n return file.getAbsolutePath();\n }",
"private String llegeix_arxiu(Context context, String nom_arxiu) {\n\n String ret = \"\";\n\n try {\n InputStream inputStream = context.openFileInput(nom_arxiu);\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString);\n stringBuilder.append(\"\\n\");\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n if(ret.length() == 0)\n {\n return \"\";\n }\n else\n {\n return ret;\n }\n }"
] |
[
"0.56809485",
"0.5115478",
"0.50699276",
"0.50068843",
"0.49564007",
"0.49331015",
"0.49314904",
"0.49311802",
"0.49066478",
"0.48551452",
"0.48406094",
"0.48351714",
"0.48320693",
"0.47822925",
"0.47755182",
"0.47693077",
"0.47687247",
"0.4762208",
"0.473776",
"0.47248083",
"0.47233325",
"0.4714582",
"0.4712824",
"0.47001523",
"0.46941167",
"0.46940908",
"0.4672559",
"0.46451417",
"0.46260104",
"0.46033055",
"0.46007034",
"0.45968536",
"0.4588044",
"0.45870778",
"0.45742136",
"0.4570145",
"0.45694867",
"0.4566946",
"0.4551995",
"0.45439467",
"0.45364514",
"0.45291868",
"0.45245057",
"0.4515837",
"0.45156872",
"0.4515684",
"0.45147628",
"0.45120183",
"0.45069256",
"0.44841567",
"0.4470661",
"0.44670337",
"0.44668487",
"0.44594717",
"0.44584674",
"0.44571987",
"0.44472355",
"0.4444456",
"0.4441724",
"0.44388303",
"0.443842",
"0.44333163",
"0.44321424",
"0.4431877",
"0.44231248",
"0.4421688",
"0.44182655",
"0.44173345",
"0.44146985",
"0.44142768",
"0.44112054",
"0.44074747",
"0.4406422",
"0.44039905",
"0.44016305",
"0.43993753",
"0.43959868",
"0.43951333",
"0.43939593",
"0.43901974",
"0.43884498",
"0.43786433",
"0.4378622",
"0.43672663",
"0.43608335",
"0.43594384",
"0.43559662",
"0.43547717",
"0.43516254",
"0.43468606",
"0.43460461",
"0.43430567",
"0.43375683",
"0.4326667",
"0.43244502",
"0.43235797",
"0.43217453",
"0.43212336",
"0.43198872",
"0.4314924"
] |
0.58194524
|
0
|
Log.i(TAG, "URI_! xmlFileToLayoutsPalette stream=" + fis + ", concatenate=" + concatenate);
|
public ArrayList<Layout> xmlFileToLayoutsPalette(InputStream fis, boolean concatenate) {
ArrayList<Layout> result = null;
Bundle bundle = null;
ArrayList<Layout> layoutsPalette = null;
Layout layoutElement = null;
Stack<Bundle> bundleStack = new Stack<>();
long arrayLong[] = null;
float arrayFloat[] = null;
String arrayString[] = null;
int arrayIndex = 0;
boolean needGC = false;
mXmlPullParser = Xml.newPullParser();
try {
//FileInputStream fis;
mXmlPullParser.setInput(fis, null);
int eventType = mXmlPullParser.getEventType();
boolean done = false;
while (eventType != XmlPullParser.END_DOCUMENT && !done) {
String name = null;
Bitmap denseIcon = null, ambientIcon = null;
if(needGC) { System.gc(); needGC = false; }
switch (eventType) {
case XmlPullParser.START_DOCUMENT:
// bundle = new Bundle();
break;
case XmlPullParser.START_TAG:
name = mXmlPullParser.getName();
if (name.equalsIgnoreCase(mRootTag)) {
String prodid = mXmlPullParser.getAttributeValue(null, ATTR_PRODUCT_ID);
if (null == prodid || !prodid.equalsIgnoreCase(productId)) {
done = true;
}
} else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) {
layoutsPalette = new ArrayList<>();
needGC = true;
} else if (name.equalsIgnoreCase(LAYOUT)) {
// bundleStack.push(bundle);
// bundle = new Bundle();
layoutElement = new Layout();
layoutElement.iconAmbientFileName = null;
layoutElement.iconDenseFileName = null;
denseIcon = null;
ambientIcon = null;
needGC = true;
} else if (name.equalsIgnoreCase(LAYOUT_NAME)) {
String lp_name = mXmlPullParser.nextText();
// bundle.putString(name, lp_name);
layoutElement.name = lp_name;
// } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) {
// String base64gzip = mXmlPullParser.nextText();
// GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0)));
// ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();
// byte[] buffer = new byte[1024];
// int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len);
// zis.close();
//// bundle.putByteArray(name, byteBuffer.toByteArray());
// ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray());
// Bitmap bmp = BitmapFactory.decodeStream(bais);
// Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION,
// ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true);
// if (name.equalsIgnoreCase(DENSE_ICON)) {
// layoutElement.iconDense = sb;
// } else if (name.equalsIgnoreCase(AMBIENT_ICON)) {
// layoutElement.iconAmbient = sb;
// }
// needGC = true;
} else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) {
String base64gzip = mXmlPullParser.nextText();
GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0)));
ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len);
zis.close();
// bundle.putByteArray(name, byteBuffer.toByteArray());
ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray());
Bitmap bmp = BitmapFactory.decodeStream(bais);
Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION,
ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true);
if (name.equalsIgnoreCase(DENSE_ICON)) {
denseIcon = sb;
//Log.i(TAG, "#XML, xmlFileToLayoutsPalette, ICON, iconD=" + denseIcon + ", fname=" + layoutElement.iconDenseFileName);
if (null != layoutElement.iconDenseFileName) {
bmpToFile(denseIcon, layoutElement.iconDenseFileName);
denseIcon = null;
}
} else if (name.equalsIgnoreCase(AMBIENT_ICON)) {
ambientIcon = sb;
//Log.i(TAG, "#XML, xmlFileToLayoutsPalette, ICON, iconA=" + ambientIcon + ", fname=" + layoutElement.iconAmbientFileName);
if (null != layoutElement.iconAmbientFileName) {
bmpToFile(ambientIcon, layoutElement.iconAmbientFileName);
ambientIcon = null;
}
}
needGC = true;
} else if (name.equalsIgnoreCase(DENSE_ICON_FILENAME) || name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) {
String iconFileName = mXmlPullParser.nextText();
if (name.equalsIgnoreCase(DENSE_ICON_FILENAME)) {
if (!concatenate) layoutElement.iconDenseFileName = iconFileName;
else layoutElement.iconDenseFileName = String.valueOf(System.currentTimeMillis()) + "_D";
//Log.i(TAG, "#XML, xmlFileToLayoutsPalette, FNAME, iconD=" + denseIcon + ", fname=" + layoutElement.iconDenseFileName);
if (null != denseIcon) {
bmpToFile(denseIcon, layoutElement.iconDenseFileName);
denseIcon = null;
}
} else if (name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) {
if (!concatenate) layoutElement.iconAmbientFileName = iconFileName;
else layoutElement.iconAmbientFileName = String.valueOf(System.currentTimeMillis()) + "_A";
//Log.i(TAG, "#XML, xmlFileToLayoutsPalette, FNAME, iconA=" + ambientIcon + ", fname=" + layoutElement.iconAmbientFileName);
if (null != ambientIcon) {
bmpToFile(ambientIcon, layoutElement.iconAmbientFileName);
ambientIcon = null;
}
}
needGC = true;
} else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) {
// bundleStack.push(bundle);
bundle = new Bundle();
} else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) {
bundleStack.push(bundle);
bundle = new Bundle();
} else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) {
arrayIndex = 0;
arrayLong = new long[Inscription.NUM_INSCRIPTIONS];
for (int i = 0; i < Inscription.NUM_INSCRIPTIONS; i++) arrayLong[i] = 0;
needGC = true;
} else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) {
arrayIndex = 0;
arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS];
for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK; //0;
needGC = true;
} else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) {
arrayIndex = 0;
arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS];
for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK_RELIEF;
needGC = true;
} else if (name.equalsIgnoreCase(LONG_ITEM)) {
String value = mXmlPullParser.nextText();
arrayIndex = fromXml(arrayLong, value, arrayIndex);
} else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) {
arrayIndex = 0;
arrayFloat = new float[Inscription.NUM_INSCRIPTIONS];
for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayFloat[i] = 0.0f;
needGC = true;
} else if (name.equalsIgnoreCase(FLOAT_ITEM)) {
String value = mXmlPullParser.nextText();
arrayIndex = fromXml(arrayFloat, value, arrayIndex);
} else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) {
arrayIndex = 0;
arrayString = new String[Inscription.NUM_INSCRIPTIONS];
for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayString[i] = "";
needGC = true;
} else if (name.equalsIgnoreCase(STRING_ITEM)) {
String value = mXmlPullParser.nextText();
arrayIndex = fromXml(arrayString, value, arrayIndex);
} else {
String value = mXmlPullParser.nextText();
fromXML(bundle, name, value);
}
break;
case XmlPullParser.END_TAG:
name = mXmlPullParser.getName();
if (name.equalsIgnoreCase(mRootTag)) {
done = true;
} else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) {
// bundle.putStringArrayList(LAYOUTS_PALETTE, layoutsPalette);
result = layoutsPalette;
needGC = true;
} else if (name.equalsIgnoreCase(LAYOUT)) {
// String base64 = ACommon.serializeBundle(bundle);
// layoutsPalette.add(base64);
// bundle = bundleStack.pop();
layoutsPalette.add(layoutElement);
needGC = true;
} else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) {
// Bundle poped = bundleStack.pop();
// poped.putBundle(WATCH_APPEARANCE, bundle);
// bundle = poped;
layoutElement.config = bundle;
bundle = null;
} else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) {
Bundle popped = bundleStack.pop();
popped.putBundle(INSCRIPTION_BUNDLE, bundle);
bundle = popped;
} else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) {
bundle.putLongArray(name, arrayLong);
} else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) {
bundle.putLongArray(name, arrayLong);
} else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) {
bundle.putLongArray(name, arrayLong);
} else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) {
bundle.putFloatArray(name, arrayFloat);
} else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) ||
name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) {
bundle.putStringArray(name, arrayString);
}
break;
} // switch
eventType = mXmlPullParser.next();
} // while
} catch (Exception e) {
e.printStackTrace();
result = null;
} finally {
System.gc();
}
// Log.i(TAG, "((( xmlFileToLayoutsPalette STOP, file=" + fileName +
// ", elements count=" + ((null==result) ? 0 : result.size()) + ", concatenate=" + concatenate);
return result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void xmlInputStream() {\n inputStream = context.getResources().openRawResource(R.raw.flowers_xml);\n //stringInputStream = convertInputStreamToString(inputStream);\n //System.out.println(\"------------ InputStream ------------\\n\" + stringInputStream);\n //------------------------------------------------------------------------------------------\n }",
"public ArrayList<Layout> xmlFileToLayoutsPalette(String fileName, boolean concatenate) {\n\n InputStream fis;\n try {\n try {\n fis = mContext.openFileInput(fileName);\n //Log.i(TAG, \"#URI_1 xmlFileToLayoutsPalette START, file=\" + fileName + \", concatenate=\" + concatenate);\n } catch (IllegalArgumentException e) {\n fis = new FileInputStream(new File(fileName));\n //Log.i(TAG, \"#URI_2 xmlFileToLayoutsPalette START, file=\" + fileName + \", concatenate=\" + concatenate);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n\n return xmlFileToLayoutsPalette(fis, concatenate);\n }",
"private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }",
"@Override\n public void run() {\n try {\n final String filename = Environment.getExternalStorageDirectory().toString() + \"/FeedEx_\"\n + System.currentTimeMillis() + \".opml\";\n\n // OPML.exportToFile(filename);\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), String.format(getString(R.string.message_exported_to), filename),\n Toast.LENGTH_LONG).show();\n }\n });\n } catch (Exception e) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), R.string.error_feed_export, Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"public void testRead() throws Exception\n {//��װ����\n InputStream inputStream=getInstrumentation().getTargetContext().getAssets().open(\"new_file.xml\");\n\n\n Log.v(\"abcd\", \"\"+inputStream);\n List<Person> personsList = ReadXmlByPullService.ReadXmlByPull(inputStream);\n Log.v(\"abcd\", personsList.get(0).getName());\n\n for (Iterator iterator = personsList.iterator(); iterator.hasNext();) {\n Person person = (Person) iterator.next();\n Log.v(PERSONSTRING, person.toString());\n }\n\n }",
"@Override\n public void run() {\n try {\n //OPML.importFromFile(Environment.getExternalStorageDirectory().toString() + File.separator\n // + fileNames[which]);\n } catch (Exception e) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), R.string.error_feed_import, Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void appendData_File(String BSSID){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.FILE_NAME, Context.MODE_APPEND));\n BSSID+=\",\";\n outputStreamWriter.write(BSSID);\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n finally {\n try{\n if(outputStreamWriter!=null)\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }\n }",
"public void run() {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(\"<files>\");\n\t\t\t\tsb.append(\"<file>\");\n\t\t\t\tsb.append(\"<username>\");\n\t\t\t\tsb.append(e1);\n\t\t\t\tsb.append(\"</username>\");\n\t\t\t\t\n\t\t\t\tsb.append(\"<password>\");\n\t\t\t\tsb.append(e2);\n\t\t\t\tsb.append(\"</password>\");\n\t\t\t\t\n\t\t\t\tsb.append(\"<email>\");\n\t\t\t\tsb.append(e4);\n\t\t\t\tsb.append(\"</email>\");\n\t\t\t\tsb.append(\"<name>\");\n\t\t\t\tsb.append(e5);\n\t\t\t\tsb.append(\"</name>\");\n\t\t\t\t\n\t\t\t\tsb.append(\"<sex>\");\n\t\t\t\tsb.append(i);\n\t\t\t\tsb.append(\"</sex>\");\n\t\t\t\tsb.append(\"<phone>\");\n\t\t\t\tsb.append(e6);\n\t\t\t\tsb.append(\"</phone>\");\n\t\t\t\tsb.append(\"<headname>\");\n\t\t\t\tsb.append(url);\n\t\t\t\tsb.append(\"</headname>\");\n\t\t\t\tsb.append(\"<head>\");\n\t\t\t\tByteArrayOutputStream bo = new ByteArrayOutputStream();\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tFileInputStream f = new FileInputStream(\"/sdcard/\"+url);\n\t\t\t\tbyte []image = new byte [1024];\n\t\t\t\tint len = 0;\n\t\t\t\twhile ((len=f.read(image))!=-1){\n\t\t\t\t\tbo.write(image, 0, len);\n\t\t\t\t}\n\t\t\t\tbyte re[] = bo.toByteArray();\n\t\t\t\tString encond = Base64.encodeToString(re, Base64.DEFAULT);\n\t\t\t\n\t\t\t\tbo.close();\n\t\t\t\tf.close();\n\t\t\t\tsb.append(encond);\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\n\t\t\t\tsb.append(\"</head>\");\n\t\t\t\tsb.append(\"<job>\");\n\t\t\t\tsb.append(e8);\n\t\t\t\tsb.append(\"</job>\");\n\t\t\t\tsb.append(\"<address>\");\n\t\t\t\tsb.append(e9);\n\t\t\t\tsb.append(\"</address>\");\n\t\t\t\tsb.append(\"<circle>\");\n\t\t\t\tsb.append(e10);\n\t\t\t\tsb.append(\"</circle>\");\n\t\t\t\tsb.append(\"<guanzhu>\");\n\t\t\t\tsb.append(n1+\"\"+n2+\"\"+n3);\n\t\t\t\tsb.append(\"</guanzhu>\");\n\t\t\t\tsb.append(\"</file>\");\n\t\t\t\tsb.append(\"</files>\");\n\t\t\t\tbyte content[] = sb.toString().getBytes();\n\t\t\t\ttry {\n\t\t\t\t\tURL u = new URL(\"http://10.0.2.2:8080/Lvyou/LYRegisterServlet\");\n\t\t\t\t\tHttpURLConnection huc = (HttpURLConnection) u.openConnection();\n\t\t\t\t\thuc.setDoInput(true);\n\t\t\t\t\thuc.setDoOutput(true);\n\t\t\t\t\thuc.setRequestMethod(\"POST\");\n\t\t\t\t\thuc.setRequestProperty(\"Content-Type\", \"mutipart/form-data\");\n\t\t\t\t\thuc.setRequestProperty(\"Content-Length\", content.length+\"\");\n\t\t\t\t\thuc.getOutputStream().write(content);\n\t\t\t\t\tString str = \"\";\n\t\t\t\t\tif(huc.getResponseCode()==HttpURLConnection.HTTP_OK){\n\t\t\t\t\t\tInputStream in =huc.getInputStream();\n\t\t\t\t\n\t\t\t\t\t\tLYRegisterBean rb = new LYRegisterBean();\n\t\t\t\t\t\tString reg=rb.register(in);\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.obj=reg;\n\t\t\t\t\t\thb.sendMessage(msg);\n\n\n\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 }\n\t\t\t\t\t \n\t\t\t\tpd.cancel();\n\t\t\t}",
"void appendXML(String path, DocumentFragment fragment)\n throws ProcessingException;",
"String prepareFile();",
"public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tSalinlahiFour.getBgm().start();\n\t\t\n\t\t\n\t\t//Load File from res or assets\n\t\t//InputStream ins = getResources().openRawResource( getResources().getIdentifier(\"raw/properties\", \"raw\", getPackageName()));\n\t\tFile properties = new File(\"/sdcard/properties.txt\");\n\t\tif(!properties.exists()){\n\t\t\tFile config = new File (\"/sdcard/config.txt\");\n\t\t\tFile dhistory = new File (\"/sdcard/dhistory.txt\");\n\t\t\tFile lessonlibrary = new File (\"/sdcard/lessonlibrary.xml\");\n\t\t\tFile lexicon = new File (\"/sdcard/lexicon.xml\");\n\t\t\tFile lexicon_cooking = new File (\"/sdcard/lexicon_cooking.xml\");\n\t\t\tFile lexicon_family = new File (\"/sdcard/lexicon_family.xml\");\n\t\t\tFile lexicon_house = new File (\"/sdcard/lexicon_house.xml\");\n\t\t\tFile lexicon_shape = new File (\"/sdcard/lexicon_shape.xml\");\n\t\t\tFile templatecatalogue = new File (\"/sdcard/templatecatalogue.xml\");\n\t\ttry {\n\t\t\tproperties.createNewFile();\n\t\t\tconfig.createNewFile();\n\t\t\tdhistory.createNewFile();\n\t\t\tlessonlibrary.createNewFile();\n\t\t\tlexicon.createNewFile();\n\t\t\tlexicon_cooking.createNewFile();\n\t\t\ttemplatecatalogue.createNewFile();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t}\n\t\t//Copy file from res/assets to file from SDCARD\n\t\t InputStream in = getResources().openRawResource(R.raw.properties);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/properties.txt\");\n\t\t byte[] buff = new byte[1024];\n\t\t int read = 0;\n\n\t\t \n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t \n\t\t \n\t\t in.close();\n\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.config);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/config.txt\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.dhistory);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/dhistory.txt\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lessonlibrary);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lessonlibrary.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t \n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_cooking);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_cooking.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_family);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_family.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_house);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_house.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.lexicon_shape);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/lexicon_shape.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t in.close();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t in = getResources().openRawResource(R.raw.templatecatalogue);\n\t\t try{\n\t\t FileOutputStream out = new FileOutputStream(\"/sdcard/templatecatalogue.xml\");\n\t\t byte[] buff = new byte[4096];\n\t\t int read = 0;\n\t\t while ((read = in.read(buff)) > 0) {\n\t\t out.write(buff, 0, read);\n\t\t \n\t\t in.close();\n\t\t \n\t\t out.flush();\n\t\t out.close();\n\t\t }\n\t\t }catch(Exception e){\n\t\t }\n\t\t \n\t\tSharedPreferences prefs = getSharedPreferences(\"appData\", MODE_PRIVATE);\n\t\tfinal int lastUserID = prefs.getInt(\"lastUserID\", -1);\n\t\tfinal int firstTime = prefs.getInt(\"firstTime\", -1);\n\t\t\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\t\t\n\t\tDatabaseHandler dbhandler = new DatabaseHandler(this);\n\n\t\tuserDetailOperator = new UserDetailOperations(this);\n\t\t\n\t\t ImageView cloud1 = (ImageView) findViewById(R.id.Splash_Cloud1);\n\t\t ImageView cloud2 = (ImageView) findViewById(R.id.Splash_Cloud2);\n\t\t //ImageView logo = (ImageView) findViewById(R.id.Splash_Logo);\n\t\t TranslateAnimation animation = new TranslateAnimation(0.0f, 100.0f,0.0f, 0.0f);\n\t\t TranslateAnimation animation2 = new TranslateAnimation(0.0f, 100.0f,0.0f, 0.0f);\n\t\t// TranslateAnimation animation3 = new TranslateAnimation(0.0f, 0.0f,0.0f, -400.0f);\n\t\t animation.setDuration(SPLASH_TIME);\n\t\t \n\t\t animation.setRepeatCount(1);\n\t\t //animation.setRepeatMode(2);\n\t\t //animation.setFillAfter(true);\n\t\t animation2.setDuration(SPLASH_TIME+3000);\n\t\t animation2.setRepeatCount(1);\n\t\t //animation2.setRepeatMode(2);\n\t\t// animation2.setFillAfter(true);\n\t\t //animation3.setDuration(SPLASH_TIME);\n\t\t// animation3.setRepeatCount(1);\n\t\t //animation3.setRepeatMode(2);\n\t\t //animation3.setFillAfter(true);\n\t\t cloud1.startAnimation(animation);\n\t\t cloud2.startAnimation(animation2);\n\t\t //logo.startAnimation(animation3);\n\t\t new Handler().postDelayed(new Runnable() {\n\n\t\t public void run() {\n\t\t \tif(firstTime == -1){\t//If app is launched for the first time ever, go to Register Screen\n\t\t \t\tIntent intent = new Intent();\n\t\t \t\tintent.setClass(getApplicationContext(), RegistrationActivityName.class);\n\t\t \t\tstartActivity(intent);\n\n\t\t \t}\n\t\t \telse if(lastUserID == -1){ //If there is no last logged in user, go to Login Screen\n\t\t\t \tIntent intent = new Intent();\n\t\t\t \tintent.setClass(getApplicationContext(), LoginActivity.class);\n\t\t\t \tstartActivity(intent);\t\t\t\n\t\t \t}\n\t\t \telse{\t\t\t\t\t\t//If there is a last logged in user, go to Map Screen\n\t\t \t\tuserDetailOperator.open();\n\t\t \t\tUserDetail user = userDetailOperator.getUserDetail(lastUserID);\n\t\t \t\tuserDetailOperator.close();\n\t\t \t\tIntent intent = new Intent();\n\t\t \t\t\n\t\t \t\tintent.putExtra(\"UserID\", user.getId());\t\t \t\t\n\t\t \t\tif(lastUserID != -1){\n\t\t\t \t\t((SalinlahiFour)getApplication()).setLoggedInUser(user);\n\t\t\t \t\tintent.setClass(getApplicationContext(), MapActivity.class);\n\t\t \t\t}else\n\t\t\t \t\tintent.setClass(getApplicationContext(), RegistrationActivityName.class);\n\t\t \t\t\tstartActivity(intent);\n\t\t \t\t}\n//\t\t MainActivity.this.finish();\n\t\t } \n\n\t\t }, SPLASH_TIME);\n\t\t \n\t}",
"public static void d(android.content.Context r11) {\n /*\n r10 = 1;\n r1 = 0;\n r4 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n r0 = new java.io.File;\n r2 = new java.io.File;\n r3 = com.whatsapp.App.ao;\n r5 = z;\n r6 = 25;\n r5 = r5[r6];\n r2.<init>(r3, r5);\n r3 = z;\n r5 = 19;\n r3 = r3[r5];\n r0.<init>(r2, r3);\n r5 = new java.io.File;\n r2 = r11.getFilesDir();\n r3 = z;\n r6 = 30;\n r3 = r3[r6];\n r5.<init>(r2, r3);\n r2 = r0.exists();\t Catch:{ IOException -> 0x0032 }\n if (r2 != 0) goto L_0x0034;\n L_0x0031:\n return;\n L_0x0032:\n r0 = move-exception;\n throw r0;\n L_0x0034:\n r6 = new java.io.File;\n r2 = r11.getFilesDir();\n r3 = z;\n r7 = 16;\n r3 = r3[r7];\n r6.<init>(r2, r3);\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r7 = 22;\n r3 = r3[r7];\n r2 = r2.append(r3);\n r3 = r0.getName();\n r2 = r2.append(r3);\n r3 = \" \";\n r2 = r2.append(r3);\n r8 = r0.length();\n r2 = r2.append(r8);\n r2 = r2.toString();\n com.whatsapp.util.Log.i(r2);\n r2 = new java.io.FileOutputStream;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r3 = 0;\n r2.<init>(r6, r3);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r3 = java.nio.channels.Channels.newChannel(r2);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r2 = new java.io.FileInputStream;\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n r2.<init>(r0);\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n r2 = r2.getChannel();\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n com.whatsapp.util.at.a(r2, r3);\t Catch:{ IOException -> 0x0212, all -> 0x0208 }\n r2.close();\t Catch:{ IOException -> 0x0212, all -> 0x0208 }\n r2 = 0;\n r3.close();\t Catch:{ IOException -> 0x020e, all -> 0x0205 }\n r3 = 0;\n r0 = new android.graphics.BitmapFactory$Options;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0.<init>();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r7 = 1;\n r0.inJustDecodeBounds = r7;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r7 = r6.getAbsolutePath();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n android.graphics.BitmapFactory.decodeFile(r7, r0);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r7 = r0.outWidth;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = z;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r8 = 24;\n r0 = r0[r8];\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r11.getSystemService(r0);\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = (android.view.WindowManager) r0;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r8 = r0.getDefaultDisplay();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r11.getResources();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r0.getConfiguration();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n r0 = r0.orientation;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n if (r0 != r10) goto L_0x00c0;\n L_0x00ba:\n r0 = r8.getWidth();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n if (r4 == 0) goto L_0x00c4;\n L_0x00c0:\n r0 = r8.getHeight();\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n L_0x00c4:\n if (r0 == r7) goto L_0x00d1;\n L_0x00c6:\n r0 = z;\t Catch:{ IOException -> 0x0118, all -> 0x01b4 }\n r7 = 27;\n r0 = r0[r7];\t Catch:{ IOException -> 0x0118, all -> 0x01b4 }\n com.whatsapp.util.Log.w(r0);\t Catch:{ IOException -> 0x0118, all -> 0x01b4 }\n if (r4 == 0) goto L_0x00eb;\n L_0x00d1:\n r0 = r6.renameTo(r5);\t Catch:{ IOException -> 0x011a, all -> 0x01b4 }\n if (r0 != 0) goto L_0x00e2;\n L_0x00d7:\n r0 = z;\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n r5 = 28;\n r0 = r0[r5];\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n com.whatsapp.util.Log.e(r0);\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n if (r4 == 0) goto L_0x00eb;\n L_0x00e2:\n r0 = z;\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n r4 = 18;\n r0 = r0[r4];\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n L_0x00eb:\n if (r1 == 0) goto L_0x00f0;\n L_0x00ed:\n r2.close();\t Catch:{ IOException -> 0x016f, RuntimeException -> 0x016d }\n L_0x00f0:\n if (r1 == 0) goto L_0x0031;\n L_0x00f2:\n r3.close();\t Catch:{ IOException -> 0x00f7, RuntimeException -> 0x0190 }\n goto L_0x0031;\n L_0x00f7:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = z;\n r3 = 31;\n r2 = r2[r3];\n r1 = r1.append(r2);\n r0 = r0.toString();\n r0 = r1.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x0031;\n L_0x0118:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x011a, all -> 0x01b4 }\n L_0x011a:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x011c, all -> 0x01b4 }\n L_0x011c:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x011e, all -> 0x01b4 }\n L_0x011e:\n r0 = move-exception;\n throw r0;\t Catch:{ IOException -> 0x0120, all -> 0x01b4 }\n L_0x0120:\n r0 = move-exception;\n r2 = r1;\n L_0x0122:\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x020c }\n r3.<init>();\t Catch:{ all -> 0x020c }\n r4 = z;\t Catch:{ all -> 0x020c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ all -> 0x020c }\n r3 = r3.append(r4);\t Catch:{ all -> 0x020c }\n r0 = r0.toString();\t Catch:{ all -> 0x020c }\n r0 = r3.append(r0);\t Catch:{ all -> 0x020c }\n r0 = r0.toString();\t Catch:{ all -> 0x020c }\n com.whatsapp.util.Log.w(r0);\t Catch:{ all -> 0x020c }\n if (r1 == 0) goto L_0x0145;\n L_0x0142:\n r1.close();\t Catch:{ IOException -> 0x0192 }\n L_0x0145:\n if (r2 == 0) goto L_0x0031;\n L_0x0147:\n r2.close();\t Catch:{ IOException -> 0x014c, RuntimeException -> 0x01b2 }\n goto L_0x0031;\n L_0x014c:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = z;\n r3 = 17;\n r2 = r2[r3];\n r1 = r1.append(r2);\n r0 = r0.toString();\n r0 = r1.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x0031;\n L_0x016d:\n r0 = move-exception;\n throw r0;\n L_0x016f:\n r0 = move-exception;\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r4 = z;\n r5 = 29;\n r4 = r4[r5];\n r2 = r2.append(r4);\n r0 = r0.toString();\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x00f0;\n L_0x0190:\n r0 = move-exception;\n throw r0;\n L_0x0192:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r3 = z;\n r4 = 20;\n r3 = r3[r4];\n r1 = r1.append(r3);\n r0 = r0.toString();\n r0 = r1.append(r0);\n r0 = r0.toString();\n com.whatsapp.util.Log.w(r0);\n goto L_0x0145;\n L_0x01b2:\n r0 = move-exception;\n throw r0;\n L_0x01b4:\n r0 = move-exception;\n r2 = r1;\n L_0x01b6:\n if (r1 == 0) goto L_0x01bb;\n L_0x01b8:\n r1.close();\t Catch:{ IOException -> 0x01c3, RuntimeException -> 0x01c1 }\n L_0x01bb:\n if (r2 == 0) goto L_0x01c0;\n L_0x01bd:\n r2.close();\t Catch:{ IOException -> 0x01e5, RuntimeException -> 0x01e3 }\n L_0x01c0:\n throw r0;\n L_0x01c1:\n r0 = move-exception;\n throw r0;\n L_0x01c3:\n r1 = move-exception;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = z;\n r5 = 23;\n r4 = r4[r5];\n r3 = r3.append(r4);\n r1 = r1.toString();\n r1 = r3.append(r1);\n r1 = r1.toString();\n com.whatsapp.util.Log.w(r1);\n goto L_0x01bb;\n L_0x01e3:\n r0 = move-exception;\n throw r0;\n L_0x01e5:\n r1 = move-exception;\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 21;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r1 = r1.toString();\n r1 = r2.append(r1);\n r1 = r1.toString();\n com.whatsapp.util.Log.w(r1);\n goto L_0x01c0;\n L_0x0205:\n r0 = move-exception;\n r2 = r3;\n goto L_0x01b6;\n L_0x0208:\n r0 = move-exception;\n r1 = r2;\n r2 = r3;\n goto L_0x01b6;\n L_0x020c:\n r0 = move-exception;\n goto L_0x01b6;\n L_0x020e:\n r0 = move-exception;\n r2 = r3;\n goto L_0x0122;\n L_0x0212:\n r0 = move-exception;\n r1 = r2;\n r2 = r3;\n goto L_0x0122;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.d(android.content.Context):void\");\n }",
"static void readWrites(FileInputStream raf,BufferedOutputStream bw, int numBytes,int indice) throws IOException {\n\n // System.out.println(\"frag num \"+ indice +\" Envoyé\");\n int nbsousfrag = numBytes/taillesousfrag; \n System.out.println(\"nombre des sous fragements : \" + nbsousfrag);\n int sousfragrest = numBytes % taillesousfrag;\n System.out.println(sousfragrest);\n for (int i=0; i < nbsousfrag; i++) { \n\t readWrite(raf,bw, taillesousfrag);\n \t System.out.println(\"sous frag num \"+ i +\" Envoyé\");\n\t}\n if (sousfragrest != 0) {\n\t\treadWrite(raf,bw, sousfragrest);\t\n\t}\n\n}",
"public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"private void loadData(String fileName, String cobrandPath)\n throws ParserConfigurationException, SAXException, IOException {\n\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(cobrandPath);\n\n Element root = doc.getDocumentElement();\n\n Element updateElement = doc.createElement(IConstants.IMAGE_FILE);\n Node updateText = doc.createTextNode(fileName);\n\n updateElement.appendChild(updateText);\n root.appendChild(updateElement);\n\n try {\n\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new FileOutputStream(\n cobrandPath));\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer transformer = transFactory.newTransformer();\n\n transformer.transform(source, result);\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void onFinish() {\n String filename = \"requesttemp.txt\";\n String string = Double.toString((totalChangeFarenheit-32)*5/9);\n FileOutputStream outputStream;\n\n try {\n FileOutputStream fos = openFileOutput(filename,\n Context.MODE_APPEND | Context.MODE_WORLD_READABLE);\n fos.write(string.getBytes());\n fos.close();\n\n String storageState = Environment.getExternalStorageState();\n if (storageState.equals(Environment.MEDIA_MOUNTED)) {\n File file = new File(getExternalFilesDir(null),\n filename);\n FileOutputStream fos2 = new FileOutputStream(file);\n fos2.write(string.getBytes());\n fos2.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try\n {\n InputStream instream = openFileInput(filename);\n if (instream != null)\n {\n InputStreamReader inputreader = new InputStreamReader(instream);\n BufferedReader buffreader = new BufferedReader(inputreader);\n String line;\n String line1=\"\";\n try\n {\n while ((line = buffreader.readLine()) != null)\n line1+=line;\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), line1, Toast.LENGTH_SHORT).show();\n }\n }\n catch (Exception e)\n {\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_SHORT).show();\n }\n\n // Send a toast\n// Toast.makeText(getApplicationContext(), \"Done\", Toast.LENGTH_SHORT).show();\n }",
"public void addFragmentShader(String fileName);",
"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 }",
"private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }",
"private void doClickOnButton() {\n EditText et = (EditText) findViewById(R.id.editText);\n String url = et.getText().toString();\n MessageDigest mdEnc = null;\n try{\n mdEnc = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n mdEnc.update(url.getBytes(), 0, url.length());\n String md5 = new BigInteger(1, mdEnc.digest()).toString(16);\n System.out.println(md5);\n\n try {\n Log.v(\"log1\", \"log1\");\n URL u = new URL(url);\n final URLConnection c = u.openConnection();\n File internal = getFilesDir();\n String test = internal.toString();\n Button b = (Button) findViewById(R.id.button);\n b.setText(test);\n final File f = new File(internal, md5);\n if (f.exists()){\n Log.v(\"log2\", \"log2\");\n FileInputStream is = new FileInputStream(f);\n\n InputStreamReader isr = new InputStreamReader(is);\n\n BufferedReader br = new BufferedReader(isr);\n\n\n StringBuilder sb = new StringBuilder();\n String line;\n while( (line = br.readLine()) != null) {\n sb.append(line);\n }\n String fileString = sb.toString();\n\n Log.v(\"log72\", \"log2\");\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(sb.toString(), \"crash\");\n t.setText(Html.fromHtml(fileString));\n }\n else{\n Log.v(\"log3\", \"log3\");\n //Créer le fichier\n f.createNewFile();\n Log.v(\"log7\", \"log7\");\n //récupérer les données de la page via serveur\n //du coup Thread\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n Log.v(\"log4\", \"log4\");\n BufferedReader br = null;\n try {\n Log.v(\"log5\", \"log5\");\n InputStream is = c.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n br = new BufferedReader(isr);\n final StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null){\n Log.v(\"log125\", \"log1\");\n sb.append(line);\n line = br.readLine();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // System.out.println(finalInputLine);\n FileOutputStream fos = null;\n try {\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(\"crash\", sb.toString());\n t.setText(Html.fromHtml(sb.toString()));\n Log.v(\"log123\", \"log1\");\n fos = new FileOutputStream(f);\n OutputStreamWriter fosw = new OutputStreamWriter(fos);\n BufferedWriter wr = new BufferedWriter(fosw);\n wr.write(sb.toString());\n Log.v(\"log12\", \"log1\");\n\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n\n }\n catch (IOException e) {\n Log.v(\"log6\", \"log6\");\n e.printStackTrace();\n }\n\n\n };\n });\n t.start();\n //paf on récupère\n //poof on met ça dans un fichier\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void file(Context context) {\n context.getFilesDir();\n File file = new File(context.getFilesDir() + \"/Comments.xml\");\n System.out.println(context.getFilesDir());\n if (!file.exists())\n {\n XmlSerializer serializer = Xml.newSerializer();\n StringWriter writer = new StringWriter();\n try {\n serializer.setOutput(writer);\n serializer.startDocument(\"UTF-8\", true);\n serializer.startTag(\"\", \"lista\");\n serializer.text(\"\");\n serializer.endTag(\"\", \"lista\");\n serializer.endDocument();\n String result = writer.toString();\n\n FileOutputStream fos = context.openFileOutput(\"Comments.xml\", Context.MODE_PRIVATE);\n fos.write(result.getBytes(), 0, result.getBytes().length);\n fos.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}",
"public void test() {\n String dirname = getVariableAsString(\"_PROJECT_DIR\"); \n\n String web_site = getVariableAsString(\"web_site\"); \n \n getContext().setVariable(\"dirname\", dirname);\n getContext().setVariable(\"check_detail\", web_site);\n \n String filename = dirname + \"\\\\result\\\\hreflist.csv\"; \n if(web_site.equals(\"doda\")){\n filename = dirname + \"\\\\result\\\\doda.csv\";\n getContext().setVariable(\"result2\", filename);\n }else if(web_site.equals(\"rikunabi\")){\n filename = dirname + \"\\\\result\\\\rikunabi.csv\";\n }\n String outputname = dirname + \"\\\\result\\\\hreflist.txt\"; \n\n try {\n getContext().setVariable(\"aaa\", \"aaa\");\n BufferedReader br = new BufferedReader(new FileReader(new File(filename)));\n getContext().setVariable(\"aaa\", \"bbb\");\n // PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(outputname)));\n PrintWriter pw = new PrintWriter(new FileWriter(new File(outputname)));\n getContext().setVariable(\"aaa\", \"ccc\");\n \n String line = \"\";\n boolean first = true;\n // int i=0;//test\n while ((line = br.readLine()) != null) {\n // i=i+1;//test\n // if(i==5)break;//test\n String array[] = line.split(\",\"); \n if (first) {\n first = false; \n } else {\n pw.println(array[0]); \n }\n }\n br.close();\n pw.close();\n\n } catch (FileNotFoundException e) {\n getContext().setVariable(\"result\", \"99\");\n } catch (IOException e) {\n getContext().setVariable(\"result\", \"999\");\n}\n }",
"XMLOut(String LegendFile, String start)\n\t\t{\n\t\t\tFileOutputStream fileStream = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfileStream = new FileOutputStream(LegendFile);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLOut(): \" + e);\n\t\t\t}\n\t\t\tXMLStream = new PrintStream(fileStream);\n\t\t\tstack = new String[top];\n\t\t\tsp = 0;\n\t\t\tpush(start);\n\t\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if ((requestCode == request_code) && (resultCode == RESULT_OK)){\n Toast.makeText(getApplicationContext(),data.getDataString(),Toast.LENGTH_LONG).show();\n elemento = new File(data.getDataString());\n }\n }",
"public void pulsar(View v){\n if (v.getId() == R.id.buttonAnadirFichInt) {\n try {\n OutputStreamWriter osw = new OutputStreamWriter(openFileOutput(\"texto.txt\", Context.MODE_PRIVATE));\n texto = editTextContenido.getText().toString();\n osw.write(texto);\n osw.close();\n } catch (Exception e) {\n Log.e(\"Ficheros\", \"Error!! al escribir el fichero a memoria interna\");\n }\n }\n\n //Leer el fichero en memoria interna\n if (v.getId() == R.id.buttonLeerFichInt) {\n try {\n BufferedReader fin = new BufferedReader(new InputStreamReader(openFileInput(\"texto.txt\")));\n texto = fin.readLine();\n fin.close();\n TextViewContenidoConFichero.setText(texto);\n } catch (Exception e) {\n Log.e(\"Ficheros\", \"ERROR!! al leer fichero desde memoria interna\");\n }\n }\n\n //Leer el fichero desde recursos\n if (v.getId() == R.id.buttonLeerRecurso){\n try {\n InputStream is = getResources().openRawResource(R.raw.texto_raw);\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String linea=br.readLine();\n while(linea!=null){\n TextViewContenidoConFichero.setText(TextViewContenidoConFichero.getText()+linea+\"\\n\");\n linea=br.readLine();\n }\n is.close();\n } catch (IOException e) {\n Log.e(\"Ficheros\", \"ERROR!! al leer fichero desde el recurso\");\n }\n }\n\n //Crear el fichero en memoria externa\n if(v.getId()==R.id.buttonAnadirFichExt){\n if(sdAccesoEscritura==true && sdDisponible==true){\n try{\n File ruta_sd= getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n //File ruta_sd = Context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n File f = new File(ruta_sd.getAbsolutePath(),\"prueba_sd.txt\");\n OutputStreamWriter sow =new OutputStreamWriter(new FileOutputStream(f, true));\n texto = editTextContenido.getText().toString();\n sow.write(texto);\n sow.close();\n Log.e(\"Fichero\",\"Fichero escrito correctamente\");\n }catch (Exception ex){\n Log.e(\"Fichero\",\" Error al escribir el fichero en tarjeta SD \"+ex.fillInStackTrace());\n }\n }else{\n Log.e(\"Fichero\",\"La SD no esta disponible\");\n }\n\n }\n\n //Leer el fichero en memoria externa\n if(v.getId()==R.id.buttonLeerFichExt){\n try {\n File ruta_sd=getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n File f=new File(ruta_sd.getAbsolutePath(),\"prueba_sd.txt\");\n BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n String linea=br.readLine();\n while(linea!=null){\n TextViewContenidoConFichero.setText(TextViewContenidoConFichero.getText()+linea+\"\\n\");\n linea=br.readLine();\n }\n br.close();\n } catch (Exception e) {\n Log.e(\"Ficheros\",\"Error!! en la lectura del fichero en SD\");\n }\n }\n\n //Borrar el fichero en memoria interno\n if(v.getId()==R.id.buttonBorrarFichInt){\n deleteFile(\"texto.txt\");\n Log.e(\"Eliminacion\",\"Archivo borrado\");\n }\n\n //Borrar el fichero en memoria externa\n if(v.getId()==R.id.buttonBorrarFichExt){\n File ruta_sd=getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n File f=new File(ruta_sd.getAbsolutePath(),\"prueba_sd.txt\");\n f.delete();\n Log.e(\"Eliminacion\",\"Archivo borrado\");\n }\n }",
"public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println(\"Linea \" + i);\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\t// Nuevamente aprovechamos el finally para\n\t\t\t\t// asegurarnos que se cierra el fichero.\n\t\t\t\tif (null != fichero) fichero.close();\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }",
"private void parseXmlFile(InputStream file)\n {\n\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n\ttry\n\t{\n\t // Using factory get an instance of document builder\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Creating a new Document Builder.\");\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\n\t // parse using builder to get DOM representation of the XML file\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Attempting to parse the file.\");\n\t // This line causes the program to crash when attempting to read the SVG file, which is in XML format.\n\t dom = db.parse(file);\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Finished parsing the file.\");\n\t}\n\tcatch (ParserConfigurationException pce)\n\t{\n\t Log.d(Constants.TAG, \"ParserConfigurationException MSG: \" + pce.getMessage());\n\n\t pce.printStackTrace();\n\t}\n\tcatch (SAXException se)\n\t{\n\t Log.d(Constants.TAG, \"SAXException MSG: \" + se.getMessage());\n\n\t se.printStackTrace();\n\t}\n\tcatch (IOException ioe)\n\t{\n\t Log.d(Constants.TAG, \"IOException MSG: \" + ioe.getMessage());\n\n\t ioe.printStackTrace();\n\t}\n\tcatch (Exception e)\n\t{\n\t Log.d(Constants.TAG, \"Exception MSG: \" + e.getMessage());\n\t e.printStackTrace();\n\t}\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseXmlFile() Exiting!\");\n }",
"private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void writeToFile(String data,Context context) {\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(context.openFileOutput(\"config.txt\", Context.MODE_PRIVATE));\n outputStreamWriter.write(data);\n outputStreamWriter.close();\n }\n catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"@Test\n public void in() throws IOException {\n InputStream in = getResourceAstream(\"peizhi.xml\");\n\n //InputStream in = new FileInputStream(\"G:\\\\IDEA\\\\Java_test\\\\src\\\\main\\\\resources\\\\peizhi.xml\");\n //定义一个数组相当于缓存\n byte by[]=new byte[1024];\n int n=0;\n while((n=in.read(by))!=-1)\n {\n String s=new String(by,0,n);\n System.out.println(s);\n }\n }",
"public void parseLog2(){\n\t\ttry{\n\t\t\tMxmlFile eventlog=new MxmlFile(res.getFileName());\n\t\t\t//log.info(\"processing \"+res.getFileName());\n\t\t\tres=eventlog.parse(eventlog.read(), res);\n\t\t\teventlog.close();\n\t\t}catch(Exception e){\n\t\t\tlog.warn(e.toString());\n\t\t}\n\t}",
"public String[] colorXml(String endPath) {\r\n\t\tString[] color = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\tcolor = colorXml.coloriXml(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\tcolor = null;\r\n\t\t}\r\n\r\n\t\treturn color;\r\n\t}",
"private void buildRTF() {\n\t\n}",
"public void execute() throws BuildException {\n super.execute();\n\n // minimal Renew logging configuration that forwards messages\n // to the Ant logging system\n Logger logger = Logger.getLogger(\"CH.ifa.draw\");\n AntTaskLogAppender appender = AntTaskLogAppender.getInstance(this);\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n logger = Logger.getLogger(\"de.renew\");\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n\n // get all files - out of the vector full of filesets -> 2 loops\n Iterator<FileSet> filesetIterator = filesets.iterator();\n while (filesetIterator.hasNext()) {\n FileSet elementFileSet = filesetIterator.next();\n DirectoryScanner dirScan = elementFileSet.getDirectoryScanner(getProject());\n String[] fileNames = dirScan.getIncludedFiles();\n log(\"filenames: \" + fileNames.length, Project.MSG_VERBOSE);\n\n for (int i = 0; i < fileNames.length; i++) {\n String fileName = fileNames[i];\n File inFile = new File(dirScan.getBasedir() + \"/\" + fileName);\n log(\"File: \" + inFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n // get drawing from file\n Drawing netDrawing = DrawingFileHelper.loadDrawing(inFile,\n new StatusDisplayer() {\n public void showStatus(String message) {\n log(message);\n }\n }); //rnw-Object\n log(\"Drawing: \" + netDrawing, Project.MSG_VERBOSE);\n\n if (netDrawing == null) {\n throw new BuildException(\"Could not read drawing file: \"\n + inFile);\n }\n\n // Export netDrawing\n try {\n File helpFile = new File(destdir + \"/\" + fileName); // helps to get the right directory path\n File outFile = new File(helpFile.getParent() + \"/\"\n + netDrawing.getName() + \".\"\n + defaultExtension);\n\n //create directories\n outFile.getParentFile().mkdirs();\n exportFormat.export(netDrawing, outFile);\n } catch (Exception e) {\n throw new BuildException(e);\n }\n }\n }\n }",
"private void parseXML(String rawXML){\n Log.w(\"AndroidParseXMLActivity\", \"Start Parsing\");\n SAXParserFactory factory = SAXParserFactory.newInstance();\n try {\n\n //Use the sax parser to parse the raw XML.\n SAXParser saxParser = factory.newSAXParser();\n XMLReader xmlreader = saxParser.getXMLReader();\n\n //Use the handler to parse the XML to text\n PaintingXMLHandler handler = new PaintingXMLHandler();\n xmlreader.setContentHandler(handler);\n\n //Objects to read the stream.\n InputSource inStream = new InputSource();\n inStream.setCharacterStream(new StringReader(rawXML));\n\n //Parse the input stream\n xmlreader.parse(inStream);\n\n //Get the map markers from the handler.\n if (handler.getPaintLines() != null) {\n touchArea.loadPainting(handler.getPaintLines());\n }\n setBackgroundColor(handler.getBackground());\n\n\n Toast.makeText(this, \"Loaded\", Toast.LENGTH_LONG).show();\n } catch (ParserConfigurationException e) {\n Toast.makeText(this, \"Error 1 reading xml file.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (SAXException e) {\n Toast.makeText(this, \"Error 2 reading xml file.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }catch(IOException e){\n Toast.makeText(this, \"Error 3 reading xml file.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }",
"public void saveData(int argLowAlpha, int argHighAlpha, int argLowBeta, int argHighBeta, int argLowGamma, int argMidGamma, int argDelta, int argTheta) {\n\n try {\n File sdCard = Environment.getExternalStorageDirectory();\n File dir = new File(sdCard.getAbsolutePath() + \"/cerebro_files/\");\n dir.mkdirs();\n\n if (fileCountFlag == 0) {\n File[] files = dir.listFiles();\n int numberOfFiles = files.length;\n String index = new Integer(numberOfFiles + 1).toString();\n Toast.makeText(getApplicationContext(), \"Number of files is: \"+index, Toast.LENGTH_SHORT).show();\n filename = \"file\" + index + \".csv\";\n fileCountFlag = 1;\n }\n\n //File file = new File(dir, \"filename1.csv\"+index);\n File file = new File(dir, filename);\n //Toast.makeText(getApplicationContext(), \"init file\",Toast.LENGTH_SHORT).show();\n\n FileOutputStream f = new FileOutputStream(file, true);\n\n //Toast.makeText(getApplicationContext(), \"got output stream\",Toast.LENGTH_SHORT).show();\n\n //String strLowAlpha = new Integer(lowAlpha).toString();\n String strHighAlpha = new Integer(argHighAlpha).toString();\n String strLowBeta = new Integer(argLowBeta).toString();\n String strHighBeta = new Integer(argHighBeta).toString();\n String strLowGamma = new Integer(argLowGamma).toString();\n String strMidGamma = new Integer(argMidGamma).toString();\n String strDelta = new Integer(argDelta).toString();\n String strTheta = new Integer(argTheta).toString();\n\n //string1 = string1 + \"\\n\";\n\n String strCSV = new Integer(argLowAlpha).toString();\n\n strCSV = strCSV+','+strHighAlpha+','+strLowBeta+','+strHighBeta+','+strLowGamma+','+strMidGamma+','+strDelta+','+strTheta+'\\n';\n\n //f.write(string.getBytes());\n //bf.write(passData.getBytes());\n f.write(strCSV.getBytes());\n //Toast.makeText(getApplicationContext(), \"Done writing\",Toast.LENGTH_SHORT).show();\n f.close();\n //Toast.makeText(getApplicationContext(), \"File buffer closed\",Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"failed to write\",Toast.LENGTH_SHORT).show();\n }\n }",
"public void write_as_xml ( File series_file, Reconstruct r ) {\n try {\n String new_path_name = series_file.getParentFile().getCanonicalPath();\n String ser_file_name = series_file.getName();\n String new_file_name = ser_file_name.substring(0,ser_file_name.length()-4) + file_name.substring(file_name.lastIndexOf(\".\"),file_name.length());\n // At this point, there should be no more exceptions, so change the actual member data for this object\n this.path_name = new_path_name;\n this.file_name = new_file_name;\n priority_println ( 100, \" Writing to Section file \" + this.path_name + \" / \" + this.file_name );\n\n File section_file = new File ( this.path_name + File.separator + this.file_name );\n\n PrintStream sf = new PrintStream ( section_file );\n sf.print ( \"<?xml version=\\\"1.0\\\"?>\\n\" );\n sf.print ( \"<!DOCTYPE Section SYSTEM \\\"section.dtd\\\">\\n\\n\" );\n\n if (this.section_doc != null) {\n Element section_element = this.section_doc.getDocumentElement();\n if ( section_element.getNodeName().equalsIgnoreCase ( \"Section\" ) ) {\n int seca = 0;\n sf.print ( \"<\" + section_element.getNodeName() );\n // Write section attributes in line\n for ( /*int seca=0 */; seca<section_attr_names.length; seca++) {\n sf.print ( \" \" + section_attr_names[seca] + \"=\\\"\" + section_element.getAttribute(section_attr_names[seca]) + \"\\\"\" );\n }\n sf.print ( \">\\n\" );\n\n // Handle the child nodes\n if (section_element.hasChildNodes()) {\n NodeList child_nodes = section_element.getChildNodes();\n for (int cn=0; cn<child_nodes.getLength(); cn++) {\n Node child = child_nodes.item(cn);\n if (child.getNodeName().equalsIgnoreCase ( \"Transform\")) {\n Element transform_element = (Element)child;\n int tfa = 0;\n sf.print ( \"<\" + child.getNodeName() );\n for ( /*int tfa=0 */; tfa<transform_attr_names.length; tfa++) {\n sf.print ( \" \" + transform_attr_names[tfa] + \"=\\\"\" + transform_element.getAttribute(transform_attr_names[tfa]) + \"\\\"\" );\n if (transform_attr_names[tfa].equals(\"dim\") || transform_attr_names[tfa].equals(\"xcoef\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \">\\n\" );\n if (transform_element.hasChildNodes()) {\n NodeList transform_child_nodes = transform_element.getChildNodes();\n for (int gcn=0; gcn<transform_child_nodes.getLength(); gcn++) {\n Node grandchild = transform_child_nodes.item(gcn);\n if (grandchild.getNodeName().equalsIgnoreCase ( \"Image\")) {\n Element image_element = (Element)grandchild;\n int ia = 0;\n sf.print ( \"<\" + image_element.getNodeName() );\n for ( /*int ia=0 */; ia<image_attr_names.length; ia++) {\n sf.print ( \" \" + image_attr_names[ia] + \"=\\\"\" + image_element.getAttribute(image_attr_names[ia]) + \"\\\"\" );\n if (image_attr_names[ia].equals(\"blue\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \" />\\n\" );\n } else if (grandchild.getNodeName().equalsIgnoreCase ( \"Contour\")) {\n Element contour_element = (Element)grandchild;\n int ca = 0;\n sf.print ( \"<\" + contour_element.getNodeName() );\n for ( /*int ca=0 */; ca<contour_attr_names.length; ca++) {\n // System.out.println ( \"Writing \" + contour_attr_names[ca] );\n if (contour_attr_names[ca].equals(\"points\")) {\n // Check to see if this contour element has been modified\n boolean modified = false; // This isn't being used, but should be!!\n ContourClass matching_contour = null;\n for (int cci=0; cci<contours.size(); cci++) {\n ContourClass contour = contours.get(cci);\n if (contour.contour_element == contour_element) {\n matching_contour = contour;\n break;\n }\n }\n if (matching_contour == null) {\n // Write out the data from the original XML\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", true) + \"\\\"\" );\n } else {\n // Write out the data from the stroke points\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(matching_contour.stroke_points,\"\\t\", true) + \"\\\"\" );\n }\n } else if (contour_attr_names[ca].equals(\"handles\")) {\n if (r.export_handles) {\n String handles_str = contour_element.getAttribute(contour_attr_names[ca]);\n if (handles_str != null) {\n handles_str = handles_str.trim();\n if (handles_str.length() > 0) {\n // System.out.println ( \"Writing a handles attribute = \" + contour_element.getAttribute(contour_attr_names[ca]) );\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", false) + \"\\\"\\n\" );\n }\n }\n }\n } else if (contour_attr_names[ca].equals(\"type\")) {\n if (r.export_handles) {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n } else {\n // Don't output the \"type\" attribute if not exporting handles (this makes the traces non-bezier)\n }\n } else {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n if (contour_attr_names[ca].equals(\"mode\")) {\n sf.print ( \"\\n\" );\n }\n }\n }\n sf.print ( \"/>\\n\" );\n }\n }\n }\n sf.print ( \"</\" + child.getNodeName() + \">\\n\\n\" );\n }\n }\n }\n\n // Also write out any new contours created by drawing\n\n for (int i=0; i<contours.size(); i++) {\n ContourClass contour = contours.get(i);\n ArrayList<double[]> s = contour.stroke_points;\n ArrayList<double[][]> h = contour.handle_points;\n if (s.size() > 0) {\n if (contour.modified) {\n if (contour.contour_name == null) {\n contour.contour_name = \"RGB_\";\n if (contour.r > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.g > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.b > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n }\n sf.print ( \"<Transform dim=\\\"0\\\"\\n\" );\n sf.print ( \" xcoef=\\\" 0 1 0 0 0 0\\\"\\n\" );\n sf.print ( \" ycoef=\\\" 0 0 1 0 0 0\\\">\\n\" );\n String contour_color = \"\\\"\" + contour.r + \" \" + contour.g + \" \" + contour.b + \"\\\"\";\n sf.print ( \"<Contour name=\\\"\" + contour.contour_name + \"\\\" \" );\n if (contour.is_bezier) {\n sf.print ( \"type=\\\"bezier\\\" \" );\n } else {\n // sf.print ( \"type=\\\"line\\\" \" );\n }\n sf.print ( \"hidden=\\\"false\\\" closed=\\\"true\\\" simplified=\\\"false\\\" border=\" + contour_color + \" fill=\" + contour_color + \" mode=\\\"13\\\"\\n\" );\n\n if (contour.is_bezier) {\n if (h.size() > 0) {\n sf.print ( \" handles=\\\"\" );\n System.out.println ( \"Saving handles inside Section.write_as_xml\" );\n for (int j=h.size()-1; j>=0; j+=-1) {\n // for (int j=0; j<h.size(); j++) {\n double p[][] = h.get(j);\n if (j != 0) {\n sf.print ( \" \" );\n }\n System.out.println ( \" \" + p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] );\n sf.print ( p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] + \",\\n\" );\n }\n sf.print ( \" \\\"\\n\" );\n }\n }\n\n sf.print ( \" points=\\\"\" );\n for (int j=s.size()-1; j>=0; j+=-1) {\n double p[] = s.get(j);\n if (j != s.size()-1) {\n sf.print ( \" \" );\n }\n sf.print ( p[0] + \" \" + p[1] + \",\\n\" );\n }\n sf.print ( \" \\\"/>\\n\" );\n sf.print ( \"</Transform>\\n\\n\" );\n }\n }\n }\n\n sf.print ( \"</\" + section_element.getNodeName() + \">\" );\n }\n }\n sf.close();\n\n } catch (Exception e) {\n }\n }",
"public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); i++){\n outputStream.write((int)paintStack.get(i).getStrokeWidth()); //One byte is enough, max if 50\n outputStream.write(paintStack.get(i).getAlpha());\n //Red, Green, Blue\n outputStream.write((paintStack.get(i).getColor() & 0xFF0000) >> (4*4));\n outputStream.write((paintStack.get(i).getColor() & 0xFF00) >> (2*4));\n outputStream.write(paintStack.get(i).getColor() & 0xFF);\n\n outputStream.write(NEXT_LINE);\n for(int j = 0; j < pathPointsStack.get(i).size(); j+=2){\n //First point - have to save points byte at a time.\n outputStream.write(pathPointsStack.get(i).get(j) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j));\n //Second point\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j+1));\n if(j+2 == pathPointsStack.get(i).size()){\n outputStream.write(NEXT_PATH);\n }\n else{\n outputStream.write(NEXT_LINE);\n }\n }\n }\n outputStream.write(END_OF_PATHS);\n outputStream.close();\n } catch (Exception e) {\n Toast.makeText(getContext(), \"Error saving the file\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void run() {\n /*\n r25 = this;\n r5 = 0;\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ FileNotFoundException -> 0x0077 }\n r22 = r0;\n r22 = r22.mContext;\t Catch:{ FileNotFoundException -> 0x0077 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ FileNotFoundException -> 0x0077 }\n r23 = r0;\n r23 = r23.mHistoryFileName;\t Catch:{ FileNotFoundException -> 0x0077 }\n r5 = r22.openFileInput(r23);\t Catch:{ FileNotFoundException -> 0x0077 }\n r13 = android.util.Xml.newPullParser();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 0;\n r0 = r22;\n r13.setInput(r5, r0);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r18 = 0;\n L_0x0026:\n r22 = 1;\n r0 = r18;\n r1 = r22;\n if (r0 == r1) goto L_0x0036;\n L_0x002e:\n r22 = 2;\n r0 = r18;\n r1 = r22;\n if (r0 != r1) goto L_0x0079;\n L_0x0036:\n r22 = \"historical-records\";\n r23 = r13.getName();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = r22.equals(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n if (r22 != 0) goto L_0x007e;\n L_0x0042:\n r22 = new org.xmlpull.v1.XmlPullParserException;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r23 = \"Share records file does not start with historical-records tag.\";\n r22.<init>(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n throw r22;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x004a:\n r21 = move-exception;\n r22 = com.actionbarsherlock.widget.ActivityChooserModel.LOG_TAG;\t Catch:{ all -> 0x0159 }\n r23 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0159 }\n r24 = \"Error reading historical recrod file: \";\n r23.<init>(r24);\t Catch:{ all -> 0x0159 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x0159 }\n r24 = r0;\n r24 = r24.mHistoryFileName;\t Catch:{ all -> 0x0159 }\n r23 = r23.append(r24);\t Catch:{ all -> 0x0159 }\n r23 = r23.toString();\t Catch:{ all -> 0x0159 }\n r0 = r22;\n r1 = r23;\n r2 = r21;\n android.util.Log.e(r0, r1, r2);\t Catch:{ all -> 0x0159 }\n if (r5 == 0) goto L_0x0076;\n L_0x0073:\n r5.close();\t Catch:{ IOException -> 0x01aa }\n L_0x0076:\n return;\n L_0x0077:\n r6 = move-exception;\n goto L_0x0076;\n L_0x0079:\n r18 = r13.next();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n goto L_0x0026;\n L_0x007e:\n r15 = new java.util.ArrayList;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r15.<init>();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x0083:\n r18 = r13.next();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 1;\n r0 = r18;\n r1 = r22;\n if (r0 != r1) goto L_0x00ca;\n L_0x008f:\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = r0;\n r23 = r22.mInstanceLock;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n monitor-enter(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r19 = new java.util.LinkedHashSet;\t Catch:{ all -> 0x01a7 }\n r0 = r19;\n r0.<init>(r15);\t Catch:{ all -> 0x01a7 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x01a7 }\n r22 = r0;\n r8 = r22.mHistoricalRecords;\t Catch:{ all -> 0x01a7 }\n r9 = r8.size();\t Catch:{ all -> 0x01a7 }\n r10 = r9 + -1;\n L_0x00b1:\n if (r10 >= 0) goto L_0x0160;\n L_0x00b3:\n r22 = r8.size();\t Catch:{ all -> 0x01a7 }\n r24 = r19.size();\t Catch:{ all -> 0x01a7 }\n r0 = r22;\n r1 = r24;\n if (r0 != r1) goto L_0x016f;\n L_0x00c1:\n monitor-exit(r23);\t Catch:{ all -> 0x01a7 }\n if (r5 == 0) goto L_0x0076;\n L_0x00c4:\n r5.close();\t Catch:{ IOException -> 0x00c8 }\n goto L_0x0076;\n L_0x00c8:\n r22 = move-exception;\n goto L_0x0076;\n L_0x00ca:\n r22 = 3;\n r0 = r18;\n r1 = r22;\n if (r0 == r1) goto L_0x0083;\n L_0x00d2:\n r22 = 4;\n r0 = r18;\n r1 = r22;\n if (r0 == r1) goto L_0x0083;\n L_0x00da:\n r12 = r13.getName();\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = \"historical-record\";\n r0 = r22;\n r22 = r0.equals(r12);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n if (r22 != 0) goto L_0x011f;\n L_0x00e8:\n r22 = new org.xmlpull.v1.XmlPullParserException;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r23 = \"Share records file not well-formed.\";\n r22.<init>(r23);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n throw r22;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x00f0:\n r11 = move-exception;\n r22 = com.actionbarsherlock.widget.ActivityChooserModel.LOG_TAG;\t Catch:{ all -> 0x0159 }\n r23 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0159 }\n r24 = \"Error reading historical recrod file: \";\n r23.<init>(r24);\t Catch:{ all -> 0x0159 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x0159 }\n r24 = r0;\n r24 = r24.mHistoryFileName;\t Catch:{ all -> 0x0159 }\n r23 = r23.append(r24);\t Catch:{ all -> 0x0159 }\n r23 = r23.toString();\t Catch:{ all -> 0x0159 }\n r0 = r22;\n r1 = r23;\n android.util.Log.e(r0, r1, r11);\t Catch:{ all -> 0x0159 }\n if (r5 == 0) goto L_0x0076;\n L_0x0117:\n r5.close();\t Catch:{ IOException -> 0x011c }\n goto L_0x0076;\n L_0x011c:\n r22 = move-exception;\n goto L_0x0076;\n L_0x011f:\n r22 = 0;\n r23 = \"activity\";\n r0 = r22;\n r1 = r23;\n r4 = r13.getAttributeValue(r0, r1);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 0;\n r23 = \"time\";\n r0 = r22;\n r1 = r23;\n r22 = r13.getAttributeValue(r0, r1);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r16 = java.lang.Long.parseLong(r22);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r22 = 0;\n r23 = \"weight\";\n r0 = r22;\n r1 = r23;\n r22 = r13.getAttributeValue(r0, r1);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r20 = java.lang.Float.parseFloat(r22);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r14 = new com.actionbarsherlock.widget.ActivityChooserModel$HistoricalRecord;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r0 = r16;\n r2 = r20;\n r14.<init>(r4, r0, r2);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n r15.add(r14);\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n goto L_0x0083;\n L_0x0159:\n r22 = move-exception;\n if (r5 == 0) goto L_0x015f;\n L_0x015c:\n r5.close();\t Catch:{ IOException -> 0x01ad }\n L_0x015f:\n throw r22;\n L_0x0160:\n r7 = r8.get(r10);\t Catch:{ all -> 0x01a7 }\n r7 = (com.actionbarsherlock.widget.ActivityChooserModel.HistoricalRecord) r7;\t Catch:{ all -> 0x01a7 }\n r0 = r19;\n r0.add(r7);\t Catch:{ all -> 0x01a7 }\n r10 = r10 + -1;\n goto L_0x00b1;\n L_0x016f:\n r8.clear();\t Catch:{ all -> 0x01a7 }\n r0 = r19;\n r8.addAll(r0);\t Catch:{ all -> 0x01a7 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x01a7 }\n r22 = r0;\n r24 = 1;\n r0 = r22;\n r1 = r24;\n r0.mHistoricalRecordsChanged = r1;\t Catch:{ all -> 0x01a7 }\n r0 = r25;\n r0 = com.actionbarsherlock.widget.ActivityChooserModel.this;\t Catch:{ all -> 0x01a7 }\n r22 = r0;\n r22 = r22.mHandler;\t Catch:{ all -> 0x01a7 }\n r24 = new com.actionbarsherlock.widget.ActivityChooserModel$HistoryLoader$1;\t Catch:{ all -> 0x01a7 }\n r24.<init>();\t Catch:{ all -> 0x01a7 }\n r0 = r22;\n r1 = r24;\n r0.post(r1);\t Catch:{ all -> 0x01a7 }\n monitor-exit(r23);\t Catch:{ all -> 0x01a7 }\n if (r5 == 0) goto L_0x0076;\n L_0x019f:\n r5.close();\t Catch:{ IOException -> 0x01a4 }\n goto L_0x0076;\n L_0x01a4:\n r22 = move-exception;\n goto L_0x0076;\n L_0x01a7:\n r22 = move-exception;\n monitor-exit(r23);\t Catch:{ all -> 0x01a7 }\n throw r22;\t Catch:{ XmlPullParserException -> 0x004a, IOException -> 0x00f0 }\n L_0x01aa:\n r22 = move-exception;\n goto L_0x0076;\n L_0x01ad:\n r23 = move-exception;\n goto L_0x015f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.actionbarsherlock.widget.ActivityChooserModel.HistoryLoader.run():void\");\n }",
"private void writeToFile(String data, Context context) throws FileNotFoundException\r\n{\n if (fileExists(this, \"todolist.txt\"))\r\n {\r\n\r\n FileOutputStream fOut = openFileOutput(\"todolist.txt\", MODE_APPEND);\r\n OutputStreamWriter osw = new OutputStreamWriter(fOut);\r\n try {\r\n osw.write(\"\\n\");\r\n osw.write(data);\r\n osw.flush();\r\n osw.close();\r\n } catch (IOException e) {\r\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\r\n }\r\n }\r\n // otherwise make the file\r\n else\r\n {\r\n FileOutputStream fos = null;\r\n\r\n fos = openFileOutput(\"todolist.txt\", MODE_PRIVATE);\r\n try {\r\n fos.write(data.getBytes());\r\n // Toast.makeText(this, getFilesDir() + \"/\" + \"todolist.txt\", Toast.LENGTH_LONG).show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n if (fos != null) {\r\n try {\r\n fos.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n}\r\n}",
"public void zapisz() {\n String nazwaPliku = \"Zadania\";\n FileOutputStream out;\n PrintWriter o = null;\n pobierz();\n\n try {\n out = openFileOutput(nazwaPliku, Context.MODE_APPEND);\n o = new PrintWriter(out);\n pobierz();\n o = zadanie.zapisz(o);\n\n\n Context context = getApplicationContext();\n CharSequence text = \"Zapisano\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n finally {\n o.close();\n }\n\n\n }",
"private void valoresconfiguracion() {\n\n String file_ultimanotificacion = \"ultima_notificacion\";\n\n String file_ramdom = \"ramdom_number_file\";\n\n String file_vibrar = \"vibrar_file\";\n String file_sonido = \"sonido_file\";\n String file_notificar = \"notificar_file\";\n String file_tipo = \"tipo_file\";\n String file_ringtone = \"ring_tone_file\";\n\n\n String file_nombre_ringtone = \"nombre_ringtone__file\";\n\n\n String ultimanotificacion_val = \"notexist\";\n\n\n String vibrar_val = \"11111\";\n String sonido_val = \"A\";\n String notificacion_val = \"11111\";\n String ringtone_val = \"A\";\n\n String tiposonidoval = \"11111\";\n String nombre_ringtone_val = \"A\";\n\n\n try {\n // FileOutputStream fileOutputStream = openFileOutput(file_name, MODE_PRIVATE);\n //fileOutputStream.write(parametro1.getBytes());\n\n\n // fileOutputStream.write(parametro2.getBytes());\n // fileOutputStream.write(parametro3.getBytes());\n // fileOutputStream.write(parametro4.getBytes());\n // fileOutputStream.write(parametro5.getBytes());\n // fileOutputStream.write(parametro6.getBytes());\n\n FileOutputStream fileOutputStream_ultimanot = openFileOutput(file_ultimanotificacion, MODE_PRIVATE);\n fileOutputStream_ultimanot.write(ultimanotificacion_val.getBytes());\n\n\n\n FileOutputStream fileOutputStream_ramdom = openFileOutput(file_ramdom, MODE_PRIVATE);\n fileOutputStream_ramdom.write(vibrar_val.getBytes());\n\n FileOutputStream fileOutputStream_vibrar = openFileOutput(file_vibrar, MODE_PRIVATE);\n fileOutputStream_vibrar.write(vibrar_val.getBytes());\n\n\n FileOutputStream fileOutputStream_sonido = openFileOutput(file_sonido, MODE_PRIVATE);\n fileOutputStream_sonido.write(sonido_val.getBytes());\n\n\n FileOutputStream fileOutputStream_notificar = openFileOutput(file_notificar, MODE_PRIVATE);\n fileOutputStream_notificar.write(notificacion_val.getBytes());\n\n\n FileOutputStream fileOutputStream_sonidotipo = openFileOutput(file_tipo, MODE_PRIVATE);\n fileOutputStream_sonidotipo.write(tiposonidoval.getBytes());\n\n\n FileOutputStream fileOutputStream_ring_tone = openFileOutput(file_ringtone, MODE_PRIVATE);\n fileOutputStream_ring_tone.write(ringtone_val.getBytes());\n\n\n FileOutputStream fileOutputStream_nombre_ring_tone = openFileOutput(file_nombre_ringtone, MODE_PRIVATE);\n fileOutputStream_nombre_ring_tone.write(nombre_ringtone_val.getBytes());\n\n\n fileOutputStream_nombre_ring_tone.close();\n\n fileOutputStream_ring_tone.close();\n\n\n fileOutputStream_sonidotipo.close();\n\n fileOutputStream_notificar.close();\n\n fileOutputStream_vibrar.close();\n\n fileOutputStream_sonido.close();\n\n // fileOutputStream.close();\n // Toast.makeText(getApplicationContext(), \"Configurado\", Toast.LENGTH_LONG).show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void createXMLFile() {\n\t int jmax = listOfRules.size();\n\t int j = 0;\n\t try {\n\t try {\n\n\t DocumentBuilderFactory docFactory = DocumentBuilderFactory\n\t .newInstance();\n\t DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t // root elements\n\t Document doc = docBuilder.newDocument();\n\t Element rootElement = doc.createElement(\"profile\");\n\t doc.appendChild(rootElement);\n\t // name\n\t Element name = doc.createElement(\"name\");\n\t name.appendChild(doc.createTextNode(\"Android Lint\"));\n\t rootElement.appendChild(name);\n\t // language\n\t Element language = doc.createElement(\"language\");\n\t language.appendChild(doc.createTextNode(\"Java\"));\n\t rootElement.appendChild(language);\n\t // rules\n\t Element rules = doc.createElement(\"rules\");\n\t rootElement.appendChild(rules);\n\n\t for (j = 0; j < jmax; j++) {\n\t Element rule = doc.createElement(\"rule\");\n\t rules.appendChild(rule);\n\t // repositoryKey\n\t Element repositoryKey = doc.createElement(\"repositoryKey\");\n\t repositoryKey\n\t .appendChild(doc.createTextNode(\"AndroidLint\"));\n\t rule.appendChild(repositoryKey);\n\t // key\n\t Element key = doc.createElement(\"key\");\n\t key.appendChild(doc.createTextNode(listOfRules.get(j)));\n\t rule.appendChild(key);\n\t }\n\n\t // write the content into xml file\n\t TransformerFactory transformerFactory = TransformerFactory\n\t .newInstance();\n\t Transformer transformer = transformerFactory.newTransformer();\n\t DOMSource source = new DOMSource(doc);\n\t StreamResult result = new StreamResult(new File(pathProfileXml+ANDROID_LINT_PROFILE_FILENAME\n\t ));\n\n\t transformer.transform(source, result);\n\n\t System.out.println(\"File \\\"\"+pathProfileXml+ANDROID_LINT_PROFILE_FILENAME+\"\\\" written.\");\n\t System.out.println(\"Quit.\");\n\n\t } catch (ParserConfigurationException pce) {\n\t pce.printStackTrace();\n\t } catch (TransformerException tfe) {\n\t tfe.printStackTrace();\n\t }\n\t } catch (Exception e) {\n\n\t }\n\t }",
"private String llegeix_arxiu(Context context, String nom_arxiu) {\n\n String ret = \"\";\n\n try {\n InputStream inputStream = context.openFileInput(nom_arxiu);\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString);\n stringBuilder.append(\"\\n\");\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n if(ret.length() == 0)\n {\n return \"\";\n }\n else\n {\n return ret;\n }\n }",
"public void copyConfigFile() throws IOException {\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(CONFIG_FILE);\n\n // Path to the just created empty db\n //String outFileName = DB_PATH + DATABASE_NAME;\n String outFileName = \"/sdcard/games/Config/ConfigA.txt\";\n\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) \r\n\t\t\t{\n\r\n\t\t\t\tAssetManager am = context.getAssets();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInputStream is = am.open(\"syb11.txt\"); \r\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(is));\r\n\t\t\t\t\tString inputLine;\r\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null)\r\n\t\t\t\t\t\tSystem.out.println(inputLine);\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void readFile() {\r\nif(isExternalStorageWritable()){\r\n Toast.makeText(this, \"Reading file.\", Toast.LENGTH_SHORT).show();\r\n StringBuilder sb = new StringBuilder();\r\n try{\r\n File textFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM + \"/Alluciam/\"), fileNameToUse);\r\n FileInputStream fis = new FileInputStream(textFile);\r\n if(fis != null){\r\n InputStreamReader isr = new InputStreamReader(fis);\r\n BufferedReader buff = new BufferedReader(isr);\r\n String line = null;\r\n while((line = buff.readLine()) != null){\r\n sb.append(line + \"\\n\\n\");\r\n }// this ends while line=buff.readLine\r\n fis.close();\r\n } // this ends if fis != null\r\n Toast.makeText(this, \"File has been read and closed.\", Toast.LENGTH_LONG).show();\r\n txt.setText(sb);\r\n } // this ends try\r\n catch (IOException e){\r\n Toast.makeText(this, \"IOException. File not found\", Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }// this ends catch\r\n} // this ends if isExternalStorageWritable\r\n else{\r\n Toast.makeText(this, \"Cannot read from External Storage.\", Toast.LENGTH_SHORT).show();\r\n }\r\n }",
"@Test\r\n public void oneMoreTest() {\n ConfigureAppender.configureFileAppender(\"oneMoreTest\");\r\n LOG.info(\"Other test\");\r\n LOG.debug(\"Checking the configuration of the file appender\");\r\n\r\n byte[] biteArray;\r\n try {\r\n// biteArray = FileUtils.readFileToByteArray(new File(System.getProperty(\"user.dir\") + \"/Log4j/oneMoreTest1.log\"));\r\n biteArray = FileUtils.readFileToByteArray(new File(System.getProperty(\"user.dir\") + \"/Log4j/oneMoreTest.log\"));\r\n } catch (IOException ex){\r\n biteArray = null;\r\n }\r\n Allure.getLifecycle().addAttachment(\"Other Test logs\", \"text/plain\", \"log\", biteArray);\r\n }",
"public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }",
"public static void ReadColor(String inputfile, String outputfile, String[] styleids) {\n\r\n\t\tString StyleID_0 = \"\";\r\n\t\tString ImageID_1 = \"\";\r\n\t\tString FileName_2 = \"\";\r\n\t\tString Ext1MfrFullCode_3 = \"\";\r\n\t\tString Ext2MfrFullCode_4 = \"\";\r\n\t\tString Ext1RGBHex_5 = \"\";\r\n\t\tString Ext2RGBHex_6 = \"\";\r\n\t\tString Type_7 = \"\";\r\n\t\tString Angle_8 = \"\";\r\n\t\tString Background_9 = \"\";\r\n\t\tString Size_10 = \"\";\r\n\t\tString Year_11 = \"\";\r\n\t\tString DivisionName_12 = \"\";\r\n\t\tString ModelName_13 = \"\";\r\n\t\tString BodyType_14 = \"\";\r\n\t\tString Carryover_15 = \"\";\r\n\t\tString ExactMatch_16 = \"\";\r\n\t\tString OEMTemp_17 = \"\";\r\n\t\t// Assume default encoding.\r\n\t\tFileWriter fileWriter = null;\r\n\t\ttry {\r\n\t\t\tfileWriter = new FileWriter(outputfile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Always wrap FileWriter in BufferedWriter.\r\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\r\n\t\tSystem.out.println(\"Started!\");\r\n\t\tint styleLenth = styleids.length;\r\n\t\tfor (String styleid : styleids) {\r\n\t\t\ttry (BufferedReader br = new BufferedReader(new FileReader(inputfile))) {\r\n\t\t\t\tString line;\r\n\t\t\t\t\r\n\t\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\t\t// process the line.\r\n\t\t\t\t\tList<String> elephantList = Arrays.asList(line.split(\",\"));\r\n\t\t\t\t\tStyleID_0 = elephantList.get(0);\r\n\t\t\t\t\t// StyleID_0=elephantList.get(17);\r\n\t\t\t\t\tExt1MfrFullCode_3=elephantList.get(3);\r\n\r\n\t\t\t\t\tif (StyleID_0.equalsIgnoreCase(styleid)) {\r\n\t\t\t\t\t\t// if (StyleID_0.equalsIgnoreCase(\"~Y~\")) {\r\n\t\t\t\t\t\tbufferedWriter.write(line);\r\n\t\t\t\t\t\tbufferedWriter.newLine();\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\t// System.out.println(elephantList);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (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} 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\ttry {\r\n\t\t\tbufferedWriter.close();\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\tSystem.out.println(\"Total StyleIDs=\" + styleLenth + \". Complete!\");\r\n\r\n\t}",
"private void logToFile() {\n }",
"void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void CreateRssTextFile(SyndFeed modifiedFeed, int fileCountIndex) {\n\t\t// TODO Auto-generated method stub\n\t\tString filename = \"RSSProgramFeedFile\" + fileCountIndex + \".txt\";\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(filename);\n\n\n\t\t\tif (!file.exists()) {\n\n\t\t\t}\n\t\t\tfile.createNewFile();\n\n\t\t\tfw = new FileWriter(file.getAbsoluteFile(), false);\n\t\t\tbw = new BufferedWriter(fw);\n\n\t\t\tfor (SyndEntry entry : (List<SyndEntry>) modifiedFeed.getEntries()) {\n\n\t\t\t\tbw.append(\"title: \" + entry.getTitle());\n\t\t\t\tbw.append(\"link: \" + entry.getLink()+ \"\\n\");\n\t\t\t\tbw.append(\"guid: \" + entry.getUri() + \"\\n\");\n\t\t\t\tbw.append(\"description: \" + entry.getDescription().getValue().toString() + \"\\n\");\n\t\t\t\tif(entry.getPublishedDate()!=null){\n\t\t\t\t\tbw.append(\"pubDate: \" + entry.getPublishedDate().toString() + \"\\n\");\n\t\t\t\t}\n\n\t\t\t\tList<SyndEnclosure> encls = entry.getEnclosures();\n\t\t\t\tif(encls.size()!=0){\n\t\t\t\t\tbw.append(\"Enclosure URL: \" + encls.get(0).getUrl() + \"\\n\" + \"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbw.append(\"Enclosure URL: null\" + \"\\n\" + \"\\n\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to create file\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bw != null)\n\t\t\t\t\tbw.close();\n\t\t\t\tif (fw != null)\n\t\t\t\t\tfw.close();\n\n\t\t\t} catch (IOException ex) {\n\t\t\t\tSystem.err.println(\"Unable to properly close file\");\n\t\t\t}\n\t\t}\n\t}",
"private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }",
"public void createXMLFileForNOC(Report report) {\n\ttry{\n\t\tFile outDir = new File(report.getXmlFilePath()); \n\t\tboolean isDirCreated = outDir.mkdirs();\n\t\tif (isDirCreated)\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location created.\");\n\t\telse\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location already exist.\");\n\t\t\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\t\n\t\t// root elements\n\t\tDocument doc = docBuilder.newDocument();\n\t\tElement rootElement = doc.createElement(\"root\");\n\t\tdoc.appendChild(rootElement);\n\t\n\t\t\t//for(Student student : report.getStudentList()){\n\t\t\t\t\t\n\t\t\t\tElement studentList = doc.createElement(\"student\");\n\t\t\t\trootElement.appendChild(studentList);\n\t\t\t\t\n\t\t\t\t/*Element schoolname = doc.createElement(\"schoolname\");\n\t\t\t\tschoolname.appendChild(doc.createTextNode((report.getSchoolDetails().getSchoolDetailsName() != null ? report.getSchoolDetails().getSchoolDetailsName() : \"\" )));\n\t\t\t\tstudentList.appendChild(schoolname);*/\n\t\t\t\t\n\t\t\t\tElement academicYear = doc.createElement(\"academicYear\");\n\t\t\t\tacademicYear.appendChild(doc.createTextNode((String) (report.getAcademicYear().getAcademicYearName()!= null ? report.getAcademicYear().getAcademicYearName() : \"\" )));\n\t\t\t\tstudentList.appendChild(academicYear);\n\t\t\t\t\n\t\t\t\tElement roll = doc.createElement(\"roll\");\n\t\t\t\troll.appendChild(doc.createTextNode((report.getReportCode().toString()!=null?report.getReportCode().toString():\"---------\")));\n\t\t\t\tstudentList.appendChild(roll);\n\t\t\t\t\n\t\t\t\tElement studentname = doc.createElement(\"studentname\");\n\t\t\t\tstudentname.appendChild(doc.createTextNode((report.getUpdatedBy()!=null?report.getUpdatedBy():\"---------------\")));\n\t\t\t\tstudentList.appendChild(studentname);\n\t\t\t\n\t\t\t\t\n\t\t\t//}\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\t\t\n\t\t\tStreamResult result = new StreamResult(new File(report.getXmlFilePath()+report.getXmlFileName()));\n\t\t\t\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t}catch (ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t\tlogger.error(\"\",pce);\n\t\t} catch (TransformerException tfe) {\n\t\t\ttfe.printStackTrace();\n\t\t\tlogger.error(tfe);\n\t\t}\n\t}",
"private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }",
"public void writeFile(Context context){\n Writer writer = null;\n\n try {\n OutputStream out = context.openFileOutput(filename, Context.MODE_PRIVATE);\n writer = new OutputStreamWriter(out);\n writer.write(userName + \"~\" + color + \"~\" + level);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n\n } catch (IOException e) {\n e.printStackTrace();\n\n } finally {\n if (writer != null) {\n try {\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }",
"private void addTextfileToOutputStream(OutputStream outputStream) {\n Log.i(TAG, \"adding file to outputstream...\");\n byte[] buffer = new byte[1024];\n int bytesRead;\n try {\n BufferedInputStream inputStream = new BufferedInputStream(\n new FileInputStream(Upload_File));\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n } catch (IOException e) {\n Log.i(TAG, \"problem converting input stream to output stream: \" + e);\n e.printStackTrace();\n }\n }",
"public void createLogFile() {\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tLog.e(\"SD CARD WRITE ERROR : \", \"SD CARD mounted and writable? \"\n\t\t\t\t\t+ root.canWrite());\n\t\t\tif (root.canWrite()) {\n\t\t\t\tFile gpxfile = new File(root, \"ReadConfigLog.txt\");\n\t\t\t\tFileWriter gpxwriter = new FileWriter(gpxfile);\n\t\t\t\tout = new BufferedWriter(gpxwriter);\n\t\t\t\tout.write(\"Hello world\");\n\t\t\t\t// out.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"SD CARD READ ERROR : \", \"Problem reading SD CARD\");\n\t\t\tLog.e(\"SD CARD LOG ERROR : \", \"Please take logs using Logcat\");\n\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\"Could not write file \" + e.getMessage());\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tString txtFileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\not_today.txt\";\r\n\t\tString img1FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts1.jpg\";\r\n\t\tString img2FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts2.jpg\";\r\n\t\t\r\n\t\t// file name String - output\r\n\t\tString result_txt = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_not_today.txt\";\r\n\t\tString result_img1 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts1_img.jpg\";\r\n\t\tString result_img2 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts2_img.jpg\";\r\n\t\t\r\n\t\t// node stream - input\r\n\t\tFileReader fr = new FileReader(txtFileName);\r\n\t\tFileInputStream fis1 = new FileInputStream(img1FileName);\r\n\t\tFileInputStream fis2 = new FileInputStream(img2FileName);\r\n\t\t\r\n\t\t// filter stream - input\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\tDataInputStream dis1 = new DataInputStream(fis1);\r\n\t\tDataInputStream dis2 = new DataInputStream(fis2);\r\n\t\t\r\n\t\t// node stream - output\r\n\t\tFileOutputStream fos1 = new FileOutputStream(result_img1);\r\n\t\tFileOutputStream fos2 = new FileOutputStream(result_img2);\r\n\t\tPrintWriter pw = new PrintWriter(result_txt);\r\n\t\t\r\n\t\t// filter strea - output\r\n\t\tDataOutputStream dos1 = new DataOutputStream(fos1);\r\n\t\tDataOutputStream dos2 = new DataOutputStream(fos2);\r\n\t\t\r\n\t\t// Data reading & Stream closing\r\n\t\tString contents = null;\r\n\t\twhile((contents = br.readLine()) != null){\r\n\t\t\tpw.write(contents + \"\\n\");\r\n\t\t}\t\t\r\n\t\t\r\n\t\tpw.close();\r\n\t\t\r\n\t\tint data = 0;\r\n\t\ttry {\r\n\t\t\twhile((data = dis1.readInt()) != -1){\r\n\t\t\t\tdos1.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (EOFException e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos1.close();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdata = 0;\r\n\t\t\twhile((data = dis2.readInt()) != -1){\r\n\t\t\t\tdos2.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos2.close();\r\n\t\t}\r\n\t\t\t\r\n\t}",
"public void loadDefaultComments(){\n String[] existingFiles = mContext.fileList();\n if (existingFiles.length == 0){\n //create new snarky file for the app\n try{\n mSnarkyStream = mContext.openFileOutput(mSnarkyName,Context.MODE_PRIVATE);\n }\n catch(Exception creatException){\n Log.e(TAG,\"Error creating snarky file\");\n return;\n }\n\n //read in the default file as raw resource and populate snarky with default comments\n Resources appResources = mContext.getResources();\n InputStream defaultCommentStream = appResources.openRawResource(R.raw.snarky);\n CharBuffer buffer = CharBuffer.allocate(8000);// 8k buffer\n InputStreamReader reader = new InputStreamReader(defaultCommentStream);\n StringBuilder nextComment = new StringBuilder();\n try{\n int sizeRead = reader.read(buffer);\n Log.d(TAG,\"loadDefaultComments sizeRead=\".concat(String.valueOf(sizeRead)));\n for (int next = 0; next < sizeRead; next++ ){\n char nextChar = buffer.get(next);\n nextComment.append(nextChar);\n Log.d(TAG,\"LoadComments nextChar=\".concat(String.valueOf(nextChar)));\n }\n\n //append the comment to the snarky file\n mSnarkyStream.write(nextComment.toString().getBytes());\n nextComment = new StringBuilder();\n }\n catch(Exception writeException){\n Log.e(TAG, \"Error loading default snarky file\");\n }\n finally{\n try {\n defaultCommentStream.close();\n mSnarkyStream.flush();\n mSnarkyStream.close();\n mSnarkyStream = null;\n mComplete = true;\n Log.d(TAG,\"LoadComments Completed\");\n }\n catch (IOException e) {\n Log.e(TAG, \"Unable to close default comment file\");\n }\n }\n }\n else{\n //file already loaded = nothing to do\n mComplete = true;\n }\n }",
"private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }",
"XmlStringTester(File in) throws Exception {\n\t\txml = Files.readFile(in).toString();\n\t\txml = SchemEditUtils.expandAmpersands(xml);\n\t\tdoc = Dom4jUtils.getXmlDocument(xml);\n\t\tstringWriter = getStringWriter();\n\t}",
"public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }",
"public void newDemo() {\r\n \t\t\r\n \t\tString date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\r\n \t\tthis.fileName = this.demoFolder + this.map.replace(\".xml\", \"\") + \"_\" + date + \".r2d\";\r\n \t\ttry {\r\n \t\t\tthis.fos = (FileOutputStream)this.fileIO.writeFile(this.fileName);\r\n \t\t} catch (IOException e) {\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\tthis.demoParts.put(this.map + \"/\");\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \t}",
"public static void writeUAV(){\n System.out.println(\"Writing new UAV\");\n Document dom;\n Element e = null;\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n dom = documentBuilder.newDocument();\n Element rootElement = dom.createElement(\"UAV\");\n\n // Create the name tag and write the name data\n e = dom.createElement(\"name\");\n e.appendChild(dom.createTextNode(name.getText()));\n rootElement.appendChild(e);\n\n // Create the weight tag and write the weight data\n e = dom.createElement(\"weight\");\n e.appendChild(dom.createTextNode(weight.getText()));\n rootElement.appendChild(e);\n\n // Create the turn radius tag and write the turn radius data\n e = dom.createElement(\"turn_radius\");\n e.appendChild(dom.createTextNode(turnRadius.getText()));\n rootElement.appendChild(e);\n\n // Create the max incline angle tag and write the max incline angle data\n e = dom.createElement(\"max_incline\");\n e.appendChild(dom.createTextNode(maxIncline.getText()));\n rootElement.appendChild(e);\n\n // Create the battery type tag and write the battery type data\n e = dom.createElement(\"battery\");\n e.appendChild(dom.createTextNode(battery.getText()));\n rootElement.appendChild(e);\n\n // Create the battery capacity tag and write the battery capacity data\n e = dom.createElement(\"battery_capacity\");\n e.appendChild(dom.createTextNode(batteryCapacity.getText()));\n rootElement.appendChild(e);\n\n dom.appendChild(rootElement);\n\n // Set the transforms to make the XML document\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n tr.setOutputProperty(OutputKeys.INDENT,\"yes\");\n tr.setOutputProperty(OutputKeys.METHOD,\"xml\");\n tr.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n //tr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"uav.dtd\");\n tr.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\",\"4\");\n\n // Write the data to the file\n tr.transform(new DOMSource(dom),new StreamResult(\n new FileOutputStream(\"src/uavs/\"+name.getText()+\".uav\")));\n\n }catch (IOException | ParserConfigurationException | TransformerException ioe){\n ioe.printStackTrace();\n // If error, show dialog box with the error message\n // If error, show dialog box with the error message\n Dialog.showDialog(\"Unable to write to write camera settings.\\n\\n\" +\n \"Ensure that \" + path + \" is visible by the application.\",\"Unable to write settings\");\n }\n }",
"private void copyDBFromAssets() throws IOException\n {\n InputStream dbInput = null;\n Log.e(\"Openassets\",\"arghh\");\n OutputStream dbOutput = null;\n Log.e(\"Openassets\",\"arghh\");\n String dbFileName = DB_PATH +DB_NAME;\n try\n {\n Log.e(\"Openassets\",\"arghh\");\n dbInput = appContext.getAssets().open(DB_NAME);\n dbOutput = new FileOutputStream(dbFileName);\n //transfer bytes from db Input to the db Output\n byte[] buffer = new byte[1024];\n int length;\n while ((length = dbInput.read(buffer))>0)\n {\n dbOutput.write(buffer, 0, length);\n }\n //close the stream\n dbOutput.flush();\n dbOutput.close();\n dbInput.close();\n }catch(IOException e)\n {\n throw new Error(\"Problems copying DB\");\n }\n }",
"public void m14909a(Bitmap bitmap, String str, String str2) throws IOException {\n StringBuilder sb = new StringBuilder();\n sb.append(\"bitmapsaveBitmap: path--\");\n sb.append(str);\n sb.append(\"--fileName--\");\n sb.append(str2);\n Log.i(\"ruomiz\", sb.toString());\n FileOutputStream fileOutputStream = new FileOutputStream(new File(str, str2));\n bitmap.compress(CompressFormat.JPEG, 100, fileOutputStream);\n fileOutputStream.flush();\n fileOutputStream.close();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n //显示结果的TextView\n final TextView info=(TextView)findViewById(R.id.info);\n \n //获取资源管理的实例\n\t\tfinal Resources resources=getResources();\n \n //原始文件操作\n Button raw=(Button)findViewById(R.id.rawBtn);\n raw.setOnClickListener(new OnClickListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tInputStream input=null;\n\t\t\t\tinput=resources.openRawResource(R.raw.test); //获取指定资源文件的输入流对象\n\t\t\t\ttry { \n\t\t\t\t\t//读取文件内容,操作类似于FileInputStream\n\t\t\t\t\tbyte[] reader=new byte[input.available()]; //必须用try块包围\n\t\t\t\t\tString out=\"\";\n\t\t\t\t\twhile (input.read(reader)!=-1){\n\t\t\t\t\t\tout+=new String(reader,\"GBK\");\n\t\t\t\t\t\t//第二个参数为编码,必须与raw文件的属性中的编码相符,否则乱码\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//显示文件内容\n\t\t\t\t\tinfo.setText(out);\n\t\t\t\t\t\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{ //关闭输入流对象\n\t\t\t\t\tif (input!=null){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput.close(); //必须用try块包围\n\t\t\t\t\t\t} catch (IOException 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}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n //xml文件操作\n Button xml=(Button)findViewById(R.id.xmlBtn);\n xml.setOnClickListener(new OnClickListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//获取XML解析器\n\t\t\t\tXmlPullParser parser=resources.getXml(R.xml.people);\n\t\t\t\t\n\t\t\t\tString msg=\"\"; //显示字符串\n\t\t\t\tString people=null; //People节点名字\n\t\t\t\t//元素的属性值\n\t\t\t\tString name=null; \n\t\t\t\tString age=null;\n\t\t\t\tString height=null;\n\t\t\t\t// 从xml文件分析出的元素的名称和值\n\t\t\t\tString attrName;\n\t\t\t\tString attrValue;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tint result=parser.next(); //读取一个节点\n\t\t\t\t\t\n\t\t\t\t\twhile (result!=XmlPullParser.END_DOCUMENT){ //一直扫描到文件末尾\n\t\t\t\t\t\t\n\t\t\t\t\t\tpeople=parser.getName(); //获取当前节点的名字\n\t\t\t\t\t\t\n\t\t\t\t\t\t//处理一个元素----一行,\n\t\t\t\t\t\t//START_TAG, 开始处理一行时解析如下内容,\n\t\t\t\t\t\tif (people!=null && \tpeople.equals(\"person\") && \n\t\t\t\t\t\t\t\tresult==XmlPullParser.START_TAG){ //如果此处不加上限制条件,则解析完一行时也会触发该事件\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count=parser.getAttributeCount(); //获取属性个数\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i=0; i<count; i++){ //按序号获取当前节点的每个属性值\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//取出当前节点的名字和值\n\t\t\t\t\t\t\t\tattrName=parser.getAttributeName(i);\n\t\t\t\t\t\t\t\tattrValue=parser.getAttributeValue(i);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//获取属性值-->不同的属性值赋值给不同的变量\n\t\t\t\t\t\t\t\tif ((attrName!=null) && attrName.equals(\"name\"))\n\t\t\t\t\t\t\t\t\tname=attrValue;\n\t\t\t\t\t\t\t\telse if ((attrName!=null) && attrName.equals(\"age\"))\n\t\t\t\t\t\t\t\t\tage=attrValue;\n\t\t\t\t\t\t\t\telse if ((attrName!=null) && attrName.equals(\"height\"))\n\t\t\t\t\t\t\t\t\theight=attrValue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//形成要显示的字符串\n\t\t\t\t\t\t\tmsg+=\"姓名: \"+name+\", 年龄: \"+age+\", 身高: \"+height+\"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresult=parser.next();\n\t\t\t\t\t}\n\t\t\t\t} catch (XmlPullParserException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//显示内容\n\t\t\t\tinfo.setText(msg);\n\t\t\t}\n\t\t});\n }",
"private static Uri getOutputMediaFileUri(int type){\n\t return Uri.fromFile(getOutputMediaFile(type));\n\t}",
"public static void main(String args[]) throws Exception {\n String fileName;\n fileName = scan.nextLine();\n\n OutputStream outStream = null;\n\n String info = readLogFile(fileName);\n\n String outFileName = \"gifs_\" + fileName;\n\n\n try{\n outStream = new FileOutputStream(new File(outFileName), true);\n outStream.write(info.getBytes(), 0, info.length());\n } catch(IOException ioEx) {\n ioEx.printStackTrace();\n } finally {\n try {\n outStream.close();\n } catch( IOException exception ){\n exception.printStackTrace();\n }\n }\n\n }",
"private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }",
"public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}",
"public abstract void debug(RobocodeFileOutputStream output);",
"private void append(String sAppend) throws Exception {\n\n\tString sFilename = null;\n\tFileWriter fw = null;\n\n\ttry {\n\t // Define the filename.\n\t sFilename = getMeasurementsFilename();\n\n\t // Append.\n\t fw = new FileWriter(sFilename, true);\n\t fw.write(sAppend);\n\t fw.close();\n\n\t} catch (Exception e) {\n\n\t // try writing to the /tmp file system.\n\t FileWriter fw2 = null;\n\t try {\n\t\tsFilename = \"/tmp/cqServiceUsage\";\n\t\tfw2 = new FileWriter(sFilename, true);\n\t\tfw2.write(sAppend);\n\t\tfw2.close();\n\t } catch (Exception e2) {\n\t\tthrow (e2);\n\t } finally {\n\t\tfw2 = null;\n\t }\n\t} finally {\n\t fw = null;\n\t}\n }",
"@Override\n\tprotected void onStart()\n\t{\n\t\ttext_input.setPath(preference.getString(\"input\",FileUtils.getSDPath()));\n\t\ttext_output.setPath(preference.getString(\"output\",FileUtils.getSDPath()));\n\t\ttext_fileName.setText(preference.getString(\"name\",\"packer\"));\n\t\ttext_width.setText(preference.getString(\"width\",\"1024\"));\n\t\ttext_height.setText(preference.getString(\"height\",\"1024\"));\n\t\t\n\t\tsuper.onStart();\n\t}",
"private static String convertStreamToString(InputStream is) {\n\t\tInputStreamReader isr = new InputStreamReader(is);\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n \tLog.e(TAG, e.getMessage(), e);\n } finally {\n try {\n reader.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n \n try {\n isr.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n }\n \n return sb.toString();\n }",
"public void generateCDAFiles() throws Exception {\n\n String stopwatchStart = new SimpleDateFormat(\"yyyy-MM-dd-HH.mm.ss\").format(new Date());\n\n // file/directory locations for the app\n// String labid_file = getPropValues(\"labid-file\") + ts;\n// String comb_dir = getPropValues(\"combined-xml-dir\") + ts;\n// String mal_dir = getPropValues(\"malformed-xml-dir\") + ts;\n// String cda_dir = getPropValues(\"cda-dir\") + ts;\n\n String labid_file = getPropValues(\"labid-file\");\n String haidisplay_file = getPropValues(\"haidisplay-file\");\n String comb_dir = getPropValues(\"combined-xml-dir\");\n String mal_dir = getPropValues(\"malformed-xml-dir\");\n String cda_dir = getPropValues(\"cda-dir\"); //+ \"/\" + stopwatchStart;\n\n // hai-display must be in the same directory as the final CDAs for them to be displayed properly\n File sourceHai = new File(haidisplay_file);\n File targetHai = new File(cda_dir + \"/hai-display.xsl\");\n FileUtils.copyFile(sourceHai, targetHai);\n\n // create new XML Builder\n XMLBuilder xmlBuilder = new XMLBuilder();\n\n // creates ADT + ORU XML files in src/main/resources/ directory\n xmlBuilder.process();\n\n // get list of combined XML (ADT) files\n File dir = new File(comb_dir);\n File[] files = dir.listFiles();\n\n if (files != null) {\n for (File file : files) {\n // Transform XML files using an XSL file to CDA-like files\n\n //src/main/resources/combinedXML/[id]-source.xml\n String relPath = file.getPath();\n //[id]-source.xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 11);\n // System.out.println(relPath);\n // System.out.println(filename);\n // System.out.println(id);\n\n\n String inputXSL = labid_file;\n String inputXML = relPath;\n String outputLabId = mal_dir + \"/\" + id + \".xml\";\n Transform transform = new Transform();\n\n /**/\n\n /**\n String inputXSL = \"src/main/resources/labid.xsl\";\n String inputXML = \"src/main/resources/combinedXML/2.16.840.1.114222.4.1.646516-source.xml\";\n String outputLabId = \"src/main/resources/malformedCDA/2.16.840.1.114222.4.1.646516.xml\";\n Transform transform = new Transform();\n\n /**/\n\n try {\n transform.transformXML(inputXSL, inputXML, outputLabId);\n } catch (Exception e) {\n System.out.println(\"well... that didn't work...\");\n e.printStackTrace();\n }\n /**/\n\n }\n }\n\n\n //TODO: clean up Silas's CDA-like file\n // get list of malformed CDA files\n File mcdaDir = new File(mal_dir);\n File[] mcdafiles = mcdaDir.listFiles();\n\n int count = 0;\n int badCount = 0;\n List<String> badList = new ArrayList<String>();\n\n if (files != null) {\n for (File file : mcdafiles) {\n\n //src/main/resources/malformedCDA/[id].xml\n String relPath = file.getPath();\n //[id].xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 4);\n System.out.println(relPath);\n System.out.println(filename);\n System.out.println(id);\n\n FileReader reader = null;\n String content = \"\";\n try {\n reader = new FileReader(file);\n char[] chars = new char[(int) file.length()];\n try {\n reader.read(chars);\n } catch (IOException e) {\n e.printStackTrace();\n }\n content = new String(chars);\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // System.out.println(content);\n\n\n int cdaRootIndex = content.indexOf(\"<ClinicalDocument\");\n if (cdaRootIndex < 1) {\n System.out.println(\"no clinical document tag found in malformed CDA with id: \" + id);\n badCount++;\n badList.add(id);\n continue;\n } else {\n String clinicalDoc = content.substring(cdaRootIndex);\n\n\n //System.out.println(clinicalDoc);\n String cleanTop = replace(clinicalDoc, \"<ClinicalDocument\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"hai-display.xsl\\\"?>\\n<ClinicalDocument\");\n String cleanCDA = replace(cleanTop, \"</root>\", \"\");\n //System.out.println(cleanCDA);\n String now = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n try {\n FileUtils.writeStringToFile(new File(cda_dir + \"/\" + id + \"--\" + now + \".xml\"), cleanCDA);\n System.out.println(\"wrote to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n count++;\n } catch (IOException e) {\n System.out.println(\"problem writing to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n e.printStackTrace();\n }\n }\n\n }\n\n System.out.println(\"# CDA Files created: \" + count);\n System.out.println(\"# bad malformed CDAs: \" + badCount);\n for(String id: badList) {\n System.out.println(\"bad id:\" + id);\n }\n }\n }",
"protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v=inflater.inflate(R.layout.fragment_traceexchange, container,false);\r\n\t\tUploadTraceButton=(Button)v.findViewById(R.id.UploadTraceButton);\r\n\t\tUploadTraceButton.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tFile LogFolder=new File(\"/sdcard/network_log\");\r\n\t\t\t\tif(!LogFolder.exists())\r\n\t\t\t\t{\r\n\t\t\t\t\t//not exist\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tFile[] LogList=LogFolder.listFiles();\r\n\t\t\t\t\tFile tempFolder=new File(\"/sdcard/.network_log_temp\");\r\n\t\t\t\t\tif(tempFolder.exists())\r\n\t\t\t\t\t\ttempFolder.delete();\r\n\t\t\t\t\ttempFolder.mkdir();\r\n\t\t\t\t\tFile tempZip=new File(\"/sdcard/.network_log_temp/temp.zip\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempZip.createNewFile();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString[] srcFilePath=new String[LogList.length];\r\n\t\t\t\t\tfor(int i=0;i<LogList.length;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsrcFilePath[i]=LogList[i].getAbsolutePath();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString desFilePath=tempZip.getAbsolutePath();\r\n\t\t\t\t\t\r\n\t\t\t\t\tZipCompressor zc=new ZipCompressor();\r\n\t\t\t\t\tzc.zipCompress(srcFilePath, desFilePath);\r\n\t\t\t\t\t\r\n\t\t\t\t\tUploader ul=new Uploader(tempZip);\r\n\t\t\t\t\tul.start();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn v;\r\n\t}",
"private void copyDataBase() throws IOException {\n\n\t\tInputStream myInput = rssContext.getAssets().open(DATABASE_NAME);\n\t\tString outFileName = DATABASE_PATH + DATABASE_NAME;\n\t\tOutputStream myOutput = new FileOutputStream(outFileName);\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = myInput.read(buffer)) > 0) {\n\t\t\tmyOutput.write(buffer, 0, length);\n\t\t}\n\t\tmyOutput.flush();\n\t\tmyOutput.close();\n\t\tmyInput.close();\n\t}",
"public static void exportRouteGraph() {\n try {\n var nodeRouteNr = new ArrayList<Integer>();\n var links = new ArrayList<Pair<Integer, Integer>>();\n\n int[] idx = {0};\n Files.lines(Path.of(Omnibus.class.getResource(\"segments.txt\").getFile())).forEach(line -> {\n String[] parts = line.split(\",\");\n int routeNr = Integer.parseInt(parts[0]) - 1;\n nodeRouteNr.add(routeNr);\n if (parts.length > 5) {\n String[] connections = parts[5].split(\";\");\n for (String c : connections)\n links.add(new Pair(idx[0], Integer.parseInt(c)));\n }\n ++idx[0];\n });\n\n\n File f = Paths.get(\"route-graph.graphml\").toFile();\n var out = new PrintStream(f);\n out.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n out.println(\"<graphml xmlns=\\\"http://graphml.graphdrawing.org/xmlns\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:schemaLocation=\\\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\\\">\");\n out.println(\"<key attr.name=\\\"r\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"r\\\"/>\");\n out.println(\"<key attr.name=\\\"g\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"g\\\"/>\");\n out.println(\"<key attr.name=\\\"b\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"b\\\"/>\");\n out.println(\"<graph id=\\\"G\\\" edgedefault=\\\"directed\\\">\");\n for (int n = 0; n < nodeRouteNr.size(); ++n) {\n out.println(\"<node id=\\\"n\" + n + \"\\\">\");\n out.println(\"<data key=\\\"r\\\">\" + (COLOR[nodeRouteNr.get(n)]>>16) + \"</data>\");\n out.println(\"<data key=\\\"g\\\">\" + ((COLOR[nodeRouteNr.get(n)]>>8)&0xff) + \"</data>\");\n out.println(\"<data key=\\\"b\\\">\" + (COLOR[nodeRouteNr.get(n)]&0xff) + \"</data>\");\n out.println(\"</node>\");\n }\n int e = 0;\n for (var link : links)\n out.println(\"<edge id=\\\"e\" + (e++) + \"\\\" source=\\\"n\" + link.p + \"\\\" target=\\\"n\" + link.q + \"\\\"/>\");\n out.println(\"</graph>\");\n out.println(\"</graphml>\");\n out.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"private void printFile(Products print, String ufilename) {\n\t\tFile file = new File(\"output\"+File.separator+ufilename+fileId+\".xml\"); \n\t\tSystem.out.println(\"Exporting : \"+ file);\n\t\tJAXBContext jaxbContext;\n\t\ttry {\n\t\t\tjaxbContext = JAXBContext.newInstance(Products.class); \n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n\t\t\tjaxbMarshaller.setProperty(\"com.sun.xml.internal.bind.xmlHeaders\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);\n\t\t\tjaxbMarshaller.marshal(print, file); // prints the file\n\t\t\t// \t\t jaxbMarshaller.marshal(products, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static Uri getOutputMediaFileUri(int type){\r\n\t return Uri.fromFile(getOutputMediaFile(type));\r\n\t}",
"public static void copyInputStreamToFile(Context context, String name)\n throws IOException {\n\n try (FileOutputStream outputStream = new FileOutputStream(string_FILENAME + name)) {\n\n int read;\n byte[] bytes = new byte[1024];\n while ((read = context.getAssets().open(\"training.ipynb\").read(bytes)) != -1) {\n outputStream.write(bytes, 0, read);\n }\n }\n }",
"private InputStream buildUpStream(final Object... args)\r\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder(1000);\r\n\t\tfor (final Object arg : args)\r\n\t\t{\r\n\t\t\tbuilder.append(arg).append(CharUtils.CR);\r\n\t\t}\r\n\t\treturn new ByteArrayInputStream(builder.toString().getBytes());\r\n\t}",
"public void copyDataBase() throws IOException{\n try {\n InputStream myInput = context.getAssets().open(DB_NAME);\n String outputFileName = DB_PATH + DB_NAME;\n OutputStream myOutput = new FileOutputStream(outputFileName);\n\n byte[] buffer = new byte[1024];\n int length;\n\n while((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n myOutput.flush();\n myOutput.close();\n myInput.close();\n } catch (Exception e) {\n Log.e(\"tle99 - copyDatabase\", e.getMessage());\n }\n\n }",
"public void salvaPartita(String file) {\n\r\n }",
"private void testProXml(){\n\t}",
"private void recordLocationData() \r\n\t{\r\n\t\tif(loadedImage!=null)\r\n\t\t{\r\n\t\t\tString image = BitMapToString(loadedImage);\r\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < image.length(); i++) \r\n\t\t\t{\r\n\t\t\t\tif (image.charAt(i) != '\\n' && image.charAt(i) != '\\r') \r\n\t\t\t\t{\r\n\t\t\t\t\tstringBuffer.append(image.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalimage = stringBuffer.toString();\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfinalimage = \"dummystring\";\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\t\r\n\t\tLog.v(\"ADD finaloutput: \", finaloutput);\r\n\t}",
"private void init() {\n\n DateFormat dateFormatter = new SimpleDateFormat(\"YYYY_MM_dd-HH_mm_ss_SSS\");\n String timeString = dateFormatter.format(new Date(System.currentTimeMillis()));\n urlsFile = new File(\"urls_\" + timeString + \".txt\");\n emailsFile = new File(\"emails_\" + timeString + \".txt\");\n\n try {\n urlsFile.createNewFile();\n emailsFile.createNewFile();\n urlsWriter = new PrintWriter(urlsFile.getPath(), \"UTF-8\");\n emailsWriter = new PrintWriter(emailsFile.getPath(), \"UTF-8\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\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}",
"@Override\n public boolean onPrepareOptionsMenu (Menu menu){\n try {\n FileInputStream fis = getApplicationContext().openFileInput(\"geofencesNotification\");\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader bufferedReader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n Log.d(\"NotificationFlag\", \"File content: \"+sb.toString());\n\n if (sb.toString().contains(\"OFF\")){\n geofencesNoticiationOn = false;\n Log.d(\"NotificationFlag\", \"Notification settings read from file and now set to OFF\");\n MenuItem notificationIcon = menu.getItem(0);\n Drawable myIcon = getResources().getDrawable( R.drawable.ic_action_notificationoff);\n notificationIcon.setIcon(myIcon);\n\n }\n else{\n geofencesNoticiationOn = true;\n Log.d(\"NotificationFlag\", \"Notification settings read from file and now set to ON\");\n MenuItem notificationIcon = menu.getItem(0);\n Drawable myIcon = getResources().getDrawable( R.drawable.ic_action_notificationon);\n notificationIcon.setIcon(myIcon);\n\n }\n\n }\n catch (FileNotFoundException e){\n geofencesNoticiationOn = true;\n Log.d(\"NotificationFlag\", \"Notification settings read from file and now set to ON\");\n MenuItem notificationIcon = menu.getItem(0);\n Drawable myIcon = getResources().getDrawable( R.drawable.ic_action_notificationon);\n notificationIcon.setIcon(myIcon);\n }\n catch (Exception e) {\n Log.d(\"NotificationFlag\", \"Error reading from file\"+e.toString());\n\n }\n\n\n return true;\n }",
"public String toStringFile(){\n return null;\n }",
"@Override\n protected Object doInBackground() throws Exception {\n InputStream is = null;\n\n MESSAGE responseConn = MessageManger.createCommand(Command.CONNECT, null);\n MessageManger.addParameter(responseConn, \"response\", Command.OK);\n MessageManger.directWriteMessage(responseConn, ccv.getOutputStream());\n\n// ccv.getHelper().sendRequest(\"~OK\\n\");\n is = so.getInputStream();\n\n BufferedReader in = new BufferedReader(new InputStreamReader(is, Util.DEFAULTENCODING));\n String line = \"\";\n\n while ((line = in.readLine()) != null) {\n\n try {\n if (line.startsWith(\"<\")) {\n\n MESSAGE message = MessageManger.parseXML(line);\n\n //non loggo gli xml di dati perchè so troppo lunghi\n if (!message.getName().equals(Request.FILETRANSFER)) {\n log.debug(ccv.getNick() + \" \" + type + \" reder receive MESSAGE : \" + MessageManger.messageToStringFormatted(message));\n } else {\n log.debug(ccv.getNick() + \" \" + type + \" FILETRANSFER RECEIVED\");\n }\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" MESSAGE \">\n if (message.getType().equals(MESSAGE)) {\n\n String messageSt = message.getParameters().getParameter().get(0).getValue();\n Font font = Font.decode(message.getParameters().getParameter().get(1).getValue());\n Color color = Color.decode(message.getParameters().getParameter().get(2).getValue());\n\n //prendo le emoticons dai contents \n List<Emoticon> emoticons = new LinkedList<Emoticon>();\n\n try {\n if (message.getContents() != null) {\n List<MESSAGE.Contents.Content> contents = message.getContents().getContent();\n\n for (MESSAGE.Contents.Content content : contents) {\n\n log.debug(\"received emoticon : \" + content.getName());\n byte[] bs = content.getValue();\n //decomprimo l'immagine\n byte[] imageBytes = chatclient.commons.Util.decompress(bs);\n log.trace(\"data[] : \" + bs);\n// ByteArrayInputStream bais = new ByteArrayInputStream(bs);\n\n// BufferedImage bufferedImage = ImageIO.read(bais);\n// log.trace(\"BufferedImage : \" + bufferedImage);\n Emoticon emotion = new Emoticon();\n emotion.setShortcut(content.getName());\n emotion.setName(content.getName());\n emotion.setImageIcon(new ImageIcon(imageBytes, \"\"));\n emotion.setData(imageBytes);\n log.trace(\"emoticon ImageIcon : \" + emotion.getImageIcon());\n emoticons.add(emotion);\n\n }\n }\n } catch (Exception e) {\n log.warn(e);\n\n }\n\n\n\n if (message.getName().equals(Message.SINGLE)) {\n String sender = message.getSender();\n\n ChatWindow cv = ccv.getHelper().getChatWith(sender);\n cv.getReceivedEmoticons().addAll(emoticons);\n cv.writeMessage(sender, messageSt, font, color, emoticons);\n\n } else if (message.getName().equals(Message.CONFERENCE)) {\n String sender = message.getSender();\n\n //dalla lista di partecipanti alla conferenza\n //rcavo l'arrey di quelli che servono in questo client\n List<String> componentsOfConferenz = new LinkedList<String>();\n for (String string : message.getReceivers().getReceiver()) {\n if (!string.equals(ccv.getNick())) {\n componentsOfConferenz.add(string);\n }\n }\n componentsOfConferenz.add(sender);\n log.debug(componentsOfConferenz);\n\n ChatWindow cv = ccv.getHelper().getConferenceWith(componentsOfConferenz.toArray(new String[componentsOfConferenz.size()]));\n cv.getReceivedEmoticons().addAll(emoticons);\n cv.writeMessage(sender, messageSt, font, color, emoticons);\n\n }\n\n// </editor-fold>\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" REQUEST \">\n } else if (message.getType().equals(REQUEST)) {\n\n if (message.getName().equals(Request.FILETRANSFER)) {\n\n try {\n String fileName = message.getParameters().getParameter().get(0).getValue();\n String fileurl = Util.readProperties().getProperty(\"downloadFolder\") + \"/\" + fileName;\n int packNum = Integer.parseInt(message.getParameters().getParameter().get(3).getValue());\n\n File outputFile = new File(fileurl);\n\n FileOutputStream fos = new FileOutputStream(outputFile, true);\n byte[] bArr = message.getData();\n\n int readed = Integer.parseInt(message.getParameters().getParameter().get(1).getValue());\n log.debug(ccv.getNick() + \"reader readed bytes : \" + readed);\n log.debug(\"write bytes to file : \" + fileurl);\n fos.write(bArr, 0, readed);\n\n fos.close();\n\n ReceiveFileDialog receiveFileDialog = ccv.getHelper().getReceiveFileDialog(fileName, message.getSender());\n receiveFileDialog.setPackReceived(packNum);\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.FILEACCEPTREQUEST)) {\n\n try {\n //richiesta di ricezione file\n String sender = message.getSender();\n String fileName = message.getParameters().getParameter().get(0).getValue();\n long fileSize = Long.parseLong(message.getParameters().getParameter().get(1).getValue());\n\n ReceiveFileDialog receiveFileDialog = new ReceiveFileDialog(ccv);\n receiveFileDialog.setSender(sender);\n receiveFileDialog.setFile(fileName);\n receiveFileDialog.setFileSize(fileSize);\n\n //grafica\n String infoText = \"<html>File : \" + fileName + \" <br>\" + \"Da :     <b>\" + sender + \"</b>\" + \"      Dimensione : \" + (fileSize / 1024) + \"k </html>\";\n receiveFileDialog.getInfoLabel().setText(infoText);\n receiveFileDialog.setTitle(\"Ricezione - \" + fileName);\n receiveFileDialog.getStatusLabel().setText(\"\");\n\n receiveFileDialog.setLocationRelativeTo(ccv.getFrame());\n receiveFileDialog.setVisible(true);\n receiveFileDialog.toFront();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.FILEACCEPTRESPONSE)) {\n\n try {\n //richiesta di ricezione file\n String sender = message.getSender();\n log.debug(\"sender : \" + sender);\n String fileName = message.getParameters().getParameter().get(0).getValue();\n log.debug(\"fileName : \" + fileName);\n long fileSize = Long.parseLong(message.getParameters().getParameter().get(1).getValue());\n log.debug(\"fileSize : \" + fileSize);\n String response = message.getParameters().getParameter().get(2).getValue();\n log.debug(\"response : \" + response);\n SendFileDialog sendFileDialog = ccv.getHelper().getSendFileDialog(fileName, sender);\n\n if (response.equals(Command.OK)) {\n sendFileDialog.getFileSender().setAccepted(true);\n } else {\n if (sendFileDialog.getFileSender().isAccepted() && sendFileDialog.getFileSender().isActive()) {\n sendFileDialog.transferStoppedFromReceiver();\n } else if (!sendFileDialog.getFileSender().isAccepted()) {\n sendFileDialog.transferRefusedFromReceiver();\n }\n }\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.ADDTOCONFERENCE)) {\n\n try {\n //il priomo elemento è il nick da aggiungere gli alri i membri della conferenza\n String nickToAdd = message.getParameters().getParameter().get(0).getValue();\n\n //dalla lista di partecipanti alla conferenza\n //rcavo l'arrey di quelli che servono in questo client\n List<String> componentsOfConferenz = new LinkedList<String>();\n for (String string : message.getReceivers().getReceiver()) {\n\n if (!string.equals(ccv.getNick())) {\n componentsOfConferenz.add(string);\n }\n }\n componentsOfConferenz.add(message.getSender());\n\n ChatWindow cw = ccv.getHelper().getConferenceWith(componentsOfConferenz.toArray(new String[componentsOfConferenz.size()]));\n cw.addClientToChat(nickToAdd);\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.STARTGAME)) {\n log.debug(\"start dama game\");\n try {\n\n GameHome home = new GameHome(ccv);\n home.setLocationRelativeTo(ccv.getFrame());\n home.setVisible(true);\n home.startDamaClient(message.getSender());\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.DAMAPOSITION)) {\n try {\n log.debug(\"position for dama\");\n\n int posX = (int) Double.parseDouble(message.getParameters().getParameter().get(0).getValue());\n log.debug(\"posX = \" + posX);\n int posY = (int) Double.parseDouble(message.getParameters().getParameter().get(1).getValue());\n log.debug(\"posY = \" + posY);\n\n DamaCanvas canvas = (DamaCanvas) ccv.getHelper().getGameWith(message.getSender(), DamaCanvas.class);\n log.debug(canvas);\n canvas.setClick(new Point(posX, posY));\n canvas.setMyClick(false);\n canvas.repaint();\n\n } catch (Exception e) {\n //potrebbe da nullpointer\n log.error(e);\n }\n }\n\n// </editor-fold>\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" COMMAND \">\n } else if (message.getType().equals(COMMAND)) {\n\n if (message.getName().equals(Command.REMOVEUSER)) {\n\n String clientToRemove = message.getParameters().getParameter().get(0).getValue();\n\n ArrayList<Client> clients = ccv.getClients();\n ListIterator<Client> li = clients.listIterator();\n boolean continua = true;\n while (li.hasNext() && continua) {\n Client elem = li.next();\n if (elem.getNick().equals(clientToRemove)) {\n log.info(\"remove element : \" + elem);\n clients.remove(elem);\n DefaultListModel listModel = (DefaultListModel) ccv.getClientsList().getModel();\n synchronized (listModel) {\n listModel.removeElement(elem.getNick());\n ccv.getClientsList().validate();\n ccv.getFrame().pack();\n continua = false;\n }\n }\n }\n\n /*aggiungo un nuovo utente che si è connesso*/\n } else if (message.getName().equals(Command.ADDUSER)) {\n String clientToAdd = message.getParameters().getParameter().get(0).getValue();\n\n ccv.getClients().add(new Client(null, clientToAdd));\n// JList list = ccv.getClientsList();\n int position = ccv.getClientsList().getModel().getSize() - 1;\n DefaultListModel listModel = (DefaultListModel) ccv.getClientsList().getModel();\n synchronized (listModel) {\n// listModel.add(position, clientToAdd);\n\n// listModel.remove(listModel.size() - 1);\n listModel.addElement(clientToAdd);\n// listModel.addElement(null);\n\n ccv.getClientsList().validate();\n ccv.getFrame().validate();\n\n log.debug(\"utenti connessi : \");\n for (Object elem : listModel.toArray()) {\n\n try {\n log.debug(\"utente : \" + elem.toString());\n } catch (Exception e) {\n log.debug(\"elemento NULLO\");\n }\n }\n }\n }\n\n }\n // </editor-fold>\n\n\n }\n } catch (Exception e) {\n log.error(e);\n }\n }\n\n\n try {\n is.close();\n } catch (IOException ex) {\n log.error(ex);\n }\n return null;\n\n\n }"
] |
[
"0.5620498",
"0.5533194",
"0.5486039",
"0.52897197",
"0.5165067",
"0.5156936",
"0.5009707",
"0.4961929",
"0.4948685",
"0.48964918",
"0.48785537",
"0.48730135",
"0.48683703",
"0.48564482",
"0.48558834",
"0.4846831",
"0.4807251",
"0.4785708",
"0.47724873",
"0.47482702",
"0.47394535",
"0.47180372",
"0.47169125",
"0.4714365",
"0.46813485",
"0.46739793",
"0.4673158",
"0.46712068",
"0.46711537",
"0.4665669",
"0.46653742",
"0.46626708",
"0.4653485",
"0.46503192",
"0.46463695",
"0.46460032",
"0.46415702",
"0.4640637",
"0.4637692",
"0.46145064",
"0.46027067",
"0.45896614",
"0.45839983",
"0.45834187",
"0.4574063",
"0.45562196",
"0.4551385",
"0.45352164",
"0.45342803",
"0.45303565",
"0.4516344",
"0.45104408",
"0.45072666",
"0.45055968",
"0.4503529",
"0.4502744",
"0.45004836",
"0.44917694",
"0.4490581",
"0.44834146",
"0.44722596",
"0.44655773",
"0.44607732",
"0.4458915",
"0.44515425",
"0.44508904",
"0.44463393",
"0.4438218",
"0.44356975",
"0.44312847",
"0.44298285",
"0.4426863",
"0.44264716",
"0.44198206",
"0.44094995",
"0.4409441",
"0.4405393",
"0.43985167",
"0.4395683",
"0.43920314",
"0.43848565",
"0.43804395",
"0.43789664",
"0.43716747",
"0.43681395",
"0.43664134",
"0.43655974",
"0.4365279",
"0.43611723",
"0.43566087",
"0.4356079",
"0.43533656",
"0.4350067",
"0.43421853",
"0.4335407",
"0.4328913",
"0.432583",
"0.43178684",
"0.43162087",
"0.43142053"
] |
0.65155846
|
0
|
Creates a type for a java class.
|
public JavaType(Class c)
{
underlyingClass = c;
// Work out the basic java type based on the underlying class.
setBasicType(underlyingClass);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }",
"Type createType();",
"Type createType();",
"Type createType();",
"HxType createType(final String className);",
"private JavaType(Class<?> clazz) {\n this.clazz = clazz;\n }",
"private JavaType(String name) {\n this.name = name;\n }",
"public org.python.types.Type __new__(org.python.types.Type cls);",
"Class createClass();",
"TypeDef createTypeDef();",
"TypeDefinition createTypeDefinition();",
"NamedType createNamedType();",
"Class<?> getJavaType();",
"NamedClass createNamedClass();",
"TypeInterface createTypeInterface();",
"protected ModelType newJavaType(Class clazz) {\n\t\treturn new JavaType(clazz);\n\t}",
"DatatypeType createDatatypeType();",
"Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;",
"Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);",
"byte[] createJCas_TypeCoverClass(TypeImpl type) {\n this.type = type;\n typeJavaDescriptor = type.getJavaDescriptor();\n typeJavaClassName = type.getName().replace('.', '/') + \"_Type\";\n cn = new ClassNode(ASM5); // java 8\n cn.version = JAVA_CLASS_VERSION;\n cn.access = ACC_PUBLIC + ACC_SUPER;\n cn.name = typeJavaClassName; \n cn.superName = type.getSuperType().getName().replace('.', '/') + \"_Type\";\n\n // TODO\n \n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);\n cn.accept(cw);\n return cw.toByteArray();\n }",
"static Identifier makeTypeClass(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TYPE_CLASS, name);\r\n }\r\n }",
"private interface TypeCreator<T> {\n\t\tT createType();\n\t}",
"UserDefinedType createUserDefinedType();",
"TypeSystemDefinition createTypeSystemDefinition();",
"DataType createDataType();",
"JDefinedClass objectFactory();",
"public Type type(String name);",
"DomainType createDomainType();",
"void setClassType(String classType);",
"FieldType createFieldType();",
"public Class typeClass() {\n if (myClass == null) myClass = AST.globalSymbolTable.classForName(name);\n return myClass;\n }",
"<C> TypeExp<C> createTypeExp();",
"public static JavaType createForCStruct(String name) {\n return new JavaType(name);\n }",
"public ClassTypeManagerImpl(JNIEasyImpl jniEasy)\n {\n this.jniEasy = jniEasy;\n this.classTypeFinder = new ClassTypeFinder(this);\n \n ClassTypeNativeImpl.registerAllClassTypes(this); // He calculado que tarda algo más de un segundo, pero yo creo que vale la pena\n }",
"byte[] createJCasCoverClass(TypeImpl type) {\n this.type = type;\n typeJavaDescriptor = type.getJavaDescriptor();\n typeJavaClassName = type.getName().replace('.', '/');\n cn = new ClassNode(ASM5); // java 8\n cn.version = JAVA_CLASS_VERSION;\n cn.access = ACC_PUBLIC + ACC_SUPER;\n cn.name = typeJavaClassName; \n cn.superName = type.getSuperType().getName().replace('.', '/');\n// cn.interfaces = typeImpl.getInterfaceNamesArray(); // TODO\n \n // add the \"_typeImpl\" field - this has a ref to the TypeImpl for this class\n cn.fields.add(new FieldNode(ACC_PUBLIC + ACC_FINAL + ACC_STATIC,\n \"_typeImpl\", \"Lorg/apache/uima/type_system/impl/TypeImpl;\", null, null));\n \n // add field declares, and getters and setters, and special getters/setters for array things \n type.getMergedStaticFeaturesIntroducedByThisType().stream()\n .forEach(this::addFeatureFieldGetSet);\n \n addStaticInitAndConstructors();\n \n createSwitchGettersAndSetters();\n \n \n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);\n cn.accept(cw);\n return cw.toByteArray();\n }",
"protected void setJavaClass(Class type) {\n this._class = type;\n }",
"public JavaType getType() { return _type; }",
"private TypePackage createPackageFrom(PackageDescription description) {\n return TypePackageImpl.create(description);\n }",
"ConceptType createConceptType();",
"public JavaType(T o)\n {\n underlyingClass = (Class<T>) o.getClass();\n\n // Work out the basic java type based on the underlying class.\n setBasicType(underlyingClass);\n }",
"DatatypesType createDatatypesType();",
"private JavaType(Type elementType) {\n this.elementType = elementType;\n }",
"private byte[] createClass(String name, TypeElement element) {\n \n PackageElement pkg = env.elementUtils().getPackageOf(element);\n ensurePackageDefined(pkg.getQualifiedName().toString(), pkg);\n ClassWriter writer = new ClassWriter(0);\n boolean isInterface = element.getKind().isInterface();\n boolean isEnum = element.getKind() == ElementKind.ENUM;\n String typeDescriptor = env.typeNameUtils().getDescriptor(element.asType());\n String internalName = env.typeNameUtils().getInternalName(element);\n // Crawl elements and map all referenced types. Also records all referenced inner types and,\n // if this is an enum, records properties we need to know to possibly synthesize methods.\n Map<Integer, ExecutableElement> enumConstructors = new HashMap<>();\n List<String> enumConstants = new ArrayList<>();\n class EnumProperties {\n boolean hasBaseConstructor;\n boolean hasVisibleConstructor;\n int numParametersForUsableConstructor;\n boolean hasClInit;\n boolean hasValues;\n boolean hasValueOf;\n boolean hasAbstractMethods;\n }\n EnumProperties enumProps = new EnumProperties();\n HashMap<String, TypeElement> innerClasses = new HashMap<>();\n class TypeScanner extends SimpleElementVisitor8<Void, Void> {\n @Override\n public Void visitType(TypeElement e, Void p) {\n String className = mapType(e);\n if (e.getNestingKind().isNested()) {\n // save all inner classes for later\n innerClasses.put(className.replace('.', '/'), e);\n }\n return null;\n }\n \n void visitTypeMirror(TypeMirror type) {\n Element element = env.typeUtils().asElement(type);\n if (element != null) {\n element.accept(this, null);\n }\n }\n\n @Override\n public Void visitVariable(VariableElement e, Void p) {\n if (e.getKind() == ElementKind.ENUM_CONSTANT) {\n enumConstants.add(e.getSimpleName().toString());\n }\n visitTypeMirror(e.asType());\n return null;\n }\n\n @Override\n public Void visitExecutable(ExecutableElement e, Void p) {\n if (isEnum) {\n if (e.getModifiers().contains(Modifier.ABSTRACT)) {\n enumProps.hasAbstractMethods = true;\n }\n String methodName = e.getSimpleName().toString();\n if (e.getKind() == ElementKind.STATIC_INIT) {\n enumProps.hasClInit = true; \n } else if (e.getKind() == ElementKind.CONSTRUCTOR) {\n String consDescriptor = env.typeNameUtils().getDescriptor(e);\n Matcher m = ENUM_CTOR_DESC_PATTERN.matcher(consDescriptor);\n if (m.matches()) {\n enumConstructors.put(m.group(1).length(), e);\n }\n } else if (methodName.equals(\"values\") && e.getParameters().isEmpty()) {\n enumProps.hasValues = true;\n } else if (methodName.equals(\"valueOf\")\n && env.typeNameUtils().getDescriptor(e).equals(\"(Ljava/lang/String;)\"\n + typeDescriptor)) {\n enumProps.hasValueOf = true;\n }\n }\n \n e.getTypeParameters().forEach(typeParam -> visitTypeParameter(typeParam, null));\n visitTypeMirror(e.getReturnType());\n e.getParameters().forEach(param -> visitVariable(param, null));\n e.getThrownTypes().forEach(this::visitTypeMirror);\n return null;\n }\n \n @Override\n public Void visitTypeParameter(TypeParameterElement e, Void p) {\n e.getBounds().forEach(this::visitTypeMirror);\n return null;\n }\n };\n TypeScanner scanner = new TypeScanner();\n // scan all elements in this class\n for (Element e : element.getEnclosedElements()) {\n e.accept(scanner, null);\n }\n if (isEnum) {\n ExecutableElement ctor = enumConstructors.get(0);\n enumProps.hasBaseConstructor = ctor != null;\n if (!enumProps.hasAbstractMethods) {\n // no abstract methods? then base constructor is visible (even if private, since it's\n // only needed by this class)\n enumProps.hasVisibleConstructor = enumProps.hasBaseConstructor;\n enumProps.numParametersForUsableConstructor = 2;\n } else {\n // if it has abstract methods, we need to determine a constructor signature\n // we can use for synthesized sub-class to invoke\n if (ctor != null && !ctor.getModifiers().contains(Modifier.PRIVATE)) {\n enumProps.hasVisibleConstructor = true;\n enumProps.numParametersForUsableConstructor = 2;\n }\n if (!enumProps.hasVisibleConstructor) {\n // try to find a visible constructor\n int foundCtorArity = -1;\n for (int numParams = 1; numParams < 256; numParams++) {\n ExecutableElement e = enumConstructors.get(numParams);\n if (e == null || !e.getModifiers().contains(Modifier.PRIVATE)) {\n // If it doesn't exist, we can synthesize it. If it does exist\n // and isn't private, then it's visible, and we can generate the\n // impl. Either way, this is the one.\n enumProps.hasVisibleConstructor = e != null;\n enumProps.numParametersForUsableConstructor = foundCtorArity = numParams;\n break;\n }\n }\n if (foundCtorArity == -1) {\n throw new IllegalStateException(\n \"No signature could be formulated for a visible constructor for \"\n + internalName);\n }\n }\n }\n }\n \n // Class header\n int modifiers = computeModifierFlags(element.getModifiers());\n if (!isInterface) {\n modifiers |= ACC_SUPER;\n }\n switch (element.getKind()) {\n case ANNOTATION_TYPE:\n modifiers |= ACC_ANNOTATION;\n // intentional fall-through\n case INTERFACE:\n modifiers |= ACC_INTERFACE | ACC_ABSTRACT;\n break;\n case ENUM:\n modifiers |= ACC_ENUM;\n if (!enumProps.hasAbstractMethods) {\n modifiers |= ACC_FINAL; \n }\n break;\n default:\n // no extra modifiers\n }\n // scan the element's type hierarchy\n scanner.visitTypeMirror(element.getSuperclass());\n for (TypeMirror iface : element.getInterfaces()) {\n scanner.visitTypeMirror(iface);\n }\n TypeMirror superclass = isInterface\n ? env.elementUtils().getTypeElement(\"java.lang.Object\").asType()\n : element.getSuperclass();\n List<? extends TypeMirror> interfaces = element.getInterfaces();\n writer.visit(V1_8, modifiers, internalName,\n env.signatureUtils().getClassSignature(element),\n env.typeNameUtils().getInternalName(superclass),\n interfaces.stream()\n .map(mirror -> env.typeNameUtils().getInternalName(mirror))\n .toArray(sz -> new String[sz]));\n // Class Annotations\n for (AnnotationMirror mirror : element.getAnnotationMirrors()) {\n env.annotationUtils().recordAnnotation(writer, mirror);\n // scan annotations\n scanner.visitTypeMirror(mirror.getAnnotationType());\n }\n // Type annotations\n // - Superclass\n env.typeAnnotationUtils().recordSuperTypeAnnotations(writer, scanner::visitTypeMirror,\n element.getSuperclass(), -1);\n // - Interfaces\n int i = 0;\n for (TypeMirror interfaceMirror : element.getInterfaces()) {\n env.typeAnnotationUtils().recordSuperTypeAnnotations(writer, scanner::visitTypeMirror,\n interfaceMirror, i++);\n }\n // - Type variables and bounds\n i = 0;\n for (TypeParameterElement typeVar : element.getTypeParameters()) {\n env.typeAnnotationUtils().recordClassTypeParameterAnnotations(writer,\n scanner::visitTypeMirror, typeVar, i++);\n }\n // Outer Class Info\n Element enclosing = element.getEnclosingElement();\n enclosing.accept(new SimpleElementVisitor8<Void, Void>() {\n @Override\n public Void visitType(TypeElement element, Void p) {\n writer.visitOuterClass(env.typeNameUtils().getInternalName(element), null, null);\n return null;\n }\n \n @Override\n public Void visitExecutable(ExecutableElement element, Void p) {\n writer.visitOuterClass(\n env.typeNameUtils().getInternalName((TypeElement) element.getEnclosingElement()),\n element.getSimpleName().toString(),\n env.typeNameUtils().getDescriptor(element));\n return null;\n }\n }, null);\n // Fields and Methods\n // - Emit all fields and methods\n for (Element e : element.getEnclosedElements()) {\n e.accept(new ElementKindVisitor8<Void, Void>() {\n @Override\n public Void visitVariableAsEnumConstant(VariableElement e, Void p) {\n return visitVariableAsField(e, p);\n }\n\n @Override\n public Void visitVariableAsField(VariableElement e, Void p) {\n int access = computeModifierFlags(e.getModifiers());\n if (isInterface) {\n access |= ACC_PUBLIC | ACC_STATIC;\n }\n // Field declaration\n FieldVisitor visitor = writer.visitField(access,\n e.getSimpleName().toString(),\n env.typeNameUtils().getDescriptor(e),\n env.signatureUtils().getTypeSignature(e.asType()),\n (access & ACC_STATIC) == 0 ? null : e.getConstantValue());\n // Annotations\n for (AnnotationMirror mirror : e.getAnnotationMirrors()) {\n env.annotationUtils().recordAnnotation(visitor, mirror);\n // scan field annotations\n scanner.visitTypeMirror(mirror.getAnnotationType());\n }\n // Type Annotations\n env.typeAnnotationUtils().recordFieldTypeAnnotations(visitor,\n scanner::visitTypeMirror, e.asType());\n visitor.visitEnd();\n return null;\n }\n\n @Override\n public Void visitExecutable(ExecutableElement e, Void p) {\n int access = computeModifierFlags(e.getModifiers());\n if (isInterface) {\n access |= ACC_PUBLIC;\n if (!e.getModifiers().contains(Modifier.DEFAULT)) {\n access |= ACC_ABSTRACT;\n }\n }\n // Method declaration\n String methodName;\n switch (e.getKind()) {\n case STATIC_INIT:\n methodName = \"<clinit>\";\n break;\n case CONSTRUCTOR:\n methodName = \"<init>\";\n break;\n default:\n assert e.getKind() == ElementKind.METHOD;\n methodName = e.getSimpleName().toString();\n break;\n }\n MethodVisitor visitor = writer.visitMethod(access, methodName,\n env.typeNameUtils().getDescriptor(e),\n env.signatureUtils().getMethodSignature(e),\n e.getThrownTypes().stream()\n .map(mirror -> env.typeNameUtils().getInternalName(mirror))\n .toArray(sz -> new String[sz]));\n // Default values for annotation methods\n AnnotationValue defaultValue = e.getDefaultValue();\n if (defaultValue != null) {\n assert element.getKind() == ElementKind.ANNOTATION_TYPE;\n AnnotationVisitor av = visitor.visitAnnotationDefault();\n env.annotationUtils().recordAnnotationValue(av, \"\", defaultValue);\n av.visitEnd();\n }\n // Annotations\n for (AnnotationMirror mirror : e.getAnnotationMirrors()) {\n env.annotationUtils().recordAnnotation(visitor, mirror);\n // scan method annotations\n scanner.visitTypeMirror(mirror.getAnnotationType());\n }\n // Parameters and parameter annotations\n int i = 0;\n for (VariableElement param : e.getParameters()) {\n visitor.visitParameter(param.getSimpleName().toString(),\n computeModifierFlags(param.getModifiers()));\n for (AnnotationMirror mirror : param.getAnnotationMirrors()) {\n env.annotationUtils().recordParameterAnnotation(visitor, i, mirror);\n }\n i++;\n }\n // Type annotations\n // - Type variables and bounds\n i = 0;\n for (TypeParameterElement typeVar : e.getTypeParameters()) {\n env.typeAnnotationUtils().recordMethodTypeParameterAnnotations(visitor,\n scanner::visitTypeMirror, typeVar, i++);\n }\n // - Receiver type annotations\n TypeMirror receiverType = e.getReceiverType();\n if (receiverType != null && receiverType.getKind() != TypeKind.NONE) {\n env.typeAnnotationUtils().recordReceiverTypeAnnotations(visitor,\n scanner::visitTypeMirror, receiverType);\n }\n // - Return type annotations\n TypeMirror returnType = e.getReturnType();\n if (returnType.getKind() != TypeKind.VOID) {\n env.typeAnnotationUtils().recordReturnTypeAnnotations(visitor,\n scanner::visitTypeMirror, returnType);\n }\n // - Parameter type annotations\n i = 0;\n for (VariableElement param : e.getParameters()) {\n env.typeAnnotationUtils().recordParameterTypeAnnotations(visitor,\n scanner::visitTypeMirror, param.asType(), i++);\n }\n // - Throws type annotations\n i = 0;\n for (TypeMirror thrownType : e.getThrownTypes()) {\n env.typeAnnotationUtils().recordExceptionTypeAnnotations(visitor,\n scanner::visitTypeMirror, thrownType, i++);\n }\n // Code / Method body\n Set<Modifier> modifiers = e.getModifiers();\n if (!modifiers.contains(Modifier.ABSTRACT) && !modifiers.contains(Modifier.NATIVE)) {\n boolean writeDefaultImpl = true; \n if (isEnum) {\n if (methodName.equals(\"<clinit>\")) {\n writeEnumClInitImplementation(visitor, enumConstants, internalName,\n typeDescriptor, enumProps.numParametersForUsableConstructor);\n writeDefaultImpl = false;\n } else if (methodName.equals(\"<init>\")\n && env.typeNameUtils().getDescriptor(e).equals(\"(Ljava/lang/String;I)V\")) {\n // TODO: generate method body for visible constructor w/ different signature\n // if needed by concrete sub-class\n writeEnumBaseConstructorImplementation(visitor,\n getParameterNames(e.getParameters()), typeDescriptor);\n writeDefaultImpl = false;\n } else if (methodName.equals(\"values\") &&\n env.typeNameUtils().getDescriptor(e).equals(\"()[\" + typeDescriptor)) {\n writeEnumValuesImplementation(visitor, enumConstants, internalName,\n typeDescriptor);\n writeDefaultImpl = false;\n } else if (methodName.equals(\"valueOf\")\n && env.typeNameUtils().getDescriptor(e).equals(\"(Ljava/lang/String;)\"\n + typeDescriptor)) {\n assert e.getParameters().size() == 1;\n writeEnumValueOfImplementation(visitor,\n e.getParameters().get(0).getSimpleName().toString(), internalName,\n typeDescriptor);\n writeDefaultImpl = false;\n }\n }\n if (writeDefaultImpl) {\n writeDefaultMethodImplementation(visitor, e.getParameters(),\n e.getModifiers().contains(Modifier.STATIC) ? null : typeDescriptor);\n }\n }\n visitor.visitEnd();\n return null;\n }\n }, null);\n }\n // - Synthesize enum methods if necessary\n if (isEnum) {\n if (enumProps.hasAbstractMethods) {\n if (!enumProps.hasVisibleConstructor) {\n // must synthesize a visible constructor\n int countBoolArgs = enumProps.numParametersForUsableConstructor - 2;\n MethodVisitor mv = writer.visitMethod(ACC_SYNTHETIC, \"<init>\",\n \"(Ljava/lang/String;I\" + Collections.nCopies(countBoolArgs, \"Z\") + \")V\", null,\n null);\n List<String> paramNames =\n new ArrayList<>(enumProps.numParametersForUsableConstructor);\n paramNames.add(\"name\");\n paramNames.add(\"ordinal\");\n for (int c = 0; c < countBoolArgs; c++) {\n paramNames.add(\"p\" + (c + 3));\n }\n writeEnumBaseConstructorImplementation(mv, paramNames, typeDescriptor);\n mv.visitEnd();\n }\n // TODO: synthesize concrete sub-class\n }\n if (!enumProps.hasBaseConstructor) {\n MethodVisitor mv =\n writer.visitMethod(0, \"<init>\", \"(Ljava/lang/String;I)V\", null, null);\n writeEnumBaseConstructorImplementation(mv, Arrays.asList(\"name\", \"ordinal\"),\n typeDescriptor);\n mv.visitEnd();\n }\n if (!enumProps.hasClInit) {\n MethodVisitor mv = writer.visitMethod(ACC_STATIC, \"<clinit>\", \"()V\", null, null);\n writeEnumClInitImplementation(mv, enumConstants, internalName, typeDescriptor,\n enumProps.numParametersForUsableConstructor);\n mv.visitEnd();\n }\n if (!enumProps.hasValueOf) {\n MethodVisitor mv = writer.visitMethod(ACC_PUBLIC + ACC_STATIC, \"valueOf\",\n \"(Ljava/lang/String;)\" + typeDescriptor, null, null);\n writeEnumValueOfImplementation(mv, \"name\", internalName, typeDescriptor);\n mv.visitEnd();\n }\n if (!enumProps.hasValues) {\n MethodVisitor mv = writer.visitMethod(ACC_PUBLIC + ACC_STATIC, \"values\",\n \"()[\" + typeDescriptor, null, null);\n writeEnumValuesImplementation(mv, enumConstants, internalName, typeDescriptor);\n mv.visitEnd();\n }\n }\n // Inner Class Info\n // (We save this for last since, at this point, we've scanned every type that is referenced\n // from within this type, including annotations and type annotations on fields and methods.)\n for (Entry<String, TypeElement> entry : innerClasses.entrySet()) {\n String innerClassInternalName = entry.getKey();\n TypeElement innerClass = entry.getValue();\n TypeElement outerClass = null;\n for (Element e = innerClass.getEnclosingElement(); e != null;\n e = e.getEnclosingElement()) {\n outerClass = e.accept(new SimpleElementVisitor8<TypeElement, Void>() {\n public TypeElement visitType(TypeElement e, Void p) {\n return e;\n }\n }, null);\n if (outerClass != null) {\n break;\n }\n }\n assert outerClass != null;\n writer.visitInnerClass(innerClassInternalName,\n env.typeNameUtils().getInternalName(outerClass),\n innerClass.getSimpleName().toString(),\n computeModifierFlags(innerClass.getModifiers()));\n }\n // Done!\n writer.visitEnd();\n return writer.toByteArray();\n }",
"StructureType createStructureType();",
"public AnnotatedTypeBuilder<X> setJavaClass(Class<X> javaClass) {\n\t\tthis.javaClass = javaClass;\n\t\treturn this;\n\t}",
"TypeImport createTypeImport();",
"<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;",
"CodeType createCodeType();",
"private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }",
"public static Type Type(String str) {\n\t\ttry {\n\t\t\tJavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);\n\t\t\tBinaryInputStream bin = new BinaryInputStream(jin);\n\t\t\tBinaryAutomataReader reader = new BinaryAutomataReader(bin,\n\t\t\t\t\tTypes.SCHEMA);\n\t\t\tAutomaton automaton = reader.read();\n\t\t\treader.close();\n\n\t\t\treturn Type.construct(automaton);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"runtime failure constructing type\", e);\n\t\t}\n\t}",
"UdtType createUdtType();",
"@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}",
"public String getType() {\n\t\treturn \"class\";\n\t}",
"DsmlClass createDsmlClass();",
"ClassInstanceCreationExpression getClass_();",
"private TypeDb createTypeInstance(long id, String nameEn) {\n TypeDb typeDb = new TypeDb();\n typeDb.setId(id);\n typeDb.setTypeNameEn(nameEn);\n typeDb.setTypeNameRu(new TypeMapper().toRu(nameEn));\n return typeDb;\n }",
"ObjectTypeDefinition createObjectTypeDefinition();",
"Type type();",
"Type type();",
"BType createBType();",
"public <T> T createInstance(final Class<T> type, final String moduleName, final String className,\n\t\t\tfinal Object... args) {\n\n\t\tfinal PyObject importer = getImporter();\n\t\tsetClasspath(importer);\n\n\t\tfinal PyObject instance = createObject(getPythonClass(importer, moduleName, className), args);\n\n\t\t// coerce into java type\n\t\treturn (T) instance.__tojava__(type);\n\t}",
"TypeDecl createTypeDecl();",
"public JavaType(Class c, boolean notNull)\n {\n underlyingClass = c;\n\n // Work out the basic java type based on the underlying class.\n setBasicType(underlyingClass);\n\n if (notNull)\n {\n restrictions = new LinkedList<TypeRestriction>();\n restrictions.add(new NotNullRestriction());\n }\n }",
"public void createClass(String className)\r\n\t{\r\n\t\tString longName;\r\n\t\tif(className.contains(\"#\"))\r\n\t\t\tlongName = className;\r\n\t\tif(className.contains(\":\"))\r\n\t\t\tlongName= ONT_MODEL.expandPrefix(className);\r\n\t\telse\r\n\t\t\tlongName = BASE_NS + className;\r\n\t\t\r\n\t\tONT_MODEL.createClass(longName);\r\n\t}",
"private Object createInstanceOfType(Class<?> propertyType)\n\t{\n\t\tObject typeInstance = null;\n\t\tif (propertyType.isArray())\n\t\t{\n\t\t\ttypeInstance = createArray(propertyType);\n\t\t}\n\t\telse if (propertyType.isPrimitive())\n\t\t{\n\t\t\ttypeInstance = primitiveTypeFactory.create(propertyType);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttypeInstance = knownTypeFactory.create(propertyType);\n\t\t}\n\t\treturn typeInstance;\n\t}",
"public Class getJavaClass() {\n return _class;\n }",
"Class<?> type();",
"public Class getType();",
"public JavaType _typeFromId(String id) {\n return (JavaType) this._idToType.get(id);\n }",
"XClass getType();",
"Class<?> getType();",
"Class<?> getType();",
"Class<?> getType();",
"TypedObjectDecl createTypedObjectDecl();",
"@NpmPackage(\n name = \"highcharts\",\n version = \"^8.1.2\"\n)\n@Import(\n symbols = {\"Class as Class_Class\"},\n module = \"highcharts/es-modules/masters/highcharts.src.js\"\n)\n@Import(\n module = \"highcharts/es-modules/masters/highcharts.src.js\"\n)\npublic interface Class<T extends Any> extends JsFunction {\n /**\n * Class costructor.\n *\n * @param args\n * Constructor arguments.\n *\n * @return Class instance.\n *\n */\n @JSBody(\n params = {\"args\"},\n script = \"return Class_Class.apply(null, args)\"\n )\n static <T extends Any> T create(Any... args) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n}",
"ExtensionType createExtensionType();",
"public abstract JavaType resolveType(java.lang.reflect.Type jdkType);",
"public static void set_Type(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaTypeCmd, s, v);\n UmlCom.check();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n if (b == null)\n b = UmlSettings.add_type(s);\n b.java = v;\n }",
"UniqueType createUniqueType();",
"@Test\n\tpublic void testReturnedClass() {\n\t\tassertEquals(\"java.lang.reflect.TypeVariable<D>\", String.valueOf(sut.getActualType()));\n\t}",
"CategoryType createCategoryType();",
"public void testGetType() {\n System.out.println(\"getType\"); // NOI18N\n \n TypeID expResult;\n TypeID result;\n String value = \"Test value\"; // NOI18N\n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n \n result = PropertyValue.createValue(primitveDescritor, type,value).getType();\n expResult = type;\n assertEquals(expResult, result);\n }",
"public static CommandType createClass(String name) {\n\t\t\n\t\tif(counter < MAX) {\n\t\t\tcounter ++;\n\t\t\treturn new CommandType(name);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Es können keine CommandType Objekte mehr erstellt werden!\");\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}",
"public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {\n AnnotatedType referencedTypeVariable = getAnnotatedType();\n TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);\n return typeInstance;\n }",
"public static Object java_class(Env env,\n String className)\n {\n try {\n JavaClassDef def = env.getJavaClassDefinition(className);\n\n if (def == null) {\n env.warning(L.l(\"could not find Java class {0}\", className));\n return null;\n }\n\n return new JavaValue(env, def.getType(), def);\n } catch (Throwable e) {\n log.log(Level.FINE, e.getMessage(), e);\n env.warning(e);\n\n return null;\n }\n }",
"public Class<?> getJavaClass() {\n return clazz;\n }",
"TypeLiteralExp createTypeLiteralExp();",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"CodeSetsType createCodeSetsType();",
"@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}",
"public interface TypeConvertor {\n Object convert (Class from, Class to, Object obj);\n String getCodeGenString ();\n}",
"void writeConcreteType(Class<?> type);",
"@Override\n public TypeDefinition createType(String repositoryId, TypeDefinition type, ExtensionsData extension) {\n CmisSpi spi = CmisBindingsHelper.getSPI(session);\n TypeDefinition result = spi.getRepositoryService().createType(repositoryId, type, extension);\n\n // add the type to cache\n TypeDefinitionCache cache = CmisBindingsHelper.getTypeDefinitionCache(session);\n cache.put(repositoryId, result);\n\n return result;\n }",
"public Class getType();",
"public static String toJavaType( String type ) {\n StringBuffer nat = new StringBuffer( 30 );\n int arraydim = 0;\n while ( type.charAt( arraydim ) == '[' ) arraydim++;\n type = type.substring( arraydim );\n switch ( type.charAt( 0 ) ) {\n default:\n throw new IllegalArgumentException( \"unknown native type:\" + type );\n case 'B':\n nat.append( \"byte\" );\n break;\n case 'C':\n nat.append( \"char\" );\n break;\n case 'D':\n nat.append( \"double\" );\n break;\n case 'F':\n nat.append( \"float\" );\n break;\n case 'I':\n nat.append( \"int\" );\n break;\n case 'J':\n nat.append( \"long\" );\n break;\n case 'S':\n nat.append( \"short\" );\n break;\n case 'Z':\n nat.append( \"boolean\" );\n break;\n case 'V':\n nat.append( \"void\" );\n break;\n case 'L':\n String className = type.substring( 1, type.length() - 1 );\n if ( className.indexOf( '<' ) >= 0 ) {\n String parameters = type.substring( className.indexOf( '<' ) + 2, className.lastIndexOf( '>' ) - 1 );\n className = className.substring( 0, className.indexOf( '<' ) );\n nat.append( className.replace( '/', '.' ) );\n nat.append( '<' );\n nat.append( toJavaParameters( parameters ) );\n nat.append( '>' );\n } else {\n nat.append( className.replace( '/', '.' ) );\n }\n break;\n }\n for ( int i = 0; i < arraydim; i++ ) {\n nat.append( \"[]\" );\n }\n return nat.toString();\n }",
"public JythonObjectFactory(Class interfaceType, String moduleName, String className) {\n this(new PySystemState(), interfaceType, moduleName, className);\n }",
"Class<?> readConcreteType();",
"public String getClazz();",
"MessageType createMessageType();",
"ScalarTypeDefinition createScalarTypeDefinition();"
] |
[
"0.79136336",
"0.74209774",
"0.74209774",
"0.74209774",
"0.7395033",
"0.7366337",
"0.7223079",
"0.7063198",
"0.6862264",
"0.6811631",
"0.6728048",
"0.65842587",
"0.65036833",
"0.6437176",
"0.6379957",
"0.6366462",
"0.63218826",
"0.63073486",
"0.62741137",
"0.62705064",
"0.6241171",
"0.6178128",
"0.61128205",
"0.6105392",
"0.60366875",
"0.60271424",
"0.59992486",
"0.5971541",
"0.5970578",
"0.59685683",
"0.5965501",
"0.59626937",
"0.5944444",
"0.59444124",
"0.5918224",
"0.59044343",
"0.58962566",
"0.5886598",
"0.5885609",
"0.58782583",
"0.5877425",
"0.5871112",
"0.58576936",
"0.5849221",
"0.5848773",
"0.58173543",
"0.5809351",
"0.57941836",
"0.5770296",
"0.5758853",
"0.57423866",
"0.57354736",
"0.5732281",
"0.5726582",
"0.57186466",
"0.5712466",
"0.5694106",
"0.568584",
"0.568584",
"0.5634392",
"0.562865",
"0.5628115",
"0.56268716",
"0.56183016",
"0.56153494",
"0.5611119",
"0.56062967",
"0.55903524",
"0.5585851",
"0.55838037",
"0.5579273",
"0.5579273",
"0.5579273",
"0.55775034",
"0.55774826",
"0.5576159",
"0.5551914",
"0.55408543",
"0.5529768",
"0.552344",
"0.55187076",
"0.55178064",
"0.551405",
"0.55093336",
"0.54989034",
"0.5475221",
"0.54737943",
"0.5460628",
"0.5453279",
"0.5447094",
"0.543613",
"0.5428063",
"0.54249895",
"0.54231906",
"0.54212743",
"0.54209316",
"0.5413358",
"0.5408133",
"0.53872836",
"0.53767127"
] |
0.65949154
|
11
|
Creates a type for a java class, with the additional possible restriction that instantces of this type must not be allowed to be null.
|
public JavaType(Class c, boolean notNull)
{
underlyingClass = c;
// Work out the basic java type based on the underlying class.
setBasicType(underlyingClass);
if (notNull)
{
restrictions = new LinkedList<TypeRestriction>();
restrictions.add(new NotNullRestriction());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private JavaType(Class<?> clazz) {\n this.clazz = clazz;\n }",
"public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }",
"private JavaType(String name) {\n this.name = name;\n }",
"public org.python.types.Type __new__(org.python.types.Type cls);",
"Type createType();",
"Type createType();",
"Type createType();",
"EmptyType createEmptyType();",
"HxType createType(final String className);",
"public JavaType(Class c)\n {\n underlyingClass = c;\n\n // Work out the basic java type based on the underlying class.\n setBasicType(underlyingClass);\n }",
"TypeDef createTypeDef();",
"public JavaType(T o)\n {\n underlyingClass = (Class<T>) o.getClass();\n\n // Work out the basic java type based on the underlying class.\n setBasicType(underlyingClass);\n }",
"private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }",
"private JavaType(Type elementType) {\n this.elementType = elementType;\n }",
"protected ModelType newJavaType(Class clazz) {\n\t\treturn new JavaType(clazz);\n\t}",
"Class createClass();",
"DatatypeType createDatatypeType();",
"protected Object createBeanMatchingType(MappingContext mappingContext) {\n // clazz is never null given the only path that leads to this method already performs that check\n final Class<?> clazz = mappingContext.getTypeInformation().getSafeToWriteClass();\n try {\n return clazz.getDeclaredConstructor().newInstance();\n } catch (ReflectiveOperationException e) {\n throw new ConfigMeMapperException(mappingContext, \"Could not create object of type '\"\n + clazz.getName() + \"'. It is required to have a default constructor\", e);\n }\n }",
"@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }",
"TypeInterface createTypeInterface();",
"public Type() {\n super();\n }",
"TypeDefinition createTypeDefinition();",
"static Identifier makeTypeClass(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TYPE_CLASS, name);\r\n }\r\n }",
"@Override public Type make_nil(byte nil) { return make(nil,_any); }",
"UserDefinedType createUserDefinedType();",
"UniqueType createUniqueType();",
"NamedType createNamedType();",
"Type() {\n }",
"DomainType createDomainType();",
"private T createInternalT(Class type) {\n\t\ttry {\n\t\t return (T)(type.newInstance());\n\t\t} catch( Exception e ) {\n\t\t return null;\n\t\t}\n\t}",
"byte[] createJCas_TypeCoverClass(TypeImpl type) {\n this.type = type;\n typeJavaDescriptor = type.getJavaDescriptor();\n typeJavaClassName = type.getName().replace('.', '/') + \"_Type\";\n cn = new ClassNode(ASM5); // java 8\n cn.version = JAVA_CLASS_VERSION;\n cn.access = ACC_PUBLIC + ACC_SUPER;\n cn.name = typeJavaClassName; \n cn.superName = type.getSuperType().getName().replace('.', '/') + \"_Type\";\n\n // TODO\n \n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);\n cn.accept(cw);\n return cw.toByteArray();\n }",
"Class<?> getJavaType();",
"DataType createDataType();",
"public AnnotatedTypeBuilder<X> setJavaClass(Class<X> javaClass) {\n\t\tthis.javaClass = javaClass;\n\t\treturn this;\n\t}",
"public BaseTypeIdImpl() {}",
"FieldType createFieldType();",
"<U extends T> U maybeCreate(String name, Class<U> type) throws InvalidUserDataException;",
"NullValue createNullValue();",
"NullValue createNullValue();",
"<C> TypeExp<C> createTypeExp();",
"<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"BType createBType();",
"ConceptType createConceptType();",
"StructureType createStructureType();",
"NamedClass createNamedClass();",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static JavaType createForCStruct(String name) {\n return new JavaType(name);\n }",
"private interface TypeCreator<T> {\n\t\tT createType();\n\t}",
"public static NewExpression new_(Class type) { throw Extensions.todo(); }",
"DOMType() {\n // Constructs an empty type node\n }",
"protected void setJavaClass(Class type) {\n this._class = type;\n }",
"DatatypesType createDatatypesType();",
"@Override\n public <T extends J> T withType(@Nullable JavaType type) {\n return (T) this;\n }",
"ObjectTypeDefinition createObjectTypeDefinition();",
"JDefinedClass objectFactory();",
"protected GEDCOMType() {/* intentionally empty block */}",
"public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {\n AnnotatedType referencedTypeVariable = getAnnotatedType();\n TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);\n return typeInstance;\n }",
"@Override\n\tpublic Class<?> getJavaType() {\n\t\treturn null;\n\n\t}",
"public TypeUtils() {\n\t}",
"Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);",
"byte[] createJCasCoverClass(TypeImpl type) {\n this.type = type;\n typeJavaDescriptor = type.getJavaDescriptor();\n typeJavaClassName = type.getName().replace('.', '/');\n cn = new ClassNode(ASM5); // java 8\n cn.version = JAVA_CLASS_VERSION;\n cn.access = ACC_PUBLIC + ACC_SUPER;\n cn.name = typeJavaClassName; \n cn.superName = type.getSuperType().getName().replace('.', '/');\n// cn.interfaces = typeImpl.getInterfaceNamesArray(); // TODO\n \n // add the \"_typeImpl\" field - this has a ref to the TypeImpl for this class\n cn.fields.add(new FieldNode(ACC_PUBLIC + ACC_FINAL + ACC_STATIC,\n \"_typeImpl\", \"Lorg/apache/uima/type_system/impl/TypeImpl;\", null, null));\n \n // add field declares, and getters and setters, and special getters/setters for array things \n type.getMergedStaticFeaturesIntroducedByThisType().stream()\n .forEach(this::addFeatureFieldGetSet);\n \n addStaticInitAndConstructors();\n \n createSwitchGettersAndSetters();\n \n \n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);\n cn.accept(cw);\n return cw.toByteArray();\n }",
"public ClassTypeManagerImpl(JNIEasyImpl jniEasy)\n {\n this.jniEasy = jniEasy;\n this.classTypeFinder = new ClassTypeFinder(this);\n \n ClassTypeNativeImpl.registerAllClassTypes(this); // He calculado que tarda algo más de un segundo, pero yo creo que vale la pena\n }",
"TypeLiteralExp createTypeLiteralExp();",
"public interface TypeSystemCommonBackendContext extends TypeSystemContext {\n FqNameUnsafe getClassFqNameUnsafe(TypeConstructorMarker typeConstructorMarker);\n\n PrimitiveType getPrimitiveArrayType(TypeConstructorMarker typeConstructorMarker);\n\n PrimitiveType getPrimitiveType(TypeConstructorMarker typeConstructorMarker);\n\n KotlinTypeMarker getRepresentativeUpperBound(TypeParameterMarker typeParameterMarker);\n\n KotlinTypeMarker getSubstitutedUnderlyingType(KotlinTypeMarker kotlinTypeMarker);\n\n TypeParameterMarker getTypeParameterClassifier(TypeConstructorMarker typeConstructorMarker);\n\n boolean hasAnnotation(KotlinTypeMarker kotlinTypeMarker, FqName fqName);\n\n boolean isInlineClass(TypeConstructorMarker typeConstructorMarker);\n\n boolean isMarkedNullable(KotlinTypeMarker kotlinTypeMarker);\n\n boolean isUnderKotlinPackage(TypeConstructorMarker typeConstructorMarker);\n\n KotlinTypeMarker makeNullable(KotlinTypeMarker kotlinTypeMarker);\n\n /* compiled from: TypeSystemCommonBackendContext.kt */\n public static final class DefaultImpls {\n public static boolean isMarkedNullable(TypeSystemCommonBackendContext typeSystemCommonBackendContext, KotlinTypeMarker kotlinTypeMarker) {\n Intrinsics.checkParameterIsNotNull(kotlinTypeMarker, \"$this$isMarkedNullable\");\n return (kotlinTypeMarker instanceof SimpleTypeMarker) && typeSystemCommonBackendContext.isMarkedNullable((SimpleTypeMarker) kotlinTypeMarker);\n }\n\n public static KotlinTypeMarker makeNullable(TypeSystemCommonBackendContext typeSystemCommonBackendContext, KotlinTypeMarker kotlinTypeMarker) {\n SimpleTypeMarker withNullability;\n Intrinsics.checkParameterIsNotNull(kotlinTypeMarker, \"$this$makeNullable\");\n SimpleTypeMarker asSimpleType = typeSystemCommonBackendContext.asSimpleType(kotlinTypeMarker);\n return (asSimpleType == null || (withNullability = typeSystemCommonBackendContext.withNullability(asSimpleType, true)) == null) ? kotlinTypeMarker : withNullability;\n }\n }\n}",
"public static AnnotationType createEntity() {\n return new AnnotationType()\n .name(DEFAULT_NAME)\n .label(DEFAULT_LABEL)\n .description(DEFAULT_DESCRIPTION)\n .emotional(DEFAULT_EMOTIONAL)\n .weight(DEFAULT_WEIGHT)\n .color(DEFAULT_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }",
"private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}",
"public interface ClassType extends Importable, ReferenceType, MemberInstance\n{\n public static class Kind extends Enum {\n public Kind(String name) {\n super(name);\n }\n }\n\n public static final Kind TOP_LEVEL = new Kind(\"top-level\");\n public static final Kind MEMBER = new Kind(\"member\");\n public static final Kind LOCAL = new Kind(\"local\");\n public static final Kind ANONYMOUS = new Kind(\"anonymous\");\n\n /** Get the class's kind. */\n Kind kind();\n\n /**\n * Return true if the class is top-level (i.e., not inner).\n * Equivalent to kind() == TOP_LEVEL.\n */\n boolean isTopLevel();\n\n /**\n * Return true if the class is an inner class.\n * Equivalent to kind() == MEMBER || kind() == LOCAL || kind() == ANONYMOUS.\n * @deprecated Was incorrectly defined. Use isNested for nested classes,\n * and isInnerClass for inner classes.\n */\n boolean isInner();\n\n /**\n * Return true if the class is a nested.\n * Equivalent to kind() == MEMBER || kind() == LOCAL || kind() == ANONYMOUS.\n */\n boolean isNested();\n\n /**\n * Return true if the class is an inner class, that is, it is a nested\n * class that is not explicitly or implicitly declared static; an interface\n * is never an inner class.\n */\n boolean isInnerClass();\n\n /**\n * Return true if the class is a member class.\n * Equivalent to kind() == MEMBER.\n */\n boolean isMember();\n\n /**\n * Return true if the class is a local class.\n * Equivalent to kind() == LOCAL.\n */\n boolean isLocal();\n\n /**\n * Return true if the class is an anonymous class.\n * Equivalent to kind() == ANONYMOUS.\n */\n boolean isAnonymous();\n\n /**\n * Return true if the class declaration occurs in a static context.\n * Is used to determine if a nested class is implicitly static.\n */\n boolean inStaticContext();\n\n /**\n * The class's constructors.\n * A list of <code>ConstructorInstance</code>.\n * @see polyglot.types.ConstructorInstance\n */\n List constructors();\n\n /**\n * The class's member classes.\n * A list of <code>ClassType</code>.\n * @see polyglot.types.ClassType\n */\n List memberClasses();\n\n /** Returns the member class with the given name, or null. */\n ClassType memberClassNamed(String name);\n\n /** Get a field by name, or null. */\n FieldInstance fieldNamed(String name);\n\n /** Return true if the class is strictly contained in <code>outer</code>. */\n boolean isEnclosed(ClassType outer);\n\n /**\n * Implementation of <code>isEnclosed</code>.\n * This method should only be called by the <code>TypeSystem</code>\n * or by a subclass.\n */\n boolean isEnclosedImpl(ClassType outer);\n\n /** Return true if an object of the class has\n * an enclosing instance of <code>encl</code>. */\n boolean hasEnclosingInstance(ClassType encl);\n\n /**\n * Implementation of <code>hasEnclosingInstance</code>.\n * This method should only be called by the <code>TypeSystem</code>\n * or by a subclass.\n */\n boolean hasEnclosingInstanceImpl(ClassType encl);\n\n /** The class's outer class if this is a nested class, or null. */\n ClassType outer();\n}",
"private Object createInstanceOfType(Class<?> propertyType)\n\t{\n\t\tObject typeInstance = null;\n\t\tif (propertyType.isArray())\n\t\t{\n\t\t\ttypeInstance = createArray(propertyType);\n\t\t}\n\t\telse if (propertyType.isPrimitive())\n\t\t{\n\t\t\ttypeInstance = primitiveTypeFactory.create(propertyType);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttypeInstance = knownTypeFactory.create(propertyType);\n\t\t}\n\t\treturn typeInstance;\n\t}",
"ClassInstanceCreationExpression getClass_();",
"public static <T> T createObject(Class<T> clas) throws InstantiationException {\n return createObject(clas, null); //If there's no arguments then it should be null.\n }",
"protected static Object createValue(Class type)\n {\n Object rv = null;\n\n if (type.isPrimitive()) {\n if (type == Boolean.TYPE)\n rv = new Boolean(false);\n \n else if (type == Byte.TYPE)\n rv = new Byte((byte)0);\n \n else if (type == Character.TYPE)\n rv = new Character((char)0);\n \n else if (type == Short.TYPE)\n rv = new Short((short)0);\n \n else if (type == Integer.TYPE)\n rv = new Integer(0);\n \n else if (type == Long.TYPE)\n rv = new Long(0);\n \n else if (type == Float.TYPE)\n rv = new Float(0);\n \n else if (type == Double.TYPE)\n rv = new Double(0);\n \n else if (type == Void.TYPE)\n rv = null;\n \n else \n throw new Error(\"unreachable\");\n }\n\n return rv;\n }",
"UdtType createUdtType();",
"public static Object java_class(Env env,\n String className)\n {\n try {\n JavaClassDef def = env.getJavaClassDefinition(className);\n\n if (def == null) {\n env.warning(L.l(\"could not find Java class {0}\", className));\n return null;\n }\n\n return new JavaValue(env, def.getType(), def);\n } catch (Throwable e) {\n log.log(Level.FINE, e.getMessage(), e);\n env.warning(e);\n\n return null;\n }\n }",
"TypeDecl createTypeDecl();",
"TypeSystemDefinition createTypeSystemDefinition();",
"public static CommandType createClass(String name) {\n\t\t\n\t\tif(counter < MAX) {\n\t\t\tcounter ++;\n\t\t\treturn new CommandType(name);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Es können keine CommandType Objekte mehr erstellt werden!\");\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"T create();",
"T create();",
"public <T> T createInstance(final Class<T> type, final String moduleName, final String className,\n\t\t\tfinal Object... args) {\n\n\t\tfinal PyObject importer = getImporter();\n\t\tsetClasspath(importer);\n\n\t\tfinal PyObject instance = createObject(getPythonClass(importer, moduleName, className), args);\n\n\t\t// coerce into java type\n\t\treturn (T) instance.__tojava__(type);\n\t}",
"public PgClass() {\n this(DSL.name(\"pg_class\"), null);\n }",
"public TypeException() {\n }",
"PrimitiveType createPrimitiveType();",
"@NpmPackage(\n name = \"highcharts\",\n version = \"^8.1.2\"\n)\n@Import(\n symbols = {\"Class as Class_Class\"},\n module = \"highcharts/es-modules/masters/highcharts.src.js\"\n)\n@Import(\n module = \"highcharts/es-modules/masters/highcharts.src.js\"\n)\npublic interface Class<T extends Any> extends JsFunction {\n /**\n * Class costructor.\n *\n * @param args\n * Constructor arguments.\n *\n * @return Class instance.\n *\n */\n @JSBody(\n params = {\"args\"},\n script = \"return Class_Class.apply(null, args)\"\n )\n static <T extends Any> T create(Any... args) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n}",
"public JavaType getType() { return _type; }",
"ScalarTypeDefinition createScalarTypeDefinition();",
"CodeType createCodeType();",
"public ClassTemplate() {\n\t}",
"private TypeDb createTypeInstance(long id, String nameEn) {\n TypeDb typeDb = new TypeDb();\n typeDb.setId(id);\n typeDb.setTypeNameEn(nameEn);\n typeDb.setTypeNameRu(new TypeMapper().toRu(nameEn));\n return typeDb;\n }",
"public static Object createObject(String className, Class<?> parameterType, Object initarg) {\n try {\n Class<?> aClass = Class.forName(className);\n return createObject(aClass, parameterType, initarg);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public abstract <T> T create(Object object, Class<T> clazz);",
"public abstract DataType<T> newInstance();",
"public static ObjectInstance getBasicTypesWrapperClassObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"boolean\", Boolean\n .toString((getBasicTypesWrapperClassMBean().getBoolean())));\n properties.put(\"byte\", Byte\n .toString(getBasicTypesWrapperClassMBean().getByte()));\n properties.put(\"character\", String\n .valueOf(getBasicTypesWrapperClassMBean().getCharacter()));\n properties.put(\"double\", Double\n .toString((getBasicTypesWrapperClassMBean().getDouble())));\n properties.put(\"float\", Float\n .toString((getBasicTypesWrapperClassMBean().getFloat())));\n properties.put(\"integer\", Integer\n .toString(getBasicTypesWrapperClassMBean().getInteger()));\n properties.put(\"long\", Long\n .toString(getBasicTypesWrapperClassMBean().getLong()));\n properties.put(\"short\", Short\n .toString(getBasicTypesWrapperClassMBean().getShort()));\n properties.put(\"theLabel\", getBasicTypesWrapperClassMBean()\n .getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypesWrapperClass' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypesWrapperClass().getClass()\n .getName());\n }",
"private TypeCode() {}",
"ExtensionType createExtensionType();",
"public static ClassType of(Class<?> clazz)\n {\n return new ClassType(Set.of(), clazz, List.of());\n }",
"public static <Type> Type createInstance(final ClassInstantiatorConfig binaryClassNameHolder, final Object[] paramValues,final Class<?> ... paramTypes)\n {\n final Class<?> classInstance = loadClass(binaryClassNameHolder.getQualifiedClassName());\n\n final int paramTypesLength = paramTypes != null ? paramTypes.length : 0;\n final int paramValuesLength = paramValues != null ? paramValues.length : 0;\n final Object[] actualParamValues = new Object[paramTypesLength];\n if(paramValuesLength > paramTypesLength) {\n throw new RuntimeException(\"invalid arguments..\");\n }\n final int paramValueLength = paramValues != null ? paramValues.length : 0;\n for(int i = 0; i <paramTypesLength ; i++) {\n if(i < paramValueLength) {\n actualParamValues[i] = paramValues[i];\n }\n }\n try {\n final Constructor<?> constructor = classInstance.getDeclaredConstructor(paramTypes);\n final Object classObject = constructor.newInstance(actualParamValues);\n return (Type)classObject;\n } catch (final InstantiationException e) {\n throw new RuntimeException(e);\n } catch (final IllegalAccessException e) {\n throw new RuntimeException(e);\n } catch (final InvocationTargetException e) {\n throw new RuntimeException(e.getCause().getMessage(),e);\n } catch (final NoSuchMethodException e) {\n throw new RuntimeException(e);\n } catch(final IllegalArgumentException e) {\n throw new RuntimeException(e);\n }\n }",
"@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.AnyType createAnyType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.AnyTypeImpl();\n }"
] |
[
"0.74178565",
"0.7246396",
"0.683185",
"0.68079895",
"0.65974516",
"0.65974516",
"0.65974516",
"0.63964736",
"0.6245174",
"0.62082666",
"0.606423",
"0.59970367",
"0.5971663",
"0.5934693",
"0.59140545",
"0.5901617",
"0.5892563",
"0.5882231",
"0.58672404",
"0.5839871",
"0.5818462",
"0.5761275",
"0.5702",
"0.5664883",
"0.5654773",
"0.56319135",
"0.56171507",
"0.5586265",
"0.5566291",
"0.55594105",
"0.55591387",
"0.55194026",
"0.5511909",
"0.549441",
"0.54740304",
"0.5460381",
"0.54521155",
"0.54467255",
"0.54467255",
"0.5445677",
"0.5442443",
"0.542295",
"0.5405288",
"0.5403084",
"0.5396887",
"0.539178",
"0.53720903",
"0.5369509",
"0.53551877",
"0.53178245",
"0.53111756",
"0.53108424",
"0.5309489",
"0.52759856",
"0.52716964",
"0.5241861",
"0.5238427",
"0.5228432",
"0.52113533",
"0.518499",
"0.51707685",
"0.5168813",
"0.516708",
"0.5158837",
"0.5156594",
"0.51540697",
"0.51526815",
"0.5145384",
"0.51422995",
"0.5128507",
"0.51083225",
"0.50949156",
"0.50791436",
"0.5063775",
"0.5060033",
"0.50594616",
"0.505859",
"0.50530434",
"0.50521386",
"0.50521386",
"0.50479716",
"0.50447536",
"0.5041096",
"0.5028331",
"0.5027885",
"0.50249153",
"0.50247365",
"0.50243884",
"0.50174004",
"0.5007833",
"0.5001678",
"0.49982238",
"0.49972782",
"0.49962464",
"0.49942526",
"0.49870485",
"0.49858233",
"0.49726027",
"0.49670008",
"0.4945559"
] |
0.68464756
|
2
|
Creates a type for a java object.
|
public JavaType(T o)
{
underlyingClass = (Class<T>) o.getClass();
// Work out the basic java type based on the underlying class.
setBasicType(underlyingClass);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Type createType();",
"Type createType();",
"Type createType();",
"private JavaType(String name) {\n this.name = name;\n }",
"TypeDefinition createTypeDefinition();",
"ObjectTypeDefinition createObjectTypeDefinition();",
"HxType createType(final String className);",
"NamedType createNamedType();",
"public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }",
"TypeInterface createTypeInterface();",
"public org.python.types.Type __new__(org.python.types.Type cls);",
"TypedObjectDecl createTypedObjectDecl();",
"DatatypeType createDatatypeType();",
"JDefinedClass objectFactory();",
"TypeDef createTypeDef();",
"UserDefinedType createUserDefinedType();",
"DataType createDataType();",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"private interface TypeCreator<T> {\n\t\tT createType();\n\t}",
"OBJECT createOBJECT();",
"ConceptType createConceptType();",
"T crear(T obj);",
"StructureType createStructureType();",
"DomainType createDomainType();",
"DatatypesType createDatatypesType();",
"private JavaType(Class<?> clazz) {\n this.clazz = clazz;\n }",
"ObjectValue createObjectValue();",
"public abstract <T> T create(Object object, Class<T> clazz);",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"UdtType createUdtType();",
"public static Type Type(String str) {\n\t\ttry {\n\t\t\tJavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);\n\t\t\tBinaryInputStream bin = new BinaryInputStream(jin);\n\t\t\tBinaryAutomataReader reader = new BinaryAutomataReader(bin,\n\t\t\t\t\tTypes.SCHEMA);\n\t\t\tAutomaton automaton = reader.read();\n\t\t\treader.close();\n\n\t\t\treturn Type.construct(automaton);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"runtime failure constructing type\", e);\n\t\t}\n\t}",
"Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;",
"ObjectField createObjectField();",
"public Type type(String name);",
"TypeSystemDefinition createTypeSystemDefinition();",
"public abstract T create(T obj);",
"FieldType createFieldType();",
"public GraphQLObjectType createType(HibProject project) {\n\t\tBuilder root = newObject();\n\t\troot.name(PROJECT_TYPE_NAME);\n\t\tinterfaceTypeProvider.addCommonFields(root);\n\n\t\t// .name\n\t\troot.field(newFieldDefinition().name(\"name\").description(\"The name of the project\").type(GraphQLString));\n\n\t\t// .rootNode\n\t\troot.field(\n\t\t\tnewFieldDefinition()\n\t\t\t\t.name(\"rootNode\")\n\t\t\t\t.description(\"The root node of the project\")\n\t\t\t\t.type(new GraphQLTypeReference(NODE_TYPE_NAME))\n\t\t\t\t.argument(createLanguageTagArg(true))\n\t\t\t\t.argument(createNodeVersionArg())\n\t\t\t\t.dataFetcher(this::baseNodeFetcher));\n\n\t\treturn root.build();\n\t}",
"ExtensionType createExtensionType();",
"BType createBType();",
"public JavaType getType() { return _type; }",
"private Object createInstanceOfType(Class<?> propertyType)\n\t{\n\t\tObject typeInstance = null;\n\t\tif (propertyType.isArray())\n\t\t{\n\t\t\ttypeInstance = createArray(propertyType);\n\t\t}\n\t\telse if (propertyType.isPrimitive())\n\t\t{\n\t\t\ttypeInstance = primitiveTypeFactory.create(propertyType);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttypeInstance = knownTypeFactory.create(propertyType);\n\t\t}\n\t\treturn typeInstance;\n\t}",
"private TypeDb createTypeInstance(long id, String nameEn) {\n TypeDb typeDb = new TypeDb();\n typeDb.setId(id);\n typeDb.setTypeNameEn(nameEn);\n typeDb.setTypeNameRu(new TypeMapper().toRu(nameEn));\n return typeDb;\n }",
"ObjectLiteral createObjectLiteral();",
"<T> T fromJson(String source, JavaType type);",
"TypeLiteralExp createTypeLiteralExp();",
"<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;",
"protected ModelType newJavaType(Class clazz) {\n\t\treturn new JavaType(clazz);\n\t}",
"private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }",
"<C> TypeExp<C> createTypeExp();",
"TypeRef getType();",
"Type type();",
"Type type();",
"public static void set_Type(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaTypeCmd, s, v);\n UmlCom.check();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n if (b == null)\n b = UmlSettings.add_type(s);\n b.java = v;\n }",
"Object create(Object source);",
"public void testGetType() {\n System.out.println(\"getType\"); // NOI18N\n \n TypeID expResult;\n TypeID result;\n String value = \"Test value\"; // NOI18N\n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n \n result = PropertyValue.createValue(primitveDescritor, type,value).getType();\n expResult = type;\n assertEquals(expResult, result);\n }",
"@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}",
"public JavaType _typeFromId(String id) {\n return (JavaType) this._idToType.get(id);\n }",
"UniqueType createUniqueType();",
"public <T extends RefObject> T createObject(String mPackage, Class<T> type) throws CreationException {\n\t\treturn this.<T>createObject(mPackage, type, new Field[] {});\n\t}",
"Class<?> getJavaType();",
"private JavaType(Type elementType) {\n this.elementType = elementType;\n }",
"HarvestType createHarvestType();",
"TypeImport createTypeImport();",
"private TypePackage createPackageFrom(PackageDescription description) {\n return TypePackageImpl.create(description);\n }",
"public static String getJavaDatatype(Object object){\n\t\treturn object.getClass().toString().split(\" \")[1]; \n\t}",
"public Scriptable wrapAsJavaObject(Context cx, Scriptable scope,\n \t\t\tObject javaObj, Class staticType) {\n WeakReference ref = (WeakReference) wrappers.get(javaObj);\n \t\tScriptable obj = ref == null ? null : (Scriptable) ref.get();\n \t\tif (obj == null) {\n \t // Allays override staticType and set it to the native type\n \t\t\t// of the class. Sometimes the interface used to access an\n \t\t\t// object of a certain class is passed. But why should it\n \t\t\t// be wrapped that way?\n \t\t\tstaticType = javaObj.getClass();\n \t\t\tif (staticType != null && staticType.isArray())\n \t\t\t\tobj = new ExtendedJavaArray(scope, javaObj, staticType, true);\n \t\t\telse {\n \t\t\t\tif (javaObj instanceof ReadOnlyList)\n \t\t\t\t\tobj = new ListWrapper(scope, (ReadOnlyList) javaObj, staticType, true);\n \t\t\t\telse if (javaObj instanceof Map)\n \t\t\t\t\tobj = new MapWrapper(scope, (Map) javaObj, staticType);\n \t\t\t\telse {\n \t\t\t\t\tobj = wrapCustom(cx, scope, javaObj, staticType);\n \t\t\t\t\tif (obj == null)\n \t\t\t\t\t\tobj = new ExtendedJavaObject(scope, javaObj, staticType, true);\n \t\t\t\t}\n \t\t\t}\n \t\t\twrappers.put(javaObj, new WeakReference(obj));\n \t\t}\n \t\treturn obj;\n \t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}",
"Object convertJavaValueToDBValue(Object value, Class<?> javaType);",
"public static StaticFactoryInsteadOfConstructors type(Object object){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public Object createDataType(String typeName) throws BuildException {\n return ComponentHelper.getComponentHelper(this).createDataType(typeName);\n }",
"void setObjectType(String objectType);",
"IdentifierType createIdentifierType();",
"public com.vodafone.global.er.decoupling.binding.request.DrmObjectType createDrmObjectType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.DrmObjectTypeImpl();\n }",
"protected JvmParameterizedTypeReference newTypeRef(EObject context, Class<?> type) {\n\t\tTypeReferences typeRefs = getTypeReferences();\n\t\treturn newTypeRef(context, type.getName(), typeRefs.getTypeForName(type, context));\n\t}",
"@Override\n public TypeDefinition createType(String repositoryId, TypeDefinition type, ExtensionsData extension) {\n CmisSpi spi = CmisBindingsHelper.getSPI(session);\n TypeDefinition result = spi.getRepositoryService().createType(repositoryId, type, extension);\n\n // add the type to cache\n TypeDefinitionCache cache = CmisBindingsHelper.getTypeDefinitionCache(session);\n cache.put(repositoryId, result);\n\n return result;\n }",
"public JavaType(Class c)\n {\n underlyingClass = c;\n\n // Work out the basic java type based on the underlying class.\n setBasicType(underlyingClass);\n }",
"TitleType createTitleType();",
"DataPointType createDataPointType();",
"Object convertDBValueToJavaValue(Object value, Class<?> javaType);",
"Coding getType();",
"ActorType createActorType();",
"CategoryType createCategoryType();",
"String provideType();",
"public static JavaType createForCStruct(String name) {\n return new JavaType(name);\n }",
"ObjectElement createObjectElement();",
"@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}",
"SettingType createSettingType();",
"public final native String getObjectType() /*-{\n\t\t\tif (!this.beanName) {\n\t\t\treturn \"JavaScriptObject\"\n\t\t\t}\n\t\t\treturn this.beanName;\n\t\t}-*/;",
"public static ObjectInstance getBasicTypesObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"isBoolean\", Boolean.toString((getBasicTypesMBean()\n .getIsBoolean())));\n properties.put(\"byte\", Byte\n .toString(getBasicTypesMBean().getByte()));\n properties.put(\"charLetter\", String.valueOf(getBasicTypesMBean()\n .getCharLetter()));\n properties.put(\"doubleNumber\", Double\n .toString((getBasicTypesMBean().getDoubleNumber())));\n properties.put(\"floatNumber\", Float.toString((getBasicTypesMBean()\n .getFloatNumber())));\n properties.put(\"intNumber\", Integer.toString(getBasicTypesMBean()\n .getIntNumber()));\n properties.put(\"longNumber\", Long.toString(getBasicTypesMBean()\n .getLongNumber()));\n properties.put(\"shortNumber\", Short.toString(getBasicTypesMBean()\n .getShortNumber()));\n properties.put(\"theLabel\", getBasicTypesMBean().getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypes' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypes().getClass().getName());\n }",
"DomainValuesType createDomainValuesType();",
"public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {\n AnnotatedType referencedTypeVariable = getAnnotatedType();\n TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);\n return typeInstance;\n }",
"InputObjectTypeDefinition createInputObjectTypeDefinition();",
"public <T extends RefObject> T createObject(Class<T> type) throws CreationException {\n\t\treturn this.<T>createObject(null, type, new Field[] {});\n\t}",
"CodeType createCodeType();",
"public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }",
"public interface TypeConvertor {\n Object convert (Class from, Class to, Object obj);\n String getCodeGenString ();\n}",
"Class createClass();",
"XADLType createXADLType();",
"PrimitiveType createPrimitiveType();"
] |
[
"0.7485393",
"0.7485393",
"0.7485393",
"0.6752294",
"0.6742057",
"0.6708105",
"0.6662029",
"0.6649401",
"0.6593406",
"0.65576684",
"0.65389603",
"0.64851147",
"0.6472769",
"0.6447205",
"0.6405095",
"0.62988317",
"0.6278961",
"0.6257091",
"0.6205504",
"0.6185471",
"0.61702454",
"0.60959435",
"0.6076175",
"0.6064611",
"0.6059153",
"0.60559136",
"0.60347396",
"0.599962",
"0.5972152",
"0.5962831",
"0.595838",
"0.59557927",
"0.59222716",
"0.5916925",
"0.58952606",
"0.58897656",
"0.58726877",
"0.58310986",
"0.5829002",
"0.581069",
"0.58074516",
"0.58026016",
"0.5792412",
"0.5778976",
"0.5778373",
"0.5766259",
"0.57651585",
"0.576451",
"0.5750193",
"0.5744077",
"0.5720595",
"0.57201946",
"0.57201946",
"0.57193047",
"0.5714078",
"0.5699287",
"0.5668289",
"0.56677777",
"0.5645886",
"0.5645644",
"0.5643461",
"0.56360126",
"0.5631954",
"0.56157064",
"0.56149465",
"0.5603923",
"0.5595828",
"0.5592955",
"0.5592235",
"0.5582699",
"0.5576363",
"0.5556854",
"0.5553834",
"0.554833",
"0.5546765",
"0.5546518",
"0.5539743",
"0.5516143",
"0.5501182",
"0.54936594",
"0.54900765",
"0.5487128",
"0.5475601",
"0.54731077",
"0.5470772",
"0.54633516",
"0.54622674",
"0.5459878",
"0.5456592",
"0.5454392",
"0.54498434",
"0.54463416",
"0.5441199",
"0.54319704",
"0.543023",
"0.54242855",
"0.5417515",
"0.5413698",
"0.5410679",
"0.54090375"
] |
0.64257336
|
14
|
Should return a name that uniquely identifies the type.
|
public String getName()
{
return underlyingClass.getName();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String typeName();",
"public String getTypeName() {\n return type.name();\n }",
"public String getTypeName();",
"public String getTypeName();",
"public abstract String getTypeName();",
"public String getName() {\n return type.toString();\n }",
"@Override\n public String getName() {\n return type.getName();\n }",
"public String getTypeName() {\n return typeName;\n }",
"public String getTypeName() {\n return typeName;\n }",
"public String getTypeName() {\n return typeName;\n }",
"public String getTypeName() {\n return typeName;\n }",
"public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}",
"@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }",
"public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }",
"public String getTypeName() {\n \treturn typeName;\n }",
"String getIdentifierName(String name, String type);",
"public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }",
"private String nameFor(Class<?> type) {\n String typeName = type.getName();\n if (typeName.startsWith(\"java.\") || (type.getPackage() != null && type.getPackage().isSealed())) {\n typeName = \"codegen.\" + typeName;\n }\n return String.format(\"%s$%s$%d\", typeName, \"MockitoMock\", Math.abs(random.nextInt()));\n }",
"public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}",
"public String ofType() {\n\t\t return name;\n\t}",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();",
"public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}",
"public String typeName() {\n return typeName;\n }",
"public String getTypeName()\n {\n return this.typeName;\n }",
"public String getTypeName() {\n return this.typeName;\n }",
"@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}",
"public String getTypeName() {\n\t\treturn this.typeName;\n\t}",
"private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}",
"@Override\n\tpublic String getTypeAsName() {\n\t\treturn null;\n\t}",
"String getTypeAsString();",
"public String getClazzName();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}",
"public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}",
"String componentTypeName();",
"public NameType getType() {\n return type;\n }",
"public org.apache.xmlbeans.XmlString xgetTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n return target;\n }\n }",
"public String getQualifiedName()\n {\n return name + \".\" + type;\n }",
"String provideType();",
"public String getTypeName()\n {\n return getArgumentTypeName(type);\n }",
"public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String typeName() {\n return this.typeName;\n }",
"public String type();",
"public Integer getNametype() {\r\n return nametype;\r\n }"
] |
[
"0.81181985",
"0.78771377",
"0.78495604",
"0.78495604",
"0.7753218",
"0.7602376",
"0.7595874",
"0.7513398",
"0.7513398",
"0.7513398",
"0.7513398",
"0.75094426",
"0.7477915",
"0.7465655",
"0.7451251",
"0.74494207",
"0.7402197",
"0.73749393",
"0.7371118",
"0.7325",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.73128545",
"0.7295545",
"0.728444",
"0.7279515",
"0.72458655",
"0.72253096",
"0.72250134",
"0.72177917",
"0.72145814",
"0.72137266",
"0.7150989",
"0.7142905",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7121783",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.7115365",
"0.70977306",
"0.70977306",
"0.701128",
"0.6999116",
"0.6991886",
"0.6958566",
"0.69455147",
"0.6943284",
"0.6941307",
"0.693007",
"0.6897779",
"0.68908626"
] |
0.0
|
-1
|
Returns the underlying Java class that this is the type for.
|
public Class<T> getBaseClass()
{
return underlyingClass;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Class getJavaClass() {\n return _class;\n }",
"public Class<?> getJavaClass() {\n return clazz;\n }",
"public java.lang.String getJavaClass()\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(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public Class typeClass() {\n if (myClass == null) myClass = AST.globalSymbolTable.classForName(name);\n return myClass;\n }",
"public Class<X> getJavaClass() {\n\t\treturn javaClass;\n\t}",
"public org.apache.xmlbeans.XmlNMTOKEN xgetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(JAVACLASS$24);\r\n return target;\r\n }\r\n }",
"Class<?> getJavaType();",
"public Class returnedClass();",
"public Class getTypeClass() {\r\n\t\treturn (typeClass);\r\n\t}",
"public final Class<T> getRawClass() {\n if (class_ == null) {\n class_ = getClass(type_);\n }\n return class_;\n }",
"Class<?> getImplementationClass();",
"public String getClassType() {\n return classType;\n }",
"public java.lang.Class getJavaClass()\n {\n return de.tif.jacob.ruleengine.castor.Decision.class;\n }",
"public String getType() {\n\t\treturn \"class\";\n\t}",
"public JvmType getClassx();",
"public java.lang.Class classForCoder(){\n return null; //TODO codavaj!!\n }",
"public IClass getType() {\n IClass result = null;\n if (_javaMethod.getReturnType().isArray()) {\n result = new ArrayDef(new ExternalClass(_javaMethod.getReturnType().getComponentType()));\n }\n else {\n result = new ExternalClass(_javaMethod.getReturnType());\n }\n\n return result;\n }",
"public abstract Class<?> getImplementation();",
"public Class<?> getWrappedClass() {\r\n return clazz;\r\n }",
"@NotNull\n @Contract(pure = true)\n public Class<?> getType() {\n return clazz;\n }",
"Class<?> type();",
"public JavaType getType() { return _type; }",
"public Class getType();",
"Object getClass_();",
"Object getClass_();",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate Class<T> getClassType() {\r\n\t\tParameterizedType parameterizedType = (ParameterizedType) getClass().getGenericSuperclass();\r\n\t\treturn (Class<T>) parameterizedType.getActualTypeArguments()[0];\r\n\t}",
"public java.lang.Class getJavaClass()\n {\n return com.opengate.webservice.xml.Header.class;\n }",
"public Class<?> getMethodOwner() {\n Class<?> wrapperByPrimitive = ReflectClassUtilKt.getWrapperByPrimitive(getJClass());\n return wrapperByPrimitive != null ? wrapperByPrimitive : getJClass();\n }",
"public Class<T> type() {\n\t\treturn _type;\n\t}",
"public Class getObjectClass() {\n return objectFactory.getClassForPath(Collections.emptyList());\n }",
"public String getRuntimeClass();",
"@Override\n public TypeJavaSymbol enclosingClass() {\n JavaSymbol result = this;\n while (result != null && result.kind != TYP) {\n result = result.owner;\n }\n return (TypeJavaSymbol) result;\n }",
"protected Class<?> getGenericClass() {\n\t\treturn (Class<?>)((ParameterizedType)getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n\t}",
"String getInstanceOfClass();",
"Class<?> getType();",
"Class<?> getType();",
"Class<?> getType();",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"@Override\n\tpublic Class<?> getJavaType() {\n\t\treturn null;\n\n\t}",
"public Class<?> getClazz() {\n return clazz;\n }",
"public TypeJavaSymbol outermostClass() {\n JavaSymbol symbol = this;\n JavaSymbol result = null;\n while (symbol.kind != PCK) {\n result = symbol;\n symbol = symbol.owner();\n }\n return (TypeJavaSymbol) result;\n }",
"public String getClazz();",
"@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}",
"Class<A> getImplClass();",
"public Class<?> clazz()\n {\n return clazz;\n }",
"public java.lang.Class getJavaClass()\n {\n return org.pentaho.jfreereport.castormodel.reportspec.Watermark.class;\n }",
"public Class getType();",
"public Class<?> getImplClass() {\n return implClass;\n }",
"Class<?> readConcreteType();",
"public Class<?> getType() {\n\t\treturn this.type;\n\t}",
"public Class<?> getType() {\n\t\treturn this.type;\n\t}",
"public Class<?> getValueClass() {\n if (valueClass == null) {\n try {\n valueClass = Class.forName(className);\n } catch (ClassNotFoundException exception) {\n Logging.unexpectedException(Key.class, \"getValueClass\", exception);\n valueClass = Object.class;\n }\n }\n return valueClass;\n }",
"public Class<?> getType() {\n return this.type;\n }",
"public Class<?> getConversionClass();",
"public BCClass getTypeBC() {\n return getProject().loadClass(getType());\n }",
"public Class<?> currentClass() {\n\t\treturn JetArgument.getCurrent().getElementClass();\n\t}",
"@Transient\n\tpublic Class<?> getClassType() {\n\t\treturn Book.class;\n\t}",
"public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }",
"public String getJavaType() throws IOException {\n return JDeserialize.resolveJavaType(this.type, this.classname == null ? null : this.classname.value, true, false);\n }",
"public Class getObjectClass() {\n return objectClass;\n }",
"public String getJavaType() {\n return type.getJavaType(isInt52());\n }",
"public short getClazz() {\n return clazz;\n }",
"public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }",
"Class<?> getTargetClass();",
"public static Class get_CLASS()\n {\n return WrapperMap.class;\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.Values.class;\n }",
"public RubyClass getClass(String name) {\n return objectClass.getClass(name);\n }",
"public Class<T> getTypeClass() {\n return (Class<T>) defaultValue.getClass();\n }",
"public final String getType() {\n return this.getClass().getName();\n }",
"java.lang.String getClass_();",
"java.lang.String getClass_();",
"String getClazz();",
"public Class<? extends Type> getValueClass() {\n return valueClass;\n }",
"XClass getType();",
"@Override\n public Class<?> getObjectType() {\n return this.type;\n }",
"public Klass getKlass() {\r\n return klass;\r\n }",
"public String getObjectClass() {\n return objectClass;\n }",
"public String getType() {\r\n return this.getClass().getName();\r\n }",
"public abstract Class<T> targetType();",
"Class<?> getDeclaringClass();",
"public Integer getClazz() {\n return clazz;\n }",
"public String getName()\n {\n return underlyingClass.getName();\n }",
"private Class<V> getClassVO() throws ClassNotFoundException {\n Type superclass = this.getClass().getGenericSuperclass();\n\n if (superclass instanceof ParameterizedType) {\n ParameterizedType parameterizedType = (ParameterizedType) superclass;\n Type[] typeArguments = parameterizedType.getActualTypeArguments();\n\n if (typeArguments.length == 2) {\n Type typeVO = typeArguments[1];\n\n if (typeVO instanceof Class) {\n Class c = (Class) typeVO;\n String name = c.getName();\n\n return (Class<V>) Class.forName(name);\n }\n }\n }\n\n return null;\n }",
"public Class<?> getAdaptedClazz() {\n if (adaptedClass == null) {\n return null;\n }\n\n try {\n return Class.forName(adaptedClass);\n } catch (final ClassNotFoundException e) {\n LOGGER.warn(\"class \\\"\" + adaptedClass + \"\\\" not found: \", e);\n return null;\n }\n }",
"public DeviceClass getDeviceClass() {\n return this.bluetoothStack.getLocalDeviceClass();\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.Values.Iterator.class;\n }",
"Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);",
"public final Class<? super T> getRawType() {\n Class<?> rawType = getRawTypes().iterator().next();\n @SuppressWarnings(\"unchecked\") // raw type is |T|\n Class<? super T> result = (Class<? super T>) rawType;\n return result;\n }",
"private static Class<?> getWrapperClass(Class<?> primitiveClass) {\n return WrapperClassGenerator.wrapperClassMap.get(primitiveClass.getName());\n }",
"@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TrackerTableChangeLog.class;\r\n\t}",
"public Class getInstanceClass()\n {\n return _cl;\n }",
"public ClassReferenceMirror getType() {\n\t\treturn type;\n\t}",
"public Class<T> getTargetClass() {\n\t\treturn targetClass;\n\t}",
"public Class<? extends T> getClassToInstantiate() {\r\n return classToInstantiate;\r\n }",
"public Class<?> getType(){\n\t\treturn type;\n\t}",
"com.google.protobuf.ByteString\n getClass_Bytes();",
"com.google.protobuf.ByteString\n getClass_Bytes();",
"public BCClass getFieldTypeBC() {\n String type = getFieldTypeName();\n if (type == null)\n return null;\n return getProject().loadClass(type, getClassLoader());\n }",
"public ClassElement getDeclaringClass() {\n return patternAnalyser.getClassElement();\n }",
"public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }"
] |
[
"0.81413925",
"0.78431624",
"0.75641984",
"0.75000906",
"0.7488302",
"0.73309785",
"0.71820205",
"0.708768",
"0.7065202",
"0.6973355",
"0.6927014",
"0.68721783",
"0.67604107",
"0.675047",
"0.6743789",
"0.6734557",
"0.67325634",
"0.66498035",
"0.6645878",
"0.66173685",
"0.655998",
"0.65576553",
"0.65448415",
"0.65324306",
"0.65324306",
"0.6531795",
"0.6525049",
"0.6487942",
"0.6479114",
"0.6473481",
"0.64645267",
"0.6453833",
"0.640735",
"0.63896406",
"0.6388334",
"0.6388334",
"0.6388334",
"0.63786805",
"0.6366915",
"0.6366161",
"0.63547575",
"0.63430095",
"0.6338139",
"0.6316836",
"0.6310047",
"0.6306057",
"0.6290442",
"0.62845194",
"0.62820154",
"0.6276086",
"0.6276086",
"0.62710273",
"0.62661105",
"0.626389",
"0.62548757",
"0.6253846",
"0.6253715",
"0.6252975",
"0.62529725",
"0.6251863",
"0.624763",
"0.6244711",
"0.62434435",
"0.62365246",
"0.62249196",
"0.6224733",
"0.6219401",
"0.62193704",
"0.6214868",
"0.619899",
"0.619899",
"0.61939096",
"0.6190751",
"0.615937",
"0.6154143",
"0.615016",
"0.6139404",
"0.6139196",
"0.61356276",
"0.61059165",
"0.61056906",
"0.61031616",
"0.6086333",
"0.60756624",
"0.60491234",
"0.60381645",
"0.6036005",
"0.6033093",
"0.6018974",
"0.6008945",
"0.60018426",
"0.5995245",
"0.5994812",
"0.59854877",
"0.5977734",
"0.59617347",
"0.59617347",
"0.59560144",
"0.59449023",
"0.5942853"
] |
0.64391094
|
32
|
Should determine how many different values an instance of the implementations type can take on.
|
public int getNumPossibleValues()
{
return -1;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getValuesCount();",
"@Override\n\tpublic int numClasses() {\n\t\treturn attributes[classIndex].numValues();\n\t}",
"@Override\n\tpublic int numValues() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"int getRequestedValuesCount();",
"public int getValueCount() {\n return value_.size();\n }",
"public int getValueCount() {\n return value_.size();\n }",
"public int getInstancesPerType()\n {\n return instancesPerType;\n }",
"int cardinality();",
"public void test_countTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"The TypedValue is not added properly.\", 1, instance.countTypedValues());\n }",
"int getStateValuesCount();",
"int getMetricValuesCount();",
"public abstract int numOfSameTypeNeighbourToReproduce();",
"public abstract int getCntOther();",
"@Override\n public int getNInt() {\n return this.values.length;\n }",
"public interface CardCounts {\n\n int[] FULL_SETS_CARD_COUNTS = {324, 162, 162, 180, 180, 180, 324, 180, 182, 54, 99, 189, 100, 129};\n\n int[] PREMIUM_SETS_CARD_COUNTS = {6, 11, 2, 7, 6, 18, 6, 6, 12, 12, 6, 20};\n\n int[] VIRTUAL_SETS_CARD_COUNTS = {146, 42, 15, 36, 58, 23, 14, 30, 59, 56, 47, 61, 6, 59, 22, 27, 49, 52, 32, 48, 10, 75};\n\n int[] VIRTUAL_PREMIUM_SETS_CARD_COUNTS = {8};\n\n int[] DREAM_CARD_SETS_CARD_COUNTS = {0};\n\n int[] PLAYTESTING_SETS_CARD_COUNTS = {200};\n\n int[] LEGACY_SETS_CARD_COUNTS = {999};\n}",
"public int getRequestedValuesCount() {\n return requestedValues_.size();\n }",
"public int getValuesSize() {\n return values.size();\n }",
"int countTypedParameters();",
"@Override\n\tpublic int cardinality() {\n\t\treturn 2;\n\t}",
"public abstract int nVars();",
"public abstract Integer getNumberOfElements();",
"public int getRequestedValuesCount() {\n return requestedValues_.size();\n }",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }",
"public static int numTypes(){\n byte[] types = genAllTypes();\n return types.length;\n }",
"public abstract int numOfEmptyToReproduce();",
"public int size() {\n return values.size();\n }",
"int getMetaInformationCount();",
"int getMetaInformationCount();",
"int getMetaInformationCount();",
"int getMetaInformationCount();",
"int getMetaInformationCount();",
"private int sizeForType(int type) {\n return sizeForTypeHistorical(type);\n\n }",
"static int noValueSize() {\r\n return itemSize(false) * 2;\r\n }",
"public int getNumOfClasses();",
"int getPropertiesCount();",
"public int size() {\r\n\t\treturn values.length;\r\n\t}",
"int getInfoCount();",
"int getInfoCount();",
"int getInfoCount();",
"int countInstances();",
"public int size() {\n return this.values.length;\n }",
"@Override\n public int getDeviceConfigurationCount() {\n int product = 1;\n\n for (CloudConfigurationDimension dimension : getDimensions()) {\n product *= dimension.getEnabledTypes().size();\n }\n\n return product;\n }",
"int getParametersCount();",
"int getParametersCount();",
"public int typeSize() {\n if (isUnknown() || isPolymorphic())\n return 0;\n int c = 0;\n if (!isNotBool())\n c++;\n if (!isNotStr())\n c++;\n if (!isNotNum())\n c++;\n if (object_labels != null) {\n boolean is_function = false;\n boolean is_array = false;\n boolean is_native = false;\n boolean is_dom = false;\n boolean is_other = false;\n for (ObjectLabel objlabel : object_labels) {\n if (objlabel.getKind() == Kind.FUNCTION)\n is_function = true;\n else if (objlabel.getKind() == Kind.ARRAY)\n is_array = true;\n else if (objlabel.isHostObject()) {\n switch (objlabel.getHostObject().getAPI().getShortName()) {\n case \"native\":\n is_native = true;\n break;\n case \"dom\":\n is_dom = true;\n break;\n default:\n is_other = true;\n }\n } else\n is_other = true;\n }\n if (is_function)\n c++;\n if (is_array)\n c++;\n if (is_native)\n c++;\n if (is_dom)\n c++;\n if (is_other)\n c++;\n }\n if (getters != null)\n c++;\n if (setters != null)\n c++;\n if (c == 0 && (isMaybeNull() || isMaybeUndef())) {\n c = 1;\n }\n return c;\n }",
"public abstract int getScenarioCount();",
"int getInstanceCount();",
"@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n return count;\n }",
"@FameProperty(name = \"numberOfAccessingClasses\", derived = true)\n public Number getNumberOfAccessingClasses() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public static int numElements() {\n return values().length;\n }",
"public int getStateValuesCount() {\n return stateValues_.size();\n }",
"public abstract int getCount();",
"int getMetricsCount();",
"int getPropsCount();",
"protected short getCount() \r\n {\r\n // We could move this to the individual implementing classes\r\n // so they have their own count\r\n synchronized(AbstractUUIDGenerator.class) \r\n {\r\n if (counter < 0)\r\n {\r\n counter = 0;\r\n }\r\n return counter++;\r\n }\r\n }",
"private void _setInstanceInfo() {\n int subClass, superClass;\n\n for (int i = 0; i < CLASS_NUM; i++) {\n switch (i) {\n case CS_C_UNIV:\n break;\n case CS_C_DEPT:\n break;\n case CS_C_FULLPROF:\n instances_[i].num = _getRandomFromRange(FULLPROF_MIN, FULLPROF_MAX);\n break;\n case CS_C_VISITINGPROF:\n instances_[i].num = _getRandomFromRange(VISITINGPROF_MIN, VISITINGPROF_MAX);\n break;\n case CS_C_ASSOPROF:\n instances_[i].num = _getRandomFromRange(ASSOPROF_MIN, ASSOPROF_MAX);\n break;\n case CS_C_ASSTPROF:\n instances_[i].num = _getRandomFromRange(ASSTPROF_MIN, ASSTPROF_MAX);\n break;\n case CS_C_LECTURER:\n instances_[i].num = _getRandomFromRange(LEC_MIN, LEC_MAX);\n break;\n case CS_C_UNDERSTUD:\n instances_[i].num = _getRandomFromRange(R_UNDERSTUD_FACULTY_MIN *\n instances_[CS_C_FACULTY].total,\n R_UNDERSTUD_FACULTY_MAX *\n instances_[CS_C_FACULTY].total);\n break;\n case CS_C_VISITSTUD:\n instances_[i].num = _getRandomFromRange(R_VISITSTUD_FACULTY_MIN *\n instances_[CS_C_FACULTY].total,\n R_VISITSTUD_FACULTY_MAX *\n instances_[CS_C_FACULTY].total);\n break; \n case CS_C_GRADSTUD:\n instances_[i].num = _getRandomFromRange(R_GRADSTUD_FACULTY_MIN *\n instances_[CS_C_FACULTY].total,\n R_GRADSTUD_FACULTY_MAX *\n instances_[CS_C_FACULTY].total);\n break;\n case CS_C_TA:\n instances_[i].num = _getRandomFromRange(instances_[CS_C_GRADSTUD].total /\n R_GRADSTUD_TA_MAX,\n instances_[CS_C_GRADSTUD].total /\n R_GRADSTUD_TA_MIN);\n break;\n case CS_C_RA:\n instances_[i].num = _getRandomFromRange(instances_[CS_C_GRADSTUD].total /\n R_GRADSTUD_RA_MAX,\n instances_[CS_C_GRADSTUD].total /\n R_GRADSTUD_RA_MIN);\n break;\n case CS_C_RESEARCHGROUP:\n instances_[i].num = _getRandomFromRange(RESEARCHGROUP_MIN, RESEARCHGROUP_MAX);\n break;\n default:\n instances_[i].num = CLASS_INFO[i][INDEX_NUM];\n break;\n }\n instances_[i].total = instances_[i].num;\n subClass = i;\n while ( (superClass = CLASS_INFO[subClass][INDEX_SUPER]) != CS_C_NULL) {\n instances_[superClass].total += instances_[i].num;\n subClass = superClass;\n }\n }\n }",
"int getOverriddenCount();",
"int getFieldCount();",
"public int size(){\n\t\treturn types.size();\n\t}",
"public int getNumberOfEquivalenceClasses() {\n return hashTableElementCount;\n }",
"public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}",
"public int getNumInstances() {\n return this.train_values.get(0).length;\n }",
"int getVarsCount();",
"int countTypedFeatures();",
"public synchronized int size() {\n return\n this.oPreprocessingParams.size() +\n this.oFeatureExtractionParams.size() +\n this.oClassificationParams.size();\n }",
"@FameProperty(name = \"numberOfInternalProviders\", derived = true)\n public Number getNumberOfInternalProviders() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public long getNumDefinedData();",
"int getStrValuesCount();",
"public int getStateValuesCount() {\n return stateValues_.size();\n }",
"int getEducationsCount();",
"public abstract int count();",
"public abstract int count();",
"int getAoisCount();",
"public abstract int numOfFoodCellToReproduce();",
"public abstract int getComponentCount();",
"@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }",
"public abstract int getCntPoa();",
"int getFieldsCount();",
"int getFieldsCount();",
"private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = needThisParameter ? 1 : 0;\n while( parser.next() != null ) {\n paramCount++;\n }\n valueType = parser.next();\n while( parser.hasNext() ) {\n valueType = parser.next();\n paramCount--;\n }\n }",
"int getUserTypesCount();",
"public int getCardinality();",
"private int[] countClasses(List<Instance> instances){\r\n\t\tint[] counters = new int[classes.size()];\r\n\t\tfor(Instance ins : instances){\r\n\r\n\t\t\tfor(String str : classes){\r\n\t\t\t\tif(ins.getClassAttribute().equals(str)){\r\n\t\t\t\t\tcounters[classes.indexOf(str)]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn counters;\r\n\t}",
"public final int numberOfResponseValues()\n\t{\n\t\treturn m_responseValues != null ? m_responseValues.size() : 0;\n\t}",
"public static int sizeOf()\n {\n return 4;\n }",
"int getInputsCount();",
"int getInputsCount();",
"int getInputsCount();",
"public abstract int size();",
"public abstract int size();",
"public abstract int size();",
"public abstract int size();",
"public abstract int size();",
"public abstract int size();",
"@Override\n public int size() {\n if (date2 != Long.MIN_VALUE) return 2;\n if (date1 != Long.MIN_VALUE) return 1;\n return 0;\n }",
"public int getTypeWithElementsCount() {\n\t\t\treturn this.TypeWithElements.size();\n\t\t}",
"abstract int size();",
"abstract int size();",
"private void createFiveValueSet()\n\t{\n\t\tm_mockery.checking(new Expectations()\n\t\t{\n\t\t\t{\n\t\t\t\tallowing(m_values).getItemCount();\n\t\t\t\twill(returnValue(5));\n\t\t\t\t\n\t\t\t\t// Keys.\n\t\t\t\tallowing(m_values).getKey(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getKey(1);\n\t\t\t\twill(returnValue(1));\n\t\t\t\tallowing(m_values).getKey(2);\n\t\t\t\twill(returnValue(2));\n\t\t\t\tallowing(m_values).getKey(3);\n\t\t\t\twill(returnValue(3));\n\t\t\t\tallowing(m_values).getKey(4);\n\t\t\t\twill(returnValue(4));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getIndex(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getIndex(1);\n\t\t\t\twill(returnValue(1));\n\t\t\t\tallowing(m_values).getIndex(2);\n\t\t\t\twill(returnValue(2));\n\t\t\t\tallowing(m_values).getIndex(3);\n\t\t\t\twill(returnValue(3));\n\t\t\t\tallowing(m_values).getIndex(4);\n\t\t\t\twill(returnValue(4));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getKeys();\n\t\t\t\twill(returnValue(new ArrayList<Integer>() {\n\t\t\t\t\t{\n\t\t\t\t\t\tadd(0);\n\t\t\t\t\t\tadd(1);\n\t\t\t\t\t\tadd(2);\n\t\t\t\t\t\tadd(3);\n\t\t\t\t\t\tadd(4);\n\t\t\t\t\t}}));\n\t\t\t\t\n\t\t\t\t// Values.\n\t\t\t\tallowing(m_values).getValue(0);\n\t\t\t\twill(returnValue(1.1));\n\t\t\t\tallowing(m_values).getValue(1);\n\t\t\t\twill(returnValue(2));\n\t\t\t\tallowing(m_values).getValue(2);\n\t\t\t\twill(returnValue(3.14));\n\t\t\t\tallowing(m_values).getValue(3);\n\t\t\t\twill(returnValue(4));\n\t\t\t\tallowing(m_values).getValue(4);\n\t\t\t\twill(returnValue(5));\n\t\t\t}\n\t\t});\n\t}"
] |
[
"0.6756958",
"0.6590643",
"0.6498218",
"0.64748603",
"0.63060504",
"0.62678987",
"0.614459",
"0.6136068",
"0.6133549",
"0.60951835",
"0.6080377",
"0.6079602",
"0.6056898",
"0.6023389",
"0.6023079",
"0.5990848",
"0.5986749",
"0.5978789",
"0.59537953",
"0.59463817",
"0.5941672",
"0.5880785",
"0.58802384",
"0.5862755",
"0.5854835",
"0.5854372",
"0.5845739",
"0.58133715",
"0.58133715",
"0.58133715",
"0.58133715",
"0.58133715",
"0.58014244",
"0.5794473",
"0.579019",
"0.57891643",
"0.5772637",
"0.57524776",
"0.57524776",
"0.57524776",
"0.5749288",
"0.574377",
"0.57404244",
"0.5730906",
"0.5730906",
"0.57285273",
"0.57208604",
"0.57138157",
"0.57051927",
"0.5702252",
"0.5701233",
"0.57005423",
"0.5679855",
"0.5665329",
"0.56549466",
"0.5631672",
"0.56295174",
"0.56283563",
"0.5625369",
"0.5624136",
"0.5622032",
"0.56177807",
"0.56130546",
"0.55919325",
"0.5587762",
"0.558492",
"0.55780095",
"0.55767256",
"0.5575842",
"0.55742913",
"0.5571849",
"0.55675125",
"0.55675125",
"0.5564813",
"0.5554521",
"0.5552084",
"0.55519056",
"0.55509925",
"0.55506307",
"0.55506307",
"0.5550314",
"0.5544006",
"0.5518468",
"0.5495478",
"0.5489801",
"0.5486368",
"0.548086",
"0.548086",
"0.548086",
"0.5469844",
"0.5469844",
"0.5469844",
"0.5469844",
"0.5469844",
"0.5469844",
"0.54662853",
"0.54632163",
"0.54631853",
"0.54631853",
"0.5462382"
] |
0.607399
|
12
|
Should return all the different values that an instance of this type can take on.
|
public Set<T> getAllPossibleValuesSet() throws InfiniteValuesException
{
throw new InfiniteValuesException("JavaType has infinite values.", null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n List<Value> values();",
"Array<Object> getInstanceValues();",
"default List<Object> getAttributeValues(T instance) {\n\t\tList<Object> attrValues = new ArrayList<>();\n\t\tfor (Attribute<T, ?> fld : getAttributes()) {\n\t\t\tattrValues.add(fld.getValue(instance));\n\t\t}\n\t\treturn attrValues;\n\t}",
"Values values();",
"private Values(){}",
"public List<T> values();",
"@Test\r\n\tpublic void testValues(){\n\t\tEntityType[] values = EntityType.values();\r\n\t\tassertNotNull(values);\r\n\t}",
"@Test\r\n\tpublic void testValuesMatchObjecType(){\r\n\t\t// Make sure we can get all of the values\r\n\t\tEntityType[] values = EntityType.values();\r\n\t\tassertNotNull(values);\r\n\t\tassertEquals(\"Expected one EntityType for each EntityType\",EntityType.values().length,values.length);\r\n\t}",
"public List<Object> getValues();",
"DefinedValuesType getDefinedValues();",
"List getValues();",
"@Override\n\tpublic Collection<V> values() {\n\t\t// TODO\n\t\treturn new ValueView();\n\t}",
"protected abstract Object[] getValues(T t);",
"Object[] getValues();",
"Object[] getValues();",
"private void createTwoValueSet()\n\t{\n\t\tm_mockery.checking(new Expectations()\n\t\t{\n\t\t\t{\n\t\t\t\tallowing(m_values).getItemCount();\n\t\t\t\twill(returnValue(2));\n\t\t\t\t\n\t\t\t\t// Keys.\n\t\t\t\tallowing(m_values).getKey(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getKey(1);\n\t\t\t\twill(returnValue(1));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getIndex(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getIndex(1);\n\t\t\t\twill(returnValue(1));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getKeys();\n\t\t\t\twill(returnValue(new ArrayList<Integer>() {{ add(0); add(1); }}));\n\t\t\t\t\n\t\t\t\t// Values.\n\t\t\t\tallowing(m_values).getValue(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getValue(1);\n\t\t\t\twill(returnValue(3));\n\t\t\t}\n\t\t});\n\t}",
"public static ImmutableMap<AbstractVariable, Value> thoracicValues()\n {\n final BooleanVariable dnrVar = SampleModels.dnrVariable();\n final NumericalVariable ageVar = SampleModels.ageVariable();\n final MultiSelectVariable fsVar = SampleModels.functionalStatusVariable();\n final ProcedureVariable procVar = SampleModels.procedureVariable();\n try\n {\n return ImmutableMap.of(\n dnrVar,\n new BooleanValue(dnrVar, false),\n ageVar,\n new NumericalValue(ageVar, 45.0f),\n fsVar,\n new MultiSelectValue(fsVar, new MultiSelectOption(\"Independent\")),\n procVar,\n new ProcedureValue(procVar, SampleModels.repairLeftProcedure()));\n }\n catch (final InvalidValueException ex)\n {\n throw new RuntimeException(\"test data had an invalid value\", ex);\n }\n }",
"@Test\n public void testValues() {\n System.out.println(\"values\");\n StatusType[] result = StatusType.values();\n assertEquals(result.length, 1);\n }",
"public Set<T> values() {\n\t\t// This is immutable to prevent add/remove operation by 3rd party developers.\n\t\treturn Collections.unmodifiableSet(values);\n\t}",
"private void createFiveValueSet()\n\t{\n\t\tm_mockery.checking(new Expectations()\n\t\t{\n\t\t\t{\n\t\t\t\tallowing(m_values).getItemCount();\n\t\t\t\twill(returnValue(5));\n\t\t\t\t\n\t\t\t\t// Keys.\n\t\t\t\tallowing(m_values).getKey(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getKey(1);\n\t\t\t\twill(returnValue(1));\n\t\t\t\tallowing(m_values).getKey(2);\n\t\t\t\twill(returnValue(2));\n\t\t\t\tallowing(m_values).getKey(3);\n\t\t\t\twill(returnValue(3));\n\t\t\t\tallowing(m_values).getKey(4);\n\t\t\t\twill(returnValue(4));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getIndex(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getIndex(1);\n\t\t\t\twill(returnValue(1));\n\t\t\t\tallowing(m_values).getIndex(2);\n\t\t\t\twill(returnValue(2));\n\t\t\t\tallowing(m_values).getIndex(3);\n\t\t\t\twill(returnValue(3));\n\t\t\t\tallowing(m_values).getIndex(4);\n\t\t\t\twill(returnValue(4));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getKeys();\n\t\t\t\twill(returnValue(new ArrayList<Integer>() {\n\t\t\t\t\t{\n\t\t\t\t\t\tadd(0);\n\t\t\t\t\t\tadd(1);\n\t\t\t\t\t\tadd(2);\n\t\t\t\t\t\tadd(3);\n\t\t\t\t\t\tadd(4);\n\t\t\t\t\t}}));\n\t\t\t\t\n\t\t\t\t// Values.\n\t\t\t\tallowing(m_values).getValue(0);\n\t\t\t\twill(returnValue(1.1));\n\t\t\t\tallowing(m_values).getValue(1);\n\t\t\t\twill(returnValue(2));\n\t\t\t\tallowing(m_values).getValue(2);\n\t\t\t\twill(returnValue(3.14));\n\t\t\t\tallowing(m_values).getValue(3);\n\t\t\t\twill(returnValue(4));\n\t\t\t\tallowing(m_values).getValue(4);\n\t\t\t\twill(returnValue(5));\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public Collection<V> values() {\n Collection<V> values = new HashSet<V>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n values.add(entry.getValue());\n }\n }\n }\n return values;\n }",
"@Test\n public void testValues() {\n System.out.println(\"values\");\n ChannelType[] expResult = null;\n ChannelType[] result = ChannelType.values();\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 Collection<V> values() {\n\t\treturn new ValueCollection();\n\t}",
"public List<Integer> GetPossibleValues()\n {\n return this._valuesToPut;\n }",
"public Collection<T> values(){\n\t\treturn null;\r\n\t\t//TODO\r\n\t}",
"PropertyValue<?, ?>[] values();",
"public Object[] getValues();",
"public List<V> values() {\n return values;\n }",
"public List<V> values() {\n return values;\n }",
"public List<NeonValue> getValues();",
"@Override\n\tpublic Collection<V> values() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<V> values() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<V> values() {\n\t\treturn null;\n\t}",
"Collection<V> values();",
"Collection<V> values();",
"@Override\n\tpublic Set<T> valeurs() {\n\t\treturn Set.of(val);\n\t}",
"DefiningValuesType getDefiningValues();",
"public List<T> values() {\n return values(System.currentTimeMillis());\n }",
"public Collection getAllowedValues() {\n/* 40 */ return (Collection)this.allowedValues;\n/* */ }",
"public Iterable<V> values();",
"public Collection<V> values() {\n\t\treturn null;\r\n\t}",
"public List<ProbeValue> getValues() {\n\treturn attributes;\n }",
"@Override\n\t\t\tpublic Collection<AnalysisResult> values() {\n\t\t\t\treturn null;\n\t\t\t}",
"public static Collection<DataType> values() {\n return values(DataType.class);\n }",
"T[] getValues();",
"public ArrayList<Double> getAllValues()\n {\n return allValues;\n }",
"public DistinctValues()\n {\n super();\n }",
"public List<Item> getValues() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }",
"public Collection<Object> values()\n {\n return data.values();\n }",
"public abstract Value getValue();",
"public Object[] getValues() {\n return this.values;\n }",
"public boolean isAllValues() { return this.isAll; }",
"@Test\n public void testValues() {\n System.out.println(\"values\");\n ReviewState[] expResult = {ReviewState.PENDING, ReviewState.FINISHED};\n ReviewState[] result = ReviewState.values();\n assertTrue(Arrays.equals(expResult, result));\n }",
"@Override\n\tpublic Iterable<K> values() {\n\t\treturn null;\n\t}",
"public abstract Object getValue();",
"public abstract Object getValue();",
"public abstract Object getValue();",
"public Set<DynamicEntity> getAllValuesOfvehicle() {\n return rawStreamAllValuesOfvehicle(emptyArray()).collect(Collectors.toSet());\n }",
"protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }",
"public Set<V> getSuperValues(Class<?> c) {\n return getValues(c, true);\n }",
"public Collection<SingleValue> values() {\n return Collections.unmodifiableCollection(container.values());\n }",
"@Override\n public Collection<T> values() {\n List<T> values = new ArrayList<>();\n for (Map.Entry<String, T> v : entries.values()) {\n values.add(v.getValue());\n }\n return values;\n }",
"@JsonIgnore\n List<T> getValues();",
"public static UserType[] getValues() {\n UserType[] values = new UserType[values().length - 1];\n for (int i = 0; i < values.length; i++) {\n values[i] = values()[i + 1];\n }\n return values;\n }",
"public abstract ValueType getValueType();",
"@SuppressWarnings(\"rawtypes\")\n @Parameters(name=\"{0}\")\n public static Collection data() {\n\t \n\tGlobalVars testVars2 = new GlobalVars();\n return Arrays.asList(testVars2.getBrowsers());\n }",
"@SuppressWarnings(\"rawtypes\")\n @Parameters(name=\"{0}\")\n public static Collection data() {\n\t \n\tGlobalVars testVars2 = new GlobalVars();\n return Arrays.asList(testVars2.getBrowsers());\n }",
"public abstract String[] getValues();",
"default List<Object> getPrimaryAttributeValues(T entity) {\n\t\treturn getPrimaryAttributes().stream().map(attr -> attr.getValue(entity)).collect(Collectors.toList());\n\t}",
"@Nonnull\n public <T extends Serializable> List<T> getValues() {\n final T[] ary = values();\n return Arrays.asList(ary);\n }",
"public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();",
"public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }",
"public List getValues() {\n/* 103 */ List<ConfigurableEffect.Value> values = super.getValues();\n/* 104 */ values.add(EffectUtil.floatValue(\"Wavelength\", this.wavelength, 1.0F, 100.0F, \"This setting controls the wavelength of the outline. The smaller the value, the more segments will be used to draw the outline.\"));\n/* */ \n/* 106 */ values.add(EffectUtil.floatValue(\"Amplitude\", this.amplitude, 0.5F, 50.0F, \"This setting controls the amplitude of the outline. The bigger the value, the more the zigzags will vary.\"));\n/* */ \n/* 108 */ return values;\n/* */ }",
"@Override\n public synchronized Set<AttributeType> getAttributeInstances() {\n return attributeInstances = nonNullSet(attributeInstances, AttributeType.class);\n }",
"public void test_getTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"TypedValue got incorrectly\", 1, instance.getTypedValues().size());\n }",
"public List<Boolean> getValues() {\r\n\t\treturn values;\r\n\t}",
"public Set<Integer> getAllValuesOfby() {\n return rawStreamAllValuesOfby(emptyArray()).collect(Collectors.toSet());\n }",
"@Override\n public <T> Set<T> getAvailableResourceValues(DiscreteResourceId parent, Class<T> cls) {\n return null;\n }",
"public IterableAssertion<V> toValues() {\n checkActualIsNotNull();\n return initializeAssertion(Raw.<V>iterableAssertion(), getActual().values(), Messages.Check.VALUES);\n }",
"@Override\r\n\tpublic Collection<V> values() {\r\n\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tvalueList.addAll(b.values());\r\n\t\t}\r\n\t\treturn valueList;\r\n\t}",
"public List getValues() {\r\n\t\tif (this.values == null) {\r\n\t\t\tthis.values = new ArrayList();\r\n\t\t}\r\n\t\treturn values;\r\n\t}",
"@Parameters\n\tpublic static Iterable<Object> data() {\n\t\treturn Arrays.asList(true, false);\n\t}",
"public Set<V> getSubValues(Class<?> c) {\n return getValues(c, false);\n }",
"HCollection values();",
"@Override\n public List<RlpType> rlpValues() {\n List<RlpType> result = super.rlpValues();\n result.add(RlpString.create(Numeric.hexStringToByteArray(getTo())));\n result.add(RlpString.create(getValue()));\n result.add(RlpString.create(Numeric.hexStringToByteArray(getFrom())));\n return result;\n }",
"AdditionalValuesType getAdditionalValues();",
"public synchronized List<T> getValues() {\n List<T> castVals = new ArrayList<>(values.size());\n for (Object obj : values) {\n castVals.add((T) obj);\n }\n return castVals;\n }",
"@Nonnull\n @CheckReturnValue\n public ArgumentValues values() {\n return strings;\n }",
"public List<V> values()\r\n\t{\r\n\t\tList<V> values = new ArrayList<V>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tvalues.add(element.value);\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn values;\r\n\t}",
"private void initValues() {\n \n }",
"@Test\n public void testValueGetter() {\n final List<ConfigDocument> docs = Arrays.asList(new ConfigDocument(DS_1), new ConfigDocument(DS_2), new ConfigDocument(DS_3), new ConfigDocument(RANDOM));\n final ConfigSearchResult<?> result = new ConfigSearchResult<>(docs);\n assertEquals(result.getValues(), Arrays.asList(DS_1, DS_2, DS_3, RANDOM));\n }",
"@Override\n public Value[] getValues() throws ValueFormatException, RepositoryException {\n return null;\n }",
"public abstract void userValues();",
"public String[] getValidValues();",
"public String[] getValidValues();",
"private List<Object> naturalKeyValues() {\n\t\ttry {\n\t\t\tfinal List<Method> methods = keyGetters();\n\t\t\tfinal List<Object> values=new ArrayList<>(methods.size());\n\t\t\tfor(final Method method:methods) {\n\t\t\t\tvalues.add(method.invoke(this));\n\t\t\t}\n\t\t\treturn values;\n\t\t} catch (SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n\t\t\tthrow new EntityException(e);\n\t\t}\n\t}",
"public List<Long> values() {\n\t\treturn sample.values();\n\t}",
"public List<A> getInValues() {\n return inValues;\n }",
"public static List<EnumCardNumber> getValues() {\r\n\t\tEnumCardNumber[] temp = values();\r\n\t\tList<EnumCardNumber> res = new ArrayList<>();\r\n\r\n\t\tfor (EnumCardNumber i : temp) {\r\n\t\t\tres.add(i);\r\n\t\t}\r\n\r\n\t\treturn res;\r\n\t}",
"public int getValueCount() {\n return value_.size();\n }"
] |
[
"0.64944696",
"0.6463134",
"0.6432827",
"0.63936114",
"0.62032545",
"0.6083949",
"0.6062305",
"0.6040749",
"0.5974229",
"0.5928074",
"0.5919301",
"0.5910011",
"0.59089994",
"0.5907849",
"0.5907849",
"0.5902307",
"0.5889",
"0.58884656",
"0.5878802",
"0.5868322",
"0.5861816",
"0.5857072",
"0.58275694",
"0.5821432",
"0.5817739",
"0.5814817",
"0.5808245",
"0.5803558",
"0.5803558",
"0.5779205",
"0.57782567",
"0.57782567",
"0.57782567",
"0.57424945",
"0.57424945",
"0.57332075",
"0.5722426",
"0.5712713",
"0.5707558",
"0.57044995",
"0.5682937",
"0.5662832",
"0.5649938",
"0.56483656",
"0.5635097",
"0.5624456",
"0.5618971",
"0.56101495",
"0.56098086",
"0.560824",
"0.5596008",
"0.5589166",
"0.5568816",
"0.55467105",
"0.5541034",
"0.5541034",
"0.5541034",
"0.55407953",
"0.55370104",
"0.55368376",
"0.55158633",
"0.5513498",
"0.55073583",
"0.54874927",
"0.54842234",
"0.54833233",
"0.54833233",
"0.5482288",
"0.54678255",
"0.5458231",
"0.54473966",
"0.54375106",
"0.54256696",
"0.54107416",
"0.54099435",
"0.54081535",
"0.5403159",
"0.5399242",
"0.5397909",
"0.5394908",
"0.5394542",
"0.53885764",
"0.53839034",
"0.537697",
"0.5370739",
"0.5363065",
"0.5361304",
"0.5357803",
"0.5348599",
"0.53441936",
"0.5341448",
"0.5333673",
"0.53332615",
"0.53216314",
"0.53216314",
"0.5315209",
"0.5307897",
"0.53067195",
"0.5305376",
"0.5294872"
] |
0.55370003
|
59
|
Sets the basic type of this type depending on the class.
|
private void setBasicType(Class c)
{
if (Boolean.class.equals(c))
{
type = BasicTypes.BOOLEAN;
}
else if (Character.class.equals(c))
{
type = BasicTypes.CHARACTER;
}
else if (Byte.class.equals(c))
{
type = BasicTypes.BYTE;
}
else if (Short.class.equals(c))
{
type = BasicTypes.SHORT;
}
else if (Integer.class.equals(c))
{
type = BasicTypes.INTEGER;
}
else if (Long.class.equals(c))
{
type = BasicTypes.LONG;
}
else if (Float.class.equals(c))
{
type = BasicTypes.FLOAT;
}
else if (Double.class.equals(c))
{
type = BasicTypes.DOUBLE;
}
else
{
type = BasicTypes.OTHER;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setClassType(String classType);",
"public void setBasicType(String basicType) {\n this.basicType = basicType;\n }",
"public void setType(Class type) {\n\t this.type = type;\n\t }",
"@objid (\"332a71dc-5b01-4699-b13d-7978d6dfd6de\")\n void setBase(GeneralClass value);",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public String getBasicType() {\n return basicType;\n }",
"public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }",
"public TypeCheckbox(TypeSummary init) {\r\n super(\" \");\r\n\r\n type = init;\r\n\r\n setText(getFullName());\r\n setSize(getPreferredSize());\r\n setSelected(true);\r\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}",
"public abstract void setType();",
"protected void setJavaClass(Class type) {\n this._class = type;\n }",
"public void setStaticType(Class type);",
"public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }",
"public void setClassType(String classType) {\n this.classType = classType == null ? null : classType.trim();\n }",
"public void setDataType(Class newclass) {\n datatype=newclass;\n }",
"public Builder setValueClass(Type valueType) {\n this.valueType = valueType;\n return this;\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }",
"public void setMainTypeset(String value) {\n setAttributeInternal(MAINTYPESET, value);\n }",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setType(String value) {\n this.type = value;\n }",
"protected void setType(String requiredType){\r\n type = requiredType;\r\n }",
"public void setType (String typ) {\n type = typ;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(String name){\n\t\ttype = name;\n\t}",
"public void setType(String string) {\n\t\tthis.type = string;\n\t\t\n\t}",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setClazz(short value) {\n this.clazz = value;\n }",
"void setMainClass(Class<?> mainClass);",
"void setType(java.lang.String type);",
"protected void setType(String newType) {\n\t\ttype = newType;\n\t}",
"public void setType(String t) {\n\ttype = t;\n }",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"@Override\n\tpublic void setDataType(Class<?> dataType) {\n\t\t\n\t}",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(short type){\n\t\tthis.type = type;\n\t}",
"public void setClassType(String classType) {\n\t\t\t\n\t\t\tfor(E_ClassType c : E_ClassType.values())\n\t\t\t{\n\t\t\t\tif(c.toString().equals(classType))\n\t\t\t\t{\n\t\t\t\t\tthis.classType = E_ClassType.valueOf(classType);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.classType = E_ClassType.Tourists;\n\t\t\t\n\t\t}",
"public Builder setType(org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"public FieldInstruction setFieldType(BCClass type) {\n String name = null;\n if (type != null)\n name = type.getName();\n return setFieldType(name);\n }",
"public Builder setType(messages.Basemessage.BaseMessage.Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"public void setType(int pType) {\n mType = pType;\n }",
"public void setType(final Type type) {\n this.type = type;\n }",
"@Override\n\tpublic void setType(String type) {\n\t}",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"public void setType(String inType)\n {\n\ttype = inType;\n }",
"public void setClass_(String newValue);",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000020;\n type_ = value;\n onChanged();\n return this;\n }",
"public static void set_Type(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaTypeCmd, s, v);\n UmlCom.check();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n if (b == null)\n b = UmlSettings.add_type(s);\n b.java = v;\n }",
"public void setType(Object newType) {\n if (newType == null && type == null) {\n return;\n }\n\n if (type == null || !type.equals(newType)) {\n Object oldType = type;\n type = newType;\n listeners.firePropertyChange(PROPERTY_TYPE, oldType, type);\n }\n }",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}",
"public void setClazz(String clazz);",
"public void setDefault(Type defaultType)\n\t{\n\t\tm_default = defaultType;\n\t}",
"public void setType(final int t) {\n\t\ttype = t;\n\t}",
"public Type() {\n\t\tsetSize();\n\t}",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public JavaType(Class c)\n {\n underlyingClass = c;\n\n // Work out the basic java type based on the underlying class.\n setBasicType(underlyingClass);\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setObjtype(short newValue) {\n\tthis.objtype = newValue;\n}",
"public void setT(Type t) {\n \t\tthis.t = t;\n \t}",
"@Override\n public String getFullType() {\n return fullType;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(String t) {\n\t\tgfType = t;\n\t}",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"public void setType(String newtype)\n {\n type = newtype;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }",
"public void setType(java.lang.String newType) {\n\ttype = newType;\n}",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"@Override\r\n\tpublic void setTipo(Tipo t) {\n\t\t\r\n\t}",
"public void setType(int value) {\n this.type = value;\n }",
"public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}"
] |
[
"0.6514695",
"0.6384718",
"0.62084997",
"0.614355",
"0.6112659",
"0.60680056",
"0.5965295",
"0.5909067",
"0.58627665",
"0.58362985",
"0.58315367",
"0.5823038",
"0.58190644",
"0.57695323",
"0.5756295",
"0.57520664",
"0.57519555",
"0.57460433",
"0.5742673",
"0.57382834",
"0.57299453",
"0.56959677",
"0.56839293",
"0.56801796",
"0.56478804",
"0.56150174",
"0.56107986",
"0.5594599",
"0.5590545",
"0.5588202",
"0.5588202",
"0.5588202",
"0.5586613",
"0.5572142",
"0.5558545",
"0.55536306",
"0.5545321",
"0.55439866",
"0.55439043",
"0.55235887",
"0.55225843",
"0.5521555",
"0.5519904",
"0.5514582",
"0.55093426",
"0.55093426",
"0.55093426",
"0.5501461",
"0.54940426",
"0.5487875",
"0.5482965",
"0.5482608",
"0.5478961",
"0.5475722",
"0.545976",
"0.54590946",
"0.54552794",
"0.5446602",
"0.54449815",
"0.54417765",
"0.5440808",
"0.5432482",
"0.54265285",
"0.5424159",
"0.5408184",
"0.5404825",
"0.539937",
"0.5397685",
"0.5397669",
"0.53968835",
"0.53929275",
"0.53865206",
"0.53799844",
"0.5373264",
"0.5367814",
"0.5367814",
"0.5345611",
"0.5335753",
"0.53334635",
"0.53252196",
"0.5322114",
"0.5320832",
"0.53158617",
"0.53130585",
"0.5312361",
"0.5312361",
"0.5310413",
"0.5306436",
"0.53064007",
"0.53063005",
"0.5300272",
"0.52929604",
"0.5290049",
"0.5290049",
"0.5290049",
"0.5288559",
"0.5285877",
"0.5280665",
"0.52799827",
"0.5274721"
] |
0.70619357
|
0
|
Creates a JTM writer, using "utf8" encoding.
|
public JTMTopicMapWriter(final OutputStream out, final String baseIRI) throws IOException {
this(out, baseIRI, "utf-8");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public JTMTopicMapWriter(final OutputStream out, final String baseIRI, final String encoding) throws IOException {\n if (encoding == null) {\n throw new IOException(\"The encoding must not be null\");\n }\n _baseIRI = baseIRI;\n _out = new JSONWriter(out, encoding);\n _out.setPrettify(false);\n }",
"protected Writer makeWriter(OutputStream out, String enc)\r\n throws java.io.UnsupportedEncodingException {\r\n // \"UTF-8\" is not recognized before JDK 1.1.6, so we'll translate\r\n // into \"UTF8\" which works with all JDKs.\r\n if (\"UTF-8\".equals(enc)) {\r\n enc = \"UTF8\";\r\n }\r\n\r\n Writer writer = new BufferedWriter(\r\n (new OutputStreamWriter(\r\n new BufferedOutputStream(out), enc)\r\n ));\r\n return writer;\r\n }",
"Write createWrite();",
"private void suggestsUtF8CharsetWhenUsingPlatformDefaultCharset(OutputStream os) {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(os, StandardCharsets.UTF_8);\n }",
"private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }",
"private void init(Writer writer, String encoding) {\n\t\tsetOutput(writer, encoding);\n\t}",
"public abstract JsonWriter newWriter(OutputStream out);",
"private void writeTree() throws IOException {\n\t\ttry (final BufferedWriter writer = Files.newBufferedWriter(destinationFile, CHARSET)) {\n\t\t\tfinal char[] treeString = new char[512];\n\t\t\tint treeStringLength = 0;\n\t\t\tfor (final CharacterCode cur : sortedCodes) {\n\t\t\t\ttreeString[treeStringLength++] = cur.getChar();\n\t\t\t\ttreeString[treeStringLength++] = (char) cur.getCode().length();\n\t\t\t}\n\t\t\tif (treeStringLength > 0xff) { //tree length will not always be less than 255, we have to write it on two bytes\n\t\t\t\tfinal int msb = (treeStringLength & 0xff00) >> Byte.SIZE;\n\t\t\t\ttreeStringLength &= 0x00ff;\n\t\t\t\twriter.write(msb);\n\t\t\t} else {\n\t\t\t\twriter.write(0);\n\t\t\t}\n\t\t\twriter.write(treeStringLength);\n\t\t\twriter.write(treeString, 0, treeStringLength);\n\t\t}\n\t}",
"public static BufferedWriter Writer(String path) throws IOException\n\t{\n\t\treturn new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),\"UTF-8\"));\n\t}",
"public void convertToUTF8() {\n FileInputStream istream = null;\n Writer out = null;\n try {\n istream = new FileInputStream(path);\n BufferedInputStream in = new BufferedInputStream(istream);\n CharsetDecoder charsetDecoder = Charset.forName(\"UTF-8\").newDecoder();\n charsetDecoder.onMalformedInput(CodingErrorAction.REPLACE);\n charsetDecoder.onUnmappableCharacter(CodingErrorAction.REPLACE);\n Reader inputReader = new InputStreamReader(in, charsetDecoder);\n StringWriter writer = new StringWriter();\n IOUtils.copy(inputReader, writer);\n String theString = writer.toString();\n FileUtils.deleteQuietly(new File(path));\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n out.write(theString);\n out.close();\n// System.out.println(\"\");\n } catch (FileNotFoundException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n } catch (IOException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n } finally {\n try {\n if (out != null) {\n out.close();\n }\n if (istream != null) {\n istream.close();\n }\n } catch (IOException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n }\n }\n\n }",
"public static Writer writerCreator(String iFile, String config) throws IOException\n\t{\n\t\tWriter writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(new FileOutputStream(iFile), UTF8));\n\t\twriter.write(config);\n\t\treturn writer;\n\t}",
"public static XMLStringWriter create() {\r\n return new XMLStringWriter(new StringWriter());\r\n }",
"public StaxEventItemWriterBuilder<T> encoding(String encoding) {\n\t\tthis.encoding = encoding;\n\n\t\treturn this;\n\t}",
"private void writefastxj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"xj\");\r\n\t\tedit.commit();\r\n\t}",
"public String getWriterContent() throws UnsupportedEncodingException {\n if (printWriter == null) {\n return null;\n }\n printWriter.flush();\n return baos.toString(\"UTF-8\");\n }",
"private void writefastjx() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"jx\");\r\n\t\tedit.commit();\r\n\t}",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n StringWriter stringWriter0 = new StringWriter(70);\n char[] charArray0 = new char[10];\n charArray0[1] = 'T';\n charArray0[5] = 'T';\n stringWriter0.write(70);\n charArray0[2] = 'T';\n charArray0[2] = '\\u0000';\n stringWriter0.write(charArray0);\n StringWriter stringWriter1 = new StringWriter('T');\n StringWriter stringWriter2 = new StringWriter();\n stringWriter2.write(charArray0);\n stringWriter0.write(charArray0);\n stringWriter0.close();\n StringWriter stringWriter3 = new StringWriter();\n stringWriter2.flush();\n stringWriter2.close();\n StringWriter stringWriter4 = new StringWriter('T');\n stringWriter1.write((int) 'T');\n StringWriter stringWriter5 = new StringWriter();\n stringWriter3.close();\n StringWriter stringWriter6 = new StringWriter('\\u0000');\n stringWriter2.flush();\n stringWriter2.flush();\n StringWriter stringWriter7 = new StringWriter('T');\n stringWriter0.write(90);\n stringWriter0.write(\"*le\");\n SimpleNode simpleNode0 = new SimpleNode('T');\n stringWriter3.write(204);\n StringWriter stringWriter8 = new StringWriter(70);\n stringWriter0.flush();\n stringWriter1.write(\"n~}KXk4pnRbMtpaDYJ\");\n simpleNode0.setIdentifier(\"ForUpdate\");\n stringWriter7.write(charArray0);\n simpleNode0.dump(\"n~}KXk4pnRbMtpaDYJ\", stringWriter2);\n assertEquals(\"\\u0000T\\u0000\\u0000\\u0000T\\u0000\\u0000\\u0000\\u0000<ForInit>\\n <identifier>ForUpdate</identifier>\\n</ForInit>\\n\", stringWriter2.toString());\n }",
"public JSONWriter()\n {\n _features = 0;\n _writeNullValues = false;\n _writerLocator = null;\n _treeCodec = null;\n _generator = null;\n _timezone = DEFAULT_TIMEZONE;\n }",
"public void writeToClient(String encoding) throws IOException \n\t{\n\t\twriteToClient(encoding, m_jspWriter);\n\t}",
"@Override\n\tpublic ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) {\n\t\treturn new Html5ResponseWriter(super.createResponseWriter(writer, contentTypeList, characterEncoding));\n\t}",
"protected JsonGenerator _createUTF8Generator(OutputStream out, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1384 */ UTF8JsonGenerator gen = new UTF8JsonGenerator(ctxt, this._generatorFeatures, this._objectCodec, out);\n/* */ \n/* 1386 */ if (this._characterEscapes != null) {\n/* 1387 */ gen.setCharacterEscapes(this._characterEscapes);\n/* */ }\n/* 1389 */ SerializableString rootSep = this._rootValueSeparator;\n/* 1390 */ if (rootSep != DEFAULT_ROOT_VALUE_SEPARATOR) {\n/* 1391 */ gen.setRootValueSeparator(rootSep);\n/* */ }\n/* 1393 */ return gen;\n/* */ }",
"private void writefasttj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"tj\");\r\n\t\tedit.commit();\r\n\t}",
"@Override\n public void setCharacterEncoding(String arg0) {\n\n }",
"public String toXml( String inEncoding )\n\t{\n\t\tDocument doc = DocumentHelper.createDocument();\n\t\tElement root = doc.addElement(getName());\n\t\tappendXml(this,root);\n\t\tStringWriter text = new StringWriter();\n\t\tOutputFormat format = OutputFormat.createPrettyPrint();\n\t\tformat.setEncoding(inEncoding);\n\t\tXMLWriter out = new XMLWriter(text, format);\n\t\ttry\n\t\t{\n\t\t\tout.write(doc);\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tthrow new OpenEditRuntimeException(ex);\n\t\t}\n\t\treturn text.toString();\n\t}",
"public WriterBasedJsonGenerator(IOContext ctxt, int features, com.fasterxml.jackson.core.ObjectCodec codec, Writer w)\n/* */ {\n/* 87 */ super(ctxt, features, codec);\n/* 88 */ this._writer = w;\n/* 89 */ this._outputBuffer = ctxt.allocConcatBuffer();\n/* 90 */ this._outputEnd = this._outputBuffer.length;\n/* */ }",
"@Test\n public void testWriteEntry_utf8() {\n String expResult = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" + ls\n + \"<rdf:RDF xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\">\" + ls\n + \" <lemon:LexicalEntry rdf:about=\\\"file:test#Sa\\u00edocht\\\" xmlns:lemon=\\\"http://lemon-model.net/lemon#\\\">\" + ls\n + \" <lemon:canonicalForm>\" + ls\n + \" <lemon:Form rdf:about=\\\"file:test#Sa\\u00edocht/canonicalForm\\\">\" + ls\n + \" <lemon:writtenRep xml:lang=\\\"ga\\\">Sa\\u00edocht</lemon:writtenRep>\" + ls\n + \" </lemon:Form>\" + ls\n + \" </lemon:canonicalForm>\" + ls\n + \" <lemon:sense>\" + ls\n + \" <lemon:LexicalSense rdf:about=\\\"file:test#Sa\\u00edocht/sense\\\">\" + ls\n + \" <lemon:reference rdf:resource=\\\"http://ga.dbpedia.org/resource/Sa\\u00edocht\\\"/>\" + ls\n + \" </lemon:LexicalSense>\" + ls\n + \" </lemon:sense>\" + ls\n + \" </lemon:LexicalEntry>\" + ls\n + \"</rdf:RDF>\";\n System.setProperty(\"lemon.api.xml.encoding\", \"UTF-8\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = makeModelUTF8(instance);\n LexicalEntry le = lm.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lo = new LexInfo();\n Writer dt = new StringWriter();\n boolean xml = true;\n instance.writeEntry(lm, le, lo, dt, xml);\n assertEquals(expResult.replaceAll(\"\\\\s\", \"\"), dt.toString().replaceAll(\"\\\\s\", \"\"));\n System.setProperty(\"lemon.api.xml.encoding\", \"US-ASCII\");\n //assertEquals(\"\",\"\");\n }",
"@Test(timeout = 4000)\n public void test08() throws Throwable {\n StringWriter stringWriter0 = new StringWriter(70);\n char[] charArray0 = new char[10];\n charArray0[1] = 'T';\n charArray0[5] = 'T';\n stringWriter0.write(70);\n charArray0[2] = 'T';\n charArray0[2] = '\\u0000';\n stringWriter0.write(charArray0);\n StringWriter stringWriter1 = new StringWriter('T');\n StringWriter stringWriter2 = new StringWriter();\n stringWriter2.write(charArray0);\n stringWriter0.write(charArray0);\n stringWriter0.close();\n StringWriter stringWriter3 = new StringWriter();\n stringWriter2.flush();\n stringWriter2.close();\n StringWriter stringWriter4 = new StringWriter('T');\n stringWriter1.write((int) 'T');\n StringWriter stringWriter5 = new StringWriter();\n stringWriter3.close();\n StringWriter stringWriter6 = new StringWriter('\\u0000');\n stringWriter2.flush();\n stringWriter2.flush();\n StringWriter stringWriter7 = new StringWriter('T');\n stringWriter0.write(90);\n stringWriter0.write(\"*le\");\n SimpleNode simpleNode0 = new SimpleNode('T');\n stringWriter3.write(204);\n StringWriter stringWriter8 = new StringWriter(70);\n stringWriter0.flush();\n stringWriter1.write(\"n~}KXk4pnRbMtpaDYJ\");\n simpleNode0.setIdentifier(\"}\");\n stringWriter7.write(charArray0);\n simpleNode0.dump(\"n~}KXk4pnRbMtpaDYJ\", stringWriter2);\n assertEquals(\"\\u0000T\\u0000\\u0000\\u0000T\\u0000\\u0000\\u0000\\u0000<ForInit>\\n</ForInit>\\n\", stringWriter2.toString());\n }",
"Charset getEncoding();",
"@Test\n\tpublic void testGenerate() throws UnsupportedEncodingException {\n\t\tfinal MarkovChainLanguageModel model = new MarkovChainLanguageModel();\n\t\tmodel.train(Locale.ENGLISH, \"This is an english sentence\", \"UTF-8\");\n\t}",
"public PrintWriter writeTextStream() throws IOException {\n return new PrintWriter(new OutputStreamWriter(\n writeStream(WebSocketMessage.OPCODE_TEXT), UTF8));\n }",
"void writeUTF(String s) throws IOException;",
"public abstract JsonWriter newWriter(Writer writer);",
"public void setEncoding (String encoding) {\n this.encoding = encoding;\n }",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public final Writer wrapAsTextWriter()\n {\n return mWriter.wrapAsTextWriter();\n }",
"XMLWriter getStringWriter() {\n\t\tOutputFormat format = new OutputFormat(\" \", true);\n\t\tformat.setTrimText(true);\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\tstringWriter = new XMLWriter(sw, format);\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"getStringWriter(): \" + e);\n\t\t}\n\n\t\tprtln(\" ... format.encoding: \" + format.getEncoding());\n\t\tprtln(\" ... format.isNewLines: \" + format.isNewlines());\n\t\tprtln(\" ... format.isTrimText: \" + format.isTrimText());\n\t\tprtln(\" ... format.indent: \\'\" + format.getIndent() + \"\\'\");\n\n\t\tstringWriter.setEscapeText(false);\n\t\tif (stringWriter.isEscapeText()) {\n\t\t\tprtln(\" ... isEscapeText\");\n\t\t} else {\n\t\t\tprtln(\" ... is NOT escapeText\");\n\t\t}\n\t\treturn stringWriter;\n\t}",
"private Writer createSequenceFileWriter(File outputPath) throws Exception {\n Configuration conf = new Configuration();\n org.apache.hadoop.fs.Path path = new org.apache.hadoop.fs.Path(outputPath.getAbsolutePath());\n\n CompressionCodec codec = getCompressionCodec();\n Writer.Option optPath = Writer.file(path);\n Writer.Option optKey = Writer.keyClass(keyConverter.getClassName());\n Writer.Option optValue = Writer.valueClass(valueConverter.getClassName());\n Writer.Option optCom = Writer.compression(compressionType, codec);\n\n return createWriter(conf, optPath, optKey, optValue, optCom);\n }",
"public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}",
"protected void genWriter() {\n\t\t\n\t\tfixWriter_h();\n\t\tfixWriter_cpp();\n\t}",
"public static void main(String[] args) throws IOException {\n InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(args[0]), \"utf-8\");\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(args[1]), \"windows-1251\");\n\n while (inputStreamReader.ready()) {\n outputStreamWriter.write( inputStreamReader.read() );\n }\n inputStreamReader.close();\n outputStreamWriter.close();\n }",
"private StringWriter createStringWriter(String str)\n\t{\n\t\treturn new StringWriter((int) (str.length() + (str.length() * 0.1)));\n\t}",
"@Override\n\t\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\t\n\t\t}",
"private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}",
"private static final Transformer getOutTransformer(final Transformer tf) {\r\n tf.setOutputProperty(OutputKeys.ENCODING, ENCODING);\r\n tf.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\r\n return tf;\r\n }",
"CodeWriter(File outputFile) throws IOException\n {\n writer = new PrintWriter(outputFile);\n }",
"@Override\n\tpublic CharsetEncoder newEncoder() {\n\t\treturn null;\n\t}",
"private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n try {\n outFw = new FileWriter(outputFile.getAbsolutePath());\n } catch (IOException e) {\n LOG.error(\"Can not create writer for {} {}\", outputFile.getAbsolutePath(), e);\n throw e;\n }\n this.bufferedWriter = new BufferedWriter(outFw);\n writeOutputLine(\"User Agent - started\");\n }",
"private JTextField getJTextFieldCharset() {\r\n\t\tif (jTextFieldCharset == null) {\r\n\t\t\tjTextFieldCharset = new JTextField();\r\n\t\t\tjTextFieldCharset.setBounds(new Rectangle(78, 86, 81, 23));\r\n\t\t\tjTextFieldCharset.setText(\"GB2312\");\r\n\t\t}\r\n\t\treturn jTextFieldCharset;\r\n\t}",
"public TemplateCodec() {\n this.documentCodec = new DocumentCodec();\n }",
"public static void writeFile(String p_name, String p_encoding,\n String p_content)\n throws IOException\n {\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(p_name), p_encoding));\n\n out.write(p_content);\n\n out.close();\n }",
"private void writeObject(ObjectOutputStream out)\n/* */ throws IOException\n/* */ {\n/* 900 */ out.writeUTF(toString());\n/* 901 */ out.writeObject(this.locale);\n/* */ }",
"protected JtxTransactionManager createJtxTransactionManager(final ConnectionProvider connectionProvider) {\n\t\treturn new DbJtxTransactionManager(connectionProvider);\n\t}",
"private void _writeStringCustom(int len)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 1261 */ int end = this._outputTail + len;\n/* 1262 */ int[] escCodes = this._outputEscapes;\n/* 1263 */ int maxNonEscaped = this._maximumNonEscapedChar < 1 ? 65535 : this._maximumNonEscapedChar;\n/* 1264 */ int escLimit = Math.min(escCodes.length, maxNonEscaped + 1);\n/* 1265 */ int escCode = 0;\n/* 1266 */ CharacterEscapes customEscapes = this._characterEscapes;\n/* */ \n/* */ \n/* 1269 */ while (this._outputTail < end)\n/* */ {\n/* */ char c;\n/* */ do\n/* */ {\n/* 1274 */ c = this._outputBuffer[this._outputTail];\n/* 1275 */ if (c < escLimit) {\n/* 1276 */ escCode = escCodes[c];\n/* 1277 */ if (escCode != 0)\n/* */ break;\n/* */ } else {\n/* 1280 */ if (c > maxNonEscaped) {\n/* 1281 */ escCode = -1;\n/* 1282 */ break;\n/* */ }\n/* 1284 */ if ((this._currentEscape = customEscapes.getEscapeSequence(c)) != null) {\n/* 1285 */ escCode = -2;\n/* 1286 */ break;\n/* */ }\n/* */ }\n/* 1289 */ } while (++this._outputTail < end);\n/* 1290 */ break;\n/* */ \n/* */ \n/* 1293 */ int flushLen = this._outputTail - this._outputHead;\n/* 1294 */ if (flushLen > 0) {\n/* 1295 */ this._writer.write(this._outputBuffer, this._outputHead, flushLen);\n/* */ }\n/* 1297 */ this._outputTail += 1;\n/* 1298 */ _prependOrWriteCharacterEscape(c, escCode);\n/* */ }\n/* */ }",
"public JSourceWriter(Writer out) {\n this(out, DEFAULT_SIZE, DEFAULT_CHAR, false);\n }",
"public static FontEncoding createFontSpecificEncoding() {\n FontEncoding encoding = new FontEncoding();\n encoding.fontSpecific = true;\n for (int ch = 0; ch < 256; ch++) {\n encoding.unicodeToCode.put(ch, ch);\n encoding.codeToUnicode[ch] = ch;\n encoding.unicodeDifferences.put(ch, ch);\n }\n return encoding;\n }",
"public static Charset getUtf8Charset(){\n\t\tif(utf8 == null){\n\t\t\tutf8 = Charset.forName(\"UTF-8\");\n\t\t}\n\t\treturn utf8;\n\t}",
"public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }",
"@Override\n\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\n\t}",
"public void doConvertion() throws IOException{\n String filename = \"test\";\n writer = new PrintWriter(new FileWriter(filename));\n writer.write(\"\\\"token\\\",\\\"prev_word\\\",\\\"next_word\\\",\\\"tag\\\",\\\"prev_tag\\\",\\\"next_tag\\\",\\\"is_number\\\",\\\"is_punctuation\\\",\\\"is_place_directive\\\",\\\"is_url\\\",\\\"is_twitter_account\\\",\\\"is_hashtag\\\",\\\"is_month_name\\\",\\\"is_gazeteer\\\",\\\"label\\\"\");\n // write header first.. \n \n // Select from db.\n// ArrayList<String> tweets = selectTweet();\n// for (int i = 0; i < tweets.size(); i++) {\n// String tobewriten = parseTweet(tweets.get(i));\n// writer.write(tobewriten);\n// }\n // put arff header in bottom but next to be moved to top..\n writer.write(parseTweet());\n //writer.write(getArffHeader());\n \n writer.close();\n // write to external file\n \n }",
"Builder addEncoding(String value);",
"public void testSetEncoding_Normal() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n\n byte[] bytes = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n assertTrue(Arrays.equals(bytes, aos.toByteArray()));\n }",
"protected void setEncoding() {\n\t\tthis.defaultContentType = getProperty(CONTENT_TYPE_KEY, DEFAULT_CONTENT_TYPE);\n\n\t\tString encoding = getProperty(RuntimeConstants.OUTPUT_ENCODING, DEFAULT_OUTPUT_ENCODING);\n\n\t\t// For non Latin-1 encodings, ensure that the charset is\n\t\t// included in the Content-Type header.\n\t\tif (!DEFAULT_OUTPUT_ENCODING.equalsIgnoreCase(encoding)) {\n\t\t\tint index = defaultContentType.lastIndexOf(\"charset\");\n\t\t\tif (index < 0) {\n\t\t\t\t// the charset specifier is not yet present in header.\n\t\t\t\t// append character encoding to default content-type\n\t\t\t\tthis.defaultContentType += \"; charset=\" + encoding;\n\t\t\t} else {\n\t\t\t\t// The user may have configuration issues.\n\t\t\t\tlog.info(\"Charset was already specified in the Content-Type property.Output encoding property will be ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tlog.debug(\"Default Content-Type is: {}\", defaultContentType);\n\t}",
"public ConvertToUTF8() {\n initComponents();\n }",
"public static void writeFile(String inputFile, String outputFile, String[] encodings){\n File iFile = new File(inputFile);\n File oFile = new File(outputFile);\n //try catch for creating the output file\n try {\n //if it doesn't exist it creates the file. else if clears the output file\n\t if (oFile.createNewFile()){\n System.out.println(\"File is created!\");\n\t } else{\n PrintWriter writer = new PrintWriter(oFile);\n writer.print(\"\");\n writer.close();\n System.out.println(\"File cleared.\");\n\t }\n }\n catch(IOException e){\n e.printStackTrace();\n }\n //try catch to scan the input file\n try {\n Scanner scan = new Scanner(iFile);\n PrintWriter writer = new PrintWriter(oFile);\n //loop to look at each word in the file\n while (scan.hasNext()) {\n String s = scan.next();\n //loop to look at each character in the word\n for(int i = 0; i < s.length(); i++){\n if((int)s.charAt(i)-32 <= 94) {\n writer.print(encodings[(int)s.charAt(i)-32]);\n }\n }\n //gives the space between words\n writer.print(encodings[0]);\n }\n scan.close();\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public static StringDescriptionWriter stringWriter() {\n return new StringDescriptionWriter();\n }",
"public Writer getWriter(final Writer out, Map args) throws TemplateModelException {\n \t\r\n \tfinal StringBuffer buffer = new StringBuffer();\r\n\t\treturn new Writer() {\r\n\t\t\tpublic void write(char cbuf[], int off, int len) {\r\n\t\t \t\tbuffer.append(cbuf, off, len);\r\n\t\t \t}\r\n\r\n\t\t\tpublic void flush() throws IOException {\r\n\t\t \t\tout.flush();\r\n\t\t \t}\r\n\t\t \t\r\n\t\t\tpublic void close() throws IOException {\r\n\t\t \t\tStringBuffer transformedBuffer = transform(buffer);\r\n\t\t \t\tout.write(transformedBuffer.toString());\r\n\t\t \t\tout.flush();\r\n\t\t\t}\r\n\r\n\t\t}; \t\r\n }",
"public void JstringTrans(String line, File outfile) {\n\n\ttry {\n\t PrintWriter writer = new PrintWriter(new FileOutputStream(outfile, true));\n\n\t String[] printStatement = line.split(\"\\\\(\"); // splits the printStatement after (\n\t char[] systemSt = printStatement[0].toCharArray(); // sets the first part of split to systemSt\n\t char[] printSt = printStatement[1].toCharArray(); // sets second part of split to printSt\n\t int sysLength = systemSt.length; // creates sysLength to get obtain the length of the first part of split\n\t boolean endl = false; // sets endl = to false\n\n // if the length of systemSt -2 is l and systemSt -1 is n it declares endl as true\n\t if (systemSt[sysLength - 2] == 'l' && systemSt[sysLength - 1] == 'n') {\n//\t\tendl = true;\n writer.print(\"Console.WriteLine\"); // writes cout << into new file\n writer.print(\"TEST\");\n\t }\n\n\t // writer.print(\"Console.WriteLine\"); // writes cout << into new file\n\n\t // loops as long as i is less than the length of printSt -2 and reads through each part of the character array\n\t for (int i = 0; i < (printSt.length - 2); i++) {\n\n\t\tif (printSt[i] == '+') { //if code finds a +, it will replace it with <<\n\t\t writer.print(\"printf\");\n\t\t} else { // otherwise it will continue\n\t\t writer.print(printSt[i]);\n\t\t}\n\t }\n\n\t if (endl) { // if endl is true, code will add << endl; to the end of the line.\n\t\twriter.print(\"<< endl\");\n\t }\n\n\t writer.println(\";\");\n\n\n\t writer.close(); // finishes with writting in new file\n\t} catch (Exception IOException) {\n\t System.out.println(\"Some sort of IO error here\");\n\t}\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n StringWriter stringWriter0 = new StringWriter(70);\n char[] charArray0 = new char[9];\n charArray0[0] = 'T';\n stringWriter0.write(70);\n stringWriter0.write(charArray0);\n StringWriter stringWriter1 = new StringWriter();\n StringWriter stringWriter2 = new StringWriter();\n stringWriter2.write(charArray0);\n stringWriter1.write(charArray0);\n StringBuffer stringBuffer0 = new StringBuffer();\n StringWriter stringWriter3 = stringWriter1.append((CharSequence) stringBuffer0);\n stringWriter2.flush();\n StringWriter stringWriter4 = new StringWriter(70);\n stringWriter2.write(63);\n StringWriter stringWriter5 = new StringWriter();\n stringWriter3.close();\n stringWriter5.flush();\n StringWriter stringWriter6 = new StringWriter(70);\n SimpleNode simpleNode0 = new SimpleNode(63);\n stringWriter2.write(1);\n StringWriter stringWriter7 = new StringWriter(63);\n stringWriter0.flush();\n stringWriter3.write(\"k}^Bdh;XfPc/Onl>.\");\n simpleNode0.setIdentifier(\"null\");\n stringWriter0.write(charArray0);\n simpleNode0.dump(\"*gt\", stringWriter0);\n assertEquals(\"FT\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000T\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000<Literal>\\n<identifier>Literal Value</identifier>\\n</Literal>\\n\", stringWriter0.toString());\n }",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"private File createRecordInputStreamFromJsonFile(String inputFile, Charset charset) {\n try {\n final File tempFile = File.createTempFile(inputFile, \".txt\");\n tempFile.deleteOnExit();\n String json = FileUtils.readFileFromResource2String(inputFile, Charset.defaultCharset());\n JSONArray docs = new JSONArray(json);\n String csv = CDL.toString(docs);\n org.apache.commons.io.FileUtils.writeStringToFile(tempFile, csv, Charset.defaultCharset());\n return tempFile;\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n }",
"public void writeToTextFile(String filename){\n try{\n FileWriter myWriter = new FileWriter(filename); \n myWriter.write(toString());\n myWriter.close();\n } \n catch(IOException e) { \n System.out.println(\"An error occurred.\"); \n e.printStackTrace();\n } \n }",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlEncoding();",
"public void setEncoding(String encoding) {\r\n this.encoding = encoding;\r\n }",
"public void setOutputEncoding(String outputEncoding) {\r\n this.outputEncoding = outputEncoding;\r\n }",
"public void setEncoding(String encoding) {\n this.encoding = encoding;\n }",
"public void setEncoding(String encoding) {\n this.encoding = encoding;\n }",
"public void setEncoding(String encoding) {\n this.encoding = encoding;\n }",
"public XmlWriterImpl(String pathToDataFolder, TextAreaLoggerHandler textAreaHandler) throws ServiceFailureException {\r\n try { \r\n outputStream = new FileOutputStream(new File(pathToDataFolder\r\n + File.separator + \"xmlOutput.xml\"));\r\n \r\n writer = XMLOutputFactory.newInstance().createXMLStreamWriter(\r\n new OutputStreamWriter(outputStream, \"utf-8\"));\r\n \r\n if(LOGGER.getHandlers().length == 0) {\r\n LOGGER.addHandler(textAreaHandler);\r\n }\r\n } catch(FileNotFoundException | UnsupportedEncodingException | XMLStreamException ex) {\r\n LOGGER.log(Level.SEVERE, \"Error while creating XML writer!\", ex);\r\n throw new ServiceFailureException(\"Internal error: error while \"\r\n + \"creating XML writer!\", ex);\r\n }\r\n }",
"private void createHTML(BufferedWriter writer) throws IOException {\r\n\t\tString startHead = \"<html><head>\" // I have used roberto font,Please\r\n\t\t\t\t\t\t\t\t\t\t\t// link the appropriate font\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>\"\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'>\"\r\n\t\t\t\t+ cssFileForHtml()\r\n\t\t\t\t+ \"</head><script src='https://d3js.org/d3.v4.min.js'></script><body style=' background-color: #F5F5F5'>\";\r\n\t\twriter.write(startHead);\r\n\t}",
"public JsonGenerator createGenerator(OutputStream out)\n/* */ throws IOException\n/* */ {\n/* 1110 */ return createGenerator(out, JsonEncoding.UTF8);\n/* */ }",
"public String getJavaEncoding();",
"public String getStringEncoding()\n\t{\n\t\treturn \"utf-8\";\n\t}",
"String getCharset();",
"public XMLOutputter(String indent, boolean newlines, String encoding) {\r\n setEncoding( encoding);\r\n setIndent( indent);\r\n setNewlines(newlines);\r\n }",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public static Charset defaultCharset() {\n\t\treturn new Windows1250();\n\t}",
"private WriterFactory() {\n }",
"public void write(String s) {\n String s_t_txt = s + \".txt\";\n try {\n PrintWriter writer = new PrintWriter(s_t_txt, \"UTF-8\");\n writer.print(s + \"\\n\");\n writer.print(toString());\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static TeaFileWriter getWriter(String fileFormat) {\r\n\t\t\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.writer;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextWriter();\r\n\t}",
"public void setEncoding(Encoding encoding) {\n this.encoding = encoding;\n }",
"public void writeJasminToFile( String jasminFileName ) throws IOException {\n PrintWriter jasminOut = new PrintWriter(new FileWriter(jasminFileName));\n for( String line : jasminCode )\n jasminOut.println(line);\n jasminOut.close();\n }",
"public static void createJsonFile(JsonObject json) throws IOException {\n\r\n FileWriter file = new FileWriter(\"outputfile\", false);\r\n try {\r\n file.write(Jsoner.prettyPrint(json.toJson(),2));\r\n file.flush();\r\n } catch (IOException e) {\r\n out.println(\"Error \" + e);\r\n }\r\n }",
"@Override\n public void writeStartDocument()\n throws XMLStreamException\n {\n if (mEncoding == null) {\n mEncoding = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n }\n writeStartDocument(mEncoding, WstxOutputProperties.DEFAULT_XML_VERSION);\n }",
"public void write(JsonWriter jsonWriter, C2462t tVar) throws IOException {\n Class<String> cls = String.class;\n if (tVar == null) {\n jsonWriter.nullValue();\n return;\n }\n jsonWriter.beginObject();\n jsonWriter.name(\"cpId\");\n if (tVar.mo10328b() == null) {\n jsonWriter.nullValue();\n } else {\n TypeAdapter<String> typeAdapter = this.f7883a;\n if (typeAdapter == null) {\n typeAdapter = this.f7885c.getAdapter(cls);\n this.f7883a = typeAdapter;\n }\n typeAdapter.write(jsonWriter, tVar.mo10328b());\n }\n jsonWriter.name(\"bundleId\");\n if (tVar.mo10327a() == null) {\n jsonWriter.nullValue();\n } else {\n TypeAdapter<String> typeAdapter2 = this.f7883a;\n if (typeAdapter2 == null) {\n typeAdapter2 = this.f7885c.getAdapter(cls);\n this.f7883a = typeAdapter2;\n }\n typeAdapter2.write(jsonWriter, tVar.mo10327a());\n }\n jsonWriter.name(\"sdkVersion\");\n if (tVar.mo10330d() == null) {\n jsonWriter.nullValue();\n } else {\n TypeAdapter<String> typeAdapter3 = this.f7883a;\n if (typeAdapter3 == null) {\n typeAdapter3 = this.f7885c.getAdapter(cls);\n this.f7883a = typeAdapter3;\n }\n typeAdapter3.write(jsonWriter, tVar.mo10330d());\n }\n jsonWriter.name(\"rtbProfileId\");\n TypeAdapter<Integer> typeAdapter4 = this.f7884b;\n if (typeAdapter4 == null) {\n typeAdapter4 = this.f7885c.getAdapter(Integer.class);\n this.f7884b = typeAdapter4;\n }\n typeAdapter4.write(jsonWriter, Integer.valueOf(tVar.mo10329c()));\n jsonWriter.endObject();\n }",
"private void createDecodedFile(String decodedValues, String encodedFileName) throws Exception {\r\n\r\n\r\n\t\tString decodedFileName = encodedFileName.substring(0, encodedFileName.lastIndexOf(\".\")) + \"_decoded.txt\";\r\n\t\t//FileWriter and BufferedWriter to write and it overwrites into the file.\r\n\t\tFileWriter fileWriter = new FileWriter(decodedFileName, false);\r\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\r\n\t\tbufferedWriter.write(decodedValues);\r\n\t\t//Flush and Close the bufferedWriter\r\n\t\tbufferedWriter.flush();\r\n\t\tbufferedWriter.close();\t\r\n\t}",
"@SuppressWarnings(\"resource\")\n private XMLStreamWriter2 createSW(OutputStream out, Writer w, String enc,\n boolean requireAutoClose)\n throws XMLStreamException\n {\n /* Need to ensure that the configuration object is not shared\n * any more; otherwise later changes via factory could be\n * visible half-way through output...\n */\n WriterConfig cfg = mConfig.createNonShared();\n XmlWriter xw;\n\n boolean autoCloseOutput = requireAutoClose || mConfig.willAutoCloseOutput();\n\n if (w == null) {\n if (enc == null) {\n enc = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n } else {\n /* Canonical ones are interned, so we may have\n * normalized encoding already...\n */\n if (enc != CharsetNames.CS_UTF8\n && enc != CharsetNames.CS_ISO_LATIN1\n && enc != CharsetNames.CS_US_ASCII) {\n enc = CharsetNames.normalize(enc);\n }\n }\n\n try {\n if (enc == CharsetNames.CS_UTF8) {\n w = new UTF8Writer(cfg, out, autoCloseOutput);\n xw = new BufferingXmlWriter(w, cfg, enc, autoCloseOutput, out, 16);\n } else if (enc == CharsetNames.CS_ISO_LATIN1) {\n xw = new ISOLatin1XmlWriter(out, cfg, autoCloseOutput);\n } else if (enc == CharsetNames.CS_US_ASCII) {\n xw = new AsciiXmlWriter(out, cfg, autoCloseOutput);\n } else {\n w = new OutputStreamWriter(out, enc);\n xw = new BufferingXmlWriter(w, cfg, enc, autoCloseOutput, out, -1);\n }\n } catch (IOException ex) {\n throw new XMLStreamException(ex);\n }\n } else {\n // we may still be able to figure out the encoding:\n if (enc == null) {\n enc = CharsetNames.findEncodingFor(w);\n }\n try {\n xw = new BufferingXmlWriter(w, cfg, enc, autoCloseOutput, null, -1);\n } catch (IOException ex) {\n throw new XMLStreamException(ex);\n }\n }\n\n return createSW(enc, cfg, xw);\n }",
"public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }",
"@Test\n\tpublic void testJsonEncoding() throws IOException {\n\t\tvalidateEncodingHandling(\"UTF16BE.json\", Charsets.UTF_16BE, \"The\\uD801\\uDC37 Na\\uD834\\uDD1Em\\uD834\\uDD1Ee\\uD801\\uDC37\");\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.ISO_8859_1, \"³ for ?, ¿ for ?\");\n\t\t// Reading ISO8859-1 as UTF8 will result in mapping errors. This is expected and can't be avoided if the wrong encoding has been specified.\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.UTF_8, \"� for ?, � for ?\");\n\t}",
"String getEncoding();",
"public static void main(String[] args) {\n\t\tString charactorSet = \"UTF-8\";\n\t\tString string = \"꽑한글과Alphabet조합\";\n\n\t\tCharset charset = Charset.forName(charactorSet);\n\t\tCharsetEncoder charsetEncoder = charset.newEncoder();\n\n\t\tCharBuffer charBuffer = CharBuffer.allocate(64);\n\t\tcharBuffer.put(string);\n\t\tcharBuffer.flip();\n\n\t\tByteBuffer byteBuffer = ByteBuffer.allocate(6);\n\n\t\tCoderResult coderResult = null;\n\t\tFileOutputStream fileOutputStream = null;\n\t\tFileChannel fileChannel = null;\n\t\t\n\t\tSystem.out.println(\"string\t\t\t:\t\" + string);\n\t\tSystem.out.println(\"string.length()\t\t:\t\" + string.length());\n\t\tSystem.out.println(\"=======================================================\");\n\t\tSystem.out.println(\"charBuffer.length()\t:\t\" + charBuffer.length());\n\t\tSystem.out.println(\"charBuffer.limit()\t:\t\" + charBuffer.limit() );\n\t\tSystem.out.println(\"charBuffer.position()\t:\t\" + charBuffer.position() );\n\t\tSystem.out.println(\"charBuffer.toString()\t:\t\" + charBuffer.toString() );\n\t\ttry {\n\t\t\tfileOutputStream = new FileOutputStream(\"temp.tmp\");\n\t\t\tfileChannel = fileOutputStream.getChannel();\n\n\t\t\twhile (true) {\n\t\t\t\tcoderResult = charsetEncoder.encode(charBuffer, byteBuffer, true);\n\t\t\t\tbyteBuffer.flip();\n\t\t\t\tfileChannel.write(byteBuffer);\n\t\t\t\tbyteBuffer.clear();\n\t\t\t\tSystem.out.println(\"=======================================================\");\n\t\t\t\tSystem.out.println(\"coderResult\t\t\t\t: \" + coderResult );\n\t\t\t\tSystem.out.println(\"\\ncharBuffer.limit()\t\t\t: \" + charBuffer.limit() );\n\t\t\t\tSystem.out.println(\"charBuffer.position()\t\t\t: \" + charBuffer.position() );\n\t\t\t\tSystem.out.println(\"charBuffer.toString()\t\t\t: \" + charBuffer.toString() );\n\t\t\t\tSystem.out.println(\"\\nbyteBuffer.toString()\t\t\t: \" + byteBuffer.toString() );\n\t\t\t\tSystem.out.println(\"byteBuffer.remaining()\t\t\t: \" + byteBuffer.remaining() );\n\t\t\t\tSystem.out.println(\"new String(byteBuffer.array())\t\t: \" + new String(byteBuffer.array()) );\n\t\t\t\t\n\n\t\t\t\tif (coderResult == CoderResult.UNDERFLOW) {\n\t\t\t\t\tif (charBuffer.position() == charBuffer.limit()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"=======================================================\");\n\t\t\t}\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}"
] |
[
"0.5375606",
"0.5220623",
"0.51802325",
"0.5167729",
"0.5150817",
"0.50967455",
"0.49835745",
"0.49363738",
"0.48206544",
"0.47835508",
"0.4766587",
"0.4742075",
"0.47329518",
"0.4710466",
"0.4698959",
"0.46868098",
"0.46363717",
"0.46363136",
"0.462124",
"0.46159655",
"0.46127492",
"0.46054336",
"0.45911783",
"0.45870936",
"0.45846775",
"0.45834973",
"0.4578578",
"0.45752054",
"0.45739025",
"0.457283",
"0.45476514",
"0.45457855",
"0.45447132",
"0.45388505",
"0.45273674",
"0.45261863",
"0.45153683",
"0.450982",
"0.4490189",
"0.44728106",
"0.4472234",
"0.44695842",
"0.44614714",
"0.44570613",
"0.4457029",
"0.44543138",
"0.44520208",
"0.44373032",
"0.4436923",
"0.4435374",
"0.4428588",
"0.4426779",
"0.4421321",
"0.44173956",
"0.44076878",
"0.44043568",
"0.43965906",
"0.43943757",
"0.4383148",
"0.43814206",
"0.4380842",
"0.43661314",
"0.4363142",
"0.4358571",
"0.4354684",
"0.43545082",
"0.43405655",
"0.4339441",
"0.4320118",
"0.4317438",
"0.43142998",
"0.43023178",
"0.42981014",
"0.4293037",
"0.4290235",
"0.4290235",
"0.4290235",
"0.42826882",
"0.4276265",
"0.4268719",
"0.42595258",
"0.4259296",
"0.42543572",
"0.42527175",
"0.4249036",
"0.42485",
"0.42448503",
"0.4237173",
"0.4236188",
"0.42304477",
"0.4229594",
"0.422824",
"0.42254287",
"0.42212054",
"0.42155728",
"0.42068517",
"0.4204864",
"0.4198229",
"0.4186543",
"0.41800323"
] |
0.44283894
|
51
|
Creates a JTM writer.
|
public JTMTopicMapWriter(final OutputStream out, final String baseIRI, final String encoding) throws IOException {
if (encoding == null) {
throw new IOException("The encoding must not be null");
}
_baseIRI = baseIRI;
_out = new JSONWriter(out, encoding);
_out.setPrettify(false);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Write createWrite();",
"private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n try {\n outFw = new FileWriter(outputFile.getAbsolutePath());\n } catch (IOException e) {\n LOG.error(\"Can not create writer for {} {}\", outputFile.getAbsolutePath(), e);\n throw e;\n }\n this.bufferedWriter = new BufferedWriter(outFw);\n writeOutputLine(\"User Agent - started\");\n }",
"public abstract JsonWriter newWriter(OutputStream out);",
"public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}",
"public abstract JsonWriter newWriter(Writer writer);",
"public static Writer writerCreator(String iFile, String config) throws IOException\n\t{\n\t\tWriter writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(new FileOutputStream(iFile), UTF8));\n\t\twriter.write(config);\n\t\treturn writer;\n\t}",
"private BufferedWriter createWriter(String filePath, String fileName)\r\n\t\t\tthrows IOException {\r\n\t\tString fullPath = filePath + \"/\" + fileName;\r\n\t\tFile file = new File(fullPath);\r\n\t\tboolean exists = new File(filePath).exists();\r\n\t\tif (!exists) {\r\n\t\t\tfile.mkdir();\r\n\t\t}\r\n\t\tFileWriter writer = new FileWriter(file);\r\n\t\tBufferedWriter bufferWriter = new BufferedWriter(writer);\r\n\r\n\t\treturn bufferWriter;\r\n\t}",
"public static XMLStringWriter create() {\r\n return new XMLStringWriter(new StringWriter());\r\n }",
"private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }",
"public Writer openWriter() throws IOException {\n return new FileWriter(this);\n }",
"private Writer createSequenceFileWriter(File outputPath) throws Exception {\n Configuration conf = new Configuration();\n org.apache.hadoop.fs.Path path = new org.apache.hadoop.fs.Path(outputPath.getAbsolutePath());\n\n CompressionCodec codec = getCompressionCodec();\n Writer.Option optPath = Writer.file(path);\n Writer.Option optKey = Writer.keyClass(keyConverter.getClassName());\n Writer.Option optValue = Writer.valueClass(valueConverter.getClassName());\n Writer.Option optCom = Writer.compression(compressionType, codec);\n\n return createWriter(conf, optPath, optKey, optValue, optCom);\n }",
"public Writer getWriter ()\n {\n\tif (myWriter == null)\n\t{\n\t myWriter = new MyWriter ();\n\t}\n\n\treturn myWriter;\n }",
"public static Writer createWriter(Path path,\n WriterOptions opts\n ) throws IOException {\n FileSystem fs = opts.fileSystemValue == null ?\n path.getFileSystem(opts.configuration) : opts.fileSystemValue;\n\n return new WriterImpl(fs, path, opts.configuration, opts.inspectorValue,\n opts.stripeSizeValue, opts.compressValue,\n opts.bufferSizeValue, opts.rowIndexStrideValue,\n opts.memoryManagerValue, opts.blockPaddingValue,\n opts.versionValue);\n }",
"public JsonGenerator createGenerator(Writer w)\n/* */ throws IOException\n/* */ {\n/* 1129 */ IOContext ctxt = _createContext(w, false);\n/* 1130 */ return _createGenerator(_decorate(w, ctxt), ctxt);\n/* */ }",
"public Writer getWriter(final Writer out, Map args) throws TemplateModelException {\n \t\r\n \tfinal StringBuffer buffer = new StringBuffer();\r\n\t\treturn new Writer() {\r\n\t\t\tpublic void write(char cbuf[], int off, int len) {\r\n\t\t \t\tbuffer.append(cbuf, off, len);\r\n\t\t \t}\r\n\r\n\t\t\tpublic void flush() throws IOException {\r\n\t\t \t\tout.flush();\r\n\t\t \t}\r\n\t\t \t\r\n\t\t\tpublic void close() throws IOException {\r\n\t\t \t\tStringBuffer transformedBuffer = transform(buffer);\r\n\t\t \t\tout.write(transformedBuffer.toString());\r\n\t\t \t\tout.flush();\r\n\t\t\t}\r\n\r\n\t\t}; \t\r\n }",
"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 }",
"public static JsonWriter newWriter(OutputStream out) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(out);\n }",
"CodeWriter(File outputFile) throws IOException\n {\n writer = new PrintWriter(outputFile);\n }",
"protected void writeFile(Document model, FileWriter writer)\n throws IOException, Exception {\n writer.loadTemplate();\n\n String className = model.getDocumentElement().getAttribute(\"name\");\n writer.createOutFile(null, className); //pass in null as the package\n\n // use the global resolver\n writer.parse(model, resolver);\n }",
"protected void genWriter() {\n\t\t\n\t\tfixWriter_h();\n\t\tfixWriter_cpp();\n\t}",
"public static Writer createWriter(FileSystem fs,\n Path path,\n Configuration conf,\n ObjectInspector inspector,\n long stripeSize,\n CompressionKind compress,\n int bufferSize,\n int rowIndexStride) throws IOException {\n return createWriter(path,\n writerOptions(conf)\n .fileSystem(fs)\n .inspector(inspector)\n .stripeSize(stripeSize)\n .compress(compress)\n .bufferSize(bufferSize)\n .rowIndexStride(rowIndexStride));\n }",
"public JSONWriter()\n {\n _features = 0;\n _writeNullValues = false;\n _writerLocator = null;\n _treeCodec = null;\n _generator = null;\n _timezone = DEFAULT_TIMEZONE;\n }",
"public static JsonWriter newWriter(Writer writer) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(writer);\n }",
"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}",
"protected JtxTransactionManager createJtxTransactionManager(final ConnectionProvider connectionProvider) {\n\t\treturn new DbJtxTransactionManager(connectionProvider);\n\t}",
"public IndexWriter getIndexWriter() {\n\t\ttry {\n\t\t\tcheckDirectory();\n\t\t\tcheckIndexLocking();\n\n\t\t\tboolean create = !IndexReader.indexExists(getDirectory());\n\t\t\tIndexWriter writer = new IndexWriter(getDirectory(),getAnalyzer(),create);\n\t\t\tsetIndexWriterParameters(writer);\n\t\t\treturn writer;\n\t\t} catch(IOException ex) {\n\t\t\tthrow new LuceneIndexAccessException(\"Error during creating the writer\",ex);\n\t\t}\n\t}",
"public static TeaFileWriter getWriter(String fileFormat) {\r\n\t\t\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.writer;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextWriter();\r\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <TenderType> tender ()\n {\n return UBL23WriterBuilder.create (TenderType.class);\n }",
"public WriterBasedJsonGenerator(IOContext ctxt, int features, com.fasterxml.jackson.core.ObjectCodec codec, Writer w)\n/* */ {\n/* 87 */ super(ctxt, features, codec);\n/* 88 */ this._writer = w;\n/* 89 */ this._outputBuffer = ctxt.allocConcatBuffer();\n/* 90 */ this._outputEnd = this._outputBuffer.length;\n/* */ }",
"private WriterFactory() {\n }",
"public String getWriter() {\r\n return writer;\r\n }",
"public JodaBeanJsonWriter jsonWriter() {\n return new JodaBeanJsonWriter(this);\n }",
"public JodaBeanXmlWriter xmlWriter() {\n return new JodaBeanXmlWriter(this);\n }",
"public Writer getWriter(String cliParameter) {\n Writer writer = null;\n if(\"csv\".equals(cliParameter)){\n writer = new WriterCSV();\n }\n \n return writer;\n }",
"public static StringDescriptionWriter stringWriter() {\n return new StringDescriptionWriter();\n }",
"private static BufferedWriter createFileWriter(String filePath) {\n String[] pathComponents = filePath.split(\"/data/\");\n //to avoid heavy nesting in output, replace nested directory with filenames\n\n String output = pathComponents[0] + \"/out/rule_comparisons/\" + pathComponents[1].replace(\"/\",\"-\");\n\n File file = new File(output);\n try {\n //create file in this location if one does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n return new BufferedWriter(new FileWriter(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public TriGWriter getTriGWriter() {\n\t\tTriGWriter writer = new TriGWriter();\n\t\tMap map = this.getNsPrefixMap();\n\t\tfor (Object key : map.keySet()) {\n\t\t\twriter.addNamespace((String) key, (String) map.get(key));\n\t\t}\n\t\treturn writer;\n\t}",
"protected IndexWriter getWriter(boolean wipeIndex) throws IOException {\n Directory dir = FSDirectory.open(Paths.get(indexFolder));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n\n if (wipeIndex) {\n iwc.setOpenMode(OpenMode.CREATE);\n } else {\n iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);\n }\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n return writer;\n }",
"public abstract AbstractLineWriter newWriter(String filename)\r\n\t\t\tthrows FileNotFoundException, IOException;",
"private StringWriter createStringWriter(String str)\n\t{\n\t\treturn new StringWriter((int) (str.length() + (str.length() * 0.1)));\n\t}",
"public JSourceWriter(Writer out) {\n this(out, DEFAULT_SIZE, DEFAULT_CHAR, false);\n }",
"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 writeFile(String name, Trajectory t) {\n\t\ttry {\n\t\t\tFile directory = new File(cacheDirectory);\n\t\t\tif (!directory.exists()) {\n\t\t\t\tconsole.log(\"missing dir, making\");\n\t\t\t\tdirectory.mkdir();\n\t\t\t}\n\t\t\t\n\t\t\tFileOutputStream fos = new FileOutputStream(cacheDirectory + name);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t oos.writeObject(t);\n\t\t oos.close();\n\t\t fos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tconsole.error(e);\n\t\t}\n\t}",
"public XmlWriterImpl(String pathToDataFolder, TextAreaLoggerHandler textAreaHandler) throws ServiceFailureException {\r\n try { \r\n outputStream = new FileOutputStream(new File(pathToDataFolder\r\n + File.separator + \"xmlOutput.xml\"));\r\n \r\n writer = XMLOutputFactory.newInstance().createXMLStreamWriter(\r\n new OutputStreamWriter(outputStream, \"utf-8\"));\r\n \r\n if(LOGGER.getHandlers().length == 0) {\r\n LOGGER.addHandler(textAreaHandler);\r\n }\r\n } catch(FileNotFoundException | UnsupportedEncodingException | XMLStreamException ex) {\r\n LOGGER.log(Level.SEVERE, \"Error while creating XML writer!\", ex);\r\n throw new ServiceFailureException(\"Internal error: error while \"\r\n + \"creating XML writer!\", ex);\r\n }\r\n }",
"private PrintWriter createOutputFile(String outputFile) throws IOException {\n return new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));\n }",
"protected Writer makeWriter(OutputStream out, String enc)\r\n throws java.io.UnsupportedEncodingException {\r\n // \"UTF-8\" is not recognized before JDK 1.1.6, so we'll translate\r\n // into \"UTF8\" which works with all JDKs.\r\n if (\"UTF-8\".equals(enc)) {\r\n enc = \"UTF8\";\r\n }\r\n\r\n Writer writer = new BufferedWriter(\r\n (new OutputStreamWriter(\r\n new BufferedOutputStream(out), enc)\r\n ));\r\n return writer;\r\n }",
"@Override\n\t\tpublic RecordWriter<NullWritable, NullWritable> getRecordWriter(\n\t\t\t\tTaskAttemptContext context) throws IOException, InterruptedException {\n\t\t\treturn new RecordWriter<NullWritable, NullWritable>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void close(TaskAttemptContext context) {\n\t\t\t\t\t// Noop\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void write(NullWritable k, NullWritable v) {\n\t\t\t\t\t// Noop\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public MockJspWriter(Writer targetWriter) {\n\t\tthis(null, targetWriter);\n\t}",
"public TeeWriter() {\r\n ; // nothing to do\r\n }",
"public ImageWriter createWriterInstance(Object extension)\n throws IOException\n {\n return new DcmImageWriter(this);\n }",
"private static XMLWriters<Track>\n\twriters(final Function<? super Number, String> formatter) {\n\t\treturn new XMLWriters<Track>()\n\t\t\t.v00(XMLWriter.elem(\"name\").map(t -> t._name))\n\t\t\t.v00(XMLWriter.elem(\"cmt\").map(r -> r._comment))\n\t\t\t.v00(XMLWriter.elem(\"desc\").map(r -> r._description))\n\t\t\t.v00(XMLWriter.elem(\"src\").map(r -> r._source))\n\t\t\t.v11(XMLWriter.elems(Link.WRITER).map(r -> r._links))\n\t\t\t.v10(XMLWriter.elem(\"url\").map(Track::url))\n\t\t\t.v10(XMLWriter.elem(\"urlname\").map(Track::urlname))\n\t\t\t.v00(XMLWriter.elem(\"number\").map(r -> toIntString(r._number)))\n\t\t\t.v00(XMLWriter.elem(\"type\").map(r -> r._type))\n\t\t\t.v00(XMLWriter.doc(\"extensions\").map(gpx -> gpx._extensions))\n\t\t\t.v10(XMLWriter.elems(TrackSegment.xmlWriter(Version.V10, formatter)).map(r -> r._segments))\n\t\t\t.v11(XMLWriter.elems(TrackSegment.xmlWriter(Version.V11, formatter)).map(r -> r._segments));\n\t}",
"public static void createJsonFile(JsonObject json) throws IOException {\n\r\n FileWriter file = new FileWriter(\"outputfile\", false);\r\n try {\r\n file.write(Jsoner.prettyPrint(json.toJson(),2));\r\n file.flush();\r\n } catch (IOException e) {\r\n out.println(\"Error \" + e);\r\n }\r\n }",
"@Override\n public Writer getOutputStreamWriter() throws IOException {\n return new OutputStreamWriter(getOutputStream());\n }",
"public static FileWriter getWriter() {\n return new CsvFileWriter();\n }",
"private JsonWriter(JsonGenerator jgen, com.sample.masking.json.JsonView result, Match currentMatch, SerializerProvider serializerProvider) {\n this.jgen = jgen;\n this.result = result;\n this.currentMatch = currentMatch;\n this.serializerProvider = serializerProvider;\n }",
"public DBCacheWriter(String name)\n throws IOException \n {\n if (name == null)\n throw new IllegalArgumentException(\"Constructor argument must be non null\");\n\n filename = name; \n outstream = new ObjectOutputStream(new FileOutputStream(filename));\n }",
"private void initReportWriter() {\n\t\tfinal XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\r\n\r\n\t\t// Create an XML stream writer\r\n\t\tfinal File reportFile = new File(getOutputDirectory(), \"report.xml\");\r\n\t\ttry {\r\n\t\t\treportWriter = xmlof.createXMLStreamWriter(new FileWriter(reportFile));\r\n\r\n\t\t} catch (final XMLStreamException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (final IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public final void createReporter(){\n\n buildWriter();\n buildReporter();\n buildCloser();\n\n Validate.notNull(writer,\"Writer can not be null\");\n Validate.notNull(reporter,\"Reporter can not be null\");\n Validate.notNull(closer,\"Closer can not be null\");\n }",
"private PrintWriter getWriter(String signature) throws IOException {\n\n\tFile f = signature2file.get(signature);\n\n\tif (f == null) {\n\n\t throw new IllegalStateException(\"Supposed to have file name for \"\n\t\t + signature + \", but don't???\");\n\t}\n\n\t// Create a FileWriter with 'append'\n\treturn new PrintWriter(new FileWriter(f, true));\n }",
"public DOMWriter(boolean can, String dH, String dT)\n{\n canonical = can;\n docHeader = dH;\n docType = dT;\n}",
"void write(MarketOrder mo, String orderer, String comment);",
"private void createHTML(BufferedWriter writer) throws IOException {\r\n\t\tString startHead = \"<html><head>\" // I have used roberto font,Please\r\n\t\t\t\t\t\t\t\t\t\t\t// link the appropriate font\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>\"\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'>\"\r\n\t\t\t\t+ cssFileForHtml()\r\n\t\t\t\t+ \"</head><script src='https://d3js.org/d3.v4.min.js'></script><body style=' background-color: #F5F5F5'>\";\r\n\t\twriter.write(startHead);\r\n\t}",
"public interface ContentWriter {\n\t// *** Class Members ***\n\n\t// *** Public Methods ***\n\t\n\t// --- Writer State ---\n\tpublic Name getName();\n\tpublic List<Name> getElementNameStack();\n\t\n\t// --- Escaped Text Content ---\n\tpublic void text(Text text) throws IOException;\n\tpublic void text(String text) throws IOException;\n\tpublic Writer text() throws IOException;\n\tpublic Writer cdata() throws IOException;\n\t\n\t// --- Character Data Content---\n\tpublic void characters(CharData charData) throws IOException;\n\tpublic void cdata(CData cdata) throws IOException;\n\t\n\t// --- Reference Content ---\n\tpublic void reference(CharRef charRef) throws IOException;\n\tpublic void reference(Name entityName) throws IOException;\n\t\n\t// --- Namespaces ---\n\tpublic void defaultNamespace(NamespaceURI uri) throws IOException;\n\tpublic void namespace(NamespaceURI uri) throws IOException;\n\t\n\t// --- Element Content ---\n\tpublic ContentWriter element(Name elementName) throws IOException;\n\tpublic ContentWriter element(Name elementName, Attribute... attributes) throws IOException;\n\t\n\t// --- Misc Content ---\n\tpublic void comment(Comment c) throws IOException;\n\tpublic void pi(Target target, Instruction instruction) throws IOException;\n\tpublic void space(Whitespace space) throws IOException;\n\t\n\t// --- Custom Content ---\n\tpublic void content(Content c) throws IOException;\n}",
"private static void createLogger() {\n logger = myLogger.createHtmlLogger(\"JRECEIPTS\", Options.LOG_PATH + \"Receipts\", 262144, true, 1);\n// boolean append = true;\n// int limit = 1000000; // 1 Mb\n// int numLogFiles = 5;\n// FileHandler fh = new FileHandler(Options.LOG_PATH + \"Receipts_%g.html\", limit, numLogFiles, true);\n// fh.setFormatter(new SimpleFormatter());\n// // Add to the desired logger\n// logger = Logger.getLogger(\"Receipts\");\n// logger.addHandler(fh);\n }",
"public Writer openWriter() throws IOException {\n return new NoCloseWriter(response.getWriter());\n }",
"public void writeJasminToFile( String jasminFileName ) throws IOException {\n PrintWriter jasminOut = new PrintWriter(new FileWriter(jasminFileName));\n for( String line : jasminCode )\n jasminOut.println(line);\n jasminOut.close();\n }",
"public PropertiesWriter() {\r\n }",
"private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }",
"private void writefasttj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"tj\");\r\n\t\tedit.commit();\r\n\t}",
"@Override\n\tpublic ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) {\n\t\treturn new Html5ResponseWriter(super.createResponseWriter(writer, contentTypeList, characterEncoding));\n\t}",
"public void write(JsonWriter jsonWriter, C2462t tVar) throws IOException {\n Class<String> cls = String.class;\n if (tVar == null) {\n jsonWriter.nullValue();\n return;\n }\n jsonWriter.beginObject();\n jsonWriter.name(\"cpId\");\n if (tVar.mo10328b() == null) {\n jsonWriter.nullValue();\n } else {\n TypeAdapter<String> typeAdapter = this.f7883a;\n if (typeAdapter == null) {\n typeAdapter = this.f7885c.getAdapter(cls);\n this.f7883a = typeAdapter;\n }\n typeAdapter.write(jsonWriter, tVar.mo10328b());\n }\n jsonWriter.name(\"bundleId\");\n if (tVar.mo10327a() == null) {\n jsonWriter.nullValue();\n } else {\n TypeAdapter<String> typeAdapter2 = this.f7883a;\n if (typeAdapter2 == null) {\n typeAdapter2 = this.f7885c.getAdapter(cls);\n this.f7883a = typeAdapter2;\n }\n typeAdapter2.write(jsonWriter, tVar.mo10327a());\n }\n jsonWriter.name(\"sdkVersion\");\n if (tVar.mo10330d() == null) {\n jsonWriter.nullValue();\n } else {\n TypeAdapter<String> typeAdapter3 = this.f7883a;\n if (typeAdapter3 == null) {\n typeAdapter3 = this.f7885c.getAdapter(cls);\n this.f7883a = typeAdapter3;\n }\n typeAdapter3.write(jsonWriter, tVar.mo10330d());\n }\n jsonWriter.name(\"rtbProfileId\");\n TypeAdapter<Integer> typeAdapter4 = this.f7884b;\n if (typeAdapter4 == null) {\n typeAdapter4 = this.f7885c.getAdapter(Integer.class);\n this.f7884b = typeAdapter4;\n }\n typeAdapter4.write(jsonWriter, Integer.valueOf(tVar.mo10329c()));\n jsonWriter.endObject();\n }",
"public static BufferedWriter Writer(String path) throws IOException\n\t{\n\t\treturn new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),\"UTF-8\"));\n\t}",
"CompressingMessageWriter(MessageWriter wr) {\n this.writer = wr;\n }",
"public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private void writeFactory(GenModule module) throws Exception {\n\t\tMustacheFactory mf = new DefaultMustacheFactory();\n\t\tMustache template = mf.compile(\"factoryTemplate.hbs\"); \n\t\tElement[] sources = getSourcesOf(module);\n\t\tJavaFileObject fileObject = filer.createSourceFile(module\n\t\t\t\t.getPackageName() + \".\" + module.getClassName()); //we dont report the sources so that we keep the generated file on touching e.g. a @singleton component \n\t\tOutputStream outputStream = fileObject.openOutputStream();\n\t\ttry (Writer writer = new PrintWriter(outputStream)) {\n\t\t\t//template.apply(module, writer);\n\t\t\ttemplate.execute(writer, module);\n\t\t\twriter.flush();\n\t\t}\n\t\t;\n\t}",
"private BufferedWriter getWriter(int secretPos) throws IOException {\n\t\tFile file = new File(\"reportingTool_tmp\" + sep + this.uniqueName + \"-\" + \"histogram_\" + this.dataset.getSecrets().get(secretPos).getFileName() + \".txt\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\treturn bw;\n\t}",
"public void writeTo(IonWriter writer)\n throws IOException;",
"public final Writer wrapAsTextWriter()\n {\n return mWriter.wrapAsTextWriter();\n }",
"XMLWriter getStringWriter() {\n\t\tOutputFormat format = new OutputFormat(\" \", true);\n\t\tformat.setTrimText(true);\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\tstringWriter = new XMLWriter(sw, format);\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"getStringWriter(): \" + e);\n\t\t}\n\n\t\tprtln(\" ... format.encoding: \" + format.getEncoding());\n\t\tprtln(\" ... format.isNewLines: \" + format.isNewlines());\n\t\tprtln(\" ... format.isTrimText: \" + format.isTrimText());\n\t\tprtln(\" ... format.indent: \\'\" + format.getIndent() + \"\\'\");\n\n\t\tstringWriter.setEscapeText(false);\n\t\tif (stringWriter.isEscapeText()) {\n\t\t\tprtln(\" ... isEscapeText\");\n\t\t} else {\n\t\t\tprtln(\" ... is NOT escapeText\");\n\t\t}\n\t\treturn stringWriter;\n\t}",
"public static void write() throws IOException {\n VelocityContext context = new VelocityContext();\n\n //Put the data model in context object\n context.put(\"packageName\", packageName);\n context.put(\"className\", className);\n List<Attribute> attributes = new ArrayList<>();\n attributes.add(new Attribute(\"id\", \"int\"));\n attributes.add(new Attribute(\"firstName\", \"String\"));\n attributes.add(new Attribute(\"lastName\", \"String\"));\n attributes.add(new Attribute(\"dob\", \"LocalDate\"));\n context.put(\"attributes\", attributes);\n\n //Merge the template with context data\n StringWriter stringWriter = new StringWriter();\n Velocity.mergeTemplate(\"class.vm\", context, stringWriter);\n\n //Write to file\n FileWriter fw = null;\n try {\n fw = new FileWriter(\"output/User.java\");\n fw.write(stringWriter.toString());\n } finally {\n if (fw != null) {\n fw.close();\n }\n }\n }",
"@Nonnull\n public static UBL23WriterBuilder <TenderContractType> tenderContract ()\n {\n return UBL23WriterBuilder.create (TenderContractType.class);\n }",
"public void setWriter(Writer writer) {\n this.writer = writer;\n }",
"public WstxOutputFactory() {\n mConfig = WriterConfig.createFullDefaults();\n }",
"public Mol2Writer(Writer out) {\n \tlogger = new LoggingTool(this);\n \ttry {\n \t\tif (out instanceof BufferedWriter) {\n writer = (BufferedWriter)out;\n } else {\n writer = new BufferedWriter(out);\n }\n } catch (Exception exc) {\n }\n }",
"public PrintWriter createOutput(String name) {\n if (name == null) {\n throw new NullPointerException();\n }\n\n synchronized (TestResult.this) {\n synchronized (this) {\n checkMutable();\n\n OutputBuffer b = new WritableOutputBuffer(name);\n buffers = DynamicArray.append(buffers, b);\n\n notifyCreatedOutput(this, name);\n\n return b.getPrintWriter();\n }\n }\n }",
"public void write(JsonWriter out, Joke jk) throws IOException\n\t{\n\t\tout.beginObject();\n\t\tout.name(\"id\").value(jk.getNumber());\n\t\tout.name(\"title\").value(jk.getContent());\n\t\tout.name(\"authors\").value(StringUtils.join(jk.getRubrics(), \";\"));\n\t\tout.endObject();\n\t}",
"private void setDataWriterForFilename(String filename) throws KettleException {\n\t\t// First handle the writers themselves.\n\t\t// If we didn't have a writer yet, we create one.\n\t\t// Basically we open a new file\n\t\tdata.writer = data.fileWriterMap.get(filename);\n\t\tif (data.writer==null) {\n\t\t\topenNewFile(filename);\n\t\t\tdata.oneFileOpened = true;\n\n\t\t\tdata.fileWriterMap.put(filename, data.writer);\n\t\t\n\t\t\t// If it's the first time we open it and we have a header, we write a header...\n\t\t\t//\n\t\t\tif (!meta.isFileAppended() && meta.isHeaderEnabled()) {\n\t\t\t\tif (writeHeader()) {\n\t\t\t\t\tincrementLinesOutput();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void writeFile(String arg0, Map result) {\n\n // Initial variables\n ArrayList<HashMap> records;\n ArrayList<HashMap> recordT;\n ArrayList<HashMap> observeRecords; // Array of data holder for time series data\n BufferedWriter bwT; // output object\n StringBuilder sbData = new StringBuilder(); // construct the data info in the output\n HashMap<String, String> altTitleList = new HashMap(); // Define alternative fields for the necessary observation data fields; key is necessary field\n // P.S. Add alternative fields here\n HashMap titleOutput; // contain output data field id\n DssatObservedData obvDataList = DssatObservedData.INSTANCE; // Varibale list definition\n\n try {\n\n // Set default value for missing data\n setDefVal();\n\n // Get Data from input holder\n Object tmpData = getObjectOr(result, \"observed\", new Object());\n if (tmpData instanceof ArrayList) {\n records = (ArrayList) tmpData;\n } else if (tmpData instanceof HashMap) {\n records = new ArrayList();\n records.add((HashMap) tmpData);\n } else {\n return;\n }\n if (records.isEmpty()) {\n return;\n }\n\n observeRecords = new ArrayList();\n for (HashMap record : records) {\n recordT = getObjectOr(record, \"timeSeries\", new ArrayList());\n String trno = getValueOr(record, \"trno\", \"1\");\n if (!recordT.isEmpty()) {\n String[] sortIds = {\"date\"};\n Collections.sort(recordT, new DssatSortHelper(sortIds));\n for (HashMap recordT1 : recordT) {\n recordT1.put(\"trno\", trno);\n }\n observeRecords.addAll(recordT);\n }\n }\n\n // Initial BufferedWriter\n String fileName = getFileName(result, \"T\");\n if (fileName.endsWith(\".XXT\")) {\n String crid = DssatCRIDHelper.get2BitCrid(getValueOr(result, \"crid\", \"XX\"));\n fileName = fileName.replaceAll(\"XX\", crid);\n }\n arg0 = revisePath(arg0);\n outputFile = new File(arg0 + fileName);\n bwT = new BufferedWriter(new FileWriter(outputFile));\n\n // Output Observation File\n // Titel Section\n sbError.append(String.format(\"*EXP.DATA (T): %1$-10s %2$s\\r\\n\\r\\n\",\n fileName.replaceAll(\"\\\\.\", \"\").replaceAll(\"T$\", \"\"),\n getObjectOr(result, \"local_name\", defValBlank)));\n\n titleOutput = new HashMap();\n // TODO get title for output\n // Loop all records to find out all the titles\n for (HashMap record : observeRecords) {\n // Check if which field is available\n for (Object key : record.keySet()) {\n // check which optional data is exist, if not, remove from map\n if (obvDataList.isTimeSeriesData(key)) {\n titleOutput.put(key, key);\n\n } // check if the additional data is too long to output\n else if (key.toString().length() <= 5) {\n if (!key.equals(\"date\") && !key.equals(\"trno\")) {\n titleOutput.put(key, key);\n }\n\n } // If it is too long for DSSAT, give a warning message\n else {\n sbError.append(\"! Waring: Unsuitable data for DSSAT observed data (too long): [\").append(key).append(\"]\\r\\n\");\n }\n }\n // Check if all necessary field is available // P.S. conrently unuseful\n for (String title : altTitleList.keySet()) {\n\n // check which optional data is exist, if not, remove from map\n if (getValueOr(record, title, \"\").equals(\"\")) {\n\n if (!getValueOr(record, altTitleList.get(title), \"\").equals(\"\")) {\n titleOutput.put(title, altTitleList.get(title));\n } else {\n sbError.append(\"! Waring: Incompleted record because missing data : [\").append(title).append(\"]\\r\\n\");\n }\n\n } else {\n }\n }\n }\n\n // decompress observed data\n// decompressData(observeRecords);\n // Observation Data Section\n Object[] titleOutputId = titleOutput.keySet().toArray();\n Arrays.sort(titleOutputId);\n String pdate = getPdate(result);\n for (int i = 0; i < (titleOutputId.length / 39 + titleOutputId.length % 39 == 0 ? 0 : 1); i++) {\n\n sbData.append(\"@TRNO DATE\");\n int limit = Math.min(titleOutputId.length, (i + 1) * 39);\n for (int j = i * 39; j < limit; j++) {\n sbData.append(String.format(\"%1$6s\", titleOutput.get(titleOutputId[j]).toString().toUpperCase()));\n }\n sbData.append(\"\\r\\n\");\n\n for (HashMap record : observeRecords) {\n \n if (record.keySet().size() <= 2 && record.containsKey(\"trno\") && record.containsKey(\"date\")) {\n continue;\n }\n sbData.append(String.format(\" %1$5s\", getValueOr(record, \"trno\", \"1\")));\n sbData.append(String.format(\" %1$5s\", formatDateStr(getObjectOr(record, \"date\", defValI))));\n for (int k = i * 39; k < limit; k++) {\n\n if (obvDataList.isDapDateType(titleOutputId[k], titleOutput.get(titleOutputId[k]))) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(pdate, getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else if (obvDataList.isDateType(titleOutputId[k])) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else {\n sbData.append(\" \").append(formatNumStr(5, record, titleOutput.get(titleOutputId[k]), defValI));\n }\n\n }\n sbData.append(\"\\r\\n\");\n }\n }\n // Add section deviding line\n sbData.append(\"\\r\\n\");\n\n // Output finish\n bwT.write(sbError.toString());\n bwT.write(sbData.toString());\n bwT.close();\n } catch (IOException e) {\n LOG.error(DssatCommonOutput.getStackTrace(e));\n }\n }",
"public Writer getWritier(String writerType) {\n if (writerType == null) {\n return null;\n }\n if (writerType.equalsIgnoreCase(CSV)) {\n return new CSVWriter();\n }\n return null;\n }",
"@Nonnull\n public static UBL23WriterBuilder <TendererQualificationType> tendererQualification ()\n {\n return UBL23WriterBuilder.create (TendererQualificationType.class);\n }",
"private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}",
"@Override\n public XMLEventWriter createXMLEventWriter(Writer w, String enc)\n throws XMLStreamException\n {\n return new Stax2EventWriterImpl(createSW(null, w, enc, false));\n }",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public abstract AbstractLineWriter newWriter(OutputStream datastream)\r\n\t\t\tthrows IOException;",
"private void writefastxj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"xj\");\r\n\t\tedit.commit();\r\n\t}",
"public SDefOntologyWriter(String templateURI) throws OntologyLoadException {\r\n\t\towlModel = ProtegeOWL.createJenaOWLModelFromURI(templateURI);\r\n\t\tinstanceCounter = 0;\r\n\t\texistingKeywords = new Hashtable<String,String>();\r\n\t\texistingRegex = new Hashtable<String,String>();\r\n\t}",
"public interface SiteWriterTemplate {\n\n\t/** Starts writing data \n\t * \n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate start() throws Exception;\n\n\t/** Starts writing the new sites bunch \n\t * \n\t * @return this \n\t * @throws Exception\n\t */\n\tSiteWriterTemplate startBunch() throws Exception;\n\n\t/** Writes the collection id \n\t * \n\t * @param collectionId The id of the collection\n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate writeCollectionId(String collectionId) throws Exception;\n\n\t/** Starts writing the sites part \n\t * \n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate startSites() throws Exception;\n\n\t/** Writes the site \n\t * \n\t * @param site The site instance\n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate writeSite(Site site) throws Exception;\n\n\t/** Finishes writing the sites part \n\t * \n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate finishSites() throws Exception;\n\n\t/** Finishes writing the bunch \n\t * \n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate finishBunch() throws Exception;\n\n\t/** Finishes writing \n\t * \n\t * @return this\n\t * @throws Exception\n\t */\n\tSiteWriterTemplate finish() throws Exception;\n\t\n\t/** Stops available to write data\n\t * \n\t * @throws Exception\n\t */\n\tvoid close() throws Exception;\n}",
"protected JSONWriter(JSONWriter base, int features,\n ValueWriterLocator loc, TreeCodec tc,\n JsonGenerator g)\n {\n _features = features;\n _writeNullValues = JSON.Feature.WRITE_NULL_PROPERTIES.isEnabled(features);\n _treeCodec = tc;\n _writerLocator = loc.perOperationInstance(this, features);\n _generator = g;\n _timezone = DEFAULT_TIMEZONE;\n }",
"@SuppressWarnings(\"resource\")\n private XMLStreamWriter2 createSW(OutputStream out, Writer w, String enc,\n boolean requireAutoClose)\n throws XMLStreamException\n {\n /* Need to ensure that the configuration object is not shared\n * any more; otherwise later changes via factory could be\n * visible half-way through output...\n */\n WriterConfig cfg = mConfig.createNonShared();\n XmlWriter xw;\n\n boolean autoCloseOutput = requireAutoClose || mConfig.willAutoCloseOutput();\n\n if (w == null) {\n if (enc == null) {\n enc = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n } else {\n /* Canonical ones are interned, so we may have\n * normalized encoding already...\n */\n if (enc != CharsetNames.CS_UTF8\n && enc != CharsetNames.CS_ISO_LATIN1\n && enc != CharsetNames.CS_US_ASCII) {\n enc = CharsetNames.normalize(enc);\n }\n }\n\n try {\n if (enc == CharsetNames.CS_UTF8) {\n w = new UTF8Writer(cfg, out, autoCloseOutput);\n xw = new BufferingXmlWriter(w, cfg, enc, autoCloseOutput, out, 16);\n } else if (enc == CharsetNames.CS_ISO_LATIN1) {\n xw = new ISOLatin1XmlWriter(out, cfg, autoCloseOutput);\n } else if (enc == CharsetNames.CS_US_ASCII) {\n xw = new AsciiXmlWriter(out, cfg, autoCloseOutput);\n } else {\n w = new OutputStreamWriter(out, enc);\n xw = new BufferingXmlWriter(w, cfg, enc, autoCloseOutput, out, -1);\n }\n } catch (IOException ex) {\n throw new XMLStreamException(ex);\n }\n } else {\n // we may still be able to figure out the encoding:\n if (enc == null) {\n enc = CharsetNames.findEncodingFor(w);\n }\n try {\n xw = new BufferingXmlWriter(w, cfg, enc, autoCloseOutput, null, -1);\n } catch (IOException ex) {\n throw new XMLStreamException(ex);\n }\n }\n\n return createSW(enc, cfg, xw);\n }",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}"
] |
[
"0.6231714",
"0.55262786",
"0.5460667",
"0.54029995",
"0.5395341",
"0.53442365",
"0.5266567",
"0.5263832",
"0.5203015",
"0.519725",
"0.51832277",
"0.515254",
"0.5142981",
"0.50129837",
"0.5004556",
"0.4991817",
"0.49676776",
"0.49345845",
"0.49217448",
"0.49074262",
"0.489569",
"0.4880664",
"0.48717672",
"0.48661727",
"0.48593542",
"0.48507667",
"0.48268646",
"0.48061448",
"0.47980252",
"0.47888532",
"0.4779203",
"0.4778033",
"0.4762914",
"0.47621375",
"0.47493404",
"0.47466466",
"0.47286686",
"0.47217453",
"0.4712137",
"0.4711699",
"0.4695267",
"0.46844247",
"0.46654788",
"0.46605748",
"0.46563438",
"0.46547294",
"0.46451348",
"0.46451",
"0.46423134",
"0.46303037",
"0.46295094",
"0.46181005",
"0.46135917",
"0.46097755",
"0.46056527",
"0.45829242",
"0.45431766",
"0.45374376",
"0.4527542",
"0.4516474",
"0.45142072",
"0.45002574",
"0.44988972",
"0.44822323",
"0.44748828",
"0.4465672",
"0.4464206",
"0.44570032",
"0.4454336",
"0.4451542",
"0.4450316",
"0.44463414",
"0.44449037",
"0.44439408",
"0.44433972",
"0.44391412",
"0.4433953",
"0.43978372",
"0.4397351",
"0.439087",
"0.43853992",
"0.43789244",
"0.43764457",
"0.43755266",
"0.43710265",
"0.43617058",
"0.43570969",
"0.43540034",
"0.43538538",
"0.4339128",
"0.43350136",
"0.43325183",
"0.43281135",
"0.43252102",
"0.43112",
"0.43068328",
"0.43009844",
"0.4276861",
"0.42703125",
"0.42646047"
] |
0.48522305
|
25
|
Enables / disables newlines and indentation of the JSON output. (disabled by default)
|
public void setPrettify(boolean prettify) {
_out.setPrettify(prettify);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic String toJSONString(int indentFactor) throws JSONException {\n\t\tStringWriter sw = new StringWriter();\n\t\tsynchronized (sw.getBuffer()) {\n\t\t\treturn this.write(sw, indentFactor, 0).toString();\n\t\t}\n\t}",
"IParser setPrettyPrint(boolean thePrettyPrint);",
"public void setPrettyPrint(boolean prettyPrint)\n/* */ {\n/* 136 */ this.prettyPrint = Boolean.valueOf(prettyPrint);\n/* 137 */ configurePrettyPrint();\n/* */ }",
"public void outputActualIndentation() {\n\t\tfor (int steps = 1; steps <= indentLevel; steps++) {\n\t\t\toutputJALPrintStream.print(\" \");\n\t\t}\n\t\tif (showMarkerFlag) {\n\t\t\toutputJALPrintStream.print(\"|\");\n\t\t}\n\t}",
"@Override\n protected void setMultiline(boolean multiline) {\n }",
"public DefaultPrettyPrinter _withSpaces(boolean z) {\n if (this._spacesInObjectEntries == z) {\n return this;\n }\n DefaultPrettyPrinter defaultPrettyPrinter = new DefaultPrettyPrinter(this);\n defaultPrettyPrinter._spacesInObjectEntries = z;\n return defaultPrettyPrinter;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set output format to JSON\")\n\n public Boolean getJson() {\n return json;\n }",
"public JsonOutput(Writer writer, boolean beautify)\n\t{\n\t\tthis.writer = writer;\n\t\tthis.beautify = beautify;\n\n\t\tlists = new boolean[LEVELS];\n\t\thasData = new boolean[LEVELS];\n\n\t\tencoded = new char[4];\n\t}",
"private JSON() {\n\t}",
"public void lite() {\n\t\t\r\n\t\tthis.setJson(\"[]\");\r\n\t\t\r\n\t\t\r\n\t}",
"public String prettyPrint()\n {\n return prettyPrint(\"\");\n }",
"public TypescriptStringBuilder indent() {\n indent(1);\n return this;\n }",
"private void outputIndentation() {\n\t for (int i = 0; i < indent; i++) {\n\t out.print(basicIndent);\n\t }\n\t}",
"private void newline() {\n if (enableSplitting) {\n if (out.length() != 0) {\n out.append(System.lineSeparator());\n }\n out.append(\" \".repeat(depth)); // two spaces indent is sufficient\n } else {\n out.append(\" \"); // just a separator between two tokens\n }\n }",
"public void setPretty(boolean pretty) {\n this.pretty = pretty;\n }",
"public SourceGenerator writeNewline(){\r\n\t\tif (m_style == CodeStyle.PRETTY){\r\n\t\t\tm_writer.append(m_newline);\r\n\t\t}\r\n\t\treturn this;\r\n\t}",
"public void indentNone() {\n\t\tindentLevel = 0;\n\t}",
"public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}",
"public static boolean getDefaultPrettyPrint()\n {\n return defaults.pretty_print;\n }",
"private ConfigurationHTMLPrinter printIndent() {\n for (int i=0; i<indent; i++) sb.append(\" \");\n return this;\n }",
"public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }",
"public String toJson(SerializationFormattingPolicy formattingPolicy) {\n this.populatePropertyBag();\n if (SerializationFormattingPolicy.Indented.equals(formattingPolicy) ) {\n return this.propertyBag.toString(INDENT_FACTOR);\n } else {\n return this.propertyBag.toString();\n }\n }",
"public boolean getPrettyPrint() {\n\t\treturn (pretty_print);\n\t}",
"public String toStringMultiline() {\n return serialize(true);\n }",
"public boolean getPrettify() {\n return _out.getPrettify();\n }",
"public XMLBuilder setIndent(boolean flag) {\n indentOutput = flag;\n return this;\n }",
"private void startIndentedLine() {\n startLine();\n for (int i = 0; i < indentLevel; i++) {\n out.print(INDENTATION_STRING);\n }\n }",
"public void setAutoIndent(boolean enabled) {\n mAutoIndent = enabled;\n mCursor.setAutoIndent(enabled);\n }",
"protected final boolean isPretty() {\n return pretty;\n }",
"private void ensureIndent() {\n if (addIndentation) {\n writeIndent();\n addIndentation = false;\n }\n }",
"public boolean getNeedLineBreak() {\n\t\treturn true;\n\t}",
"public void setIndent(boolean doIndent) {\r\n if (doIndent) {\r\n defaultFormat.indent = STANDARD_INDENT;\r\n }\r\n else {\r\n defaultFormat.indent = null;\r\n }\r\n }",
"@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}",
"public SourceGenerator writeIndent(){\r\n\t\tm_indenter.writeIndent();\r\n\t\treturn this;\r\n\t}",
"private static void renderJSONExclusion(Object o) {\n\t\tthrow new RenderJsonExclusion(o);\n\t}",
"public void setIndentation(int indentation)\n {\n this.indentation = indentation;\n }",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n try {\n jsonData = mapper.writeValueAsString(bookArrayList);\n } catch (JsonProcessingException e) {\n System.out.println(\"Error: \"+ e);\n }\n System.out.println(jsonData);\n ClientEntry.showMenu ( );\n }",
"@SneakyThrows\n @Test public void testDumpOnlyOptions() {\n JSONCoderOption codeOption = of()\n .setShowEnumName(true);\n codeOption.getJsonOption().setIndentFactor(4);\n\n TestBean tb = buildTestBean();\n tb.getBean2().setObjs(new Object[]{\"objstr1\", new Date() });\n tb.setSomeMethod(Date.class.getMethod(\"getTime\"));\n\n String str = toJSONString(tb, codeOption);\n\n log(\"JSONStr=\" + str);\n assertTrue(str.indexOf(\"readonly\") > 0);\n assertTrue(str.indexOf(\"objstr1\")>0);\n\n codeOption.showType = true;\n codeOption.setIgnoreSubClassFields(true);\n str = toJSONString(tb, codeOption);\n log(\"With showType and ignoreSubClass=\" + str);\n assertTrue(\"jsonStr should contain $type if showType flag is set\", str.contains(\"$type\"));\n\n try {\n JSONCoder.global.decode(str, TestBean.class, of().setAllowPolymorphicClasses(true));\n } catch(Exception e) {\n log.error(\"\", e);\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"public JsonOutput(OutputStream out, boolean beautify)\n\t{\n\t\tthis(new OutputStreamWriter(out, StandardCharsets.UTF_8), beautify);\n\t}",
"public JSONObject toJSON() {\n return toJSON(true);\n }",
"public void output(IndentedWriter out) \n {\n }",
"public TypescriptStringBuilder unindent() {\n indent(-1);\n return this;\n }",
"protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetStepConfig()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"StepConfig\\\" : {\");\n StepConfig stepConfig = getStepConfig();\n\n\n json.append(stepConfig.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetExecutionStatusDetail()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ExecutionStatusDetail\\\" : {\");\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n\n\n json.append(executionStatusDetail.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }",
"@Test\n\tpublic void testOutputJsonSimpleRuleTest() {\n\t\tSkRuleBase rule = buildThings(ONE_RULE_FILE_NAME, SkRuleBase.class, \"rule\");\n\t\tString json = JsonMapperHelper.beanToJsonPretty(rule);\n\n\t\tSystem.out.println(\"-------------------- JSON ---------------------\");\n\t\tSystem.out.println(json);\n\t\tSystem.out.println(\"-------------------- JSON ---------------------\");\n\t\tSkRuleRunner runner = new SkRuleRunner();\n\t\trule.run(runner);\n\t}",
"private JSONHelper() {\r\n\t\tsuper();\r\n\t}",
"@Override\n\tpublic void print(int indent) {\n\t}",
"public ResponseOptions setForceJson(boolean forceJson) {\n this.forceJson = forceJson;\n return this;\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n public String toJSONString() {\n JSONObject entry = new JSONObject();\n\n Map<String, Object> configuration = new LinkedHashMap<String, Object>();\n configuration.put(\"smtpHostname\", smtpHostname);\n configuration.put(\"smtpPort\", new Integer(smtpPort));\n configuration.put(\"tls\", tls);\n configuration.put(\"ssl\", ssl);\n configuration.put(\"username\", username);\n configuration.put(\"password\", password);\n configuration.put(\"fromEMail\", fromEMail);\n configuration.put(\"fromSenderName\", fromSenderName);\n\n entry.put(configurationName, configuration);\n\n /*\n * The JSONWriter will pretty-print the output\n */\n Writer jsonWriter = new JSONWriter();\n try {\n entry.writeJSONString(jsonWriter);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n\n return jsonWriter.toString();\n }",
"void setIndentLevel(int level);",
"private void cmdMultiLine() {\n fMultiLineMode = true;\n }",
"public void setIsPrettyPrinted(boolean isPrettyPrinted) {\r\n this.isPrettyPrinted = isPrettyPrinted;\r\n }",
"void toJson(JsonStaxPrinter printer) throws PrintingException, IOException;",
"@JsonProperty(\"stripTokens\")\n public Boolean getStripTokens() {\n return stripTokens;\n }",
"public static Formatter getFormatter() {\n return new JsonFormatter();\n }",
"private String createOutputJson(List<AccountPortfolio> nonSecured) {\n return gson.toJson(nonSecured);\n }",
"public void indent()\n {\n indent += 1;\n }",
"private static void indent()\r\n {\r\n for (int i = 0; i < indentLevel * 2; i++) {\r\n System.out.print(' ');\r\n }\r\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public JSONObject toJSON() {\n JSONObject main = new JSONObject();\n JSONObject pocJSON = new JSONObject();\n pocJSON.put(JSON_NAME, this.getName());\n pocJSON.put(JSON_DESCRIPTION, this.getDescription());\n pocJSON.put(JSON_COLOR,this.colorConstraint.getColor().name());\n main.put(SharedConstants.TYPE, SharedConstants.PRIVATE_OBJECTIVE_CARD);\n main.put(SharedConstants.BODY,pocJSON);\n return main;\n }",
"@JsonGetter(\"silent\")\n public boolean isSilent() {\n return silent != null && silent;\n }",
"public boolean isNewline() {\n // -- if we need to add indentation, we are on a new line\n return addIndentation;\n }",
"@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}",
"protected boolean isShowFormatterSetting() {\n \t\treturn true;\n \t}",
"private void indent(StringBuffer output, Node node) {\n\t\toutput.append(\"\\n\");\n\t\tString lineNumber = (node == null) ? \"\" : \"[\" + node.getLine() + \"]\";\n\t\toutput.append(String.format(\"%5s \", lineNumber));\n\t\tfor (int i = 0; i < depth; ++i)\n\t\t\toutput.append(\" \");\n\t\toutput.append(\"+-- \");\n\t}",
"public JsonOutput(Writer writer)\n\t{\n\t\tthis(writer, false);\n\t}",
"public String getIndentation()\n {\n return _indentation;\n }",
"@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}",
"public PatchConsole pretty(String pretty) {\n put(\"pretty\", pretty);\n return this;\n }",
"@Override\n public boolean isTerminal() {\n return false;\n }",
"public Boolean allowMultipleLines() {\n return this.allowMultipleLines;\n }",
"@Override\n\tpublic String Pretty_Prints() {\n\t\treturn \"!=\";\n\t}",
"public String toString()\n {\n return getIndentation();\n }",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}",
"public boolean isWrapStatements()\n {\n return _isWrapStatements;\n }",
"public java.lang.Boolean getStrictLineBreaking() {\r\n return strictLineBreaking;\r\n }",
"public boolean isShowLineNumbers() { return _showLineNumbers; }",
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }",
"public String getSnippetsAsJson() throws NotesException, IOException {\n\t\tRootNode root = readSnippetsNodes();\n\t\tJsonTreeRenderer r = new JsonTreeRenderer();\n\t\treturn r.generateAsStringHier(root,true);\n\t}",
"public int getIndentation()\n {\n return indentation;\n }",
"public static void setSingleLineLoggingFormat() {\n Logger rootLogger = Logger.getLogger(\"\");\n for (Handler handler : rootLogger.getHandlers()) {\n handler.setFormatter(new SingleLineFormater());\n }\n }",
"@NonNull\n public static String indent(@Nullable JSONObject jsonObject) {\n if (jsonObject != null) {\n try {\n return jsonObject.toString(INDENTATION_SPACES);\n } catch (JSONException e) {\n return PARSING_ERROR;\n }\n } else {\n return NULL_OBJECT;\n }\n }",
"public void setWrapStatements(boolean isWrap)\n {\n _isWrapStatements = isWrap;\n }",
"private void skipConsoleLine(){\n\t\tSystem.out.println();\n\t}",
"public void prettyPrintTree() {\r\n\t\tSystem.out.print(\"prettyPrintTree starting\");\r\n\t\tfor (int i = 0; i <= this.getTreeDepth(); i++) {\r\n\t\t\tprettyPrintTree(root, 0, i);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public static ToStringBuilder toStringJsonBuilder() {\n return toStringBuilder(\"\", \"{\", \"}\", \":\", \",\", true);\n }",
"public void outdent()\n {\n if ( indent > 0 )\n {\n indent -= 1;\n }\n }",
"protected void indent(Writer out, int level) throws IOException {\r\n if (currentFormat.newlines) {\r\n if (currentFormat.indent == null ||\r\n currentFormat.indent.equals(\"\")) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < level; i++) {\r\n out.write(currentFormat.indent);\r\n }\r\n }\r\n }",
"@Override\n\tpublic boolean isFormatted() {\n\t\treturn false;\n\t}",
"private void _writeStringCustom(int len)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 1261 */ int end = this._outputTail + len;\n/* 1262 */ int[] escCodes = this._outputEscapes;\n/* 1263 */ int maxNonEscaped = this._maximumNonEscapedChar < 1 ? 65535 : this._maximumNonEscapedChar;\n/* 1264 */ int escLimit = Math.min(escCodes.length, maxNonEscaped + 1);\n/* 1265 */ int escCode = 0;\n/* 1266 */ CharacterEscapes customEscapes = this._characterEscapes;\n/* */ \n/* */ \n/* 1269 */ while (this._outputTail < end)\n/* */ {\n/* */ char c;\n/* */ do\n/* */ {\n/* 1274 */ c = this._outputBuffer[this._outputTail];\n/* 1275 */ if (c < escLimit) {\n/* 1276 */ escCode = escCodes[c];\n/* 1277 */ if (escCode != 0)\n/* */ break;\n/* */ } else {\n/* 1280 */ if (c > maxNonEscaped) {\n/* 1281 */ escCode = -1;\n/* 1282 */ break;\n/* */ }\n/* 1284 */ if ((this._currentEscape = customEscapes.getEscapeSequence(c)) != null) {\n/* 1285 */ escCode = -2;\n/* 1286 */ break;\n/* */ }\n/* */ }\n/* 1289 */ } while (++this._outputTail < end);\n/* 1290 */ break;\n/* */ \n/* */ \n/* 1293 */ int flushLen = this._outputTail - this._outputHead;\n/* 1294 */ if (flushLen > 0) {\n/* 1295 */ this._writer.write(this._outputBuffer, this._outputHead, flushLen);\n/* */ }\n/* 1297 */ this._outputTail += 1;\n/* 1298 */ _prependOrWriteCharacterEscape(c, escCode);\n/* */ }\n/* */ }",
"public SourceGenerator forceNewline(){\r\n\t\tm_writer.append(m_newline);\r\n\t\treturn this;\r\n\t}",
"public static String writePretty(JsonObject jsonObject) {\n\t\tJsonWriterFactory factory = createPrettyWriterFactory();\n\t\tStringWriter sw = new StringWriter();\n\t\tJsonWriter writer = factory.createWriter(sw);\n\t\twriter.writeObject(jsonObject);\n\t\tString ret = sw.toString();\n\t\twriter.close();\n\t\treturn ret;\n\t}",
"@Override\n public String toString() {\n return jsonString;\n }",
"public String toJson() throws JsonProcessingException{\r\n\t\tObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();\r\n\t\treturn ow.writeValueAsString(this.loginStatus); \r\n\t}",
"public boolean useOnFullReformat() {\n return true;\n }",
"public ReplaceConsole pretty(String pretty) {\n put(\"pretty\", pretty);\n return this;\n }",
"private void newline() {}",
"private JsonNode toJson() {\n ObjectMapper mapper = new ObjectMapper();\n ObjectNode root = mapper.createObjectNode();\n root.put(\"packages\", jsonPackages(mapper));\n root.put(\"cycleSegments\", jsonCycleSegments(mapper, catalog.getCycleSegments()));\n root.put(\"summary\", jsonSummary(mapper));\n return root;\n }",
"public String toStringMultiline() {\n return Serializer.INSTANCE.serialize(this, true);\n }"
] |
[
"0.5947198",
"0.59070677",
"0.5893147",
"0.58783185",
"0.5677007",
"0.55406654",
"0.5531158",
"0.5494215",
"0.5452736",
"0.5439961",
"0.54191446",
"0.541905",
"0.5404565",
"0.532959",
"0.52604675",
"0.5230731",
"0.52105093",
"0.517834",
"0.5175414",
"0.5106346",
"0.5086423",
"0.50826496",
"0.5073234",
"0.5068021",
"0.5039865",
"0.50352144",
"0.50303924",
"0.50103205",
"0.5001854",
"0.49982402",
"0.49806967",
"0.49800152",
"0.4970688",
"0.49667284",
"0.49600923",
"0.49577317",
"0.4951882",
"0.4931843",
"0.49253672",
"0.49235433",
"0.49111027",
"0.4900565",
"0.4899634",
"0.48886243",
"0.48872566",
"0.48765728",
"0.48616436",
"0.48495495",
"0.48469034",
"0.48443496",
"0.48366037",
"0.4834624",
"0.48294935",
"0.48242804",
"0.48168597",
"0.48152682",
"0.48118308",
"0.47965315",
"0.4793072",
"0.47828022",
"0.47675845",
"0.47649124",
"0.47616953",
"0.47600645",
"0.4758969",
"0.47471178",
"0.4739824",
"0.4731375",
"0.471838",
"0.47099328",
"0.47089854",
"0.4708503",
"0.47030708",
"0.46960118",
"0.4694353",
"0.46926892",
"0.4686115",
"0.46835062",
"0.468161",
"0.46815425",
"0.46772912",
"0.46734148",
"0.4672479",
"0.46596816",
"0.46591562",
"0.46562746",
"0.4651603",
"0.46479455",
"0.46420634",
"0.46341336",
"0.46308115",
"0.462389",
"0.46112722",
"0.4602205",
"0.4600748",
"0.45975524",
"0.45961776",
"0.45857242",
"0.45803857",
"0.45790535"
] |
0.4888037
|
44
|
Returns if newlines and indentation are enabled.
|
public boolean getPrettify() {
return _out.getPrettify();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isNewline() {\n // -- if we need to add indentation, we are on a new line\n return addIndentation;\n }",
"public boolean isMultiline() {\n return multiline;\n }",
"protected abstract boolean isMultiLine();",
"public boolean isWrapStatements()\n {\n return _isWrapStatements;\n }",
"public boolean getNeedLineBreak() {\n\t\treturn true;\n\t}",
"public java.lang.Boolean getStrictLineBreaking() {\r\n return strictLineBreaking;\r\n }",
"public int getIndentation()\n {\n return indentation;\n }",
"public boolean isLineNumbering() {\r\n return lineNumbering != null && lineNumbering.booleanValue();\r\n }",
"public boolean isEscapedJavaDocCode_LineGroup() {\r\n CDef.EscapedJavaDocCls cdef = getEscapedJavaDocCodeAsEscapedJavaDocCls();\r\n return cdef != null && cdef.isLineGroup();\r\n }",
"boolean separatorLine(String mode);",
"public String getIndentation()\n {\n return _indentation;\n }",
"public static boolean isNewLineParameters() {\n return newLineParameters;\n }",
"int getIndentLevel();",
"int getIndentation() {\n return this.indentation;\n }",
"private boolean getReplaceNonBreakingSpace() {\n return false;\n }",
"public boolean getPrettyPrint() {\n\t\treturn (pretty_print);\n\t}",
"boolean hasIndispensableYn();",
"boolean hasIndispensableYn();",
"public String getIndentationString() {\n String result = (String) getTextBuffer().getProperty(PTextBuffer.INDENTATION_PROPERTY);\n if (result == null) {\n result = \"\\t\";\n }\n return result;\n }",
"private boolean skipNewline() {\n\t\tif (nextChar == '\\n') {\n\n\t\t\tnextChar = getChar();\n\t\t\treturn true;\n\t\t}\n\t\tif (nextChar == '\\r') {\n\t\t\tlineNumber++;\n\t\t\tcolumnNumber = 1;\n\t\t\tnextChar = getChar();\n\n\t\t\t// skip over next char if '\\n'\n\t\t\tif (nextChar == '\\n')\n\t\t\t\tnextChar = getChar();\n\t\t\treturn true;\n\t\t}\n\t\t// newline char not found\n\t\treturn false;\n\t}",
"boolean hasBreakLevel();",
"public boolean isLineMode ()\r\n\t{\r\n\t\treturn m_lineMode;\r\n\t}",
"protected final boolean isPretty() {\n return pretty;\n }",
"public boolean isShowLineNumbers() { return _showLineNumbers; }",
"public synchronized boolean skipLineBreak() throws IOException {\n\t\tchar current = current();\n\t\tif ('\\r' == current && '\\n' == peek(1)) {\n\t\t\tskip(2);\n\t\t\treturn true;\n\t\t} else if (isNewLine(current)) {\n\t\t\tskip(1);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAfterNL()\n \t{\n \t\tif (getContext() == null)\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\tMatcherContext ctx = (MatcherContext) getContext();\n \t\tInputLocation loc = ctx.getCurrentLocation();\n \t\tInputBuffer buf = ctx.getInputBuffer();\n \t\tint delta = -1;\n \t\tchar c;\n \t\t // MultiLine comment might have \\n to be ignored\n \t\tboolean inMlComment = false;\n \t\t// Lok back into the buffer for a '\\n'\n \t\twhile ((c = loc.lookAhead(buf, delta)) != Chars.EOI)\n \t\t{\n \t\t\tif (c == '\\n')\n \t\t\t{\n \t\t\t\tif (!inMlComment)\n \t\t\t\t{\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (c == '/')\n \t\t\t\t{\n \t\t\t\t\tif (loc.lookAhead(buf, delta - 1) == '*')\n \t\t\t\t\t{\n \t\t\t\t\t\t// in ML comment\n \t\t\t\t\t\tinMlComment = true;\n \t\t\t\t\t\tdelta--;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (c == '*')\n \t\t\t\t{\n \t\t\t\t\tif (loc.lookAhead(buf, delta - 1) == '/')\n \t\t\t\t\t{\n \t\t\t\t\t\t// out of ML comment\n \t\t\t\t\t\tinMlComment = false;\n \t\t\t\t\t\tdelta--;\n \t\t\t\t\t}\n \t\t\t\t} else\n \t\t\t\t{\n \t\t\t\t\tif (! (inMlComment || c==' ' || c=='\\t' ||\n \t\t\t\t\t\tc=='\\r' || c=='\\u000c'))\n \t\t\t\t\t{\n \t\t\t\t\t\t// if not in a multiLineComment\n \t\t\t\t\t\t// or not a whitespace charcater, then we failed finding \\n\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// keep going\n \t\t\tdelta--;\n \t\t}\n \t\treturn false;\n \t}",
"private boolean isNewLine(int nextVal) {\n\t\treturn nextVal == CR || nextVal == LF || nextVal == EOF;\n\t}",
"public Boolean allowMultipleLines() {\n return this.allowMultipleLines;\n }",
"@Test\n\tpublic void smart_whitespace() throws Exception\n\t{\n\t\tcheckOutput(\"\\tTrue\", T(\"<?if True?>\\tTrue<?end if?>\", Template.Whitespace.smart));\n\n\t\t// Line feeds will be removed from lines containing only a \"control flow\" tag.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Indentation will also be removed from those lines.\n\t\tcheckOutput(\"True\\n\", T(\" <?if True?>\\nTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional text (before and after tag) will leave the line feeds intact.\n\t\tcheckOutput(\"x\\nTrue\\n\", T(\"x<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" \\nTrue\\n\", T(\"<?if True?> \\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Multiple tags will also leave the line feeds intact.\n\t\tcheckOutput(\"\\nTrue\\n\\n\", T(\"<?if True?><?if True?>\\nTrue\\n<?end if?><?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?print?> and <?printx?> tags the indentation and line feed will not be stripped\n\t\tcheckOutput(\" 42\\n\", T(\" <?print 42?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" 42\\n\", T(\" <?printx 42?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?render?> tags the line feed will be stripped, but the indentation will be reused for each line rendered by the call\n\t\tcheckOutput(\" x\\r\\n\", T(\"<?def x?>\\nx\\r\\n<?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// But of course \"common\" indentation will be ignored\n\t\tcheckOutput(\"x\\r\\n\", T(\"<?if True?>\\n <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// But not on the outermost level, which leads to an esoteric corner case:\n\t\t// The indentation will be output twice (once by the text itself, and once by the render call).\n\t\tcheckOutput(\" x\\r\\n\", T(\" <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional indentation in the block will be removed.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\n\\tTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Outer indentation will be kept.\n\t\tcheckOutput(\" True\\n\", T(\" <?if True?>\\n \\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Mixed indentation will not be recognized as indentation.\n\t\tcheckOutput(\"\\tTrue\\n\", T(\" <?if True?>\\n\\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\t}",
"public boolean isMultiLine() {\n/* 1236 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isNewLine(char c) {\n\t\treturn c == '\\n' || c == '\\r';\n\t}",
"public boolean isPrintBlankLine()\n\t{\n\t\treturn printBlankLine;\n\t}",
"private boolean comment() {\r\n return STRING(\"--\") && visibles() && newline();\r\n }",
"public boolean isPreformatted() {\n return preformatted;\n }",
"private static boolean isLineBased(final ByteBuf[] delimiters) {\n if (delimiters.length != 2) {\n return false;\n }\n ByteBuf a = delimiters[0];\n ByteBuf b = delimiters[1];\n if (a.capacity() < b.capacity()) {\n a = delimiters[1];\n b = delimiters[0];\n }\n return a.capacity() == 2 && b.capacity() == 1\n && a.getByte(0) == '\\r' && a.getByte(1) == '\\n'\n && b.getByte(0) == '\\n';\n }",
"public String toString()\n {\n return getIndentation();\n }",
"public static boolean presentLine() {\n\t\treturn presentLine(\"\\n\");\n\t}",
"public boolean isSingleLine() {\n if (!this.wordWrap || this.minimumFontSizeInPixels >= FONT_SIZE_EPSILON) {\n return true;\n }\n if (this.ellipsize != null) {\n switch (C04103.$SwitchMap$android$text$TextUtils$TruncateAt[this.ellipsize.ordinal()]) {\n case 1:\n case 2:\n case 3:\n return true;\n }\n }\n return false;\n }",
"boolean hasStartLineNumber();",
"private boolean endline() {\r\n return (CHAR('\\r') || true) && CHAR('\\n');\r\n }",
"private boolean isLineInformationRepairNeeded(String text) {\n\t\t\tif (text == null)\n\t\t\t\treturn false;\n\n\t\t\tint length= text.length();\n\t\t\tif (length == 0)\n\t\t\t\treturn false;\n\n\t\t\tint rIndex= text.indexOf('\\r');\n\t\t\tint nIndex= text.indexOf('\\n');\n\t\t\tif (rIndex == -1 && nIndex == -1)\n\t\t\t\treturn false;\n\n\t\t\tif (rIndex > 0 && rIndex < length-1 && nIndex > 1 && rIndex < length-2)\n\t\t\t\treturn false;\n\n\t\t\tString defaultLD= null;\n\t\t\ttry {\n\t\t\t\tdefaultLD= getLineDelimiter(0);\n\t\t\t} catch (BadLocationException x) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (defaultLD == null)\n\t\t\t\treturn false;\n\n\t\t\tdefaultLD= getDefaultLineDelimiter();\n\n\t\t\tif (defaultLD.length() == 1) {\n\t\t\t\tif (rIndex != -1 && !\"\\r\".equals(defaultLD)) //$NON-NLS-1$\n\t\t\t\t\treturn true;\n\t\t\t\tif (nIndex != -1 && !\"\\n\".equals(defaultLD)) //$NON-NLS-1$\n\t\t\t\t\treturn true;\n\t\t\t} else if (defaultLD.length() == 2)\n\t\t\t\treturn rIndex == -1 || nIndex - rIndex != 1;\n\n\t\t\treturn false;\n\t\t}",
"private boolean spaces() {\r\n return OPT(GO() && space() && spaces());\r\n }",
"public java.lang.String getIndentLevel() {\n return indentLevel;\n }",
"public static boolean getDefaultPrettyPrint()\n {\n return defaults.pretty_print;\n }",
"protected boolean isShowFormatterSetting() {\n \t\treturn true;\n \t}",
"protected short getIndentLevel() {\n return tabLevel;\n }",
"private boolean isLoggable() {\n return Log.isLoggable(tag, level);\n }",
"int getIndentSize();",
"public boolean isIgnoreTrailingChars() {\n return this.ignoreTrailingChars;\n }",
"public boolean getHideEmptyLines() {\n return hideEmptyLines;\n }",
"boolean hasComments();",
"private boolean readLines(final File file) throws IOException {\n\t\t_lastCommentStart = -1;\n\t\t_lastCommentEnd = -1;\n\t\t_lastCommentLine = -1;\n\t\t_firstCommentStart = -1;\n\t\t_firstCommentEnd = -1;\n\t\t_linePos = -1;\n\t\tBufferedReader in = _charset == null\n\t\t\t? new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file)))\n\t\t\t: new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), _charset));\n\t\tString line;\n\t\tboolean modified = false;\n\t\twhile ((line = in.readLine()) != null) {\n\t\t\t_lines++;\n\t\t\t//cut final white spaces\n\t\t\tint len = line.length();\n\t\t\tint i = len;\n\t\t\tint k;\n\t\t\twhile((len > 0)\n\t\t\t\t&& line.charAt(len - 1) <= ' ') {\n\t\t\t\tlen--;\n\t\t\t}\n\t\t\t_linePos = _sb.length();\n\t\t\tif (len == 0) {\n\t\t\t\tif (_linePos == 0) { //ignore leading empty lines\n\t\t\t\t\tmodified = true;\n\t\t\t\t} else {\n\t\t\t\t\tmodified |= i != len;\n\t\t\t\t\tif (_genCR) {\n\t\t\t\t\t\t_sb.append('\\r'); //add CR\n\t\t\t\t\t}\n\t\t\t\t\t_sb.append('\\n'); //add LF\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (_spacesToTab) { //makeTabsFromSpaces\n\t\t\t\t//replace leading spaces by tabs\n\t\t\t\tfor (i = 0, k = 0; i < len; i++ ) {\n\t\t\t\t\tchar ch = line.charAt(i);\n\t\t\t\t\tif (ch == '\\t') {\n\t\t\t\t\t\tk = (((k + _indentSize - 1)/_indentSize) + 1)\n\t\t\t\t\t\t\t*_indentSize;\n\t\t\t\t\t} else if (ch == ' ') {\n\t\t\t\t\t\tk++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < len) { //not empty line\n\t\t\t\t\tfor (int j = 0; j < (k / _indentSize); j++) {\n\t\t\t\t\t\t_sb.append('\\t');\n\t\t\t\t\t}\n\t\t\t\t\tif ((k = k % _indentSize) > 0) {\n\t\t\t\t\t\t_sb.append(_indentSpaces.substring(0, k));\n\t\t\t\t\t}\n\t\t\t\t\t_sb.append(line.substring(i,len));\n\t\t\t\t}\n\t\t\t} else { //makeSpacesFromTabs\n\t\t\t\t//replace leading tabs by spaces\n\t\t\t\tfor (i = 0, k = 0; i < len; i++ ) {\n\t\t\t\t\tchar ch = line.charAt(i);\n\t\t\t\t\tif (ch == '\\t') {\n\t\t\t\t\t\tk = (((k+_oldIndent-1)/_oldIndent)+1)*_oldIndent;\n\t\t\t\t\t } else if (ch == ' ') {\n\t\t\t\t\t\tk++;\n\t\t\t\t\t } else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tif (i < len) { //not empty line\n\t\t\t\t\tfor (int j = 0; j < (k / _oldIndent); j++) {\n\t\t\t\t\t\t_sb.append(_indentSpaces);\n\t\t\t\t\t}\n\t\t\t\t\tif ((k = k % _oldIndent) > 0) {\n\t\t\t\t\t\t_sb.append(_indentSpaces.substring(0, k));\n\t\t\t\t\t}\n\t\t\t\t\t_sb.append(line.substring(i,len));\n\t\t\t\t}\n\t\t\t}\n\t\t\tmodified |= !line.equals(_sb.substring(_linePos));\n\t\t\tif (_lastCommentStart >= 0) {\n\t\t\t\tif (line.indexOf(\"*/\") >= 0) {\n\t\t\t\t\tif (line.endsWith(\"*/\")) { //only comment lines blocks\n\t\t\t\t\t\t_lastCommentLine = _linePos;\n\t\t\t\t\t\t_lastCommentEnd = _sb.length();\n\t\t\t\t\t\tif (_firstCommentEnd == -1) {\n\t\t\t\t\t\t\t_firstCommentEnd = _lastCommentEnd;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (_firstCommentStart == _lastCommentStart) {\n\t\t\t\t\t\t\t_firstCommentStart = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_lastCommentStart = -1;\n\t\t\t\t\t\t_lastCommentEnd = -1;\n\t\t\t\t\t\t_lastCommentLine = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (line.trim().startsWith(\"/*\")) {\n\t\t\t\tif (line.indexOf(\"*/\") < 0) { //only more lines blocks\n\t\t\t\t\t_lastCommentStart = _linePos;\n\t\t\t\t\t_lastCommentLine = -1;\n\t\t\t\t\t_lastCommentEnd = -1;\n\t\t\t\t\tif (_firstCommentStart == -1) {\n\t\t\t\t\t\t_firstCommentStart = _linePos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (_genCR) {\n\t\t\t\t_sb.append('\\r'); //add CR\n\t\t\t}\n\t\t\t_sb.append('\\n'); //add LF\n\t\t}\n\t\tin.close();\n\t\treturn modified;\n\t}",
"public boolean formatCheck()\n\t{\n\t\t// The freeList has to be 2 or greater since the first block (index 0)\n\t\t// is the SuperBlock, and the the second block (index 1) contains\n\t\t// information about Inodes.\n\t\tif (totalBlocks != Kernel.NUM_BLOCKS || totalInodes <= 0 || \n\t\t\tfreeList < 2 || freeList >= totalBlocks && \n\t\t\tlastFreeBlock < 2 || lastFreeBlock >= totalBlocks)\n\t\t{\n\t\t\ttotalBlocks = Kernel.NUM_BLOCKS;\n\t\t\tlastFreeBlock = totalBlocks - 1;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public final boolean isSection() {\n return !children.isEmpty();\n }",
"boolean hasEndLineNumber();",
"public static boolean isNewLineCharacter(char c)\n {\n return (c == '\\r') || (c == '\\n');\n }",
"public String getIndent() {\n return indent;\n }",
"public boolean isSectionMode ()\r\n {\r\n return sectionMode;\r\n }",
"public boolean isGood() {\n return type != Type.COMMENT \n && type != Type.WS\n && type != Type.NL;\n }",
"boolean getLeading();",
"private static boolean IsAtIndentedParagraphOrBlockUIContainerStart(ITextPointer position)\r\n { \r\n if ((position is TextPointer) && TextPointerBase.IsAtParagraphOrBlockUIContainerStart(position))\r\n {\r\n Block paragraphOrBlockUIContainer = ((TextPointer)position).ParagraphOrBlockUIContainer;\r\n if (paragraphOrBlockUIContainer != null) \r\n {\r\n FlowDirection flowDirection = paragraphOrBlockUIContainer.FlowDirection; \r\n Thickness margin = paragraphOrBlockUIContainer.Margin; \r\n\r\n return \r\n flowDirection == FlowDirection.LeftToRight && margin.Left > 0 ||\r\n flowDirection == FlowDirection.RightToLeft && margin.Right > 0 ||\r\n (paragraphOrBlockUIContainer is Paragraph && ((Paragraph)paragraphOrBlockUIContainer).TextIndent > 0);\r\n } \r\n }\r\n\r\n return false; \r\n }",
"public boolean hasNextLine() {\n return nextLine != null;\n }",
"private boolean peekStatementStandard() {\n switch (peekType()) {\n case OPEN_CURLY:\n case VAR:\n case CONST:\n case SEMI_COLON:\n case IF:\n case DO:\n case WHILE:\n case FOR:\n case CONTINUE:\n case BREAK:\n case RETURN:\n case WITH:\n case SWITCH:\n case THROW:\n case TRY:\n case DEBUGGER:\n case YIELD:\n case IDENTIFIER:\n case TYPE:\n case DECLARE:\n case MODULE:\n case NAMESPACE:\n case THIS:\n case CLASS:\n case SUPER:\n case NUMBER:\n case BIGINT:\n case STRING:\n case NO_SUBSTITUTION_TEMPLATE:\n case TEMPLATE_HEAD:\n case NULL:\n case TRUE:\n case SLASH: // regular expression literal\n case SLASH_EQUAL: // regular expression literal\n case FALSE:\n case OPEN_SQUARE:\n case OPEN_PAREN:\n case NEW:\n case DELETE:\n case VOID:\n case TYPEOF:\n case PLUS_PLUS:\n case MINUS_MINUS:\n case PLUS:\n case MINUS:\n case TILDE:\n case BANG:\n case IMPORT:\n return true;\n default:\n return false;\n }\n }",
"public boolean isTextboxWrapLine()\n {\n return isWrapLine;\n }",
"private void ensureIndent() {\n if (addIndentation) {\n writeIndent();\n addIndentation = false;\n }\n }",
"public static boolean hasNextLine(){\n \tboolean result = scanner.hasNext();\n \treturn result;\n }",
"private boolean reformatMultilineComments() {\n \n \t\tString curLine = line.trim();\n \n \t\t// abort the operation?\n \t\tboolean bAbort = false;\n \t\t// the level of nested comments\n \t\tint nestedCommentsLevel = 0;\n \t\t// a comment until the end of the line\n \t\tMatcher matcherCommentEOL = patternCommentEOL.matcher(curLine);\n \t\tif (matcherCommentEOL.find()) {\n \n \t\t\tif (matcherCommentEOL.start() + 2 < curLine.length()) {\n \t\t\t\tchar firstChar = curLine.charAt(matcherCommentEOL.start() + 2);\n \t\t\t\t// this character means \"do not reformat this comment\"\n \t\t\t\tif (firstChar == '*' || firstChar == '|') {\n \t\t\t\t\tbDoNotFormatComment = true;\n \t\t\t\t\tbAbort = true;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// check that this comment is not closed (or else, we would loop\n \t\t\t// indefinitely)\n \t\t\tMatcher matcherComment = patternComment.matcher(curLine);\n \t\t\twhile (matcherComment.find())\n \t\t\t\tif (matcherComment.start() == matcherCommentEOL.start())\n \t\t\t\t\tbAbort = true;\n \n \t\t\t// if we are inside a string, do nothing\n \t\t\tMatcher matcherString = patternString.matcher(curLine);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif ((matcherString.start() < matcherCommentEOL.start())\n \t\t\t\t\t\t&& (matcherCommentEOL.start() < matcherString.end()))\n \t\t\t\t\tbAbort = true;\n \t\t\t}\n \n \t\t\tif (!bAbort && preferenceFormatComments) {\n \n \t\t\t\tnestedCommentsLevel = 1;\n \n \t\t\t\t// look for the end of the comment\n \t\t\t\tPattern patternCommentBeginEnd = Pattern.compile(\"(\\\\(\\\\*)|(\\\\*\\\\))\");\n \n \t\t\t\t// all the lines of the comment, concatenated\n \t\t\t\tString commentLines = curLine.substring(matcherCommentEOL.start() + 2);\n \n \t\t\t\t// what's before the comment on its first line\n \t\t\t\tString beforeComment = curLine.substring(0, matcherCommentEOL.start());\n \n \t\t\t\t// what's left after the comment on its last line\n \t\t\t\tString afterComment = \"\";\n \n \t\t\t\t// the index of the current line\n \t\t\t\tint l;\n \t\t\t\tgetWholeComment: for (l = currentLine; l < lines.length; l++) {\n \n \t\t\t\t\tString commentLine;\n \t\t\t\t\t// first line\n \t\t\t\t\tif (l == currentLine) {\n \t\t\t\t\t\tcommentLine = commentLines;\n \t\t\t\t\t\tcommentLines = \"\";\n \t\t\t\t\t} else\n \t\t\t\t\t\tcommentLine = lines[l].trim();\n \n \t\t\t\t\tMatcher matcherCommentBeginEnd = patternCommentBeginEnd.matcher(commentLine);\n \n \t\t\t\t\t/*\n \t\t\t\t\t * parse all the delimiters, and delete the nested ones, while keeping the body of the\n \t\t\t\t\t * comment\n \t\t\t\t\t */\n \t\t\t\t\twhile (matcherCommentBeginEnd.find()) {\n \n \t\t\t\t\t\t// check that we are not inside a string\n \t\t\t\t\t\tMatcher matcherString2 = patternString.matcher(commentLine);\n \t\t\t\t\t\tboolean bInString = false;\n \n \t\t\t\t\t\twhile (matcherString2.find()) {\n \n \t\t\t\t\t\t\tif (matcherString2.start() <= matcherCommentBeginEnd.start()\n \t\t\t\t\t\t\t\t\t&& matcherCommentBeginEnd.start() < matcherString2.end()) {\n \t\t\t\t\t\t\t\tbInString = 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\tif (!bInString) {\n \n \t\t\t\t\t\t\tif (matcherCommentBeginEnd.group().equals(\"(*\"))\n \t\t\t\t\t\t\t\tnestedCommentsLevel++;\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\tnestedCommentsLevel--;\n \n \t\t\t\t\t\t\t// delete the comment delimiter from the body of the\n \t\t\t\t\t\t\t// comment\n \t\t\t\t\t\t\tif (nestedCommentsLevel != 0) {\n \t\t\t\t\t\t\t\tString before = commentLine.substring(0, matcherCommentBeginEnd.start());\n \t\t\t\t\t\t\t\tString after = commentLine.substring(matcherCommentBeginEnd.start() + 2);\n \t\t\t\t\t\t\t\tcommentLine = before + after;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\tif (nestedCommentsLevel == 0) {\n \n \t\t\t\t\t\t\t\tcommentLines = commentLines + \" \"\n \t\t\t\t\t\t\t\t\t\t+ commentLine.substring(0, matcherCommentBeginEnd.start());\n \t\t\t\t\t\t\t\tafterComment = commentLine.substring(matcherCommentBeginEnd.start() + 2);\n \n \t\t\t\t\t\t\t\tbreak getWholeComment;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// we modified the string: we have to restart the\n \t\t\t\t\t\t\t// matcher\n \t\t\t\t\t\t\tmatcherCommentBeginEnd = patternCommentBeginEnd.matcher(commentLine);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcommentLines = commentLines + \" \" + commentLine;\n \t\t\t\t}\n \n \t\t\t\t// if we are at the beginning, we must insert blank lines (or\n \t\t\t\t// else we would access\n \t\t\t\t// out of\n \t\t\t\t// bounds)\n \t\t\t\tif (l < 3) {\n \t\t\t\t\tString[] lines2 = new String[lines.length + 2];\n \t\t\t\t\tfor (int k = 0; k < lines.length; k++)\n \t\t\t\t\t\tlines2[k + 2] = lines[k];\n \t\t\t\t\tlines = lines2;\n \t\t\t\t\tl += 2;\n \t\t\t\t}\n \n \t\t\t\t// if we didn't go through at least one iteration of the loop\n \t\t\t\tif (l >= lines.length)\n \t\t\t\t\tl--;\n \n \t\t\t\t/*\n \t\t\t\t * Now, we put all the modified lines in the table, and we modify the current line so that the\n \t\t\t\t * formatter will take the modifications into account.\n \t\t\t\t */\n \n \t\t\t\t// Do not put blank lines\n \t\t\t\tif (beforeComment.trim().equals(\"\") && afterComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tcurrentLine = l;\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (beforeComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l - 1] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tlines[l] = afterComment;\n \t\t\t\t\tcurrentLine = l - 1;\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (afterComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l - 1] = beforeComment;\n \t\t\t\t\tlines[l] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tcurrentLine = l - 1;\n \t\t\t\t\treturn true;\n \t\t\t\t} else {\n \t\t\t\t\t// the source code before the comment\n \t\t\t\t\tlines[l - 2] = beforeComment;\n \t\t\t\t\t// the body of the comment\n \t\t\t\t\tlines[l - 1] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\t// the source code after the comment\n \t\t\t\t\tlines[l] = afterComment;\n \t\t\t\t\t// the line on which we will continue formatting\n \t\t\t\t\tcurrentLine = l - 2;\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn false;\n \t}",
"int getCommentsMode();",
"private boolean isProgramBody() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\t\n\t\t// Iterate through declarations.\n\t\twhile(isDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Declaration!\");\n\t\t\t\tupdateToken();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\twhile(theCurrentToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t}\n\t\t\t\tupdateToken();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.BEGIN)\n\t\t{\t\n\t\t\tSystem.out.println(\"Begin!\");\n\t\t\tupdateToken();\n\t\t\t\n\t\t\twhile(isStatement())\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Statement!\");\n\t\t\t\t\tupdateToken();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t\twhile(theCurrentToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t}\n\t\t\t\t\tupdateToken();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(theCurrentToken == null)\n\t\t\t{\n\t\t\t\ttheLogger.LogScanError();\n\t\t\t\treturn isValid;\n\t\t\t}\n\t\t\t\n\t\t\tif(theCurrentToken.TokenType == TokenType.END)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.PROGRAM)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"End program!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t}\n\t\t\telse\n\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t}\n\t\telse\n\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\n\t\treturn isValid;\n\t}",
"public boolean isPlain() {\n\treturn style == 0;\n }",
"public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason) {\n boolean supResult = super.indentLine(doc, reason);\n\n /** This method is simply a call to getIndentOfCurrStmt, which is fully tested in IndentHelperTest, so no additional\n * tests are provided for this class.\n */\n\n int indent = 0;\n\n\n indent = doc._getIndentOfCurrStmt(doc.getCurrentLocation(), new char[] {';','{','}'}, new char[] {' ', '\\t','\\n'});\n\n\n indent = indent + _suffix;\n doc.setTab(indent, doc.getCurrentLocation());\n \n return supResult;\n }",
"public boolean getTrimSpaces();",
"public boolean hasAlternations() {\n boolean b = false;\n POSLineItemDetail[] lineDetails = compositePOSTransaction.getLineItemDetailsArray();\n if (lineDetails == null || lineDetails.length == 0) {\n return false;\n }\n for (int i = 0; i < lineDetails.length; i++) {\n if (lineDetails[i] instanceof CMSSaleLineItemDetail) {\n CMSSaleLineItemDetail saleDetail = (CMSSaleLineItemDetail)lineDetails[i];\n AlterationLineItemDetail[] alternationsArray = saleDetail.getAlterationLineItemDetailArray();\n if (alternationsArray != null && alternationsArray.length > 0) {\n return true;\n }\n }\n }\n return b;\n }",
"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}",
"private boolean isReturnStatement()\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.RETURN)\n\t\t{\n\t\t\tisValid = true;\n\t\t\tSystem.out.println(\"Return!\");\n\t\t}\t\n\t\t\n\t\treturn isValid;\n\t}",
"public static String nl() {\n return nl;\n }",
"public boolean skipWhitespace()\r\n {\r\n String str = feed.findWithinHorizon( WHITESPACE_PATTERN, 0 );\r\n \r\n if( str == null )\r\n return false;\r\n else\r\n return true;\r\n }",
"private void indentNewLine(Token<CppTokenId> current){\n if (current.id() == NEW_LINE) {\n return;\n }\n int space;\n Token<CppTokenId> first = ts.lookNextLineImportant();\n if (first != null && (first.id() == CASE ||first.id() == DEFAULT)){\n space = getCaseIndent();\n } else {\n space = getIndent();\n }\n if (current.id() == WHITESPACE) {\n ts.replaceCurrent(current, 0, space, true);\n } else {\n ts.addBeforeCurrent(0, space, true);\n }\n }",
"public boolean isOutputLine(String line) {\n int count = 0;\n for (int i = 0; i < line.length(); i++) {\n if (line.charAt(i) == '<' || line.charAt(i) == '>') {\n count++;\n }\n }\n if (count == 4) {\n return true;\n }\n return false;\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"private static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\t' || c == '\\n' || c == '\\f' || c == '\\r';\n }",
"public static boolean hasNextLine() {\n return sc.hasNext();\n }",
"public boolean isLayoutable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.LAYOUTABLE_FIELD));\n }",
"boolean isSlimeChunk();",
"public boolean canBuildFormatter() {\r\n return isFormatter(getFormatter());\r\n }",
"public boolean isterminal() {\n\t\tif(isTerminal)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"public boolean isLoggable() {\n return (FINE >= getLevel());\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"private boolean shouldEvaluateMultilineComment(String remainingText) {\n return (remainingText.contains(MULTILINE_COMMENT_START_CHARACTERS)\n && !remainingText.contains(SINGLE_LINE_COMMENT_CHARACTERS))\n || (remainingText.contains(MULTILINE_COMMENT_START_CHARACTERS)\n && remainingText.contains(SINGLE_LINE_COMMENT_CHARACTERS)\n && Integer.valueOf(remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS))\n .compareTo(remainingText.indexOf(SINGLE_LINE_COMMENT_CHARACTERS)) < 0);\n }",
"private boolean isWhitespace(char c) {\r\n if (c==' ' || c=='\\n' || c=='\\t' || c=='\\r' ){\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}",
"private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}",
"public boolean isTextLocked()\n {\n return textLocked.isSet(field_1_options);\n }",
"public boolean isMainline();",
"public boolean isLifeStoryLinesOn() {\n return isLifeStoryLinesOn;\n }",
"public boolean noNl()\n \t{\n \t\treturn !isAfterNL();\n \t}",
"protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }",
"public final boolean hasTerminalFlags() {\n return isTerminal() || hasGoto();\n }",
"public boolean hasPadding() {\n return (buffer.get(0) & 0x20) == 0x020;\n }",
"public boolean hasNextLine() {\n return sc.hasNextLine();\n }"
] |
[
"0.747741",
"0.6800248",
"0.64899623",
"0.6216204",
"0.62063617",
"0.61049503",
"0.60624313",
"0.605013",
"0.6020373",
"0.59246445",
"0.5877153",
"0.5876486",
"0.584409",
"0.58351856",
"0.5808072",
"0.578877",
"0.56986856",
"0.56986856",
"0.5689711",
"0.5687505",
"0.5676027",
"0.5668854",
"0.5629699",
"0.56034243",
"0.5533604",
"0.54922104",
"0.54754007",
"0.54698163",
"0.5427811",
"0.5406344",
"0.540242",
"0.539646",
"0.53891563",
"0.5369005",
"0.5358532",
"0.53484446",
"0.5348198",
"0.53153414",
"0.52909267",
"0.526022",
"0.5258356",
"0.52494437",
"0.52429605",
"0.5241002",
"0.52295655",
"0.52279764",
"0.52121615",
"0.5193777",
"0.51898146",
"0.5189554",
"0.51717794",
"0.5166232",
"0.5159578",
"0.51540256",
"0.515076",
"0.5149753",
"0.5135877",
"0.51319236",
"0.5098493",
"0.5091255",
"0.5090936",
"0.50885",
"0.50579447",
"0.50552773",
"0.50522333",
"0.50500417",
"0.50484043",
"0.5048204",
"0.5047436",
"0.5047233",
"0.5043443",
"0.5036284",
"0.5024029",
"0.5023258",
"0.5011049",
"0.5004498",
"0.49945262",
"0.4986641",
"0.4986397",
"0.49730062",
"0.49727723",
"0.49671268",
"0.49618655",
"0.4961632",
"0.49605757",
"0.4959453",
"0.49568665",
"0.4955808",
"0.49428383",
"0.49419457",
"0.4940749",
"0.4940749",
"0.4938239",
"0.49302658",
"0.4929663",
"0.49210697",
"0.49195623",
"0.49183512",
"0.49145705",
"0.48984775"
] |
0.5845673
|
12
|
Serializes the specified topic. The default name type topic is omitted in case it carries no further characteristics.
|
private void _writeTopic(final Topic topic) throws IOException {
// Ignore the topic if it is the default name type and it has no further
// characteristics
if (topic.equals(_defaultNameType)) {
return;
}
_out.startObject();
_writeItemIdentifiers(topic);
_writeLocators("subject_identifiers", topic.getSubjectIdentifiers());
_writeLocators("subject_locators", topic.getSubjectLocators());
Set<Name> names = topic.getNames();
if (!names.isEmpty()) {
_out.key("names");
_out.startArray();
for (Name name: names) {
_writeName(name);
}
_out.endArray();
}
Set<Occurrence> occs = topic.getOccurrences();
if (!occs.isEmpty()) {
_out.key("occurrences");
_out.startArray();
for (Occurrence occ: occs) {
_writeOccurrence(occ);
}
_out.endArray();
}
_out.endObject();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void to(String topic);",
"@Override\n\t\t\t\tpublic void addTopic(String topic) {\n\t\t\t\t\t\tsendData(\"<new><name>\" + topic +\"</name></new>\");\n\t\t\t\t}",
"public void createTopic(String topic) {\n\n\t}",
"public void setTopic(String topic) {\n this.topic = topic;\n }",
"public void setTopic( String topic ) {\n this.topic = topic;\n }",
"public void setTopic(String topic) {\n\t\tthis.topic = topic;\n\t}",
"public void setTopic(String topic) {\n\t\tthis.topic = topic;\n\t}",
"@Override\n public com.google.protobuf.ByteString\n getTopicBytes() {\n Object ref = topic_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getTopic() {\n Object ref = topic_;\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 topic_ = s;\n return s;\n }\n }",
"public void setTopic(Topic topic) {\n this.topic = topic;\n }",
"OutgoingStream<T> withTopic(String topic);",
"void to(String topic, Serializer<K> keySerializer, Serializer<V> valSerializer);",
"public com.google.protobuf.ByteString\n getTopicBytes() {\n Object ref = topic_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"void setTopic(String topic);",
"public String getTopic() {\n Object ref = topic_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"private String serializeKey(String topic, K key) {\n if (key instanceof String) {\n return (String) key;\n }\n if (keySchema instanceof PulsarKafkaSchema) {\n ((PulsarKafkaSchema<K>) keySchema).setTopic(topic);\n }\n byte[] keyBytes = keySchema.encode(key);\n return Base64.getEncoder().encodeToString(keyBytes);\n }",
"@Override\n public byte[] serialize(String topic, Object record) throws SerializationException {\n // null needs to treated specially since the client most likely just wants to send\n // an individual null value instead of making the subject a null type. Also, null in\n // Kafka has a special meaning for deletion in a topic with the compact retention policy.\n // Therefore, we will bypass schema registration and return a null value in Kafka, instead\n // of an Avro encoded null.\n if (record == null) {\n return null;\n }\n\n try {\n return serializeImpl(record);\n } catch (com.azure.data.schemaregistry.SerializationException e) {\n // convert into kafka exception\n throw new SerializationException(e.getCause());\n }\n }",
"@Override\n\tpublic void saveTopicType(TopicType topicType) throws Exception {\n\n\t}",
"private void createTopic(String topicName) {\r\n\t\tArrayList<Integer> socketNumbers = new ArrayList<Integer>();\r\n\t\tsubscriberMap.put(topicName, socketNumbers);\r\n\t\ttopicNumbers.put(topicNumbers.size(), topicName);\r\n\t\tterminal.println(\"Topic \" + topicName + \" was created.\");\r\n\t}",
"public String getTopic() {\n return topic;\n }",
"public static void setTopic(String topic) {\n setTopic(Loader.channelId, topic);\n }",
"public String getTopic() {\n return topic;\n }",
"public String getTopic() {\n\t\treturn topic;\n\t}",
"public String getTopicName() {\n return topicName;\n }",
"public void putTopic(Topic topic) {\n\t\ttopics.add(topic) ;\n\t}",
"public String getTopic() {\n return this.topic;\n }",
"public void setTopicName(final String topicName) {\n this.topicName = Optional.ofNullable(topicName);\n }",
"@Override\n public void publish(String data, String topicName,String topicType) {\n Map<Integer, List<KafkaTopic>> kafkaTopicsByPartitionMap = getPerPartitionKafkaTopicList(0, 1,\"0\");\n for (Map.Entry<Integer, List<KafkaTopic>> entry : kafkaTopicsByPartitionMap.entrySet()) {\n List<KafkaTopic> kafkaTopicList= entry.getValue();\n for (KafkaTopic kafkaTopic : kafkaTopicList){\n if(kafkaTopic.getTopicName().equalsIgnoreCase(topicName)){\n new KafkaProducerClient(data, topicName,topicType, kafkaTopic.getPartitionId()).publishToKafkaTopic();\n return;\n }\n }\n }\n }",
"public String createTopic(String topicName) throws Exception{\r\n\r\n\t\tpropTopic.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tpropTopic.put(\"group.id\", config.getProperty(\"group.id\"));\r\n\t\tpropTopic.put(\"key.deserializer\", \"org.apache.kafka.common.serialization.StringDeserializer\");\r\n\t\tpropTopic.put(\"value.deserializer\", \"org.apache.kafka.common.serialization.StringDeserializer\");\r\n\r\n\t\tif(getTopic(topicName)){\r\n\t\t\tSystem.out.println(\"Topic \"+topicName +\" already exists!!\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Creating Topic : \"+topicName);\r\n\t\t\t\r\n\t\t\tAdminClient adminClient = AdminClient.create(prop);\r\n\t\t\tNewTopic newTopic = new NewTopic(topicName, 1, (short)1);\r\n\r\n\t\t\tList<NewTopic> newTopics = new ArrayList<NewTopic>();\r\n\t\t\tnewTopics.add(newTopic);\r\n\r\n\t\t\tadminClient.createTopics(newTopics);\r\n\t\t\tadminClient.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn topicName;\r\n\t}",
"protected boolean isTopicSupported(String topic)\n {\n return true;\n }",
"public boolean isTopic(String topic) {\n\t\treturn false;\n\t}",
"public PathElementIF createTopic(String type, String id);",
"public void setTopicName(String topicName) {\n this.topicName = topicName == null ? null : topicName.trim();\n }",
"public TopicImpl(UUID identifier, Serializable version, String name, Taxonomy type) {\n\n super(identifier, version);\n this.name = name;\n this.type = type;\n }",
"@Override\n\tpublic byte[] serialize(String topic, SearcherJob data) {\n\t\tbyte[] retVal = null;\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t try {\n\t retVal = objectMapper.writeValueAsString(data).getBytes();\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t return retVal;\n\t}",
"public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void publishTopic(Node node) {\n\t\t\n\t}",
"public abstract void updateTopic(String topic);",
"public Topic (String name) {\n this.name = name;\n }",
"public Topic(String name)\r\n {\r\n this.name = name;\r\n }",
"public Topic createTopic(@NonNull final String topicName){\n Topic topic = new Topic(topicName, UUID.randomUUID().toString());\n TopicHandler topicHandler = new TopicHandler(topic);\n topic_Handler_Map.put(topic.getTopicId(), topicHandler);\n System.out.println(\"Created Topic:\"+topic.getTopicName());\n return topic;\n }",
"public void destroyTopic(String topic) {\n\n\t}",
"public TopicDto(String topic) {\n String[] fields = topic.split(\"=\");\n key = fields[0];\n value = fields[1];\n }",
"public void send(String providedTopic,V msg);",
"@Override\n\t\t\t\tpublic void selectTopic(String topic) {\n\t\t\t\t\t\tsendData(\"<select><username>\" + username +\"</username><topic>\" + topic + \"</topic></select>\");\n\t\t\t\t}",
"public void addTopic(Topic topic) {\n\t\tString sql = \"insert into \"\n\t\t\t\t+ Constant.schema\n\t\t\t\t+ \".topic (topic_name, start_time, end_time, speaker_name, speaker_des, attachment, speaker_img, rating) values (?,?,?,?,?,?,?,?)\";\n\t\tList<String> paramList = new ArrayList<String>();\n\t\tparamList.add(topic.getTopicName());\n\t\tparamList.add(topic.getStartTime());\n\t\tparamList.add(topic.getEndTime());\n\t\tparamList.add(topic.getSpeakerName());\n\t\tparamList.add(topic.getSpeakerDesc());\n\t\tparamList.add(topic.getAttachment());\n\t\tparamList.add(topic.getSpeakerimg());\n\t\tparamList.add(String.valueOf(0));\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\ttry {\n\t\t\tconn = DBConUtil.getConn();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tconn.setAutoCommit(true);\n\t\t\tDBConUtil.executeUpdate(paramList, conn, pstmt);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// close connections.\n\t\t\tDBConUtil.close(conn, pstmt);\n\t\t}\n\t}",
"void publish(String topicName, Message message) throws IOException;",
"public Topic getTopic() {\n return topic;\n }",
"String getNewTopic();",
"public Topic getTopic() {\n\t\treturn topic;\n\t}",
"public long getTopic() {\n return topic_;\n }",
"public void produce(String topicName, String payload) throws Exception {\n\t\tProperties props = new Properties();\n\n\t\t// Assign localhost id\n\t\tprops.put(\"bootstrap.servers\", Consts.HOST_AND_PORT);\n\n\t\t// Set acknowledgements for producer requests.\n\t\tprops.put(\"acks\", \"all\");\n\n\t\t// If the request fails, the producer can automatically retry,\n\t\tprops.put(\"retries\", 0);\n\n//\t\t// Specify buffer size in config\n//\t\tprops.put(\"batch.size\", 16384);\n//\n//\t\t// Reduce the no of requests less than 0\n//\t\tprops.put(\"linger.ms\", 1);\n//\n//\t\t// The buffer.memory controls the total amount of memory available to the\n//\t\t// producer for buffering.\n//\t\tprops.put(\"buffer.memory\", 33554432);\n//\n//\t\tprops.put(\"key.serializer\", \"org.apache.kafka.common.serializa-tion.StringSerializer\");\n//\n//\t\tprops.put(\"value.serializer\", \"org.apache.kafka.common.serializa-tion.StringSerializer\");\n\n\t\ttry(Producer<String, String> producer = new KafkaProducer<String, String>(props)){\n\t\t\t\n\t\t\tProducerRecord<String, String> producerRecord = new ProducerRecord<String, String>(topicName, payload);\n\n\t\t\tproducer.send( producerRecord );\n\n\t\t\tlog(\"Mensagen enviada:\" + payload);\n\n\t\t} catch (Exception ex) {\n\n\t\t\tex.printStackTrace();\n\t\t\tlog(ex);\n\n\t\t}\n\n\t}",
"public long getTopic() {\n return topic_;\n }",
"String getTopic();",
"String getTopic();",
"public SubscribeToIoTCoreRequest withTopicName(final String topicName) {\n setTopicName(topicName);\n return this;\n }",
"@Override\n\tpublic TopicType getTopicType(String Id) throws Exception {\n\t\treturn null;\n\t}",
"public String getTopic() {\r\n return null;\r\n }",
"public synchronized void sendMessage(KafkaMessage msg, String[] topic) {\r\n if (producer != null) {\r\n // Encode message\r\n JsonEncoder json = new JsonEncoder();\r\n\r\n\r\n //producer.beginTransaction(); //begin transactions\r\n try {\r\n for (int index = 0; index < topic.length; index++) {\r\n String encodedMsg = json.encode(msg);\r\n ProducerRecord<Long, String> record = new ProducerRecord<>(topic[index],\r\n encodedMsg);\r\n\r\n producer.send(record).get(); // (A??)-Synchronouse send.\r\n this.requests.mark();\r\n }\r\n //producer.commitTransaction();\r\n } catch (KafkaException e) {\r\n e.printStackTrace();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n } else {\r\n System.out.println(\"ProducerContainer is not initialized for producer \" + this.ID);\r\n }\r\n }",
"public void sendSTRT(byte[] topic) {\n\t\tstrtF = new Frame(new Packet(tgtAddr, Packet.STRT, STRT_NUM, topic), srcSocket);\n\t\tstrtF.send();\n\t\tSystem.out.println(\"Sending STRT.\");\n\t\tSystem.out.flush();\n\t}",
"public void mo110582a(Topic topic) {\n m125716j();\n this.f88305c.setText(C25382r.m123889a(new C25382r.AbstractC25387e() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$pYgrdsywRofB9NlDjKoUu5Rm4cY */\n\n @Override // com.zhihu.android.topic.p1945h.C25382r.AbstractC25387e\n public final String get() {\n return TopicFragment.m125707d(Topic.this);\n }\n }));\n TopicCommonUtil.m123935a(this.f88309g, this.f90231x.mo109391a(this.f88309g, topic));\n m125701b(topic);\n m125725t();\n m125717l();\n this.f90231x.mo109394a(topic);\n m125726u();\n TopicApmUtil.m123915d();\n TopicApmUtil.m123911a(true);\n }",
"public void addTopic(Topic topic) {\n\t\ttopicRepository.save(topic);\n\t}",
"public Message createMessage(final T payload, String topic) {\n try {\n final AvroSerializer<T> serializer = serializerFactory.getGenericRecordSerializer(clazz);\n final Message message = new Message();\n message.setValue(serializer.toBinary(payload));\n message.setTopic(topic);\n message.setTimestamp(new Date().getTime());\n return message;\n } catch (SerializationException e) {\n String msg = String.format(\"Serialisation error: %s\", e.getMessage());\n LOGGER.error(msg, e);\n throw new ApplicationSerialisationException(msg);\n }\n }",
"public void createNewTopic() {\n try {\n forumService.createNewTopic(\n newTopicName.trim(),\n TopicCategory.OTHER,\n currentUser,\n cloudOfTopic);\n } catch (Exception e) {\n logger.error(ExceptionUtils.getStackTrace(e));\n }\n newTopicName = \"\";\n refreshForumState();\n }",
"public void setTopic(String channel, String topic);",
"Topic getTopic();",
"public <T> RealtimeRos2Publisher<T> createPublisher(TopicDataType<T> topicDataType, String topicName) throws IOException\n {\n return createPublisher(topicDataType, topicName, Ros2QosProfile.DEFAULT(), DEFAULT_QUEUE_SIZE);\n }",
"public Topic readTopic(int topicId);",
"private void subscribeToTopic(String topic) {\n try {\n mqttAndroidClient.subscribe(topic, 0, null, new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n Log.w(\"MQTT\",\"Subscribed!\");\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Log.w(\"MQTT\", \"Subscribe fail!\");\n }\n });\n } catch (MqttException ex) {\n System.err.println(\"Exception whilst subscribing\");\n ex.printStackTrace();\n }\n }",
"public String getTopic() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_topic == null)\n jcasType.jcas.throwFeatMissing(\"topic\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_topic);}",
"public TopicImpl() {\n\n super(false); // don't generate UUID\n }",
"TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException;",
"public void publish(String topicName, int qos, byte[] payload) throws Throwable {\n /*\n Use a state machine to decide which step to do next. State change occurs\n when a notification is received that an MQTT action has completed\n */\n state = BEGIN;\n while (state != FINISH) {\n switch (state) {\n case BEGIN:\n // Connect using a non-blocking connect\n if (con == null) {\n con = new MqttConnector();\n }\n if (!client.isConnected()) {\n con.doConnect();\n } else {\n state = CONNECTED;\n }\n break;\n case CONNECTED:\n // Publish using a non-blocking publisher\n Publisher pub = new Publisher();\n pub.doPublish(topicName, qos, payload);\n break;\n case PUBLISHED:\n case DISCONNECTED:\n state = FINISH;\n donext = true;\n break;\n case DISCONNECT:\n Disconnector disc = new Disconnector();\n disc.doDisconnect();\n break;\n case ERROR:\n throw ex;\n }\n if (state == BEGIN) {\n waitForStateChange(STATE_CHECK_INTERVAL_LONG);\n } else {\n waitForStateChange(STATE_CHECK_INTERVAL_SHORT);\n }\n }\n }",
"public void setTopic(String v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_topic == null)\n jcasType.jcas.throwFeatMissing(\"topic\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_topic, v);}",
"public boolean topic(String owner, String repo, String topic) {\n return apiClient.put(String.format(\"/repos/%s/%s/topics/%s\", owner, repo, topic)).isOk();\n }",
"@Override\n public void modifyTopic(List<Topic> topics, int type) {\n\n\t}",
"public String getTopicName() {\n if (activeTopic == null) {\n return \"\";\n } else {\n return TOPIC_HEADER_PRESTRING + activeTopic.getName();\n }\n }",
"@RequestMapping(method=RequestMethod.POST, value = \"/topics\")\r\n\t\r\n\t// '@RequestBody' will convert content of the incoming \r\n\t// Request (POST) body to your parameter object on the fly \r\n\t// 'POST'/request should contain the object itself that's being sent \r\n\t// After object is sent, it is passed as an instance of class 'Topic'\r\n\tpublic void addTopic(@RequestBody Topic topic) {\r\n\t\ttopicService.addTopic(topic);\r\n\t\t\r\n\t}",
"public void notifyTopic(String name) throws RemoteException;",
"@Override\r\n\tpublic int addTopic(String name) throws SQLException {\n\t\tString sql = \"insert into topic(tname) values(?) \";\r\n\t\t\r\n\t\tint excuteUpdate = excuteUpdate(sql, name);\r\n\t\t\r\n\t\treturn excuteUpdate;\r\n\t\t\r\n\t\t\r\n\t}",
"public void send(String topic,Object content,String actionType) {\n //maxkey.server.message.queue , if not none\n if(applicationConfig.isProvisionSupport()) {\n ProvisionMessage message = \n \t\tnew ProvisionMessage(\n \t\t\t\tUUID.randomUUID().toString(),\t//message id as uuid\n \t\t\t\ttopic,\t//TOPIC\n \t\t\t\tactionType,\t//action of content\n \t\t\t\tDateUtils.getCurrentDateTimeAsString(),\t//send time\n \t\t\t\tnull, \t//content Object to json message content\n \t\t\t\tcontent\n \t\t\t\t);\n //sand msg to provision topic\n Thread thread = null;\n if(applicationConfig.isProvisionSupport()) {\n \t_logger.trace(\"message...\");\n \tthread = new ProvisioningThread(jdbcTemplate,message);\n \tthread.start();\n }else{\n \t_logger.trace(\"no send message...\");\n }\n }\n }",
"@Override\n\t\t\t\tpublic void onPublish(UTF8Buffer topicmsg, Buffer msg, Runnable ack) {\n\t\t\t\t\tString topic = topicmsg.utf8().toString();\n\t\t\t\t\tString payload = msg.utf8().toString();\n\t\t\t\t\tSystem.out.println(topic);\n\t\t\t\t\tSystem.out.println(payload);\n\t\t\t\t\t// 表示监听成功\n\t\t\t\t\tack.run();\n\t\t\t\t}",
"public void publish(MessageI m, String topic) throws Exception {\n\t\tlogMessage(\"Publishing message \" + m.getURI()+ \" to the topic : \"+ topic);\n\t\tthis.publicationOutboundPort.publish(m, topic);\n\t}",
"@Override\r\n\tpublic int updateTopic(Topic topic) throws SQLException {\n\t\treturn 0;\r\n\t}",
"@Override\n public synchronized Future<RpcResult<Void>> readTopic(ReadTopicInput input) {\n String topicId = input.getTopicId().getValue();\n // if requested TopicId has not been requested before then it is added into to register\n if (registeredTopic.contains(topicId) == false) {\n registeredTopic.add(topicId);\n LOG.info(\"UserAgent start read notification with TopicId {}\", topicId);\n }\n return immediateFuture(RpcResultBuilder.success((Void) null).build());\n }",
"public void createTopics(String[] topics) {\n\n\t}",
"public void send(String providedTopic,V msg,K providedKey);",
"public Builder setTopic(long value) {\n \n topic_ = value;\n onChanged();\n return this;\n }",
"public Publisher createHierarchicalTopicPublisher(String topicName) {\n validateTopicName(topicName, true);\n\n String topicRootName;\n int pos = topicName.indexOf('.');\n if (pos == -1) {\n topicRootName = topicName;\n } else {\n topicRootName = topicName.substring(0, pos);\n }\n\n String source = String.format(\"%s.%s\", endpointId, topicRootName);\n CAMQPEndpointPolicy endpointPolicy = new CAMQPEndpointPolicy();\n endpointPolicy.setEndpointType(EndpointType.TOPIC);\n endpointPolicy.setTopicRouterType(TopicRouterType.Hierarchical);\n CAMQPSourceInterface sender = CAMQPEndpointManager.createSource(session, source, topicRootName, endpointPolicy);\n return new Publisher(topicName, sender);\n }",
"public void subscribeTo(String topicName) {\n consumer.subscribe(Arrays.asList(topicName));\n System.out.println(\"Subscribed to topic \" + topicName);\n }",
"public Builder clearTopic() {\n \n topic_ = getDefaultInstance().getTopic();\n onChanged();\n return this;\n }",
"public void publish(@NonNull final Topic topic, @NonNull final Message message){\n topic.addMessage(message);\n System.out.println(message.getMsg()+\" published to \"+topic.getTopicName());\n topic_Handler_Map.get(topic.getTopicId()).publish();\n }",
"public void setTopic(String channel, String topic)\n\t{\n\t\tsendRaw(\"TOPIC \" + channel + \" \" + topic);\n\t}",
"private String _topicRef(Topic topic) {\n Set<Locator> locs = topic.getSubjectIdentifiers();\n if (!locs.isEmpty()) {\n return \"si:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getSubjectLocators();\n if (!locs.isEmpty()) {\n return \"sl:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getItemIdentifiers();\n if (!locs.isEmpty()) {\n return \"ii:\" + locs.iterator().next().toExternalForm();\n }\n return \"ii:\" + _baseIRI + \"#\" + topic.getId();\n }",
"public String getTopicName() {\n if (topicName.isPresent()) {\n return topicName.get();\n }\n return null;\n }",
"@Override\n public List<TopicType> getTopicTypes() {\n\t\treturn null;\n\t}",
"private void _writeType(final Typed typed) throws IOException {\n _writeKeyValue(\"type\", _topicRef(typed.getType()));\n }",
"public int publishToTopic(String topicId, Message message);",
"public void deleteTopic(int topicId);",
"com.google.ads.googleads.v6.resources.TopicConstantOrBuilder getTopicConstantOrBuilder();"
] |
[
"0.6712458",
"0.6593944",
"0.6516588",
"0.6257587",
"0.62527996",
"0.6158665",
"0.6158665",
"0.61566937",
"0.61259824",
"0.6100921",
"0.6063634",
"0.5981567",
"0.5967877",
"0.59120196",
"0.5901797",
"0.58262014",
"0.5762824",
"0.57242554",
"0.5696146",
"0.5665405",
"0.5645024",
"0.5644565",
"0.5629034",
"0.5610789",
"0.56048447",
"0.5589085",
"0.5575136",
"0.55453444",
"0.5524622",
"0.54791725",
"0.54485345",
"0.5427505",
"0.53944284",
"0.53785384",
"0.5326232",
"0.5291815",
"0.5265381",
"0.5257631",
"0.525217",
"0.5246566",
"0.52372867",
"0.52091384",
"0.5205514",
"0.5197916",
"0.5178518",
"0.5175803",
"0.5174992",
"0.51689744",
"0.5155247",
"0.51478887",
"0.5121857",
"0.5121401",
"0.5118903",
"0.5113203",
"0.5113203",
"0.51096135",
"0.5010656",
"0.4985172",
"0.49760032",
"0.49660578",
"0.49559146",
"0.49370316",
"0.49346453",
"0.49269864",
"0.49239135",
"0.49237362",
"0.4905025",
"0.48939607",
"0.48856053",
"0.4869142",
"0.48607928",
"0.48449776",
"0.48406225",
"0.4815784",
"0.48044395",
"0.48010033",
"0.47964782",
"0.47828186",
"0.47825378",
"0.47753057",
"0.47736567",
"0.47610155",
"0.4757014",
"0.475657",
"0.4755002",
"0.4738446",
"0.4706826",
"0.47000572",
"0.46971068",
"0.46949565",
"0.46945578",
"0.4693516",
"0.46933776",
"0.4679951",
"0.46767372",
"0.46717244",
"0.46603018",
"0.4657293",
"0.46550763",
"0.46229705"
] |
0.75498176
|
0
|
Serializes the specified name.
|
private void _writeName(final Name name) throws IOException {
_out.startObject();
_writeReifier(name);
_writeItemIdentifiers(name);
if (!name.getType().equals(_defaultNameType)) {
_writeType(name);
}
_writeScope(name);
_writeKeyValue("value", name.getValue());
Set<Variant> variants = name.getVariants();
if (!variants.isEmpty()) {
_out.key("variants");
_out.startArray();
for (Variant variant: variants) {
_writeVariant(variant);
}
_out.endArray();
}
_out.endObject();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public void setname(String name) {\n this.name = name;\n }",
"public void setname(String name) {\n\t\tthis.name = name;\n\t}",
"public static void serialize(Serializable[] objects, String name) {\n try {\n File file = new File(BASE_DIRECTORY + name);\n if (new File(BASE_DIRECTORY).mkdirs()) {\n Logger.internalLog(\"SERIALIZER\", \"Created data directory.\");\n }\n\n if (file.delete()) {\n Logger.internalLog(\"SERIALIZER\", \"Overwrote previous data.\");\n } else {\n Logger.internalLog(\"SERIALIZER\", \"Writing new data.\");\n }\n\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(objects);\n objectOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@JsonProperty(\"name\")\n public void setName(String name) {\n this.name = name;\n }",
"@JsonProperty(\"name\")\n public void setName(String name) {\n this.name = name;\n }",
"public org.dom4j.Element writeXML(String name) throws Exception {\n org.dom4j.Element el = org.dom4j.DocumentHelper.createElement(name);\n\n if(getType() != null)\n el.addAttribute(\"type\", getType());\n if(getAction() != null)\n el.addAttribute(\"action\", getAction().toString());\n if(getDirection() != null)\n el.addAttribute(\"direction\", getDirection().toString());\n if(getContent() != null)\n el.addAttribute(\"content\", getContent());\n if(getIterations() != null)\n el.addAttribute(\"iterations\", org.jbrain.xml.binding._TypeConverter.buildInteger(getIterations()));\n if(getAsynchronous() != null)\n el.addAttribute(\"asynchronous\", org.jbrain.xml.binding._TypeConverter.buildBoolean(getAsynchronous()));\n return el;\n }",
"public void set_Name(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n\tpublic void writeExternal(ObjectOutput out) throws IOException {\n\t\tout.writeObject(name);\n\t\tout.writeInt(i);\n\t\t\n\t}",
"@ToString\n @Override\n public String toString() {\n return name;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"[name:]\"+name;\n\t}",
"public static void speichere(Object objekt, String name)\r\n\t{\r\n\t\tPrintWriter writer = SpeicherUtils.erstelleWriterInDatei(SpeicherUtils.erstelleDatei(name));\r\n\t\tnew GsonBuilder().enableComplexMapKeySerialization().create().toJson(objekt, writer);\r\n\t\twriter.close();\r\n\t}",
"String serialize();",
"public org.dom4j.Element writeXML(String name) throws Exception {\n org.dom4j.Element el = org.dom4j.DocumentHelper.createElement(name);\n\n if(getPort() != null)\n el.addAttribute(\"port\", org.jbrain.xml.binding._TypeConverter.buildInteger(getPort()));\n return el;\n }",
"public static void writeObjectToDisk(Object obj, String name) throws IOException {\r\n\t\t// Create file output stream\r\n\t\tFileOutputStream fileOutStr = new FileOutputStream(name);\r\n\t\t// Create object output stream and write object\r\n\t\tObjectOutputStream objOutStr = new ObjectOutputStream(fileOutStr);\r\n\t\tobjOutStr.writeObject(obj);\r\n\t\t// Close all streams\r\n\t\tobjOutStr.close();\r\n\t\tfileOutStr.close();\r\n\t\tSystem.out.printf(\"Serialized data is saved in a file - \" + name); // Printing message and file name which is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// saved\r\n\t}",
"@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}",
"public void serialize() {\n\t\t\n\t}",
"public void serialize(String fileName)\r\n\t{\r\n\t\ttry (ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream(fileName));)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tout.writeObject(this);\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void writeFieldName(String name)\n/* */ throws IOException\n/* */ {\n/* 124 */ int status = this._writeContext.writeFieldName(name);\n/* 125 */ if (status == 4) {\n/* 126 */ _reportError(\"Can not write a field name, expecting a value\");\n/* */ }\n/* 128 */ _writeFieldName(name, status == 1);\n/* */ }",
"@Override\n\tpublic void setName(String name) {\n\t\theldObj.setName(name);\n\t}",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void set_name(String _name) {\n\t\tthis._name = _name;\n\t}",
"@Override\n public String toString()\n {\n return (name);\n }",
"public String toString() {return name;}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public XML2JSONObject(String name) {\r\n setName(name);\r\n setType(Type.String);\r\n }",
"public final Name name(String name)\n {\n Node n = this.getNode();\n if (n == null) {\n System.out.println(\"FXRequestImpl::name() null node\");\n }\n\n Name nname = n.getName();\n if (nname == null) {\n System.out.println(\"FXRequestImpl::name() null nodename\");\n }\n\n NameTable nt = (NameTable) nname.getCreator();\n if (nt == null) {\n System.out.println(\"FXRequestImpl::name() null nametable\");\n }\n\n return nt.createName(name);\n // return ((NameTable) this.getNode().getName().getCreator()).createName(name);\n }",
"@Override\n public String toString() {\n return name;\n }",
"public abstract boolean serializeExternalData(String name, String path);",
"public void serialize( final SerializerOutputStream out )\n throws SerializationException\n {\n out.writeByte( (byte) 1 ); // version\n out.writeString( name );\n if( properties != null && properties.size() > 0 )\n {\n out.writeInt( properties.size() );\n for( final Enumeration i = properties.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final ScriptingClass clazz = (ScriptingClass)\n properties.get( name );\n out.writeString( name );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( methods != null && methods.size() > 0 )\n {\n out.writeInt( methods.size() );\n for( final Enumeration i = methods.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final Method method = (Method) methods.get( name );\n out.writeString( name );\n method.serialize( out );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( ancestors != null && ancestors.size() > 0 )\n {\n final int size = ancestors.size();\n out.writeInt( size );\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n }",
"@Override\n @XmlElement(name = \"name\", required = true)\n public synchronized InternationalString getName() {\n return name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n public String toString() {\n return name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name;\n\n\t}",
"public void write(StringBuffer buffer) { name.write(buffer); }",
"@Override\r\n public String toString() {\r\n return name;\r\n }",
"void setName(String name) {\n this.name = name;\n }",
"@Override\n public final String toString() {\n return name;\n }",
"@Override\n public final String toString() {\n return name;\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name) {\n\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(AXValue name) {\n this.name = name;\n }",
"@JacksonXmlProperty(isAttribute = true, localName = \"name\")\n public Builder name(String name) {\n this.name = name;\n return this;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"@Override\n public String toString(){\n return name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }"
] |
[
"0.6665875",
"0.66342986",
"0.59949005",
"0.5938038",
"0.5919492",
"0.5918538",
"0.5918538",
"0.59131896",
"0.5892724",
"0.58845055",
"0.5868817",
"0.5865027",
"0.58581764",
"0.57888496",
"0.5783508",
"0.5724715",
"0.57081413",
"0.57020533",
"0.5687603",
"0.56791705",
"0.5652207",
"0.562795",
"0.562795",
"0.562795",
"0.562795",
"0.562317",
"0.5613473",
"0.5597675",
"0.5596984",
"0.5596984",
"0.5576084",
"0.5572181",
"0.5559812",
"0.55592376",
"0.55589515",
"0.5549902",
"0.5545916",
"0.5545916",
"0.5545916",
"0.55403167",
"0.55369514",
"0.55369514",
"0.552961",
"0.552961",
"0.552961",
"0.552961",
"0.552961",
"0.552961",
"0.552961",
"0.552961",
"0.552961",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5525437",
"0.5520135",
"0.5514161",
"0.5511551",
"0.5510618",
"0.55095285",
"0.5485068",
"0.5483032",
"0.5479652",
"0.5479652",
"0.5472567",
"0.54719067",
"0.54681736",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.5465181",
"0.54529893",
"0.5445318",
"0.54385626",
"0.5438281",
"0.5438281",
"0.5438281",
"0.5438281",
"0.5436594",
"0.54334664",
"0.54310817",
"0.54310817",
"0.54310817",
"0.54310817",
"0.54310817",
"0.54310817"
] |
0.7358582
|
0
|
Serializes the specified variant.
|
private void _writeVariant(final Variant variant) throws IOException {
_out.startObject();
_writeReifier(variant);
_writeItemIdentifiers(variant);
_writeScope(variant);
_writeDatatypeAware(variant);
_out.endObject();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setVariantId(final Integer variantId);",
"@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = ProductVariantImpl.class)\npublic interface ProductVariant {\n\n /**\n * <p>The product that contains this variant.</p>\n * @return product\n */\n @NotNull\n @Valid\n @JsonProperty(\"product\")\n public ProductReference getProduct();\n\n /**\n * <p>The state of the product variant.</p>\n * @return staged\n */\n @NotNull\n @JsonProperty(\"staged\")\n public Boolean getStaged();\n\n /**\n * <p>The id of the product variant.</p>\n * @return variantId\n */\n @NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();\n\n /**\n * <p>The product that contains this variant.</p>\n * @param product value to be set\n */\n\n public void setProduct(final ProductReference product);\n\n /**\n * <p>The state of the product variant.</p>\n * @param staged value to be set\n */\n\n public void setStaged(final Boolean staged);\n\n /**\n * <p>The id of the product variant.</p>\n * @param variantId value to be set\n */\n\n public void setVariantId(final Integer variantId);\n\n /**\n * factory method\n * @return instance of ProductVariant\n */\n public static ProductVariant of() {\n return new ProductVariantImpl();\n }\n\n /**\n * factory method to create a shallow copy ProductVariant\n * @param template instance to be copied\n * @return copy instance\n */\n public static ProductVariant of(final ProductVariant template) {\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(template.getProduct());\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of ProductVariant\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static ProductVariant deepCopy(@Nullable final ProductVariant template) {\n if (template == null) {\n return null;\n }\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(com.commercetools.ml.models.common.ProductReference.deepCopy(template.getProduct()));\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }\n\n /**\n * builder factory method for ProductVariant\n * @return builder\n */\n public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }\n\n /**\n * create builder for ProductVariant instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static ProductVariantBuilder builder(final ProductVariant template) {\n return ProductVariantBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withProductVariant(Function<ProductVariant, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductVariant>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductVariant>\";\n }\n };\n }\n}",
"public int getVariantId() {\n return variantId_;\n }",
"@Get\n public Representation represent(Variant variant) throws ResourceException {\n Representation resultRepresentation = null;\n try {\n //resultRepresentation = new StringRepresentation(\n // \t\t new JaxbRepresentation(MediaType.TEXT_XML, this.student).getText());\n resultRepresentation =\n new JaxbRepresentation(MediaType.TEXT_XML, this.student);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n return resultRepresentation; \n }",
"public int getVariantId() {\n return variantId_;\n }",
"@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"ItemVariant getItemVariant(Integer itemVariantId);",
"public void writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 545 */ _verifyValueWrite(\"write a binary value\");\n/* */ \n/* 547 */ if (this._outputTail >= this._outputEnd) {\n/* 548 */ _flushBuffer();\n/* */ }\n/* 550 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* 551 */ _writeBinary(b64variant, data, offset, offset + len);\n/* */ \n/* 553 */ if (this._outputTail >= this._outputEnd) {\n/* 554 */ _flushBuffer();\n/* */ }\n/* 556 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* */ }",
"@Override\n public void serialize(Ingredient value, JsonGenerator gen, SerializerProvider provider) throws IOException {\n gen.writeFieldName(value.getName());\n }",
"@Nullable\n public Long getVariantId() {\n return this.variantId;\n }",
"public abstract String serialise();",
"public DataResourceBuilder _variant_(Resource _variant_) {\n this.dataResourceImpl.setVariant(_variant_);\n return this;\n }",
"@Override\r\n\tpublic void serializar() {\n\r\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 }",
"public SimilarProductBuilder variantId(@Nullable final Long variantId) {\n this.variantId = variantId;\n return this;\n }",
"@Override\n\tprotected void writeEntityToNBT(NBTTagCompound tag) {\n\t\ttag.setByte(\"Fuse\", (byte)this.fuse);\n\t\ttag.setByte(\"Variant\", (byte)this.variant);\n\t}",
"private Variant getVariantToIndex(Variant variant) {\n VariantBuilder variantBuilder = new VariantBuilder(variant.getChromosome(),\n variant.getStart(),\n variant.getEnd(),\n variant.getReference(),\n variant.getAlternate());\n\n variantBuilder.setAttributes(parseInfoAttributes(variant));\n\n // Samples data contains the phase\n if (variant.getStudies() != null && !variant.getStudies().isEmpty()) {\n variantBuilder.setSamplesData(variant.getStudies().get(0).getSamplesData());\n variantBuilder.setFormat(variant.getStudies().get(0).getFormat());\n }\n\n return variantBuilder.build();\n }",
"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 Sat4JVariantElements getSat4JVariantAccess() {\n\t\treturn eSat4JVariant;\n\t}",
"@JsonProperty(\"variant_ids\")\n public List<Object> getVariantIds() {\n return variantIds;\n }",
"public void serialize() {\n\t\t\n\t}",
"@Override\n public void serializeWithType(final QuadBackgroundComponent value, final JsonGenerator generator,\n final SerializerProvider provider, final TypeSerializer serializer) throws IOException {\n serialize(value, generator, provider);\n }",
"public static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductVariant>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductVariant>\";\n }\n };\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}",
"public abstract <T> SerializationStream writeObject(T t);",
"@Override\n\tpublic void serialize(DataOutputStream stream) throws IOException {\n\t\tsuper.serialize(stream);\n\t\tstream.writeInt(getState());\n\t}",
"@JsonProperty(\"variant_ids\")\n public void setVariantIds(List<Object> variantIds) {\n this.variantIds = variantIds;\n }",
"private static void sendValue(final ProducerTemplate producerTemplate, final Variant variant) {\n producerTemplate.sendBodyAndHeader(variant, \"await\", true);\n }",
"String serialize();",
"public Builder addVariant(Variant variant) {\n variants.add(variant);\n return this;\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public int[] getVariantMeta() { return new int[] { 0 }; }",
"public String toJSON(int classIndex, int classSize){\n String out = \"{\\n\";\n out += \"\\\"switch\\\" : \\\"\" + this.rule.getDpid() + \"\\\", \\n\";\n out += \"\\\"name\\\" : \\\"\" + this.rule.getName() + \"\\\", \\n\";\n out += \"\\\"priority\\\" : \\\"\" + this.rule.getPriority() + \"\\\", \\n\";\n out += \"\\\"in_port\\\" : \\\"\" + this.rule.getInPort() + \"\\\", \\n\";\n out += \"\\\"active\\\" : \\\"\" + ( isApplicable(classIndex, classSize) ? \"true\" : \"false\" ) + \"\\\", \\n\";\n out += \"\\\"actions\\\" : \\\"\" + this.rule.getAction() + \"\\\" \\n\";\n out += \"}\";\n return out;\n }",
"@ApiModelProperty(value = \"The variant of the CPU\")\n public String getVariant() {\n return variant;\n }",
"private void _writeName(final Name name) throws IOException {\n _out.startObject();\n _writeReifier(name);\n _writeItemIdentifiers(name);\n if (!name.getType().equals(_defaultNameType)) {\n _writeType(name);\n }\n _writeScope(name);\n _writeKeyValue(\"value\", name.getValue());\n Set<Variant> variants = name.getVariants();\n if (!variants.isEmpty()) {\n _out.key(\"variants\");\n _out.startArray();\n for (Variant variant: variants) {\n _writeVariant(variant);\n }\n _out.endArray();\n }\n _out.endObject();\n }",
"@Override\n\tpublic int getSerializationId() {\n\t\treturn SERIALIZATION_ID;\n\t}",
"@Override\n public void serialize(QuadBackgroundComponent value, JsonGenerator gen, SerializerProvider provider) throws IOException {\n\n gen.writeStartObject();\n gen.writeStringField(\"@class\", \"com.simsilica.lemur.component.QuadBackgroundComponent\");\n gen.writeObjectField(\"color\", value.getColor());\n gen.writeObjectField(\"margin\", value.getMargin());\n gen.writeNumberField(\"zOffset\", value.getZOffset());\n gen.writeBooleanField(\"lit\", value.getMaterial().isLit());\n gen.writeStringField(\"blendMode\", value.getMaterial().getMaterial().getAdditionalRenderState().getBlendMode().toString());\n gen.writeEndObject();\n\n }",
"@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }",
"String toJSON();",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"public abstract void serialize(OutputStream stream, T object) throws IOException;",
"public String toJson() {\n\t\treturn Serializer.serializeLevelPack(this);\n\t}",
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }",
"void writeObject(OutputSerializer out) throws java.io.IOException;",
"private void serializeMixed(final Mixed mixed, final StringBuffer buffer)\n {\n serializeObject(mixed.getValue(), buffer);\n }",
"@Override\n public void serialize( SecurityIdentifier value, JsonGenerator gen, SerializerProvider serializers )\n throws IOException, JsonProcessingException {\n gen.writeString( value.toString() );\n }",
"public abstract JsonElement serialize();",
"java.lang.String getSer();",
"@Override\n public String toJsonString() {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferSerializer());\n return gsonBuilder.create().toJson(this);\n }",
"private void writeObject(ObjectOutputStream s) throws IOException\t\n\t{\n\t\ts.writeInt(score);\t\n\t\ts.writeDouble(this.centre.getX());\t\n\t\ts.writeDouble(this.centre.getY());\t\n\t\ts.writeObject(rectangle.getFill().toString());\t\n//\t\tSystem.out.println(\"something\");\t\n\t}",
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"public byte[] serialize();",
"@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}",
"com.google.protobuf.ByteString getSerializedItem();",
"void addVariant(PushApplication pushApp, Variant variant);",
"com.google.protobuf.ByteString\n getSerBytes();",
"public TileVariant getBaseVariant() {\r\n\t\treturn baseVariant;\r\n\t}",
"public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }",
"public void serialize( final SerializerOutputStream out )\n throws SerializationException\n {\n out.writeByte( (byte) 1 ); // version\n out.writeString( name );\n if( properties != null && properties.size() > 0 )\n {\n out.writeInt( properties.size() );\n for( final Enumeration i = properties.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final ScriptingClass clazz = (ScriptingClass)\n properties.get( name );\n out.writeString( name );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( methods != null && methods.size() > 0 )\n {\n out.writeInt( methods.size() );\n for( final Enumeration i = methods.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final Method method = (Method) methods.get( name );\n out.writeString( name );\n method.serialize( out );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( ancestors != null && ancestors.size() > 0 )\n {\n final int size = ancestors.size();\n out.writeInt( size );\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n }",
"public void serialize(RevisionDataOutput dataOutput, T object) throws IOException {\n serialize(dataOutput.getBaseStream(), object);\n }",
"public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }",
"public Long getTaskVariantId() {\n return taskVariantId;\n }",
"public int writeBinary(Base64Variant b64variant, InputStream data, int dataLength)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 564 */ _verifyValueWrite(\"write a binary value\");\n/* */ \n/* 566 */ if (this._outputTail >= this._outputEnd) {\n/* 567 */ _flushBuffer();\n/* */ }\n/* 569 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* 570 */ byte[] encodingBuffer = this._ioContext.allocBase64Buffer();\n/* */ int bytes;\n/* */ try { int bytes;\n/* 573 */ if (dataLength < 0) {\n/* 574 */ bytes = _writeBinary(b64variant, data, encodingBuffer);\n/* */ } else {\n/* 576 */ int missing = _writeBinary(b64variant, data, encodingBuffer, dataLength);\n/* 577 */ if (missing > 0) {\n/* 578 */ _reportError(\"Too few bytes available: missing \" + missing + \" bytes (out of \" + dataLength + \")\");\n/* */ }\n/* 580 */ bytes = dataLength;\n/* */ }\n/* */ } finally {\n/* 583 */ this._ioContext.releaseBase64Buffer(encodingBuffer);\n/* */ }\n/* */ \n/* 586 */ if (this._outputTail >= this._outputEnd) {\n/* 587 */ _flushBuffer();\n/* */ }\n/* 589 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* 590 */ return bytes;\n/* */ }",
"public int serialize(VirtualPointer vp, Object val);",
"void serialize(String fieldName, Object value) throws IOException {\n if (value instanceof Node) {\n serialize(fieldName, singleton((Node)value));\n } else if (value instanceof String) {\n serialize(fieldName, (String)value);\n } else if (value instanceof Boolean) {\n serialize(fieldName, (Boolean)value);\n } else if (value instanceof Integer) {\n serialize(fieldName, (Integer)value);\n } else if (value instanceof Long) {\n serialize(fieldName, (Long)value);\n } else if (value instanceof Float) {\n serialize(fieldName, (Float)value);\n } else if (value instanceof Double) {\n serialize(fieldName, (Double)value);\n } else if (value instanceof List) {\n writeArray(fieldName, (List<String>) value);\n } else {\n throw new IllegalArgumentException(\"Don't know how to serialize \" + value.getClass());\n }\n }",
"public static void Serialize(AsonValue obj,OutputStream os, int flag) throws java.io.IOException {\n new AsonSerializer(flag).serialize(obj, os);\n }",
"@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(country.toString());\n\t\targ0.writeUTF(tag.toString());\n\t}",
"public String toJson() { return new Gson().toJson(this); }",
"public String[] getVariantNames() { return new String[] { \"normal\" }; }",
"public java.lang.String getSer() {\n java.lang.Object ref = ser_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private void writeObject(ObjectOutputStream oos) throws IOException {\n oos.defaultWriteObject();\n /*if(serializeEverything) {\n //The cast to Serializable is necessary to avoid Sonar bug issues because List does not implement Serializable but all implementations of List (such as ArrayList) in effect implements Serializable\n //oos.writeObject((Serializable)cardPower);\n oos.writeObject((Serializable)weapons);\n oos.writeInt(points);\n }\n serializeEverything = false;*/\n }",
"protected abstract void write (Object val);",
"private void method_979(ObjectOutputStream var1) {\n var1.defaultWriteObject();\n var1.writeObject(this.a);\n }",
"public ByteArraySegment serialize(T object) throws IOException {\n val result = new ByteBufferOutputStream();\n serialize(result, object);\n return result.getData();\n }",
"public VariantDto updateVariant(CreateUpdateVariantDto dto, String id) throws VariantNotFound {\n Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());\n\n variant.setQuestion(dto.getQuestion());\n variant.setVariant(dto.getVariant());\n\n return mapper.toDto(variant);\n }",
"protected abstract T getResource(ItemVariant currentVariant);",
"public Builder setVariantId(int value) {\n\n variantId_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void serializeObject(Object o, int hashCode, String destDir) {\n // throw new NotImplementedException();\n }",
"public java.lang.String getSer() {\n java.lang.Object ref = ser_;\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 ser_ = s;\n }\n return s;\n }\n }",
"private void method_277(ObjectOutputStream var1) {\n var1.defaultWriteObject();\n var1.writeObject(this.a);\n }",
"private static void outputVertex(RootedTree tree, StringBuffer sb, Object v) {\r\n\t\tif (!tree.isLeaf(v)) {\r\n\t\t\tsb.append('(');\r\n\t\t\tList l = tree.getChildrenOf(v);\r\n\t\t\tfor (int i = 0; i < l.size(); i++) {\r\n\t\t\t\toutputVertex(tree, sb, l.get(i));\r\n\t\t\t\tif (i != l.size() - 1) sb.append(',');\r\n\t\t\t}\r\n\t\t\tsb.append(')');\r\n\t\t}\r\n\t\t// Call this to make the vertex's label nicely formatted for Nexus\r\n\t\t// output.\r\n\t\tString s = getNexusCompliantLabel(tree, v);\r\n\t\tif (s.length() != 0) sb.append(s);\r\n\t\tObject p = tree.getParentOf(v);\r\n\t\tif (p != null) {\r\n\t\t\tdouble ew = tree.getEdgeWeight(tree.getEdge(p, v));\r\n\t\t\tif (ew != 1.0) sb.append(\":\" + Double.toString(ew));\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void writeTo(OutputStream outputStream) {\n\t\ttry {\n\t\t\toutputStream.write(param.jsonParam.getBytes());\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 abstract String toJson();",
"private void method_157(ObjectOutputStream var1) {\n var1.defaultWriteObject();\n var1.writeObject(this.a());\n }",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getSnapshotId() != null)\n sb.append(\"SnapshotId: \").append(getSnapshotId()).append(\",\");\n if (getVolumeSize() != null)\n sb.append(\"VolumeSize: \").append(getVolumeSize()).append(\",\");\n if (getVolumeType() != null)\n sb.append(\"VolumeType: \").append(getVolumeType()).append(\",\");\n if (getDeleteOnTermination() != null)\n sb.append(\"DeleteOnTermination: \").append(getDeleteOnTermination()).append(\",\");\n if (getIops() != null)\n sb.append(\"Iops: \").append(getIops()).append(\",\");\n if (getEncrypted() != null)\n sb.append(\"Encrypted: \").append(getEncrypted()).append(\",\");\n if (getThroughput() != null)\n sb.append(\"Throughput: \").append(getThroughput());\n sb.append(\"}\");\n return sb.toString();\n }",
"void serialize(Object obj, OutputStream stream) throws IOException;",
"String objectWrite();",
"public String toJSON() {\n return new Gson().toJson(this);\n }",
"@Override\n public byte[] serialize() throws IOException {\n throw new UnsupportedOperationException(\"Not implemented\");\n }",
"public void writeValue(Object value) throws IOException\n {\n if (value == null) {\n writeNullValue();\n return;\n }\n _writeValue(value, _writerLocator.findSerializationType(value.getClass()));\n }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public com.google.protobuf.ByteString\n getSerBytes() {\n java.lang.Object ref = ser_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ser_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public Map<String, Map<String, String>> getVariantStringMap() {\n Map<String, Map<String, String>> variantStringMap = this.variantStringMap;\n if (variantStringMap == null) { // FAST MUTABLE\n // rebuild this, needed for compat\n variantStringMap = new LinkedHashMap<>();\n for(VariantInfo variant : getVariantList()) {\n variantStringMap.put(variant.getName(), variant.propsToStringMap());\n }\n variantStringMap = Collections.unmodifiableMap(variantStringMap);\n this.variantStringMap = variantStringMap;\n }\n return variantStringMap;\n }",
"public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;",
"@Override\r\n public void serializar() throws IOException {\n File fich=new File(\"datos.bin\");\r\n FileOutputStream fos = new FileOutputStream(fich);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(gestor);\r\n oos.close();\r\n }"
] |
[
"0.5744507",
"0.5642358",
"0.55440336",
"0.5530658",
"0.5503503",
"0.54651964",
"0.5294507",
"0.5282288",
"0.5240127",
"0.52398485",
"0.5231524",
"0.52309835",
"0.52077436",
"0.5203246",
"0.5186137",
"0.51007736",
"0.509404",
"0.50101084",
"0.49782535",
"0.49727535",
"0.49403265",
"0.49298206",
"0.49106985",
"0.4908958",
"0.49074692",
"0.49002647",
"0.48733628",
"0.48660666",
"0.4842106",
"0.48370236",
"0.4833584",
"0.4822422",
"0.4822422",
"0.4820377",
"0.4816435",
"0.4815698",
"0.4797906",
"0.47761443",
"0.47713614",
"0.4771163",
"0.4770372",
"0.4762261",
"0.4759867",
"0.47155014",
"0.47032204",
"0.4683224",
"0.46763304",
"0.46721038",
"0.4671768",
"0.4669068",
"0.46511456",
"0.46434987",
"0.46421936",
"0.46404344",
"0.46402943",
"0.4635041",
"0.46333146",
"0.46283957",
"0.4611339",
"0.45874378",
"0.4568605",
"0.45653757",
"0.4552765",
"0.45395166",
"0.453659",
"0.4528625",
"0.4521183",
"0.45200604",
"0.45173913",
"0.4515102",
"0.4509191",
"0.45073542",
"0.45034987",
"0.449925",
"0.44971818",
"0.44896188",
"0.44881538",
"0.4483508",
"0.44597858",
"0.4455502",
"0.44517365",
"0.44512767",
"0.44504967",
"0.444502",
"0.44442534",
"0.44349152",
"0.4433414",
"0.4430967",
"0.44295767",
"0.44288963",
"0.44233617",
"0.4420062",
"0.4419201",
"0.44088343",
"0.4405734",
"0.44049567",
"0.44043663",
"0.4399278",
"0.43935168",
"0.4393021"
] |
0.76232827
|
0
|
Serializes the specifed occurrence.
|
private void _writeOccurrence(final Occurrence occ) throws IOException {
_out.startObject();
_writeReifier(occ);
_writeItemIdentifiers(occ);
_writeType(occ);
_writeScope(occ);
_writeDatatypeAware(occ);
_out.endObject();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId()+\"-\"+this.getOccurrenceMark();\n\t}",
"@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }",
"public DateTime getOccurrenceTime() { return occurrenceTime; }",
"@Override\n\tpublic String toString() {\n\t\treturn this.element +\" \"+duplicateCount+\" \"+probeCount;\n\t}",
"public Object writeReplace() {\n return new SerializedForm(this.ranges);\n }",
"@Override\n public void write(GeoJsonDiseaseOccurrenceFeatureCollection occurrenceData, File targetFile)\n throws IOException {\n LOGGER.info(String.format(\n LOG_WRITING_OCCURRENCE_DATA, occurrenceData.getFeatures().size(), targetFile.toString()));\n if (!occurrenceData.getCrs().equals(GeoJsonNamedCrs.createEPSG4326())) {\n LOGGER.warn(LOG_TOP_LEVEL_CRS_WARN);\n throw new IllegalArgumentException(\"Only EPSG:4326 is supported.\");\n }\n\n\n try (BufferedWriter writer = createBufferedWriter(targetFile)) {\n writer.write(extractCsvHeaderLine());\n writer.newLine();\n\n for (GeoJsonDiseaseOccurrenceFeature occurrence : occurrenceData.getFeatures()) {\n if (occurrence.getCrs() != null) {\n LOGGER.warn(LOG_FEATURE_CRS_WARN);\n throw new IllegalArgumentException(\"Feature level CRS are not supported.\");\n }\n\n writer.write(extractCsvLine(occurrence));\n writer.newLine();\n }\n }\n }",
"@Override\r\n\tpublic void writeRents() {\n\t\t\r\n\t}",
"public void serialize() {\n\t\t\n\t}",
"private void writeObject(ObjectOutputStream s) throws IOException\t\n\t{\n\t\ts.writeInt(score);\t\n\t\ts.writeDouble(this.centre.getX());\t\n\t\ts.writeDouble(this.centre.getY());\t\n\t\ts.writeObject(rectangle.getFill().toString());\t\n//\t\tSystem.out.println(\"something\");\t\n\t}",
"@Override\r\n public String toString() {\n return this.name + \":\" + this.score + \":\" + this.freq;\r\n }",
"public String writeToString() {\n\t\tString s = \"\"; \n\t\ts += this.term + \",\" + this.interestRate;\n\t\treturn s;\n\t}",
"public void testSetOccurrence() \n throws Exception\n {\n \n String id = \"occ_pollux\";\n Occurrence occ = (Occurrence) tm.getObjectByID(id);\n\n // sets association directly\n tag.setOccurrence(occ);\n \n assertEquals(occ, tag.getOccurrence());\n\n }",
"@Serial\n\tprivate Object writeReplace() {\n\t\treturn new SerialProxy(SerialProxy.TRACK, this);\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\r\n\t\treturn String.format(\"%s (%d)\", getTagName(), getFreq());\r\n\t}",
"@Override\r\n\tpublic String toString(int identation) {\r\n\t\tif(identation <0)\r\n\t\t\tthrow new IllegalArgumentException(\"identation cannot be <0\");\r\n\t\tString header;\r\n\t\tif(identation ==0) header=\"\";\r\n\t\t else header = String.format(String.format(\"%%%ss\", identation), \"\");\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tbuilder.append(super.toString(identation));\r\n\t\tbuilder.append(header);\r\n\t\tbuilder.append(\" Observations:\\n\\n\");\r\n\t\tbuilder.append(header);\r\n\t\tbuilder.append(expectations.toString(6));\r\n\t\tbuilder.append(\"\\n\");\r\n\t\tfor(Integer i: momentObservation.keySet()) {\r\n\t\t\tbuilder.append(header);\r\n\t\t\tbuilder.append(momentObservation.get(i).toString(6));\r\n\t\t}\r\n\t\tbuilder.append(\"\\n\");\r\n\t\treturn builder.toString();\r\n\t}",
"public String toString(){\r\n return (\"The word '\" + wordSearched + \"' appears: \" + occurrences + \", time(s) in the file.\"); \r\n }",
"public String toString()\n {\n return this.j2ksec + \",\" + this.eid + \",\" + this.lat + \",\" + this.lon + \",\" + this.depth + \",\" + this.prefmag;\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tString sTr = this.str + \":\" + this.freq;\n\t\treturn sTr;\n\t}",
"void writeCustom(Object custom);",
"private void _writeVariant(final Variant variant) throws IOException {\n _out.startObject();\n _writeReifier(variant);\n _writeItemIdentifiers(variant);\n _writeScope(variant);\n _writeDatatypeAware(variant);\n _out.endObject();\n }",
"@Override\n public void serialize( SecurityIdentifier value, JsonGenerator gen, SerializerProvider serializers )\n throws IOException, JsonProcessingException {\n gen.writeString( value.toString() );\n }",
"@Override // com.google.common.collect.ImmutableSortedSet, com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection\n public Object writeReplace() {\n return new AsSetSerializedForm(ImmutableRangeSet.this.ranges, this.domain);\n }",
"@Override\n protected void serialize(OutputStream os) throws IOException {\n writeInt(os,_gateCounter);\n }",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n PropositionHelper.write(ostream,value);\r\n }",
"public String toString() {\n\t\treturn this.getData().toLowerCase() + \": \" + this.frequency;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString st = \"(\";\n\t\tfor (int i = 0; i < m_elems.length; i++){\n\t\t\tif (i>0)\n\t\t\t\tst+=\",\";\n\t\t\tst += m_elems[i];\n\t\t}\n\t\tst += \"):\" + String.valueOf(m_frequency);\n\t\treturn st;\n\t}",
"@Override\n @NoProxy\n protected void toStringSegment(final ToString ts) {\n super.toStringSegment(ts);\n ts.newLine();\n ts.append(\"entityType\", getEntityType());\n ts.append(\"deleted\", getDeleted());\n ts.newLine();\n ts.append(\"dtstamp\", getDtstamp());\n ts.newLine();\n ts.append(\"dtstart\", getDtstart());\n ts.newLine();\n ts.append(\"dtend\", getDtend());\n\n ts.newLine();\n ts.append(\"status\", getStatus());\n ts.newLine();\n ts.append(\"lastmod\", getLastmod());\n ts.append(\"created\", getCreated());\n ts.append(\"stag\", getStag());\n ts.newLine();\n ts.append(\"priority\", getPriority());\n\n if (getPercentComplete() != null) {\n ts.append(\"percentComplete\", getPercentComplete());\n }\n\n if (getCompleted() != null) {\n ts.append(\"completed\", getCompleted());\n }\n\n ts.append(\"classification\", getClassification());\n if (getGeo() != null) {\n ts.append(\"geo\", getGeo());\n }\n\n ts.newLine();\n ts.append(\"uid\", getUid());\n ts.newLine();\n ts.append(\"name\", getName());\n\n ts.newLine();\n ts.append(\"ctoken\", getCtoken());\n\n /* ---------------- recurrence information */\n ts.newLine();\n ts.append(\"\\n, getRecurring\", getRecurring());\n\n if (getRecurrenceId() != null) {\n ts.append(\"recurrenceId\", getRecurrenceId());\n } else {\n if (hasRrules()) {\n ts.append(\"rrules\", getRrules());\n }\n\n if (hasExrules()) {\n ts.append(\"exrules\", getExrules());\n }\n\n if (hasExdates()) {\n ts.append(\"exdates\", getExdates());\n }\n\n if (hasRdates()) {\n ts.append(\"rdates\", getRdates());\n }\n }\n\n ts.newLine();\n ts.append(\"organizer\", getOrganizer());\n\n if (getNumRecipients() > 0) {\n ts.append(\"recipients\", getRecipients());\n }\n\n if (getNumCategories() > 0) {\n ts.newLine();\n ts.append(\"categories\", getCategories());\n }\n\n if (getNumComments() > 0) {\n ts.newLine();\n ts.append(\"comments\", getComments());\n }\n\n if (getNumContacts() > 0) {\n ts.newLine();\n ts.append(\"contacts\", getContacts());\n }\n\n if (getNumSummaries() > 0) {\n ts.newLine();\n ts.append(\"summary\", getSummaries());\n }\n\n if (getNumDescriptions() > 0) {\n ts.newLine();\n ts.append(\"description\", getDescriptions());\n }\n\n if (getNumResources() > 0) {\n ts.newLine();\n ts.append(\"resource\", getResources());\n }\n\n if (getNumAttendees() > 0) {\n ts.newLine();\n ts.append(\"attendee\", getAttendees(), true);\n }\n\n ts.newLine();\n ts.append(\"sequence\", getSequence());\n ts.append(\"scheduleMethod\", getScheduleMethod());\n ts.newLine();\n ts.append(\"originator\", getOriginator());\n ts.append(\"scheduleState\", getScheduleState());\n\n\n if (getNumRequestStatuses() > 0) {\n ts.append(\"requestStatuses\", getRequestStatuses());\n }\n\n if (getRelatedTo() != null) {\n ts.append(\"relatedTo\", getRelatedTo());\n }\n\n if (getNumAlarms() > 0) {\n ts.newLine();\n ts.append(\"alarms\", getAlarms(), true);\n }\n\n ts.append(\"pollItemId\", getPollItemId());\n ts.append(\"pollCandidate\", getPollCandidate());\n\n if (getEntityType() == IcalDefs.entityTypeVpoll) {\n ts.append(\"pollWinner\", getPollWinner());\n ts.append(\"pollMode\", getPollMode());\n ts.append(\"pollProperties\", getPollProperties());\n ts.append(\"pollAcceptResponse\", getPollAcceptResponse());\n ts.append(\"pollItems\", getPollItems());\n }\n }",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"public abstract String serialise();",
"Object writeReplace() {\n return NodeSerialization.from(this);\n }",
"protected abstract void write (Object val);",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\n {\n autorisationCollabInterditeHelper.write(ostream,value);\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Index: \" + getIndex() + \"\\n\");\n\t\tsb.append(\"Freq : \" + getFreq() + \"\\n\");\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder newString = new StringBuilder();\n newString.append(\"Event{\" +\n \"eventID: \" + eventID + \", \" +\n \"descendant: \" + descendant + \", \" +\n \"personID: \" + personID + \", \" +\n \"eventType: \" + eventType + \", latitude: \" + latitude +\n \", longitude: \" + longitude +\n \", country: \" + country +\n \", city: \" + city +\n \", year: \" + year + \"}\");\n return newString.toString();\n }",
"private void writeObject(java.io.ObjectOutputStream out) throws IOException{\n out.writeInt(p);\n out.writeInt(maxNumBars);\n out.writeObject(bars);\n out.writeInt(rightBoundary);\n out.writeDouble(totalFrequencies);\n }",
"public String ToFile() {\n\t\tif (ismonitored) {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",1;\");\r\n\t\t} else {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",0;\");\r\n\t\t}\r\n\r\n\t}",
"String objectWrite();",
"@Override\n\tpublic String toString()\n\t{\n\t\tString s = this.name + \" --> [\";\n\t\tfor (int i = 0; i < this.interferences.size(); i++)\n\t\t\ts += this.interferences.get(i).getName() + \", \";\n\t\tif (this.interferences.size() > 0)\n\t\t\ts = s.substring(0, s.length() - 2);\n\t\ts += \"]\";\n\t\tif (this.requiredRegister != -1)\n\t\t\ts += \" Required reg: \" + this.requiredRegister;\n\t\treturn s;\n\t}",
"protected final Object writeReplace() throws ObjectStreamException {\n return replacement;\n }",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}",
"@objid (\"f06e9701-bed5-478b-88af-6a964a67a2f4\")\n EList<Event> getEOccurence();",
"@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }",
"public void writeVisits() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/visits.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(visits);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic String serialize() {\n\t\treturn null;\n\t}",
"java.lang.String getSer();",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n public String toString() {\n return\n ownerId + \"|\" + petId + \"|\" + name + \"|\" + species + \"|\" + gender + \"|\" + active + \"|\" + breed + \"|\" +\n color + \"|\" + birthdayOffset + \"|\" + comment + \"|\" + refVet1 + \"|\" + refVet2 + \"|\" +\n primaryDoctorId + \"|\" + firstVisitOffset + \"|\" + lastVisitOffset + \"|\" + weight;\n }",
"public void writeValue(Object value) throws IOException\n {\n if (value == null) {\n writeNullValue();\n return;\n }\n _writeValue(value, _writerLocator.findSerializationType(value.getClass()));\n }",
"@Override\n public String toString() {\n return value + \" \" + position.name();\n }",
"@Override\n\tpublic String toString() {\n\t\tString resultString=\"VO{categoryCode=\"+categoryCode+\n\t\t\t\t\",categoryName=\"+categoryName+\n\t\t\t\t\",qualifications=[\";\n\t\tfor (Qualification qualification :qualifications) {\n\t\t\t resultString=resultString+\"{\"+qualification.toString()+\"},\";\n\t\t}\n\t\tresultString+=\"]}\";\n\t\treturn resultString;\n\t}",
"public String getValueToRecognizeReq()\n {\n if (valueToRecognizeReq != null)\n {\n Serializer<RecognizedElement> serializer = new Serializer<RecognizedElement>();\n return serializer.serialize(valueToRecognizeReq);\n }\n else\n {\n return \"\"; //$NON-NLS-1$\n }\n }",
"@Override\n public void write() {\n\n }",
"public void dumpValue() {\n // an implementation is only needed for very large hashrecords\n }",
"@Override\n public String toString() {\n return value();\n }",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}",
"@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }",
"private void writeObject(ObjectOutputStream out) throws IOException {\n\tout.defaultWriteObject();\n\tservID.writeBytes(out);\n }",
"@Override\r\n\tpublic void write() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic String toString(int doc) throws IOException {\n\t\t\t\treturn null;\n\t\t\t}",
"public final void setOccurrence(final XMOccurrence o) {\n\t\t_occ.setOccurrence(o);\n\t}",
"public Object writeReplace() {\n return new SerializedForm(this.prototype.getAlgorithm(), this.bytes, this.toString);\n }",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"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 }",
"@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"@Override\r\n\tpublic void serializar() {\n\r\n\t}",
"public void setOccurrences(MultiplicityInterval occurrences) {\n this.occurrences = occurrences;\n }",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn value;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}",
"@Override\n public String toString()\n {\n return s;\n }",
"private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}",
"String serialize();",
"public String toString()\n {\n return this.getGeoEvent().toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}",
"@Override\n\tpublic Object retrieveSerializedObject() {\n\t\treturn explanation;\n\t}",
"public static void save(String indexFileName) throws FileNotFoundException, UnsupportedEncodingException{\n\t\tHashMap<String, String> sCurrentHashMap = globalHash.get(indexFileName);\n\t\t\n\t\tPrintWriter writer = new PrintWriter(indexFileName+\".txt\", \"UTF-8\");\n\n\t\tIterator it = sCurrentHashMap.entrySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tHashMap.Entry<String, String> entry = (HashMap.Entry<String, String>) it.next();\n\t\t\t//if this term appear more than one doc\n\t\t\tif(entry.getValue().length()>1) {\n\t\t\t\tStringTokenizer stDocID = new StringTokenizer(entry.getValue(),\",\");\n\t\t\t\twriter.println(entry.getKey()+\",\"+stDocID.countTokens()+\":<\"+entry.getValue()+\">\");\n\t\t\t} else{\n\t\t\t\twriter.println(entry.getKey()+\",1:<\"+entry.getValue()+\">\");\n\t\t\t}\n\t\t}\n\t\twriter.close();\n\t}",
"org.hl7.fhir.String getObservedSeq();",
"@Override\r\n\tpublic String serialize(Annotation annotation) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void write(WorkVO workVO) {\n\t\tworkMapper.write(workVO);\n\t\t\n\t}",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n NiveauEtudeHelper.write(ostream,value);\r\n }",
"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 }",
"@Override // java.time.chrono.AbstractChronology\n public Object writeReplace() {\n return super.writeReplace();\n }",
"public static void writeObject() {\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n for (Map.Entry<String, CronJob> entry : getInstance().events.entrySet()) {\r\n CronJob event = entry.getValue();\r\n buf.append(entry.getKey());\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getInterval()));\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getStartTime().getTime()));\r\n buf.append(\"|\");\r\n buf.append(event.getCommandString());\r\n buf.append(\"|\");\r\n buf.append(event.getUser());\r\n buf.append(\"|\");\r\n buf.append(event.getUserService());\r\n buf.append(\"\\n\");\r\n }\r\n if (buf.size() > 0) {\r\n try {\r\n OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(FILE, false)));\r\n buf.writeTo(out);\r\n out.flush();\r\n out.close();\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error writing statistics: \" + e);\r\n }\r\n }\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId();\n\t}",
"public String toJson() { return new Gson().toJson(this); }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\t\n\t\tCIntMap termsFrequencies = null;\n\t\tfor( String tag : keySet()) {\n\t\t\tbuf.append(tag);\n\t\t\tbuf.append(\"\\n\");\n\t\t\ttermsFrequencies = get(tag);\n\t\t\tbuf.append(termsFrequencies);\n\t\t}\n\t\t\n\t\treturn buf.toString();\n\t}",
"public java.lang.String getSer() {\n java.lang.Object ref = ser_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"private Object writeReplace() throws ObjectStreamException {\n return new SerialProxy(locationNode.getNodeNumber());\n }",
"String toJSON();",
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"void serialize(OutputStream out) throws IOException {\n trie.serialize(out);\n }",
"@Override\n public String saveAsString() {\n return \"D\" + super.saveAsString() + \" | \" + by;\n }",
"@Override\n public void write() {\n MDC.put(this.key, this.value!=null ? this.value : \"?\");\n }",
"private synchronized void writeObject(ObjectOutputStream out) throws IOException {\n if (selectedIndices == null) { populateRecordsAndIndices(); }\n }"
] |
[
"0.587821",
"0.5074706",
"0.50642896",
"0.5009794",
"0.49246088",
"0.47982037",
"0.4782908",
"0.47795677",
"0.47654635",
"0.47245413",
"0.47239897",
"0.4700914",
"0.46920207",
"0.4688775",
"0.4645428",
"0.46429524",
"0.46131906",
"0.46042606",
"0.46009246",
"0.45848194",
"0.45545483",
"0.4553792",
"0.4551613",
"0.45420018",
"0.45338592",
"0.4519493",
"0.4510398",
"0.4506898",
"0.4489661",
"0.44807118",
"0.44688034",
"0.44577256",
"0.44576138",
"0.44525442",
"0.4450297",
"0.4449701",
"0.4441137",
"0.44357544",
"0.44352695",
"0.4424844",
"0.44012588",
"0.44001776",
"0.4397888",
"0.43958315",
"0.43872276",
"0.43870294",
"0.43817246",
"0.4381706",
"0.43787968",
"0.43747395",
"0.43693903",
"0.43692487",
"0.43639192",
"0.436264",
"0.43616053",
"0.43600053",
"0.43464255",
"0.43454313",
"0.43412095",
"0.4322571",
"0.43148884",
"0.4312681",
"0.43063462",
"0.43034434",
"0.4299004",
"0.42936084",
"0.42930254",
"0.42930254",
"0.42929175",
"0.4285841",
"0.42847785",
"0.42847532",
"0.42832214",
"0.42828357",
"0.42817423",
"0.4276266",
"0.42727897",
"0.42630392",
"0.42605662",
"0.4258706",
"0.42569482",
"0.42520207",
"0.42515486",
"0.42476928",
"0.42425656",
"0.4242221",
"0.42393",
"0.42381215",
"0.4236596",
"0.4234523",
"0.4232544",
"0.42318642",
"0.42292163",
"0.42283037",
"0.42281324",
"0.4227257",
"0.42261186",
"0.42245966",
"0.4220149",
"0.42178714"
] |
0.7235899
|
0
|
Writes the value and datatype of an occurrence or variant.
|
private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {
final String datatype = datatyped.getDatatype().getReference();
String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()
: datatyped.getValue();
_writeKeyValue("value", value);
if (!XSD.STRING.equals(datatype)) {
_writeKeyValue("datatype", datatyped.getDatatype().toExternalForm());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected abstract void write (Object val);",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n PropositionHelper.write(ostream,value);\r\n }",
"public static void write(OutputStream paramOutputStream, ValueMember paramValueMember) {\n/* 153 */ paramOutputStream.write_string(paramValueMember.name);\n/* 154 */ paramOutputStream.write_string(paramValueMember.id);\n/* 155 */ paramOutputStream.write_string(paramValueMember.defined_in);\n/* 156 */ paramOutputStream.write_string(paramValueMember.version);\n/* 157 */ paramOutputStream.write_TypeCode(paramValueMember.type);\n/* 158 */ IDLTypeHelper.write(paramOutputStream, paramValueMember.type_def);\n/* 159 */ paramOutputStream.write_short(paramValueMember.access);\n/* */ }",
"public void writeValue(Object value) throws IOException\n {\n if (value == null) {\n writeNullValue();\n return;\n }\n _writeValue(value, _writerLocator.findSerializationType(value.getClass()));\n }",
"private void _writeOccurrence(final Occurrence occ) throws IOException {\n _out.startObject();\n _writeReifier(occ);\n _writeItemIdentifiers(occ);\n _writeType(occ);\n _writeScope(occ);\n _writeDatatypeAware(occ);\n _out.endObject();\n }",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n NiveauEtudeHelper.write(ostream,value);\r\n }",
"public abstract void write(O value) throws IOException;",
"public abstract void write(T dataElement);",
"private void _writeVariant(final Variant variant) throws IOException {\n _out.startObject();\n _writeReifier(variant);\n _writeItemIdentifiers(variant);\n _writeScope(variant);\n _writeDatatypeAware(variant);\n _out.endObject();\n }",
"public static void insert(Any paramAny, ValueMember paramValueMember) {\n/* 49 */ OutputStream outputStream = paramAny.create_output_stream();\n/* 50 */ paramAny.type(type());\n/* 51 */ write(outputStream, paramValueMember);\n/* 52 */ paramAny.read_value(outputStream.create_input_stream(), type());\n/* */ }",
"public void setValue(Winevt.EVT_VARIANT_TYPE type, Object value) {\n/* 272 */ allocateMemory();\n/* 273 */ if (type == null) {\n/* 274 */ throw new IllegalArgumentException(\"setValue must not be called with type set to NULL\");\n/* */ }\n/* 276 */ this.holder = null;\n/* 277 */ if (value == null || type == Winevt.EVT_VARIANT_TYPE.EvtVarTypeNull) {\n/* 278 */ this.Type = Winevt.EVT_VARIANT_TYPE.EvtVarTypeNull.ordinal();\n/* 279 */ this.Count = 0;\n/* 280 */ this.field1.writeField(\"pointerValue\", Pointer.NULL);\n/* */ } else {\n/* 282 */ switch (type) {\n/* */ case EvtVarTypeAnsiString:\n/* 284 */ if (value.getClass().isArray() && value.getClass().getComponentType() == String.class) {\n/* 285 */ this.Type = type.ordinal() | 0x80;\n/* 286 */ StringArray sa = new StringArray((String[])value, false);\n/* 287 */ this.holder = sa;\n/* 288 */ this.Count = ((String[])value).length;\n/* 289 */ this.field1.writeField(\"pointerValue\", sa); break;\n/* 290 */ } if (value.getClass() == String.class) {\n/* 291 */ this.Type = type.ordinal();\n/* 292 */ Memory mem = new Memory((((String)value).length() + 1));\n/* 293 */ mem.setString(0L, (String)value);\n/* 294 */ this.holder = mem;\n/* 295 */ this.Count = 0;\n/* 296 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* */ } \n/* 298 */ throw new IllegalArgumentException(type.name() + \" must be set from String/String[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeBoolean:\n/* 302 */ if (value.getClass().isArray() && value.getClass().getComponentType() == WinDef.BOOL.class) {\n/* 303 */ this.Type = type.ordinal() | 0x80;\n/* 304 */ Memory mem = new Memory((((WinDef.BOOL[])value).length * 4));\n/* 305 */ for (int i = 0; i < ((WinDef.BOOL[])value).length; i++) {\n/* 306 */ mem.setInt((i * 4), ((WinDef.BOOL[])value)[i].intValue());\n/* */ }\n/* 308 */ this.holder = mem;\n/* 309 */ this.Count = 0;\n/* 310 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 311 */ } if (value.getClass() == WinDef.BOOL.class) {\n/* 312 */ this.Type = type.ordinal();\n/* 313 */ this.Count = 0;\n/* 314 */ this.field1.writeField(\"intValue\", Integer.valueOf(((WinDef.BOOL)value).intValue())); break;\n/* */ } \n/* 316 */ throw new IllegalArgumentException(type.name() + \" must be set from BOOL/BOOL[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeString:\n/* */ case EvtVarTypeEvtXml:\n/* 321 */ if (value.getClass().isArray() && value.getClass().getComponentType() == String.class) {\n/* 322 */ this.Type = type.ordinal() | 0x80;\n/* 323 */ StringArray sa = new StringArray((String[])value, true);\n/* 324 */ this.holder = sa;\n/* 325 */ this.Count = ((String[])value).length;\n/* 326 */ this.field1.writeField(\"pointerValue\", sa); break;\n/* 327 */ } if (value.getClass() == String.class) {\n/* 328 */ this.Type = type.ordinal();\n/* 329 */ Memory mem = new Memory(((((String)value).length() + 1) * 2));\n/* 330 */ mem.setWideString(0L, (String)value);\n/* 331 */ this.holder = mem;\n/* 332 */ this.Count = 0;\n/* 333 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* */ } \n/* 335 */ throw new IllegalArgumentException(type.name() + \" must be set from String/String[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeSByte:\n/* */ case EvtVarTypeByte:\n/* 340 */ if (value.getClass().isArray() && value.getClass().getComponentType() == byte.class) {\n/* 341 */ this.Type = type.ordinal() | 0x80;\n/* 342 */ Memory mem = new Memory((((byte[])value).length * 1));\n/* 343 */ mem.write(0L, (byte[])value, 0, ((byte[])value).length);\n/* 344 */ this.holder = mem;\n/* 345 */ this.Count = 0;\n/* 346 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 347 */ } if (value.getClass() == byte.class) {\n/* 348 */ this.Type = type.ordinal();\n/* 349 */ this.Count = 0;\n/* 350 */ this.field1.writeField(\"byteValue\", value); break;\n/* */ } \n/* 352 */ throw new IllegalArgumentException(type.name() + \" must be set from byte/byte[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeInt16:\n/* */ case EvtVarTypeUInt16:\n/* 357 */ if (value.getClass().isArray() && value.getClass().getComponentType() == short.class) {\n/* 358 */ this.Type = type.ordinal() | 0x80;\n/* 359 */ Memory mem = new Memory((((short[])value).length * 2));\n/* 360 */ mem.write(0L, (short[])value, 0, ((short[])value).length);\n/* 361 */ this.holder = mem;\n/* 362 */ this.Count = 0;\n/* 363 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 364 */ } if (value.getClass() == short.class) {\n/* 365 */ this.Type = type.ordinal();\n/* 366 */ this.Count = 0;\n/* 367 */ this.field1.writeField(\"shortValue\", value); break;\n/* */ } \n/* 369 */ throw new IllegalArgumentException(type.name() + \" must be set from short/short[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeHexInt32:\n/* */ case EvtVarTypeInt32:\n/* */ case EvtVarTypeUInt32:\n/* 375 */ if (value.getClass().isArray() && value.getClass().getComponentType() == int.class) {\n/* 376 */ this.Type = type.ordinal() | 0x80;\n/* 377 */ Memory mem = new Memory((((int[])value).length * 4));\n/* 378 */ mem.write(0L, (int[])value, 0, ((int[])value).length);\n/* 379 */ this.holder = mem;\n/* 380 */ this.Count = 0;\n/* 381 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 382 */ } if (value.getClass() == int.class) {\n/* 383 */ this.Type = type.ordinal();\n/* 384 */ this.Count = 0;\n/* 385 */ this.field1.writeField(\"intValue\", value); break;\n/* */ } \n/* 387 */ throw new IllegalArgumentException(type.name() + \" must be set from int/int[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeHexInt64:\n/* */ case EvtVarTypeInt64:\n/* */ case EvtVarTypeUInt64:\n/* 393 */ if (value.getClass().isArray() && value.getClass().getComponentType() == long.class) {\n/* 394 */ this.Type = type.ordinal() | 0x80;\n/* 395 */ Memory mem = new Memory((((long[])value).length * 4));\n/* 396 */ mem.write(0L, (long[])value, 0, ((long[])value).length);\n/* 397 */ this.holder = mem;\n/* 398 */ this.Count = 0;\n/* 399 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 400 */ } if (value.getClass() == long.class) {\n/* 401 */ this.Type = type.ordinal();\n/* 402 */ this.Count = 0;\n/* 403 */ this.field1.writeField(\"longValue\", value); break;\n/* */ } \n/* 405 */ throw new IllegalArgumentException(type.name() + \" must be set from long/long[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeSingle:\n/* 409 */ if (value.getClass().isArray() && value.getClass().getComponentType() == float.class) {\n/* 410 */ this.Type = type.ordinal() | 0x80;\n/* 411 */ Memory mem = new Memory((((float[])value).length * 4));\n/* 412 */ mem.write(0L, (float[])value, 0, ((float[])value).length);\n/* 413 */ this.holder = mem;\n/* 414 */ this.Count = 0;\n/* 415 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 416 */ } if (value.getClass() == float.class) {\n/* 417 */ this.Type = type.ordinal();\n/* 418 */ this.Count = 0;\n/* 419 */ this.field1.writeField(\"floatValue\", value); break;\n/* */ } \n/* 421 */ throw new IllegalArgumentException(type.name() + \" must be set from float/float[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeDouble:\n/* 425 */ if (value.getClass().isArray() && value.getClass().getComponentType() == double.class) {\n/* 426 */ this.Type = type.ordinal() | 0x80;\n/* 427 */ Memory mem = new Memory((((double[])value).length * 4));\n/* 428 */ mem.write(0L, (double[])value, 0, ((double[])value).length);\n/* 429 */ this.holder = mem;\n/* 430 */ this.Count = 0;\n/* 431 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 432 */ } if (value.getClass() == double.class) {\n/* 433 */ this.Type = type.ordinal();\n/* 434 */ this.Count = 0;\n/* 435 */ this.field1.writeField(\"doubleVal\", value); break;\n/* */ } \n/* 437 */ throw new IllegalArgumentException(type.name() + \" must be set from double/double[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeBinary:\n/* 441 */ if (value.getClass().isArray() && value.getClass().getComponentType() == byte.class) {\n/* 442 */ this.Type = type.ordinal();\n/* 443 */ Memory mem = new Memory((((byte[])value).length * 1));\n/* 444 */ mem.write(0L, (byte[])value, 0, ((byte[])value).length);\n/* 445 */ this.holder = mem;\n/* 446 */ this.Count = 0;\n/* 447 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* */ } \n/* 449 */ throw new IllegalArgumentException(type.name() + \" must be set from byte[]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ default:\n/* 459 */ throw new IllegalStateException(String.format(\"NOT IMPLEMENTED: getValue(%s) (Array: %b, Count: %d)\", new Object[] { type, Boolean.valueOf(isArray()), Integer.valueOf(this.Count) }));\n/* */ } \n/* */ } \n/* 462 */ write();\n/* */ }",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\n {\n autorisationCollabInterditeHelper.write(ostream,value);\n }",
"protected void writeWrite ()\n {\n stream.println (\" public void _write (org.omg.CORBA.portable.OutputStream o)\");\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 (\" o.write_string (value);\");\n\n else if (mType instanceof PrimitiveEntry)\n {\n String name = entry.name ();\n stream.println (\" \" + name + \" vb = new \" + name + \" (value);\");\n stream.println (\" \" + helperClass + \".write (o, vb);\");\n }\n\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n }\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n stream.println (\" }\");\n stream.println ();\n }",
"protected void _verifyValueWrite(String typeMsg)\n/* */ throws IOException\n/* */ {\n/* 792 */ int status = this._writeContext.writeValue();\n/* 793 */ if (this._cfgPrettyPrinter != null)\n/* */ {\n/* 795 */ _verifyPrettyValueWrite(typeMsg, status); return;\n/* */ }\n/* */ \n/* */ char c;\n/* 799 */ switch (status) {\n/* */ case 0: case 4: \n/* */ default: \n/* 802 */ return;\n/* */ case 1: \n/* 804 */ c = ',';\n/* 805 */ break;\n/* */ case 2: \n/* 807 */ c = ':';\n/* 808 */ break;\n/* */ case 3: \n/* 810 */ if (this._rootValueSeparator != null) {\n/* 811 */ writeRaw(this._rootValueSeparator.getValue());\n/* */ }\n/* 813 */ return;\n/* */ case 5: \n/* 815 */ _reportCantWriteValueExpectName(typeMsg);\n/* 816 */ return;\n/* */ }\n/* 818 */ if (this._outputTail >= this._outputEnd) {\n/* 819 */ _flushBuffer();\n/* */ }\n/* 821 */ this._outputBuffer[(this._outputTail++)] = c;\n/* */ }",
"void writeDouble(double value);",
"void write(K key, V value);",
"public void writeValue(OutputStream out) throws IOException {\n if (m_strPackage != null) {\n m_strPackage.write(out);\n }\n if ((m_subPackages != null) && (m_subPackages.size() > 0)) {\n Iterator iter = m_subPackages.listIterator(0);\n DsByteString bs = null;\n while (iter.hasNext()) {\n bs = (DsByteString) iter.next();\n if (bs != null) {\n out.write(B_PERIOD);\n bs.write(out);\n }\n }\n }\n if (m_paramTable != null) {\n m_paramTable.write(out);\n }\n }",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n EtudiantDejaInscritExceptionHelper.write(ostream,value);\r\n }",
"public void writeData(final DataOutputStream out) throws IOException {\n\t\tout.writeShort(constantValueIndex);\n\t}",
"@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }",
"private void _writeType(final Typed typed) throws IOException {\n _writeKeyValue(\"type\", _topicRef(typed.getType()));\n }",
"public <T> SerializationStream writeValue(T value){\n return writeObject(value);\n }",
"public void writeValue(OutputStream out) throws IOException {\n if (m_strCoding != null) {\n m_strCoding.write(out);\n if (qvalue >= 0.0 && qvalue <= 1.0) {\n BS_QVALUE.write(out);\n out.write(DsByteString.getBytes(Float.toString(qvalue)));\n }\n }\n }",
"public void writeValue(PropertyIdentifier poid, Encodable value) {\n // 8 is default priority for manual operations\n LOG.info(\"Write on: \" + poid.toString() + \" @ \" + getObjectName() +\" with: \" + value.toString());\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),poid,value,8);\n } catch (BACnetException bac) {\n LOG.warn(\"Cant write: \" + poid.toString() + \" at \" + getObjectIdentifier().toString());\n }\n\n }",
"protected void writeCollectionValue(Collection<?> v) throws IOException\n {\n _generator.writeStartArray();\n for (Object ob : v) {\n writeValue(ob);\n }\n _generator.writeEndArray();\n }",
"void writeInt(int value);",
"private static void _valueToStorageDocument(\n\t\tValue value,\n\t\tElement element,\n\t\tDocument doc\n\t) {\n\t\t// Supports only string, int and double\n\t\tif ( value.isString() ) {\n\t\t\telement.appendChild( doc.createTextNode( value.strValue() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"string\" );\n\t\t} else if ( value.isInt() ) {\n\t\t\telement.appendChild( doc.createTextNode( new Integer( value.intValue() ).toString() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"int\" );\n\t\t} else if ( value.isDouble() ) {\n\t\t\telement.appendChild( doc.createTextNode( new Double( value.doubleValue() ).toString() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"double\" );\n\t\t} else {\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"void\" );\n\t\t}\n\n\t\t// adding other attributes\n\t\tMap<String, ValueVector> attrs = getAttributesOrNull( value );\n\t\tif ( attrs != null ) {\n\t\t\tfor( Entry<String, ValueVector> attrEntry : attrs.entrySet() ) {\n\t\t\t\telement.setAttribute(\n\t\t\t\t\tattrEntry.getKey(),\n\t\t\t\t\tattrEntry.getValue().first().strValue() );\n\t\t\t}\n\t\t}\n\n\t\t// adding subelements\n\t\tElement currentElement;\n\t\tfor( Entry<String, ValueVector> entry : value.children().entrySet() ) {\n\t\t\tif ( !entry.getKey().startsWith( \"@\" ) ) {\n\t\t\t\tfor( Value val : entry.getValue() ) {\n\t\t\t\t\tcurrentElement = doc.createElement( entry.getKey() );\n\t\t\t\t\telement.appendChild( currentElement );\n\t\t\t\t\t_valueToStorageDocument( val, currentElement, doc );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void write(Object value, Writer writer)\n {\n if (value == null) {\n writer.writeNull();\n\n return;\n }\n\n traversalStack.push(value);\n\n TypeAdapter<Object> adapter = getAdapter(value.getClass());\n\n adapter.write(value, writer, this);\n\n traversalStack.pop();\n }",
"@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}",
"@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value$) {\n switch (field$) {\n case 0: vehicleType = (java.lang.CharSequence)value$; break;\n case 1: fuelType = (java.lang.CharSequence)value$; break;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"void writeDouble(double v) throws IOException;",
"@Override\n protected void writeFixed(Schema schema, Object datum, Encoder out)\n throws IOException {\n\n final byte[] bytes = ((GenericFixed) datum).bytes();\n GenericBinding.writeFixed(schema, bytes, out);\n }",
"@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}",
"void writeShort(short value);",
"public static void write(org.omg.CORBA.portable.OutputStream ostream, gestionVoeu.EtudiantFactory value)\n {\n ostream.write_Object((org.omg.CORBA.portable.ObjectImpl)value);\n }",
"protected abstract void writeInternal(int index, int value);",
"@SuppressWarnings(\"unchecked\")\n public static void serialize(Output out, Field field, Method getter, Object object, Object value) {\n log.trace(\"serialize\");\n if (value instanceof IExternalizable) {\n // make sure all IExternalizable objects are serialized as objects\n out.writeObject(value);\n } else if (value instanceof ByteArray) {\n // write ByteArray objects directly\n out.writeByteArray((ByteArray) value);\n } else if (value instanceof Vector) {\n log.trace(\"Serialize Vector\");\n // scan the vector to determine the generic type\n Vector<?> vector = (Vector<?>) value;\n int ints = 0;\n int longs = 0;\n int dubs = 0;\n int nans = 0;\n for (Object o : vector) {\n if (o instanceof Integer) {\n ints++;\n } else if (o instanceof Long) {\n longs++;\n } else if (o instanceof Number || o instanceof Double) {\n dubs++;\n } else {\n nans++;\n }\n }\n // look at the type counts\n if (nans > 0) {\n // if we have non-number types, use object\n ((org.red5.io.amf3.Output) out).enforceAMF3();\n out.writeVectorObject((Vector<Object>) value);\n } else if (dubs == 0 && longs == 0) {\n // no doubles or longs\n out.writeVectorInt((Vector<Integer>) value);\n } else if (dubs == 0 && ints == 0) {\n // no doubles or ints\n out.writeVectorUInt((Vector<Long>) value);\n } else {\n // handle any other types of numbers\n ((org.red5.io.amf3.Output) out).enforceAMF3();\n out.writeVectorNumber((Vector<Double>) value);\n }\n } else {\n if (writeBasic(out, value)) {\n log.trace(\"Wrote as basic\");\n } else if (!writeComplex(out, value)) {\n log.trace(\"Unable to serialize: {}\", value);\n }\n }\n }",
"void serialize(String fieldName, Object value) throws IOException {\n if (value instanceof Node) {\n serialize(fieldName, singleton((Node)value));\n } else if (value instanceof String) {\n serialize(fieldName, (String)value);\n } else if (value instanceof Boolean) {\n serialize(fieldName, (Boolean)value);\n } else if (value instanceof Integer) {\n serialize(fieldName, (Integer)value);\n } else if (value instanceof Long) {\n serialize(fieldName, (Long)value);\n } else if (value instanceof Float) {\n serialize(fieldName, (Float)value);\n } else if (value instanceof Double) {\n serialize(fieldName, (Double)value);\n } else if (value instanceof List) {\n writeArray(fieldName, (List<String>) value);\n } else {\n throw new IllegalArgumentException(\"Don't know how to serialize \" + value.getClass());\n }\n }",
"public void write(long time, short value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"void xsetValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value value);",
"protected void write(CCompatibleOutputStream os) throws Exception {\n java.util.Vector fieldVector = getFieldVector();\n for (int i = 0; i < fieldVector.size(); i++) {\n Field field = (Field) (fieldVector.elementAt(i));\n Class type = field.getType();\n if (type == Byte.TYPE) {\n os.writeByte(field.getByte(this));\n }\n else if (type == Short.TYPE) {\n os.writeShortReverse(field.getShort(this));\n }\n else if (type == Integer.TYPE) {\n os.writeIntReverse(field.getInt(this));\n }\n else if (type == Long.TYPE) {\n os.writeLongReverse(field.getLong(this));\n }\n else if (type == Double.TYPE) {\n os.writeDouble(field.getDouble(this));\n }\n else if (type.getName().equals(\"[B\")) {\n os.write( (byte[]) (field.get(this)));\n }\n }\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"protected void writeData(Array values, Layout index, DataType dataType) throws java.io.IOException {\n if ((dataType == DataType.BYTE) || (dataType == DataType.CHAR)) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.write(ii.getByteNext());\n }\n return;\n\n } else if (dataType == DataType.STRING) { // LOOK not legal\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++) {\n String val = (String) ii.getObjectNext();\n if (val != null)\n raf.write(val.getBytes(StandardCharsets.UTF_8)); // LOOK ??\n }\n }\n return;\n\n } else if (dataType == DataType.SHORT) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeShort(ii.getShortNext());\n }\n return;\n\n } else if (dataType == DataType.INT) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeInt(ii.getIntNext());\n }\n return;\n\n } else if (dataType == DataType.FLOAT) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeFloat(ii.getFloatNext());\n }\n return;\n\n } else if (dataType == DataType.DOUBLE) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeDouble(ii.getDoubleNext());\n }\n return;\n }\n\n throw new IllegalStateException(\"dataType= \" + dataType);\n }",
"protected void writeAny(OutputStream out) {\n any.write_value(out);\n }",
"private static void writeLiteral(XMLStreamWriter w, String el, Value val)\n\t\tthrows XMLStreamException {\n\t\tif (val instanceof Literal) {\n\t\t\tw.writeStartElement(el);\n\t\t\t// write language or datatype\n\t\t\tString lang = ((Literal) val).getLanguage().orElse(\"\");\n\t\t\tif (!lang.isEmpty()) {\n\t\t\t\tw.writeAttribute(\"xml:lang\", lang);\n\t\t\t} else {\n\t\t\t\tIRI dtype = ((Literal) val).getDatatype();\n\t\t\t\tif ((dtype != null) && !dtype.equals(XSD.STRING)) {\n\t\t\t\t\tw.writeAttribute(\"rdf:datatype\", dtype.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tString str = val.stringValue();\n\t\t\tif (str.contains(\"<\")) {\n\t\t\t\tw.writeCData(str);\n\t\t\t} else {\n\t\t\t\tw.writeCharacters(str);\n\t\t\t}\n\t\t\tw.writeEndElement();\n\t\t}\n\t\tif (val instanceof IRI) {\n\t\t\tw.writeStartElement(el);\n\t\t\tw.writeAttribute(\"rdf:datatype\", ANYURI);\n\t\t\tw.writeCharacters(val.stringValue());\n\t\t\tw.writeEndElement();\n\t\t}\n\t}",
"private Type set_value_type(Node n, long xx ) {\n Type[] alltypes = Type.ALL_TYPES();\n _gvn.setype(_ins[0], alltypes[xx(xx,0)]);\n _gvn.setype(_ins[1],((ConNode)_ins[1])._t = alltypes[xx(xx,1)]);\n _gvn.setype(_ins[2],((ConNode)_ins[2])._t = alltypes[xx(xx,2)]);\n _gvn.setype(_ins[3],((ConNode)_ins[3])._t = alltypes[xx(xx,3)]);\n Type vt = n.value(_gvn);\n Type old = _values.put(xx,vt);\n assert old==null;\n return vt;\n }",
"void emit(DataOutputStream out, ConstantPool cp) throws IOException, ClassException {\n out.write(getType());\n // The rest is dependent on what type of constant this is.\n emit2(out, cp);\n }",
"public void write(long time, Binary value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\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 interface Output {\n\n void putString(String string);\n\n // Basic Data Types\n /**\n * Write number\n *\n * @param num\n * Number\n */\n void writeNumber(Number num);\n\n /**\n * Write boolean\n *\n * @param bol\n * Boolean\n */\n void writeBoolean(Boolean bol);\n\n /**\n * Write string\n *\n * @param string\n * String\n */\n void writeString(String string);\n\n /**\n * Write date\n *\n * @param date\n * Date\n */\n void writeDate(Date date);\n\n void writeNull();\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Collection<?> array);\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object[] array);\n\n /**\n * Write primitive array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object array);\n\n /**\n * Write map.\n *\n * @param map\n * Map to write\n */\n void writeMap(Map<Object, Object> map);\n\n /**\n * Write array as map.\n *\n * @param array\n * Array to write\n */\n void writeMap(Collection<?> array);\n\n /**\n * Write object.\n *\n * @param object\n * Object to write\n */\n void writeObject(Object object);\n\n /**\n * Write map as object.\n *\n * @param map\n * Map to write\n */\n void writeObject(Map<Object, Object> map);\n\n /**\n * Write recordset.\n *\n * @param recordset\n * Recordset to write\n */\n void writeRecordSet(RecordSet recordset);\n\n /**\n * Write XML object\n *\n * @param xml\n * XML document\n */\n void writeXML(Document xml);\n\n /**\n * Write ByteArray object (AMF3 only).\n *\n * @param array\n * object to write\n */\n void writeByteArray(ByteArray array);\n\n /**\n * Write a Vector<int>.\n *\n * @param vector\n * vector\n */\n void writeVectorInt(Vector<Integer> vector);\n\n /**\n * Write a Vector<uint>.\n *\n * @param vector\n * vector\n */\n void writeVectorUInt(Vector<Long> vector);\n\n /**\n * Write a Vector<Number>.\n *\n * @param vector\n * vector\n */\n void writeVectorNumber(Vector<Double> vector);\n\n /**\n * Write a Vector<Object>.\n *\n * @param vector\n * vector\n */\n void writeVectorObject(Vector<Object> vector);\n\n /**\n * Write reference to complex data type\n *\n * @param obj\n * Referenced object\n */\n void writeReference(Object obj);\n\n /**\n * Whether object is custom\n *\n * @param custom\n * Object\n * @return true if object is of user type, false otherwise\n */\n boolean isCustom(Object custom);\n\n /**\n * Write custom (user) object\n *\n * @param custom\n * Custom data type object\n */\n void writeCustom(Object custom);\n\n /**\n * Clear references\n */\n void clearReferences();\n}",
"@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }",
"public <T> void write(MDSKey id, T value) {\n try {\n table.put(new Put(id.getKey()).add(COLUMN, serialize(value)));\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }",
"public int serialize(VirtualPointer vp, Object val);",
"private void saveDataType(int type) throws IOException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/datatype.txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n writer.write(type + \"\\n\");\r\n writer.close();\r\n fileWriter.close();\r\n }",
"public void write(long time, double value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"void writeInt(int v) throws IOException;",
"void writeObj(MyAllTypesSecond aRecord, StrategyI xmlStrat);",
"public abstract void writeAsDbl(int offset, double d);",
"public void emit(String key, String value) throws IOException {\r\n writer.writeKV(key, value);\r\n }",
"void visitMetaTypeValue(MetaTypeValue value);",
"void writeCustom(Object custom);",
"void writeNumber(Number num);",
"void writeString(String value);",
"private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }",
"public void addWritten(byte[] value) {\n\n writeSetLock.lock();\n writeSet.add(new TimestampValuePair(ets, value));\n writeSetLock.unlock();\n }",
"public abstract ValueType getValueType();",
"void writeFloat(float value);",
"public abstract void addValue(String str, Type type);",
"ValueType getValue();",
"@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}",
"@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value$) {\n switch (field$) {\n case 0: time = (java.lang.Integer)value$; break;\n case 1: frequency = (java.lang.Integer)value$; break;\n case 2: convolution = (java.lang.Float)value$; break;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"protected void writeStringValue(String v) throws IOException {\n _generator.writeString(v);\n }",
"@Override\n public boolean write(Object context, int rowNum)\n throws Exception\n {\n extractor.extract(context, holder);\n if (holder.isSet > 0) {\n vector.setSafe(rowNum, holder.value.getBytes(Charsets.UTF_8));\n }\n else {\n vector.setNull(rowNum);\n }\n return constraint.apply(holder);\n }",
"void write();",
"@Override\n public void write() {\n MDC.put(this.key, this.value!=null ? this.value : \"?\");\n }",
"public byte[] writeValue(TBase value) throws IOException {\n Validate.notNull(value, \"Value object is null\");\n\n byte[] bytes;\n try {\n bytes = serializer.serialize(value);\n } catch (TException e) {\n throw new IOException(e);\n }\n\n return bytes;\n }",
"public void write(VirtualPointer value)\r\n {\r\n write(value, false);\r\n }",
"private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}",
"protected abstract void write( int value ) throws IOException;",
"public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"private void _writeKeyValue(String key, String value) throws IOException {\n _out.key(key);\n _out.value(value);\n }",
"void writeByte(byte value);",
"public static void writeMessageType(OutputStream os, short type) throws IOException {\n os.write((byte)(type & 0xFF));\n os.write((byte)((type >> 8) & 0xFF));\n }",
"void writeEntry(String key, Enum<?> value, boolean mandatory) throws IOException;",
"@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 write(long time, float value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"void writeLong(long value);",
"long writeValue(V value, int[] version) {\n // the length of the given value plus its header\n int valueLength = valueSerializer.calculateSize(value) + valueOperator.getHeaderSize();\n // The allocated slice is actually the thread's copy moved to point to the newly allocated slice\n Slice slice = memoryManager.allocateSlice(valueLength, MemoryManager.Allocate.VALUE);\n version[0] = slice.getByteBuffer().getInt(slice.getByteBuffer().position());\n // initializing the header lock to be free\n slice.initHeader(valueOperator);\n // since this is a private environment, we can only use ByteBuffer::slice, instead of ByteBuffer::duplicate\n // and then ByteBuffer::slice\n // This is the only place where we create a new object (for the serializer).\n valueSerializer.serialize(value, valueOperator.getValueByteBufferNoHeaderPrivate(slice));\n // combines the blockID with the value's length (including the header)\n int valueBlockAndLength = (slice.getBlockID() << VALUE_BLOCK_SHIFT) | (valueLength & VALUE_LENGTH_MASK);\n return intsToLong(valueBlockAndLength, slice.getByteBuffer().position());\n }",
"public void _write( org.omg.CORBA.portable.OutputStream os )\r\n {\r\n super._write( os );\r\n try\r\n {\r\n ParameterSequenceHelper.write(os,m_params);\r\n\t os.write_string( m_default );\r\n }\r\n catch( Throwable _output_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error writting to output stream for '\"\r\n + \"net.osm.factory.FactoryValue' due to: \" \r\n + _output_read_exception_.toString() );\r\n }\r\n }",
"@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }",
"String byteOrBooleanWrite();",
"private static void writeNonArrayToBuffer(ByteBuffer buffer, Class<?> standardType, Object value) {\n if (null == value) {\n buffer.put(ABIToken.NULL.identifier);\n }\n \n // Primitive types.\n if (ABIToken.BYTE.standardType == standardType) {\n buffer.put(ABIToken.BYTE.identifier);\n buffer.put((Byte) value);\n } else if (ABIToken.BOOLEAN.standardType == standardType) {\n buffer.put(ABIToken.BOOLEAN.identifier);\n buffer.put((byte)((Boolean) value ? 1 : 0));\n } else if (ABIToken.CHAR.standardType == standardType) {\n buffer.put(ABIToken.CHAR.identifier);\n buffer.putChar((Character) value);\n } else if (ABIToken.SHORT.standardType == standardType) {\n buffer.put(ABIToken.SHORT.identifier);\n buffer.putShort((Short) value);\n } else if (ABIToken.INT.standardType == standardType) {\n buffer.put(ABIToken.INT.identifier);\n buffer.putInt((Integer) value);\n } else if (ABIToken.LONG.standardType == standardType) {\n buffer.put(ABIToken.LONG.identifier);\n buffer.putLong((Long) value);\n } else if (ABIToken.FLOAT.standardType == standardType) {\n buffer.put(ABIToken.FLOAT.identifier);\n buffer.putFloat((Float) value);\n } else if (ABIToken.DOUBLE.standardType == standardType) {\n buffer.put(ABIToken.DOUBLE.identifier);\n buffer.putDouble((Double) value);\n \n // Primitive array types.\n } else if (ABIToken.A_BYTE.standardType == standardType) {\n buffer.put(ABIToken.A_BYTE.identifier);\n if (null != value) {\n byte[] cast = (byte[])value;\n writeLength(buffer, cast.length);\n buffer.put(cast);\n }\n } else if (ABIToken.A_BOOLEAN.standardType == standardType) {\n buffer.put(ABIToken.A_BOOLEAN.identifier);\n if (null != value) {\n boolean[] cast = (boolean[])value;\n writeLength(buffer, cast.length);\n byte[] ready = new byte[cast.length];\n for (int i = 0; i < ready.length; ++i) {\n ready[i] = (byte)(cast[i] ? 1 : 0);\n }\n buffer.put(ready);\n }\n } else if (ABIToken.A_CHAR.standardType == standardType) {\n buffer.put(ABIToken.A_CHAR.identifier);\n if (null != value) {\n char[] cast = (char[])value;\n writeLength(buffer, cast.length);\n for (char c : cast) {\n buffer.putChar(c);\n }\n }\n } else if (ABIToken.A_SHORT.standardType == standardType) {\n buffer.put(ABIToken.A_SHORT.identifier);\n if (null != value) {\n short[] cast = (short[])value;\n writeLength(buffer, cast.length);\n for (short s : cast) {\n buffer.putShort(s);\n }\n }\n } else if (ABIToken.A_INT.standardType == standardType) {\n buffer.put(ABIToken.A_INT.identifier);\n if (null != value) {\n int[] cast = (int[])value;\n writeLength(buffer, cast.length);\n for (int i : cast) {\n buffer.putInt(i);\n }\n }\n } else if (ABIToken.A_LONG.standardType == standardType) {\n buffer.put(ABIToken.A_LONG.identifier);\n if (null != value) {\n long[] cast = (long[])value;\n writeLength(buffer, cast.length);\n for (long l : cast) {\n buffer.putLong(l);\n }\n }\n } else if (ABIToken.A_FLOAT.standardType == standardType) {\n buffer.put(ABIToken.A_FLOAT.identifier);\n if (null != value) {\n float[] cast = (float[])value;\n writeLength(buffer, cast.length);\n for (float f : cast) {\n buffer.putFloat(f);\n }\n }\n } else if (ABIToken.A_DOUBLE.standardType == standardType) {\n buffer.put(ABIToken.A_DOUBLE.identifier);\n if (null != value) {\n double[] cast = (double[])value;\n writeLength(buffer, cast.length);\n for (double d : cast) {\n buffer.putDouble(d);\n }\n }\n \n // Special types\n } else if (ABIToken.STRING.standardType == standardType) {\n buffer.put(ABIToken.STRING.identifier);\n if (null != value) {\n byte[] cast = ((String)value).getBytes(StandardCharsets.UTF_8);\n writeLength(buffer, cast.length);\n buffer.put(cast);\n }\n } else if (ABIToken.ADDRESS.standardType == standardType) {\n buffer.put(ABIToken.ADDRESS.identifier);\n if (null != value) {\n byte[] cast = ((Address)value).unwrap();\n RuntimeAssertionError.assertTrue(Address.avm_LENGTH == cast.length);\n buffer.put(cast);\n }\n \n } else {\n // There should be no other kind of case.\n RuntimeAssertionError.unreachable(\"Unknown type in encoder\");\n }\n }",
"private void encodeTypeDef(Encoder encoder, TypeDef type, int size) throws IOException {\n\t\tDataType refType = type.getDataType();\n\t\tString format = null;\n\t\tint sz = refType.getLength();\n\t\tif (sz <= 0) {\n\t\t\tsz = size;\n\t\t}\n\t\tif (type.isPointer()) {\n\t\t\tif (hasUnsupportedTypedefSettings(type)) {\n\t\t\t\t// switch refType to undefined type if pointer-typedef settings are unsupported\n\t\t\t\trefType = Undefined.getUndefinedDataType(sz);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tAddressSpace space = PointerTypedefInspector.getPointerAddressSpace(type,\n\t\t\t\t\tprogram.getAddressFactory());\n\t\t\t\tlong offset = PointerTypedefInspector.getPointerComponentOffset(type);\n\t\t\t\tif (offset != 0) {\n\t\t\t\t\tencodePointerRelative(encoder, type, offset, space);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (space != null) {\n\t\t\t\t\t// Cannot use space, unless we are build an actual Pointer\n\t\t\t\t\t// Its possible that refType is still a TypeDef\n\t\t\t\t\trefType = type.getBaseDataType();\n\t\t\t\t\tencodePointer(encoder, (Pointer) refType, space, type, size);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (FormatSettingsDefinition.DEF.hasValue(type.getDefaultSettings())) {\n\t\t\t\tformat = FormatSettingsDefinition.DEF.getValueString(type.getDefaultSettings());\n\t\t\t\tif (format.length() > 4) {\n\t\t\t\t\tformat = format.substring(0, 3);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tencoder.openElement(ELEM_DEF);\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tif (format != null) {\n\t\t\tencoder.writeString(ATTRIB_FORMAT, format);\n\t\t}\n\n\t\tencodeTypeRef(encoder, refType, sz);\n\t\tencoder.closeElement(ELEM_DEF);\n\t}",
"public void writeValue(OutputStream out) throws IOException {\n if (m_nameAddress != null) {\n // To, From, Record, Record-Route headers should always have <> brackets.\n // In case of Contact, <> are must if the URI contains ',' | ';' | '?'.\n // That can be checked in the setURI() method of DsSipNameAddress itself.\n // We might have already set it, but it could be possible that user has\n // manipulated this nameaddress after retrieving by getNameAddress().\n // So setting it anyway. :)\n if (getHeaderID() != CONTACT) m_nameAddress.setBrackets(true);\n m_nameAddress.write(out);\n }\n if (m_paramTable != null) {\n m_paramTable.write(out);\n }\n }",
"public void write(long time, long value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value$) {\n switch (field$) {\n case 0: timestamp = (java.lang.Long)value$; break;\n case 1: millis = (java.lang.Integer)value$; break;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public abstract void write(DataOutput out) throws IOException;",
"public String getValueType() {\n return valueType;\n }"
] |
[
"0.68437785",
"0.63037884",
"0.62536615",
"0.62435955",
"0.62039834",
"0.6166344",
"0.6155532",
"0.5910408",
"0.5879634",
"0.5855816",
"0.57907045",
"0.5772566",
"0.5737778",
"0.5736015",
"0.56428915",
"0.56309766",
"0.5630895",
"0.5628826",
"0.5608603",
"0.55098593",
"0.5466638",
"0.54571295",
"0.5448659",
"0.5437939",
"0.5421576",
"0.5415762",
"0.5401814",
"0.5385966",
"0.5371393",
"0.5351893",
"0.53434134",
"0.5287612",
"0.52595544",
"0.5250717",
"0.52366984",
"0.5219358",
"0.52071244",
"0.52056164",
"0.5202606",
"0.5179448",
"0.5167112",
"0.51458",
"0.51458",
"0.51328915",
"0.5121786",
"0.51181793",
"0.5113294",
"0.5104797",
"0.51039284",
"0.50936455",
"0.50899154",
"0.5089104",
"0.50854987",
"0.5072265",
"0.50579953",
"0.50518954",
"0.5049484",
"0.5042762",
"0.50388014",
"0.50253934",
"0.5020089",
"0.5006698",
"0.50046474",
"0.49894106",
"0.4987548",
"0.4982135",
"0.49795464",
"0.49686536",
"0.49560237",
"0.494949",
"0.49362892",
"0.49313292",
"0.49298644",
"0.4922849",
"0.49222288",
"0.49179846",
"0.4914672",
"0.489922",
"0.489527",
"0.48752654",
"0.48695505",
"0.4863478",
"0.48616514",
"0.48615596",
"0.48601702",
"0.48511708",
"0.4848713",
"0.4846938",
"0.48467153",
"0.48353496",
"0.4835002",
"0.48284996",
"0.48275188",
"0.48233938",
"0.48204014",
"0.48185334",
"0.48045403",
"0.480244",
"0.48011157",
"0.4800997"
] |
0.6195113
|
5
|
Serializes the item identifiers of the specified construct.
|
private void _writeItemIdentifiers(final Construct construct) throws IOException {
if (_exportIIds) {
_writeLocators("item_identifiers", construct.getItemIdentifiers());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void writeIDs() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/ids.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(ids);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public Set<ILocator> getItemIdentifiers(IConstruct c) {\r\n\t\treturn getIdentities(constructItemIdentifiers, c);\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Item [UID=\" + UID + \", TITLE=\" + TITLE + \", NOOFCOPIES=\" + NOOFCOPIES + \"]\";\r\n\t}",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"String serialize(ConcurrentMap<Integer, ItemStack> items) throws IOException;",
"public void writeItemset(Itemset is)\n throws IOException\n {\n outstream.writeObject(is);\n }",
"public void cacheItemIdentifiers(IConstruct c, Set<ILocator> identifiers) {\r\n\t\tif (constructItemIdentifiers == null) {\r\n\t\t\tconstructItemIdentifiers = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tconstructItemIdentifiers.put(c, HashUtil.getHashSet(identifiers));\r\n\t}",
"private void _writeOccurrence(final Occurrence occ) throws IOException {\n _out.startObject();\n _writeReifier(occ);\n _writeItemIdentifiers(occ);\n _writeType(occ);\n _writeScope(occ);\n _writeDatatypeAware(occ);\n _out.endObject();\n }",
"protected void sequence_IdentifierList(ISerializationContext context, IdentifierList semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"com.google.protobuf.ByteString getSerializedItem();",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"public static ByteArrayInputStream getItemJson(Identifier identifier) {\n JsonObject file = new JsonObject();\n file.addProperty(\"forge_marker\", 1);\n file.addProperty(\"parent\", \"item/generated\");\n JsonObject texture = new JsonObject();\n texture.addProperty(\"layer0\", identifier.getNamespace() + \":items/\" + identifier.getPath());\n file.add(\"textures\", texture);\n return new ByteArrayInputStream(file.toString().getBytes());\n }",
"@Override\n public void serialize( SecurityIdentifier value, JsonGenerator gen, SerializerProvider serializers )\n throws IOException, JsonProcessingException {\n gen.writeString( value.toString() );\n }",
"private Object makeObj(final String item, final int ID) {\n return new Object() {\n\n @Override\n public String toString() {\n return item;\n }\n\n @Override\n public int hashCode() {\n return ID;\n }\n };\n }",
"@Override\n public String toString() {\n return \"OrderItems{\" +\n \"itemId='\" + itemId + '\\'' +\n \", itemName='\" + itemName + '\\'' +\n \", itemPrice=\" + itemPrice +\n \", itemQuantity=\" + itemQuantity +\n \", itemAmount=\" + itemAmount +\n '}';\n }",
"private void _encodeDetailItem(FacesContext context,\n RenderingContext arc,\n UIComponent component,\n UIXShowDetail detailItem,\n ResponseWriter out)\n throws IOException\n {\n out.startElement(\"table\", component);\n out.writeAttribute(\"cellSpacing\", \"0\", null);\n out.writeAttribute(\"cellPadding\", \"0\", null);\n out.writeAttribute(\"summary\", \"\", null);\n\n renderStyleClass(context, arc, getContentStyleClass());\n\n out.startElement(\"tr\", component);\n out.startElement(\"td\", component);\n\n encodeChild(context, detailItem);\n\n out.endElement(\"td\");\n out.endElement(\"tr\");\n\n out.endElement(\"table\"); // Ending table for the contained child\n }",
"@Override\n\tpublic int getSerializationId() {\n\t\treturn SERIALIZATION_ID;\n\t}",
"@Override\r\n public String toString() {\r\n return \"Generator internal generated id = \" + id + \", \\nname = \" + name + \", \\ncapacity = \" + \r\n capacity + \", \\nserialNumber = \" + serialNumber + \", \\noperatorEmail = \" + operatorEmail + \", \\nsiteCode = \" + siteCode;\r\n }",
"int getSerializationId();",
"int getSerializationId();",
"int getSerializationId();",
"int getSerializationId();",
"int getSerializationId();",
"int getSerializationId();",
"public String toString() {\n\t\treturn \"[\"+this.getClass().getName()+\":\"+\n\t\t\tgetId()+\"]\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn id;\n\t}",
"private void encodeNameIdAttributes(Encoder encoder, DataType type) throws IOException {\n\t\tif (type instanceof BuiltIn) {\n\t\t\tencoder.writeString(ATTRIB_NAME,\n\t\t\t\t((BuiltIn) type).getDecompilerDisplayName(displayLanguage));\n\t\t}\n\t\telse {\n\t\t\tencoder.writeString(ATTRIB_NAME, type.getName());\n\t\t\tlong id = progDataTypes.getID(type);\n\t\t\tif (id > 0) {\n\t\t\t\tencoder.writeUnsignedInteger(ATTRIB_ID, id);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void writeItem(BooksClass books, ArrayList<BooksClass> array,\r\n\t\t\tString address) {\n\t\t\r\n\t}",
"@Override\n public String toString() {\n StringBuffer sb = new StringBuffer(\"[RegistrationItems |\");\n sb.append(\" regItemUid=\").append(getRegItemUid());\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return id.toString();\n }",
"@Override\n public String toString() {\n return id.toString();\n }",
"private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}",
"public static String writeItemsToJson(List<EntityRef> items) {\r\n\t\tif(items == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn EntityFactory.writeToJSONArrayString(items);\r\n\t\t} catch (JSONObjectAdapterException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void writeToParcel(Parcel out, int flags) {\n\t\tout.writeTypedList(items);\r\n\t}",
"public void serialize() {\n\t\t\n\t}",
"public String toString() {\n return Arrays.toString(id);\n }",
"@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}",
"@Override\n public String toString()\n {\n return super.toString()+id;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getItems() != null)\n sb.append(\"Items: \").append(getItems()).append(\",\");\n if (getCount() != null)\n sb.append(\"Count: \").append(getCount()).append(\",\");\n if (getScannedCount() != null)\n sb.append(\"ScannedCount: \").append(getScannedCount()).append(\",\");\n if (getLastEvaluatedKey() != null)\n sb.append(\"LastEvaluatedKey: \").append(getLastEvaluatedKey()).append(\",\");\n if (getConsumedCapacity() != null)\n sb.append(\"ConsumedCapacity: \").append(getConsumedCapacity());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return id;\n }",
"public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }",
"@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getItems() != null) sb.append(\"Items: \" + getItems() + \", \");\n if (getCount() != null) sb.append(\"Count: \" + getCount() + \", \");\n if (getLastEvaluatedKey() != null) sb.append(\"LastEvaluatedKey: \" + getLastEvaluatedKey() + \", \");\n if (getConsumedCapacityUnits() != null) sb.append(\"ConsumedCapacityUnits: \" + getConsumedCapacityUnits() + \", \");\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return \"Container{\" + \"id=\" + id + \", realPosition=\" + realPosition + \", indexPosition=\" + indexPosition + \", size=\" + size + '}';\n }",
"@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn \"NID \" + nid + \", BID \" + bid;\n\t\t}",
"@Override\r\n\tpublic String marshalSC(E19 cs) throws JAXBException {\n\t\t\r\n\r\n\t\tJAXBElement<E19> element = scFactory.createE23(cs);\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tscMarshaller.marshal(element, sw);\r\n\t\tString xml = sw.toString();\r\n\t\treturn xml;\r\n\t}",
"public String serialize() {\n return x + \", \" + y + \", \" + z;\n }",
"public static void ProcessListOfItems(Attributes atts,HashMap<Integer, HashMap<String,String > > Container)\n { \n \tHashMap<String,String> ObjectData = new HashMap<String,String>();\n \tInteger ObjectID = ParseIntStringOrMinusOne(atts.getValue(ID_ATTR));\n \tFCOrderManagerXMLHelper.DoConvertAttrsToStringMap(atts,ObjectData);\n \tContainer.put(ObjectID,ObjectData);\n }",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}",
"public void write() {\r\n\t\ttry {\r\n\t\t\tDataOutputStream dat = new DataOutputStream(new FileOutputStream(signlink.getDirectory() + \"idk.dat\"));\r\n\t\t\tdat.writeShort(IdentityKit.cache.length);\r\n\t\t\tfor (IdentityKit idk : IdentityKit.cache) {\r\n\t\t\t\tif (idk.partId != -1) {\r\n\t\t\t\t\tdat.writeByte(1);\r\n\t\t\t\t\tdat.writeByte(idk.partId);\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.models != null) {\r\n\t\t\t\t\tdat.writeByte(2);\r\n\t\t\t\t\tdat.writeByte(idk.models.length);\r\n\t\t\t\t\tfor (int index = 0; index < idk.models.length; index++) {\r\n\t\t\t\t\t\tdat.writeShort(idk.models[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.disableDisplay) {\r\n\t\t\t\t\tdat.writeByte(3);\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.oldColors != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.oldColors.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(40 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.oldColors[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.newColors != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.newColors.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(50 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.newColors[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.dialogModels != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.dialogModels.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(60 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.dialogModels[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdat.writeByte(0);\r\n\t\t\t}\r\n\t\t\tdat.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void writeToParcel(Parcel parcel_out, int flags) {\n parcel_out.writeInt(id);\n parcel_out.writeString(name);\n parcel_out.writeString(slug);\n }",
"public abstract String serialise();",
"public String toString( ) {\n return \"v\" + id;\n }",
"public String getIdentifiers() {\n return identifiers;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"id:\"+this.id+\",cid:\"+this.cid+\",pid:\"+this.pid+\",contacts:\"+this.contacts+\",tel\"+this.tel\n\t\t\t\t+\",code:\"+this.code+\",name:\"+this.name+\",category:\"+this.category+\",brand:\"+this.brand\n\t\t\t\t+\",license:\"+this.license+\",logo:\"+this.logo+\",image:\"+this.image+\",working:\"+this.working\n\t\t\t\t+\",workend:\"+this.workend+\",longtitude\"+this.longitude+\",latitude:\"+this.latitude+\",address:\"\n\t\t\t\t+this.address+\",info:\"+this.info+\",visit:\"+this.visit;\n\t}",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.valueOf(this.getId());\n\t}",
"Collection<LocatorIF> getItemIdentifiers();",
"@Override\n\tprotected void writeToXml(EwsServiceXmlWriter writer) throws Exception {\n\t\tthis.item.getId().writeToXml(writer);\n\n\t}",
"public static String serializeClients(List<Client> c) {\r\n System.out.println(\"EncodeJSON - method serializeClients\" + c);\r\n return gson.toJson(c);\r\n }",
"public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"@Override \r\n\tpublic String toString(){\r\n\t\t\r\n\t\treturn transCode + id;\r\n\t}",
"@Override\n\tpublic void writeExternal(ObjectOutput out) throws IOException {\n\t\tout.writeObject(name);\n\t\tout.writeInt(i);\n\t\t\n\t}",
"@Override\n\tprotected Set<Integer> getItemIds() {\n\t\t\n\t\tBnetDistributedKB bdKb = (BnetDistributedKB)kb;\n\t\t\n\t\treturn bdKb.itemIds;\n\t}",
"@Override\n\tprotected Set<Integer> getItemIds() {\n\t\t\n\t\tBnetDistributedKB bdKb = (BnetDistributedKB)kb;\n\t\t\n\t\treturn bdKb.itemIds;\n\t}",
"public Set<ILocator> getItemIdentifiers() {\r\n\t\treturn getIdentities(Key.ITEM_IDENTIFIER);\r\n\t}",
"public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.getClass().getName() + \" id=\" + get_id();\r\n\t}",
"@Override\n public String toString() {\n StringBuilder r = new StringBuilder(\"\");\n for (Itemset itemset : itemsets) {\n r.append(\"{t=\");\n r.append(itemset.getTimestamp());\n r.append(\", \");\n for (Item item : itemset.getItems()) {\n String string = item.toString();\n r.append(string);\n r.append(' ');\n }\n r.append('}');\n }\n return r.append(\" \").toString();\n }",
"@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getId() != null)\n sb.append(\"Id: \").append(getId()).append(\",\");\n if (getDocumentId() != null)\n sb.append(\"DocumentId: \").append(getDocumentId()).append(\",\");\n if (getDocumentTitle() != null)\n sb.append(\"DocumentTitle: \").append(getDocumentTitle()).append(\",\");\n if (getContent() != null)\n sb.append(\"Content: \").append(getContent()).append(\",\");\n if (getDocumentURI() != null)\n sb.append(\"DocumentURI: \").append(getDocumentURI()).append(\",\");\n if (getDocumentAttributes() != null)\n sb.append(\"DocumentAttributes: \").append(getDocumentAttributes());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}",
"@Override\n public int hashCode() {\n return ASNID;\n }",
"void assignIDs(final BinaryPropertyListWriter out) {\n out.assignID(this);\n }",
"public void writeEquipment() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/equipment.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(equipment);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String toString() {\n\n return this.getClass().getName() + \" -- \" \n\n + \" [Id:\" + this.getSequenceNumber()\n\n + \", ts:\" + this.getTimeStamp() + \"]\";\n\n }",
"@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}",
"public static List<CompoundTag> writeInventory(ItemStack[] items, int start) {\n List<CompoundTag> out = new ArrayList<>();\n for (int i = 0; i < items.length; i++) {\n ItemStack stack = items[i];\n if (!InventoryUtil.isEmpty(stack)) {\n out.add(writeItem(stack, start + i));\n }\n }\n return out;\n }",
"@Override\n public String toString() {\n return \"MultiKey\" + Arrays.toString(keys);\n }",
"private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }",
"private String toBase64(Inventory inventory) throws IllegalStateException {\n try {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n BukkitObjectOutputStream dataOutput = new BukkitObjectOutputStream(outputStream);\n\n // Write the size of the inventory\n dataOutput.writeInt(inventory.getSize());\n\n // Save every element in the list\n for (int i = 0; i < inventory.getSize(); i++) {\n dataOutput.writeObject(inventory.getItem(i));\n }\n\n // Serialize that array\n dataOutput.close();\n return Base64Coder.encodeLines(outputStream.toByteArray());\n } catch (Exception e) {\n throw new IllegalStateException(\"Unable to save item stacks.\", e);\n }\n }",
"private void writeObject(ObjectOutputStream out) throws IOException {\n Set<PackageIdentifier> successfulPkgs = transitiveSuccessfulPkgs.toSet();\n out.writeInt(successfulPkgs.size());\n for (PackageIdentifier pkg : successfulPkgs) {\n out.writeObject(pkg);\n }\n\n out.writeObject(transitiveUnsuccessfulPkgs);\n // Deliberately do not write out transitiveTargets. There is a lot of those and they drive\n // serialization costs through the roof, both in terms of space and of time.\n // TODO(bazel-team): Deal with this properly once we have efficient serialization of NestedSets.\n out.writeObject(transitiveRootCauses);\n out.writeObject(errorLoadingTarget);\n }",
"public String toString() {\n return \"{ isbn: '\" + this.isbn + \"', title:'\" + this.title + \"', year: '\"\n + this.year + \"'}\";\n }",
"public String toString() {\r\n \treturn \"Course: \"+courseName+\"|\"+cid+\"|\"+start+\"|\"+end+\"|\"+modules.size()+\" modules\";\r\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getBatchId()));\n sb.append(\", \");\n sb.append(f.formatAny(getNestId()));\n return sb.toString();\n }",
"IdentifiersType createIdentifiersType();",
"@Override\n\tpublic void encode(Crate object, IoBuffer buf) {\n\t}",
"interface ID extends Serializable {\n\n }",
"public String toString()\n {\n return key.toString() + \" => \" + item.toString();\n }",
"void serialize(PackageState state, OutputStream out);",
"@Override\r\n\tpublic void serializar() {\n\r\n\t}",
"@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}",
"@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\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}",
"protected void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 115: */ {\r\n/* 116:137 */ super.writeEntityToNBT(paramfn);\r\n/* 117: */ \r\n/* 118:139 */ fv localfv = new fv();\r\n/* 119:141 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 120:142 */ if (this.a[i] != null)\r\n/* 121: */ {\r\n/* 122:143 */ NBTTagCompound localfn = new NBTTagCompound();\r\n/* 123:144 */ localfn.setByte(\"Slot\", (byte)i);\r\n/* 124:145 */ this.a[i].writeToNBT(localfn);\r\n/* 125:146 */ localfv.a(localfn);\r\n/* 126: */ }\r\n/* 127: */ }\r\n/* 128:149 */ paramfn.setNBT(\"Items\", localfv);\r\n/* 129: */ }",
"private void writeObjectToStream(ByteArrayOutputStream baos) throws IOException {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\n\t\t\toos.writeObject(this.category);\n\t\t\toos.writeObject(this.entityId.toString());\n\t\t\toos.writeObject(this.entityType);\n\t\t\toos.writeObject(this.entityLink);\n\t\t\toos.writeObject(this.severity);\n\t\t\toos.writeObject(this.validationRule.toString());\n\t\t\toos.writeObject(this.violationDetails.toString());\n\t\t\toos.writeObject(this.violationType);\n\t\t\toos.close();\n\t\t}",
"public String toString() {\n StringBuffer aBuffer = new StringBuffer(super.toString());\n aBuffer.append(\"[id=\").append(_theId).\n append(\" parent=\").append(_theParent).\n append(\" paths=\").append(_thePaths).\n append(\"]\");\n\n return aBuffer.toString();\n }",
"@Override\n public String toString() {\n return \"{\" + this.elementos[0] + \",\" + this.elementos[1] + \"}\";\n }"
] |
[
"0.5355672",
"0.5351521",
"0.50354826",
"0.50354254",
"0.495893",
"0.48093835",
"0.47594216",
"0.47377154",
"0.46998033",
"0.4624193",
"0.45654595",
"0.4542129",
"0.44829023",
"0.44818416",
"0.4481166",
"0.44352022",
"0.44319406",
"0.44217345",
"0.44172227",
"0.44172227",
"0.44172227",
"0.44172227",
"0.44172227",
"0.44172227",
"0.4405043",
"0.4385526",
"0.43815377",
"0.43643877",
"0.4364322",
"0.4361715",
"0.43353713",
"0.43347558",
"0.43240404",
"0.43135154",
"0.43086445",
"0.42869726",
"0.4281649",
"0.42765796",
"0.42755523",
"0.42705694",
"0.426817",
"0.4229883",
"0.42285162",
"0.422104",
"0.42172265",
"0.4211261",
"0.4203351",
"0.41974527",
"0.41863847",
"0.41844475",
"0.41795003",
"0.41728294",
"0.4167255",
"0.4162885",
"0.4161889",
"0.41591972",
"0.4147544",
"0.4145149",
"0.4143171",
"0.4142222",
"0.4140435",
"0.41339824",
"0.4128767",
"0.412741",
"0.41255435",
"0.41255435",
"0.41216418",
"0.41193008",
"0.4115948",
"0.41117802",
"0.41096088",
"0.410845",
"0.41076344",
"0.4107129",
"0.41046384",
"0.41039813",
"0.40978405",
"0.4093189",
"0.40891403",
"0.40675315",
"0.4066852",
"0.40663505",
"0.40648404",
"0.40573788",
"0.40564027",
"0.4055768",
"0.40480122",
"0.40448225",
"0.40428552",
"0.40398273",
"0.4039658",
"0.40383238",
"0.40371",
"0.402803",
"0.40233538",
"0.40197837",
"0.4018979",
"0.40188783",
"0.40139407",
"0.40126115"
] |
0.766816
|
0
|
Writes a set of locators under the specified name. If the set is empty, this method does nothing.
|
private void _writeLocators(final String name, final Set<Locator> locators) throws IOException {
if (locators.isEmpty()) {
return;
}
_out.key(name);
_out.startArray();
for (Locator loc: locators) {
_out.value(loc.toExternalForm());
}
_out.endArray();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setLookupLocators( LookupLocator[] locs ) throws RemoteException {\n\t\tlog.config(\"set lookup locators\");\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.setLocators( locs );\n\t\t\tdata.locators = locs;\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"setLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"setLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public void setLocators(String locators) {\n agentConfig.setLocators(locators);\n }",
"public void addLookupLocators( LookupLocator[] locs ) throws RemoteException {\n\t\tlog.config(\"adding lookup locators\");\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.addLocators( locs );\n\t\t\tVector v = mergeArrays( data.locators, locs );\n\t\t\tdata.locators = new LookupLocator[ v.size() ];\n\t\t\tv.copyInto( data.locators );\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"addLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"addLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public SeveralLociMutatorTest(String name) \r\n\t{\r\n\t\tsuper(SeveralLociMutator.class, name);\r\n\t}",
"public abstract void setLocations(java.util.Set locations);",
"public void removeLookupLocators( LookupLocator[] locs ) throws RemoteException {\n\t\tlog.config(\"remove lookup locators\");\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.removeLocators( locs );\n\t\t\tdata.locators = locs;\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"removeLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"removeLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"private void writeMonitors(BufferedWriter bw, ArrayList<String> usedNamesMonitors) throws IOException {\n\t\tif (!isAlreadyWrittenToCPN()) {\n\t\t\tIterator transitions = this.getTransitions().iterator();\n\t\t\twhile (transitions.hasNext()) {\n\t\t\t\tColoredTransition transition = (ColoredTransition) transitions.next();\n\t\t\t\tif (transition.getSubpage() == null) {\n\t\t\t\t\tif (this.getIdentifier().equals(\"Environment\") &&\n\t\t\t\t\t\t\ttransition.getIdentifier().equals(\"Clean-up\")) {\n\t\t\t\t\t\t// don't write a monitor for this transition\n\t\t\t\t\t} else if (transition.getIdentifier().equals(\"Init\")) {\n\t\t\t\t\t\t// write the initialisation monitor for this transition\n\t\t\t\t\t\ttransition.writeInitMonitor(bw);\n\t\t\t\t\t\tusedNamesMonitors.add(\"Init\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// write the monitor for this transition\n\t\t\t\t\t\ttransition.writeLoggingMonitor(bw, usedNamesMonitors);\n\t\t\t\t\t}\n\t\t\t\t} else { // there exists a subpage\n\t\t\t\t\ttransition.getSubpage().writeMonitors(bw, usedNamesMonitors);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.pnWrittenToCPN = true;\n\t\t}\n\t}",
"public static Set<PrintWriter> getWriters() {\n return writers;\n }",
"public abstract java.util.Set getLocations();",
"public String getLocators() {\n return agentConfig.getLocators();\n }",
"ImmutableMap<ImmutableList<String>, Set<Location>> index(Set<Location> locations) {\n Map<ImmutableList<String>, Set<Location>> index = new HashMap<>(locations.size());\n for (Location location : locations) {\n for (String name : location.getNames()) {\n ImmutableList<String> tokens = tokenizer.tokenize(name);\n put(index, tokens, location);\n }\n }\n return ImmutableMap.copyOf(index);\n }",
"private static void writeLocations(XMLStreamWriter w, RepositoryConnection con) throws XMLStreamException {\n\t\tint nr = 0;\n\n\t\ttry (RepositoryResult<Statement> res = con.getStatements(null, RDF.TYPE, DCTERMS.LOCATION)) {\n\t\t\twhile (res.hasNext()) {\n\t\t\t\tIRI iri = (IRI) res.next().getSubject();\n\n\t\t\t\tValue bbox = null;\n\t\t\t\tRepositoryResult<Statement> bboxes = con.getStatements(iri, DCAT.BBOX, null);\n\t\t\t\twhile (bboxes.hasNext()) {\n\t\t\t\t\tValue val = bboxes.next().getObject();\n\t\t\t\t\tif (val.stringValue().startsWith(\"POLYGON\")) {\n\t\t\t\t\t\tbbox = val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (bbox != null) {\n\t\t\t\t\tnr++;\n\t\t\t\t\tw.writeStartElement(\"dct:Location\");\n\t\t\t\t\tw.writeAttribute(\"rdf:about\", iri.toString());\n\t\t\t\t\twriteLiteral(w, \"dcat:bbox\", bbox);\n\t\t\t\t\tw.writeEndElement();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLOG.info(\"Wrote {} locations\", nr);\n\t}",
"private static void readAndWriteNodes(String name) throws IOException {\n System.out.println(name);\n Map<Long, Long> nodeMap = new HashMap<>();\n boolean firstLine = true;\n fileReader = new BufferedReader(new FileReader(PATH + name));\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n String line;\n while ((line = fileReader.readLine()) != null) {\n if (!firstLine) {\n long globalId = getGlobalId();\n String[] lineTokens = LINE_TOKEN_SEPARATOR.split(line);\n long ID = Long.parseLong(lineTokens[0]);\n nodeMap.put(ID, globalId);\n String writeLine = \"\";\n for (int i = 0; i < lineTokens.length; i++) {\n if (i == 0) {\n writeLine += globalId;\n } else {\n writeLine += lineTokens[i];\n }\n writeLine += \"|\";\n }\n fileWriter.write(writeLine);\n fileWriter.newLine();\n vertexCount++;\n globalVertexCount++;\n } else {\n fileWriter.write(line);\n fileWriter.newLine();\n firstLine = false;\n }\n }\n fileWriter.close();\n fileReader.close();\n counterMapNodes.put(name, vertexCount);\n vertexCount = 0;\n vertexList.add(nodeMap);\n }",
"@Override\n public void write() {\n for(MDCWriter writer : this.writers) {\n writer.write();\n }\n }",
"public interface ILocator {\n\n\tpublic void addName(IName name);\n\tpublic void removeName(IName name);\n\tpublic Iterator<IName> getAllNames();\n\t\n}",
"@Override\r\n public void close() throws IOException {\r\n IOException ioException = null;\r\n for (WriterInfo writerInfo : mWriters) {\r\n try {\r\n Writer writer = writerInfo.getWriter();\r\n if (writerInfo.getOwned()) {\r\n writer.close();\r\n } else {\r\n writer.flush();\r\n }\r\n } catch(IOException ioex) {\r\n ioException = ioex;\r\n }\r\n }\r\n if (ioException != null) {\r\n throw ioException;\r\n }\r\n }",
"public Enumeration getResourceLocations( String name );",
"private void writeAliases(ArrayList<Cutscene> cutscenes)throws FileHandlingException{\n\t\tPrintWriter pw;\n\t\ttry {\n\t\t\tpw = new PrintWriter(\"ext/aliases.txt\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new FileHandlingException(\"Unable to write ALIASES file: \" + e.getMessage());\n\t\t}\n\t\tfor(Cutscene cutscene:cutscenes){\n\t\t\tpw.println(cutscene.getAlias());\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}",
"private void scanForLocations(Element elem) {\n \n String location = getLocation(elem);\n if (location != null) {\n locationToElement.put(location, elem);\n DOM.setInnerHTML(elem, \"\");\n } else {\n int len = DOM.getChildCount(elem);\n for (int i = 0; i < len; i++) {\n scanForLocations(DOM.getChild(elem, i));\n }\n }\n }",
"public static void createFileWriterLocs(int numberlocations, double[] lonlats) throws IOException{\n\t\tFileWriter outputloc = new FileWriter(\"locations.csv\");\n\t\toutputloc.append(new String(\"ID, Long, Lat\"));\n\t\toutputloc.append(\"\\n\");\n\t\t\n\t\tint coordpos=0;\n\t\tfor (int i=1; i<numberlocations+1;i++){\n\t\t\toutputloc.append(Objects.toString(i));\n\t\t\toutputloc.append(\",\");\n\t\t\toutputloc.append(Objects.toString(lonlats[coordpos]));\n\t\t\toutputloc.append(\",\");\n\t\t\toutputloc.append(Objects.toString(lonlats[coordpos+1]));\n\t\t\toutputloc.append(\"\\n\");\n\t\t\tcoordpos=coordpos+2;\n\t\t}\n\t\toutputloc.close();\n\t}",
"public static void write(String hopIndexes) {\n\t\tSystem.out.println(hopIndexes);\n\t}",
"public void writer(List<String> toStore) throws IOException{\n //creates writer and clears file\n PrintWriter writer = new PrintWriter(\"output.txt\", \"UTF-8\");\n //for each loop to store all the values in the file into the file named output.txt\n for(String s : toStore)\n //stores the strings for outputting\n writer.println(s);\n //closes the writer and outputs to the file\n writer.close();\n }",
"public void writeOut(Set<String> uniqueWords) {\r\n Path file = Paths.get(filename + \"_unique_words.txt\");\r\n Charset charset = Charset.forName(\"UTF-8\");\r\n try (BufferedWriter writer = Files.newBufferedWriter(file, charset)) {\r\n for (String s : uniqueWords)\r\n {\r\n writer.write(s);\r\n writer.newLine();\r\n }\r\n } catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n }",
"public static void outputNames(ArrayList<String> names) throws IOException {\n\n //Open filewriter for output file\n FileWriter output = new FileWriter(\"exercise41_output.txt\");\n\n // Write default text for output file for how many names there are\n output.write(\"Total of \" + names.size() + \" names\\n\");\n output.write(\"-----------------\\n\");\n\n // Write names in file\n for (String i : names) {\n output.write(i + \"\\n\");\n }\n\n //Close the filewriter\n output.close();\n }",
"public TaskCatagoryPageLocators() {\n }",
"void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"public void setDocumentLocator (Locator locator)\n {\n // no op\n }",
"public void writeTokens() throws IOException {\r\n FileOutputStream fOutStream = new FileOutputStream(\"output.txt\");\r\n PrintStream outFS = new PrintStream(fOutStream);\r\n\r\n for (int i = 0; i < tokenList.size(); i++) {\r\n outFS.println(tokenList.get(i).evaluate());\r\n }\r\n fOutStream.close();\r\n outFS.close();\r\n }",
"public void toDraw(String[] names, int[] positions)\r\n\t{\r\n\t\tsetArrayCounter(0);\r\n\t\tfind(names, positions, getRoot(), 1);\r\n\t}",
"public static void save() {\n\t\tfor (TeleporterData tld : teleports.values()) {\n\t\t\ttld.write();\n\t\t}\n\t}",
"public void writePeers() {\n\t\ttry(FileWriter filewriter = new FileWriter(peersFile)) {\n\t\t\tIterator<InetAddress> itr = peers.keySet().iterator();\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tInetAddress p = itr.next();\n\t\t\t\tfilewriter.write(p.getHostAddress()+\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tDecentLogger.write(\"Unable to write peers to file\");\n\t\t}\n\t}",
"public static void writeIndexPositions(TreeSet<Integer> positions, BufferedWriter writer, int level)\n\t\t\tthrows IOException {\n\t\tif (!positions.isEmpty()) {\n\t\t\twriter.newLine();\n\t\t\twriter.write(indent(level) + positions.first());\n\t\t\tfor (Integer item : positions.tailSet(positions.first(), false)) {\n\t\t\t\twriter.write(\",\");\n\t\t\t\twriter.newLine();\n\t\t\t\twriter.write(indent(level) + item);\n\t\t\t}\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 writeVisits() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/visits.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(visits);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"private void dumpCollection(Collection<String> strs, String fileName)\n throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(fileName, \"UTF-8\");\n\n for (String str : strs) {\n writer.println(str);\n }\n\n writer.close();\n }",
"private void writeAllMatchedAirlineMappings(HttpServletResponse response, String name) throws IOException {\r\n int matches = 0;\r\n PrintWriter pw = response.getWriter();\r\n pw.println(Messages.getMappingCount(data.size()));\r\n\r\n for (Map.Entry<String, Airline> entry : this.data.entrySet()) {\r\n if (entry.getKey().equals(name)) {\r\n pw.println(entry.getKey());\r\n for (Object flight : entry.getValue().getFlights()) {\r\n Flight flight1 = (Flight) flight;\r\n ++matches;\r\n pw.println(\"\\t\" + flight.toString() + \" Duration(minutes) \" + flight1.getDuration());\r\n }\r\n }\r\n }\r\n\r\n if (matches == 0) {\r\n pw.println(\"No airline matches exist for that search\");\r\n }\r\n pw.flush();\r\n\r\n response.setStatus(HttpServletResponse.SC_OK);\r\n }",
"@Override\n\tpublic void writeFile(String hashname) {\n\t\tfor(CircosNode node : nodes){\n\t\t\tString useThisLabel = \"\";\n\t\t\tif(node.getLabel().length() > maxLabelLenght){\n\t\t\t\tuseThisLabel = node.getLabel().substring(0, maxLabelLenght) + \"...\";\n\t\t\t}else{\n\t\t\t\tuseThisLabel = node.getLabel();\n\t\t\t}\n\t\t\toutput += \"chr\" + Settings.CIRCOS_DELIMITER + \"-\" + Settings.CIRCOS_DELIMITER + node.getID() + Settings.CIRCOS_DELIMITER + useThisLabel + \n\t\t\t\t\tSettings.CIRCOS_DELIMITER + \"0\" + Settings.CIRCOS_DELIMITER + Math.round(node.getSzMetricValue()) + \n\t\t\t\t\tSettings.CIRCOS_DELIMITER + node.getID() + \"\\n\";\n\t\t}\n\t\tTools.createFile(Settings.CIRCOS_DATA_PREFIX+\"node\"+hashname+\".txt\", output);\n\t}",
"public void setEntityLocators(final List<EntityLocator> entityLocators) {\n\t\tthis.entityLocators = entityLocators;\n\t}",
"public String pathList()\n {\n StringBuilder pathString = new StringBuilder();\n for (Location accessibleLocation : accessibleLocations) {\n pathString.append(accessibleLocation.getName()).append(\"\\n\");\n }\n return pathString.toString();\n }",
"public void writeToFile(String filename, HashSet<String> URLS) {\n\t FileWriter writer;\n\t try {\n\t writer = new FileWriter(filename);\n\t URLS.forEach(a -> {\n\t try {\n\t writer.write(a + \"\\n\");\n\t } catch (IOException e) {\n\t System.err.println(e.getMessage());\n\t }\n\t });\n\t writer.close();\n\t } catch (IOException e) {\n\t System.err.println(e.getMessage());\n\t }\n\t }",
"void localOutputXml(IvyXmlWriter xw)\n{\n xw.field(\"KIND\",\"MUTEX\");\n for (TraceLockLocation ll : getLocations()) {\n ll.outputXml(xw,false);\n }\n}",
"public Collection<WriterProxy> getMatchedWriters() {\r\n\t\treturn writerProxies.values();\r\n\t}",
"public void saveRegionList(String fileName) {\n try {\n BufferedWriter out = new BufferedWriter(new FileWriter(fileName));\n out.write(maxRegions+\"\\r\\n\");\n out.write(numRegions+\"\\r\\n\"); \n \n for (int i = 0; i < numRegions; i++) {\n out.write(regionList[i].toFile());\n }\n \n out.close();\n } catch (IOException iox) {\n System.out.println(\"Error saving to \" + fileName);\n }\n }",
"public void cacheIdentities(Key key, Set<ILocator> locators) {\r\n\t\tif (identities == null) {\r\n\t\t\tidentities = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tidentities.put(key, locators);\r\n\t}",
"public void setLocations(Resource[] locations) {\n\t\tthis.locations = locations;\n\t}",
"public phaseI.Hdfs.DataNodeLocation.Builder addLocationsBuilder() {\n return getLocationsFieldBuilder().addBuilder(\n phaseI.Hdfs.DataNodeLocation.getDefaultInstance());\n }",
"public void addNames() {}",
"public void addNames() {}",
"public void toAddWrite(ArrayList<Client> clients, String nameFileWriter) throws Exception{\n \n FileWriter fout = null;\n PrintWriter pw = null;\n \n try{\n fout = new FileWriter(nameFileWriter, true);\n pw = new PrintWriter(fout);\n \n String line = \"Client Name,Save Set Name,Group Start Time,Save Type,Level,Status\";\n pw.println(line);\n \n int size = clients.size();\n \n for(int i=0;i<size;++i){\n for(int j=0;j<clients.get(i).getSizeErrors();++j){\n pw.println(clients.get(i).getName() + \",\" + clients.get(i).getReport(j).toString()); \n }\n } \n }catch(Exception e){\n throw new Exception(\"Error de escritura\");\n }finally{\n if(null != fout){\n fout.close();\n }\n }\n \n }",
"public void writeTo(final PrintWriter writer) {\n boolean first = true;\n final Set<String> names = new TreeSet<String>(myServerMetrics.keySet());\n for (final String name : names) {\n final BasicServerMetrics serverMetrics = myServerMetrics.get(name);\n if (first) {\n first = false;\n }\n else {\n writer.println();\n }\n writer.print(serverMetrics);\n }\n }",
"public void saveActiveSet(String setName, Collection<? extends ActiveGroupEntry> groups)\n {\n Collection<? extends ActiveGroupEntry> filteredGroup = filterOutNonUserActivateableGroups(groups);\n JAXBDataGroupInfoActiveSet set = new JAXBDataGroupInfoActiveSet(setName, filteredGroup);\n Set<DataGroupInfoActiveSet> removed = myActiveSetConfig.removeSet(setName);\n myActiveSetConfig.addSet(set);\n saveActiveSetConfig();\n myController.getToolbox().getEventManager().publishEvent(new ActiveDataGroupSavedSetsChangedEvent(setName,\n removed.isEmpty() ? ActiveDataGroupSavedSetsChangedEvent.ChangeType.ADD : ChangeType.CHANGED));\n }",
"public void setLocations(Resource[] locations) {\n this._locations = locations;\n }",
"public synchronized void setoptset(String name)\n {\n this.opset.add(new OptionSet(name.toUpperCase(Locale.getDefault())));\n }",
"private void checkLocation(String mapName, Set<Point> seenLocations, List<Point> wildLocations) {\n Assert.assertFalse(mapName, wildLocations.isEmpty());\n for (Point location : wildLocations) {\n Assert.assertFalse(seenLocations.contains(location));\n seenLocations.add(location);\n }\n }",
"public void saveMapName( String name){\n\t\t\n\t\tif(!nameAlreadyExists(name)){\n\t\t\ttry {\n\t\t\t\tFileWriter w= new FileWriter(new File(\"mapRecords.txt\"),true);\n\t\t\t\tw.write(name);\n\t\t\t\tw.write(System.lineSeparator())\t;\n\t\t\t\tw.flush();\n\t\t\t\tw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.out.println(\"Can't write to file\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\treturn;\n\t}",
"public void writeSectData(ImgFileWriter writer) {\n \t\tString lastName = \"\";\n \t\tfor (Mdr13Record reg : regions) {\n \t\t\tputMapIndex(writer, reg.getMapIndex());\n \n \t\t\tint flag = 0;\n \t\t\tString name = reg.getName();\n \t\t\tif (!name.equals(lastName)) {\n \t\t\t\tflag = 0x800000;\n \t\t\t\tlastName = name;\n \t\t\t}\n \n \t\t\twriter.putChar((char) reg.getRegionIndex());\n \t\t\twriter.putChar((char) reg.getCountryIndex());\n \t\t\twriter.put3(reg.getLblOffset() | flag);\n \t\t}\n \t}",
"public void saveMap(String name){\n\t\tString path = new File (\".\").getAbsolutePath();\n\t\t//System.out.println(path);\n\t\tObjectOutputStream outputStream=null;\n\t\t\n\t\tString fileName=path.concat(\"//Maps//\"+name+\".txt\");\n\t\tFile file = new File(fileName);\n\t\t\n\t\n\t\t\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream =new FileOutputStream(file);\n\t\t\toutputStream = new ObjectOutputStream(fileOutputStream);\n\t\t\n\t\t\toutputStream.writeInt(getWidth());\n\t\t\toutputStream.writeInt(getHeight());\n\t\t\t\n\t\t\tfor (Path p : temp){\n\t\t\t\toutputStream.writeInt(p.getPos());\n\t\t\t}\n\t\t\toutputStream.writeInt(-1);\n\t\t\t\n\t\t\toutputStream.flush();\n\t\t\toutputStream.close();\n\t\t\tsaveMapName(name);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem opening the file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem with output to file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\n\n\n\t}",
"public void setLocs(String newValue);",
"public void setAll(String name, FrillLoc loc, String font) {\n MyName = new String(name);\n MyLocation = loc;\n NameFont = new FontFinder(font, FontList.FONT_LABEL);\n NameFrill = new LabelFrill(name, loc, NameFont);\n }",
"public void setCurators(nl.webservices.www.soap.InsolvencyCurators curators) {\n this.curators = curators;\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation.Builder> \n getLocationsBuilderList() {\n return getLocationsFieldBuilder().getBuilderList();\n }",
"private static void writeToCoordinateFile(String idNames, String[] id_to_coord_list, String outputFileName){\n String[] stringToWrite = getStringBasedOnCoordinate( idNames, id_to_coord_list); //list of id we found, ignore the first 0th index\n writeToFile(stringToWrite, outputFileName);\n }",
"private static void writeStrings(BufferedWriter out, Collection strings) throws IOException {\n\t\tIterator it = strings.iterator();\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\tString string = (String)it.next();\n\t\t\tif (string!=null) out.write(string);\n\t\t\tif (it.hasNext()) out.write('\\t');\n\t\t}\n\t\tout.newLine();\n\t}",
"@Test\n\tpublic void testStartVisitsPrintsOtherLocations() {\n\t\t//Arrange\n\t\tint startLoc[] = new int[]{2};\n\t\tint otherLocs[] = new int[]{0,1,3,4};\n\t\t\n\t\tMockito.when(randMock.generateRandomNumber(1, 4, seed)).thenReturn(startLoc);\n\t\tMockito.when(randMock.generateRandomNumber(10, 5, seed+1)).thenReturn(otherLocs);\n\t\t\n\t\t//Act\n\t\titeratorObj.startVisits();\n\t\t\n\t\t//Assert\n\t\tMockito.verify(printerMock, times(1)).printVisits(\"The Point\", visitorMock, false);\n\t\tMockito.verify(printerMock, times(1)).printVisits(\"The Cathedral of Learning\", visitorMock, false);\n\t\tMockito.verify(printerMock, times(1)).printVisits(\"Squirrel Hill\", visitorMock, false);\n\t\tMockito.verify(printerMock, times(1)).printVisits(\"Downtown\", visitorMock, false);\n\t}",
"protected abstract void getAllUniformLocations();",
"public void exportList(String name){\n }",
"public static void writeEdges(BufferedWriter bw, String accession, HashSet<String> targets, String category) {\n\n targets.stream()\n .sorted()\n .forEach(target -> writeEdge(bw, accession, target, category));\n }",
"public Set<ILocator> getSubjectLocators() {\r\n\t\treturn getIdentities(Key.SUBJEC_LOCATOR);\r\n\t}",
"public static Set getIsoschizomers(String name) throws BioException\n {\n if (! nameToIsoschizomers.containsKey(name))\n throw new BioException(\"Unknown RestrictionEnzyme name '\"\n + name\n + \"'\");\n \n return Collections.unmodifiableSet((Set) nameToIsoschizomers.get(name));\n }",
"public void setName(String arg[]) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.NAME.toString(), arg);\n\t}",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}",
"@Override\n public void close() {\n\n LOG.log(Level.FINER, \"Closing the evaluators - begin\");\n\n final List<EvaluatorManager> evaluatorsCopy;\n synchronized (this) {\n evaluatorsCopy = new ArrayList<>(this.evaluators.values());\n }\n\n for (final EvaluatorManager evaluatorManager : evaluatorsCopy) {\n if (!evaluatorManager.isClosedOrClosing()) {\n LOG.log(Level.WARNING, \"Unclean shutdown of evaluator {0}\", evaluatorManager.getId());\n evaluatorManager.close();\n }\n }\n\n LOG.log(Level.FINER, \"Closing the evaluators - end\");\n }",
"public static void writeGroups(String nodeIndexedOutput, HashMap<Integer, ArrayList<String>> groups, boolean writeGroupId) {\n\t\ttry {\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(nodeIndexedOutput));\n\t\t\t//writer.write(\"communityId\\tnodes\\n\");\n\t\t\tfor(int group:groups.keySet()) {\n\t\t\t\tif(writeGroupId)writer.write(group+outputDelimiterG);\n\t\t\t\tfor(int i=0; i<groups.get(group).size(); ++i) {\n\t\t\t\t\tString node = groups.get(group).get(i);\n\t\t\t\t\twriter.write(node);\n\t\t\t\t\tif(i<groups.get(group).size()-1) {\n\t\t\t\t\t\twriter.write(outputDelimiter);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriter.write(\"\\n\");\n\t\t\t}\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public void write(char[] cbuf, int off, int len) throws IOException {\r\n\r\n IOException ioException = null;\r\n for (WriterInfo writerInfo : mWriters) {\r\n try {\r\n writerInfo.getWriter().write(cbuf, off, len);\r\n } catch(IOException ioex) {\r\n ioException = ioex;\r\n }\r\n }\r\n if (ioException != null) {\r\n throw ioException;\r\n }\r\n\r\n }",
"public void setXPaths(String[] s) {\n\t\tfor (String xpath : s) {\n\t\t\txpaths.add(xpath);\n\t\t}\n\n\t}",
"public void closeAll() throws IOException {\n\t\tfor (BufferedWriter writer : writers.values()) {\n\t\t\twriter.close();\n\t\t}\n\t\twriters.clear();\n\t}",
"@Override\r\n public void setDocumentLocator(Locator locator) {\n }",
"public void setXPaths(String[] s) {\n\t xpaths = s;\n }",
"public void writeFile() \r\n\t{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor(String str : scorers)\r\n\t\t\tbuilder.append(str).append(\",\");\r\n\t\tbuilder.deleteCharAt(builder.length() - 1);\r\n\t\t\r\n\t\ttry(DataOutputStream output = new DataOutputStream(new FileOutputStream(HIGHSCORERS_FILE)))\r\n\t\t{\r\n\t\t\toutput.writeChars(builder.toString());\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] File \" + HIGHSCORERS_FILE + \" was not found \" \r\n\t\t\t\t\t+ \"while writing.\");\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] Error while reading the file \" + HIGHSCORERS_FILE);\r\n\t\t}\r\n\t}",
"private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public static void DumpLocationCoordinatestoKMLRevised(Places places) throws IOException{\n\n String filen = folder_path+\"loc2kmlRevised.txt\";\n File file = new File(filen);\n if (!file.exists()) {\n file.createNewFile();\n }\n BufferedWriter output = new BufferedWriter(new FileWriter(file));\n\n for(int i=0;i<places.places.size();i++){\n LocationCluster locationcls=places.places.get(i);\n output.write(locationcls.placeID+\"~\");\n\n List<UserPhoto> sublist=locationcls.getIdenticalsubLocations();\n if(sublist.size()>2){\n\n for(int j=0;j<sublist.size()-1;j++){\n\n output.write(sublist.get(j).geotag.lat+\",\"+sublist.get(j).geotag.lng);\n if(j<sublist.size()-2){\n output.write(\"|\");\n }\n }\n\n }\n else{\n\n GeoTag center =locationcls.GetCentriod();\n output.write(center.lat+\",\"+center.lng);\n }\n\n\n output.write(\"\\n\");\n\n\n\n\n }\noutput.flush();\n\n }",
"private Map<String, String> locationListToString(List<Element> locations) {\r\n Map<String, String> locMap = new LinkedHashMap<String, String>();\r\n for (Element location : locations) {\r\n String fileName = location.attributeValue(\"filename\");\r\n String lineNumber = location.attributeValue(\"line\");\r\n String current = locMap.get(fileName);\r\n locMap.put(fileName, null == current ? lineNumber : current + \", \" + lineNumber);\r\n }\r\n return locMap;\r\n }",
"public void grabNames()\n \t{\n \t\tfor(Registry.Entry e : this)\n \t\t{\n \t\t\tthis.grabNames(e);\n \t\t}\n \t}",
"private static void readAndWriteProperties(String name) throws IOException {\n System.out.println(name);\n boolean firstLine = true;\n fileReader = new BufferedReader(new FileReader(PATH + name));\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n String line;\n while ((line = fileReader.readLine()) != null) {\n if (!firstLine) {\n String[] lineTokens = LINE_TOKEN_SEPARATOR.split(line);\n long globalID = vertexList.get(3).get(Long.parseLong(lineTokens[0]));\n String writeLine = \"\";\n for (int i = 0; i < lineTokens.length; i++) {\n if (i == 0) {\n writeLine += globalID;\n } else {\n writeLine += lineTokens[i];\n }\n writeLine += \"|\";\n }\n fileWriter.write(writeLine);\n fileWriter.newLine();\n } else {\n fileWriter.write(line);\n fileWriter.newLine();\n firstLine = false;\n }\n }\n fileReader.close();\n fileWriter.close();\n }",
"private static void writeToOutput(String path, Apriori apriori){\n try{\n BufferedWriter output = new BufferedWriter(new FileWriter(path, false));\n for (String s : apriori.mItemSet){\n output.write(s);\n }\n output.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"Set<String> getNames();",
"@Override\n public void setNames(java.lang.Object names) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.NAMES_, names);\n }",
"private static void writeStatistics(String name) throws IOException {\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n fileWriter.write(\"Number of Nodes total: \" + globalVertexCount);\n fileWriter.newLine();\n fileWriter.write(\"Number of Edges total: \" + globalEdgeCount);\n fileWriter.newLine();\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Nodes counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapNodes.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Edges counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapEdges.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.close();\n }",
"phaseI.Hdfs.DataNodeLocation getLocations(int index);",
"@Override\n\tprotected void saveRegSetInfo(String uvmBlockClassName, String blockIdOverride, RegNumber addrOffsetOverride) {\n\t\t// get parent name\n\t\tString parentID = this.getParentInstancePath().replace('.', '_');\n\t\t// block id\n\t\tboolean hasInstanceNameOverride = (blockIdOverride != null);\n\t\tString blockId = hasInstanceNameOverride? blockIdOverride : regSetProperties.getId();\n\t\t// escaped block id \n\t\tString escapedBlockId = escapeReservedString(blockId);\n\t\t// save block define statements\n\t\tString repStr = (!hasInstanceNameOverride && regSetProperties.isReplicated()) ? \"[\" + regSetProperties.getRepCount() + \"]\" : \"\";\n\t\tString blockParameterStr = \" #(\" + getAltBlockParentType() + \", \" + getAltBlockType() + \") \"; \n\t\tsubcompDefList.addStatement(parentID, uvmBlockClassName + blockParameterStr + \" \" + escapedBlockId + repStr + \" = new(this);\");\n\t\t//System.out.println(\"UVMBuild saveRegSetInfo: \" + regSetProperties.getBaseName() + \", parent=\" + parentID + \", rel addr=\" + regSetProperties.getRelativeBaseAddress());\n\t\t// save register build statements\n\t\tif (!hasInstanceNameOverride && regSetProperties.isReplicated()) { \n\t\t\tsubcompBuildList.addStatement(parentID, \"foreach (this.\" + escapedBlockId + \"[i]) begin\");\n\t\t\tsubcompBuildList.addStatement(parentID, \" this.\" + escapedBlockId + \"[i].set_rep(i);\");\n\t\t\tsubcompBuildList.addStatement(parentID, \" this.\" + escapedBlockId + \"[i].build();\");\n\t\t\tsubcompBuildList.addStatement(parentID, \"end\");\n\t\t}\n\t\telse\n\t\t\tsubcompBuildList.addStatement(parentID, \"this.\" + escapedBlockId + \".build();\");\n\t}",
"private void writeAll(){\n try (BufferedWriter ignored = new BufferedWriter(new FileWriter(this.fileName))) {\n Iterable<E> values=entities.values();\n values.forEach(this::writeToFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testSetLocations() {\n System.out.println(\"setLocations\");\n List<DTO_Location> locations = new ArrayList<>();\n locations.add(new DTO_Location(new GregorianCalendar().toString(), 2L, 0.1, 0.2));\n DTO_Ride instance = dtoRide;\n instance.setLocations(locations);\n List<DTO_Location> result = instance.getLocations();\n assertEquals(1, locations.size());\n }",
"@Test\n public void putAll() throws Exception {\n SortedSet<String> sortedNames = new TreeSet<>();\n sortedNames.add(\"Java\");\n sortedNames.add(\"SQL\");\n sortedNames.add(\"HTML\");\n sortedNames.add(\"CSS\");\n int counter = underTest.putAll(sortedNames);\n assert (counter == 4);\n }",
"@Override\n public void writeIdFile(String idName) throws IOException {\n File file = new File(getOutputDir() + \"/log\");\n file.mkdirs();\n FileWriter fw = new FileWriter(getOutputDir() + \"/log/\" + idName);\n for (String s : idMap.keySet()) fw.write(idMap.get(s) + \" \" + s + \"\\n\");\n fw.close();\n }",
"@Test\n public void locatorsCombinationTest() throws Exception {\n /* Search the word \"test\" on Google */\n driver.get(\"https://www.google.co.uk/search?dcr=0&ei=qTR0WquJOojosAXBu5KoBA&q=octane&oq=octane&gs_l=psy-ab.3..0i71k1l4.861.861.0.1157.1.1.0.0.0.0.0.0..0.0....0...1c.1.64.psy-ab..1.0.0....0.rHW5osH_iok\");\n\n /* Using the standard devtools */\n driver.findElement(By.xpath(\"//*[@id='rhs_block']/div[1]/div[1]/div/div[1]/div[2]/div[1]/div/div[1]/div/div/div[2]/div[1]/span\"));\n\n /* Using the selenium OIC and combination of locators */\n driver.findElement(new ByEach(\n By.tagName(\"span\"),\n By.visibleText(\"Octane\")\n ));\n\n /* This test demonstrates the power of combinated locators :\n * Provide new ways to locate Web elements\n * Give more flexibility, accuracy and robustness\n * */\n }",
"public void write(Writer writer) {\n Validate.notNull(writer, \"Writer may not be null\");\n\n if (isEmpty()) {\n return;\n }\n\n try {\n for (Login login : logins) {\n writer.write(compile(login));\n writer.write(\"\\n\");\n }\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n } finally {\n try {\n writer.flush();\n writer.close();\n } catch (Exception ex) {\n }\n }\n\n }",
"public boolean writePatterns(String filename, ArrayList<IPattern> patterns);",
"public void addSelectors( Iterable<SelectorName> names ) {\n for (SelectorName name : names) {\n if (name != null) selectors.add(name);\n }\n }",
"@Override\n\tpublic void setDocumentLocator(Locator locator) {\n\t\t\n\t}"
] |
[
"0.5516046",
"0.55055034",
"0.5359219",
"0.49582142",
"0.48609623",
"0.4851114",
"0.46464446",
"0.45416835",
"0.44633868",
"0.4461688",
"0.44069764",
"0.43646157",
"0.43501487",
"0.43306562",
"0.43176022",
"0.43086678",
"0.42921072",
"0.42706257",
"0.42533287",
"0.42098284",
"0.41969946",
"0.41891667",
"0.41834706",
"0.4173196",
"0.4171801",
"0.4164491",
"0.41644868",
"0.4145557",
"0.4134241",
"0.41338986",
"0.41337228",
"0.41121534",
"0.4108111",
"0.41013187",
"0.40996394",
"0.40893513",
"0.40878654",
"0.40778738",
"0.4071134",
"0.4065075",
"0.40589768",
"0.4056361",
"0.4047642",
"0.40344244",
"0.4032008",
"0.40318453",
"0.40024042",
"0.39912033",
"0.39912033",
"0.39881665",
"0.39846075",
"0.39779973",
"0.3975498",
"0.396567",
"0.39609084",
"0.39596322",
"0.39580137",
"0.39569986",
"0.39482096",
"0.39436677",
"0.39322808",
"0.39263412",
"0.39240295",
"0.3915682",
"0.3910434",
"0.39064246",
"0.3903446",
"0.3896374",
"0.3888368",
"0.38855314",
"0.38837695",
"0.3881934",
"0.38661113",
"0.3859416",
"0.38591328",
"0.38566318",
"0.3853004",
"0.38458535",
"0.38456774",
"0.38454154",
"0.3841378",
"0.38405368",
"0.38403538",
"0.38380796",
"0.38239974",
"0.38230452",
"0.382019",
"0.381008",
"0.38082954",
"0.38060057",
"0.38034466",
"0.37804633",
"0.37713283",
"0.37702528",
"0.3757735",
"0.3756007",
"0.37550306",
"0.37544498",
"0.37525073",
"0.3746526"
] |
0.83464867
|
0
|
Serializes the specified asssociation.
|
private void _writeAssociation(final Association assoc) throws IOException {
Set<Role> roles = assoc.getRoles();
if (roles.isEmpty()) {
return;
}
_out.startObject();
_writeReifier(assoc);
_writeItemIdentifiers(assoc);
_writeType(assoc);
_writeScope(assoc);
_out.key("roles");
_out.startArray();
for (Role role: roles) {
_writeRole(role);
}
_out.endArray();
_out.endObject();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"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 }",
"void serialize(OutputStream output, Object graph);",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"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 void serialize() {\n\t\t\n\t}",
"public String toString() {\n return \"OrganizationAssociateData[\" +\n \"orgName=\"+orgName+\", \"+\n \"orgPositionTitle=\"+orgPositionTitle+\", \"+\n \"latestCommentText=\"+latestCommentText+\", \"+\n \"recordData=\"+recordData+\", \"+\n \"locationPk=\"+locationPk+\", \"+\n \"locationData=\"+locationData+\", \"+\n \"personData=\"+personData+\"]\";\n }",
"public Assessment getAssesment() {\n return assessment;\n }",
"public abstract String serialise();",
"@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }",
"@Override\r\n\tpublic void serializar() {\n\r\n\t}",
"public void writeEquipment() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/equipment.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(equipment);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\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 }",
"public String toJson(SerializationFormattingPolicy formattingPolicy) {\n this.populatePropertyBag();\n if (SerializationFormattingPolicy.Indented.equals(formattingPolicy) ) {\n return this.propertyBag.toString(INDENT_FACTOR);\n } else {\n return this.propertyBag.toString();\n }\n }",
"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 void output(IndentedWriter out, SerializationContext sCxt) \n {\n }",
"public String toString() {\n\n\t\tfinal StringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"affCustAlgmntId=[\").append(affCustAlgmntId).append(\"] \");\n\t\tbuffer.append(\"custAlgmntId=[\").append(custAlgmntId).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}",
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }",
"public void setAssesment(Assessment assesment) {\n this.assessment = assesment;\n }",
"@Override\n public void serialize(final MastershipData mastershipData,\n final JsonGenerator jsonGenerator,\n final SerializerProvider serializerProvider)\n throws IOException {\n\n //\n // TODO: For now, the JSON format of the serialized output should\n // be same as the JSON format of the corresponding class Mastership\n // (if such class exists).\n // In the future, we will use a single serializer.\n //\n\n jsonGenerator.writeStartObject();\n jsonGenerator.writeStringField(TopologyElement.TYPE, mastershipData.getType());\n jsonGenerator.writeStringField(\"dpid\",\n mastershipData.getDpid().toString());\n jsonGenerator.writeStringField(\"onosInstanceId\",\n mastershipData.getOnosInstanceId().toString());\n jsonGenerator.writeStringField(\"role\",\n mastershipData.getRole().name());\n jsonGenerator.writeObjectFieldStart(\"stringAttributes\");\n for (Entry<String, String> entry : mastershipData.getAllStringAttributes().entrySet()) {\n jsonGenerator.writeStringField(entry.getKey(), entry.getValue());\n }\n jsonGenerator.writeEndObject(); // stringAttributes\n jsonGenerator.writeEndObject();\n }",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"public String toFile(){\n return String.format(\"%s:%s:%s:%s:%s:%s:%s\",hashIndex,id,super.toFile(), \r\n facultyAbbr.getAbbreviation(), courseName.getCourseName(),tutorialGroup,session);\r\n }",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"OutputStream serialize(OutputStream toSerialize);",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAssignmentName() != null)\n sb.append(\"AssignmentName: \").append(getAssignmentName()).append(\",\");\n if (getPolicyArn() != null)\n sb.append(\"PolicyArn: \").append(getPolicyArn());\n sb.append(\"}\");\n return sb.toString();\n }",
"public void serializace() {\n DBwithKeyboardActivity activity = new DBwithKeyboardActivity();\n try {\n String path = activity.getFilesDir()+\"/DB.out\";\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(MainActivity.DBCharacters);\n out.close();\n fileOut.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String toJson() { return new Gson().toJson(this); }",
"public String toJSON() {\n return new Gson().toJson(this);\n }",
"String serialize();",
"@Override\r\n\tpublic String serialize(Annotation annotation) {\n\t\treturn null;\r\n\t}",
"@Override\n public String toString() {\n StringBuffer sb = new StringBuffer(\"[Acquirente |\");\n sb.append(\" idacquirente=\").append(getIdacquirente());\n sb.append(\"]\");\n return sb.toString();\n }",
"public void saveAccount() {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\");\r\n\t\t//Recover the file name\r\n\t\tString fileName = name + \"_\" + emailParts[0] + \"_\" + emailParts[1];\r\n\t\t\r\n\t try {\r\n\t //use buffering\r\n\t OutputStream file = new FileOutputStream( fileName );\r\n\t OutputStream buffer = new BufferedOutputStream( file );\r\n\t ObjectOutput output = new ObjectOutputStream( buffer );\r\n\t \r\n\t try {\r\n\t \toutput.writeObject(this);\r\n\t }\r\n\t finally {\r\n\t \toutput.close();\r\n\t }\r\n\t }\r\n\t \r\n\t catch(IOException ex){\r\n\t \t System.out.println(\"Cannot perform output.\");\r\n\t }\r\n\t}",
"public void saveCharacterInformation() throws IOException, ClassNotFoundException {\n\t\t// @@@@ File writing\n\t\tFileOutputStream fileOut = new FileOutputStream(\"characterSheet.ser\");\n\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\tout.writeObject(characterName);\n\t\tout.writeObject(alignment);\n\t\tout.writeObject(playerName);\n\t\tout.writeObject(deity);\n\t\tout.writeObject(homeland);\n\t\tout.writeObject(ageInput);\n\t\tout.writeObject(heightInput);\n\t\tout.writeObject(weightInput);\n\t\tout.close();\n\t\tfileOut.close();\n\t\tSystem.out.printf(\"Serialization finished\");\n\t}",
"@Override\n\tpublic int getSerializationId() {\n\t\treturn SERIALIZATION_ID;\n\t}",
"public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }",
"public static void main(String[] args) throws IOException {\nPerson p=new Person(101,\"reya\");\nFileOutputStream fo=new FileOutputStream(\"something.txt\");\nObjectOutputStream os=new ObjectOutputStream (fo);\nos.writeObject(p);\nSystem.out.println(\"Serialization Success\");//should implemet serializable concept\n\t}",
"private static void LessonSerialization() {\n PersonDAO personDAO = new PersonDAOImpl();\n Person person = personDAO.getPersonById(1);\n\n // serialize to a text file\n try {\n FileOutputStream fileOut = new FileOutputStream(\"./newfile.txt\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(person);\n out.close();\n fileOut.close();\n System.out.println(\"Person Object serialized and written to file: newfile.txt\");\n System.out.println(\"Serialized Object: \" + person.ToString());\n } catch(IOException ioEx) {\n System.out.println(ioEx);\n }\n }",
"private void writeAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tdataStorage.setAchievements(jsonObject.toString());\n\t}",
"public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }",
"public String toString() \n {\n String outString = \"\\nCourse Id: \" + courseId;\n outString += \"\\nClass Name: \" + className;\n outString += \"\\nAssignments: \\n\";\n for (Assignment assignment : assignments) \n {\n outString += assignment.toString();\n }\n return outString;\n }",
"private static void serialize(Gitlet gitletAtt, String fileName)\n throws IOException {\n try {\n File gitletFile = new File(fileName);\n FileOutputStream fileOut = new FileOutputStream(gitletFile);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(gitletAtt);\n } catch (IOException e) {\n System.err.println(e);\n String msg = \"IOException while saving Gitlet.\";\n System.out.println(msg);\n }\n }",
"public void guardarEnJSON () {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String s = gson.toJson(this);\n try {\n FileWriter fw = new FileWriter(\"files/graph.json\");\n fw.write(s);\n fw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String toString() {\r\n\t\treturn \"Transportation(\"+this.description+\", \"+this.destination+\")\";\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tJsonObject jo = new JsonObject();\r\n\t\t\r\n\t\tjo.addProperty(\"IssuerInfo\", issuerInfo.toString());\r\n\t\tjo.addProperty(\"SubjectInfo\", subjectInfo.toString());\r\n\t\tjo.addProperty(\"AccessRights\", accessRights.toString());\r\n\t\tjo.addProperty(\"ResourceID\", resourceId);\r\n\t\tjo.addProperty(\"ValidityCondition\", validityCondition.toString());\r\n\t\tjo.addProperty(\"RevocationURL\", revocationUrl);\r\n\t\tString sig = \"\";\r\n\t\tfor(byte b : digitalSignature){\r\n\t\t\tsig = sig + Integer.toHexString(0xFF & b);\r\n\t\t}\r\n\t\tjo.addProperty(\"DigitalSignature\", sig);\r\n\t\t\r\n\t\treturn jo.toString();\r\n\t}",
"public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }",
"String toJSON();",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }",
"public void serializeObject(String fileName, Automobile automobile) {\n try {\n String path = System.getProperty(\"user.dir\");\n String fileNameWithPath = path + File.separator + fileName;\n if(DEBUG) {\n System.out.printf(\" File Name with Path : %s\", fileNameWithPath);\n }\n FileOutputStream fileOut = new FileOutputStream(fileNameWithPath);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(automobile);\n out.close();\n fileOut.close();\n System.out.printf(\"Serialized data is saved in automotive.ser %s%n\", fileName);\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"public String toString()\n {\n String retour;\n\n retour = \"idAdherent : \" + idAdherent+ \"\\n\";\n retour += \"idCours : \" + idCours + \"\\n\";\n\n return retour;\n }",
"@Override\n public void serialize( SecurityIdentifier value, JsonGenerator gen, SerializerProvider serializers )\n throws IOException, JsonProcessingException {\n gen.writeString( value.toString() );\n }",
"public String jsonify() {\n return gson.toJson(this);\n }",
"public void serialize( final SerializerOutputStream out )\n throws SerializationException\n {\n out.writeByte( (byte) 1 ); // version\n out.writeString( name );\n if( properties != null && properties.size() > 0 )\n {\n out.writeInt( properties.size() );\n for( final Enumeration i = properties.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final ScriptingClass clazz = (ScriptingClass)\n properties.get( name );\n out.writeString( name );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( methods != null && methods.size() > 0 )\n {\n out.writeInt( methods.size() );\n for( final Enumeration i = methods.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final Method method = (Method) methods.get( name );\n out.writeString( name );\n method.serialize( out );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( ancestors != null && ancestors.size() > 0 )\n {\n final int size = ancestors.size();\n out.writeInt( size );\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n }",
"@Override\r\n public void serializar() throws IOException {\n File fich=new File(\"datos.bin\");\r\n FileOutputStream fos = new FileOutputStream(fich);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(gestor);\r\n oos.close();\r\n }",
"public String toString() {\r\n\t\tthis.gpaConverter();\r\n\t\treturn (\"Course Name: \" + this.name + \" Credits: \" + this.credithours + \" GPA: \" + this.letterGrade);\r\n\t}",
"public final void serialize(OutputStream out){\n }",
"public String toString(){\n\t\t \n\t\treturn this.scholarship + \": \" + this.student + \", Date Submitted: \" + this.date + \", GPA: \" + this.gpa + \", Education Level: \" + this.edulvl + \", Priority: \" + this.priority + \", Status: \" + this.status;\n\t}",
"public void add(Accomodation accomodation) {\n\n\t\ttry (Connection conn = newConnection(\"postgresql\", \"localhost\", \"5432\", \"Booking\", \"postgres\", \"portocaliu\");\n\t\t\t\tPreparedStatement stm = conn.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO accomodation(type, bed_type, max_guests, description) values(?,?,?, ?)\");) {\n\n\t\t\tstm.setString(1, accomodation.getType());\n\t\t\tstm.setString(2, accomodation.getBedType());\n\t\t\tstm.setInt(3, accomodation.getMaxGuests());\n\t\t\tstm.setString(4, accomodation.getDescription());\n\n\t\t\tstm.executeUpdate();\n\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t}",
"public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }",
"private void writeObject(ObjectOutputStream s) throws IOException\t\n\t{\n\t\ts.writeInt(score);\t\n\t\ts.writeDouble(this.centre.getX());\t\n\t\ts.writeDouble(this.centre.getY());\t\n\t\ts.writeObject(rectangle.getFill().toString());\t\n//\t\tSystem.out.println(\"something\");\t\n\t}",
"@Override\n public void serialize(MyDoctor doctor, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException {\n jsonGenerator.writeStartObject();\n jsonGenerator.writeStringField(\"id\", doctor.getId());\n jsonGenerator.writeStringField(\"lastName\", doctor.getLastName());\n jsonGenerator.writeStringField(\"firstName\", doctor.getFirstName());\n jsonGenerator.writeStringField(\"speciality\", doctor.getSpeciality());\n jsonGenerator.writeStringField(\"address\", doctor.getAddress());\n jsonGenerator.writeNumberField(\"morningStartHour\", doctor.getMorningStartHour());\n jsonGenerator.writeNumberField(\"morningEndHour\", doctor.getMorningEndHour());\n jsonGenerator.writeNumberField(\"afternoonStartHour\", doctor.getAfternoonStartHour());\n jsonGenerator.writeNumberField(\"afternoonEndHour\", doctor.getAfternoonEndHour());\n jsonGenerator.writeNumberField(\"appointmentLast\", doctor.getAppointmentLast());\n jsonGenerator.writeEndObject();\n }",
"public String toString() {\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(\"Pontuacao: \" + this.pontuacao + \"\\n\");\n\t\tresult.append(this.ambiente.toString());\n\t\t\n\t\treturn result.toString();\n\t}",
"public void save(RaceSituation raceSituation);",
"public String toXML() {\n StringBuilder xml = new StringBuilder();\n\n //just do the decomposition facts (not the surrounding element) - to keep life simple\n xml.append(super.toXML());\n\n for (YParameter parameter : _enablementParameters.values()) {\n xml.append(parameter.toXML());\n }\n for (YAWLServiceReference service : _yawlServices.values()) {\n xml.append(service.toXML());\n }\n return xml.toString();\n }",
"public static void serialize(CAS aCAS, OutputStream aStream) throws SAXException {\n serialize(aCAS, null, aStream, false, null);\n }",
"public byte[] serialize();",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"public String toString() {\n\t\treturn \"Dinamica [n_equips=\" + n_equips + \", primer=\" + primer\n\t\t\t\t+ \", anterior=\" + anterior + \"]\";\n\t}",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public void storeCompositionOptions() {\n\t\ttheCompositionOptions.store(theConfiguration);\n\t}",
"public boolean saveSaucers(){\r\n try{\r\n File file = new File(\"src/data/saucers.txt\");\r\n FileOutputStream fos = new FileOutputStream(file);\r\n ObjectOutputStream output = new ObjectOutputStream(fos);\r\n output.writeObject(new ArrayList<Saucer>(this.saucers));\r\n output.close();\r\n\r\n return true;\r\n } catch (Exception ex){\r\n ex.printStackTrace();\r\n\r\n return false;\r\n }\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", organId=\").append(organId);\n sb.append(\", organTypeId=\").append(organTypeId);\n sb.append(\", parentOrganId=\").append(parentOrganId);\n sb.append(\", parentOrganTypeId=\").append(parentOrganTypeId);\n sb.append(\", organCode=\").append(organCode);\n sb.append(\", organName=\").append(organName);\n sb.append(\", organLevel=\").append(organLevel);\n sb.append(\", organSort=\").append(organSort);\n sb.append(\", isParent=\").append(isParent);\n sb.append(\", path=\").append(path);\n sb.append(\", addTime=\").append(addTime);\n sb.append(\", modifyTime=\").append(modifyTime);\n sb.append(\", addOperatorId=\").append(addOperatorId);\n sb.append(\", addOperatorName=\").append(addOperatorName);\n sb.append(\", modifyOperatorId=\").append(modifyOperatorId);\n sb.append(\", modifyOperatorName=\").append(modifyOperatorName);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return super.toString() + \"\\nEpeciality: \" + speciality + \"\\nAvailable: \" + availableAppointments.toString();\n }",
"@Override\n public String toJsonString() {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferSerializer());\n return gsonBuilder.create().toJson(this);\n }",
"void writeObject(OutputSerializer out) throws java.io.IOException;",
"public String serializeAndSendProObj(LinkedProperties p){\n\t\t\t\ttry(FileOutputStream fs = new FileOutputStream(p.getProperty(\"CarMake\")+p.getProperty(\"CarModel\")+p.getProperty(\"Style\")+\".serproobj\")) {\n\t\t ObjectOutputStream os = new ObjectOutputStream(fs);\n\t\t os.writeObject(p);\n\t\t os.close();\n\t\t } catch (FileNotFoundException e) {\n\t\t e.printStackTrace();\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t\t\treturn p.getProperty(\"CarMake\")+p.getProperty(\"CarModel\")+p.getProperty(\"Style\")+\".serproobj\";\n\t\t\t}",
"public static com.tangosol.net.security.IdentityAsserter getIdentityAsserter()\n {\n return __s_IdentityAsserter;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"clsEquipacion [color1P=\" + color1P + \", color2P=\" + color2P + \", color1S=\" + color1S + \", color2S=\"\n\t\t\t\t+ color2S + \", publicidadP=\" + publicidadP + \", publicidadS=\" + publicidadS + \", serigrafiadoP=\"\n\t\t\t\t+ serigrafiadoP + \", serigrafiadoS=\" + serigrafiadoS + \", dorsal=\" + dorsal + \"]\";\n\t}",
"@Override\n\tpublic void createAgence(Agence a) {\n\t\t\n\t}",
"@NonNull\n protected PersistableBundle toPersistableBundle() {\n final PersistableBundle result = new PersistableBundle();\n\n result.putInt(AUTH_METHOD_KEY, mAuthMethod);\n result.putInt(AUTH_DIRECTION_KEY, mAuthDirection);\n return result;\n }",
"public String toString()\n {\n return getClass().getName() + \"[name=\" + name + \",area=\" + area + \"]\";\n }",
"public static String exportToProperties(TransactionConfiguration configuration) {\n \n try {\n \n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n \n Properties properties = new Properties();\n setPropertyValue(properties, \"manager\", configuration.getManager());\n properties.store(outputStream, \"arquillian-transaction-configuration\");\n \n return outputStream.toString();\n } catch (IOException e) {\n\n throw new RuntimeException(\"Could not export the configuration..\", e);\n\n }\n }",
"private void method_979(ObjectOutputStream var1) {\n var1.defaultWriteObject();\n var1.writeObject(this.a);\n }",
"private static JsonProfessor toBasicJson(Professor professor) {\r\n\t\tJsonProfessor jsonProfessor = new JsonProfessor();\r\n\t\tapplyBasicJsonValues(jsonProfessor, professor);\r\n\t\treturn jsonProfessor;\r\n\t}",
"public void setupSerialization(final X10ClassType astType, final ClassType firmType) {\n\t\tassert !astType.flags().isInterface();\n\n\t\tif (!astType.flags().isStruct()) {\n\t\t\tOO.setClassUID(firmType, maxClassUid++);\n\t\t}\n\n\t\tfinal SegmentType global = Program.getGlobalType();\n\n\t\tfinal String serializeMethodName =\n\t\t\t\tNameMangler.mangleGeneratedMethodName(astType, SERIALIZE_METHOD_NAME, SERIALIZE_METHOD_SIGNATURE);\n\t\tif (serializeMethodType == null)\n\t\t\tserializeMethodType = new MethodType(new firm.Type[] {Mode.getP().getType(), Mode.getP().getType()},\n\t\t\t\t\tnew firm.Type[] {});\n\n\t\tassert !serializeFunctions.containsKey(firmType);\n\n\t\tfinal Entity serEntity = new Entity(global, serializeMethodName, serializeMethodType);\n\t\tOO.setEntityBinding(serEntity, ddispatch_binding.bind_static);\n\t\tOO.setMethodExcludeFromVTable(serEntity, true);\n\t\tserializeFunctions.put(firmType, serEntity);\n\n\t\tfinal String deserializeMethodName =\n\t\t\t\tNameMangler.mangleGeneratedMethodName(astType, DESERIALIZE_METHOD_NAME, DESERIALIZE_METHOD_SIGNATURE);\n\t\tif (deserializeMethodType == null)\n\t\t\tdeserializeMethodType = new MethodType(new firm.Type[] {Mode.getP().getType(), Mode.getP().getType()},\n\t\t\t\t\tnew firm.Type[] {});\n\n\t\tfinal Entity deserEntity = new Entity(global, deserializeMethodName, deserializeMethodType);\n\t\tOO.setEntityBinding(deserEntity, ddispatch_binding.bind_static);\n\t\tOO.setMethodExcludeFromVTable(deserEntity, true);\n\t\tdeserializeFunctions.put(firmType, deserEntity);\n\t}",
"@OneToMany(mappedBy=\"salle\")\r\n\tpublic List<Programmation> getProgrammations() {\r\n\t\treturn programmations;\r\n\t}",
"public void saveArenas() {\n\t\tgetArenaManager().getArenas().forEach(this::saveArena);\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"{ \\\"a\\\":\"+a+\"}\";\n\t}"
] |
[
"0.4925794",
"0.49002606",
"0.48914808",
"0.48914808",
"0.4889329",
"0.48693094",
"0.48477167",
"0.4809398",
"0.48081687",
"0.47939077",
"0.47816",
"0.4762517",
"0.47574732",
"0.47160593",
"0.4693074",
"0.46702498",
"0.46590757",
"0.46510863",
"0.4637898",
"0.4633624",
"0.45865571",
"0.4578845",
"0.4576981",
"0.45633343",
"0.45553568",
"0.4541349",
"0.45300788",
"0.45259598",
"0.45202315",
"0.45142925",
"0.4485327",
"0.4473362",
"0.44713914",
"0.44695583",
"0.44649714",
"0.44551167",
"0.4419692",
"0.44177502",
"0.43930772",
"0.43748805",
"0.43601513",
"0.4357949",
"0.43528986",
"0.43487296",
"0.4347789",
"0.43382445",
"0.43338388",
"0.4329132",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43244138",
"0.43157652",
"0.43009916",
"0.4296824",
"0.42796823",
"0.4278747",
"0.42735392",
"0.4269521",
"0.4258668",
"0.4251727",
"0.42439654",
"0.42275062",
"0.42248705",
"0.42142054",
"0.42137808",
"0.4210864",
"0.41876712",
"0.4186813",
"0.4166673",
"0.41531375",
"0.41484997",
"0.41478285",
"0.41477633",
"0.41477633",
"0.414453",
"0.4135581",
"0.4135009",
"0.41344836",
"0.41300994",
"0.41168818",
"0.41119775",
"0.41085634",
"0.4108533",
"0.41004226",
"0.40985277",
"0.4095941",
"0.40944824",
"0.4093426",
"0.40930104",
"0.40903172",
"0.40894824",
"0.40872926",
"0.40859586"
] |
0.497575
|
0
|
Serializes the specified role.
|
private void _writeRole(final Role role) throws IOException {
_out.startObject();
_writeReifier(role);
_writeItemIdentifiers(role);
_writeType(role);
_writeKeyValue("player", _topicRef(role.getPlayer()));
_out.endObject();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@XmlAttribute\r\n public String getRole() {\r\n return role;\r\n }",
"public void setRole(String role) {\n this.role = role;\n }",
"public void setRole(String role) {\n\t\tthis.role = role;\n\t}",
"public void setRole(String role) {\r\n\t\tthis.role = role;\r\n\t}",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public void setRole(String role) {\n\t\t\tthis.role = role;\n\t\t}",
"@Override\n @XmlElement(name = \"role\", required = true)\n public synchronized Role getRole() {\n return role;\n }",
"public String getRole() {\r\n\t\treturn role;\r\n\t}",
"public String getRole() {\r\n return role;\r\n }",
"public String getRole() {\n return this.role;\n }",
"public void setRole(String role)\n {\n _role=role;\n }",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public String getRole() { return this.role; }",
"public String getRole() {\n\t\t\treturn role;\n\t\t}",
"public java.lang.String getRole() {\n return role;\n }",
"public void setRole(Byte role) {\n this.role = role;\n }",
"public void setRole(Integer role) {\n\t\tthis.role = role;\n\t}",
"public java.lang.String getRole() {\n return role;\n }",
"@Override\n public String toString(){\n return role;\n }",
"public String getRole()\n\t{\n\t\treturn role;\n\t}",
"@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}",
"public com.message.MessageInfo.RoleVOOrBuilder getRoleOrBuilder() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"public Byte getRole() {\n return role;\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"void setRole(final SecurityRole role);",
"@Override\n\tpublic void saveRole(Role role) {\n\t\tthis.roleMapper.insert(role);\n\t}",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"public String getRoleArn() {\n return roleArn;\n }",
"public void setRole(AXValue role) {\n this.role = role;\n }",
"private static JsonRole toBasicJson(Role role) {\r\n\t\tJsonRole jsonRole = new JsonRole();\r\n\t\tapplyBasicJsonValues(jsonRole, role);\r\n\t\treturn jsonRole;\r\n\t}",
"public void setRole(TradingRoleCodeType role) {\n\t this.role = role;\n\t}",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }",
"public AXValue getRole() {\n return role;\n }",
"@Override\r\n\tpublic boolean saveRole(RoleDTO role) {\n\t\tEpcRole epcRole = buildEpcRole(role);\r\n\t\tepcRole.setId(null);\r\n\t\tsave(epcRole);\r\n\t\treturn true;\r\n\t}",
"public com.message.MessageInfo.RoleVOOrBuilder getRoleOrBuilder() {\n if (roleBuilder_ != null) {\n return roleBuilder_.getMessageOrBuilder();\n } else {\n return role_ == null ?\n com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }\n }",
"public void setRole( String role )\n {\n if ( roles == null )\n {\n roles = new TreeSet<>( String.CASE_INSENSITIVE_ORDER );\n }\n\n this.roles.add( role );\n }",
"@Override\n\tpublic void updateRole(Role role) {\n\t\tlogger.debug(\"RoleServiceImpl::updateRole Role = {}\", role.toString());\n\t\troleMapper.updateRole(role);\n\t}",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}",
"public void setRole(EnumRoleEmploye role) {\r\n this.role = role;\r\n }",
"com.message.MessageInfo.RoleVO getRole();",
"com.message.MessageInfo.RoleVOOrBuilder getRoleOrBuilder();",
"public Role getRole()\n {\n return role;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public AsciiDocWriter role(Object role) { nnl(); return w(\"[.\", 1, role, \"]\"); }",
"public Long getRoleId() {\r\n return roleId;\r\n }",
"public void setRoleArn(String roleArn) {\n this.roleArn = roleArn;\n }",
"public GraphNode addRole(String role){\n\t\tInteger intValue = addElement(role, 2);\n\t\t//System.out.println(role + \" Added with : \" + intValue);\n\t\tGraphNode roleVar = new GraphNode(intValue, 2);\n\t\tauthGraph.addVertex(roleVar);\n\t\treturn roleVar;\n\t}",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleid() {\n return roleid;\n }",
"public void addRole(String role) {\n StringBuffer rolesStringBuffer = new StringBuffer(this.roles);\n rolesStringBuffer.append(\",\").append(role);\n this.roles = rolesStringBuffer.toString();\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"@Override\n\tpublic void addRole(Role role) {\n\t\tSnowflakeIdWorker idWorker = new SnowflakeIdWorker(0, 0);\n\t\tlong id = idWorker.nextId();\n\t\trole.setRoleid(Long.toString(id));\n\t\troleMapper.addRole(role);\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn wcRole.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Role : \"+name().toLowerCase();\n\t}",
"@Override\r\n\tpublic int addRole(Role role) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void updateRole(Role role) {\n\t\tthis.roleMapper.updateByPrimaryKey(role);\n\t}",
"public String getRoleType() {\n return roleType;\n }",
"public String getRoleType() {\n return roleType;\n }",
"public String getRole_name() {\n return role_name;\n }",
"public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}",
"public PutDestinationRequest withRoleArn(String roleArn) {\n this.roleArn = roleArn;\n return this;\n }",
"@Override\n\tpublic void editRole(Role role) {\n\t\trd.editRole(role);\n\t}",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\r\n return roleName;\r\n }",
"public String getRoleName() {\r\n return roleName;\r\n }",
"public void setRole(APIRole role) {\n this.role = role;\n }",
"public Role saveRole(Role role) {\n return roleRepository.save(role);\n }",
"@Override\r\n\tpublic void addRole(Role role) {\n\t\tgetHibernateTemplate().save(role);\r\n\t}",
"String getRole();",
"String getRole();",
"public Long getRoleId() {\n\t\treturn roleId;\n\t}",
"@Override\r\n\tpublic boolean updateRole(RoleDTO role) {\n\t\tEpcRole epcRole = buildEpcRole(role);\r\n\t\t\r\n\t\tupdate(epcRole);\r\n\t\treturn true;\r\n\t}",
"@ApiModelProperty(required = true, value = \"The role that the place plays, e.g. \\\"UNI Site\\\", or \\\"ENNI Site\\\".\")\n @NotNull\n\n\n public String getRole() {\n return role;\n }",
"public void setRole(com.a9.spec.opensearch.x11.QueryType.Role.Enum role)\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(ROLE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROLE$0);\n }\n target.setEnumValue(role);\n }\n }",
"@Override\r\n\tpublic void updateRole(Role role) {\n\t\troleDao.updateRole(role);\r\n\t}",
"public String getRoleName() {\n return this.roleName;\n }",
"public String getRoleName() {\n return this.roleName;\n }",
"@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"@ManyToOne\r\n\tpublic Role getRole() {\r\n\t\treturn this.role;\r\n\t}"
] |
[
"0.67816263",
"0.6769554",
"0.6764521",
"0.6748653",
"0.67370415",
"0.6679461",
"0.6654276",
"0.6512882",
"0.64891887",
"0.6477113",
"0.64610505",
"0.64291537",
"0.64148796",
"0.6412029",
"0.6394637",
"0.638384",
"0.6380755",
"0.6359028",
"0.63582045",
"0.63449275",
"0.6335594",
"0.6297403",
"0.6220808",
"0.62043506",
"0.6180312",
"0.61476415",
"0.61284095",
"0.61087126",
"0.6082435",
"0.60653937",
"0.60631746",
"0.6047767",
"0.6009763",
"0.59635943",
"0.59525645",
"0.5943547",
"0.59427345",
"0.59290457",
"0.5917153",
"0.5915059",
"0.588061",
"0.5865745",
"0.58439326",
"0.5825736",
"0.5825736",
"0.5825736",
"0.5823352",
"0.58028036",
"0.57993466",
"0.57963896",
"0.5794509",
"0.5794509",
"0.5794509",
"0.5794509",
"0.5786142",
"0.5777471",
"0.5770408",
"0.5770408",
"0.5770408",
"0.5758377",
"0.572299",
"0.57171315",
"0.571071",
"0.5703062",
"0.5691351",
"0.5691351",
"0.5669119",
"0.5668818",
"0.5667485",
"0.56519604",
"0.5620944",
"0.5620944",
"0.5620944",
"0.5620944",
"0.5620944",
"0.5620944",
"0.5617735",
"0.5617735",
"0.5614567",
"0.56108373",
"0.56106293",
"0.5607945",
"0.5607945",
"0.5599915",
"0.5599522",
"0.5591726",
"0.5567402",
"0.5562352",
"0.55613947",
"0.55613947",
"0.5556816",
"0.5541403",
"0.5541403",
"0.5541403",
"0.5541403",
"0.5541403",
"0.5541403",
"0.5541403",
"0.5541403",
"0.5535617"
] |
0.7357718
|
0
|
Writes the type of a typed construct.
|
private void _writeType(final Typed typed) throws IOException {
_writeKeyValue("type", _topicRef(typed.getType()));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void writeConcreteType(Class<?> type);",
"protected void writeType ()\n {\n stream.println (\" public org.omg.CORBA.TypeCode _type ()\");\n stream.println (\" {\");\n stream.println (\" return \" + helperClass + \".type ();\");\n stream.println (\" }\");\n stream.println ();\n }",
"private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }",
"Coding getType();",
"private static void writeType(XMLStreamWriter w, RepositoryConnection con, IRI uri, IRI type) \n\t\tthrows XMLStreamException {\n\t\tif (con.hasStatement(uri, RDF.TYPE, type, true)) {\n\t\t\tw.writeEmptyElement(\"rdf:type\");\n\t\t\tw.writeAttribute(\"rdf:resource\", type.stringValue());\n\t\t}\n\t}",
"void emit(DataOutputStream out, ConstantPool cp) throws IOException, ClassException {\n out.write(getType());\n // The rest is dependent on what type of constant this is.\n emit2(out, cp);\n }",
"public JavaType getType() { return _type; }",
"TypeDefinition createTypeDefinition();",
"Type createType();",
"Type createType();",
"Type createType();",
"private String genWriteCode(String name, String type) {\n\n if (type.equals(\"char\")) {\n return OUTSTREAM_VAR_NAME + \".writeChar( \" + name + \" );\";\n } else if (type.equals(\"short\")) {\n return OUTSTREAM_VAR_NAME + \".writeShort( \" + name + \" );\";\n } else if (type.equals(\"int\")) {\n return OUTSTREAM_VAR_NAME + \".writeInt( \" + name + \" );\";\n } else if (type.equals(\"float\")) {\n return OUTSTREAM_VAR_NAME + \".writeFloat( \" + name + \" );\";\n } else if (type.equals(\"double\")) {\n return OUTSTREAM_VAR_NAME + \".writeDouble( \" + name + \" );\";\n } else if (type.equals(\"std::string\")) {\n return OUTSTREAM_VAR_NAME + \".writeString( \" + name + \" );\";\n } else if (type.equals(\"bool\")) {\n return OUTSTREAM_VAR_NAME + \".writeBoolean( \" + name + \" );\";\n } else {\n throw new IllegalArgumentException(\"unknown primitive type=\" + type);\n }\n }",
"private void encodeTypeDef(Encoder encoder, TypeDef type, int size) throws IOException {\n\t\tDataType refType = type.getDataType();\n\t\tString format = null;\n\t\tint sz = refType.getLength();\n\t\tif (sz <= 0) {\n\t\t\tsz = size;\n\t\t}\n\t\tif (type.isPointer()) {\n\t\t\tif (hasUnsupportedTypedefSettings(type)) {\n\t\t\t\t// switch refType to undefined type if pointer-typedef settings are unsupported\n\t\t\t\trefType = Undefined.getUndefinedDataType(sz);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tAddressSpace space = PointerTypedefInspector.getPointerAddressSpace(type,\n\t\t\t\t\tprogram.getAddressFactory());\n\t\t\t\tlong offset = PointerTypedefInspector.getPointerComponentOffset(type);\n\t\t\t\tif (offset != 0) {\n\t\t\t\t\tencodePointerRelative(encoder, type, offset, space);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (space != null) {\n\t\t\t\t\t// Cannot use space, unless we are build an actual Pointer\n\t\t\t\t\t// Its possible that refType is still a TypeDef\n\t\t\t\t\trefType = type.getBaseDataType();\n\t\t\t\t\tencodePointer(encoder, (Pointer) refType, space, type, size);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (FormatSettingsDefinition.DEF.hasValue(type.getDefaultSettings())) {\n\t\t\t\tformat = FormatSettingsDefinition.DEF.getValueString(type.getDefaultSettings());\n\t\t\t\tif (format.length() > 4) {\n\t\t\t\t\tformat = format.substring(0, 3);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tencoder.openElement(ELEM_DEF);\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tif (format != null) {\n\t\t\tencoder.writeString(ATTRIB_FORMAT, format);\n\t\t}\n\n\t\tencodeTypeRef(encoder, refType, sz);\n\t\tencoder.closeElement(ELEM_DEF);\n\t}",
"StructureType createStructureType();",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {\n final String datatype = datatyped.getDatatype().getReference();\n String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()\n : datatyped.getValue();\n _writeKeyValue(\"value\", value);\n if (!XSD.STRING.equals(datatype)) {\n _writeKeyValue(\"datatype\", datatyped.getDatatype().toExternalForm());\n }\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}",
"DatatypeType createDatatypeType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"abstract public Type getType();",
"DType getType();",
"private void writeType( TypeItem t, XMLWriter out ) {\n\t\tType[] is = (Type[])t.interfaces.toArray(new Type[0]);\n\t\tfor( int i=0; i<is.length; i++ )\n\t\t\tout.element(\"implements\",\n\t\t\t\tnew String[]{\"name\",is[i].getTypeName()});\n\t\t\n\t\tString[] fnames = (String[])t.fields.keySet().toArray(new String[0]);\n\t\tfor( int i=0; i<fnames.length; i++ ) {\n\t\t\tfinal FieldUse fu = (FieldUse)t.fields.get(fnames[i]);\n\t\t\tout.start(\"field\",\n\t\t\t\tnew String[]{\n\t\t\t\t\t\"name\",fu.name,\n\t\t\t\t\t\"itemType\",fu.type.getTypeName(),\n\t\t\t\t\t\"minOccurs\",Integer.toString(fu.multiplicity.min),\n\t\t\t\t\t\"maxOccurs\",\n\t\t\t\t\t\t(fu.multiplicity.max==null)?\"unbounded\":fu.multiplicity.max.toString()} );\n\t\t\t\n\t\t\tIterator itr = fu.items.iterator();\n\t\t\twhile( itr.hasNext() ) {\n\t\t\t\tfinal FieldItem fi = (FieldItem)itr.next();\n\t\t\t\tout.element(\"symbol\",\n\t\t\t\t\tnew String[]{\"name\",symbolizer.getId(fi)});\n\t\t\t}\n\t\t\t\n\t\t\tout.end(\"field\");\n\t\t}\n\t}",
"public static void writeMessageType(OutputStream os, short type) throws IOException {\n os.write((byte)(type & 0xFF));\n os.write((byte)((type >> 8) & 0xFF));\n }",
"public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}",
"byte[] createJCas_TypeCoverClass(TypeImpl type) {\n this.type = type;\n typeJavaDescriptor = type.getJavaDescriptor();\n typeJavaClassName = type.getName().replace('.', '/') + \"_Type\";\n cn = new ClassNode(ASM5); // java 8\n cn.version = JAVA_CLASS_VERSION;\n cn.access = ACC_PUBLIC + ACC_SUPER;\n cn.name = typeJavaClassName; \n cn.superName = type.getSuperType().getName().replace('.', '/') + \"_Type\";\n\n // TODO\n \n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);\n cn.accept(cw);\n return cw.toByteArray();\n }",
"Type type();",
"Type type();",
"type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"abstract public Type type();",
"TypeRef getType();",
"public abstract Type getType();",
"private void _writeTypeInstance(final Topic type, final Topic instance) throws IOException {\n _out.startObject();\n _writeKeyValue(\"type\", _TMDM_TYPE_INSTANCE);\n _out.key(\"roles\");\n _out.startArray();\n _out.startObject();\n _writeKeyValue(\"type\", _TMDM_TYPE);\n _writeKeyValue(\"player\", _topicRef(type));\n _out.endObject();\n _out.startObject();\n _writeKeyValue(\"type\", _TMDM_INSTANCE);\n _writeKeyValue(\"player\", _topicRef(instance));\n _out.endObject();\n _out.endArray();\n _out.endObject();\n }",
"public interface Type<T> {\n\n /**\n * Returns astyanax serializer responsible for reading/writing value.\n * \n * @return Serializer.\n */\n Serializer<T> getSerializer();\n\n /**\n * Returns name of the cassandra type.\n * \n * @return Cassandra type name.\n */\n String getCassandraName();\n\n}",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"ConceptType createConceptType();",
"public Type getType();",
"com.google.protobuf.ByteString getTypeBytes();",
"NamedType createNamedType();",
"public void setType (String typ) {\n type = typ;\n }",
"String provideType();",
"protected abstract void write (Object val);",
"Rule CppType() {\n // Push 1 CppTypeNode onto the value stack\n return Sequence(\n \"cpp_type \",\n Literal(),\n actions.pushCppTypeNode());\n }",
"abstract public String getType();",
"public abstract byte getType();",
"private void saveDataType(int type) throws IOException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/datatype.txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n writer.write(type + \"\\n\");\r\n writer.close();\r\n fileWriter.close();\r\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();"
] |
[
"0.6918902",
"0.6646329",
"0.6377303",
"0.6208161",
"0.5903932",
"0.5867527",
"0.58051604",
"0.5723964",
"0.5682457",
"0.5682457",
"0.5682457",
"0.5651964",
"0.562618",
"0.5613116",
"0.56054",
"0.55978584",
"0.5557611",
"0.5554433",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.5549639",
"0.55435914",
"0.5541451",
"0.55403286",
"0.5538415",
"0.5532719",
"0.5518843",
"0.55187",
"0.55187",
"0.5503942",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.5491693",
"0.54663944",
"0.54604375",
"0.5444295",
"0.54339623",
"0.54300565",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.54286444",
"0.5416207",
"0.53747034",
"0.5363024",
"0.5356077",
"0.53540426",
"0.5342827",
"0.5318579",
"0.5314765",
"0.5308218",
"0.53030103",
"0.5299265",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666",
"0.5291666"
] |
0.77129877
|
0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.